#[repr(C)]pub struct StatVfs {
pub f_bsize: u64,
pub f_frsize: u64,
pub f_blocks: u64,
pub f_bfree: u64,
pub f_bavail: u64,
pub f_files: u64,
pub f_ffree: u64,
pub f_favail: u64,
pub f_fsid: u64,
pub f_flag: u64,
pub f_namemax: u64,
}Expand description
Filesystem statistics (for SYS_STAT on directories).
Similar to Linux struct statfs.
Fields§
§f_bsize: u64Preferred file system block size.
f_frsize: u64File system fragment size.
f_blocks: u64Total data blocks in the file system.
f_bfree: u64Free blocks available to unprivileged users.
f_bavail: u64Free blocks available to unprivileged users.
f_files: u64Total file nodes (inodes).
f_ffree: u64Free file nodes.
f_favail: u64Free file nodes available to unprivileged users.
f_fsid: u64File system ID.
f_flag: u64File system flags (read-only, etc.).
f_namemax: u64Maximum filename length.
Trait Implementations§
impl Copy for StatVfs
Source§impl FromBytes for StatVfswhere
u64: FromBytes,
impl FromBytes for StatVfswhere
u64: FromBytes,
Source§impl IntoBytes for StatVfs
impl IntoBytes for StatVfs
§fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§impl TryFromBytes for StatVfswhere
u64: TryFromBytes,
impl TryFromBytes for StatVfswhere
u64: TryFromBytes,
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for StatVfs
impl RefUnwindSafe for StatVfs
impl Send for StatVfs
impl Sync for StatVfs
impl Unpin for StatVfs
impl UnsafeUnpin for StatVfs
impl UnwindSafe for StatVfs
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