pub enum CommandClass {
Argz,
Arg0,
Arg1,
Arg2,
Arg3,
ArgN,
ArgX,
ArgKvX,
ArgUpto1,
ArgEval,
}Expand description
Argument-shape classification for a Redis request command.
Variants§
Argz
Command takes no key (PING, QUIT, SCRIPT FLUSH, …).
Arg0
Command takes exactly one key and zero arguments.
Arg1
Command takes one key and exactly one argument.
Arg2
Command takes one key and exactly two arguments.
Arg3
Command takes one key and exactly three arguments.
ArgN
Command takes one key and zero-or-more arguments (variadic).
ArgX
Command takes one or more keys (MGET, DEL, EXISTS).
ArgKvX
Command takes one or more key/value pairs (MSET).
ArgUpto1
Command takes one key and zero or one argument (INFO).
ArgEval
Command is EVAL or EVALSHA (special two-arg + key list +
args layout).
Implementations§
Source§impl CommandClass
impl CommandClass
Sourcepub fn is_argeval(self) -> bool
pub fn is_argeval(self) -> bool
True when the command is EVAL or EVALSHA.
Trait Implementations§
Source§impl Clone for CommandClass
impl Clone for CommandClass
Source§fn clone(&self) -> CommandClass
fn clone(&self) -> CommandClass
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 moreSource§impl Debug for CommandClass
impl Debug for CommandClass
Source§impl PartialEq for CommandClass
impl PartialEq for CommandClass
Source§fn eq(&self, other: &CommandClass) -> bool
fn eq(&self, other: &CommandClass) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CommandClass
impl Eq for CommandClass
impl StructuralPartialEq for CommandClass
Auto Trait Implementations§
impl Freeze for CommandClass
impl RefUnwindSafe for CommandClass
impl Send for CommandClass
impl Sync for CommandClass
impl Unpin for CommandClass
impl UnsafeUnpin for CommandClass
impl UnwindSafe for CommandClass
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.