pub fn new(config: ResolverConfig, options: ResolverOpts) -> Self {
        AsyncResolver {
            state: Rc::new(RefCell::new(AsyncResolverState::New(Some(
                TAsyncResolver::new(config, options, Handle).boxed_local(),
            )))),
        }
    }
/// Construct a new `AsyncResolver` with the provided configuration.
///
/// # Arguments
///
/// * `config` - configuration, name_servers, etc. for the Resolver
/// * `options` - basic lookup options for the resolver
Construct a new `AsyncResolver` with the provided configuration.
Construct a new ` AsyncResolver ` with the provided configuration .
pub fn new(config: ResolverConfig, options: ResolverOpts) -> Self {
        AsyncResolver {
            state: Rc::new(RefCell::new(AsyncResolverState::New(Some(
                TAsyncResolver::new(config, options, Handle).boxed_local(),
            )))),
        }
    }
pub fn new ( config : ResolverConfig , options : ResolverOpts ) -> Self { AsyncResolver { state : Rc :: new ( RefCell :: new ( AsyncResolverState :: New ( Some ( TAsyncResolver :: new ( config , options , Handle ) . boxed_local ( ) , ) ) ) ) , } }
Construct a new `AsyncResolver` with the provided configuration.
Construct a new ` AsyncResolver ` with the provided configuration .
config
ResolverConfig
options
ResolverOpts