Struct pnet::packet::icmpv6::Icmpv6Type
source · pub struct Icmpv6Type(pub u8);
Expand description
Represents the “ICMPv6 type” header field.
Tuple Fields§
§0: u8
Implementations§
source§impl Icmpv6Type
impl Icmpv6Type
sourcepub fn new(val: u8) -> Icmpv6Type
pub fn new(val: u8) -> Icmpv6Type
Create a new Icmpv6Type
instance.
Trait Implementations§
source§impl Clone for Icmpv6Type
impl Clone for Icmpv6Type
source§fn clone(&self) -> Icmpv6Type
fn clone(&self) -> Icmpv6Type
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 Icmpv6Type
impl Debug for Icmpv6Type
source§impl Hash for Icmpv6Type
impl Hash for Icmpv6Type
source§impl Ord for Icmpv6Type
impl Ord for Icmpv6Type
source§fn cmp(&self, other: &Icmpv6Type) -> Ordering
fn cmp(&self, other: &Icmpv6Type) -> 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 for Icmpv6Type
impl PartialEq for Icmpv6Type
source§fn eq(&self, other: &Icmpv6Type) -> bool
fn eq(&self, other: &Icmpv6Type) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Icmpv6Type
impl PartialOrd for Icmpv6Type
source§fn partial_cmp(&self, other: &Icmpv6Type) -> Option<Ordering>
fn partial_cmp(&self, other: &Icmpv6Type) -> 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 Icmpv6Type
impl PrimitiveValues for Icmpv6Type
impl Copy for Icmpv6Type
impl Eq for Icmpv6Type
impl StructuralPartialEq for Icmpv6Type
Auto Trait Implementations§
impl Freeze for Icmpv6Type
impl RefUnwindSafe for Icmpv6Type
impl Send for Icmpv6Type
impl Sync for Icmpv6Type
impl Unpin for Icmpv6Type
impl UnwindSafe for Icmpv6Type
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