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]
pub fn new(num_threads: usize) -> Self
[src]
Create a new CpuPoolResolver with the given number of threads.
Trait Implementations
impl Clone for CpuPoolResolver
[src]
fn clone(&self) -> CpuPoolResolver
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more