Subscriber

Trait Subscriber 

Source
pub trait Subscriber:
    Send
    + Sync
    + 'static {
    type Input;

    // Required method
    fn on_event_publish<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        event: &'life1 Self::Input,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

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

Implementors§