pub enum Error<E> {
Pool(PoolError<Error>),
Postgres(Error),
R2d2(Error),
Other(E),
}
Expand description
Library errors.
Variants§
Pool(PoolError<Error>)
deadpool
.
Postgres(Error)
tokio_postgres
.
R2d2(Error)
r2d2
.
Other(E)
All other errors, e.g. returned from transaction closure.
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for Error<E>where
E: Freeze,
impl<E> !RefUnwindSafe for Error<E>
impl<E> Send for Error<E>where
E: Send,
impl<E> Sync for Error<E>where
E: Sync,
impl<E> Unpin for Error<E>where
E: Unpin,
impl<E> !UnwindSafe for Error<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