pub struct TimerOutcomeSnapshot { /* private fields */ }Expand description
Latest outcome and functional failure state for one timer.
Implementations§
Source§impl TimerOutcomeSnapshot
impl TimerOutcomeSnapshot
Sourcepub const fn last_outcome(self) -> Option<TimerLastOutcome>
pub const fn last_outcome(self) -> Option<TimerLastOutcome>
Return the latest terminal event.
Sourcepub const fn last_work_count(self) -> Option<u64>
pub const fn last_work_count(self) -> Option<u64>
Return work reported by the latest completion.
Sourcepub const fn last_success_at_ns(self) -> Option<u64>
pub const fn last_success_at_ns(self) -> Option<u64>
Return the latest successful or valid no-work completion time.
Sourcepub const fn last_failure_at_ns(self) -> Option<u64>
pub const fn last_failure_at_ns(self) -> Option<u64>
Return the latest expected or invariant failure completion time.
Sourcepub const fn last_unacknowledged_at_ns(self) -> Option<u64>
pub const fn last_unacknowledged_at_ns(self) -> Option<u64>
Return when a dispatched watchdog attempt was most recently retired.
Sourcepub const fn consecutive_expected_failures(self) -> u64
pub const fn consecutive_expected_failures(self) -> u64
Return consecutive retryable failures since the latest reset outcome.
Trait Implementations§
Source§impl Clone for TimerOutcomeSnapshot
impl Clone for TimerOutcomeSnapshot
Source§fn clone(&self) -> TimerOutcomeSnapshot
fn clone(&self) -> TimerOutcomeSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimerOutcomeSnapshot
Source§impl Debug for TimerOutcomeSnapshot
impl Debug for TimerOutcomeSnapshot
impl Eq for TimerOutcomeSnapshot
Source§impl PartialEq for TimerOutcomeSnapshot
impl PartialEq for TimerOutcomeSnapshot
impl StructuralPartialEq for TimerOutcomeSnapshot
Auto Trait Implementations§
impl Freeze for TimerOutcomeSnapshot
impl RefUnwindSafe for TimerOutcomeSnapshot
impl Send for TimerOutcomeSnapshot
impl Sync for TimerOutcomeSnapshot
impl Unpin for TimerOutcomeSnapshot
impl UnsafeUnpin for TimerOutcomeSnapshot
impl UnwindSafe for TimerOutcomeSnapshot
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