pub struct Statfs(/* private fields */);
Expand description
Describes a mounted file system
Implementations§
source§impl Statfs
impl Statfs
sourcepub fn filesystem_type_name(&self) -> &str
pub fn filesystem_type_name(&self) -> &str
Magic code defining system type
sourcepub fn optimal_transfer_size(&self) -> i32
pub fn optimal_transfer_size(&self) -> i32
Optimal transfer block size
sourcepub fn block_size(&self) -> u32
pub fn block_size(&self) -> u32
Size of a block
sourcepub fn blocks_free(&self) -> u64
pub fn blocks_free(&self) -> u64
Free blocks in filesystem
sourcepub fn blocks_available(&self) -> u64
pub fn blocks_available(&self) -> u64
Free blocks available to unprivileged user
sourcepub fn files_free(&self) -> u64
pub fn files_free(&self) -> u64
Free file nodes in filesystem
sourcepub fn filesystem_id(&self) -> fsid_t
pub fn filesystem_id(&self) -> fsid_t
Filesystem ID
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Statfs
impl RefUnwindSafe for Statfs
impl Send for Statfs
impl Sync for Statfs
impl Unpin for Statfs
impl UnwindSafe for Statfs
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