pub struct StatFs {
pub block_size: usize,
pub total_blocks: usize,
pub free_blocks: usize,
pub available_blocks: usize,
pub total_inodes: usize,
pub free_inodes: usize,
pub fsid: u64,
pub max_filename_len: usize,
}Expand description
文件系统统计信息
Fields§
§block_size: usize块大小(单位:字节)
total_blocks: usize总块数
free_blocks: usize空闲块数
available_blocks: usize可用块数(非特权用户)
total_inodes: usize总 inode 数
free_inodes: usize空闲 inode 数
fsid: u64文件系统 ID
max_filename_len: usize最大文件名长度
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)