pub enum DhcpOption<'a> {
Show 22 variants
ClientIdentifier(&'a [u8]),
ServerIdentifier(&'a [u8]),
IaNa(IaNa<'a>),
IaTa(IaTa<'a>),
IaAddress(IaAddress<'a>),
OptionRequest(OptionRequest<'a>),
Preference(u8),
ElapsedTime(u16),
RelayMessage(&'a [u8]),
ServerUnicast(&'a Addr),
RapidCommit,
UserClass(&'a [u8]),
InterfaceId(&'a [u8]),
ReconfigureMessage(MessageType),
ReconfigureAccept,
StatusCode(StatusCode, &'a [u8]),
IaPd(IaPd<'a>),
IaPrefix(IaPrefix<'a>),
InformationRefreshTime(u32),
RelayAgentEchoRequest(&'a [u8]),
ClientLinkLayerAddress(&'a [u8]),
Other(u16, &'a [u8]),
}Expand description
DHCPv6 option.
Some option variants may only be encapsulated in sub-option fields of specific options.
Variants§
ClientIdentifier(&'a [u8])
Client Identifier
Used to carry a DUID that identifies the client.
ServerIdentifier(&'a [u8])
Server Identifier
Used to carry a DUID that identifies the server.
IaNa(IaNa<'a>)
Identity Association for Non-temporary Addresses
IaTa(IaTa<'a>)
IaAddress(IaAddress<'a>)
OptionRequest(OptionRequest<'a>)
Preference(u8)
Preference
ElapsedTime(u16)
Elapsed Time
The amount of time in hundredths of a second, since the client began its current DHCP transaction.
RelayMessage(&'a [u8])
Relay Message
Carries a DHCP message in a Relay-forward or Relay-reply message.
ServerUnicast(&'a Addr)
RapidCommit
UserClass(&'a [u8])
InterfaceId(&'a [u8])
ReconfigureMessage(MessageType)
ReconfigureAccept
StatusCode(StatusCode, &'a [u8])
Status Code
The status-message is a UTF-8 encoded string that is not null-terminated.
IaPd(IaPd<'a>)
IaPrefix(IaPrefix<'a>)
InformationRefreshTime(u32)
Information Refresh Time
The value u32::MAX is taken to mean “infinity”.
RelayAgentEchoRequest(&'a [u8])
ClientLinkLayerAddress(&'a [u8])
DHCPv6 Client Link-Layer Address
See: RFC6939
Other(u16, &'a [u8])
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DhcpOption<'a>
impl<'a> RefUnwindSafe for DhcpOption<'a>
impl<'a> Send for DhcpOption<'a>
impl<'a> Sync for DhcpOption<'a>
impl<'a> Unpin for DhcpOption<'a>
impl<'a> UnwindSafe for DhcpOption<'a>
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