pub struct Drive {
pub capacity_sectors: u64,
pub mounted: bool,
pub total_blocks: u64,
pub used_blocks: u64,
/* private fields */
}Expand description
What Fs::drive reports about the storage fs serves.
Fields§
§capacity_sectors: u64The device’s size in 512-byte sectors, as fs re-derives it from the block driver on each ask.
ZERO means there is no storage device at all - not a device of size zero.
mounted: boolWhether a GSFS volume is mounted on it.
total_blocks: u64Blocks in the volume, and blocks in use (zero when nothing is mounted).
used_blocks: u64Implementations§
Trait Implementations§
impl Copy for Drive
impl Eq for Drive
impl StructuralPartialEq for Drive
Auto Trait Implementations§
impl Freeze for Drive
impl RefUnwindSafe for Drive
impl Send for Drive
impl Sync for Drive
impl Unpin for Drive
impl UnsafeUnpin for Drive
impl UnwindSafe for Drive
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