pub trait EventStream: Send {
// Required method
fn next_event(&mut self) -> Result<Option<EventView<'_>>>;
}Required Methods§
Sourcefn next_event(&mut self) -> Result<Option<EventView<'_>>>
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".