pub enum CacheEventScope {
Key {
key: CacheKey<'static>,
},
Tag {
tag: String,
affected_keys: u64,
},
Cache {
affected_keys: Option<u64>,
},
}Expand description
Logical scope affected by a cache event.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for CacheEventScope
impl Clone for CacheEventScope
Source§fn clone(&self) -> CacheEventScope
fn clone(&self) -> CacheEventScope
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 CacheEventScope
impl Debug for CacheEventScope
impl Eq for CacheEventScope
Source§impl PartialEq for CacheEventScope
impl PartialEq for CacheEventScope
Source§fn eq(&self, other: &CacheEventScope) -> bool
fn eq(&self, other: &CacheEventScope) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CacheEventScope
Auto Trait Implementations§
impl Freeze for CacheEventScope
impl RefUnwindSafe for CacheEventScope
impl Send for CacheEventScope
impl Sync for CacheEventScope
impl Unpin for CacheEventScope
impl UnsafeUnpin for CacheEventScope
impl UnwindSafe for CacheEventScope
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