pub enum Error {
Eof,
UnexpectedEof,
InvalidWireType(u8),
InvalidFieldNumber(u8),
VarintOverflow,
InvalidUtf8String,
BufferOverflow,
}
Expand description
The Error type.
Variants§
Eof
End of parsing, normally this is a safe boundary.
UnexpectedEof
No enough bytes for parsing.
InvalidWireType(u8)
Invalid wire type.
InvalidFieldNumber(u8)
Invalid field number, over 0b11111.
VarintOverflow
Overflow a 64bit varint.
InvalidUtf8String
Invalid UTF8 encoding, should use the bytes type.
BufferOverflow
Buffer overflow while encoding.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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