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
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§
Auto Trait Implementations§
impl Freeze for DnsCache
impl RefUnwindSafe for DnsCache
impl Send for DnsCache
impl Sync for DnsCache
impl Unpin for DnsCache
impl UnwindSafe for DnsCache
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