pub struct GenericConnectionProvider<R: RuntimeProvider>(_);
Expand description
Standard connection implements the default mechanism for creating new Connections
Implementations§
source§impl<R: RuntimeProvider> GenericConnectionProvider<R>
impl<R: RuntimeProvider> GenericConnectionProvider<R>
Trait Implementations§
source§impl<R: Clone + RuntimeProvider> Clone for GenericConnectionProvider<R>where
R::Handle: Clone,
impl<R: Clone + RuntimeProvider> Clone for GenericConnectionProvider<R>where
R::Handle: Clone,
source§fn clone(&self) -> GenericConnectionProvider<R>
fn clone(&self) -> GenericConnectionProvider<R>
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<R> ConnectionProvider for GenericConnectionProvider<R>where
R: RuntimeProvider,
<R as RuntimeProvider>::Tcp: Connect,
impl<R> ConnectionProvider for GenericConnectionProvider<R>where
R: RuntimeProvider,
<R as RuntimeProvider>::Tcp: Connect,
source§fn new_connection(
&self,
config: &NameServerConfig,
options: &ResolverOpts
) -> Self::FutureConn
fn new_connection(
&self,
config: &NameServerConfig,
options: &ResolverOpts
) -> Self::FutureConn
Constructs an initial constructor for the ConnectionHandle to be used to establish a future connection.
§type Conn = GenericConnection
type Conn = GenericConnection
The handle to the connect for sending DNS requests.
§type FutureConn = ConnectionFuture<R>
type FutureConn = ConnectionFuture<R>
Ths future is responsible for spawning any background tasks as necessary
§type Time = <R as RuntimeProvider>::Timer
type Time = <R as RuntimeProvider>::Timer
The type used to set up timeout futures