#[non_exhaustive]pub enum DiskKind {
Ssd,
Hdd,
Removable,
Network,
Optical,
Ram,
Virtual,
Unknown,
}Expand description
What kind of storage a Disk is on. Telling solid-state from rotating
disks arrives in 0.5 (DSK-04); until then a fixed local disk is Unknown.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ssd
Solid-state.
Hdd
Rotating.
Removable
Removable media (USB sticks, card readers).
Network
A network filesystem.
Optical
Optical media.
Ram
Memory-backed (tmpfs, a RAM disk).
Virtual
A virtual disk or filesystem (an overlay root in a container).
Unknown
Not known.
Trait Implementations§
impl Copy for DiskKind
impl Eq for DiskKind
impl StructuralPartialEq for DiskKind
Auto Trait Implementations§
impl Freeze for DiskKind
impl RefUnwindSafe for DiskKind
impl Send for DiskKind
impl Sync for DiskKind
impl Unpin for DiskKind
impl UnsafeUnpin for DiskKind
impl UnwindSafe for DiskKind
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