Trait sysinfo::DiskExt [] [src]

pub trait DiskExt {
    fn get_type(&self) -> DiskType;
    fn get_name(&self) -> &str;
    fn get_file_system(&self) -> &str;
    fn get_mount_point(&self) -> &str;
    fn get_total_space(&self) -> u64;
    fn get_available_space(&self) -> u64;
    fn update(&mut self) -> bool;
}

Contains all the methods of the Disk struct.

Required Methods

Returns the disk type.

Returns the disk name.

Returns the file system used on this disk (so for example: EXT4, NTFS, etc...).

Returns the mount point of the disk (/ for example).

Returns the total disk size, in bytes.

Returns the available disk size, in bytes.

Update the disk' information.

Implementors