Skip to main content

TxnFailureRecovery

Enum TxnFailureRecovery 

Source
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

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for TxnFailureRecovery

Source§

fn eq(&self, other: &TxnFailureRecovery) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for TxnFailureRecovery

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.