Trait Handler

Source
pub trait Handler:
    Send
    + Sync
    + 'static {
    // Required method
    fn handle_message<'life0, 'async_trait>(
        &'life0 self,
        message: ProtocolMessage,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn handle_message<'life0, 'async_trait>( &'life0 self, message: ProtocolMessage, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§