pub enum CacheGetError<E: ExtractError> {
ExtractFailed {
cause: E,
},
CacheError(Error),
}Expand description
An error occurred when getting a value from the cache.
Variants§
ExtractFailed
The value could not be extracted with the provided implementation.
Fields
§
cause: EThe underlying error.
CacheError(Error)
An error occurred when calling the host cache function.
Trait Implementations§
Source§impl<E: Debug + ExtractError> Debug for CacheGetError<E>
impl<E: Debug + ExtractError> Debug for CacheGetError<E>
Source§impl<E: ExtractError> Display for CacheGetError<E>
impl<E: ExtractError> Display for CacheGetError<E>
Source§impl<E: ExtractError> Error for CacheGetError<E>
impl<E: ExtractError> Error for CacheGetError<E>
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<E: ExtractError> From<Error> for CacheGetError<E>
impl<E: ExtractError> From<Error> for CacheGetError<E>
Auto Trait Implementations§
impl<E> Freeze for CacheGetError<E>where
E: Freeze,
impl<E> RefUnwindSafe for CacheGetError<E>where
E: RefUnwindSafe,
impl<E> Send for CacheGetError<E>where
E: Send,
impl<E> Sync for CacheGetError<E>where
E: Sync,
impl<E> Unpin for CacheGetError<E>where
E: Unpin,
impl<E> UnwindSafe for CacheGetError<E>where
E: UnwindSafe,
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