pub enum OptionCode {
Show 15 variants
    Llq,
    Ul,
    Nsid,
    Dau,
    Dhu,
    N3u,
    ClientSubnet,
    Expire,
    Cookie,
    TcpKeepalive,
    Padding,
    Chain,
    KeyTag,
    DeviceId,
    Int(u16),
}Expand description
DNS EDNS0 Option Codes (OPT).
The record data of OPT records is a sequence of options. The type of each of these options is given through an option code, a 16 bit value.
The currently assigned option codes can be found in the IANA registry. The type is complete as of 2019-01-28.
Variants§
Llq
Ul
Nsid
Dau
Dhu
N3u
ClientSubnet
Expire
Cookie
TcpKeepalive
Padding
Chain
KeyTag
DeviceId
Int(u16)
A raw class value given through its integer.
Implementations§
Trait Implementations§
Source§impl Clone for OptionCode
 
impl Clone for OptionCode
Source§fn clone(&self) -> OptionCode
 
fn clone(&self) -> OptionCode
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 Compose for OptionCode
 
impl Compose for OptionCode
Source§impl Debug for OptionCode
 
impl Debug for OptionCode
Source§impl Display for OptionCode
 
impl Display for OptionCode
Source§impl From<OptionCode> for u16
 
impl From<OptionCode> for u16
Source§fn from(value: OptionCode) -> Self
 
fn from(value: OptionCode) -> Self
Converts to this type from the input type.
Source§impl From<u16> for OptionCode
 
impl From<u16> for OptionCode
Source§impl Hash for OptionCode
 
impl Hash for OptionCode
Source§impl Ord for OptionCode
 
impl Ord for OptionCode
Source§impl Parse for OptionCode
 
impl Parse for OptionCode
Source§impl PartialEq<OptionCode> for u16
 
impl PartialEq<OptionCode> for u16
Source§impl PartialEq<u16> for OptionCode
 
impl PartialEq<u16> for OptionCode
Source§impl PartialEq for OptionCode
 
impl PartialEq for OptionCode
Source§impl PartialOrd<OptionCode> for u16
 
impl PartialOrd<OptionCode> for u16
Source§impl PartialOrd<u16> for OptionCode
 
impl PartialOrd<u16> for OptionCode
Source§impl PartialOrd for OptionCode
 
impl PartialOrd for OptionCode
impl Copy for OptionCode
impl Eq for OptionCode
Auto Trait Implementations§
impl Freeze for OptionCode
impl RefUnwindSafe for OptionCode
impl Send for OptionCode
impl Sync for OptionCode
impl Unpin for OptionCode
impl UnwindSafe for OptionCode
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