pub struct StreamProcessor { /* private fields */ }Expand description
Processes events in a stream.
Implementations§
Source§impl StreamProcessor
impl StreamProcessor
Sourcepub fn add_step(self, step: impl ProcessingStep + Send + Sync + 'static) -> Self
pub fn add_step(self, step: impl ProcessingStep + Send + Sync + 'static) -> Self
Add a processing step.
Sourcepub fn filter(self, filter: EventFilter) -> Self
pub fn filter(self, filter: EventFilter) -> Self
Add a filter step.
Sourcepub fn map(
self,
mapper: impl Fn(Event) -> Event + Send + Sync + 'static,
) -> Self
pub fn map( self, mapper: impl Fn(Event) -> Event + Send + Sync + 'static, ) -> Self
Add a map step.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StreamProcessor
impl !RefUnwindSafe for StreamProcessor
impl Send for StreamProcessor
impl Sync for StreamProcessor
impl Unpin for StreamProcessor
impl UnsafeUnpin for StreamProcessor
impl !UnwindSafe for StreamProcessor
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