Enum domain::iana::opt::OptionCode[][src]

pub enum OptionCode {
    Llq,
    Ul,
    Nsid,
    Dau,
    Dhu,
    N3u,
    EdnsClientSubnet,
    EdnsExpire,
    Cookie,
    EdnsTcpKeepalive,
    Padding,
    Chain,
    EdnsKeyTag,
    Int(u16),
}

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 http://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-11

Variants

A raw class value given through its integer.

Methods

impl OptionCode
[src]

Returns the option code for the given raw integer value.

Returns the raw integer value for this option code.

Trait Implementations

impl Clone for OptionCode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for OptionCode
[src]

impl Debug for OptionCode
[src]

Formats the value using the given formatter. Read more

impl From<u16> for OptionCode
[src]

Performs the conversion.

impl From<OptionCode> for u16
[src]

Performs the conversion.

impl Display for OptionCode
[src]

Formats the value using the given formatter. Read more

impl PartialEq for OptionCode
[src]

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

This method tests for !=.

impl PartialEq<u16> for OptionCode
[src]

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

This method tests for !=.

impl PartialEq<OptionCode> for u16
[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 OptionCode
[src]

impl PartialOrd for OptionCode
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialOrd<u16> for OptionCode
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialOrd<OptionCode> for u16
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for OptionCode
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Hash for OptionCode
[src]

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

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

Auto Trait Implementations

impl Send for OptionCode

impl Sync for OptionCode