pub struct Stat {
pub read_ios: u64,
pub read_merges: u64,
pub read_sectors: u64,
pub read_ticks: u64,
pub write_ios: u64,
pub write_merges: u64,
pub write_sectors: u64,
pub write_ticks: u64,
pub in_flight: u64,
pub io_ticks: u64,
pub time_in_queue: u64,
}Expand description
Block device statistics. Time values are in milliseconds.
Fields§
§read_ios: u64Returns the number of read I/Os processed.
read_merges: u64Returns the number of read I/Os merged with in-queue I/O.
read_sectors: u64Returns the number of sectors read.
read_ticks: u64Returns the total wait time for read requests.
write_ios: u64Returns the number of write I/Os processed.
write_merges: u64Returns the number of write I/Os merged with in-queue I/O.
write_sectors: u64Returns the number of sectors written.
write_ticks: u64Returns the total wait time for write requests.
in_flight: u64Returns the number of I/Os currently in flight.
io_ticks: u64Returns the total time this block device has been active.
time_in_queue: u64Returns the total wait time for all requests.
Implementations§
Source§impl Stat
impl Stat
Sourcepub const fn read_bytes(&self) -> u64
pub const fn read_bytes(&self) -> u64
Returns the total amount of bytes read (assuming 512 byte sectors).
Sourcepub const fn write_bytes(&self) -> u64
pub const fn write_bytes(&self) -> u64
Returns the total amount of bytes written (assuming 512 byte sectors).
Trait Implementations§
Source§impl AddAssign for Stat
impl AddAssign for Stat
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreSource§impl Ord for Stat
impl Ord for Stat
Source§impl PartialOrd for Stat
impl PartialOrd for Stat
impl Copy for Stat
impl Eq for Stat
impl StructuralPartialEq for Stat
Auto Trait Implementations§
impl Freeze for Stat
impl RefUnwindSafe for Stat
impl Send for Stat
impl Sync for Stat
impl Unpin for Stat
impl UnsafeUnpin for Stat
impl UnwindSafe for Stat
Blanket Implementations§
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