Trait Subscriber

Source
pub trait Subscriber {
    type SubscriptionRequest;
    type Publication;
    type Error;

    // Required method
    fn subscribe<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        subscription: &'life1 Self::SubscriptionRequest,
    ) -> Pin<Box<dyn Future<Output = Result<Subscription<Self::Publication>, Self::Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn subscribe<'life0, 'life1, 'async_trait>( &'life0 mut self, subscription: &'life1 Self::SubscriptionRequest, ) -> Pin<Box<dyn Future<Output = Result<Subscription<Self::Publication>, Self::Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§