pub enum RedisSetError<E: EncodeError> {
RedisError(RedisError),
EncodeError {
cause: E,
},
StatusMessage {
status: String,
},
UnexpectedValueResponse {
value: Option<Value>,
},
}Expand description
An error occurred while setting a redis value.
Variants§
RedisError(RedisError)
An error occurred while calling the host redis function.
EncodeError
An error occurred when encoding the provided value.
Fields
§
cause: EThe underlying encoding error.
StatusMessage
Redis returned a status message.
UnexpectedValueResponse
Redis returned a value in response. (Set expects an “okay” response)
Trait Implementations§
Source§impl<E: Debug + EncodeError> Debug for RedisSetError<E>
impl<E: Debug + EncodeError> Debug for RedisSetError<E>
Source§impl<E: EncodeError> Display for RedisSetError<E>
impl<E: EncodeError> Display for RedisSetError<E>
Source§impl<E: EncodeError> Error for RedisSetError<E>
impl<E: EncodeError> Error for RedisSetError<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<RedisError> for RedisSetError<E>
impl<E: EncodeError> From<RedisError> for RedisSetError<E>
Source§fn from(source: RedisError) -> Self
fn from(source: RedisError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E> !Freeze for RedisSetError<E>
impl<E> RefUnwindSafe for RedisSetError<E>where
E: RefUnwindSafe,
impl<E> Send for RedisSetError<E>where
E: Send,
impl<E> Sync for RedisSetError<E>where
E: Sync,
impl<E> Unpin for RedisSetError<E>where
E: Unpin,
impl<E> UnwindSafe for RedisSetError<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