core_lib::events

Trait Subscriber

Source
pub trait Subscriber {
    // Required method
    fn subscribe<'life0, 'life1, 'async_trait>(
        &'life0 self,
        subject: &'life1 str,
        handler: Box<dyn Handler>,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn subscribe<'life0, 'life1, 'async_trait>( &'life0 self, subject: &'life1 str, handler: Box<dyn Handler>, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§