Expand description
Fetch information about installed disks
Feature disk must be enabled
Supported platforms: Linux
Structs§
- Disk
- Contains basic information about disk
- Partition
- Contains basic information about partition on disk
Enums§
- Disk
Technology - Contains SSD and HDD
(don’t trust this thing because usb sticks are also recognized as HDD) - Filesystem
- Partition
Table Type - Contains most popular partition table types
Constants§
- GPT_
SIGNATURE - GUID Partition Table signature (512-519 bytes)
Functions§
- fetch_
all - Returns
Vec<Disk>
AVecwith all disks found in system
Uses a platform-specific function
If platform isn’t supported it will return errorErrorKind::Unsupported - fetch_
devices - Returns
Vec<String>
AVecwith all disk device names
Pass them tofetch_disk_infoto getDiskUses a platform-specific function
If platform isn’t supported it will return errorErrorKind::Unsupported - fetch_
disk_ info - Returns
Disk
Uses a platform-specific function
If platform isn’t supported it will return errorErrorKind::Unsupported