Struct theatre::mailbox::Recipient [−][src]
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]
M: Message,
pub async fn send(
&mut self,
msg: M
) -> Result<<M as Message>::Return, TheatreError>
[src]
&mut self,
msg: M
) -> Result<<M as Message>::Return, TheatreError>
pub async fn try_send(
&mut self,
msg: M
) -> Result<<M as Message>::Return, TheatreError>
[src]
&mut self,
msg: M
) -> Result<<M as Message>::Return, TheatreError>
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]
M: Message,
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<M> Debug for Recipient<M> where
M: Message + Debug,
[src]
M: Message + Debug,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,