Struct pnet_packet::icmpv6::ndp::NdpOptionType
source · pub struct NdpOptionType(pub u8);
Expand description
Represents a Neighbor Discovery Option Type.
Tuple Fields§
§0: u8
Implementations§
source§impl NdpOptionType
impl NdpOptionType
sourcepub fn new(value: u8) -> NdpOptionType
pub fn new(value: u8) -> NdpOptionType
Create a new NdpOptionType
instance.
Trait Implementations§
source§impl Clone for NdpOptionType
impl Clone for NdpOptionType
source§fn clone(&self) -> NdpOptionType
fn clone(&self) -> NdpOptionType
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 NdpOptionType
impl Debug for NdpOptionType
source§impl Hash for NdpOptionType
impl Hash for NdpOptionType
source§impl Ord for NdpOptionType
impl Ord for NdpOptionType
source§fn cmp(&self, other: &NdpOptionType) -> Ordering
fn cmp(&self, other: &NdpOptionType) -> 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<NdpOptionType> for NdpOptionType
impl PartialEq<NdpOptionType> for NdpOptionType
source§fn eq(&self, other: &NdpOptionType) -> bool
fn eq(&self, other: &NdpOptionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<NdpOptionType> for NdpOptionType
impl PartialOrd<NdpOptionType> for NdpOptionType
source§fn partial_cmp(&self, other: &NdpOptionType) -> Option<Ordering>
fn partial_cmp(&self, other: &NdpOptionType) -> 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 NdpOptionType
impl PrimitiveValues for NdpOptionType
impl Copy for NdpOptionType
impl Eq for NdpOptionType
impl StructuralEq for NdpOptionType
impl StructuralPartialEq for NdpOptionType
Auto Trait Implementations§
impl RefUnwindSafe for NdpOptionType
impl Send for NdpOptionType
impl Sync for NdpOptionType
impl Unpin for NdpOptionType
impl UnwindSafe for NdpOptionType
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