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
available_bytes exceeded total_bytes.
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
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more