#[repr(u16)]
pub enum OptionCode {
Show 18 variants LLQ, UL, NSID, DAU, DHU, N3U, EDNSCLIENTSUBNET, EDNSEXPIRE, COOKIE, EDNSTCPKEEPALIVE, PADDING, CHAIN, EDNSKEYTAG, EDNSERROR, EDNSCLIENTTAG, EDNSSERVERTAG, DEVICEID, UNKNOWN,
}

Variants

LLQ

Long-Lived Queries

UL

Update Leases

NSID

Name Server Identifier

DAU

DNSSEC Algorithm Understood

DHU

DS Hash Understood

N3U

NSEC3 Hash Understood

EDNSCLIENTSUBNET

EDNS0 option to allow Recursive Resolvers, if they are willing, to forward details about the origin network from which a query is coming when talking to other nameservers

EDNSEXPIRE

See https://tools.ietf.org/html/rfc7314

COOKIE

See https://tools.ietf.org/html/rfc7873#section-4

EDNSTCPKEEPALIVE

Signals a variable idle timeout

PADDING

Allows DNS clients and servers to pad requests and responses by a variable number of octets

CHAIN

Allows a security-aware validating resolver to send a single query requesting a complete validation path along with the regular answer

EDNSKEYTAG

Provides origin authentication using digital signatures

EDNSERROR

Returning additional information about the cause of DNS errors

EDNSCLIENTTAG

Draft, usage is being determined. See https://www.ietf.org/archive/id/draft-bellis-dnsop-edns-tags-01.txt

EDNSSERVERTAG

Draft, usage is being determined. See https://www.ietf.org/archive/id/draft-bellis-dnsop-edns-tags-01.txt

DEVICEID

A way of identifying a device via DNS in the OPT RDATA

UNKNOWN

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

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

This method tests for !=.

The type returned in the event of a conversion error.

Performs the conversion.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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)

Uses borrowed data to replace owned data, usually by cloning. 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.