pub enum SimpleCacheError {
NotFound,
Expired,
}Expand description
Error types returned by cache operations.
Variants§
NotFound
The requested key was not found in the cache.
Expired
The entry was found but has expired and was automatically removed.
Trait Implementations§
Source§impl Clone for SimpleCacheError
impl Clone for SimpleCacheError
Source§fn clone(&self) -> SimpleCacheError
fn clone(&self) -> SimpleCacheError
Returns a duplicate of the value. Read more
1.0.0 · 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 SimpleCacheError
impl Debug for SimpleCacheError
Source§impl Display for SimpleCacheError
impl Display for SimpleCacheError
Source§impl Error for SimpleCacheError
impl Error for SimpleCacheError
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()
Source§impl PartialEq for SimpleCacheError
impl PartialEq for SimpleCacheError
impl StructuralPartialEq for SimpleCacheError
Auto Trait Implementations§
impl Freeze for SimpleCacheError
impl RefUnwindSafe for SimpleCacheError
impl Send for SimpleCacheError
impl Sync for SimpleCacheError
impl Unpin for SimpleCacheError
impl UnwindSafe for SimpleCacheError
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