pub struct Statfs(/* private fields */);
Expand description
Describes a mounted file system
Implementations§
source§impl Statfs
impl Statfs
sourcepub fn filesystem_type(&self) -> FsType
pub fn filesystem_type(&self) -> FsType
Magic code defining system type
sourcepub fn optimal_transfer_size(&self) -> __fsword_t
pub fn optimal_transfer_size(&self) -> __fsword_t
Optimal transfer block size
sourcepub fn block_size(&self) -> __fsword_t
pub fn block_size(&self) -> __fsword_t
Size of a block
sourcepub fn maximum_name_length(&self) -> __fsword_t
pub fn maximum_name_length(&self) -> __fsword_t
Maximum length of filenames
sourcepub fn blocks_free(&self) -> u64
pub fn blocks_free(&self) -> u64
Free blocks in filesystem
sourcepub fn blocks_available(&self) -> u64
pub fn blocks_available(&self) -> u64
Free blocks available to unprivileged user
sourcepub fn files_free(&self) -> u64
pub fn files_free(&self) -> u64
Free file nodes in filesystem
sourcepub fn filesystem_id(&self) -> fsid_t
pub fn filesystem_id(&self) -> fsid_t
Filesystem ID
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Statfs
impl RefUnwindSafe for Statfs
impl Send for Statfs
impl Sync for Statfs
impl Unpin for Statfs
impl UnwindSafe for Statfs
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)