pub enum Icmp {
V4(IcmpHdr),
V6(IcmpV6Hdr),
}Expand description
An enum representing either an ICMPv4 or ICMPv6 header.
V4contains an IPv4 ICMP header as defined in RFC 792 (seeIcmpHdr)V6contains an IPv6 ICMP header as defined in RFC 4443 (seeIcmpV6Hdr)
This enum allows working with both ICMP protocol versions through a unified interface.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Icmp
impl RefUnwindSafe for Icmp
impl Send for Icmp
impl Sync for Icmp
impl Unpin for Icmp
impl UnwindSafe for Icmp
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