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 moreimpl Eq for Disk
impl StructuralPartialEq for Disk
Auto Trait Implementations§
impl Freeze for Disk
impl RefUnwindSafe for Disk
impl Send for Disk
impl Sync for Disk
impl Unpin for Disk
impl UnwindSafe for Disk
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more