Struct Statfs

struct Statfs(_)

Describes a mounted file system

Implementations

impl Statfs

fn filesystem_type(self: &Self) -> FsType

Magic code defining system type

fn optimal_transfer_size(self: &Self) -> __fsword_t

Optimal transfer block size

fn block_size(self: &Self) -> __fsword_t

Size of a block

fn flags(self: &Self) -> FsFlags

Get the mount flags

fn maximum_name_length(self: &Self) -> __fsword_t

Maximum length of filenames

fn blocks(self: &Self) -> u64

Total data blocks in filesystem

fn blocks_free(self: &Self) -> u64

Free blocks in filesystem

fn blocks_available(self: &Self) -> u64

Free blocks available to unprivileged user

fn files(self: &Self) -> u64

Total file nodes in filesystem

fn files_free(self: &Self) -> u64

Free file nodes in filesystem

fn filesystem_id(self: &Self) -> fsid_t

Filesystem ID

impl Clone for Statfs

fn clone(self: &Self) -> Statfs

impl Copy for Statfs

impl Debug for Statfs

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Freeze for Statfs

impl RefUnwindSafe for Statfs

impl Send for Statfs

impl Sync for Statfs

impl Unpin for Statfs

impl UnsafeUnpin for Statfs

impl UnwindSafe for Statfs

impl<T> Any for Statfs

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Statfs

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Statfs

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Statfs

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Statfs

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Statfs

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Statfs

fn into(self: Self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom for Statfs

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Statfs

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>