Struct DhcpMessageType
pub struct DhcpMessageType(pub u8);Expand description
The message type of a DHCP packet, from the message type option.
Tuple Fields§
§0: u8Implementations§
§impl MessageType
impl MessageType
pub const Discover: MessageType
pub const Offer: MessageType
pub const Request: MessageType
pub const Decline: MessageType
pub const Ack: MessageType
pub const Nak: MessageType
pub const Release: MessageType
pub const Inform: MessageType
§impl MessageType
impl MessageType
Trait Implementations§
§impl Clone for MessageType
impl Clone for MessageType
§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MessageType
§impl Debug for MessageType
impl Debug for MessageType
§impl Display for MessageType
impl Display for MessageType
impl Eq for MessageType
§impl Format for MessageType
Available on crate feature defmt only.
impl Format for MessageType
Available on crate feature
defmt only.§impl From<u8> for MessageType
impl From<u8> for MessageType
§fn from(value: u8) -> MessageType
fn from(value: u8) -> MessageType
Converts to this type from the input type.
§impl Hash for MessageType
impl Hash for MessageType
§impl Ord for MessageType
impl Ord for MessageType
§fn cmp(&self, other: &MessageType) -> Ordering
fn cmp(&self, other: &MessageType) -> Ordering
1.21.0 (const: unstable) · 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
§impl PartialEq for MessageType
impl PartialEq for MessageType
§impl PartialOrd for MessageType
impl PartialOrd for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnsafeUnpin for MessageType
impl UnwindSafe for MessageType
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