pub enum CacheEventType {
Show 13 variants
Hit,
Miss,
Set,
Delete,
Expire,
Clear,
Get,
BatchStart,
BatchEnd,
Error,
Connect,
Disconnect,
Custom(String),
}Expand description
缓存事件类型
Variants§
Hit
缓存命中
Miss
缓存未命中
Set
缓存设置
Delete
缓存删除
Expire
缓存过期
Clear
缓存清除
Get
缓存获取(包含命中和未命中)
BatchStart
批量操作开始
BatchEnd
批量操作结束
Error
错误发生
Connect
连接建立
Disconnect
连接断开
Custom(String)
自定义事件
Trait Implementations§
Source§impl Clone for CacheEventType
impl Clone for CacheEventType
Source§fn clone(&self) -> CacheEventType
fn clone(&self) -> CacheEventType
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 CacheEventType
impl Debug for CacheEventType
Source§impl Display for CacheEventType
impl Display for CacheEventType
impl Eq for CacheEventType
Source§impl PartialEq for CacheEventType
impl PartialEq for CacheEventType
impl StructuralPartialEq for CacheEventType
Auto Trait Implementations§
impl Freeze for CacheEventType
impl RefUnwindSafe for CacheEventType
impl Send for CacheEventType
impl Sync for CacheEventType
impl Unpin for CacheEventType
impl UnsafeUnpin for CacheEventType
impl UnwindSafe for CacheEventType
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§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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more