pub enum TransactionState {
Committed,
Aborted,
Incomplete,
}Expand description
The recovery disposition of a reconstructed Transaction, derived from the
terminal / compensation opcode that bounds its run within a slot.
Variants§
Committed
A CommitTransaction (0x1A) or ForgetTransaction (0x1B) record sealed
the run — its redo records were applied (or are replayable). A terminal
seal wins even if the run also carried a compensation (sub-action undo).
Aborted
A CompensationLogRecord (0x01) redo appeared in the run with no
terminal — the transaction was rolled back, its effects undone.
Incomplete
The trailing run of a slot ended without a terminal: the records exist but the commit/forget that would seal them was not recovered (e.g. the log wrapped over it in the circular buffer). The final disposition is unknown.
Trait Implementations§
Source§impl Clone for TransactionState
impl Clone for TransactionState
Source§fn clone(&self) -> TransactionState
fn clone(&self) -> TransactionState
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 moreimpl Copy for TransactionState
Source§impl Debug for TransactionState
impl Debug for TransactionState
impl Eq for TransactionState
Source§impl PartialEq for TransactionState
impl PartialEq for TransactionState
impl StructuralPartialEq for TransactionState
Auto Trait Implementations§
impl Freeze for TransactionState
impl RefUnwindSafe for TransactionState
impl Send for TransactionState
impl Sync for TransactionState
impl Unpin for TransactionState
impl UnsafeUnpin for TransactionState
impl UnwindSafe for TransactionState
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