Enum sled::transaction::ConflictableTransactionError [−][src]
pub enum ConflictableTransactionError<T = Error> {
Abort(T),
Storage(Error),
// some variants omitted
}
Expand description
An error type that is returned from the closure
passed to the transaction
method.
Variants
A user-provided error type that indicates the transaction should abort.
This is passed into the return value of transaction
as a direct Err
instance, rather than forcing users to interact with this enum
directly.
Storage(Error)
A serious underlying storage issue has occurred that requires attention from an operator or a remediating system, such as corruption.
Tuple Fields of Storage
0: Error
Trait Implementations
Performs the conversion.
impl<T: PartialEq> PartialEq<ConflictableTransactionError<T>> for ConflictableTransactionError<T>
impl<T: PartialEq> PartialEq<ConflictableTransactionError<T>> for ConflictableTransactionError<T>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<T = Error> !RefUnwindSafe for ConflictableTransactionError<T>
impl<T> Send for ConflictableTransactionError<T> where
T: Send,
impl<T> Sync for ConflictableTransactionError<T> where
T: Sync,
impl<T> Unpin for ConflictableTransactionError<T> where
T: Unpin,
impl<T = Error> !UnwindSafe for ConflictableTransactionError<T>
Blanket Implementations
Mutably borrows from an owned value. Read more