#[non_exhaustive]pub enum CacheError {
Wire(Error),
InvalidLimits,
InvalidGeneration,
WeakSessionSecret,
InvalidQuery,
ValueLimit,
TtlLimit,
TimeOverflow,
SequenceExhausted,
InternalInvariant,
}Expand description
Cache configuration, key, bound, or invariant failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Wire(Error)
DNS name encoding failed.
InvalidLimits
A configured cache bound is zero or inconsistent.
InvalidGeneration
Runtime or policy generation is zero.
WeakSessionSecret
Runtime cache-key secret is all zero.
InvalidQuery
Canonical query identity cannot be represented.
ValueLimit
Caller-reported value size exceeds a bound.
TtlLimit
TTL is zero or exceeds its positive/negative bound.
TimeOverflow
Expiration time overflowed.
SequenceExhausted
LRU sequence cannot advance.
InternalInvariant
Internal entry disappeared during one exclusive operation.
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()
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