Type Alias hickory_resolver::name_server::TokioConnectionProvider

source ·
pub type TokioConnectionProvider = GenericConnector<TokioRuntimeProvider>;
Expand description

Default ConnectionProvider with GenericConnection.

Aliased Type§

struct TokioConnectionProvider { /* private fields */ }

Implementations

source§

impl<P: RuntimeProvider> GenericConnector<P>

source

pub fn new(runtime_provider: P) -> Self

Create a new instance.

Trait Implementations

source§

impl<P: Clone + RuntimeProvider> Clone for GenericConnector<P>

source§

fn clone(&self) -> GenericConnector<P>

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl<P: RuntimeProvider> ConnectionProvider for GenericConnector<P>

§

type Conn = GenericConnection

The handle to the connect for sending DNS requests.
§

type FutureConn = ConnectionFuture<P>

Ths future is responsible for spawning any background tasks as necessary.
§

type RuntimeProvider = P

Provider that handles the underlying I/O and timing.
source§

fn new_connection( &self, config: &NameServerConfig, options: &ResolverOpts, ) -> Self::FutureConn

Create a new connection.
source§

impl<P: RuntimeProvider + Default> Default for GenericConnector<P>

source§

fn default() -> Self

Returns the “default value” for a type. Read more