Struct pnet_packet::ipv4::Ipv4OptionNumber
source · 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§fn eq(&self, other: &Ipv4OptionNumber) -> bool
fn eq(&self, other: &Ipv4OptionNumber) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Ipv4OptionNumber
impl PartialOrd for Ipv4OptionNumber
source§fn partial_cmp(&self, other: &Ipv4OptionNumber) -> Option<Ordering>
fn partial_cmp(&self, other: &Ipv4OptionNumber) -> 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 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