Struct lfs_core::Disk [−][src]
pub struct Disk {
pub name: String,
pub rotational: Option<bool>,
pub removable: Option<bool>,
pub ram: bool,
pub crypted: bool,
}Expand description
what we have most looking like a physical device
Fields
name: Stringa name, like “sda”, “sdc”, “nvme0n1”, etc.
rotational: Option<bool>true for HDD, false for SSD, None for unknown. This information isn’t reliable for USB devices
removable: Option<bool>whether the system thinks the media is removable. Seems reliable.
ram: boolwhether it’s a RAM disk
crypted: boolwhether it’s a crypted disk
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Diskimpl UnwindSafe for DiskBlanket Implementations
Mutably borrows from an owned value. Read more