pub struct FilterTransform<F>{ /* private fields */ }Expand description
Filter transformation.
Implementations§
Source§impl<F> FilterTransform<F>
impl<F> FilterTransform<F>
Sourcepub fn test(&self, element: &StreamElement) -> bool
pub fn test(&self, element: &StreamElement) -> bool
Check if an element passes the filter.
Sourcepub fn apply_message(&self, message: StreamMessage) -> Option<StreamMessage>
pub fn apply_message(&self, message: StreamMessage) -> Option<StreamMessage>
Apply the filter to a message.
Auto Trait Implementations§
impl<F> Freeze for FilterTransform<F>
impl<F> RefUnwindSafe for FilterTransform<F>where
F: RefUnwindSafe,
impl<F> Send for FilterTransform<F>
impl<F> Sync for FilterTransform<F>
impl<F> Unpin for FilterTransform<F>
impl<F> UnsafeUnpin for FilterTransform<F>
impl<F> UnwindSafe for FilterTransform<F>where
F: RefUnwindSafe,
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