Struct pnet_packet::icmpv6::Icmpv6Code
source · pub struct Icmpv6Code(pub u8);
Expand description
Represents the “ICMPv6 code” header field.
Tuple Fields§
§0: u8
Implementations§
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
This method tests for
self
and other
values to be equal, and is used
by ==
.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 moresource§impl PrimitiveValues for Icmpv6Code
impl PrimitiveValues for Icmpv6Code
impl Copy for Icmpv6Code
impl Eq for Icmpv6Code
impl StructuralEq for Icmpv6Code
impl StructuralPartialEq for Icmpv6Code
Auto Trait Implementations§
impl RefUnwindSafe for Icmpv6Code
impl Send for Icmpv6Code
impl Sync for Icmpv6Code
impl Unpin for Icmpv6Code
impl UnwindSafe for Icmpv6Code
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