pub struct StatVfs { /* private fields */ }Expand description
A structure containing statistics about a filesystem volume.
Implementations§
Source§impl StatVfs
impl StatVfs
Sourcepub fn block_size(&self) -> usize
pub fn block_size(&self) -> usize
Returns the fundamental file system block size.
Sourcepub fn total_blocks(&self) -> usize
pub fn total_blocks(&self) -> usize
Returns the total number of blocks in the file system.
Sourcepub fn blocks_free(&self) -> usize
pub fn blocks_free(&self) -> usize
Returns the number of free blocks available.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StatVfs
impl RefUnwindSafe for StatVfs
impl Send for StatVfs
impl Sync for StatVfs
impl Unpin for StatVfs
impl UnsafeUnpin for StatVfs
impl UnwindSafe for StatVfs
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