Enum packet_formats::ip::Ipv4Proto
source · pub enum Ipv4Proto {
Icmp,
Igmp,
Proto(IpProto),
Other(u8),
}
Expand description
An IPv4 protocol number.
The protocol numbers are maintained by IANA.
Variants§
Trait Implementations§
source§impl<I: Ip + IpProtoExt> GenericOverIp<I> for Ipv4Proto
impl<I: Ip + IpProtoExt> GenericOverIp<I> for Ipv4Proto
§type Type = <I as IpProtoExt>::Proto
type Type = <I as IpProtoExt>::Proto
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.source§impl PartialEq for Ipv4Proto
impl PartialEq for Ipv4Proto
impl Copy for Ipv4Proto
impl Eq for Ipv4Proto
impl IpProtocol for Ipv4Proto
impl StructuralPartialEq for Ipv4Proto
Auto Trait Implementations§
impl Freeze for Ipv4Proto
impl RefUnwindSafe for Ipv4Proto
impl Send for Ipv4Proto
impl Sync for Ipv4Proto
impl Unpin for Ipv4Proto
impl UnwindSafe for Ipv4Proto
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