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 &[u8]impl Read for &[u8]impl Write for &mut [u8]
fn file_system(&self) -> &[u8]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
sourcefn mount_point(&self) -> &Path
fn mount_point(&self) -> &Path
Returns the mount point of the disk (
/
for example). Read moresourcefn 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 moreAuto 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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