Trait phron_finality::network::gossip::EventStream   
source · pub trait EventStream<P> {
    // Required method
    fn next_event<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Option<Event<P>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}Required Methods§
sourcefn next_event<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Option<Event<P>>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn next_event<'life0, 'async_trait>(
    &'life0 mut self
) -> Pin<Box<dyn Future<Output = Option<Event<P>>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
Retrieves next event from the stream or returns None if the stream is closed. This method’s implementation must be cancellation safe.