[−][src]Trait meio::performers::ActionPerformer
A generic trait for Action
functionality.
It represents a function with a reaction and can be implemented directly
of as an Actor
.
You can use this trait to have any generic functionality inside other
actors that can be replaced by a simple function or a self-performed Actor
.
'static
reqirement added to make possible to use as_ref
for returning
for a multi-purpose links.
Required methods
#[must_use]fn act<'life0, 'async_trait>(
&'life0 mut self,
input: I
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 mut self,
input: I
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Send Action
message to an Actor
.
Implementors
impl<A, I> ActionPerformer<I> for Address<A> where
A: Actor,
A: ActionHandler<I>,
I: Action,
[src]
A: Actor,
A: ActionHandler<I>,
I: Action,
fn act<'life0, 'async_trait>(
&'life0 mut self,
input: I
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
input: I
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl<I> ActionPerformer<I> for ActionRecipient<I> where
I: Action,
[src]
I: Action,