Struct ns_std_threaded::ThreadedResolver
[−]
[src]
pub struct ThreadedResolver { /* fields omitted */ }
A resolver that uses ToSocketAddrs from stdlib in thread pool
Methods
impl ThreadedResolver
[src]
fn new() -> Self
[src]
Create a resolver with 8 threads in it's own thread pool
Use use_pool
with a configured CpuPool
to change the
configuration or share thread pool with something else
fn use_pool(pool: CpuPool) -> Self
[src]
Create a new Resolver with the given thread pool
This is often used to share thread pool with other service or to configure thread pool diffently
Trait Implementations
impl Clone for ThreadedResolver
[src]
fn clone(&self) -> ThreadedResolver
[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
impl Debug for ThreadedResolver
[src]
impl HostResolve for ThreadedResolver
[src]
type HostFuture = Future
A future returned from resolve()
fn resolve_host(&self, name: &Name) -> Future
[src]
Resolve a name to an address once
fn frozen_host_subscriber(self) -> FrozenSubscriber<Self>
[src]
Create a subscriber that resolves once using this resolver and never updates a stream Read more
fn null_service_resolver(self) -> NullResolver<Self>
[src]
Create a thing that implements Resolve+HostResolve but returns NameNotFound
on resolve
Read more