[][src]Enum sled::ConflictableTransactionError

pub enum ConflictableTransactionError<T = Error> {
    Abort(T),
    Storage(Error),
    // some variants omitted
}

An error type that is returned from the closure passed to the transaction method.

Variants

Abort(T)

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.

Trait Implementations

impl<T: Clone> Clone for ConflictableTransactionError<T>[src]

impl<T: Debug> Debug for ConflictableTransactionError<T>[src]

impl<E: Display> Display for ConflictableTransactionError<E>[src]

impl<E: Error> Error for ConflictableTransactionError<E>[src]

impl<T> From<Error> for ConflictableTransactionError<T>[src]

impl<T: PartialEq> PartialEq<ConflictableTransactionError<T>> for ConflictableTransactionError<T>[src]

impl<T> StructuralPartialEq for ConflictableTransactionError<T>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.