Skip to main content

EventStream

Trait EventStream 

Source
pub trait EventStream: Send {
    // Required method
    fn next_event(&mut self) -> Result<Option<EventView<'_>>>;
}

Required Methods§

Source

fn next_event(&mut self) -> Result<Option<EventView<'_>>>

Borrowed until the next call; no event-body copy at the trait boundary.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§