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]

[src]

Create a new CpuPoolResolver with the given number of threads.

Trait Implementations

impl Clone for CpuPoolResolver
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Resolver for CpuPoolResolver
[src]

[src]

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

Auto Trait Implementations