pub enum StoreError {
WrongType,
NotInteger,
Overflow,
OutOfRange,
NoSuchKey,
NotFloat,
OutOfMemory,
}Expand description
Operation errors surfaced to the command layer.
Variants§
WrongType
Key holds a different type than the command expects.
NotInteger
Value is not a base-10 integer (INCR family).
Overflow
Result would overflow i64.
OutOfRange
Index outside the collection (LSET).
NoSuchKey
Key does not exist where the command requires one (LSET).
NotFloat
Value is not a valid float (INCRBYFLOAT).
OutOfMemory
maxmemory would be exceeded and the active eviction policy is
EvictionPolicy::NoEviction. Surfaces as Redis’s classic OOM error
at the RESP layer.
Trait Implementations§
Source§impl Debug for StoreError
impl Debug for StoreError
impl Eq for StoreError
Source§impl PartialEq for StoreError
impl PartialEq for StoreError
Source§fn eq(&self, other: &StoreError) -> bool
fn eq(&self, other: &StoreError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StoreError
Auto Trait Implementations§
impl Freeze for StoreError
impl RefUnwindSafe for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin for StoreError
impl UnsafeUnpin for StoreError
impl UnwindSafe for StoreError
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