#[repr(C)]
pub struct statvfs { pub f_bsize: c_ulong, pub f_frsize: c_ulong, pub f_blocks: fsblkcnt_t, pub f_bfree: fsblkcnt_t, pub f_bavail: fsblkcnt_t, pub f_files: fsfilcnt_t, pub f_ffree: fsfilcnt_t, pub f_favail: fsfilcnt_t, pub f_fsid: c_ulong, pub f_flag: c_ulong, pub f_namemax: c_ulong, }
Expand description

@brief File system information

Fields

f_bsize: c_ulong

< File system block size.

f_frsize: c_ulong

< Fundamental file system block size.

f_blocks: fsblkcnt_t

< Total number of blocks on file system in units of @c f_frsize.

f_bfree: fsblkcnt_t

< Total number of free blocks.

f_bavail: fsblkcnt_t

< Number of free blocks available to non-privileged process.

f_files: fsfilcnt_t

< Total number of file serial numbers.

f_ffree: fsfilcnt_t

< Total number of free file serial numbers.

f_favail: fsfilcnt_t

< Number of file serial numbers available to non-privileged process.

f_fsid: c_ulong

< File system ID.

f_flag: c_ulong

< Bit mask of f_flag values.

f_namemax: c_ulong

< Maximum filename length.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.