Skip to main content

ActorMessageHandler

Trait ActorMessageHandler 

Source
pub trait ActorMessageHandler<A>: Sync + Send
where A: Actor + Sync + Send,
{ // Required method 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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; }

Required Methods§

Source

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 Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§

Source§

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