#[repr(u16)]pub enum OperationCode {
Request = 1,
Reply = 2,
}
Expand description
ARP packet operation code
Variants§
Trait Implementations§
source§impl Clone for OperationCode
impl Clone for OperationCode
source§fn clone(&self) -> OperationCode
fn clone(&self) -> OperationCode
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 OperationCode
impl Debug for OperationCode
source§impl Display for OperationCode
impl Display for OperationCode
source§impl Hash for OperationCode
impl Hash for OperationCode
source§impl Ord for OperationCode
impl Ord for OperationCode
source§fn cmp(&self, other: &OperationCode) -> Ordering
fn cmp(&self, other: &OperationCode) -> 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 OperationCode
impl PartialEq for OperationCode
source§fn eq(&self, other: &OperationCode) -> bool
fn eq(&self, other: &OperationCode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for OperationCode
impl PartialOrd for OperationCode
source§fn partial_cmp(&self, other: &OperationCode) -> Option<Ordering>
fn partial_cmp(&self, other: &OperationCode) -> 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 TryFrom<u16> for OperationCode
impl TryFrom<u16> for OperationCode
impl Copy for OperationCode
impl Eq for OperationCode
impl StructuralPartialEq for OperationCode
Auto Trait Implementations§
impl Freeze for OperationCode
impl RefUnwindSafe for OperationCode
impl Send for OperationCode
impl Sync for OperationCode
impl Unpin for OperationCode
impl UnwindSafe for OperationCode
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