Skip to main content

CacheIoDirectionSnapshot

Struct CacheIoDirectionSnapshot 

Source
#[non_exhaustive]
pub struct CacheIoDirectionSnapshot { pub requests_submitted: u64, pub requests_succeeded: u64, pub requests_cancelled: u64, pub requests_failed: u64, pub requests_in_flight: u64, pub requests_in_flight_peak: u64, pub slot_wait_ns: u64, pub request_time_ns: u64, pub buffered: CacheIoPathSnapshot, pub direct: CacheIoPathSnapshot, }
Expand description

Cumulative engine-request and runtime-file-I/O statistics for one direction.

Request counters describe logical engine requests. Path counters describe positive runtime file operations and are not physical device I/O.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§requests_submitted: u64

Requests accepted by the engine command queue.

§requests_succeeded: u64

Mutually exclusive terminal outcomes for submitted requests.

§requests_cancelled: u64

Submitted requests that completed through cancellation.

§requests_failed: u64

Submitted requests that completed with an error.

§requests_in_flight: u64

Requests currently holding an engine slot.

§requests_in_flight_peak: u64

Sum of the participating engines’ high-water marks. This is a conservative bound when a direction spans multiple engines, not a synchronized process-wide peak.

§slot_wait_ns: u64

Nanoseconds spent acquiring an engine slot. Pre-reserved nonwaiting reads do not contribute to this counter.

§request_time_ns: u64

Nanoseconds from slot reservation to terminal completion for submitted requests.

§buffered: CacheIoPathSnapshot

Runtime operations issued through buffered file descriptors.

§direct: CacheIoPathSnapshot

Runtime operations issued through direct-I/O file descriptors.

Trait Implementations§

Source§

impl Clone for CacheIoDirectionSnapshot

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 CacheIoDirectionSnapshot

Source§

impl Debug for CacheIoDirectionSnapshot

Source§

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

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

impl Default for CacheIoDirectionSnapshot

Source§

fn default() -> Self

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

impl Eq for CacheIoDirectionSnapshot

Source§

impl PartialEq for CacheIoDirectionSnapshot

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 CacheIoDirectionSnapshot

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.