pub enum Error {
Io(Error),
UUIDParse(BytesError),
General(String),
FromUtf8(FromUtf8Error),
Compression(CompressionError),
Server(CDRSError),
}
Expand description
CDRS custom error type. CDRS expects two types of error - errors returned by Server
and internal erros occured within the driver itself. Ocassionaly io::Error
is a type that represent internal error because due to implementation IO errors only
can be raised by CDRS driver. Server
error is an error which are ones returned by
a Server via result error frames.
Variants§
Io(Error)
Internal IO error.
UUIDParse(BytesError)
Internal error that may be raised during uuid::Uuid::from_bytes
General(String)
General error
FromUtf8(FromUtf8Error)
Internal error that may be raised during String::from_utf8
Compression(CompressionError)
Internal Compression/Decompression error
Server(CDRSError)
Server error.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
source§impl From<BytesError> for Error
impl From<BytesError> for Error
source§fn from(err: BytesError) -> Error
fn from(err: BytesError) -> Error
Converts to this type from the input type.
source§impl From<CompressionError> for Error
impl From<CompressionError> for Error
source§fn from(err: CompressionError) -> Error
fn from(err: CompressionError) -> 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.