pub struct Disk { /* private fields */ }
Expand description
Struct containing a disk information.
Trait Implementations§
source§impl DiskExt for Disk
impl DiskExt for Disk
source§fn get_file_system(&self) -> &[u8] ⓘ
fn get_file_system(&self) -> &[u8] ⓘ
Returns the file system used on this disk (so for example:
EXT4
, NTFS
, etc…).source§fn get_mount_point(&self) -> &Path
fn get_mount_point(&self) -> &Path
Returns the mount point of the disk (
/
for example).source§fn get_total_space(&self) -> u64
fn get_total_space(&self) -> u64
Returns the total disk size, in bytes.
source§fn get_available_space(&self) -> u64
fn get_available_space(&self) -> u64
Returns the available disk size, in bytes.