Skip to main content

MutHandler

Trait MutHandler 

Source
pub trait MutHandler:
    Send
    + Sync
    + 'static {
    // Required method
    fn handle<'life0, 'async_trait>(
        &'life0 mut self,
        event: Bytes,
    ) -> Pin<Box<dyn Future<Output = HandlerResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Mutable version of the Handler trait

Required Methods§

Source

fn handle<'life0, 'async_trait>( &'life0 mut self, event: Bytes, ) -> Pin<Box<dyn Future<Output = HandlerResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§