Implementations
impl Protocol
const IP: Self = _
IPPROTO_IP
const ICMP: Self = _
IPPROTO_ICMP
const IGMP: Self = _
IPPROTO_IGMP
const IPIP: Self = _
IPPROTO_IPIP
const TCP: Self = _
IPPROTO_TCP
const EGP: Self = _
IPPROTO_EGP
const PUP: Self = _
IPPROTO_PUP
const UDP: Self = _
IPPROTO_UDP
const IDP: Self = _
IPPROTO_IDP
const TP: Self = _
IPPROTO_TP
const DCCP: Self = _
IPPROTO_DCCP
const IPV6: Self = _
IPPROTO_IPV6
const RSVP: Self = _
IPPROTO_RSVP
const GRE: Self = _
IPPROTO_GRE
const ESP: Self = _
IPPROTO_ESP
const AH: Self = _
IPPROTO_AH
const MTP: Self = _
IPPROTO_MTP
const BEETPH: Self = _
IPPROTO_BEETPH
const ENCAP: Self = _
IPPROTO_ENCAP
const PIM: Self = _
IPPROTO_PIM
const COMP: Self = _
IPPROTO_COMP
const SCTP: Self = _
IPPROTO_SCTP
const UDPLITE: Self = _
IPPROTO_UDPLITE
const MPLS: Self = _
IPPROTO_MPLS
const ETHERNET: Self = _
IPPROTO_ETHERNET
const RAW: Self = _
IPPROTO_RAW
const MPTCP: Self = _
IPPROTO_MPTCP
const FRAGMENT: Self = _
IPPROTO_FRAGMENT
const ICMPV6: Self = _
IPPROTO_ICMPV6
const MH: Self = _
IPPROTO_MH
const ROUTING: Self = _
IPPROTO_ROUTING
pub const fn from_raw(raw: u32) -> Self
Constructs a Protocol
from a raw integer.
pub const fn as_raw(Self) -> u32
Returns the raw integer for this Protocol
.
Trait Implementations
impl Debug for Protocol
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Hash for Protocol
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl StructuralEq for Protocol
impl StructuralPartialEq for Protocol
Auto Trait Implementations
impl RefUnwindSafe for Protocol
impl UnwindSafe for Protocol
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T