[][src]Trait muta_protocol::traits::MessageHandler

pub trait MessageHandler: Sync + Send + 'static {
    type Message: MessageCodec;
    fn process<'life0, 'async_trait>(
        &'life0 self,
        ctx: Context,
        msg: Self::Message
    ) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

Associated Types

Loading content...

Required methods

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

Loading content...

Implementors

Loading content...