[−][src]Trait meio::performers::InteractionPerformer
A generic trait for Interaction
functionality.
The same as for ActionPerformer
. This trait can be implemented
be an Actor
or just a simple function that can use async Mutex
and provide a full functionality without a spawned actor.
'static
reqirement added to make possible to use as_ref
for returning
for a multi-purpose links.
Required methods
#[must_use]fn interact<'life0, 'async_trait>(
&'life0 mut self,
input: I
) -> Pin<Box<dyn Future<Output = Result<I::Output, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
&'life0 mut self,
input: I
) -> Pin<Box<dyn Future<Output = Result<I::Output, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Send Interaction
message to an Actor
and wait for the response.
Implementors
impl<A, I> InteractionPerformer<I> for Address<A> where
A: Actor,
A: InteractionHandler<I>,
I: Interaction,
[src]
A: Actor,
A: InteractionHandler<I>,
I: Interaction,
fn interact<'life0, 'async_trait>(
&'life0 mut self,
input: I
) -> Pin<Box<dyn Future<Output = Result<I::Output, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
input: I
) -> Pin<Box<dyn Future<Output = Result<I::Output, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl<I> InteractionPerformer<I> for InteractionRecipient<I> where
I: Interaction,
[src]
I: Interaction,