pub struct TimerCounters { /* private fields */ }Expand description
Epoch-local timer event counters.
Fields are private so all mutation preserves saturation and the completion partition. Consumer adapters read values through the accessors.
Implementations§
Source§impl TimerCounters
impl TimerCounters
Sourcepub const fn record_request(&mut self)
pub const fn record_request(&mut self)
Record a validated schedule or reconciliation request.
Sourcepub const fn record_arm(&mut self)
pub const fn record_arm(&mut self)
Record an actual one-shot provider arm.
Sourcepub const fn record_start(&mut self)
pub const fn record_start(&mut self)
Record a non-stale callback entering logical execution.
Sourcepub const fn record_completion(&mut self, outcome: TimerCompletionOutcome)
pub const fn record_completion(&mut self, outcome: TimerCompletionOutcome)
Record one returned callback and its single completion class.
Sourcepub const fn record_cancellation(&mut self)
pub const fn record_cancellation(&mut self)
Record a logical cancellation that wins arbitration.
Sourcepub const fn record_stale(&mut self)
pub const fn record_stale(&mut self)
Record a provider callback or completion rejected as stale.
Sourcepub const fn record_coalesced(&mut self)
pub const fn record_coalesced(&mut self)
Record scheduling demand merged into existing work.
Sourcepub const fn record_interruption(&mut self)
pub const fn record_interruption(&mut self)
Record a started generation established not to have completed.
The interruption belongs to the epoch in which it is observed. It can
therefore describe a generation started in an earlier epoch and has no
arithmetic invariant with this epoch’s started count.
Sourcepub const fn retryable_failure(self) -> u64
pub const fn retryable_failure(self) -> u64
Return retryable expected-failure completions.
Sourcepub const fn invariant_failure(self) -> u64
pub const fn invariant_failure(self) -> u64
Return invariant or terminal-failure completions.
Sourcepub const fn interrupted(self) -> u64
pub const fn interrupted(self) -> u64
Return incomplete generations observed in this epoch.
Sourcepub const fn completion_partition_is_valid(self) -> bool
pub const fn completion_partition_is_valid(self) -> bool
Check that every completion belongs to exactly one outcome class.
Trait Implementations§
Source§impl Clone for TimerCounters
impl Clone for TimerCounters
Source§fn clone(&self) -> TimerCounters
fn clone(&self) -> TimerCounters
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more