pub enum TraceValidationError {
EmptyTrace,
MissingHeader,
HeaderNotFirst,
MultipleHeaders,
MissingSummary,
MultipleSummaries,
SummaryNotLast {
summary_index: usize,
},
TimestampRegression {
previous: u64,
current: u64,
record_index: usize,
},
FrameIndexMismatch {
expected: u64,
actual: u64,
},
SummaryFrameCountMismatch {
expected: u64,
actual: u64,
},
SummaryChecksumChainMismatch {
expected: u64,
actual: u64,
},
}Expand description
Typed validation failures for SessionTrace.
Variants§
EmptyTrace
MissingHeader
HeaderNotFirst
MultipleHeaders
MissingSummary
MultipleSummaries
SummaryNotLast
TimestampRegression
FrameIndexMismatch
SummaryFrameCountMismatch
SummaryChecksumChainMismatch
Trait Implementations§
Source§impl Clone for TraceValidationError
impl Clone for TraceValidationError
Source§fn clone(&self) -> TraceValidationError
fn clone(&self) -> TraceValidationError
Returns a duplicate of the value. Read more
1.0.0 · 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 TraceValidationError
impl Debug for TraceValidationError
Source§impl Display for TraceValidationError
impl Display for TraceValidationError
Source§impl Error for TraceValidationError
impl Error for TraceValidationError
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 From<TraceValidationError> for TraceLoadError
impl From<TraceValidationError> for TraceLoadError
Source§fn from(value: TraceValidationError) -> Self
fn from(value: TraceValidationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TraceValidationError
impl PartialEq for TraceValidationError
impl Eq for TraceValidationError
impl StructuralPartialEq for TraceValidationError
Auto Trait Implementations§
impl Freeze for TraceValidationError
impl RefUnwindSafe for TraceValidationError
impl Send for TraceValidationError
impl Sync for TraceValidationError
impl Unpin for TraceValidationError
impl UnwindSafe for TraceValidationError
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.