pub struct DriveMetrics {
pub name: String,
pub used_bytes: u64,
pub total_bytes: u64,
pub available_bytes: Option<u64>,
}Expand description
Capacity metrics for one operator-visible mounted filesystem.
Fields§
§name: StringOwned display name supplied by the platform collector.
used_bytes: u64Bytes currently used.
total_bytes: u64Total capacity in bytes.
available_bytes: Option<u64>Trait Implementations§
Source§impl Clone for DriveMetrics
impl Clone for DriveMetrics
Source§fn clone(&self) -> DriveMetrics
fn clone(&self) -> DriveMetrics
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 DriveMetrics
impl Debug for DriveMetrics
Source§impl<'de> Deserialize<'de> for DriveMetrics
impl<'de> Deserialize<'de> for DriveMetrics
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
impl Eq for DriveMetrics
Source§impl PartialEq for DriveMetrics
impl PartialEq for DriveMetrics
Source§impl Serialize for DriveMetrics
impl Serialize for DriveMetrics
impl StructuralPartialEq for DriveMetrics
Auto Trait Implementations§
impl Freeze for DriveMetrics
impl RefUnwindSafe for DriveMetrics
impl Send for DriveMetrics
impl Sync for DriveMetrics
impl Unpin for DriveMetrics
impl UnsafeUnpin for DriveMetrics
impl UnwindSafe for DriveMetrics
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