pub enum UnabortableTransactionError {
Conflict,
Storage(Error),
}
Expand description
An error type that is returned from the closure
passed to the transaction
method.
Variants§
Conflict
An internal conflict has occurred and the transaction
method will
retry the passed-in closure until it succeeds. This should never be
returned directly from the user’s closure, as it will create an
infinite loop that never returns. This is why it is hidden.
Storage(Error)
A serious underlying storage issue has occurred that requires attention from an operator or a remediating system, such as corruption.
Trait Implementations§
source§impl Clone for UnabortableTransactionError
impl Clone for UnabortableTransactionError
source§fn clone(&self) -> UnabortableTransactionError
fn clone(&self) -> UnabortableTransactionError
Returns a copy 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 UnabortableTransactionError
impl Debug for UnabortableTransactionError
source§impl Error for UnabortableTransactionError
impl Error for UnabortableTransactionError
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 From<Error> for UnabortableTransactionError
impl From<Error> for UnabortableTransactionError
source§impl<E> From<UnabortableTransactionError> for ConflictableTransactionError<E>
impl<E> From<UnabortableTransactionError> for ConflictableTransactionError<E>
source§fn from(error: UnabortableTransactionError) -> Self
fn from(error: UnabortableTransactionError) -> Self
Converts to this type from the input type.
source§impl PartialEq<UnabortableTransactionError> for UnabortableTransactionError
impl PartialEq<UnabortableTransactionError> for UnabortableTransactionError
source§fn eq(&self, other: &UnabortableTransactionError) -> bool
fn eq(&self, other: &UnabortableTransactionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UnabortableTransactionError
Auto Trait Implementations§
impl !RefUnwindSafe for UnabortableTransactionError
impl Send for UnabortableTransactionError
impl Sync for UnabortableTransactionError
impl Unpin for UnabortableTransactionError
impl !UnwindSafe for UnabortableTransactionError
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