Trait neutron::ConsumerPlugin

source ·
pub trait ConsumerPlugin<C, T>{
    // Provided methods
    fn on_connect<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        consumer: &'life1 Consumer<C, T>
    ) -> Pin<Box<dyn Future<Output = Result<(), NeutronError>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn on_disconnect<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        consumer: &'life1 Consumer<C, T>
    ) -> Pin<Box<dyn Future<Output = Result<(), NeutronError>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn on_message<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        consumer: &'life1 Consumer<C, T>,
        message: Message<T>
    ) -> Pin<Box<dyn Future<Output = Result<(), NeutronError>> + Send + 'async_trait>>
       where Self: Send + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Provided Methods§

source

fn on_connect<'life0, 'life1, 'async_trait>( &'life0 mut self, consumer: &'life1 Consumer<C, T> ) -> Pin<Box<dyn Future<Output = Result<(), NeutronError>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn on_disconnect<'life0, 'life1, 'async_trait>( &'life0 mut self, consumer: &'life1 Consumer<C, T> ) -> Pin<Box<dyn Future<Output = Result<(), NeutronError>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn on_message<'life0, 'life1, 'async_trait>( &'life0 mut self, consumer: &'life1 Consumer<C, T>, message: Message<T> ) -> Pin<Box<dyn Future<Output = Result<(), NeutronError>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§