pub enum MeatPackError {
InvalidByte(u8),
InvalidState,
InvalidCommandByte(u8),
BufferFull,
UnterminatedLine(usize),
EmptyBuffer,
UnterminatedBuffer,
}Expand description
A set of possible error codes from the MeatPack crate.
Variants§
InvalidByte(u8)
InvalidState
InvalidCommandByte(u8)
BufferFull
UnterminatedLine(usize)
EmptyBuffer
UnterminatedBuffer
Trait Implementations§
Source§impl Debug for MeatPackError
impl Debug for MeatPackError
Source§impl Display for MeatPackError
impl Display for MeatPackError
Source§impl Error for MeatPackError
impl Error for MeatPackError
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 MeatPackError
impl RefUnwindSafe for MeatPackError
impl Send for MeatPackError
impl Sync for MeatPackError
impl Unpin for MeatPackError
impl UnwindSafe for MeatPackError
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