pub enum TransactionManagerStatus {
    Valid(ValidTransactionManagerStatus),
    InError,
}
Expand description

Status of the transaction manager

Variants

Valid(ValidTransactionManagerStatus)

Valid status, the manager can run operations

InError

Error status, probably following a broken connection. The manager will no longer run operations

Implementations

Returns the transaction depth if the transaction manager’s status is valid, or returns Error::BrokenTransactionManager if the transaction manager is in error.

Sets the transaction manager status to InError

Subsequent attempts to use transaction-related features will result in a Error::BrokenTransactionManager error

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. 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.

Convert self to an expression for Diesel’s query builder. Read more
Convert &self to an expression for Diesel’s query builder. 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.