Struct mhost::resolver::ResolverOpts
source · pub struct ResolverOpts {
pub retries: usize,
pub max_concurrent_requests: usize,
pub ndots: usize,
pub preserve_intermediates: bool,
pub expects_multiple_responses: bool,
pub timeout: Duration,
pub abort_on_error: bool,
pub abort_on_timeout: bool,
}
Fields§
§retries: usize
§max_concurrent_requests: usize
Maximum number of concurrent queries send with this resolver
ndots: usize
§preserve_intermediates: bool
§expects_multiple_responses: bool
cf. trust_dns_resolver::proto::xfer::DnsRequestOptions
timeout: Duration
§abort_on_error: bool
§abort_on_timeout: bool
Implementations§
source§impl ResolverOpts
impl ResolverOpts
sourcepub fn from_system_config() -> Result<ResolverOpts>
pub fn from_system_config() -> Result<ResolverOpts>
Creates ResolverOpts
from local system configuration.
Unix: Parses /etc/resolv.conf
.
pub fn from_system_config_path<P: AsRef<Path>>(path: P) -> Result<ResolverOpts>
Trait Implementations§
source§impl Clone for ResolverOpts
impl Clone for ResolverOpts
source§fn clone(&self) -> ResolverOpts
fn clone(&self) -> ResolverOpts
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ResolverOpts
impl Debug for ResolverOpts
Auto Trait Implementations§
impl RefUnwindSafe for ResolverOpts
impl Send for ResolverOpts
impl Sync for ResolverOpts
impl Unpin for ResolverOpts
impl UnwindSafe for ResolverOpts
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more