pub struct DiskMountMetrics {
pub mount_point: String,
pub filesystem: String,
pub total_bytes: u64,
pub used_bytes: u64,
pub available_bytes: u64,
pub used_pct: f64,
}Expand description
Filesystem-level space for one mount point on a block device. Values from statvfs(3); reported in bytes.
Fields§
§mount_point: String§filesystem: StringFilesystem type as reported in /proc/mounts (e.g. “ext4”, “xfs”, “btrfs”).
total_bytes: u64§used_bytes: u64§available_bytes: u64§used_pct: f64Fraction of total capacity in use (0.0–100.0).
Trait Implementations§
Source§impl Clone for DiskMountMetrics
impl Clone for DiskMountMetrics
Source§fn clone(&self) -> DiskMountMetrics
fn clone(&self) -> DiskMountMetrics
Returns a duplicate of the value. Read more
1.0.0 · 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 DiskMountMetrics
impl Debug for DiskMountMetrics
Source§impl<'de> Deserialize<'de> for DiskMountMetrics
impl<'de> Deserialize<'de> for DiskMountMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DiskMountMetrics
impl RefUnwindSafe for DiskMountMetrics
impl Send for DiskMountMetrics
impl Sync for DiskMountMetrics
impl Unpin for DiskMountMetrics
impl UnsafeUnpin for DiskMountMetrics
impl UnwindSafe for DiskMountMetrics
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