pub enum CmdType {
Show 18 variants
Read,
Write,
Ctrl,
NotSupport,
MSet,
MGet,
Exists,
Eval,
Del,
Auth,
Info,
ReadAll,
CountAll,
Command,
Client,
Module,
Scan,
Memory,
}Variants
Read
Write
Ctrl
NotSupport
MSet
MGet
Exists
Eval
Del
Auth
Info
ReadAll
CountAll
Command
Client
Module
Scan
Memory
Implementations
sourceimpl CmdType
impl CmdType
pub fn is_read(self) -> bool
pub fn is_write(self) -> bool
pub fn is_mget(self) -> bool
pub fn is_mset(self) -> bool
pub fn is_exists(self) -> bool
pub fn is_eval(self) -> bool
pub fn is_del(self) -> bool
pub fn is_not_support(self) -> bool
pub fn is_ctrl(self) -> bool
pub fn is_auth(self) -> bool
pub fn is_info(self) -> bool
pub fn is_read_all(self) -> bool
pub fn is_count_all(self) -> bool
pub fn is_command(self) -> bool
pub fn is_client(self) -> bool
pub fn is_module(self) -> bool
pub fn is_scan(self) -> bool
pub fn is_memory(self) -> bool
pub fn get_cmd_type(msg: &Message) -> CmdType
Trait Implementations
impl Copy for CmdType
impl Eq for CmdType
impl StructuralEq for CmdType
impl StructuralPartialEq for CmdType
Auto Trait Implementations
impl RefUnwindSafe for CmdType
impl Send for CmdType
impl Sync for CmdType
impl Unpin for CmdType
impl UnwindSafe for CmdType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.