[−][src]Enum sled::transaction::TransactionError
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.
Trait Implementations
impl<T: Clone> Clone for TransactionError<T>
[src]
fn clone(&self) -> TransactionError<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<T> From<Error> for TransactionError<T>
[src]
impl<T: PartialEq> PartialEq<TransactionError<T>> for TransactionError<T>
[src]
fn eq(&self, other: &TransactionError<T>) -> bool
[src]
fn ne(&self, other: &TransactionError<T>) -> bool
[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,
T: Send,
impl<T> Sync for TransactionError<T> where
T: Sync,
T: Sync,
impl<T> Unpin for TransactionError<T> where
T: Unpin,
T: Unpin,
impl<T = Error> !UnwindSafe for TransactionError<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
[src]
pub const ALIGN: usize
[src]
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
[src]
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
[src]
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
[src]
pub unsafe fn drop(ptr: usize)
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,