Struct netsim_embed::icmpv6::Icmpv6Code
source · pub struct Icmpv6Code(pub u8);Expand description
Represents the “ICMPv6 code” header field.
Tuple Fields§
§0: u8Implementations§
source§impl Icmpv6Code
impl Icmpv6Code
sourcepub fn new(val: u8) -> Icmpv6Code
pub fn new(val: u8) -> Icmpv6Code
Create a new Icmpv6Code instance.
Trait Implementations§
source§impl Clone for Icmpv6Code
impl Clone for Icmpv6Code
source§fn clone(&self) -> Icmpv6Code
fn clone(&self) -> Icmpv6Code
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 Icmpv6Code
impl Debug for Icmpv6Code
source§impl Hash for Icmpv6Code
impl Hash for Icmpv6Code
source§impl Ord for Icmpv6Code
impl Ord for Icmpv6Code
source§fn cmp(&self, other: &Icmpv6Code) -> Ordering
fn cmp(&self, other: &Icmpv6Code) -> 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<Icmpv6Code> for Icmpv6Code
impl PartialEq<Icmpv6Code> for Icmpv6Code
source§fn eq(&self, other: &Icmpv6Code) -> bool
fn eq(&self, other: &Icmpv6Code) -> bool
source§impl PartialOrd<Icmpv6Code> for Icmpv6Code
impl PartialOrd<Icmpv6Code> for Icmpv6Code
source§fn partial_cmp(&self, other: &Icmpv6Code) -> Option<Ordering>
fn partial_cmp(&self, other: &Icmpv6Code) -> 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