Trait actix::dev::MessageRecipient [] [src]

pub trait MessageRecipient<M>: Sized where
    M: Message + 'static, 
{ type Envelope: From<M>; type Transport; type SendError; type MailboxError; type Request: Future<Item = M::Result, Error = Self::MailboxError>; fn do_send(tx: &Self::Transport, msg: M) -> Result<(), Self::SendError>;
fn try_send(tx: &Self::Transport, msg: M) -> Result<(), Self::SendError>;
fn send(tx: &Self::Transport, msg: M) -> Self::Request;
fn clone(tx: &Self::Transport) -> Self::Transport; }

Associated Types

Required Methods

Send message unconditionally

Deliver message even if recipient's mailbox is full

Try send message

This method fails if actor's mailbox is full or closed. This method register current task in receivers queue.

Send asynchronous message and wait for response.

Communication channel to the actor is bounded. if returned Receiver object get dropped, message cancels.

Clone transport

Implementors