Enum cdrs::error::Error[][src]

pub enum Error {
    Io(Error),
    UUIDParse(ParseError),
    General(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

Internal IO error.

Internal error that may be raised during uuid::Uuid::from_bytes

General error

Internal error that may be raised during String::from_utf8

Internal Compression/Decompression error

Server error.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Error for Error
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

impl From<Error> for Error
[src]

Performs the conversion.

impl From<CDRSError> for Error
[src]

Performs the conversion.

impl From<CompressionError> for Error
[src]

Performs the conversion.

impl From<FromUtf8Error> for Error
[src]

Performs the conversion.

impl From<ParseError> for Error
[src]

Performs the conversion.

impl From<String> for Error
[src]

Performs the conversion.

impl<'a> From<&'a str> for Error
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Error

impl Sync for Error