pub enum WindowDecision {
Extend,
Reset,
Discard,
}Expand description
Outcome of a window’s pre-insert maintenance for a new event.
Variants§
Extend
The current window continues; push the event into it.
Reset
The window rolled over and the state was cleared; push the event into the fresh window. Callers must also clear any associated event buffers so they stay in sync with the state.
Discard
The event predates the current window (a late arrival in an earlier tumbling bucket); do not push it and leave the state untouched.
Trait Implementations§
Source§impl Clone for WindowDecision
impl Clone for WindowDecision
Source§fn clone(&self) -> WindowDecision
fn clone(&self) -> WindowDecision
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 moreimpl Copy for WindowDecision
Source§impl Debug for WindowDecision
impl Debug for WindowDecision
impl Eq for WindowDecision
Source§impl PartialEq for WindowDecision
impl PartialEq for WindowDecision
Source§fn eq(&self, other: &WindowDecision) -> bool
fn eq(&self, other: &WindowDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WindowDecision
Auto Trait Implementations§
impl Freeze for WindowDecision
impl RefUnwindSafe for WindowDecision
impl Send for WindowDecision
impl Sync for WindowDecision
impl Unpin for WindowDecision
impl UnsafeUnpin for WindowDecision
impl UnwindSafe for WindowDecision
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.