Trait actix::dev::MessageDestination [] [src]

pub trait MessageDestination<A, M>: Destination<A> where
    A: Handler<M>,
    A::Context: ToEnvelope<Self, A, M>,
    M: Message + 'static,
    Self::Transport: MessageDestinationTransport<Self, A, M>, 
{ type Envelope; type ResultSender; type ResultReceiver: Future<Item = M::Result>; fn do_send(tx: &Self::Transport, msg: M);
fn try_send(tx: &Self::Transport, msg: M) -> Result<(), SendError<M>>;
fn send(tx: &Self::Transport, msg: M) -> Request<Self, A, M>;
fn recipient(tx: Self::Transport) -> Recipient<Self, M>
    where
        Self: MessageRecipient<M>
; }

Associated Types

Required Methods

Send message unconditionally

Try send message

Send asynchronous message and wait for response.

Get recipient for specific message type.

Implementors