[][src]Enum doh_dns::DnsHttpsServer

pub enum DnsHttpsServer {
    Google(Duration),
    Cloudflare1_1_1_1(Duration),
    Cloudflare1_0_0_1(Duration),
}

The list of DNS over HTTPS servers allowed to query with their respective timeouts. These servers are given to Dns::with_servers in order of priority. Only subsequent servers are used if the request needs to be retried.

Variants

Google(Duration)

Googe's DoH server. Unfortunately, Google doesn't allow to query 8.8.8.8 or 8.8.4.4 directly. It needs the hostname dns.google. If this option is given, 8.8.8.8 and 8.8.4.4 will be used in round robin form for each new connection.

Cloudflare1_1_1_1(Duration)

Cloudflare's 1.1.1.1 DOH server. Cloudflare does not respond to ANY Dns requests so Dns::resolve_any will always return an error.

Cloudflare1_0_0_1(Duration)

Cloudflare's 1.0.0.1 DOH server. Cloudflare does not respond to ANY Dns requests so Dns::resolve_any will always return an error.

Trait Implementations

impl Clone for DnsHttpsServer[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]