pub enum PacketError {
IO(Error),
BadEncoding(FromUtf8Error),
InvalidStringLength(usize, usize),
UnexpectedValue(&'static str),
VarOverflow(&'static str, usize),
UnknownPacket(u32),
UnknownEnumValue,
}
Variants§
IO(Error)
BadEncoding(FromUtf8Error)
InvalidStringLength(usize, usize)
UnexpectedValue(&'static str)
VarOverflow(&'static str, usize)
UnknownPacket(u32)
UnknownEnumValue
Trait Implementations§
Source§impl Debug for PacketError
impl Debug for PacketError
Source§impl Display for PacketError
impl Display for PacketError
Source§impl Error for PacketError
impl Error for PacketError
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()
Source§impl From<Error> for PacketError
impl From<Error> for PacketError
Source§impl From<FromUtf8Error> for PacketError
impl From<FromUtf8Error> for PacketError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PacketError
impl !RefUnwindSafe for PacketError
impl Send for PacketError
impl Sync for PacketError
impl Unpin for PacketError
impl !UnwindSafe for PacketError
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