pub struct CacheTtlResult {
pub base_ttl_secs: u64,
pub consecutive_hits_same_key: u32,
pub effective_ttl_secs: u64,
pub hit_global_cap: bool,
}Expand description
Result of effective_ttl_with_hysteresis.
Fields§
§base_ttl_secs: u64§consecutive_hits_same_key: u32§effective_ttl_secs: u64§hit_global_cap: booltrue when the global safety cap applied.
Trait Implementations§
Source§impl Clone for CacheTtlResult
impl Clone for CacheTtlResult
Source§fn clone(&self) -> CacheTtlResult
fn clone(&self) -> CacheTtlResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CacheTtlResult
impl Debug for CacheTtlResult
Source§impl PartialEq for CacheTtlResult
impl PartialEq for CacheTtlResult
Source§fn eq(&self, other: &CacheTtlResult) -> bool
fn eq(&self, other: &CacheTtlResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CacheTtlResult
impl Eq for CacheTtlResult
impl StructuralPartialEq for CacheTtlResult
Auto Trait Implementations§
impl Freeze for CacheTtlResult
impl RefUnwindSafe for CacheTtlResult
impl Send for CacheTtlResult
impl Sync for CacheTtlResult
impl Unpin for CacheTtlResult
impl UnsafeUnpin for CacheTtlResult
impl UnwindSafe for CacheTtlResult
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