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]

[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

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ThreadedResolver
[src]

[src]

Formats the value using the given formatter.

impl HostResolve for ThreadedResolver
[src]

A future returned from resolve()

[src]

Resolve a name to an address once

[src]

Create a subscriber that resolves once using this resolver and never updates a stream Read more

[src]

Create a thing that implements Resolve+HostResolve but returns NameNotFound on resolve Read more