pub enum ViolationKind {
UnsupportedSchemaVersion {
found: u16,
},
ZeroNotAllowed,
PercentageNotFinite,
PercentageOutOfRange,
UsedExceedsTotal,
IowaitCapabilityMismatch,
}Expand description
The kind of a single protocol-invariant violation.
Each variant carries enough information for the caller to log a precise diagnostic without parsing the message string.
Variants§
UnsupportedSchemaVersion
schema_version did not match the supported version.
ZeroNotAllowed
An integer count that must be positive was zero.
PercentageNotFinite
A percentage value was not finite (NaN or infinite).
PercentageOutOfRange
A percentage value was outside the closed 0.0..=100.0 interval.
UsedExceedsTotal
used_bytes exceeded total_bytes.
IowaitCapabilityMismatch
cpu_iowait capability and iowait_pct presence disagreed.
Trait Implementations§
Source§impl Clone for ViolationKind
impl Clone for ViolationKind
Source§fn clone(&self) -> ViolationKind
fn clone(&self) -> ViolationKind
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 ViolationKind
impl Debug for ViolationKind
Source§impl Display for ViolationKind
impl Display for ViolationKind
impl Eq for ViolationKind
Source§impl PartialEq for ViolationKind
impl PartialEq for ViolationKind
impl StructuralPartialEq for ViolationKind
Auto Trait Implementations§
impl Freeze for ViolationKind
impl RefUnwindSafe for ViolationKind
impl Send for ViolationKind
impl Sync for ViolationKind
impl Unpin for ViolationKind
impl UnsafeUnpin for ViolationKind
impl UnwindSafe for ViolationKind
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