pub enum ValueError<E: ExtractError> {
ExtractFailed {
cause: E,
},
UnextractableValue {
value: RedisValue,
},
}Expand description
An error occurred when extracting a value.
Variants§
ExtractFailed
The provided extraction implementation produced an error.
Fields
§
cause: EThe underlying extraction error.
UnextractableValue
The redis value could not be extracted from.
Fields
§
value: RedisValueThe unextractable value in question.
Trait Implementations§
Source§impl<E: Debug + ExtractError> Debug for ValueError<E>
impl<E: Debug + ExtractError> Debug for ValueError<E>
Source§impl<E: ExtractError> Display for ValueError<E>
impl<E: ExtractError> Display for ValueError<E>
Source§impl<E: ExtractError> Error for ValueError<E>
impl<E: ExtractError> Error for ValueError<E>
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<E> !Freeze for ValueError<E>
impl<E> RefUnwindSafe for ValueError<E>where
E: RefUnwindSafe,
impl<E> Send for ValueError<E>where
E: Send,
impl<E> Sync for ValueError<E>where
E: Sync,
impl<E> Unpin for ValueError<E>where
E: Unpin,
impl<E> UnwindSafe for ValueError<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