pub enum TransactionError {
Aborted,
Conflict,
WriteConflict(String),
Deadlock,
Timeout,
ReadOnly,
InvalidState(String),
}Expand description
Transaction-specific errors.
Variants§
Aborted
Transaction was aborted.
Conflict
Transaction commit failed due to conflict.
WriteConflict(String)
Write-write conflict with another transaction.
Deadlock
Deadlock detected.
Timeout
Transaction timed out.
ReadOnly
Transaction is read-only but attempted a write.
InvalidState(String)
Invalid transaction state.
Trait Implementations§
Source§impl Clone for TransactionError
impl Clone for TransactionError
Source§fn clone(&self) -> TransactionError
fn clone(&self) -> TransactionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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 Error
impl From<TransactionError> for Error
Source§fn from(e: TransactionError) -> Self
fn from(e: TransactionError) -> Self
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 UnwindSafe for TransactionError
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