pub enum KVCacheError {
CapacityExceeded,
InvalidKey(String),
CacheMiss(String),
Serialization(Error),
}
Variants§
Trait Implementations§
Source§impl Debug for KVCacheError
impl Debug for KVCacheError
Source§impl Display for KVCacheError
impl Display for KVCacheError
Source§impl Error for KVCacheError
impl Error for KVCacheError
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()
Source§impl From<Error> for KVCacheError
impl From<Error> for KVCacheError
Source§fn from(source: Error) -> KVCacheError
fn from(source: Error) -> KVCacheError
Converts to this type from the input type.
Source§impl From<KVCacheError> for ZetaError
impl From<KVCacheError> for ZetaError
Source§fn from(source: KVCacheError) -> Self
fn from(source: KVCacheError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KVCacheError
impl !RefUnwindSafe for KVCacheError
impl Send for KVCacheError
impl Sync for KVCacheError
impl Unpin for KVCacheError
impl !UnwindSafe for KVCacheError
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