pub struct DocCacheTtl {
pub crate_docs_secs: u64,
pub search_results_secs: u64,
pub item_docs_secs: u64,
}Expand description
TTL configuration for document cache
Fields§
§crate_docs_secs: u64TTL for crate documentation (seconds)
search_results_secs: u64TTL for search results (seconds)
item_docs_secs: u64TTL for item documentation (seconds)
Implementations§
Source§impl DocCacheTtl
impl DocCacheTtl
Sourcepub fn from_cache_config(config: &CacheConfig) -> Self
pub fn from_cache_config(config: &CacheConfig) -> Self
Create TTL config from CacheConfig
Trait Implementations§
Source§impl Clone for DocCacheTtl
impl Clone for DocCacheTtl
Source§fn clone(&self) -> DocCacheTtl
fn clone(&self) -> DocCacheTtl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DocCacheTtl
impl Debug for DocCacheTtl
Source§impl Default for DocCacheTtl
impl Default for DocCacheTtl
impl Copy for DocCacheTtl
Auto Trait Implementations§
impl Freeze for DocCacheTtl
impl RefUnwindSafe for DocCacheTtl
impl Send for DocCacheTtl
impl Sync for DocCacheTtl
impl Unpin for DocCacheTtl
impl UnsafeUnpin for DocCacheTtl
impl UnwindSafe for DocCacheTtl
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