pub struct GenericConnectionProvider<R: RuntimeProvider>(/* private fields */);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>
impl<R: Clone + RuntimeProvider> Clone for GenericConnectionProvider<R>
Source§fn clone(&self) -> GenericConnectionProvider<R>
fn clone(&self) -> GenericConnectionProvider<R>
Returns a duplicate 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>
impl<R> ConnectionProvider for GenericConnectionProvider<R>
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.
Source§type Conn = GenericConnection
type Conn = GenericConnection
The handle to the connect for sending DNS requests.
Source§type FutureConn = ConnectionFuture<R>
type FutureConn = ConnectionFuture<R>
Ths future is responsible for spawning any background tasks as necessary
Source§type Time = <R as RuntimeProvider>::Timer
type Time = <R as RuntimeProvider>::Timer
The type used to set up timeout futures
Auto Trait Implementations§
impl<R> Freeze for GenericConnectionProvider<R>
impl<R> RefUnwindSafe for GenericConnectionProvider<R>
impl<R> Send for GenericConnectionProvider<R>
impl<R> Sync for GenericConnectionProvider<R>
impl<R> Unpin for GenericConnectionProvider<R>
impl<R> UnwindSafe for GenericConnectionProvider<R>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more