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
Source§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 Ord for Ipv4Proto
impl Ord for Ipv4Proto
Source§impl PartialOrd for Ipv4Proto
impl PartialOrd 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)