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§
impl Copy for Statvfs
impl Eq for Statvfs
impl StructuralPartialEq for Statvfs
Auto Trait Implementations§
impl Freeze for Statvfs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)