Trait MessageHandler

Source
pub trait MessageHandler:
    Sync
    + Send
    + 'static {
    type Message: MessageCodec;

    // Required method
    fn process<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context,
        msg: Self::Message,
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn process<'life0, 'async_trait>( &'life0 self, ctx: Context, msg: Self::Message, ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§