Enum dns_message_parser::rr::ServiceParameter[][src]

pub enum ServiceParameter {
    MANDATORY {
        key_ids: Vec<u16>,
    },
    ALPN {
        alpn_ids: Vec<String>,
    },
    NO_DEFAULT_ALPN,
    PORT {
        port: u16,
    },
    IPV4_HINT {
        hints: Vec<Ipv4Addr>,
    },
    ECH {
        config_list: Vec<u8>,
    },
    IPV6_HINT {
        hints: Vec<Ipv6Addr>,
    },
    PRIVATE {
        number: u16,
        wire_data: Vec<u8>,
    },
    KEY_65535,
}

Variants

MANDATORY

Mandatory keys in this resource record (service mode only)

Fields of MANDATORY

key_ids: Vec<u16>

the key IDs the client must support in order for this resource record to function properly RFC section 7

ALPN

Additional supported protocols

Fields of ALPN

alpn_ids: Vec<String>

The default set of ALPNs, which SHOULD NOT be empty, e.g. “h3”, “h2”, “http/1.1”.

NO_DEFAULT_ALPN

No support for default protocol

When this is specified in a resource record, ALPN must also be specified in order to be “self-consistent”.

PORT

Port for alternative endpoint

Fields of PORT

port: u16
IPV4_HINT

IPv4 address hints

Fields of IPV4_HINT

hints: Vec<Ipv4Addr>
ECH

Encrypted ClientHello information (RFC Section 9)

This conveys the ECH configuration of an alternative endpoint.

Fields of ECH

config_list: Vec<u8>
IPV6_HINT

IPv6 address hints

Fields of IPV6_HINT

hints: Vec<Ipv6Addr>
PRIVATE

Private use keys 65280-65534

Fields of PRIVATE

number: u16wire_data: Vec<u8>
KEY_65535

Reserved (“Invalid key”)

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

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

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

Restrict a value to a certain interval. Read more

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

This method tests for !=.

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.