pub fn new() -> Config {
        Config {
            nameservers: Vec::new(),
            domain: None,
            search: None,
            last_search: LastSearch::None,
            sortlist: Vec::new(),
            debug: false,
            ndots: 1,
            timeout: 5,
            attempts: 2,
            rotate: false,
            no_check_names: false,
            inet6: false,
            ip6_bytestring: false,
            ip6_dotint: false,
            edns0: false,
            single_request: false,
            single_request_reopen: false,
            no_tld_query: false,
            use_vc: false,
            no_reload: false,
            trust_ad: false,
            lookup: Vec::new(),
            family: Vec::new(),
        }
    }
/// Create a new `Config` object with default values.
///
/// ```rust
/// # extern crate resolv_conf;
/// use resolv_conf::Config;
/// # fn main() {
/// let config = Config::new();
/// assert_eq!(config.nameservers, vec![]);
/// assert!(config.get_domain().is_none());
/// assert!(config.get_search().is_none());
/// assert_eq!(config.sortlist, vec![]);
/// assert_eq!(config.debug, false);
/// assert_eq!(config.ndots, 1);
/// assert_eq!(config.timeout, 5);
/// assert_eq!(config.attempts, 2);
/// assert_eq!(config.rotate, false);
/// assert_eq!(config.no_check_names, false);
/// assert_eq!(config.inet6, false);
/// assert_eq!(config.ip6_bytestring, false);
/// assert_eq!(config.ip6_dotint, false);
/// assert_eq!(config.edns0, false);
/// assert_eq!(config.single_request, false);
/// assert_eq!(config.single_request_reopen, false);
/// assert_eq!(config.no_tld_query, false);
/// assert_eq!(config.use_vc, false);
/// # }
Create a new `Config` object with default values.
Create a new ` Config ` object with default values .
pub fn new() -> Config {
        Config {
            nameservers: Vec::new(),
            domain: None,
            search: None,
            last_search: LastSearch::None,
            sortlist: Vec::new(),
            debug: false,
            ndots: 1,
            timeout: 5,
            attempts: 2,
            rotate: false,
            no_check_names: false,
            inet6: false,
            ip6_bytestring: false,
            ip6_dotint: false,
            edns0: false,
            single_request: false,
            single_request_reopen: false,
            no_tld_query: false,
            use_vc: false,
            no_reload: false,
            trust_ad: false,
            lookup: Vec::new(),
            family: Vec::new(),
        }
    }
pub fn new ( ) -> Config { Config { nameservers : Vec :: new ( ) , domain : None , search : None , last_search : LastSearch :: None , sortlist : Vec :: new ( ) , debug : false , ndots : 1 , timeout : 5 , attempts : 2 , rotate : false , no_check_names : false , inet6 : false , ip6_bytestring : false , ip6_dotint : false , edns0 : false , single_request : false , single_request_reopen : false , no_tld_query : false , use_vc : false , no_reload : false , trust_ad : false , lookup : Vec :: new ( ) , family : Vec :: new ( ) , } }
Create a new `Config` object with default values.
Create a new ` Config ` object with default values .
extern crate resolv_conf;
None
fn main() {
None
}
None