Enum dhcproto::v6::DhcpOption
source · pub enum DhcpOption {
Show 25 variants
ClientId(Vec<u8>),
ServerId(Vec<u8>),
IANA(IANA),
IATA(IATA),
IAAddr(IAAddr),
ORO(ORO),
Preference(u8),
ElapsedTime(u16),
RelayMsg(RelayMessage),
Authentication(Authentication),
ServerUnicast(Ipv6Addr),
StatusCode(StatusCode),
RapidCommit,
UserClass(UserClass),
VendorClass(VendorClass),
VendorOpts(VendorOpts),
InterfaceId(Vec<u8>),
ReconfMsg(MessageType),
ReconfAccept,
DomainNameServers(Vec<Ipv6Addr>),
DomainSearchList(Vec<Name>),
IAPD(IAPD),
IAPrefix(IAPrefix),
InformationRefreshTime(u32),
Unknown(UnknownOption),
}
Expand description
DHCPv6 option types
Variants§
ClientId(Vec<u8>)
ServerId(Vec<u8>)
IANA(IANA)
IATA(IATA)
IAAddr(IAAddr)
ORO(ORO)
Preference(u8)
ElapsedTime(u16)
8 - https://datatracker.ietf.org/doc/html/rfc8415#section-21.9 Elapsed time in millis
RelayMsg(RelayMessage)
Authentication(Authentication)
ServerUnicast(Ipv6Addr)
StatusCode(StatusCode)
RapidCommit
UserClass(UserClass)
VendorClass(VendorClass)
VendorOpts(VendorOpts)
InterfaceId(Vec<u8>)
ReconfMsg(MessageType)
ReconfAccept
DomainNameServers(Vec<Ipv6Addr>)
DomainSearchList(Vec<Name>)
IAPD(IAPD)
IAPrefix(IAPrefix)
InformationRefreshTime(u32)
Unknown(UnknownOption)
An unknown or unimplemented option type
Trait Implementations§
source§impl Clone for DhcpOption
impl Clone for DhcpOption
source§fn clone(&self) -> DhcpOption
fn clone(&self) -> DhcpOption
Returns a copy 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 DhcpOption
impl Debug for DhcpOption
source§impl Decodable for DhcpOption
impl Decodable for DhcpOption
source§fn decode(decoder: &mut Decoder<'_>) -> DecodeResult<Self>
fn decode(decoder: &mut Decoder<'_>) -> DecodeResult<Self>
Read the type from the stream
source§fn from_bytes(bytes: &[u8]) -> DecodeResult<Self>
fn from_bytes(bytes: &[u8]) -> DecodeResult<Self>
Returns the object in binary form
source§impl Encodable for DhcpOption
impl Encodable for DhcpOption
source§impl From<&DhcpOption> for OptionCode
impl From<&DhcpOption> for OptionCode
source§fn from(opt: &DhcpOption) -> Self
fn from(opt: &DhcpOption) -> Self
Converts to this type from the input type.
source§impl FromIterator<DhcpOption> for DhcpOptions
impl FromIterator<DhcpOption> for DhcpOptions
source§fn from_iter<T: IntoIterator<Item = DhcpOption>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = DhcpOption>>(iter: T) -> Self
Creates a value from an iterator. Read more
source§impl Ord for DhcpOption
impl Ord for DhcpOption
source§impl PartialEq for DhcpOption
impl PartialEq for DhcpOption
source§fn eq(&self, other: &DhcpOption) -> bool
fn eq(&self, other: &DhcpOption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DhcpOption
impl PartialOrd for DhcpOption
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for DhcpOption
impl StructuralEq for DhcpOption
impl StructuralPartialEq for DhcpOption
Auto Trait Implementations§
impl RefUnwindSafe for DhcpOption
impl Send for DhcpOption
impl Sync for DhcpOption
impl Unpin for DhcpOption
impl UnwindSafe for DhcpOption
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