#[non_exhaustive]pub enum InspectionError {
Empty,
MixedRun {
index: usize,
},
Sequence {
index: usize,
expected: u64,
actual: u64,
},
UnknownCause {
index: usize,
},
MultipleTerminalEvents {
index: usize,
},
}Expand description
Typed run-inspection failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
No events were supplied.
MixedRun
An event belongs to another run.
Sequence
Sequence numbers are not contiguous.
Fields
UnknownCause
A causal parent did not precede its event.
MultipleTerminalEvents
More than one terminal lifecycle event was present.
Trait Implementations§
Source§impl Clone for InspectionError
impl Clone for InspectionError
Source§fn clone(&self) -> InspectionError
fn clone(&self) -> InspectionError
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 InspectionError
impl Debug for InspectionError
Source§impl Display for InspectionError
impl Display for InspectionError
impl Eq for InspectionError
Source§impl Error for InspectionError
impl Error for InspectionError
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 InspectionError
impl PartialEq for InspectionError
impl StructuralPartialEq for InspectionError
Auto Trait Implementations§
impl Freeze for InspectionError
impl RefUnwindSafe for InspectionError
impl Send for InspectionError
impl Sync for InspectionError
impl Unpin for InspectionError
impl UnsafeUnpin for InspectionError
impl UnwindSafe for InspectionError
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