pub enum DecoderErrorCode {
StreamFailure,
InvalidByteSequence,
OutOfRange,
EndOfInput,
}
Expand description
Enumeration of different decoder errors
Variants§
StreamFailure
Something went pear-shaped in the underlying stream
InvalidByteSequence
Detected an invalid byte sequence
OutOfRange
Out of range error
EndOfInput
The end of the input has been reached
Trait Implementations§
Source§impl Clone for DecoderErrorCode
impl Clone for DecoderErrorCode
Source§fn clone(&self) -> DecoderErrorCode
fn clone(&self) -> DecoderErrorCode
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DecoderErrorCode
impl Debug for DecoderErrorCode
Source§impl PartialEq for DecoderErrorCode
impl PartialEq for DecoderErrorCode
impl Copy for DecoderErrorCode
impl StructuralPartialEq for DecoderErrorCode
Auto Trait Implementations§
impl Freeze for DecoderErrorCode
impl RefUnwindSafe for DecoderErrorCode
impl Send for DecoderErrorCode
impl Sync for DecoderErrorCode
impl Unpin for DecoderErrorCode
impl UnwindSafe for DecoderErrorCode
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