SubscribeExt

Trait SubscribeExt 

Source
pub trait SubscribeExt<M>
where M: Message<Result = ()> + Clone,
{ // Required method fn subscribe<'life0, 'async_trait>( &'life0 self, broker: Address<Broker<M>>, ) -> Pin<Box<dyn Future<Output = Result<Subscription<M>, ()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; }

Required Methods§

Source

fn subscribe<'life0, 'async_trait>( &'life0 self, broker: Address<Broker<M>>, ) -> Pin<Box<dyn Future<Output = Result<Subscription<M>, ()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

Source§

impl<T, M> SubscribeExt<M> for Address<T>
where T: Handler<M>, M: Message<Result = ()> + Clone,