#[non_exhaustive]pub enum DhcpV6Option {
Show 17 variants
ClientId(DhcpV6Duid),
ServerId(DhcpV6Duid),
IANA(DhcpV6OptionIaNa),
IATA(DhcpV6OptionIaTa),
IAPD(DhcpV6OptionIaPd),
OptionRequestOption(Vec<DhcpV6OptionCode>),
IAAddr(DhcpV6OptionIaAddr),
IAPrefix(DhcpV6OptionIaPrefix),
Preference(u8),
ElapsedTime(u16),
ServerUnicast(Ipv6Addr),
StatusCode(DhcpV6OptionStatus),
RapidCommit,
DnsServers(Vec<Ipv6Addr>),
DomainList(Vec<String>),
NtpServer(Vec<DhcpV6OptionNtpServer>),
Unknown(DhcpV6OptionUnknown),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ClientId(DhcpV6Duid)
ServerId(DhcpV6Duid)
IANA(DhcpV6OptionIaNa)
IATA(DhcpV6OptionIaTa)
IAPD(DhcpV6OptionIaPd)
OptionRequestOption(Vec<DhcpV6OptionCode>)
IAAddr(DhcpV6OptionIaAddr)
IAPrefix(DhcpV6OptionIaPrefix)
Preference(u8)
ElapsedTime(u16)
ServerUnicast(Ipv6Addr)
StatusCode(DhcpV6OptionStatus)
RapidCommit
DnsServers(Vec<Ipv6Addr>)
RFC 3646
DomainList(Vec<String>)
RFC 3646
NtpServer(Vec<DhcpV6OptionNtpServer>)
RFC 5908
Unknown(DhcpV6OptionUnknown)
Implementations§
Source§impl DhcpV6Option
impl DhcpV6Option
pub fn code(&self) -> DhcpV6OptionCode
Trait Implementations§
Source§impl Clone for DhcpV6Option
impl Clone for DhcpV6Option
Source§fn clone(&self) -> DhcpV6Option
fn clone(&self) -> DhcpV6Option
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 DhcpV6Option
impl Debug for DhcpV6Option
Source§impl Default for DhcpV6Option
impl Default for DhcpV6Option
Source§impl Ord for DhcpV6Option
impl Ord for DhcpV6Option
Source§impl PartialEq for DhcpV6Option
impl PartialEq for DhcpV6Option
Source§impl PartialOrd for DhcpV6Option
impl PartialOrd for DhcpV6Option
impl Eq for DhcpV6Option
impl StructuralPartialEq for DhcpV6Option
Auto Trait Implementations§
impl Freeze for DhcpV6Option
impl RefUnwindSafe for DhcpV6Option
impl Send for DhcpV6Option
impl Sync for DhcpV6Option
impl Unpin for DhcpV6Option
impl UnwindSafe for DhcpV6Option
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