pub enum DiskKind {
HDD,
SSD,
Unknown(isize),
}
Expand description
Enum containing the different supported kinds of disks.
This type is returned by Disk::kind
.
use sysinfo::Disks;
let disks = Disks::new_with_refreshed_list();
for disk in disks.list() {
println!("{:?}: {:?}", disk.name(), disk.kind());
}
Variants§
Trait Implementations§
source§impl PartialEq for DiskKind
impl PartialEq for DiskKind
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 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