Enum moka::PredicateError
source · pub enum PredicateError {
InvalidationClosuresDisabled,
}
Expand description
The error type for the functionalities around
Cache::invalidate_entries_if
method.
Variants§
InvalidationClosuresDisabled
This cache does not have a necessary configuration enabled to support invalidating entries with a closure.
To enable the configuration, call
CacheBuilder::support_invalidation_closures
method at the cache creation time.
Trait Implementations§
source§impl Debug for PredicateError
impl Debug for PredicateError
source§impl Display for PredicateError
impl Display for PredicateError
source§impl Error for PredicateError
impl Error for PredicateError
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 Freeze for PredicateError
impl RefUnwindSafe for PredicateError
impl Send for PredicateError
impl Sync for PredicateError
impl Unpin for PredicateError
impl UnwindSafe for PredicateError
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