pub enum Error {
Io(Error),
UUIDParse(Error),
General(String),
FromUtf8(FromUtf8Error),
Compression(String),
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(Error)
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(String)
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)>
Returns the lower-level source of this error, if any. Read more
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.
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