pub enum PacketConfigError {
UnknownFlags(u16),
Corrupted,
InvalidChecksum,
}Expand description
Packet error when reading invalid config from a packet.
Variants§
UnknownFlags(u16)
Unknown flags are used, the packet can’t be decoded because this usually increase length of the footer.
Corrupted
The packet is corrupted, the footer might be too short or an invalid bit pattern has been read.
InvalidChecksum
The packet checksum and calculated checksum aren’t equal.
Trait Implementations§
Source§impl Clone for PacketConfigError
impl Clone for PacketConfigError
Source§fn clone(&self) -> PacketConfigError
fn clone(&self) -> PacketConfigError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PacketConfigError
impl Debug for PacketConfigError
Source§impl Display for PacketConfigError
impl Display for PacketConfigError
Source§impl Error for PacketConfigError
impl Error for PacketConfigError
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()
Source§impl From<PacketConfigError> for PacketRejectionError
impl From<PacketConfigError> for PacketRejectionError
Source§fn from(source: PacketConfigError) -> Self
fn from(source: PacketConfigError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PacketConfigError
impl RefUnwindSafe for PacketConfigError
impl Send for PacketConfigError
impl Sync for PacketConfigError
impl Unpin for PacketConfigError
impl UnwindSafe for PacketConfigError
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