pub trait EventStream: Send {
// Required method
fn next_event<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Option<Value>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
A streaming event source. The server polls next_event until the
client disconnects or the stream returns None.