Trait MessageConsumer

Source
pub trait MessageConsumer {
    // Required method
    fn consume<'life0, 'async_trait>(
        &'life0 self,
        msg: Msg,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

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

Implementors§