pub struct AsyncObservationIntervalState {
pub interval_tokens: Option<u32>,
pub crossed_interval_boundary: bool,
pub new_tokens_since_last_boundary: u32,
pub min_new_tokens_required: u32,
pub debounce_passed: bool,
pub should_trigger: bool,
}Fields§
§interval_tokens: Option<u32>§crossed_interval_boundary: bool§new_tokens_since_last_boundary: u32§min_new_tokens_required: u32§debounce_passed: bool§should_trigger: boolTrait Implementations§
Source§impl Clone for AsyncObservationIntervalState
impl Clone for AsyncObservationIntervalState
Source§fn clone(&self) -> AsyncObservationIntervalState
fn clone(&self) -> AsyncObservationIntervalState
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 PartialEq for AsyncObservationIntervalState
impl PartialEq for AsyncObservationIntervalState
Source§fn eq(&self, other: &AsyncObservationIntervalState) -> bool
fn eq(&self, other: &AsyncObservationIntervalState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AsyncObservationIntervalState
impl Eq for AsyncObservationIntervalState
impl StructuralPartialEq for AsyncObservationIntervalState
Auto Trait Implementations§
impl Freeze for AsyncObservationIntervalState
impl RefUnwindSafe for AsyncObservationIntervalState
impl Send for AsyncObservationIntervalState
impl Sync for AsyncObservationIntervalState
impl Unpin for AsyncObservationIntervalState
impl UnsafeUnpin for AsyncObservationIntervalState
impl UnwindSafe for AsyncObservationIntervalState
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