Struct Statvfs
#[repr(transparent)]
pub struct Statvfs(/* private field */);
Wrapper around the POSIX statvfs struct
For more information see the statvfs(3) man pages.
Implementations
impl Statvfs
fn block_size(&self) -> c_ulongget the file system block size
fn fragment_size(&self) -> c_ulongGet the fundamental file system block size
fn blocks(&self) -> fsblkcnt_tGet the number of blocks.
Units are in units of
fragment_size()fn blocks_free(&self) -> fsblkcnt_tGet the number of free blocks in the file system
fn blocks_available(&self) -> fsblkcnt_tGet the number of free blocks for unprivileged users
fn files(&self) -> fsfilcnt_tGet the total number of file inodes
fn files_free(&self) -> fsfilcnt_tGet the number of free file inodes
fn files_available(&self) -> fsfilcnt_tGet the number of free file inodes for unprivileged users
fn filesystem_id(&self) -> c_ulongGet the file system id
fn flags(&self) -> FsFlagsGet the mount flags
fn name_max(&self) -> c_ulongGet the maximum filename length
Trait Implementations
impl Clone for Statvfs
fn clone(&self) -> Self
impl Copy for Statvfs
impl Debug for Statvfs
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for Statvfs
impl Hash for Statvfs
fn hash<__H: Hasher>(&self, state: &mut __H)
impl PartialEq for Statvfs
fn eq(&self, other: &Self) -> bool