pub enum EventFilter {
All,
Prefix(String),
Exact(String),
And(Box<EventFilter>, Box<EventFilter>),
Or(Box<EventFilter>, Box<EventFilter>),
}Expand description
Event filter implementation
Variants§
All
Match all events
Prefix(String)
Match events with type prefix
Exact(String)
Match exact event type
And(Box<EventFilter>, Box<EventFilter>)
Combine multiple filters with AND logic
Or(Box<EventFilter>, Box<EventFilter>)
Combine multiple filters with OR logic
Implementations§
Source§impl EventFilter
impl EventFilter
Sourcepub fn and(self, other: EventFilter) -> Self
pub fn and(self, other: EventFilter) -> Self
Combine with another filter using AND logic
Sourcepub fn or(self, other: EventFilter) -> Self
pub fn or(self, other: EventFilter) -> Self
Combine with another filter using OR logic
Trait Implementations§
Source§impl Clone for EventFilter
impl Clone for EventFilter
Source§fn clone(&self) -> EventFilter
fn clone(&self) -> EventFilter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl EventFilterTrait for EventFilter
impl EventFilterTrait for EventFilter
Auto Trait Implementations§
impl Freeze for EventFilter
impl RefUnwindSafe for EventFilter
impl Send for EventFilter
impl Sync for EventFilter
impl Unpin for EventFilter
impl UnwindSafe for EventFilter
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