pub enum PostgresError {
PgError(Error),
BB8Error(RunError<Error>),
PoolNone,
Other(String),
}
Expand description
PostgreSQL Errors
Variants§
PgError(Error)
An error returned from postgres.
BB8Error(RunError<Error>)
An error returned from bb8.
PoolNone
An error returned at pool none.
Other(String)
An error returned from user.
Trait Implementations§
Source§impl Debug for PostgresError
impl Debug for PostgresError
Source§impl Display for PostgresError
impl Display for PostgresError
Source§impl Error for PostgresError
impl Error for PostgresError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 From<Error> for PostgresError
impl From<Error> for PostgresError
Auto Trait Implementations§
impl Freeze for PostgresError
impl !RefUnwindSafe for PostgresError
impl Send for PostgresError
impl Sync for PostgresError
impl Unpin for PostgresError
impl !UnwindSafe for PostgresError
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