Type Alias TokioHickoryResolver

Source
pub type TokioHickoryResolver = HickoryResolver<TokioConnectionProvider>;
Available on crate feature tokio only.
Expand description

A hyper resolver using hickory’s TokioResolver.

Aliased Type§

pub struct TokioHickoryResolver { /* private fields */ }

Implementations§

Source§

impl TokioHickoryResolver

Source

pub fn new() -> Self

Create a new TokioHickoryResolver with the default config options. This must be run inside a Tokio runtime context.

Source

pub fn google() -> Self

Create a new TokioHickoryResolver that uses the Google nameservers. This must be run inside a Tokio runtime context.

Source

pub fn cloudflare() -> Self

Create a new TokioHickoryResolver that uses the Cloudflare nameservers. This must be run inside a Tokio runtime context.

Source

pub fn cloudflare_https() -> Self

Available on crate features https-aws-lc-rs or https-ring only.

Create a new TokioHickoryResolver that uses the Cloudflare nameservers. This limits the registered connections to just HTTPS lookups. This must be run inside a Tokio runtime context.

Source

pub fn cloudflare_tls() -> Self

Available on crate features tls-aws-lc-rs or tls-ring only.

Create a new TokioHickoryResolver that uses the Cloudflare nameservers. This limits the registered connections to just TLS lookups. This must be run inside a Tokio runtime context.

Source

pub fn quad9() -> Self

Create a new TokioHickoryResolver that uses the Quad9 nameservers. This must be run inside a Tokio runtime context.

Source

pub fn quad9_https() -> Self

Available on crate features https-aws-lc-rs or https-ring only.

Create a new TokioHickoryResolver that uses the Quad9 nameservers. This limits the registered connections to just HTTPS lookups. This must be run inside a Tokio runtime context.

Source

pub fn quad9_tls() -> Self

Available on crate features tls-aws-lc-rs or tls-ring only.

Create a new TokioHickoryResolver that uses the Quad9 nameservers. This limits the registered connections to just TLS lookups. This must be run inside a Tokio runtime context.

Source

pub fn with_config_and_options( config: ResolverConfig, options: ResolverOpts, ) -> Self

Create a new TokioHickoryResolver with the resolver configuration options specified. This must be run inside a Tokio runtime context.

Source

pub fn from_system_conf() -> Result<Self, ResolveError>

Available on crate feature system-config only.

Create a new TokioHickoryResolver with the system configuration. This must be run inside a Tokio runtime context.

§Errors

This method returns an error if loading the system configuration fails.

Trait Implementations§

Source§

impl Default for TokioHickoryResolver

Source§

fn default() -> Self

Returns the “default value” for a type. Read more