pub enum ScenarioError {
ReplayMismatch(TraceMismatch),
ReplayFinalStateMismatch {
expected: String,
actual: String,
},
ReplayLedgerMismatch {
field: &'static str,
expected: String,
actual: String,
},
MissingStep(String),
StepMismatch {
step: String,
transaction_id: TransactionId,
revision: Revision,
field: &'static str,
expected: String,
actual: String,
},
StepCommitFailed {
step: String,
error: GraphError,
},
InvariantFailed {
step: String,
invariant: String,
transaction_id: TransactionId,
revision: Revision,
},
}Expand description
Scenario assertion failure.
Variants§
ReplayMismatch(TraceMismatch)
The replay trace sequence differed.
ReplayFinalStateMismatch
The final deterministic graph dump differed after replay.
ReplayLedgerMismatch
The replayed typed ledger state differed.
Fields
MissingStep(String)
A named step was not found.
StepMismatch
A named step had different structural data.
Fields
§
transaction_id: TransactionIdTransaction that produced the mismatched structural value.
StepCommitFailed
A scenario step failed while staging or committing a transaction.
InvariantFailed
A step-level invariant hook failed.
Trait Implementations§
Source§impl Clone for ScenarioError
impl Clone for ScenarioError
Source§fn clone(&self) -> ScenarioError
fn clone(&self) -> ScenarioError
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 ScenarioError
impl Debug for ScenarioError
impl Eq for ScenarioError
Source§impl PartialEq for ScenarioError
impl PartialEq for ScenarioError
Source§fn eq(&self, other: &ScenarioError) -> bool
fn eq(&self, other: &ScenarioError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ScenarioError
Auto Trait Implementations§
impl Freeze for ScenarioError
impl RefUnwindSafe for ScenarioError
impl Send for ScenarioError
impl Sync for ScenarioError
impl Unpin for ScenarioError
impl UnsafeUnpin for ScenarioError
impl UnwindSafe for ScenarioError
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