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