[−][src]Enum doh_dns::DnsHttpsServer
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]
fn clone(&self) -> DnsHttpsServer
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl Send for DnsHttpsServer
impl Sync for DnsHttpsServer
impl Unpin for DnsHttpsServer
impl UnwindSafe for DnsHttpsServer
impl RefUnwindSafe for DnsHttpsServer
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,