pub struct WarmCacheEntry {
pub prefix_hash: String,
pub expires_at_unix_secs: u64,
pub ttl_class: TtlClass,
pub last_observed_at_unix_secs: u64,
}Expand description
Warm cache entry eligible for reuse in upstream requests.
Fields§
§prefix_hash: StringContent hash of the cached prefix.
expires_at_unix_secs: u64Unix timestamp in seconds when this entry expires.
ttl_class: TtlClassTTL class of this cache entry.
last_observed_at_unix_secs: u64Last observed usage time in Unix seconds.
Trait Implementations§
Source§impl Clone for WarmCacheEntry
impl Clone for WarmCacheEntry
Source§fn clone(&self) -> WarmCacheEntry
fn clone(&self) -> WarmCacheEntry
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 WarmCacheEntry
impl Debug for WarmCacheEntry
Source§impl<'de> Deserialize<'de> for WarmCacheEntry
impl<'de> Deserialize<'de> for WarmCacheEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WarmCacheEntry
Source§impl PartialEq for WarmCacheEntry
impl PartialEq for WarmCacheEntry
Source§fn eq(&self, other: &WarmCacheEntry) -> bool
fn eq(&self, other: &WarmCacheEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WarmCacheEntry
impl Serialize for WarmCacheEntry
impl StructuralPartialEq for WarmCacheEntry
Auto Trait Implementations§
impl Freeze for WarmCacheEntry
impl RefUnwindSafe for WarmCacheEntry
impl Send for WarmCacheEntry
impl Sync for WarmCacheEntry
impl Unpin for WarmCacheEntry
impl UnsafeUnpin for WarmCacheEntry
impl UnwindSafe for WarmCacheEntry
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