pub struct TimerStatistics {
pub execution_count: usize,
pub successful_executions: usize,
pub failed_executions: usize,
pub elapsed_time: Duration,
pub last_error: Option<TimerError>,
}Expand description
Statistics for a timer run.
Fields§
§execution_count: usizeNumber of callback executions attempted during the current run.
successful_executions: usizeNumber of successful callback executions.
failed_executions: usizeNumber of failed callback executions.
elapsed_time: DurationTotal elapsed time since the current run started.
last_error: Option<TimerError>The most recent callback error observed in the current run.
Trait Implementations§
Source§impl Clone for TimerStatistics
impl Clone for TimerStatistics
Source§fn clone(&self) -> TimerStatistics
fn clone(&self) -> TimerStatistics
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 TimerStatistics
impl Debug for TimerStatistics
Source§impl Default for TimerStatistics
impl Default for TimerStatistics
Source§fn default() -> TimerStatistics
fn default() -> TimerStatistics
Returns the “default value” for a type. Read more
Source§impl PartialEq for TimerStatistics
impl PartialEq for TimerStatistics
impl Eq for TimerStatistics
impl StructuralPartialEq for TimerStatistics
Auto Trait Implementations§
impl Freeze for TimerStatistics
impl RefUnwindSafe for TimerStatistics
impl Send for TimerStatistics
impl Sync for TimerStatistics
impl Unpin for TimerStatistics
impl UnsafeUnpin for TimerStatistics
impl UnwindSafe for TimerStatistics
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