pub enum DropReason {
Show 14 variants
Packet(Error),
UnsupportedEthertype(EthernetProtocol),
UnsupportedIpProtocol(IpProtocol),
UnsupportedDhcp(DhcpMessageType),
UnsupportedArp,
Ipv4Checksum,
SendBufferFull,
Io(Error),
BadTcpState(TcpError),
PortNotBound,
UnsupportedDhcpv6(MessageType),
UnsupportedNdp(NdpMessageType),
MalformedPacket,
FragmentedPacket,
}Expand description
The reason a packet was dropped without being handled.
Variants§
Packet(Error)
The packet could not be parsed.
UnsupportedEthertype(EthernetProtocol)
The ethertype is unknown.
UnsupportedIpProtocol(IpProtocol)
The ethertype is unknown.
UnsupportedDhcp(DhcpMessageType)
The ARP type is unsupported.
UnsupportedArp
The ARP type is unsupported.
Ipv4Checksum
The IPv4 checksum was invalid.
SendBufferFull
The send buffer is invalid.
Io(Error)
There was an IO error.
BadTcpState(TcpError)
The TCP state is invalid.
PortNotBound
Specified port is not bound.
UnsupportedDhcpv6(MessageType)
The DHCPv6 message type is unsupported.
UnsupportedNdp(NdpMessageType)
The NDP message type is unsupported.
MalformedPacket
An incoming packet was recognized but was self-contradictory. E.g. a TCP packet with both SYN and FIN flags set.
FragmentedPacket
An incoming IP packet has been split into several IP fragments and was dropped, since IP reassembly is not supported.
Trait Implementations§
Source§impl Debug for DropReason
impl Debug for DropReason
Source§impl Display for DropReason
impl Display for DropReason
Source§impl Error for DropReason
impl Error for DropReason
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 DropReason
impl !RefUnwindSafe for DropReason
impl Send for DropReason
impl Sync for DropReason
impl Unpin for DropReason
impl !UnwindSafe for DropReason
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