Struct ns_dns_tokio::DnsResolver [] [src]

pub struct DnsResolver { /* fields omitted */ }

A main DNS resolver which implements all needed resolver traits

Methods

impl DnsResolver
[src]

[src]

Create a DNS resolver with system config

[src]

Create a resolver from domain::resolv::Resolver instance

This method provides the most comprehensive configuration

Trait Implementations

impl Clone for DnsResolver
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for DnsResolver
[src]

[src]

Formats the value using the given formatter.

impl HostResolve for DnsResolver
[src]

A future returned from resolve()

[src]

Resolve a name to an address once

[src]

Create a subscriber that resolves once using this resolver and never updates a stream Read more

[src]

Create a thing that implements Resolve+HostResolve but returns NameNotFound on resolve Read more