Struct tokio_dns::CpuPoolResolver [] [src]

pub struct CpuPoolResolver {
    // some 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]

fn new(num_threads: usize) -> Self

Create a new CpuPoolResolver with the given number of threads.

Trait Implementations

impl Clone for CpuPoolResolver
[src]

fn clone(&self) -> CpuPoolResolver

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Resolver for CpuPoolResolver
[src]

fn resolve(&self, host: &str) -> IoFuture<Vec<IpAddr>>

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