pub enum TransactionError {
TableLocked {
table_id: u64,
owner_txn: u64,
},
WriteConflict {
table_id: u64,
row_id: u64,
conflicting_txn: u64,
},
ConcurrentWriteDisabled,
ShuttingDown,
NoActiveTransaction,
LockPoisoned(String),
}Expand description
Errors originating from the transaction manager.
Variants§
TableLocked
Table already locked by another transaction
WriteConflict
Row-level write conflict: another active transaction modified the same row
ConcurrentWriteDisabled
Concurrent write not allowed by config
ShuttingDown
Transaction manager is shutting down
NoActiveTransaction
No active write transaction
LockPoisoned(String)
Lock poison (a thread panicked while holding a lock)
Trait Implementations§
Source§impl Debug for TransactionError
impl Debug for TransactionError
Source§impl Display for TransactionError
impl Display for TransactionError
Source§impl Error for TransactionError
impl Error for TransactionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<TransactionError> for AkarError
impl From<TransactionError> for AkarError
Source§fn from(e: TransactionError) -> Self
fn from(e: TransactionError) -> Self
Converts to this type from the input type.
Source§impl From<TransactionError> for String
Allow ? in functions still returning Result<T, String>.
impl From<TransactionError> for String
Allow ? in functions still returning Result<T, String>.
Source§fn from(e: TransactionError) -> String
fn from(e: TransactionError) -> String
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TransactionError
impl RefUnwindSafe for TransactionError
impl Send for TransactionError
impl Sync for TransactionError
impl Unpin for TransactionError
impl UnsafeUnpin for TransactionError
impl UnwindSafe for TransactionError
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more