pub enum UnexpectedEventError {
CaseStartedButNotFound {
identifier: u32,
},
InvalidCaseEvent {
last_state: Lifecycle,
next_state: Lifecycle,
test_case_name: String,
identifier: u32,
},
CaseArtifactButNotFound {
identifier: u32,
},
CaseArtifactButFinished {
identifier: u32,
},
CaseEventButNotFound {
next_state: Lifecycle,
identifier: u32,
},
UnrecognizedCaseStatus {
status: CaseStatus,
identifier: u32,
},
CasesDidNotFinish {
cases: Vec<String>,
},
InvalidSuiteEvent {
last_state: Lifecycle,
next_state: Lifecycle,
},
UnrecognizedSuiteStatus {
status: SuiteStatus,
},
SuiteDidNotReportStop,
InternalErrorSuiteStatus,
MissingRequiredField {
containing_struct: &'static str,
field: &'static str,
},
}
Expand description
An error returned when test manager reports an unexpected event. This could occur if test manager violates guarantees about event ordering.
Variants§
CaseStartedButNotFound
InvalidCaseEvent
CaseArtifactButNotFound
CaseArtifactButFinished
CaseEventButNotFound
UnrecognizedCaseStatus
CasesDidNotFinish
InvalidSuiteEvent
UnrecognizedSuiteStatus
Fields
§
status: SuiteStatus
SuiteDidNotReportStop
InternalErrorSuiteStatus
MissingRequiredField
Trait Implementations§
Source§impl Debug for UnexpectedEventError
impl Debug for UnexpectedEventError
Source§impl Display for UnexpectedEventError
impl Display for UnexpectedEventError
Source§impl Error for UnexpectedEventError
impl Error for UnexpectedEventError
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<UnexpectedEventError> for RunTestSuiteError
impl From<UnexpectedEventError> for RunTestSuiteError
Source§fn from(source: UnexpectedEventError) -> Self
fn from(source: UnexpectedEventError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UnexpectedEventError
impl RefUnwindSafe for UnexpectedEventError
impl Send for UnexpectedEventError
impl Sync for UnexpectedEventError
impl Unpin for UnexpectedEventError
impl UnwindSafe for UnexpectedEventError
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, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more