pub struct DirectIoStats {
pub direct_bytes_read: u64,
pub buffered_bytes_read: u64,
pub direct_bytes_written: u64,
pub buffered_bytes_written: u64,
pub direct_reads: u64,
pub buffered_reads: u64,
}Expand description
Statistics for Direct I/O operations
Fields§
§direct_bytes_read: u64Total bytes read with Direct I/O
buffered_bytes_read: u64Total bytes read with buffered I/O
direct_bytes_written: u64Total bytes written with Direct I/O
buffered_bytes_written: u64Total bytes written with buffered I/O
direct_reads: u64Number of Direct I/O reads
buffered_reads: u64Number of buffered reads
Implementations§
Source§impl DirectIoStats
impl DirectIoStats
Sourcepub fn record_direct_read(&mut self, bytes: u64)
pub fn record_direct_read(&mut self, bytes: u64)
Record a Direct I/O read
Sourcepub fn record_buffered_read(&mut self, bytes: u64)
pub fn record_buffered_read(&mut self, bytes: u64)
Record a buffered read
Sourcepub fn total_bytes_read(&self) -> u64
pub fn total_bytes_read(&self) -> u64
Get total bytes read
Sourcepub fn direct_io_ratio(&self) -> f64
pub fn direct_io_ratio(&self) -> f64
Get Direct I/O ratio
Trait Implementations§
Source§impl Clone for DirectIoStats
impl Clone for DirectIoStats
Source§fn clone(&self) -> DirectIoStats
fn clone(&self) -> DirectIoStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DirectIoStats
impl Debug for DirectIoStats
Source§impl Default for DirectIoStats
impl Default for DirectIoStats
Source§fn default() -> DirectIoStats
fn default() -> DirectIoStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DirectIoStats
impl RefUnwindSafe for DirectIoStats
impl Send for DirectIoStats
impl Sync for DirectIoStats
impl Unpin for DirectIoStats
impl UnsafeUnpin for DirectIoStats
impl UnwindSafe for DirectIoStats
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more