pub enum FullCacheKey {
Query(QueryCacheKey),
Asset(AssetCacheKey),
QuerySetSentinel(QuerySetSentinelKey),
AssetKeySetSentinel(AssetKeySetSentinelKey),
}Expand description
Unified cache key for whale storage.
Used where all key kinds need to be handled together (whale, generic invalidation). Each variant wraps a specific key type.
Variants§
Query(QueryCacheKey)
A query key.
Asset(AssetCacheKey)
An asset key.
QuerySetSentinel(QuerySetSentinelKey)
Sentinel for query set tracking (used by list_queries).
AssetKeySetSentinel(AssetKeySetSentinelKey)
Sentinel for asset key set tracking (used by list_asset_keys).
Implementations§
Source§impl FullCacheKey
impl FullCacheKey
Sourcepub fn debug_repr(&self) -> String
pub fn debug_repr(&self) -> String
Get the debug representation of this key.
Sourcepub fn downcast<K: 'static>(&self) -> Option<&K>
pub fn downcast<K: 'static>(&self) -> Option<&K>
Downcast the key to its original type.
Returns None if the key is not of type K.
Trait Implementations§
Source§impl Clone for FullCacheKey
impl Clone for FullCacheKey
Source§fn clone(&self) -> FullCacheKey
fn clone(&self) -> FullCacheKey
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 FullCacheKey
impl Debug for FullCacheKey
Source§impl From<AssetCacheKey> for FullCacheKey
impl From<AssetCacheKey> for FullCacheKey
Source§fn from(key: AssetCacheKey) -> Self
fn from(key: AssetCacheKey) -> Self
Converts to this type from the input type.
Source§impl From<AssetKeySetSentinelKey> for FullCacheKey
impl From<AssetKeySetSentinelKey> for FullCacheKey
Source§fn from(key: AssetKeySetSentinelKey) -> Self
fn from(key: AssetKeySetSentinelKey) -> Self
Converts to this type from the input type.
Source§impl From<QueryCacheKey> for FullCacheKey
impl From<QueryCacheKey> for FullCacheKey
Source§fn from(key: QueryCacheKey) -> Self
fn from(key: QueryCacheKey) -> Self
Converts to this type from the input type.
Source§impl From<QuerySetSentinelKey> for FullCacheKey
impl From<QuerySetSentinelKey> for FullCacheKey
Source§fn from(key: QuerySetSentinelKey) -> Self
fn from(key: QuerySetSentinelKey) -> Self
Converts to this type from the input type.
Source§impl Hash for FullCacheKey
impl Hash for FullCacheKey
Source§impl PartialEq for FullCacheKey
impl PartialEq for FullCacheKey
impl Eq for FullCacheKey
Auto Trait Implementations§
impl Freeze for FullCacheKey
impl !RefUnwindSafe for FullCacheKey
impl Send for FullCacheKey
impl Sync for FullCacheKey
impl Unpin for FullCacheKey
impl !UnwindSafe for FullCacheKey
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.