pub trait HandleMsg<T> {
    fn handle<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        ctx: &'life1 MessagePayload<Message>,
        msg: &'life2 T
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        'life2: 'async_trait,
        Self: 'async_trait
; }
Expand description

Generic trait for handle message ,inspired by Actor-Model.

Required Methods§

Message handler.

Implementors§