Struct nix::sys::statfs::Statfs[][src]

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

Implementations

impl Statfs[src]

pub fn filesystem_type(&self) -> FsType[src]

Magic code defining system type

pub fn filesystem_type_name(&self) -> &str[src]

Magic code defining system type

pub fn optimal_transfer_size(&self) -> u64[src]

Optimal transfer block size

pub fn block_size(&self) -> u64[src]

Size of a block

pub fn maximum_name_length(&self) -> u32[src]

Maximum length of filenames

pub fn blocks(&self) -> u64[src]

Total data blocks in filesystem

pub fn blocks_free(&self) -> u64[src]

Free blocks in filesystem

pub fn blocks_available(&self) -> i64[src]

Free blocks available to unprivileged user

pub fn files(&self) -> u64[src]

Total file nodes in filesystem

pub fn files_free(&self) -> i64[src]

Free file nodes in filesystem

pub fn filesystem_id(&self) -> fsid_t[src]

Filesystem ID

Trait Implementations

impl Clone for Statfs[src]

fn clone(&self) -> Statfs[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Statfs[src]

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

Formats the value using the given formatter. Read more

impl Copy for Statfs[src]

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
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

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

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.