pub enum DhcpMessageKind {
Show 19 variants
Discover,
Offer,
Request,
Decline,
Ack,
Nak,
Release,
Inform,
ForceRenew,
LeaseQuery,
LeaseUnassigned,
LeaseUnknown,
LeaseActive,
BulkLeaseQuery,
LeaseQueryDone,
ActiveLeaseQuery,
LeaseQueryStatus,
Tls,
Unknown(u8),
}
Expand description
Contents of option field kind 53
Variants§
Discover
Client broadcast to locate available servers.
Offer
Server to client in response to DHCPDISCOVER with offer of configuration parameters.
Request
Client message to servers either (a) requesting offered parameters from one server and implicitly declining offers from all others, (b) confirming correctness of previously allocated address after, e.g., system reboot, or (c) extending the lease on a particular network address.
Decline
Client to server indicating network address is already in use.
Ack
Server to client with configuration parameters, including committed network address.
Nak
Server to client indicating client’s notion of network address is incorrect (e.g., client has moved to new subnet) or client’s lease as expired
Release
Client to server relinquishing network address and cancelling remaining lease.
Inform
Client to server, asking only for local configuration parameters. Client already has externally configured network address.
ForceRenew
LeaseQuery
LeaseUnassigned
LeaseUnknown
LeaseActive
BulkLeaseQuery
LeaseQueryDone
ActiveLeaseQuery
LeaseQueryStatus
Tls
Unknown(u8)
Catch-all for values that do not match a variant
Trait Implementations§
Source§impl ByteStruct for DhcpMessageKind
impl ByteStruct for DhcpMessageKind
Source§fn read_bytes(bytes: &[u8]) -> Self
fn read_bytes(bytes: &[u8]) -> Self
Source§fn write_bytes(&self, bytes: &mut [u8])
fn write_bytes(&self, bytes: &mut [u8])
Source§impl ByteStructLen for DhcpMessageKind
impl ByteStructLen for DhcpMessageKind
Source§impl Clone for DhcpMessageKind
impl Clone for DhcpMessageKind
Source§fn clone(&self) -> DhcpMessageKind
fn clone(&self) -> DhcpMessageKind
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DhcpMessageKind
impl Debug for DhcpMessageKind
Source§impl From<DhcpMessageKind> for u8
impl From<DhcpMessageKind> for u8
Source§fn from(value: DhcpMessageKind) -> Self
fn from(value: DhcpMessageKind) -> Self
Source§impl From<u8> for DhcpMessageKind
impl From<u8> for DhcpMessageKind
Source§impl Ord for DhcpMessageKind
impl Ord for DhcpMessageKind
Source§fn cmp(&self, other: &DhcpMessageKind) -> Ordering
fn cmp(&self, other: &DhcpMessageKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for DhcpMessageKind
impl PartialEq for DhcpMessageKind
Source§impl PartialOrd for DhcpMessageKind
impl PartialOrd for DhcpMessageKind
Source§impl uDebug for DhcpMessageKind
impl uDebug for DhcpMessageKind
impl Copy for DhcpMessageKind
impl Eq for DhcpMessageKind
impl StructuralPartialEq for DhcpMessageKind
Auto Trait Implementations§
impl Freeze for DhcpMessageKind
impl RefUnwindSafe for DhcpMessageKind
impl Send for DhcpMessageKind
impl Sync for DhcpMessageKind
impl Unpin for DhcpMessageKind
impl UnwindSafe for DhcpMessageKind
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
Source§impl<T> ByteStructUnspecifiedByteOrder for Twhere
T: ByteStruct,
impl<T> ByteStructUnspecifiedByteOrder for Twhere
T: ByteStruct,
Source§fn write_bytes_default_le(&self, bytes: &mut [u8])
fn write_bytes_default_le(&self, bytes: &mut [u8])
A wrapper of ByteStruct::write_bytes
Source§fn read_bytes_default_le(bytes: &[u8]) -> T
fn read_bytes_default_le(bytes: &[u8]) -> T
A wrapper of ByteStruct::read_bytes
Source§fn write_bytes_default_be(&self, bytes: &mut [u8])
fn write_bytes_default_be(&self, bytes: &mut [u8])
A wrapper of ByteStruct::write_bytes
Source§fn read_bytes_default_be(bytes: &[u8]) -> T
fn read_bytes_default_be(bytes: &[u8]) -> T
A wrapper of ByteStruct::read_bytes