pub enum CobsError {
Truncated,
Corrupt,
}Expand description
Errors that can occur while decoding.
Variants§
Truncated
The input ended without completing the last run or without the trailing zero byte, suggesting that part of it is missing. (This can also occur spuriously if you pick up in the middle of a stream without finding the first zero.)
Corrupt
The input contained an unexpected zero byte. Not all decode methods promise to detect this case.
Trait Implementations§
impl Copy for CobsError
Auto Trait Implementations§
impl Freeze for CobsError
impl RefUnwindSafe for CobsError
impl Send for CobsError
impl Sync for CobsError
impl Unpin for CobsError
impl UnwindSafe for CobsError
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