pub enum CacheError {
Io(Error),
Serialization(String),
Deserialization(String),
CapacityExceeded {
message: String,
},
StorageBackend(String),
NotFound,
InvalidConfiguration(String),
Custom(String),
}Expand description
Main error type for cache operations
Variants§
Io(Error)
I/O error occurred during cache operations
Serialization(String)
Serialization error
Deserialization(String)
Deserialization error
CapacityExceeded
Cache capacity exceeded
StorageBackend(String)
Storage backend error
NotFound
Entry not found
InvalidConfiguration(String)
Invalid configuration
Custom(String)
Custom error for extensions
Trait Implementations§
Source§impl Debug for CacheError
impl Debug for CacheError
Source§impl Display for CacheError
impl Display for CacheError
Source§impl Error for CacheError
impl Error for CacheError
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 CacheError
impl From<Error> for CacheError
Auto Trait Implementations§
impl Freeze for CacheError
impl !RefUnwindSafe for CacheError
impl Send for CacheError
impl Sync for CacheError
impl Unpin for CacheError
impl UnsafeUnpin for CacheError
impl !UnwindSafe for CacheError
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