Trait meio::linkage::ActionRecipient [−][src]
pub trait ActionRecipient<T: Action>: Debug + Send + 'static { #[must_use] fn act<'life0, 'async_trait>(
&'life0 mut self,
msg: T
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait; }
Abstract Address
to the Actor
that can handle a specific message type.
Required methods
#[must_use]fn act<'life0, 'async_trait>(
&'life0 mut self,
msg: T
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
#[must_use]
fn act<'life0, 'async_trait>(&'life0 mut self,
msg: T
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Send an Action
to an Actor
.
Implementors
impl<T, A> ActionRecipient<T> for Address<A> where
T: Action,
A: Actor + ActionHandler<T>,
[src]
impl<T, A> ActionRecipient<T> for Address<A> where
T: Action,
A: Actor + ActionHandler<T>,
[src]fn act<'life0, 'async_trait>(
&'life0 mut self,
msg: T
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
msg: T
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,