[][src]Struct dnsie::doh::DnsOverHttpsResolver

pub struct DnsOverHttpsResolver<'a, C> { /* fields omitted */ }

DnsOverHttpsResolver is simple resolver which is able to resolve DNS queries with hyper as http client and RFC8484 capable http(s) server.

Methods

impl<'a, C> DnsOverHttpsResolver<'a, C>[src]

pub fn new(request_url: Cow<'a, str>, client: Client<C>) -> Self[src]

new crates new resolver using url to request and hyper client.

URL

For instance in order to use google's resolver use URL like Cow::Borrowed("https://dns.google/dns-query")

pub fn into_inner(self) -> (Cow<'a, str>, Client<C>)[src]

Trait Implementations

impl<'a, C> DnsResolver for DnsOverHttpsResolver<'a, C> where
    C: Connect + Clone + Send + Sync + 'static, 
[src]

Auto Trait Implementations

impl<'a, C> !RefUnwindSafe for DnsOverHttpsResolver<'a, C>

impl<'a, C> Send for DnsOverHttpsResolver<'a, C> where
    C: Send

impl<'a, C> Sync for DnsOverHttpsResolver<'a, C> where
    C: Sync

impl<'a, C> Unpin for DnsOverHttpsResolver<'a, C> where
    C: Unpin

impl<'a, C> !UnwindSafe for DnsOverHttpsResolver<'a, C>

Blanket Implementations

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

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

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

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

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

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.