Enum trust_dns::rr::rdata::opt::EdnsCode [] [src]

pub enum EdnsCode {
    Zero,
    LLQ,
    UL,
    NSID,
    DAU,
    DHU,
    N3U,
    Subnet,
    Expire,
    Cookie,
    Keepalive,
    Padding,
    Chain,
    Unknown(u16),
}

Variants

Zero
LLQ
UL
NSID
DAU
DHU
N3U
Subnet
Expire
Cookie
Keepalive
Padding
Chain
Unknown

Unknown, used to deal with unknown or unsupported codes

Trait Implementations

impl From<u16> for EdnsCode

fn from(value: u16) -> EdnsCode

impl<'a> From<&'a EdnsOption> for EdnsCode

fn from(value: &'a EdnsOption) -> EdnsCode

Derived Implementations

impl Eq for EdnsCode

impl PartialEq for EdnsCode

fn eq(&self, __arg_0: &EdnsCode) -> bool

fn ne(&self, __arg_0: &EdnsCode) -> bool

impl Clone for EdnsCode

fn clone(&self) -> EdnsCode

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for EdnsCode

impl Debug for EdnsCode

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for EdnsCode

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher