[][src]Enum sled::transaction::TransactionError

pub enum TransactionError<T = Error> {
    Abort(T),
    Storage(Error),
}

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 TransactionError<T>[src]

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

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

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

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

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

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

Auto Trait Implementations

impl<T = Error> !RefUnwindSafe for TransactionError<T>

impl<T> Send for TransactionError<T> where
    T: Send

impl<T> Sync for TransactionError<T> where
    T: Sync

impl<T> Unpin for TransactionError<T> where
    T: Unpin

impl<T = Error> !UnwindSafe for TransactionError<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.