[][src]Struct ntex::connect::AsyncResolver

pub struct AsyncResolver { /* fields omitted */ }

An asynchronous resolver for DNS.

Methods

impl AsyncResolver[src]

pub fn new(config: ResolverConfig, options: ResolverOpts) -> Self[src]

Construct a new AsyncResolver with the provided configuration.

Arguments

  • config - configuration, name_servers, etc. for the Resolver
  • options - basic lookup options for the resolver

pub fn from_system_conf() -> Self[src]

Constructs a new Resolver with the system configuration.

This will use /etc/resolv.conf on Unix OSes and the registry on Windows.

pub fn lookup_ip(&self, host: &str) -> LookupIpFuture[src]

Trait Implementations

impl Clone for AsyncResolver[src]

impl Debug for AsyncResolver[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,