#[repr(u64)]
pub enum ResolverOption {
Show 26 variants Init, Debug, AAOnly, UseVC, Primary, IgnTc, Recurse, DefNames, StayOpen, DNSrch, Insecure1, Insecure2, NoAliases, UseInet6, Rotate, NoCheckName, KeepTSIG, Blast, UseBString, NoIp6DotInt, UseEDNS0, SngLkup, SngLkupReop, UseDNSSEC, NoTLDQuery, Default,
}
Expand description

Options for the Resolver

Variants

Init

address initialized

Debug

print debug messages

AAOnly

authoritative answers only (!IMPL)

UseVC

use virtual circuit

Primary

query primary server only (!IMPL)

IgnTc

ignore truncation errors

Recurse

recursion desired

DefNames

use default domain name

StayOpen

Keep TCP socket open

DNSrch

search up local domain tree

Insecure1

type 1 security disabled

Insecure2

type 2 security disabled

NoAliases

shuts off HOSTALIASES feature

UseInet6

use/map IPv6 in gethostbyname()

Rotate

rotate ns list after each query

NoCheckName

do not check names for sanity (!IMPL)

KeepTSIG

do not strip TSIG records

Blast

blast all recursive servers

UseBString

IPv6 reverse lookup with byte strings

NoIp6DotInt

Do not use .ip6.int in IPv6 reverse lookup

UseEDNS0

Use EDNS0.

SngLkup

one outstanding request at a time

SngLkupReop

one outstanding request at a time, but open new socket for each request

UseDNSSEC

use DNSSEC using OK bit in OPT

NoTLDQuery

Do not look up unqualified name as a TLD.

Default

Default values

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 default implementation is almost always sufficient, and should not be overridden without very good reason. 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

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
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.