pub struct DriveUsage {
pub name: String,
pub total_mb: u64,
pub used_mb: u64,
pub read_bytes_per_sec: u64,
pub write_bytes_per_sec: u64,
}Expand description
Space and activity of one fixed drive.
Fields§
§name: StringDrive letter with its colon on Windows, for example C:; mount point elsewhere, for
example /home.
total_mb: u64Capacity of the volume.
used_mb: u64Space in use.
read_bytes_per_sec: u64Bytes read per second over the last second.
write_bytes_per_sec: u64Bytes written per second over the last second.
Trait Implementations§
Source§impl Clone for DriveUsage
impl Clone for DriveUsage
Source§impl Debug for DriveUsage
impl Debug for DriveUsage
Source§impl<'de> Deserialize<'de> for DriveUsage
impl<'de> Deserialize<'de> for DriveUsage
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
impl Eq for DriveUsage
Source§impl PartialEq for DriveUsage
impl PartialEq for DriveUsage
Source§impl Serialize for DriveUsage
impl Serialize for DriveUsage
impl StructuralPartialEq for DriveUsage
Auto Trait Implementations§
impl Forget for DriveUsage
impl Freeze for DriveUsage
impl RefUnwindSafe for DriveUsage
impl Send for DriveUsage
impl Sync for DriveUsage
impl Unpin for DriveUsage
impl UnsafeUnpin for DriveUsage
impl UnwindSafe for DriveUsage
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