pub enum PostgresError {
Postgres(Error),
Plan(String),
Runtime(Error),
}Expand description
An error connecting to or loading a database.
Variants§
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 !RefUnwindSafe for PostgresError
impl !UnwindSafe for PostgresError
impl Freeze for PostgresError
impl Send for PostgresError
impl Sync for PostgresError
impl Unpin for PostgresError
impl UnsafeUnpin 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