pub struct AsyncConnectionProvider<N: Net> { /* private fields */ }Expand description
Create DnsHandle with the help of AsyncRuntimeProvider.
Implementations§
Trait Implementations§
Source§impl<N: Net> Clone for AsyncConnectionProvider<N>
impl<N: Net> Clone for AsyncConnectionProvider<N>
Source§impl<N: Net> ConnectionProvider for AsyncConnectionProvider<N>
impl<N: Net> ConnectionProvider for AsyncConnectionProvider<N>
Source§type Conn = <GenericConnector<AsyncRuntimeProvider<N>> as ConnectionProvider>::Conn
type Conn = <GenericConnector<AsyncRuntimeProvider<N>> as ConnectionProvider>::Conn
The handle to the connect for sending DNS requests.
Source§type FutureConn = <GenericConnector<AsyncRuntimeProvider<N>> as ConnectionProvider>::FutureConn
type FutureConn = <GenericConnector<AsyncRuntimeProvider<N>> as ConnectionProvider>::FutureConn
Ths future is responsible for spawning any background tasks as necessary.
Source§type RuntimeProvider = AsyncRuntimeProvider<N>
type RuntimeProvider = AsyncRuntimeProvider<N>
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.
Auto Trait Implementations§
impl<N> Freeze for AsyncConnectionProvider<N>
impl<N> RefUnwindSafe for AsyncConnectionProvider<N>where
N: RefUnwindSafe,
impl<N> Send for AsyncConnectionProvider<N>
impl<N> Sync for AsyncConnectionProvider<N>
impl<N> Unpin for AsyncConnectionProvider<N>
impl<N> UnwindSafe for AsyncConnectionProvider<N>where
N: UnwindSafe,
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