[−][src]Trait trust_dns_resolver::ConnectionProvider
A type to allow for custom ConnectionProviders. Needed mainly for mocking purposes.
ConnectionProvider is responsible for spawning any background tasks as necessary.
Associated Types
type Conn: DnsHandle<Error = ResolveError> + Clone + Send + Sync + 'static
The handle to the connect for sending DNS requests.
type FutureConn: Future<Output = Result<Self::Conn, ResolveError>> + Send + 'static
Ths future is responsible for spawning any background tasks as necessary
Required methods
fn new_connection(
&self,
config: &NameServerConfig,
options: &ResolverOpts
) -> Self::FutureConn
&self,
config: &NameServerConfig,
options: &ResolverOpts
) -> Self::FutureConn
The returned handle should