pub enum BinaryCodecError {
Eof,
Varint,
VarintOverflow,
SizeLimit {
declared: usize,
},
Length,
Tag {
got: u8,
expected: u8,
},
Utf8,
}Expand description
Errors from binary codec operations.
Variants§
Eof
Unexpected end of input.
Varint
Malformed varint encoding.
VarintOverflow
Varint exceeds maximum allowed bytes.
SizeLimit
Declared size exceeds maximum allowed.
Length
Invalid length for fixed-size field.
Tag
Unexpected tag encountered.
Utf8
Invalid UTF-8 in string.
Trait Implementations§
Source§impl Debug for BinaryCodecError
impl Debug for BinaryCodecError
Source§impl Display for BinaryCodecError
impl Display for BinaryCodecError
Source§impl Error for BinaryCodecError
impl Error for BinaryCodecError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for BinaryCodecError
impl RefUnwindSafe for BinaryCodecError
impl Send for BinaryCodecError
impl Sync for BinaryCodecError
impl Unpin for BinaryCodecError
impl UnwindSafe for BinaryCodecError
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