[][src]Trait coerce_rt::actor::message::ActorMessageHandler

pub trait ActorMessageHandler<A>: Sync + Send where
    A: Actor + Sync + Send
{ fn handle<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 mut self,
        actor: &'life1 mut A,
        ctx: &'life2 mut ActorHandlerContext
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }

Required methods

fn handle<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 mut self,
    actor: &'life1 mut A,
    ctx: &'life2 mut ActorHandlerContext
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

impl<A: 'static + Actor, M: 'static + Message> ActorMessageHandler<A> for ActorMessage<A, M> where
    A: Handler<M> + Send + Sync,
    M: Send + Sync,
    M::Result: Send + Sync
[src]

Loading content...