pub enum TimerEvent {
Started {
run_id: u64,
interval: Duration,
recurring: bool,
expiration_count: Option<usize>,
metadata: TimerMetadata,
},
Paused {
run_id: u64,
},
Resumed {
run_id: u64,
},
IntervalAdjusted {
run_id: u64,
interval: Duration,
},
Tick {
run_id: u64,
statistics: TimerStatistics,
},
CallbackFailed {
run_id: u64,
error: TimerError,
statistics: TimerStatistics,
},
Finished(TimerOutcome),
}Expand description
Event stream item produced by a timer.
Variants§
Started
Fields
§
metadata: TimerMetadataPaused
Resumed
IntervalAdjusted
Tick
CallbackFailed
Finished(TimerOutcome)
Trait Implementations§
Source§impl Clone for TimerEvent
impl Clone for TimerEvent
Source§fn clone(&self) -> TimerEvent
fn clone(&self) -> TimerEvent
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 TimerEvent
impl Debug for TimerEvent
Source§impl PartialEq for TimerEvent
impl PartialEq for TimerEvent
impl Eq for TimerEvent
impl StructuralPartialEq for TimerEvent
Auto Trait Implementations§
impl Freeze for TimerEvent
impl RefUnwindSafe for TimerEvent
impl Send for TimerEvent
impl Sync for TimerEvent
impl Unpin for TimerEvent
impl UnsafeUnpin for TimerEvent
impl UnwindSafe for TimerEvent
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