pub struct IpProtocol(pub u8);Expand description
IP datagram encapsulated protocol.
Tuple Fields§
§0: u8Implementations§
Source§impl Protocol
impl Protocol
pub const HopByHop: Self
pub const Icmp: Self
pub const Igmp: Self
pub const Tcp: Self
pub const Udp: Self
pub const Ipv6Route: Self
pub const Ipv6Frag: Self
pub const IpSecEsp: Self
pub const IpSecAh: Self
pub const Icmpv6: Self
pub const Ipv6NoNxt: Self
pub const Ipv6Opts: Self
Trait Implementations§
impl Copy for Protocol
impl Eq for Protocol
Source§impl From<ExtHeaderId> for IpProtocol
impl From<ExtHeaderId> for IpProtocol
Source§fn from(val: ExtHeaderId) -> Self
fn from(val: ExtHeaderId) -> Self
Converts to this type from the input type.
Source§impl Ord for Protocol
impl Ord for Protocol
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Protocol
impl PartialOrd for Protocol
impl StructuralPartialEq for Protocol
Auto Trait Implementations§
impl Freeze for Protocol
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin for Protocol
impl UnsafeUnpin for Protocol
impl UnwindSafe for Protocol
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