pub struct Disk {
pub name: String,
pub mount_point: String,
pub file_system: Option<String>,
pub total_bytes: u64,
pub available_bytes: u64,
pub removable: bool,
pub kind: Option<String>,
}Expand description
A block device and its mount, as shown in the System tab.
Fields§
§name: StringDevice name; the stable key for diffing across re-emissions.
mount_point: StringMount point path.
file_system: Option<String>Filesystem type, when known.
total_bytes: u64Total capacity in bytes.
available_bytes: u64Free space in bytes.
removable: boolWhether the device is removable.
kind: Option<String>Device kind (e.g. "SSD", "HDD"), when known.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Disk
impl RefUnwindSafe for Disk
impl Send for Disk
impl Sync for Disk
impl Unpin for Disk
impl UnsafeUnpin for Disk
impl UnwindSafe for Disk
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