[][src]Trait meio::performers::InteractionPerformer

pub trait InteractionPerformer<I: Interaction>: Send + 'static {
#[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
; }

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, 

Send Interaction message to an Actor and wait for the response.

Loading content...

Implementors

impl<A, I> InteractionPerformer<I> for Address<A> where
    A: Actor,
    A: InteractionHandler<I>,
    I: Interaction
[src]

impl<I> InteractionPerformer<I> for InteractionRecipient<I> where
    I: Interaction
[src]

Loading content...