pub enum StoreError<K, V> {
DuplicatedKey {
key: K,
value_previous: V,
value_updated: V,
},
KeyOutOfSync {
key: K,
value_previous: V,
value_updated: V,
},
Backend {
key: K,
error: String,
},
}Expand description
Error related to a Store.
Variants§
DuplicatedKey
This process already stored a different value under that key: the same function was computed twice with disagreeing results.
KeyOutOfSync
The durable entry was written by someone else — another process sharing the cache root, or a bundle import — before this insert reached it. Benign: the two values are equally valid and the stored one stays.
Backend
The storage backend refused the write, so the entry is not durable and will be recomputed on the next run.
Implementations§
Source§impl<K, V> StoreError<K, V>
impl<K, V> StoreError<K, V>
Trait Implementations§
Source§impl<K: Debug, V: Debug> Error for StoreError<K, V>
impl<K: Debug, V: Debug> Error for StoreError<K, V>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl<K, V> Freeze for StoreError<K, V>
impl<K, V> RefUnwindSafe for StoreError<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for StoreError<K, V>
impl<K, V> Sync for StoreError<K, V>
impl<K, V> Unpin for StoreError<K, V>
impl<K, V> UnsafeUnpin for StoreError<K, V>where
K: UnsafeUnpin,
V: UnsafeUnpin,
impl<K, V> UnwindSafe for StoreError<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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