Enum isahc::config::DnsCache[][src]

pub enum DnsCache {
    Disable,
    Timeout(Duration),
    Forever,
}

DNS caching configuration.

The default configuration is for caching to be enabled with a 60 second entry timeout.

See HttpClientBuilder::dns_cache for configuring a client's DNS cache.

Variants

Disable

Disable DNS caching entirely.

Timeout(Duration)

Enable DNS caching and keep entries in the cache for the given duration.

Forever

Enable DNS caching and cache entries forever.

Trait Implementations

impl Clone for DnsCache[src]

impl Debug for DnsCache[src]

impl Default for DnsCache[src]

impl From<Duration> for DnsCache[src]

Auto Trait Implementations

impl RefUnwindSafe for DnsCache[src]

impl Send for DnsCache[src]

impl Sync for DnsCache[src]

impl Unpin for DnsCache[src]

impl UnwindSafe for DnsCache[src]

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<T> WithSubscriber for T[src]