Skip to main content

ResolverStats

Struct ResolverStats 

Source
pub struct ResolverStats {
Show 13 fields pub built: usize, pub submitted: usize, pub posted: usize, pub popped: usize, pub failed_operations: usize, pub failed_submits: usize, pub expired_waits: usize, pub empty_wakes: usize, pub signals: usize, pub reorderings: usize, pub deferrals: usize, pub barrier_holds: usize, pub partial_transfers: usize,
}
Expand description

What a resolution actually did, readable while the resolver is registered.

A test that narrows the config to isolate one freedom needs to know the freedom was exercised; otherwise a green run means only that the seed never took that branch. These counters are how a test asserts against the run rather than against the configuration.

Fields§

§built: usize

Operations built (any Build* call that returned success).

§submitted: usize

Operations moved from built to submitted.

§posted: usize

Completions posted to the completion queue.

§popped: usize

Completions handed to a PopIoRingCompletion.

§failed_operations: usize

Posts that carried a failure result (RS-P-3 exercised).

§failed_submits: usize

Submits declined, leaving built operations queued (RS-P-7).

§expired_waits: usize

Waits answered as expired (RS-P-4).

§empty_wakes: usize

Waits answered successfully with nothing poppable (RS-P-5).

§signals: usize

Event signals raised (RS-P-6; zero when no event is attached).

§reorderings: usize

Posts that took something other than the oldest unresolved operation (RS-P-2 exercised – reordering actually happened, as distinct from having been permitted).

§deferrals: usize

Times an operation was left unresolved by a consultation (RS-P-1 exercised – something actually pended).

§barrier_holds: usize

Times a drain-flagged operation was held back because something queued before it was still unresolved (RS-C-4 actually bit, as distinct from having been vacuously satisfied).

§partial_transfers: usize

Successful transfers reported short under RS-P-8.

Trait Implementations§

Source§

impl Clone for ResolverStats

Source§

fn clone(&self) -> Self

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 ResolverStats

Source§

impl Debug for ResolverStats

Source§

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

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

impl Default for ResolverStats

Source§

fn default() -> Self

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

impl Eq for ResolverStats

Source§

impl PartialEq for ResolverStats

Source§

fn eq(&self, other: &Self) -> 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 ResolverStats

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.