[][src]Struct nix::sys::statvfs::vfs::Statvfs

#[repr(C)]
pub struct Statvfs {
    pub f_bsize: c_ulong,
    pub f_frsize: c_ulong,
    pub f_blocks: u64,
    pub f_bfree: u64,
    pub f_bavail: u64,
    pub f_files: u64,
    pub f_ffree: u64,
    pub f_favail: u64,
    pub f_fsid: c_ulong,
    pub f_flag: FsFlags,
    pub f_namemax: c_ulong,
    // some fields omitted
}

The posix statvfs struct

http://linux.die.net/man/2/statvfs

Fields

f_bsize: c_ulong

Filesystem block size. This is the value that will lead to most efficient use of the filesystem

f_frsize: c_ulong

Fragment Size -- actual minimum unit of allocation on this filesystem

f_blocks: u64

Total number of blocks on the filesystem

f_bfree: u64

Number of unused blocks on the filesystem, including those reserved for root

f_bavail: u64

Number of blocks available to non-root users

f_files: u64

Total number of inodes available on the filesystem

f_ffree: u64

Number of inodes available on the filesystem

f_favail: u64

Number of inodes available to non-root users

f_fsid: c_ulong

File System ID

f_flag: FsFlags

Mount Flags

f_namemax: c_ulong

Maximum filename length

Methods

impl Statvfs[src]

pub fn for_path<P: ?Sized + NixPath>(path: &P) -> Result<Statvfs>[src]

Create a new Statvfs object and fill it with information about the mount that contains path

pub fn update_with_path<P: ?Sized + NixPath>(&mut self, path: &P) -> Result<()>[src]

Replace information in this struct with information about path

pub fn for_fd<T: AsRawFd>(fd: &T) -> Result<Statvfs>[src]

Create a new Statvfs object and fill it with information from fd

pub fn update_with_fd<T: AsRawFd>(&mut self, fd: &T) -> Result<()>[src]

Replace information in this struct with information about fd

Trait Implementations

impl Clone for Statvfs[src]

impl Copy for Statvfs[src]

impl Default for Statvfs[src]

fn default() -> Self[src]

Create a statvfs object initialized to all zeros

impl Debug for Statvfs[src]

Auto Trait Implementations

impl Send for Statvfs

impl Sync for Statvfs

impl Unpin for Statvfs

impl UnwindSafe for Statvfs

impl RefUnwindSafe for Statvfs

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]