#[non_exhaustive]pub enum AssertionFailure {
UntrustedOriginForHighRisk {
command_id: CommandId,
risk: RiskClass,
confirmation: ConfirmationPolicy,
},
ReceiptWithoutEvents {
receipt_id: ReceiptId,
status_code: String,
},
ReceiptCitesUnknownEvent {
receipt_id: ReceiptId,
status_code: String,
event_id: EventId,
},
NotASinglePhase {
workflow: WorkflowKey,
case_id: CaseId,
},
DifferentCases {
left_workflow: WorkflowKey,
left_case: CaseId,
right_workflow: WorkflowKey,
right_case: CaseId,
},
PhaseDiffers {
workflow: WorkflowKey,
case_id: CaseId,
left: String,
right: String,
},
PhaseOwnershipDiffers {
workflow: WorkflowKey,
case_id: CaseId,
left: PhaseOwnership,
right: PhaseOwnership,
},
BlockCountDiffers {
left: usize,
right: usize,
},
BlocksDiffer {
index: usize,
},
}Expand description
A check did not hold.
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.
UntrustedOriginForHighRisk
A command whose policy demands a trusted origin carried an untrusted one.
Fields
§
confirmation: ConfirmationPolicyIts confirmation policy.
ReceiptWithoutEvents
A receipt states an outcome with nothing in the ledger behind it.
ReceiptCitesUnknownEvent
A receipt cites an event the commit did not produce.
Fields
NotASinglePhase
A projection does not carry exactly one phase.
DifferentCases
Two views that should be of the same case are not.
Fields
§
left_workflow: WorkflowKeyWorkflow of the first view.
§
right_workflow: WorkflowKeyWorkflow of the second view.
PhaseDiffers
One case resolved to two different phases.
Fields
§
workflow: WorkflowKeyThe workflow.
PhaseOwnershipDiffers
One case resolved to two different phase ownerships.
Fields
§
workflow: WorkflowKeyThe workflow.
§
left: PhaseOwnershipOwnership in the first view.
§
right: PhaseOwnershipOwnership in the second view.
BlockCountDiffers
Two renderings of the same turn have different numbers of blocks.
BlocksDiffer
Two renderings of the same turn differ at one position.
Trait Implementations§
Source§impl Clone for AssertionFailure
impl Clone for AssertionFailure
Source§impl Debug for AssertionFailure
impl Debug for AssertionFailure
Source§impl Display for AssertionFailure
impl Display for AssertionFailure
impl Eq for AssertionFailure
Source§impl Error for AssertionFailure
impl Error for AssertionFailure
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 AssertionFailure
impl PartialEq for AssertionFailure
impl StructuralPartialEq for AssertionFailure
Auto Trait Implementations§
impl Freeze for AssertionFailure
impl RefUnwindSafe for AssertionFailure
impl Send for AssertionFailure
impl Sync for AssertionFailure
impl Unpin for AssertionFailure
impl UnsafeUnpin for AssertionFailure
impl UnwindSafe for AssertionFailure
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.