Enum async_mwmr::error::Error
source · pub enum Error<D: AsyncDatabase, P: AsyncPendingManager> {
Transaction(TransactionError<P>),
DB(D::Error),
}
Expand description
Error type for the [TransactionDB
].
Variants§
Transaction(TransactionError<P>)
Returned if transaction related error occurs.
DB(D::Error)
Returned if DB related error occurs.
Implementations§
source§impl<D: AsyncDatabase, P: AsyncPendingManager> Error<D, P>
impl<D: AsyncDatabase, P: AsyncPendingManager> Error<D, P>
sourcepub fn transaction(err: TransactionError<P>) -> Self
pub fn transaction(err: TransactionError<P>) -> Self
Create a new error from the transaction error.
Trait Implementations§
source§impl<D: AsyncDatabase, P: AsyncPendingManager> Debug for Error<D, P>
impl<D: AsyncDatabase, P: AsyncPendingManager> Debug for Error<D, P>
source§impl<D: AsyncDatabase, P: AsyncPendingManager> Display for Error<D, P>where
TransactionError<P>: Display,
impl<D: AsyncDatabase, P: AsyncPendingManager> Display for Error<D, P>where
TransactionError<P>: Display,
source§impl<D: AsyncDatabase, P: AsyncPendingManager> Error for Error<D, P>
impl<D: AsyncDatabase, P: AsyncPendingManager> Error for Error<D, P>
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()
source§impl<D: AsyncDatabase, P: AsyncPendingManager> From<TransactionError<P>> for Error<D, P>
impl<D: AsyncDatabase, P: AsyncPendingManager> From<TransactionError<P>> for Error<D, P>
source§fn from(source: TransactionError<P>) -> Self
fn from(source: TransactionError<P>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<D, P> Freeze for Error<D, P>
impl<D, P> RefUnwindSafe for Error<D, P>
impl<D, P> Send for Error<D, P>
impl<D, P> Sync for Error<D, P>
impl<D, P> Unpin for Error<D, P>
impl<D, P> UnwindSafe for Error<D, P>
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