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 file_system(&self) -> &[u8] ⓘ
fn file_system(&self) -> &[u8] ⓘ
source§fn mount_point(&self) -> &Path
fn mount_point(&self) -> &Path
Returns the mount point of the disk (
/
for example). Read moresource§fn total_space(&self) -> u64
fn total_space(&self) -> u64
Returns the total disk size, in bytes. Read more
source§fn available_space(&self) -> u64
fn available_space(&self) -> u64
Returns the available disk size, in bytes. Read more
source§fn is_removable(&self) -> bool
fn is_removable(&self) -> bool
Returns
true
if the disk is removable. Read more