pub enum DecodeErrorKind {
UnexpectedEnd,
UnexpectedByte {
name: &'static str,
value: u8,
expected: &'static [u8],
},
InvalidHeader,
UnterminatedString,
Utf8Error(Utf8Error),
}
Variants§
Trait Implementations§
Source§impl Clone for DecodeErrorKind
impl Clone for DecodeErrorKind
Source§fn clone(&self) -> DecodeErrorKind
fn clone(&self) -> DecodeErrorKind
Returns a duplicate 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 DecodeErrorKind
impl Debug for DecodeErrorKind
Source§impl Display for DecodeErrorKind
impl Display for DecodeErrorKind
Source§impl Error for DecodeErrorKind
impl Error for DecodeErrorKind
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
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Utf8Error> for DecodeErrorKind
impl From<Utf8Error> for DecodeErrorKind
Source§impl PartialEq for DecodeErrorKind
impl PartialEq for DecodeErrorKind
impl Copy for DecodeErrorKind
impl Eq for DecodeErrorKind
impl StructuralPartialEq for DecodeErrorKind
Auto Trait Implementations§
impl Freeze for DecodeErrorKind
impl RefUnwindSafe for DecodeErrorKind
impl Send for DecodeErrorKind
impl Sync for DecodeErrorKind
impl Unpin for DecodeErrorKind
impl UnwindSafe for DecodeErrorKind
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