pub enum ViolationKindV2 {
Show 15 variants
UnsupportedSchemaVersion {
found: u16,
},
ZeroNotAllowed,
SampleIntervalOutOfRange {
max_ms: u64,
},
PercentageNotFinite,
PercentageOutOfRange,
LoadValueOutOfRange,
UsedExceedsTotal,
AvailableExceedsTotal,
IowaitCapabilityMismatch,
LoadCapabilityMismatch,
SwapCapabilityMismatch,
CommitCapabilityMismatch,
EmptyDriveName,
DriveNameTooLong {
max_bytes: usize,
},
TooManyDrives {
max_entries: usize,
},
}Expand description
The kind of a single protocol-invariant violation for v2.
Variants§
UnsupportedSchemaVersion
schema_version did not match the supported version.
ZeroNotAllowed
An integer count that must be positive was zero.
SampleIntervalOutOfRange
The sampling cadence exceeded the protocol maximum.
PercentageNotFinite
A percentage value was not finite (NaN or infinite).
PercentageOutOfRange
A percentage value was outside the closed 0.0..=100.0 interval.
LoadValueOutOfRange
A load average was non-finite or negative.
UsedExceedsTotal
used_bytes exceeded total_bytes or limit_bytes.
AvailableExceedsTotal
IowaitCapabilityMismatch
cpu_iowait capability and iowait_pct presence disagreed.
LoadCapabilityMismatch
load_average capability and load presence disagreed.
SwapCapabilityMismatch
swap capability and swap presence disagreed.
CommitCapabilityMismatch
memory_commit capability and commit presence disagreed.
EmptyDriveName
A drive display name was empty.
DriveNameTooLong
A drive display name exceeded the protocol bound.
TooManyDrives
The drive collection exceeded the protocol bound.
Trait Implementations§
Source§impl Clone for ViolationKindV2
impl Clone for ViolationKindV2
Source§fn clone(&self) -> ViolationKindV2
fn clone(&self) -> ViolationKindV2
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 ViolationKindV2
impl Debug for ViolationKindV2
Source§impl Display for ViolationKindV2
impl Display for ViolationKindV2
impl Eq for ViolationKindV2
Source§impl PartialEq for ViolationKindV2
impl PartialEq for ViolationKindV2
impl StructuralPartialEq for ViolationKindV2
Auto Trait Implementations§
impl Freeze for ViolationKindV2
impl RefUnwindSafe for ViolationKindV2
impl Send for ViolationKindV2
impl Sync for ViolationKindV2
impl Unpin for ViolationKindV2
impl UnsafeUnpin for ViolationKindV2
impl UnwindSafe for ViolationKindV2
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