pub struct FilesystemSnapshot {
pub mount_point: Box<str>,
pub device: Option<Box<str>>,
pub fs_type: Option<Box<str>>,
pub total_bytes: u64,
pub available_bytes: MetricState<u64>,
pub used_bytes: MetricState<u64>,
pub usage: MetricState<Percent>,
pub kind: FilesystemKind,
pub read_only: bool,
}Expand description
Capacity of one mounted filesystem.
Contains no throughput fields at all; that is DiskSnapshot’s job.
Fields§
§mount_point: Box<str>Where it is mounted.
device: Option<Box<str>>The backing device, where the platform maps it.
fs_type: Option<Box<str>>Filesystem type, e.g. apfs, ext4, overlay.
total_bytes: u64Total capacity.
available_bytes: MetricState<u64>Space available to the current user.
Usually smaller than total - used because of reserved blocks.
used_bytes: MetricState<u64>Space in use.
usage: MetricState<Percent>Share of capacity used. Never mixed with device utilization (§7.3).
kind: FilesystemKindHow the mount is classified.
read_only: boolWhether the mount is read-only.
Trait Implementations§
Source§impl Clone for FilesystemSnapshot
impl Clone for FilesystemSnapshot
Source§fn clone(&self) -> FilesystemSnapshot
fn clone(&self) -> FilesystemSnapshot
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 FilesystemSnapshot
impl Debug for FilesystemSnapshot
Source§impl PartialEq for FilesystemSnapshot
impl PartialEq for FilesystemSnapshot
impl StructuralPartialEq for FilesystemSnapshot
Auto Trait Implementations§
impl Freeze for FilesystemSnapshot
impl RefUnwindSafe for FilesystemSnapshot
impl Send for FilesystemSnapshot
impl Sync for FilesystemSnapshot
impl Unpin for FilesystemSnapshot
impl UnsafeUnpin for FilesystemSnapshot
impl UnwindSafe for FilesystemSnapshot
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