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
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 UnsafeUnpin for Statvfs
impl UnwindSafe for Statvfs
Blanket Implementations
impl<T> Any for Statvfs
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Statvfs
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Statvfs
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Statvfs
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Statvfs
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for Statvfs
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Statvfs
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Statvfs
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Statvfs
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>