pub enum DiagnosticAggregationError {
DuplicateShard {
shard: u32,
},
ZeroCandidates {
shard: u32,
},
ZeroRawItemBytes {
shard: u32,
},
ZeroDiagnosticRecordBytes {
shard: u32,
},
EmittedExceedsCandidates {
shard: u32,
emitted_diagnostics: u64,
candidate_items: u64,
},
MissingSeverityMask {
shard: u32,
},
ZeroRecordCap,
ByteCountOverflow {
field: &'static str,
},
OverBudget {
required_bytes: u64,
budget_bytes: u64,
},
StorageReserveFailed {
field: &'static str,
requested: usize,
message: String,
},
}Expand description
Device diagnostic aggregation planning errors.
Variants§
DuplicateShard
Duplicate shard id.
ZeroCandidates
Candidate items cannot be zero for an emitted shard.
ZeroRawItemBytes
Raw candidate ABI width must be non-zero.
ZeroDiagnosticRecordBytes
Compact diagnostic ABI width must be non-zero when diagnostics exist.
EmittedExceedsCandidates
Diagnostic count cannot exceed inspected candidate items.
Fields
MissingSeverityMask
Non-empty diagnostic shards need a non-zero severity/category mask.
ZeroRecordCap
Per-shard compact cap cannot be zero.
ByteCountOverflow
Byte arithmetic overflowed.
OverBudget
Aggregation slabs exceed the explicit device budget.
Fields
StorageReserveFailed
Scratch or result-vector storage reservation failed before launch planning.
Trait Implementations§
Source§impl ArithmeticOverflow for DiagnosticAggregationError
impl ArithmeticOverflow for DiagnosticAggregationError
Source§fn arithmetic_overflow(field: &'static str) -> Self
fn arithmetic_overflow(field: &'static str) -> Self
Build the planner-specific overflow error for
field.Source§impl Clone for DiagnosticAggregationError
impl Clone for DiagnosticAggregationError
Source§fn clone(&self) -> DiagnosticAggregationError
fn clone(&self) -> DiagnosticAggregationError
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 DiagnosticAggregationError
impl Debug for DiagnosticAggregationError
Source§impl Display for DiagnosticAggregationError
impl Display for DiagnosticAggregationError
impl Eq for DiagnosticAggregationError
Source§impl Error for DiagnosticAggregationError
impl Error for DiagnosticAggregationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for DiagnosticAggregationError
impl PartialEq for DiagnosticAggregationError
Source§fn eq(&self, other: &DiagnosticAggregationError) -> bool
fn eq(&self, other: &DiagnosticAggregationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DiagnosticAggregationError
Auto Trait Implementations§
impl Freeze for DiagnosticAggregationError
impl RefUnwindSafe for DiagnosticAggregationError
impl Send for DiagnosticAggregationError
impl Sync for DiagnosticAggregationError
impl Unpin for DiagnosticAggregationError
impl UnsafeUnpin for DiagnosticAggregationError
impl UnwindSafe for DiagnosticAggregationError
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.