pub struct PulseWindow {
pub in_window: bool,
pub in_gap: bool,
pub seconds_into_window: i64,
}Expand description
Where an action’s execution time falls relative to the current pulse window
[last_pulse, last_pulse + interval).
Fields§
§in_window: boolExecution is inside the current window (a pulse is not yet due).
in_gap: boolExecution is in the gap past the window’s end (the next pulse is overdue).
seconds_into_window: i64Seconds from last_pulse to execution (negative if execution precedes it).
Trait Implementations§
Source§impl Clone for PulseWindow
impl Clone for PulseWindow
impl Copy for PulseWindow
Source§impl Debug for PulseWindow
impl Debug for PulseWindow
impl Eq for PulseWindow
Source§impl PartialEq for PulseWindow
impl PartialEq for PulseWindow
impl StructuralPartialEq for PulseWindow
Auto Trait Implementations§
impl Forget for PulseWindow
impl Freeze for PulseWindow
impl RefUnwindSafe for PulseWindow
impl Send for PulseWindow
impl Sync for PulseWindow
impl Unpin for PulseWindow
impl UnsafeUnpin for PulseWindow
impl UnwindSafe for PulseWindow
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.