pub struct EventStream { /* private fields */ }Expand description
A stream of events with processing capabilities.
Implementations§
Source§impl EventStream
impl EventStream
Sourcepub fn with_max_size(max_size: usize) -> Self
pub fn with_max_size(max_size: usize) -> Self
Create a stream with a maximum size.
Sourcepub fn filter(&self, filter: &EventFilter) -> Vec<&Event>
pub fn filter(&self, filter: &EventFilter) -> Vec<&Event>
Filter events in the stream.
Sourcepub fn take(&mut self, filter: &EventFilter) -> Vec<Event>
pub fn take(&mut self, filter: &EventFilter) -> Vec<Event>
Take events matching a filter.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventStream
impl RefUnwindSafe for EventStream
impl Send for EventStream
impl Sync for EventStream
impl Unpin for EventStream
impl UnsafeUnpin for EventStream
impl UnwindSafe for EventStream
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more