pub enum DhcpV4Option {
Show 21 variants
Pad,
End,
HostName(String),
MessageType(DhcpV4MessageType),
ParameterRequestList(Vec<DhcpV4OptionCode>),
ClientIdentifier(Vec<u8>),
RequestedIpAddress(Ipv4Addr),
ServerIdentifier(Ipv4Addr),
RenewalTime(u32),
RebindingTime(u32),
InterfaceMtu(u16),
IpAddressLeaseTime(u32),
SubnetMask(Ipv4Addr),
BroadcastAddress(Ipv4Addr),
DomainNameServer(Vec<Ipv4Addr>),
Router(Vec<Ipv4Addr>),
NtpServers(Vec<Ipv4Addr>),
DomainName(String),
ClasslessStaticRoute(Vec<DhcpV4ClasslessRoute>),
Message(String),
Unknown(DhcpV4OptionUnknown),
}Expand description
DHCPv4 Option defined by RFC 2132
Variants§
Pad
End
HostName(String)
MessageType(DhcpV4MessageType)
ParameterRequestList(Vec<DhcpV4OptionCode>)
ClientIdentifier(Vec<u8>)
RequestedIpAddress(Ipv4Addr)
ServerIdentifier(Ipv4Addr)
RenewalTime(u32)
RebindingTime(u32)
InterfaceMtu(u16)
IpAddressLeaseTime(u32)
SubnetMask(Ipv4Addr)
BroadcastAddress(Ipv4Addr)
DomainNameServer(Vec<Ipv4Addr>)
Router(Vec<Ipv4Addr>)
NtpServers(Vec<Ipv4Addr>)
DomainName(String)
ClasslessStaticRoute(Vec<DhcpV4ClasslessRoute>)
Message(String)
Unknown(DhcpV4OptionUnknown)
Implementations§
Source§impl DhcpV4Option
impl DhcpV4Option
pub fn code(&self) -> DhcpV4OptionCode
Trait Implementations§
Source§impl Clone for DhcpV4Option
impl Clone for DhcpV4Option
Source§fn clone(&self) -> DhcpV4Option
fn clone(&self) -> DhcpV4Option
Returns a duplicate 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 DhcpV4Option
impl Debug for DhcpV4Option
Source§impl PartialEq for DhcpV4Option
impl PartialEq for DhcpV4Option
impl StructuralPartialEq for DhcpV4Option
Auto Trait Implementations§
impl Freeze for DhcpV4Option
impl RefUnwindSafe for DhcpV4Option
impl Send for DhcpV4Option
impl Sync for DhcpV4Option
impl Unpin for DhcpV4Option
impl UnwindSafe for DhcpV4Option
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