pub struct Ipv4OptionNumber(pub u8);
Expand description
Represents an IPv4 option.
Tuple Fields§
§0: u8
Implementations§
Source§impl Ipv4OptionNumber
impl Ipv4OptionNumber
Sourcepub fn new(value: u8) -> Ipv4OptionNumber
pub fn new(value: u8) -> Ipv4OptionNumber
Create a new Ipv4OptionNumber
instance.
Trait Implementations§
Source§impl Clone for Ipv4OptionNumber
impl Clone for Ipv4OptionNumber
Source§fn clone(&self) -> Ipv4OptionNumber
fn clone(&self) -> Ipv4OptionNumber
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 Ipv4OptionNumber
impl Debug for Ipv4OptionNumber
Source§impl Hash for Ipv4OptionNumber
impl Hash for Ipv4OptionNumber
Source§impl Ord for Ipv4OptionNumber
impl Ord for Ipv4OptionNumber
Source§fn cmp(&self, other: &Ipv4OptionNumber) -> Ordering
fn cmp(&self, other: &Ipv4OptionNumber) -> 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 Ipv4OptionNumber
impl PartialEq for Ipv4OptionNumber
Source§impl PartialOrd for Ipv4OptionNumber
impl PartialOrd for Ipv4OptionNumber
Source§impl PrimitiveValues for Ipv4OptionNumber
impl PrimitiveValues for Ipv4OptionNumber
impl Copy for Ipv4OptionNumber
impl Eq for Ipv4OptionNumber
impl StructuralPartialEq for Ipv4OptionNumber
Auto Trait Implementations§
impl Freeze for Ipv4OptionNumber
impl RefUnwindSafe for Ipv4OptionNumber
impl Send for Ipv4OptionNumber
impl Sync for Ipv4OptionNumber
impl Unpin for Ipv4OptionNumber
impl UnwindSafe for Ipv4OptionNumber
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