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