#[repr(u8)]pub enum FailureStage {
None = 0,
Validation = 1,
Handler = 2,
Invariant = 3,
Post = 4,
Teardown = 5,
}Expand description
Stage of instruction execution at which a failure was recorded.
Surfaced in StateReceipt::failure_stage so operators can tell
whether an error fired before any mutation, during a mutation’s
invariant check, after a successful mutation, or during teardown.
Combined with failed_error_code this lets the SDK pinpoint
exactly where in the instruction lifecycle the failure happened.
Variants§
None = 0
No failure (receipt committed cleanly).
Validation = 1
Failed during account/context validation (pre-handler).
Handler = 2
Failed inside the instruction handler before any invariant.
Invariant = 3
Failed inside an invariant check.
Post = 4
Failed during the post-handler receipt commit/emit path.
Teardown = 5
Failed inside a close guard / teardown routine.
Implementations§
Source§impl FailureStage
impl FailureStage
Trait Implementations§
Source§impl Clone for FailureStage
impl Clone for FailureStage
Source§fn clone(&self) -> FailureStage
fn clone(&self) -> FailureStage
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 FailureStage
impl Debug for FailureStage
Source§impl PartialEq for FailureStage
impl PartialEq for FailureStage
Source§fn eq(&self, other: &FailureStage) -> bool
fn eq(&self, other: &FailureStage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FailureStage
impl Eq for FailureStage
impl StructuralPartialEq for FailureStage
Auto Trait Implementations§
impl Freeze for FailureStage
impl RefUnwindSafe for FailureStage
impl Send for FailureStage
impl Sync for FailureStage
impl Unpin for FailureStage
impl UnsafeUnpin for FailureStage
impl UnwindSafe for FailureStage
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