Struct netsim_embed::ip::IpNextHeaderProtocol
source · pub struct IpNextHeaderProtocol(pub u8);Expand description
Represents an IPv4 next level protocol, or an IPv6 next header protocol,
see IpNextHeaderProtocols for a list of values.
Tuple Fields§
§0: u8Implementations§
source§impl IpNextHeaderProtocol
impl IpNextHeaderProtocol
sourcepub fn new(value: u8) -> IpNextHeaderProtocol
pub fn new(value: u8) -> IpNextHeaderProtocol
Create a new IpNextHeaderProtocol
Trait Implementations§
source§impl Clone for IpNextHeaderProtocol
impl Clone for IpNextHeaderProtocol
source§fn clone(&self) -> IpNextHeaderProtocol
fn clone(&self) -> IpNextHeaderProtocol
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for IpNextHeaderProtocol
impl Debug for IpNextHeaderProtocol
source§impl Display for IpNextHeaderProtocol
impl Display for IpNextHeaderProtocol
source§impl Hash for IpNextHeaderProtocol
impl Hash for IpNextHeaderProtocol
source§impl Ord for IpNextHeaderProtocol
impl Ord for IpNextHeaderProtocol
source§fn cmp(&self, other: &IpNextHeaderProtocol) -> Ordering
fn cmp(&self, other: &IpNextHeaderProtocol) -> Ordering
1.21.0 · 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 PartialEq<IpNextHeaderProtocol> for IpNextHeaderProtocol
impl PartialEq<IpNextHeaderProtocol> for IpNextHeaderProtocol
source§fn eq(&self, other: &IpNextHeaderProtocol) -> bool
fn eq(&self, other: &IpNextHeaderProtocol) -> bool
source§impl PartialOrd<IpNextHeaderProtocol> for IpNextHeaderProtocol
impl PartialOrd<IpNextHeaderProtocol> for IpNextHeaderProtocol
source§fn partial_cmp(&self, other: &IpNextHeaderProtocol) -> Option<Ordering>
fn partial_cmp(&self, other: &IpNextHeaderProtocol) -> 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 more