Struct theatre::mailbox::Recipient[][src]

pub struct Recipient<M> where
    M: Message
{ /* fields omitted */ }

An address parametrized of the message type instead of an Actor type. This allows for collections of actors that may receive a particular message.

Implementations

impl<M> Recipient<M> where
    M: Message
[src]

pub async fn send(
    &mut self,
    msg: M
) -> Result<<M as Message>::Return, TheatreError>
[src]

pub async fn try_send(
    &mut self,
    msg: M
) -> Result<<M as Message>::Return, TheatreError>
[src]

pub fn try_send_and_forget(&mut self, msg: M) -> Result<(), TheatreError>[src]

Trait Implementations

impl<M> Clone for Recipient<M> where
    M: Message
[src]

impl<M> Debug for Recipient<M> where
    M: Message + Debug
[src]

Auto Trait Implementations

impl<M> !RefUnwindSafe for Recipient<M>

impl<M> Send for Recipient<M>

impl<M> Sync for Recipient<M>

impl<M> Unpin for Recipient<M>

impl<M> !UnwindSafe for Recipient<M>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.