Struct cdns_rs::cfg_resolv_parser::ResolveConfig [−][src]
pub struct ResolveConfig {
pub nameservers: Vec<ResolveConfEntry>,
pub lookup: ResolveConfigLookup,
pub family: ResolveConfigFamily,
pub search_list: Vec<String>,
pub domain: Option<String>,
pub option_flags: OptionFlags,
pub ndots: usize,
pub timeout: u32,
pub attempts: usize,
}
Fields
nameservers: Vec<ResolveConfEntry>
lookup: ResolveConfigLookup
family: ResolveConfigFamily
search_list: Vec<String>
domain: Option<String>
option_flags: OptionFlags
ndots: usize
timeout: u32
attempts: usize
Implementations
This function should be used when the program which uses this library requires to override the systems /etc/resolv.conf
This function should be used when the program which uses this library requires to override the systems /etc/resolv.conf
Trait Implementations
fn parse_config<'async_trait>(
) -> Pin<Box<dyn Future<Output = CDnsResult<Self>> + Send + 'async_trait>> where
Self: 'async_trait,
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for ResolveConfig
impl Send for ResolveConfig
impl Sync for ResolveConfig
impl Unpin for ResolveConfig
impl UnwindSafe for ResolveConfig
Blanket Implementations
Mutably borrows from an owned value. Read more