pub enum Error {
Partial,
InvalidPrefix,
InvalidLength,
InvalidBoolean,
InvalidNumber,
Protocol(u8, u8),
NewLine,
}
Expand description
Protocol errors
Variants§
Partial
The data is incomplete. This it not an error per-se, but rather a mechanism to let the caller know they should keep buffering data before calling the parser again.
InvalidPrefix
Unexpected first byte after a new line
InvalidLength
Invalid data length
InvalidBoolean
Parsed value is not boolean
InvalidNumber
Parsed data is not a number
Protocol(u8, u8)
Protocol error
NewLine
Missing new line
Trait Implementations§
impl Eq for Error
impl StructuralPartialEq for Error
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