Trait tractor::ActorBehaviorAsync[][src]

pub trait ActorBehaviorAsync: Actor {
#[must_use]    fn handle<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        msg: Self::Msg,
        ctx: &'life1 Context<Self>
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn handle<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    msg: Self::Msg,
    ctx: &'life1 Context<Self>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementors

impl<T: ActorBehavior> ActorBehaviorAsync for T[src]

Default implementation for ActorBehaviorAsync given ActorBehavior

Loading content...