Module disk

Module disk 

Source
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§

DiskTechnology
Contains SSD and HDD
(don’t trust this thing because usb sticks are also recognized as HDD)
Filesystem
PartitionTableType
Contains most popular partition table types

Constants§

GPT_SIGNATURE
GUID Partition Table signature (512-519 bytes)

Functions§

fetch_all
Returns Vec<Disk>
A Vec with all disks found in system
Uses a platform-specific function
If platform isn’t supported it will return error ErrorKind::Unsupported
fetch_devices
Returns Vec<String>
A Vec with all disk device names
Pass them to fetch_disk_info to get Disk Uses a platform-specific function
If platform isn’t supported it will return error ErrorKind::Unsupported
fetch_disk_info
Returns Disk
Uses a platform-specific function
If platform isn’t supported it will return error ErrorKind::Unsupported