Trait meio::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]

Send an Action to an Actor.

Loading content...

Implementors

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]

fn id_ref(&self) -> &Id[src]

fn dyn_clone(&self) -> Box<dyn ActionRecipient<T>>[src]

fn dyn_hash(&self, state: &mut dyn Hasher)[src]

Loading content...