Enum smoltcp::wire::DhcpMessageType
source · pub enum DhcpMessageType {
Discover,
Offer,
Request,
Decline,
Ack,
Nak,
Release,
Inform,
Unknown(u8),
}
Expand description
The possible message types of a DHCP packet.
Variants§
Trait Implementations§
source§impl Clone for MessageType
impl Clone for MessageType
source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
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 MessageType
impl Debug for MessageType
source§impl From<MessageType> for u8
impl From<MessageType> for u8
source§fn from(value: MessageType) -> Self
fn from(value: MessageType) -> Self
Converts to this type from the input type.
source§impl From<u8> for MessageType
impl From<u8> for MessageType
source§impl Ord for MessageType
impl Ord for MessageType
source§fn cmp(&self, other: &MessageType) -> Ordering
fn cmp(&self, other: &MessageType) -> 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<MessageType> for MessageType
impl PartialEq<MessageType> for MessageType
source§fn eq(&self, other: &MessageType) -> bool
fn eq(&self, other: &MessageType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<MessageType> for MessageType
impl PartialOrd<MessageType> for MessageType
source§fn partial_cmp(&self, other: &MessageType) -> Option<Ordering>
fn partial_cmp(&self, other: &MessageType) -> 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 more