Skip to main content

TimerCounters

Struct TimerCounters 

Source
pub struct TimerCounters { /* private fields */ }
Expand description

Epoch-local timer event counters.

Fields are private so mutation preserves saturation and the completion partition. The registry is the sole writer.

Implementations§

Source§

impl TimerCounters

Source

pub const fn schedule_requests(self) -> u64

Return validated activation and reconciliation requests.

Source

pub const fn wakeups_armed(self) -> u64

Return ordinary or scheduler provider one-shots armed.

Source

pub const fn work_dispatched(self) -> u64

Return immediate watchdog work one-shots dispatched.

Source

pub const fn provider_arms(self) -> u64

Return actual provider arms across both callback roles.

Source

pub const fn scheduler_started(self) -> u64

Return accepted watchdog scheduler callbacks.

Source

pub const fn work_started(self) -> u64

Return accepted consumer-work callbacks.

Source

pub const fn work_completed(self) -> u64

Return consumer work whose completion accounting committed.

Source

pub const fn succeeded(self) -> u64

Return successful-work completions.

Source

pub const fn no_work(self) -> u64

Return valid no-work completions.

Source

pub const fn retryable_failure(self) -> u64

Return retryable expected-failure completions.

Source

pub const fn invariant_failure(self) -> u64

Return invariant or terminal-failure completions.

Source

pub const fn cancelled(self) -> u64

Return logical cancellations that changed authoritative state.

Source

pub const fn stale_wakeups(self) -> u64

Return rejected ordinary or scheduler callback generations.

Source

pub const fn stale_work(self) -> u64

Return rejected watchdog work generations.

Source

pub const fn coalesced(self) -> u64

Return scheduling demand satisfied without another logical arm.

Source

pub const fn unacknowledged(self) -> u64

Return committed watchdog dispatches retired without completion.

Source

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

Source§

fn clone(&self) -> TimerCounters

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for TimerCounters

Source§

impl Debug for TimerCounters

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TimerCounters

Source§

fn default() -> TimerCounters

Returns the “default value” for a type. Read more
Source§

impl Eq for TimerCounters

Source§

impl PartialEq for TimerCounters

Source§

fn eq(&self, other: &TimerCounters) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for TimerCounters

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.