pub struct EventFilter { /* private fields */ }
Implementations§
Source§impl EventFilter
impl EventFilter
pub fn new( moniker: impl Into<ExtendedMoniker>, filter: Option<BTreeMap<String, DictionaryValue>>, ) -> Self
pub fn debug(moniker: ExtendedMoniker) -> Self
Sourcepub fn has_fields(
&self,
fields: &Option<BTreeMap<String, DictionaryValue>>,
) -> bool
pub fn has_fields( &self, fields: &Option<BTreeMap<String, DictionaryValue>>, ) -> bool
Verifies that for all fields given, they are present in the current filter. If no fields are given, returns true.
pub fn contains(&self, key: impl Into<String>, values: Vec<String>) -> bool
Trait Implementations§
Source§impl Clone for EventFilter
impl Clone for EventFilter
Source§fn clone(&self) -> EventFilter
fn clone(&self) -> EventFilter
Returns a copy 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 Debug for EventFilter
impl Debug for EventFilter
Source§impl PartialEq for EventFilter
impl PartialEq for EventFilter
Source§impl WalkStateUnit for EventFilter
impl WalkStateUnit for EventFilter
Source§fn validate_next(&self, next_state: &EventFilter) -> Result<(), Self::Error>
fn validate_next(&self, next_state: &EventFilter) -> Result<(), Self::Error>
Ensures the next walk state of filters is a superset of the current state.
Consider A->B where A (next_state) is offering an event to B (self) and B is using it itself or offering it again.
For all properties of B, those properties are in A and they are subsets of the property in B.
type Error = EventsRoutingError
Source§fn finalize_error(&self) -> Self::Error
fn finalize_error(&self) -> Self::Error
The error that is returned by the walk state when attempting to finalize with an invalid
state.
impl Eq for EventFilter
impl StructuralPartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)