pub enum PacketParseError {
PacketTooSmall(usize),
UnrecognizedICMPType(u8),
}
Expand description
Error type returned by parsing the ICMP packets.
Variants§
PacketTooSmall(usize)
Not enough bytes to properly parse the packet from.
UnrecognizedICMPType(u8)
An unrecognized ICMP type.
Trait Implementations§
Source§impl Debug for PacketParseError
impl Debug for PacketParseError
Source§impl Display for PacketParseError
impl Display for PacketParseError
Source§impl From<PacketParseError> for Error
impl From<PacketParseError> for Error
Source§fn from(err: PacketParseError) -> Self
fn from(err: PacketParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PacketParseError
impl RefUnwindSafe for PacketParseError
impl Send for PacketParseError
impl Sync for PacketParseError
impl Unpin for PacketParseError
impl UnwindSafe for PacketParseError
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