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

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 From<Duration> for DnsCache[src]

impl Clone for DnsCache[src]

impl Default for DnsCache[src]

impl Debug for DnsCache[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> 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 = !

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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