pub struct FilesystemStats {Show 15 fields
pub total_bytes: Option<u64>,
pub free_bytes: Option<u64>,
pub available_bytes: Option<u64>,
pub total_files: Option<u64>,
pub free_files: Option<u64>,
pub available_files: Option<u64>,
pub block_size: Option<u64>,
pub fragment_size: Option<u64>,
pub max_name_len: Option<u64>,
pub max_path_len: Option<u64>,
pub max_links: Option<u64>,
pub max_file_size: Option<u64>,
pub file_size_bits: Option<u32>,
pub read_only: Option<bool>,
pub no_set_id: Option<bool>,
}Expand description
Filesystem capacity and limits for the filesystem containing a target.
Values are observations, not reservations. None means unknown or unsupported.
Byte counts use the filesystem allocation unit, not its preferred I/O size.
Fields§
§total_bytes: Option<u64>§free_bytes: Option<u64>§available_bytes: Option<u64>Space available to an unprivileged caller (may exclude reserved blocks).
total_files: Option<u64>§free_files: Option<u64>§available_files: Option<u64>§block_size: Option<u64>Preferred I/O block size.
fragment_size: Option<u64>Allocation unit used by capacity counts.
max_name_len: Option<u64>§max_path_len: Option<u64>§max_links: Option<u64>§max_file_size: Option<u64>§file_size_bits: Option<u32>POSIX FILESIZEBITS; this is not necessarily the filesystem’s file-size limit.
read_only: Option<bool>§no_set_id: Option<bool>Trait Implementations§
Source§impl Clone for FilesystemStats
impl Clone for FilesystemStats
Source§fn clone(&self) -> FilesystemStats
fn clone(&self) -> FilesystemStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FilesystemStats
impl Debug for FilesystemStats
Source§impl Default for FilesystemStats
impl Default for FilesystemStats
Source§fn default() -> FilesystemStats
fn default() -> FilesystemStats
Returns the “default value” for a type. Read more
impl Eq for FilesystemStats
Source§impl PartialEq for FilesystemStats
impl PartialEq for FilesystemStats
impl StructuralPartialEq for FilesystemStats
Auto Trait Implementations§
impl Freeze for FilesystemStats
impl RefUnwindSafe for FilesystemStats
impl Send for FilesystemStats
impl Sync for FilesystemStats
impl Unpin for FilesystemStats
impl UnsafeUnpin for FilesystemStats
impl UnwindSafe for FilesystemStats
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