pub struct RegisteredTimer {
pub id: u64,
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 a timer tracked by the registry.
Fields§
§id: u64Registry identifier for the timer.
state: TimerStateCurrent or most recent timer state.
interval: DurationEffective timer interval.
expiration_count: Option<usize>Optional recurring execution limit.
statistics: TimerStatisticsRun statistics captured from the timer.
last_outcome: Option<TimerOutcome>Most recent completed outcome, if any.
metadata: TimerMetadataMetadata associated with the timer.
Trait Implementations§
Source§impl Clone for RegisteredTimer
impl Clone for RegisteredTimer
Source§fn clone(&self) -> RegisteredTimer
fn clone(&self) -> RegisteredTimer
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 RegisteredTimer
impl Debug for RegisteredTimer
Source§impl PartialEq for RegisteredTimer
impl PartialEq for RegisteredTimer
impl Eq for RegisteredTimer
impl StructuralPartialEq for RegisteredTimer
Auto Trait Implementations§
impl Freeze for RegisteredTimer
impl RefUnwindSafe for RegisteredTimer
impl Send for RegisteredTimer
impl Sync for RegisteredTimer
impl Unpin for RegisteredTimer
impl UnsafeUnpin for RegisteredTimer
impl UnwindSafe for RegisteredTimer
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