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 flags(&Self) -> FsFlags

Get the mount flags

pub fn name_max(&Self) -> c_ulong

Get the maximum filename length

Trait Implementations

impl Clone for Statvfs
fn clone(&Self) -> Statvfs
impl Copy for Statvfs
impl Debug for Statvfs
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Eq for Statvfs
impl Hash for Statvfs
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl PartialEq<Statvfs> for Statvfs
fn eq(&Self, other: &Statvfs) -> bool
fn ne(&Self, other: &Statvfs) -> bool
impl StructuralEq for Statvfs

Auto Trait Implementations

impl Send for Statvfs
impl Sync for Statvfs
impl Unpin for Statvfs
impl UnwindSafe for Statvfs

Blanket Implementations

impl<T> Any for T
where
    T: 'static + ?Sized,
fn type_id(&Self) -> TypeId
impl<T> Borrow<T> for T
where
    T: ?Sized,
fn borrow(&Self) -> &T
impl<T> BorrowMut<T> for T
where
    T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T
impl<T> From<T> for T
fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for T
where
    U: From<T>,
fn into(Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

impl<T> ToOwned for T
where
    T: Clone,
type Owned = T
fn to_owned(&Self) -> T
fn clone_into(&Self, target: &mut T)
impl<T, U> TryFrom<U> for T
where
    U: Into<T>,
type Error = Infallible
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for T
where
    U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
fn try_into(Self) -> Result<U, <U as TryFrom<T>>::Error>