pub enum DebounceDecision {
WouldFire,
WouldSuppress {
debounce_remaining_ms: u64,
},
BelowRateThreshold {
seen: usize,
required: u32,
},
}Expand description
Whether a filter-matching event would fire or be suppressed.
Variants§
WouldFire
This event would cause the rule to fire.
WouldSuppress
Suppressed by the rule’s debounce window.
Fields
BelowRateThreshold
Suppressed because the rate predicate threshold is not yet met.
Trait Implementations§
Source§impl Clone for DebounceDecision
impl Clone for DebounceDecision
Source§fn clone(&self) -> DebounceDecision
fn clone(&self) -> DebounceDecision
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DebounceDecision
impl Debug for DebounceDecision
impl Eq for DebounceDecision
Source§impl PartialEq for DebounceDecision
impl PartialEq for DebounceDecision
impl StructuralPartialEq for DebounceDecision
Auto Trait Implementations§
impl Freeze for DebounceDecision
impl RefUnwindSafe for DebounceDecision
impl Send for DebounceDecision
impl Sync for DebounceDecision
impl Unpin for DebounceDecision
impl UnsafeUnpin for DebounceDecision
impl UnwindSafe for DebounceDecision
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.