pub struct DiskIo {
pub name: String,
pub read_bytes_per_sec: f64,
pub write_bytes_per_sec: f64,
pub busy_percent: Option<f32>,
pub temperature_c: Option<f32>,
}Expand description
I/O activity of a block device.
Fields§
§name: StringKernel device name (e.g. "nvme0n1", "sda").
read_bytes_per_sec: f64Read throughput.
write_bytes_per_sec: f64Write throughput.
busy_percent: Option<f32>Fraction of time the device had I/O in flight, where the platform reports it (Linux).
temperature_c: Option<f32>Drive temperature (NVMe composite sensor), if available.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DiskIo
impl<'de> Deserialize<'de> for DiskIo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DiskIo
impl RefUnwindSafe for DiskIo
impl Send for DiskIo
impl Sync for DiskIo
impl Unpin for DiskIo
impl UnsafeUnpin for DiskIo
impl UnwindSafe for DiskIo
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