pub enum CacheInvalidateTarget {
Key(MessageIdExpression),
Prefix(MessageIdExpression),
}Expand description
The invalidation target of a CacheInvalidateService: an exact key or a
namespace prefix.
Variants§
Key(MessageIdExpression)
Invalidate the single entry under the resolved key.
Prefix(MessageIdExpression)
Invalidate every entry whose key starts with the resolved prefix.
Trait Implementations§
Source§impl Clone for CacheInvalidateTarget
impl Clone for CacheInvalidateTarget
Source§fn clone(&self) -> CacheInvalidateTarget
fn clone(&self) -> CacheInvalidateTarget
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for CacheInvalidateTarget
impl !UnwindSafe for CacheInvalidateTarget
impl Freeze for CacheInvalidateTarget
impl Send for CacheInvalidateTarget
impl Sync for CacheInvalidateTarget
impl Unpin for CacheInvalidateTarget
impl UnsafeUnpin for CacheInvalidateTarget
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