pub enum PgsqlError {
Connection(String),
Io(Error),
Timeout(String),
Protocol(String),
Auth(String),
Query {
code: String,
message: String,
detail: String,
sql: String,
position: u16,
},
Pool(String),
}Variants§
Trait Implementations§
Source§impl Debug for PgsqlError
impl Debug for PgsqlError
Source§impl Display for PgsqlError
impl Display for PgsqlError
Source§impl Error for PgsqlError
impl Error for PgsqlError
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<&str> for PgsqlError
impl From<&str> for PgsqlError
Source§impl From<Error> for PgsqlError
impl From<Error> for PgsqlError
Source§impl From<PgsqlError> for String
impl From<PgsqlError> for String
Source§fn from(err: PgsqlError) -> Self
fn from(err: PgsqlError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PgsqlError
impl !RefUnwindSafe for PgsqlError
impl Send for PgsqlError
impl Sync for PgsqlError
impl Unpin for PgsqlError
impl !UnwindSafe for PgsqlError
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