Struct Statfs

#[repr(transparent)]
pub struct Statfs(/* private field */);

Describes a mounted file system

Implementations

impl Statfs

fn filesystem_type(&self) -> FsType

Magic code defining system type

fn optimal_transfer_size(&self) -> __fsword_t

Optimal transfer block size

fn block_size(&self) -> __fsword_t

Size of a block

fn flags(&self) -> FsFlags

Get the mount flags

fn maximum_name_length(&self) -> __fsword_t

Maximum length of filenames

fn blocks(&self) -> u64

Total data blocks in filesystem

fn blocks_free(&self) -> u64

Free blocks in filesystem

fn blocks_available(&self) -> u64

Free blocks available to unprivileged user

fn files(&self) -> u64

Total file nodes in filesystem

fn files_free(&self) -> u64

Free file nodes in filesystem

fn filesystem_id(&self) -> fsid_t

Filesystem ID

Trait Implementations

impl Clone for Statfs

fn clone(&self) -> Self

impl Copy for Statfs

impl Debug for Statfs

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

Auto Trait Implementations

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

Blanket Implementations

impl<T> Any for Statfs where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Statfs where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Statfs where T: ?Sized,

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

impl<T> CloneToUninit for Statfs where T: Clone,

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

impl<T> From<T> for Statfs

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Statfs where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for Statfs 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, U> TryFrom<U> for Statfs where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Statfs where U: TryFrom<T>,

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