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