Struct tokio_dns::CpuPoolResolver[][src]

pub struct CpuPoolResolver { /* fields omitted */ }

A resolver based on a thread pool.

This resolver uses the ToSocketAddrs trait inside a thread to provide non-blocking address resolving.

Methods

impl CpuPoolResolver
[src]

Create a new CpuPoolResolver with the given number of threads.

Trait Implementations

impl Clone for CpuPoolResolver
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Resolver for CpuPoolResolver
[src]

Given a host name, this function returns a Future which will eventually produce a list of IP addresses. Read more

Auto Trait Implementations