pub enum IntegerReplyOrNoOp {
IntegerReply(usize),
NotExists,
ExistsButNotRelevant,
}
Expand description
Returned by typed commands which either return a positive integer or some negative integer indicating some kind of no-op.
Variants§
IntegerReply(usize)
A positive integer reply indicating success of some kind.
NotExists
The field/key you are trying to operate on does not exist.
ExistsButNotRelevant
The field/key you are trying to operate on exists but is not of the correct type or does not have some property you are trying to affect.
Implementations§
Trait Implementations§
Source§impl Clone for IntegerReplyOrNoOp
impl Clone for IntegerReplyOrNoOp
Source§fn clone(&self) -> IntegerReplyOrNoOp
fn clone(&self) -> IntegerReplyOrNoOp
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IntegerReplyOrNoOp
impl Debug for IntegerReplyOrNoOp
Source§impl FromRedisValue for IntegerReplyOrNoOp
impl FromRedisValue for IntegerReplyOrNoOp
Source§fn from_redis_value(v: &Value) -> RedisResult<Self>
fn from_redis_value(v: &Value) -> RedisResult<Self>
Given a redis
Value
this attempts to convert it into the given
destination type. If that fails because it’s not compatible an
appropriate error is generated.Source§fn from_owned_redis_value(v: Value) -> RedisResult<Self>
fn from_owned_redis_value(v: Value) -> RedisResult<Self>
Given a redis
Value
this attempts to convert it into the given
destination type. If that fails because it’s not compatible an
appropriate error is generated.Source§fn from_redis_values(items: &[Value]) -> RedisResult<Vec<Self>>
fn from_redis_values(items: &[Value]) -> RedisResult<Vec<Self>>
Similar to
from_redis_value
but constructs a vector of objects
from another vector of values. This primarily exists internally
to customize the behavior for vectors of tuples.Source§fn from_owned_redis_values(items: Vec<Value>) -> RedisResult<Vec<Self>>
fn from_owned_redis_values(items: Vec<Value>) -> RedisResult<Vec<Self>>
The same as
from_redis_values
, but takes a Vec<Value>
instead
of a &[Value]
.Source§fn from_each_owned_redis_values(items: Vec<Value>) -> Vec<RedisResult<Self>> ⓘ
fn from_each_owned_redis_values(items: Vec<Value>) -> Vec<RedisResult<Self>> ⓘ
The same as
from_owned_redis_values
, but returns a result for each
conversion to make handling them case-by-case possible.Source§fn from_owned_byte_vec(_vec: Vec<u8>) -> RedisResult<Vec<Self>>
fn from_owned_byte_vec(_vec: Vec<u8>) -> RedisResult<Vec<Self>>
Convert bytes to a single element vector.
Source§impl PartialEq<i32> for IntegerReplyOrNoOp
impl PartialEq<i32> for IntegerReplyOrNoOp
Source§impl PartialEq<isize> for IntegerReplyOrNoOp
impl PartialEq<isize> for IntegerReplyOrNoOp
Source§impl PartialEq<u32> for IntegerReplyOrNoOp
impl PartialEq<u32> for IntegerReplyOrNoOp
Source§impl PartialEq<usize> for IntegerReplyOrNoOp
impl PartialEq<usize> for IntegerReplyOrNoOp
Source§impl PartialEq for IntegerReplyOrNoOp
impl PartialEq for IntegerReplyOrNoOp
impl StructuralPartialEq for IntegerReplyOrNoOp
Auto Trait Implementations§
impl Freeze for IntegerReplyOrNoOp
impl RefUnwindSafe for IntegerReplyOrNoOp
impl Send for IntegerReplyOrNoOp
impl Sync for IntegerReplyOrNoOp
impl Unpin for IntegerReplyOrNoOp
impl UnwindSafe for IntegerReplyOrNoOp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more