Trait ToEnvelope
actix::dev
pub trait ToEnvelope<A, M: Message> where A: Actor + Handler<M>, A::Context: ToEnvelope<A, M>, { fn pack(msg: M, tx: Option<Sender<M::Result>>) -> Envelope<A>; }
Converter trait, packs message to suitable envelope
fn pack(msg: M, tx: Option<Sender<M::Result>>) -> Envelope<A>
Pack message into suitable envelope
impl<A, M> ToEnvelope<A, M> for Context<A> where A: Actor<Context = Context<A>> + Handler<M>, M: Message + Send + 'static, M::Result: Send,
impl<A, M> ToEnvelope<A, M> for SyncContext<A> where A: Actor<Context = SyncContext<A>> + Handler<M>, M: Message + Send + 'static, M::Result: Send,