Struct Statfs
#[repr(transparent)]
pub struct Statfs(/* private field */);
Describes a mounted file system
Implementations
impl Statfs
fn filesystem_type(&self) -> FsTypeMagic code defining system type
fn optimal_transfer_size(&self) -> __fsword_tOptimal transfer block size
fn block_size(&self) -> __fsword_tSize of a block
fn flags(&self) -> FsFlagsGet the mount flags
fn maximum_name_length(&self) -> __fsword_tMaximum length of filenames
fn blocks(&self) -> u64Total data blocks in filesystem
fn blocks_free(&self) -> u64Free blocks in filesystem
fn blocks_available(&self) -> u64Free blocks available to unprivileged user
fn files(&self) -> u64Total file nodes in filesystem
fn files_free(&self) -> u64Free file nodes in filesystem
fn filesystem_id(&self) -> fsid_tFilesystem 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) -> TReturns the argument unchanged.
impl<T> ToOwned for Statfs
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Statfs
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses 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>