Enum dist_tx::rm::RmRc

source ·
pub enum RmRc {
Show 16 variants RollbackUnspecified, RollbackCommunicationFailure, RollbackDeadlock, RollbackIntegrity, RollbackOther, RollbackProtocol, RollbackTimeout, RollbackTransient, HeuristicallyCompleted, HeuristicallyCommitted, HeuristicallyRolledBack, HeuristicallyMessedUp, Retry, ReadOnlyCommitted, Ok, UnknownErrorCode(i32),
}
Expand description

Return codes used by resource managers.

Variants

RollbackUnspecified

A rollback was caused by an unspecified reason.

RollbackCommunicationFailure

A rollback was caused by a communication failure.

RollbackDeadlock

A deadlock was detected.

RollbackIntegrity

A condition that violates the integrity of the resources was detected.

RollbackOther

The transaction branch was rolled back for a reason not on this list.

RollbackProtocol

A protocol error occurred in the resource manager.

RollbackTimeout

A transaction branch took too long.

RollbackTransient

Transient issue, a retry with this transaction branch may work.

HeuristicallyCompleted

The transaction branch has been heuristically completed.

HeuristicallyCommitted

The transaction branch has been heuristically committed.

HeuristicallyRolledBack

The transaction branch has been heuristically rolled back.

HeuristicallyMessedUp

The transaction branch has been heuristically committed and rolled back.

Retry

Nothing has happened, action may be retried.

ReadOnlyCommitted

The transaction branch was read-only and has been committed.

Ok

Normal execution.

UnknownErrorCode(i32)

Should never be used.

Implementations

Instantiate from the error code as defined in the XA standard.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.