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
pub fn get_resolvers_iter(&self) -> RoundRobinIterator<'_>ⓘNotable traits for RoundRobinIterator<'iterator>impl<'iterator> Iterator for RoundRobinIterator<'iterator> type Item = &'iterator ResolveConfEntry;
pub fn get_resolvers_iter(&self) -> RoundRobinIterator<'_>ⓘNotable traits for RoundRobinIterator<'iterator>impl<'iterator> Iterator for RoundRobinIterator<'iterator> type Item = &'iterator ResolveConfEntry;
Notable traits for RoundRobinIterator<'iterator>
impl<'iterator> Iterator for RoundRobinIterator<'iterator> type Item = &'iterator ResolveConfEntry;
This function will either return the RoundRobinIterator which always starts from zero offset OR it will return the same instace but the initial offset will be [ROUND_ROBIN_CNT] shared atomic counter. The [ROUND_ROBIN_CNT] counts always forward. It is not expected that it will ever be overflowed.
Returns
- RoundRobinIterator instance
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