pub enum TransactionDisposition {
Committed,
RolledBack,
RecoveryRequired,
}Expand description
The terminal disposition of a commit attempt.
A rolled-back or recovery-required result is never equivalent to success;
see examples/receipts.rs. The disposition says whether the live state is
coherent, not why the attempt ended: the reason is carried by
TransactionReceipt::failure, TransactionReceipt::rollback_failure,
and TransactionReceipt::post_commit_failure, each of which reports a
FailureCategory.
Variants§
Committed
Every member was installed and the live set is coherent.
RolledBack
The attempt failed and all old members were restored and verified.
RecoveryRequired
The live state or cleanup could not be safely restored automatically.
Trait Implementations§
Source§impl Clone for TransactionDisposition
impl Clone for TransactionDisposition
impl Copy for TransactionDisposition
Source§impl Debug for TransactionDisposition
impl Debug for TransactionDisposition
impl Eq for TransactionDisposition
Source§impl PartialEq for TransactionDisposition
impl PartialEq for TransactionDisposition
impl StructuralPartialEq for TransactionDisposition
Auto Trait Implementations§
impl Freeze for TransactionDisposition
impl RefUnwindSafe for TransactionDisposition
impl Send for TransactionDisposition
impl Sync for TransactionDisposition
impl Unpin for TransactionDisposition
impl UnsafeUnpin for TransactionDisposition
impl UnwindSafe for TransactionDisposition
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