Struct sysinfo::Disk
[−]
[src]
pub struct Disk { /* fields omitted */ }
Struct containing a disk information.
Methods
impl Disk
[src]
fn get_type(&self) -> DiskType
Returns the disk type.
fn get_name(&self) -> &str
Returns the disk name.
fn get_file_system(&self) -> &str
Returns the file system used on this disk (so for example: EXT4
, NTFS
, etc...).
fn get_mount_point(&self) -> &str
Returns the mount point of the disk (/
for example).
fn get_total_space(&self) -> u64
Returns the total disk size, in bytes.
fn get_available_space(&self) -> u64
Returns the available disk size, in bytes.
fn update(&mut self) -> bool
Update the disk' information.