Struct mhost::resolver::ResolverOpts[][src]

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: usizemax_concurrent_requests: usize

Maximum number of concurrent queries send with this resolver

ndots: usizepreserve_intermediates: boolexpects_multiple_responses: bool

cf. trust_dns_resolver::proto::xfer::DnsRequestOptions

timeout: Durationabort_on_error: boolabort_on_timeout: bool

Implementations

impl ResolverOpts[src]

pub fn from_system_config() -> Result<ResolverOpts>[src]

Creates ResolverOpts from local system configuration.

Unix: Parses /etc/resolv.conf.

pub fn from_system_config_path<P: AsRef<Path>>(path: P) -> Result<ResolverOpts>[src]

Trait Implementations

impl Clone for ResolverOpts[src]

impl Debug for ResolverOpts[src]

impl Default for ResolverOpts[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]