Struct actix::Recipient [] [src]

pub struct Recipient<T: MessageRecipient<M>, M: Message + 'static> { /* fields omitted */ }

Recipient type allows to send one specific message to an actor.

You can get recipient with Addr<_, _>::recipient() method. It is possible to use Clone::clone() method to get cloned recipient.

Methods

impl<T, M> Recipient<T, M> where
    T: MessageRecipient<M>,
    M: Message + 'static, 
[src]

[src]

Create new recipient

[src]

Send message

Deliver message even if recipient's mailbox is full

[src]

Try send message

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

[src]

Send message and asynchronously wait for response.

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

Trait Implementations

impl<M> Send for Recipient<Syn, M> where
    M: Message + Send + 'static,
    M::Result: Send
[src]

impl<M> Sync for Recipient<Syn, M> where
    M: Message + Send + 'static,
    M::Result: Send
[src]

impl<T, M> Clone for Recipient<T, M> where
    T: MessageRecipient<M>,
    M: Message + 'static, 
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T, M> Send for Recipient<T, M> where
    M: Send,
    <T as MessageRecipient<M>>::Transport: Send

impl<T, M> Sync for Recipient<T, M> where
    M: Sync,
    <T as MessageRecipient<M>>::Transport: Sync