[][src]Trait xtra_addons::SubscribeExt

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

Required methods

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

Loading content...

Implementors

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

Loading content...