Trait actorlib::Handler

source ·
pub trait Handler<Actor, Message, State, Response, Error> {
    // Required method
    fn receive<'life0, 'async_trait>(
        &'life0 self,
        ctx: Arc<Context<Actor, Message, State, Response, Error>>
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn receive<'life0, 'async_trait>( &'life0 self, ctx: Arc<Context<Actor, Message, State, Response, Error>> ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§