pub enum CafError {
Io(Error),
FromUtf8(FromUtf8Error),
NotCaf,
UnsupportedChunkType(ChunkType),
}
Variants§
Io(Error)
FromUtf8(FromUtf8Error)
NotCaf
If the given stream doesn’t start with a CAF header.
UnsupportedChunkType(ChunkType)
If the chunk can’t be decoded because its type is not supported
Trait Implementations§
Source§impl Error for CafError
impl Error for CafError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§impl From<FromUtf8Error> for CafError
impl From<FromUtf8Error> for CafError
Source§fn from(utf8_err: FromUtf8Error) -> Self
fn from(utf8_err: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CafError
impl !RefUnwindSafe for CafError
impl Send for CafError
impl Sync for CafError
impl Unpin for CafError
impl !UnwindSafe for CafError
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