MessageStream

Trait MessageStream 

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

Required Methods§

Source

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

Get next message from stream

§Returns

Some(x) - next message in stream None - there is no more message

Implementors§