Skip to main content

ResolverOption

Enum ResolverOption 

Source
#[repr(u32)]
pub enum ResolverOption {
Show 18 variants Init = 1, Debug = 2, UseVC = 8, IgnTc = 32, Recurse = 64, DefNames = 128, StayOpen = 256, DNSrch = 512, NoAliases = 4_096, Rotate = 16_384, UseEDNS0 = 1_048_576, SngLkup = 2_097_152, SngLkupReop = 4_194_304, UseDNSSEC = 8_388_608, NoTLDQuery = 16_777_216, NoReload = 33_554_432, TrustAD = 67_108_864, Default = 704,
}
Expand description

Options for the Resolver

Variants§

§

Init = 1

address initialized

§

Debug = 2

print debug messages

§

UseVC = 8

use virtual circuit

§

IgnTc = 32

ignore truncation errors

§

Recurse = 64

recursion desired

§

DefNames = 128

use default domain name

§

StayOpen = 256

Keep TCP socket open

§

DNSrch = 512

search up local domain tree

§

NoAliases = 4_096

shuts off HOSTALIASES feature

§

Rotate = 16_384

rotate ns list after each query

§

UseEDNS0 = 1_048_576

Use EDNS0.

§

SngLkup = 2_097_152

one outstanding request at a time

§

SngLkupReop = 4_194_304

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

§

UseDNSSEC = 8_388_608

use DNSSEC using OK bit in OPT

§

NoTLDQuery = 16_777_216

Do not look up unqualified name as a TLD.

§

NoReload = 33_554_432

No automatic configuration reload (since glibc 2.26; invalid in prior versions)

§

TrustAD = 67_108_864

Request AD bit, keep it in responses (since glibc 2.31; invalid in prior version)

§

Default = 704

Default values

Trait Implementations§

Source§

impl Clone for ResolverOption

Source§

fn clone(&self) -> ResolverOption

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for ResolverOption

Source§

impl Debug for ResolverOption

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ResolverOption

Source§

fn eq(&self, other: &ResolverOption) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for ResolverOption

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.