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

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

The code of the EDNS data option

Variants

RFC 6891, Reserved

LLQ On-hold

UL On-hold

RFC 5001, NSID

RFC 6975, DNSSEC Algorithm Understood

RFC 6975, DS Hash Understood

RFC 6975, NSEC3 Hash Understood

edns-client-subnet, Optional

RFC 7314, EDNS EXPIRE, Optional

draft-ietf-dnsop-cookies

draft-ietf-dnsop-edns-tcp-keepalive, Optional

draft-mayrhofer-edns0-padding, Optional

draft-ietf-dnsop-edns-chain-query

Unknown, used to deal with unknown or unsupported codes

Trait Implementations

impl Hash for EdnsCode
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for EdnsCode
[src]

Formats the value using the given formatter. Read more

impl Copy for EdnsCode
[src]

impl Clone for EdnsCode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for EdnsCode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for EdnsCode
[src]

impl From<u16> for EdnsCode
[src]

Performs the conversion.

impl From<EdnsCode> for u16
[src]

Performs the conversion.

impl<'a> From<&'a EdnsOption> for EdnsCode
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for EdnsCode

impl Sync for EdnsCode