pub struct DiskSpace {
pub total_bytes: u64,
pub free_bytes: u64,
}Expand description
Space on one filesystem, in bytes.
Fields§
§total_bytes: u64§free_bytes: u64Bytes an unprivileged program may still write. On Unix this leaves out
the blocks reserved for the superuser, so total - free can exceed
what df lists as used.
Trait Implementations§
impl Copy for DiskSpace
impl Eq for DiskSpace
impl StructuralPartialEq for DiskSpace
Auto Trait Implementations§
impl Freeze for DiskSpace
impl RefUnwindSafe for DiskSpace
impl Send for DiskSpace
impl Sync for DiskSpace
impl Unpin for DiskSpace
impl UnsafeUnpin for DiskSpace
impl UnwindSafe for DiskSpace
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