pub enum CmdType {
Read,
Write,
Ctrl,
NotSupport,
MSet,
MGet,
Exists,
Eval,
Del,
}Variants§
Implementations§
Source§impl 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 get_cmd_type(msg: &Message) -> CmdType
Trait Implementations§
impl Copy for CmdType
impl Eq for CmdType
impl StructuralPartialEq for CmdType
Auto Trait Implementations§
impl Freeze for CmdType
impl RefUnwindSafe for CmdType
impl Send for CmdType
impl Sync for CmdType
impl Unpin for CmdType
impl UnwindSafe for CmdType
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.