pub enum StepError {
StepExecution {
context: StepContext,
action: String,
reason: String,
},
SpecDeserialize {
context: StepContext,
reason: String,
},
DriverStateExtraction {
context: StepContext,
reason: String,
},
StateMismatch {
context: StepContext,
action: String,
diff: String,
},
}Expand description
Shared error for step-level failures during replay or interactive testing.
Consolidates the duplicated error variants from ReplayError and RpcError.
Variants§
StepExecution
Failed to execute action on driver.
SpecDeserialize
Failed to deserialize spec state.
DriverStateExtraction
Failed to extract driver state.
StateMismatch
State mismatch between spec and driver.
Trait Implementations§
Source§impl Error for StepError
impl Error for StepError
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()
Auto Trait Implementations§
impl Freeze for StepError
impl RefUnwindSafe for StepError
impl Send for StepError
impl Sync for StepError
impl Unpin for StepError
impl UnsafeUnpin for StepError
impl UnwindSafe for StepError
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