#[non_exhaustive]pub enum TransactionState {
Show 15 variants
Created,
Running,
VirtualComplete,
Denied,
AutoApproved,
PendingApproval,
Approved,
Reserved,
Revalidating,
Committing,
Committed,
Stale,
Expired,
RecoveryRequired,
Failed,
}Expand description
A persisted transaction state.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Created
The transaction record exists but execution has not started.
Running
The untrusted program is executing against virtual state.
VirtualComplete
Virtual execution and canonical diff generation completed.
Denied
Deterministic policy denied the transaction.
AutoApproved
Deterministic policy approved the transaction without a judge.
PendingApproval
The transaction is awaiting an independent approval decision.
Approved
An independent principal approved the exact transaction.
Reserved
The transaction acquired the single-use commit reservation.
Revalidating
Recorded dependencies are being revalidated.
Committing
The trusted committer is applying the canonical diff.
Committed
The committed host state passed verification.
Stale
Revalidation detected stale state before commit.
Expired
Approval expired before reservation.
RecoveryRequired
Recovery is required after an interrupted commit.
Failed
The transaction failed without a successful commit.
Implementations§
Source§impl TransactionState
impl TransactionState
Sourcepub const fn can_transition_to(self, next: Self) -> bool
pub const fn can_transition_to(self, next: Self) -> bool
Return whether next is a valid persisted state transition.
Sourcepub const fn is_terminal(self) -> bool
pub const fn is_terminal(self) -> bool
Return whether no normal transition may leave this state.
Trait Implementations§
Source§impl Clone for TransactionState
impl Clone for TransactionState
Source§fn clone(&self) -> TransactionState
fn clone(&self) -> TransactionState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more