Skip to main content

Subscription

Trait Subscription 

Source
pub trait Subscription: Send {
    // Required method
    fn recv<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = Result<Notification>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn recv<'life0, 'async_trait>( &'life0 mut self, ) -> Pin<Box<dyn Future<Output = Result<Notification>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Cancel-safe for both supplied backends. Closed subscriptions must be replaced; each replacement starts with ResyncRequired.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§