Type Definition libp2p_dns::DnsConfig[][src]

type DnsConfig<T> = GenDnsConfig<T, AsyncStdConnection, AsyncStdConnectionProvider>;

A Transport wrapper for performing DNS lookups when dialing Multiaddresses using async-std for all async I/O.

Implementations

impl<T> DnsConfig<T>[src]

pub async fn system(inner: T) -> Result<DnsConfig<T>, Error>[src]

Creates a new DnsConfig from the OS’s DNS configuration and defaults.

pub async fn custom(
    inner: T,
    cfg: ResolverConfig,
    opts: ResolverOpts
) -> Result<DnsConfig<T>, Error>
[src]

Creates a DnsConfig with a custom resolver configuration and options.