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>
impl<P: RuntimeProvider> GenericConnector<P>
Trait Implementations
source§impl<P: Clone + RuntimeProvider> Clone for GenericConnector<P>
impl<P: Clone + RuntimeProvider> Clone for GenericConnector<P>
source§fn clone(&self) -> GenericConnector<P>
fn clone(&self) -> GenericConnector<P>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<P: RuntimeProvider> ConnectionProvider for GenericConnector<P>
impl<P: RuntimeProvider> ConnectionProvider for GenericConnector<P>
§type Conn = GenericConnection
type Conn = GenericConnection
The handle to the connect for sending DNS requests.
§type FutureConn = ConnectionFuture<P>
type FutureConn = ConnectionFuture<P>
Ths future is responsible for spawning any background tasks as necessary.
§type RuntimeProvider = P
type RuntimeProvider = P
Provider that handles the underlying I/O and timing.
source§fn new_connection(
&self,
config: &NameServerConfig,
options: &ResolverOpts,
) -> Self::FutureConn
fn new_connection( &self, config: &NameServerConfig, options: &ResolverOpts, ) -> Self::FutureConn
Create a new connection.