pub enum Error {
Io {
kind: IoErrorKind,
message: String,
},
Protocol(Cow<'static, str>),
Encoding(Cow<'static, str>),
Conversion(Cow<'static, str>),
Utf8,
Utf16,
ParseInt(ParseIntError),
Server(TokenError),
Tls(String),
Gssapi(String),
Routing {
host: String,
port: u16,
},
BulkInput(Cow<'static, str>),
}
Expand description
A unified error enum that contains several errors that might occurr during the lifecycle of this driver
Variants§
Io
Fields
§
kind: IoErrorKind
A list specifying general categories of I/O error.
An error occured when performing I/O to the server.
Protocol(Cow<'static, str>)
An error happened during the request or response parsing.
Encoding(Cow<'static, str>)
Server responded with encoding not supported.
Conversion(Cow<'static, str>)
Conversion failure from one type to another.
Utf8
Tried to convert data to UTF-8 that was not valid.
Utf16
Tried to convert data to UTF-16 that was not valid.
ParseInt(ParseIntError)
Tried to parse an integer that was not an integer.
Server(TokenError)
An error returned by the server.
Tls(String)
An error in the TLS handshake.
Gssapi(String)
An error from the GSSAPI library.
Routing
Server requested a connection to an alternative address.
BulkInput(Cow<'static, str>)
Invalid input in Bulk Upload
Implementations§
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<FromUtf16Error> for Error
impl From<FromUtf16Error> for Error
source§fn from(_err: FromUtf16Error) -> Error
fn from(_err: FromUtf16Error) -> Error
Converts to this type from the input type.
source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(_err: FromUtf8Error) -> Error
fn from(_err: FromUtf8Error) -> Error
Converts to this type from the input type.
source§impl From<Infallible> for Error
impl From<Infallible> for Error
source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(err: ParseIntError) -> Error
fn from(err: ParseIntError) -> Error
Converts to this type from the input type.
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
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