Enum cdrs::error::Error
[−]
[src]
pub enum Error { Io(Error), UUIDParse(ParseError), GeneralParsing(String), FromUtf8(FromUtf8Error), Compression(CompressionError), Server(CDRSError), }
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(ParseError)
Internal error that may be raised during uuid::Uuid::from_bytes
GeneralParsing(String)
General parsing 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
impl Debug for Error
[src]
impl Display for Error
[src]
impl Error for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more
impl From<Error> for Error
[src]
impl From<CDRSError> for Error
[src]
impl From<CompressionError> for Error
[src]
fn from(err: CompressionError) -> Error
Performs the conversion.
impl From<FromUtf8Error> for Error
[src]
fn from(err: FromUtf8Error) -> Error
Performs the conversion.
impl From<ParseError> for Error
[src]
fn from(err: ParseError) -> Error
Performs the conversion.