Skip to main content

LiveStream

Trait LiveStream 

Source
pub trait LiveStream: Send + Sync {
    // Required method
    fn subscribe(&self) -> Pin<Box<dyn Stream<Item = LiveEvent> + Send>>;
}
Expand description

Source of LiveEvents. Subscribers each get an independent stream.

Required Methods§

Source

fn subscribe(&self) -> Pin<Box<dyn Stream<Item = LiveEvent> + Send>>

Implementors§