pub enum StoreError {
WrongType,
NotInteger,
Overflow,
OutOfRange,
NoSuchKey,
NotFloat,
OutOfMemory,
}Expand description
Re-exports so downstream code can name the argument/reply/error types of the wraps without adding kevy-embedded / kevy-resp deps. 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 From<StoreError> for KevyError
impl From<StoreError> for KevyError
Source§fn from(e: StoreError) -> KevyError
fn from(e: StoreError) -> KevyError
Converts to this type from the input type.
Source§impl PartialEq for StoreError
impl PartialEq for StoreError
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