pub struct RootPressure {
pub kind: DiskRootKind,
pub path: String,
pub bytes: PressureLevel,
pub inodes: PressureLevel,
pub available_bytes: Option<u64>,
pub total_bytes: Option<u64>,
pub available_inodes: Option<u64>,
}Expand description
Assessed pressure for one filesystem root.
Fields§
§kind: DiskRootKind§path: String§bytes: PressureLevelByte-capacity pressure.
inodes: PressureLevelInode-capacity pressure.
available_bytes: Option<u64>§total_bytes: Option<u64>§available_inodes: Option<u64>Implementations§
Source§impl RootPressure
impl RootPressure
Sourcepub fn worst(&self) -> PressureLevel
pub fn worst(&self) -> PressureLevel
The worse of this root’s byte and inode pressure.
Trait Implementations§
Source§impl Clone for RootPressure
impl Clone for RootPressure
Source§impl Debug for RootPressure
impl Debug for RootPressure
Source§impl<'de> Deserialize<'de> for RootPressure
impl<'de> Deserialize<'de> for RootPressure
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 RootPressure
Source§impl PartialEq for RootPressure
impl PartialEq for RootPressure
Source§impl Serialize for RootPressure
impl Serialize for RootPressure
impl StructuralPartialEq for RootPressure
Auto Trait Implementations§
impl Freeze for RootPressure
impl RefUnwindSafe for RootPressure
impl Send for RootPressure
impl Sync for RootPressure
impl Unpin for RootPressure
impl UnsafeUnpin for RootPressure
impl UnwindSafe for RootPressure
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.