Enum isahc::config::DnsCache [−][src]
pub enum DnsCache {
Disable,
Timeout(Duration),
Forever,
}
Expand description
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 DNS caching entirely.
Timeout(Duration)
Enable DNS caching and keep entries in the cache for the given duration.
Tuple Fields of Timeout
0: Duration
Enable DNS caching and cache entries forever.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DnsCache
impl UnwindSafe for DnsCache
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more