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