pub enum WtmError<C: Error, P: Error, E: Error> {
Transaction(TransactionError<C, P>),
Commit(E),
}
Expand description
Error type for write transaction.
Variants§
Transaction(TransactionError<C, P>)
Returned if the transaction error occurs.
Commit(E)
Returned if the write error occurs.
Implementations§
Trait Implementations§
source§impl<C: Error, P: Error, E: Error> Error for WtmError<C, P, E>
impl<C: Error, P: Error, E: Error> Error for WtmError<C, P, E>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<C, P, E> Freeze for WtmError<C, P, E>
impl<C, P, E> RefUnwindSafe for WtmError<C, P, E>
impl<C, P, E> Send for WtmError<C, P, E>
impl<C, P, E> Sync for WtmError<C, P, E>
impl<C, P, E> Unpin for WtmError<C, P, E>
impl<C, P, E> UnwindSafe for WtmError<C, P, E>
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