pub enum Error {
Io(Error),
Utf8(Utf8Error),
Parse(ParseIntError),
Openssl(Error),
OpensslStack(ErrorStack),
Canceled(Canceled),
Protocol,
NoAddr,
Postgres {
message: String,
},
Timeout,
Unit,
SSLDenied,
}
Variants
Io(Error)
Utf8(Utf8Error)
Parse(ParseIntError)
Openssl(Error)
OpensslStack(ErrorStack)
Canceled(Canceled)
Protocol
A protocol error.
NoAddr
The supplied network address is invalid.
Postgres
Fields
message: String
An SQL error happened.
Timeout
The connection timed out.
Unit
No particular error
SSLDenied
SSL connection denied
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl From<ErrorStack> for Error
impl From<ErrorStack> for Error
sourcefn from(e: ErrorStack) -> Self
fn from(e: ErrorStack) -> Self
Converts to this type from the input type.
sourceimpl From<ParseIntError> for Error
impl From<ParseIntError> for Error
sourcefn from(e: ParseIntError) -> Self
fn from(e: ParseIntError) -> Self
Converts to this type from the input type.
impl Send for Error
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more