Struct nix::sys::statvfs::Statvfs [−][src]
#[repr(transparent)]pub struct Statvfs(_);
Expand description
Wrapper around the POSIX statvfs
struct
For more information see the statvfs(3)
man pages.
Implementations
impl Statvfs
[src]
impl Statvfs
[src]pub fn block_size(&self) -> c_ulong
[src]
pub fn block_size(&self) -> c_ulong
[src]get the file system block size
pub fn fragment_size(&self) -> c_ulong
[src]
pub fn fragment_size(&self) -> c_ulong
[src]Get the fundamental file system block size
pub fn blocks(&self) -> fsblkcnt_t
[src]
pub fn blocks(&self) -> fsblkcnt_t
[src]Get the number of blocks.
Units are in units of fragment_size()
pub fn blocks_free(&self) -> fsblkcnt_t
[src]
pub fn blocks_free(&self) -> fsblkcnt_t
[src]Get the number of free blocks in the file system
pub fn blocks_available(&self) -> fsblkcnt_t
[src]
pub fn blocks_available(&self) -> fsblkcnt_t
[src]Get the number of free blocks for unprivileged users
pub fn files(&self) -> fsfilcnt_t
[src]
pub fn files(&self) -> fsfilcnt_t
[src]Get the total number of file inodes
pub fn files_free(&self) -> fsfilcnt_t
[src]
pub fn files_free(&self) -> fsfilcnt_t
[src]Get the number of free file inodes
pub fn files_available(&self) -> fsfilcnt_t
[src]
pub fn files_available(&self) -> fsfilcnt_t
[src]Get the number of free file inodes for unprivileged users
pub fn filesystem_id(&self) -> c_ulong
[src]
pub fn filesystem_id(&self) -> c_ulong
[src]Get the file system id
Trait Implementations
impl Copy for Statvfs
[src]
impl Eq for Statvfs
[src]
impl StructuralEq for Statvfs
[src]
impl StructuralPartialEq for Statvfs
[src]
Auto Trait Implementations
impl RefUnwindSafe for Statvfs
impl Send for Statvfs
impl Sync for Statvfs
impl Unpin for Statvfs
impl UnwindSafe for Statvfs
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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