Trait core_lib::events::Subscriber
source · [−]pub trait Subscriber {
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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}