[][src]Trait actix::dev::ToEnvelope

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 into a suitable envelope.

Required methods

fn pack(msg: M, tx: Option<Sender<M::Result>>) -> Envelope<A>

Pack message into suitable envelope

Loading content...

Implementors

impl<A, M> ToEnvelope<A, M> for Context<A> where
    A: Actor<Context = Context<A>> + Handler<M>,
    M: Message + Send + 'static,
    M::Result: Send
[src]

impl<A, M> ToEnvelope<A, M> for SyncContext<A> where
    A: Actor<Context = Self> + Handler<M>,
    M: Message + Send + 'static,
    M::Result: Send
[src]

Loading content...