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 duplicate 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 for NdpOptionType
impl PartialEq for NdpOptionType
Source§impl PartialOrd for NdpOptionType
impl PartialOrd for NdpOptionType
Source§impl PrimitiveValues for NdpOptionType
impl PrimitiveValues for NdpOptionType
impl Copy for NdpOptionType
impl Eq for NdpOptionType
impl StructuralPartialEq for NdpOptionType
Auto Trait Implementations§
impl Freeze for NdpOptionType
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