Struct nix::sys::statvfs::Statvfs
#[repr(transparent)]
pub struct Statvfs(_);Documentation
Wrapper around the POSIX statvfs struct
For more information see the statvfs(3) man pages.
Implementations
impl Statvfs
pub fn block_size(&Self) -> c_ulong
get the file system block size
pub fn fragment_size(&Self) -> c_ulong
Get the fundamental file system block size
pub fn blocks(&Self) -> libc::fsblkcnt_t
Get the number of blocks.
Units are in units of fragment_size()
pub fn blocks_free(&Self) -> libc::fsblkcnt_t
Get the number of free blocks in the file system
pub fn blocks_available(&Self) -> libc::fsblkcnt_t
Get the number of free blocks for unprivileged users
pub fn files(&Self) -> libc::fsfilcnt_t
Get the total number of file inodes
pub fn files_free(&Self) -> libc::fsfilcnt_t
Get the number of free file inodes
pub fn files_available(&Self) -> libc::fsfilcnt_t
Get the number of free file inodes for unprivileged users
pub fn filesystem_id(&Self) -> c_ulong
Get the file system id
pub fn name_max(&Self) -> c_ulong
Get the maximum filename length
Trait Implementations
impl Debug for Statvfs
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl Hash for Statvfs
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()impl StructuralEq for Statvfsimpl StructuralPartialEq for StatvfsAuto Trait Implementations
impl RefUnwindSafe for Statvfsimpl UnwindSafe for StatvfsBlanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T