pub enum CodecErrorKind {
UnexpectedEof,
InvalidValue,
LengthOverflow,
TrailingBytes,
WriteFailed,
ReadFailed,
}Expand description
High-level category for a codec error.
Variants§
UnexpectedEof
The input ended before the requested bytes could be read.
InvalidValue
A value used a byte or tag that is not valid for its type.
LengthOverflow
A decoded length cannot be represented or safely processed.
TrailingBytes
A decoded value left trailing bytes in an exact decode operation.
WriteFailed
The writer failed to accept bytes.
ReadFailed
The reader failed for a reason other than end of input.
Trait Implementations§
Source§impl Clone for CodecErrorKind
impl Clone for CodecErrorKind
Source§fn clone(&self) -> CodecErrorKind
fn clone(&self) -> CodecErrorKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CodecErrorKind
Source§impl Debug for CodecErrorKind
impl Debug for CodecErrorKind
impl Eq for CodecErrorKind
Source§impl PartialEq for CodecErrorKind
impl PartialEq for CodecErrorKind
Source§fn eq(&self, other: &CodecErrorKind) -> bool
fn eq(&self, other: &CodecErrorKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CodecErrorKind
Auto Trait Implementations§
impl Freeze for CodecErrorKind
impl RefUnwindSafe for CodecErrorKind
impl Send for CodecErrorKind
impl Sync for CodecErrorKind
impl Unpin for CodecErrorKind
impl UnsafeUnpin for CodecErrorKind
impl UnwindSafe for CodecErrorKind
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