#[non_exhaustive]pub struct ProcessIo {
pub read: Bytes,
pub written: Bytes,
pub read_ops: Option<u64>,
pub write_ops: Option<u64>,
pub storage_only: bool,
}Expand description
How much this process has read from and written to storage since it started.
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.read: BytesBytes read from storage.
written: BytesBytes written to storage.
read_ops: Option<u64>Read calls, when reported.
write_ops: Option<u64>Write calls, when reported.
storage_only: boolFalse where the OS counts all I/O, not only storage (Windows counts network and device I/O too).
Trait Implementations§
impl Copy for ProcessIo
impl Eq for ProcessIo
impl StructuralPartialEq for ProcessIo
Auto Trait Implementations§
impl Forget for ProcessIo
impl Freeze for ProcessIo
impl RefUnwindSafe for ProcessIo
impl Send for ProcessIo
impl Sync for ProcessIo
impl Unpin for ProcessIo
impl UnsafeUnpin for ProcessIo
impl UnwindSafe for ProcessIo
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