pub enum Error {
IoError(Error),
ConnectionSetupErr(ConnectionSetupError),
ProtocolError(ProtocolError),
ServerError(u16),
ParseError(ParseError),
}
Expand description
Client driver errors
This is a broad classification for all kinds of possible client driver errors, across I/O, server errors and application level parse errors
Variants§
IoError(Error)
An I/O error occurred
ConnectionSetupErr(ConnectionSetupError)
A bad Config
throws this error
ProtocolError(ProtocolError)
When running a query, a protocol error was thrown
ServerError(u16)
A server error code was received
ParseError(ParseError)
An application level parse error
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ConnectionSetupError> for Error
impl From<ConnectionSetupError> for Error
source§fn from(e: ConnectionSetupError) -> Self
fn from(e: ConnectionSetupError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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