pub struct FsStat {
pub filesystem_type: String,
pub block_size: Option<u64>,
pub blocks: Option<u64>,
pub free_blocks: Option<u64>,
pub blocks_available: Option<u64>,
pub nodes: Option<u64>,
pub name_length: Option<u64>,
}
Expand description
Represents filesystem statistics
Fields§
§filesystem_type: String
§block_size: Option<u64>
optimal transfer block size
blocks: Option<u64>
Total data blocks in filesystem
free_blocks: Option<u64>
Free blocks in filesystem
blocks_available: Option<u64>
free blocks avail to non-superuser
nodes: Option<u64>
Total number of nodes in filesystem
name_length: Option<u64>
maximum filename length
Implementations§
source§impl FsStat
impl FsStat
pub fn filesystem_type(&self) -> String
pub fn block_size(&self) -> Option<u64>
pub fn blocks(&self) -> Option<u64>
pub fn free_blocks(&self) -> Option<u64>
pub fn blocks_available(&self) -> Option<u64>
pub fn nodes(&self) -> Option<u64>
pub fn name_length(&self) -> Option<u64>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for FsStat
impl Send for FsStat
impl Sync for FsStat
impl Unpin for FsStat
impl UnwindSafe for FsStat
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