Struct nix::sys::statfs::Statfs
#[repr(transparent)]
pub struct Statfs(_);
Documentation
Describes a mounted file system
Implementations
impl Statfs
pub fn filesystem_type(&Self) -> FsType
Magic code defining system type
pub fn optimal_transfer_size(&Self) -> libc::__fsword_t
Optimal transfer block size
pub fn block_size(&Self) -> libc::__fsword_t
Size of a block
pub fn maximum_name_length(&Self) -> libc::__fsword_t
Maximum length of filenames
pub fn blocks(&Self) -> libc::c_ulong
Total data blocks in filesystem
pub fn blocks_free(&Self) -> libc::c_ulong
Free blocks in filesystem
pub fn blocks_available(&Self) -> libc::c_ulong
Free blocks available to unprivileged user
pub fn files(&Self) -> libc::c_ulong
Total file nodes in filesystem
pub fn files_free(&Self) -> libc::c_ulong
Free file nodes in filesystem
pub fn filesystem_id(&Self) -> fsid_t
Filesystem ID
Trait Implementations
impl Debug for Statfs
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
Auto Trait Implementations
impl RefUnwindSafe for Statfs
impl UnwindSafe for Statfs
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T