Enum net::wire::IpProtocol
pub enum IpProtocol {
HopByHop,
Icmp,
Igmp,
Tcp,
Udp,
Ipv6Route,
Ipv6Frag,
Icmpv6,
Ipv6NoNxt,
Ipv6Opts,
Unknown(u8),
}
Expand description
IP datagram encapsulated protocol.
Variants§
Trait Implementations§
§impl Ord for Protocol
impl Ord for Protocol
§impl PartialOrd<Protocol> for Protocol
impl PartialOrd<Protocol> for Protocol
§fn partial_cmp(&self, other: &Protocol) -> Option<Ordering>
fn partial_cmp(&self, other: &Protocol) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Protocol
impl Eq for Protocol
impl StructuralEq for Protocol
impl StructuralPartialEq for Protocol
Auto Trait Implementations§
impl RefUnwindSafe for Protocol
impl Send for Protocol
impl Sync for Protocol
impl Unpin 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