Enum edge_dhcp::MessageType
source · #[repr(u8)]pub enum MessageType {
Discover = 1,
Offer = 2,
Request = 3,
Decline = 4,
Ack = 5,
Nak = 6,
Release = 7,
Inform = 8,
}
Expand description
DHCP Message Type.
§Standards
The semantics of the various DHCP message types are described in RFC 2131 (see Table 2). Their numeric values are described in Section 9.6 of RFC 2132, which begins:
This option is used to convey the type of the DHCP message. The code for this option is 53, and its length is 1.
Variants§
Discover = 1
Client broadcast to locate available servers.
Offer = 2
Server to client in response to DHCPDISCOVER with offer of configuration parameters.
Request = 3
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 = 4
Client to server indicating network address is already in use.
Ack = 5
Server to client with configuration parameters, including committed network address.
Nak = 6
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 = 7
Client to server relinquishing network address and cancelling remaining lease.
Inform = 8
Client to server, asking only for local configuration parameters; client already has externally configured network address.
Trait Implementations§
source§impl Clone for MessageType
impl Clone for MessageType
source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MessageType
impl Debug for MessageType
source§impl Display for MessageType
impl Display for MessageType
source§impl PartialEq for MessageType
impl PartialEq for MessageType
source§impl TryFrom<u8> for MessageType
impl TryFrom<u8> for MessageType
source§type Error = TryFromPrimitiveError<MessageType>
type Error = TryFromPrimitiveError<MessageType>
source§impl TryFromPrimitive for MessageType
impl TryFromPrimitive for MessageType
const NAME: &'static str = "MessageType"
type Primitive = u8
type Error = TryFromPrimitiveError<MessageType>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for MessageType
impl Eq 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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)