pub struct TimerSnapshot {
pub state: TimerState,
pub interval: Duration,
pub expiration_count: Option<usize>,
pub statistics: TimerStatistics,
pub last_outcome: Option<TimerOutcome>,
pub metadata: TimerMetadata,
}Expand description
Snapshot of the current or most recent timer state.
Fields§
§state: TimerStateThe timer state observed for the snapshot.
interval: DurationThe effective interval configured for the timer.
expiration_count: Option<usize>The optional recurring execution limit.
statistics: TimerStatisticsStatistics for the current or most recent run.
last_outcome: Option<TimerOutcome>The most recent completed outcome, if any.
metadata: TimerMetadataMetadata associated with the timer.
Trait Implementations§
Source§impl Clone for TimerSnapshot
impl Clone for TimerSnapshot
Source§fn clone(&self) -> TimerSnapshot
fn clone(&self) -> TimerSnapshot
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 Debug for TimerSnapshot
impl Debug for TimerSnapshot
Source§impl PartialEq for TimerSnapshot
impl PartialEq for TimerSnapshot
impl Eq for TimerSnapshot
impl StructuralPartialEq for TimerSnapshot
Auto Trait Implementations§
impl Freeze for TimerSnapshot
impl RefUnwindSafe for TimerSnapshot
impl Send for TimerSnapshot
impl Sync for TimerSnapshot
impl Unpin for TimerSnapshot
impl UnsafeUnpin for TimerSnapshot
impl UnwindSafe for TimerSnapshot
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