Enum cross_socket::packet::arp::ArpOperation
source · pub enum ArpOperation {
Request = 1,
Reply = 2,
RarpRequest = 3,
RarpReply = 4,
InRequest = 8,
InReply = 9,
Nak = 10,
}Expand description
Represents the ARP operation types.
Variants§
Implementations§
source§impl ArpOperation
impl ArpOperation
sourcepub fn from_u16(n: u16) -> Option<ArpOperation>
pub fn from_u16(n: u16) -> Option<ArpOperation>
Constructs a new ArpOperation from u16
Trait Implementations§
source§impl Clone for ArpOperation
impl Clone for ArpOperation
source§fn clone(&self) -> ArpOperation
fn clone(&self) -> ArpOperation
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 ArpOperation
impl Debug for ArpOperation
source§impl Hash for ArpOperation
impl Hash for ArpOperation
source§impl Ord for ArpOperation
impl Ord for ArpOperation
source§fn cmp(&self, other: &ArpOperation) -> Ordering
fn cmp(&self, other: &ArpOperation) -> 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 ArpOperation
impl PartialEq for ArpOperation
source§fn eq(&self, other: &ArpOperation) -> bool
fn eq(&self, other: &ArpOperation) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ArpOperation
impl PartialOrd for ArpOperation
source§fn partial_cmp(&self, other: &ArpOperation) -> Option<Ordering>
fn partial_cmp(&self, other: &ArpOperation) -> 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 moreimpl Copy for ArpOperation
impl Eq for ArpOperation
impl StructuralEq for ArpOperation
impl StructuralPartialEq for ArpOperation
Auto Trait Implementations§
impl RefUnwindSafe for ArpOperation
impl Send for ArpOperation
impl Sync for ArpOperation
impl Unpin for ArpOperation
impl UnwindSafe for ArpOperation
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