pub struct Disk { /* private fields */ }
Expand description
Struct containing a disk information.
Trait Implementations
sourceimpl DiskExt for Disk
impl DiskExt for Disk
sourcefn file_system(&self) -> &[u8]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
fn file_system(&self) -> &[u8]ⓘNotable traits for &'_ mut [u8]impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
Returns the file system used on this disk (so for example: EXT4
, NTFS
, etc…). Read more
sourcefn mount_point(&self) -> &Path
fn mount_point(&self) -> &Path
Returns the mount point of the disk (/
for example). Read more
sourcefn total_space(&self) -> u64
fn total_space(&self) -> u64
Returns the total disk size, in bytes. Read more
sourcefn available_space(&self) -> u64
fn available_space(&self) -> u64
Returns the available disk size, in bytes. Read more
sourcefn is_removable(&self) -> bool
fn is_removable(&self) -> bool
Returns true
if the disk is removable. Read more
impl Eq for Disk
impl StructuralEq for Disk
impl StructuralPartialEq for Disk
Auto Trait Implementations
impl RefUnwindSafe for Disk
impl Send for Disk
impl Sync for Disk
impl Unpin for Disk
impl UnwindSafe for Disk
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more