pub enum UnexpectedEventError {
CaseStartedButNotFound {
test_case_id: u32,
},
InvalidCaseEvent {
last_state: Lifecycle,
next_state: Lifecycle,
test_case_name: String,
test_case_id: u32,
},
CaseArtifactButNotFound {
test_case_id: u32,
},
CaseArtifactButFinished {
test_case_id: u32,
},
CaseEventButNotFound {
next_state: Lifecycle,
test_case_id: u32,
},
UnrecognizedTestCaseResult {
result: TestCaseResult,
test_case_id: u32,
},
CasesDidNotFinish {
cases: Vec<String>,
},
InvalidEvent {
last_state: Lifecycle,
next_state: Lifecycle,
},
UnrecognizedSuiteResult {
result: SuiteResult,
},
SuiteDidNotReportStop,
InternalErrorSuiteResult,
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
UnrecognizedTestCaseResult
CasesDidNotFinish
InvalidEvent
UnrecognizedSuiteResult
Fields
§
result: SuiteResultSuiteDidNotReportStop
InternalErrorSuiteResult
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,
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
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