Struct nix::sys::statfs::Statfs

#[repr(transparent)]
pub struct Statfs(_);
Documentation

Describes a mounted file system

Implementations

impl Statfs
pub fn filesystem_type(&Self) -> FsType

Magic code defining system type

pub fn optimal_transfer_size(&Self) -> libc::__fsword_t

Optimal transfer block size

pub fn block_size(&Self) -> libc::__fsword_t

Size of a block

pub fn maximum_name_length(&Self) -> libc::__fsword_t

Maximum length of filenames

pub fn blocks(&Self) -> libc::c_ulong

Total data blocks in filesystem

pub fn blocks_free(&Self) -> libc::c_ulong

Free blocks in filesystem

pub fn blocks_available(&Self) -> libc::c_ulong

Free blocks available to unprivileged user

pub fn files(&Self) -> libc::c_ulong

Total file nodes in filesystem

pub fn files_free(&Self) -> libc::c_ulong

Free file nodes in filesystem

pub fn filesystem_id(&Self) -> fsid_t

Filesystem ID

Trait Implementations

impl Clone for Statfs
fn clone(&Self) -> Statfs
impl Copy for Statfs
impl Debug for Statfs
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Result

Auto Trait Implementations

impl RefUnwindSafe for Statfs
impl Send for Statfs
impl Sync for Statfs
impl Unpin for Statfs
impl UnwindSafe for Statfs

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>