[][src]Trait meio::handlers::ActionHandler

pub trait ActionHandler<I: Action>: Actor {
#[must_use]    fn handle<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        input: I,
        _ctx: &'life1 mut Context<Self>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Type of Handler to process incoming messages in one-shot style.

Required methods

#[must_use]fn handle<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    input: I,
    _ctx: &'life1 mut Context<Self>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Asyncronous method that receives incoming message.

Loading content...

Implementors

Loading content...