pub enum TxnFailureRecovery {
NoActionRequired,
RerunLogicAndCommit,
ResolveCauseThenRerunLogicAndCommit,
ResolveCauseThenRerunPostCommit,
ResolveCauseAndInconsistency,
InvestigateBecauseImpossible,
ManualRollbackRequired,
}Expand description
Represents the suggested recovery action for a data connection after a transaction failure.
Variants§
NoActionRequired
No recovery action is required.
RerunLogicAndCommit
The transaction was successfully rolled back. The transaction can be rerun a logic and committed again.
ResolveCauseThenRerunLogicAndCommit
The transaction failed to run a logic or pre commit. After resolving the cause, the transaction can be rerun a logic and commit again.
ResolveCauseThenRerunPostCommit
The transaction failed to run post commit. After resolving the cause, the transaction can be rerun post commit again.
ResolveCauseAndInconsistency
The rollback failed and it may be in an inconsistent state. Resolve the cause and inconsistent state.
InvestigateBecauseImpossible
It is in impossile case under normal conditions. Investigation of the cause is required.
ManualRollbackRequired
The transaction was successfully committed. It is required to rollback manually.
Trait Implementations§
Source§impl Debug for TxnFailureRecovery
impl Debug for TxnFailureRecovery
Source§impl PartialEq for TxnFailureRecovery
impl PartialEq for TxnFailureRecovery
impl StructuralPartialEq for TxnFailureRecovery
Auto Trait Implementations§
impl Freeze for TxnFailureRecovery
impl RefUnwindSafe for TxnFailureRecovery
impl Send for TxnFailureRecovery
impl Sync for TxnFailureRecovery
impl Unpin for TxnFailureRecovery
impl UnsafeUnpin for TxnFailureRecovery
impl UnwindSafe for TxnFailureRecovery
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