[−][src]Struct dnsie::doh::DnsOverHttpsResolver
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]
C: Connect + Clone + Send + Sync + 'static,
fn send_request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: &'life1 DnsRequest<'life2>
) -> Pin<Box<dyn Future<Output = Result<DnsResponse<'static>, DnsResolverError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
request: &'life1 DnsRequest<'life2>
) -> Pin<Box<dyn Future<Output = Result<DnsResponse<'static>, DnsResolverError>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl<'a, C> !RefUnwindSafe for DnsOverHttpsResolver<'a, C>
impl<'a, C> Send for DnsOverHttpsResolver<'a, C> where
C: Send,
C: Send,
impl<'a, C> Sync for DnsOverHttpsResolver<'a, C> where
C: Sync,
C: Sync,
impl<'a, C> Unpin for DnsOverHttpsResolver<'a, C> where
C: Unpin,
C: Unpin,
impl<'a, C> !UnwindSafe for DnsOverHttpsResolver<'a, C>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,