Struct trust_dns_resolver::dns_lru::TtlConfig
source · pub struct TtlConfig { /* private fields */ }
Expand description
The time-to-live, TTL, configuration for use by the cache.
It should be understood that the TTL in DNS is expressed with a u32. We use Duration here for tracking this which can express larger values than the DNS standard. Generally a Duration greater than u32::MAX_VALUE shouldn’t cause any issue as this will never be used in serialization, but understand that this would be outside the standard range.
Implementations§
Trait Implementations§
impl Copy for TtlConfig
Auto Trait Implementations§
impl RefUnwindSafe for TtlConfig
impl Send for TtlConfig
impl Sync for TtlConfig
impl Unpin for TtlConfig
impl UnwindSafe for TtlConfig
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