Enum async_mwmr::error::TransactionError
source · pub enum TransactionError<P: AsyncPendingManager> {
ReadOnly,
Conflict,
Discard,
LargeTxn,
Manager(P::Error),
}
Expand description
Error type for the transaction.
Variants§
ReadOnly
Returned if an update function is called on a read-only transaction.
Conflict
Returned when a transaction conflicts with another transaction. This can happen if the read rows had been updated concurrently by another transaction.
Discard
Returned if a previously discarded transaction is re-used.
LargeTxn
Returned if too many writes are fit into a single transaction.
Manager(P::Error)
Returned if the transaction manager error occurs.
Trait Implementations§
source§impl<P: AsyncPendingManager> Debug for TransactionError<P>
impl<P: AsyncPendingManager> Debug for TransactionError<P>
source§impl<P: AsyncPendingManager> Display for TransactionError<P>
impl<P: AsyncPendingManager> Display for TransactionError<P>
source§impl<P: AsyncPendingManager> Error for TransactionError<P>
impl<P: AsyncPendingManager> Error for TransactionError<P>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<D: AsyncDatabase, P: AsyncPendingManager> From<TransactionError<P>> for Error<D, P>
impl<D: AsyncDatabase, P: AsyncPendingManager> From<TransactionError<P>> for Error<D, P>
source§fn from(source: TransactionError<P>) -> Self
fn from(source: TransactionError<P>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<P> Freeze for TransactionError<P>
impl<P> RefUnwindSafe for TransactionError<P>
impl<P> Send for TransactionError<P>
impl<P> Sync for TransactionError<P>
impl<P> Unpin for TransactionError<P>
impl<P> UnwindSafe for TransactionError<P>
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