Struct pnet_packet::arp::ArpHardwareType
source · pub struct ArpHardwareType(pub u16);
Expand description
Represents the ARP hardware types.
Tuple Fields§
§0: u16
Implementations§
Trait Implementations§
source§impl Clone for ArpHardwareType
impl Clone for ArpHardwareType
source§fn clone(&self) -> ArpHardwareType
fn clone(&self) -> ArpHardwareType
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 ArpHardwareType
impl Debug for ArpHardwareType
source§impl Hash for ArpHardwareType
impl Hash for ArpHardwareType
source§impl Ord for ArpHardwareType
impl Ord for ArpHardwareType
source§fn cmp(&self, other: &ArpHardwareType) -> Ordering
fn cmp(&self, other: &ArpHardwareType) -> 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<ArpHardwareType> for ArpHardwareType
impl PartialEq<ArpHardwareType> for ArpHardwareType
source§fn eq(&self, other: &ArpHardwareType) -> bool
fn eq(&self, other: &ArpHardwareType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ArpHardwareType> for ArpHardwareType
impl PartialOrd<ArpHardwareType> for ArpHardwareType
source§fn partial_cmp(&self, other: &ArpHardwareType) -> Option<Ordering>
fn partial_cmp(&self, other: &ArpHardwareType) -> 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 ArpHardwareType
impl PrimitiveValues for ArpHardwareType
impl Copy for ArpHardwareType
impl Eq for ArpHardwareType
impl StructuralEq for ArpHardwareType
impl StructuralPartialEq for ArpHardwareType
Auto Trait Implementations§
impl RefUnwindSafe for ArpHardwareType
impl Send for ArpHardwareType
impl Sync for ArpHardwareType
impl Unpin for ArpHardwareType
impl UnwindSafe for ArpHardwareType
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