pub enum WireError {
Truncated,
VarintOverflow,
UnknownWireType(u8),
ZeroFieldNumber,
LengthOutOfRange,
}Expand description
Wire-format decode errors.
Variants§
Truncated
Buffer ended mid-field.
VarintOverflow
A varint exceeded 10 bytes.
UnknownWireType(u8)
Wire type bits 3/4 (deprecated groups) or anything else
unrecognized.
ZeroFieldNumber
Field number 0 is illegal.
LengthOutOfRange
A length-delimited field declared a length running past the buffer.
Trait Implementations§
impl Copy for WireError
impl Eq for WireError
impl StructuralPartialEq for WireError
Auto Trait Implementations§
impl Freeze for WireError
impl RefUnwindSafe for WireError
impl Send for WireError
impl Sync for WireError
impl Unpin for WireError
impl UnsafeUnpin for WireError
impl UnwindSafe for WireError
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