Type Definition libp2p_dns::DnsConfig [−][src]
pub type DnsConfig<T> = GenDnsConfig<T, AsyncStdConnection, AsyncStdConnectionProvider>;
Expand description
A Transport
wrapper for performing DNS lookups when dialing Multiaddr
esses
using async-std
for all async I/O.
Implementations
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>
pub async fn custom(
inner: T,
cfg: ResolverConfig,
opts: ResolverOpts
) -> Result<DnsConfig<T>, Error>
Creates a DnsConfig
with a custom resolver configuration and options.