pub enum WriteTxFailure<E> {
Inner(E),
Db(Error),
}Expand description
Why a write transaction run through in_write_tx_result failed: the work’s own error, or
the database while beginning, binding the scope or committing.
Variants§
Inner(E)
The work returned this error; the transaction was rolled back.
Db(Error)
The database refused to begin, bind the scope or commit.
Trait Implementations§
Source§impl<E: Debug> Debug for WriteTxFailure<E>
impl<E: Debug> Debug for WriteTxFailure<E>
Auto Trait Implementations§
impl<E> !RefUnwindSafe for WriteTxFailure<E>
impl<E> !UnwindSafe for WriteTxFailure<E>
impl<E> Freeze for WriteTxFailure<E>where
E: Freeze,
impl<E> Send for WriteTxFailure<E>where
E: Send,
impl<E> Sync for WriteTxFailure<E>where
E: Sync,
impl<E> Unpin for WriteTxFailure<E>where
E: Unpin,
impl<E> UnsafeUnpin for WriteTxFailure<E>where
E: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more