pub struct Statvfs(/* private fields */);
Expand description
Wrapper around the POSIX statvfs
struct
For more information see the statvfs(3)
man pages.
Implementations§
source§impl Statvfs
impl Statvfs
sourcepub fn block_size(&self) -> c_ulong
pub fn block_size(&self) -> c_ulong
get the file system block size
sourcepub fn fragment_size(&self) -> c_ulong
pub fn fragment_size(&self) -> c_ulong
Get the fundamental file system block size
sourcepub fn blocks(&self) -> fsblkcnt_t
pub fn blocks(&self) -> fsblkcnt_t
Get the number of blocks.
Units are in units of fragment_size()
sourcepub fn blocks_free(&self) -> fsblkcnt_t
pub fn blocks_free(&self) -> fsblkcnt_t
Get the number of free blocks in the file system
sourcepub fn blocks_available(&self) -> fsblkcnt_t
pub fn blocks_available(&self) -> fsblkcnt_t
Get the number of free blocks for unprivileged users
sourcepub fn files(&self) -> fsfilcnt_t
pub fn files(&self) -> fsfilcnt_t
Get the total number of file inodes
sourcepub fn files_free(&self) -> fsfilcnt_t
pub fn files_free(&self) -> fsfilcnt_t
Get the number of free file inodes
sourcepub fn files_available(&self) -> fsfilcnt_t
pub fn files_available(&self) -> fsfilcnt_t
Get the number of free file inodes for unprivileged users
sourcepub fn filesystem_id(&self) -> c_ulong
pub fn filesystem_id(&self) -> c_ulong
Get the file system id
Trait Implementations§
source§impl PartialEq for Statvfs
impl PartialEq for Statvfs
impl Copy for Statvfs
impl Eq for Statvfs
impl StructuralPartialEq for Statvfs
Auto Trait Implementations§
impl RefUnwindSafe for Statvfs
impl Send for Statvfs
impl Sync for Statvfs
impl Unpin 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