[][src]Trait meio::prelude::InteractionRecipient

pub trait InteractionRecipient<T: Interaction>: Debug + Send + 'static {
#[must_use]    pub fn interact<'life0, 'async_trait>(
        &'life0 mut self,
        msg: T
    ) -> Pin<Box<dyn Future<Output = Result<T::Output, Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Abstract Address to the Actor that can handle an interaction.

Required methods

#[must_use]pub fn interact<'life0, 'async_trait>(
    &'life0 mut self,
    msg: T
) -> Pin<Box<dyn Future<Output = Result<T::Output, Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Interact with an Actor.

Loading content...

Implementors

impl<T, A> InteractionRecipient<T> for Address<A> where
    T: Interaction,
    A: Actor + InteractionHandler<T>, 
[src]

Loading content...