pub struct DiskHealth {
pub available_bytes: u64,
pub reserve_bytes: u64,
pub under_pressure: bool,
}Expand description
The disk half of Health.
Fields§
§available_bytes: u64Bytes available to an unprivileged writer, from statvfs f_bavail.
reserve_bytes: u64Bytes that must stay free before a write is refused. Zero means the guard is disabled.
under_pressure: boolWhether a write would be refused right now. Precomputed rather than left to the client, so every consumer applies the same comparison the write path does.
Trait Implementations§
Source§impl Debug for DiskHealth
impl Debug for DiskHealth
Source§impl<'de> Deserialize<'de> for DiskHealth
impl<'de> Deserialize<'de> for DiskHealth
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
Source§impl JsonSchema for DiskHealth
impl JsonSchema for DiskHealth
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for DiskHealth
impl RefUnwindSafe for DiskHealth
impl Send for DiskHealth
impl Sync for DiskHealth
impl Unpin for DiskHealth
impl UnsafeUnpin for DiskHealth
impl UnwindSafe for DiskHealth
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