pub enum CacheError<K, V>{
DuplicatedKey {
key: K,
value_previous: V,
value_updated: V,
},
KeyOutOfSync {
key: K,
value_previous: V,
value_updated: V,
},
}Expand description
Error related to caching.
Variants§
DuplicatedKey
Can’t insert an entry with the same key, but different value.
KeyOutOfSync
Tried to insert an entry with the same key, but a new entry on disk was just synched with the same key.
Trait Implementations§
Auto Trait Implementations§
impl<K, V> Freeze for CacheError<K, V>
impl<K, V> RefUnwindSafe for CacheError<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for CacheError<K, V>
impl<K, V> Sync for CacheError<K, V>
impl<K, V> Unpin for CacheError<K, V>
impl<K, V> UnwindSafe for CacheError<K, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more