pub enum ValkeyError {
Config {
field: ValkeyConfigField,
reason: ValkeyConfigErrorReason,
},
Setup {
reason: ValkeySetupErrorReason,
},
Command {
reason: ValkeyCommandErrorReason,
},
InvalidData {
kind: ValkeyDataKind,
reason: ValkeyDataErrorReason,
},
}Expand description
Typed Valkey kit error without server text, keys, values, or credentials.
Variants§
Config
Static configuration validation failed.
Fields
§
field: ValkeyConfigFieldField that failed validation.
§
reason: ValkeyConfigErrorReasonStable validation reason.
Setup
Initial client or connection setup failed.
Fields
§
reason: ValkeySetupErrorReasonStable setup reason.
Command
A command failed.
Fields
§
reason: ValkeyCommandErrorReasonStable command failure reason.
InvalidData
A key, value, or TTL failed local validation.
Fields
§
kind: ValkeyDataKindKind of value that failed validation.
§
reason: ValkeyDataErrorReasonStable validation reason.
Trait Implementations§
Source§impl Clone for ValkeyError
impl Clone for ValkeyError
Source§fn clone(&self) -> ValkeyError
fn clone(&self) -> ValkeyError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ValkeyError
Source§impl Debug for ValkeyError
impl Debug for ValkeyError
Source§impl Display for ValkeyError
impl Display for ValkeyError
impl Eq for ValkeyError
Source§impl Error for ValkeyError
impl Error for ValkeyError
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()
Source§impl PartialEq for ValkeyError
impl PartialEq for ValkeyError
impl StructuralPartialEq for ValkeyError
Auto Trait Implementations§
impl Freeze for ValkeyError
impl RefUnwindSafe for ValkeyError
impl Send for ValkeyError
impl Sync for ValkeyError
impl Unpin for ValkeyError
impl UnsafeUnpin for ValkeyError
impl UnwindSafe for ValkeyError
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