pub enum IncrError {
WrongType,
NotAnInteger,
Overflow,
OutOfMemory,
}Expand description
Errors that can occur during INCR/DECR operations.
Variants§
WrongType
Key holds a non-string type.
NotAnInteger
Value is not a valid integer.
Overflow
Increment or decrement would overflow i64.
OutOfMemory
Memory limit reached.
Trait Implementations§
Source§impl Error for IncrError
impl Error for IncrError
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()
impl Eq for IncrError
impl StructuralPartialEq for IncrError
Auto Trait Implementations§
impl Freeze for IncrError
impl RefUnwindSafe for IncrError
impl Send for IncrError
impl Sync for IncrError
impl Unpin for IncrError
impl UnsafeUnpin for IncrError
impl UnwindSafe for IncrError
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