[][src]Struct polyfuse::StatFs

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

Filesystem statistics.

This type is ABI-compatible with fuse_kstatfs.

Methods

impl StatFs[src]

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

Return the block size.

pub fn set_bsize(&mut self, bsize: u32)[src]

Set the block size.

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

Return the fragment size.

pub fn set_frsize(&mut self, frsize: u32)[src]

Set the fragment size.

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

Return the number of blocks in the filesystem.

pub fn set_blocks(&mut self, blocks: u64)[src]

Return the number of blocks in the filesystem.

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

Return the number of free blocks.

pub fn set_bfree(&mut self, bfree: u64)[src]

Return the number of free blocks.

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

Return the number of free blocks for non-priviledge users.

pub fn set_bavail(&mut self, bavail: u64)[src]

Set the number of free blocks for non-priviledge users.

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

Return the number of inodes.

pub fn set_files(&mut self, files: u64)[src]

Set the number of inodes.

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

Return the number of free inodes.

pub fn set_ffree(&mut self, ffree: u64)[src]

Set the number of free inodes.

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

Return the maximum length of file names.

pub fn set_namelen(&mut self, namelen: u32)[src]

Return the maximum length of file names.

Trait Implementations

impl Clone for StatFs[src]

impl Copy for StatFs[src]

impl Debug for StatFs[src]

impl Default for StatFs[src]

impl TryFrom<statvfs> for StatFs[src]

type Error = TryFromIntError

The type returned in the event of a conversion error.

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]

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

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

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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.