pub enum Command {
Show 58 variants
Get = 0,
Set = 1,
Add = 2,
Replace = 3,
Delete = 4,
Increment = 5,
Decrement = 6,
Quit = 7,
Flush = 8,
GetQ = 9,
Noop = 10,
Version = 11,
GetK = 12,
GetKQ = 13,
Append = 14,
Prepend = 15,
Stat = 16,
SetQ = 17,
AddQ = 18,
ReplaceQ = 19,
DeleteQ = 20,
IncrementQ = 21,
DecrementQ = 22,
QuitQ = 23,
FlushQ = 24,
AppendQ = 25,
PrependQ = 26,
Verbosity = 27,
Touch = 28,
Gat = 29,
GatQ = 30,
SaslListMechs = 32,
SaslAuth = 33,
SaslStep = 34,
RGet = 48,
RSet = 49,
RSetQ = 50,
RAppend = 51,
RAppendQ = 52,
RPrepend = 53,
RPrependQ = 54,
RDelete = 55,
RDeleteQ = 56,
RIncr = 57,
RIncrQ = 58,
RDecr = 59,
RDecrQ = 60,
SetVBucket = 61,
GetVBucket = 62,
DelVBucket = 63,
TapConnect = 64,
TapMutation = 65,
TapDelete = 66,
TapFlush = 67,
TapOpaque = 68,
TapVBucketSet = 69,
TapCheckpointStart = 70,
TapCheckpointEnd = 71,
}Expand description
Available protocol commands
Reference: https://github.com/memcached/memcached/wiki/BinaryProtocolRevamped#command-opcodes
Variants§
Get = 0
Set = 1
Add = 2
Replace = 3
Delete = 4
Increment = 5
Decrement = 6
Quit = 7
Flush = 8
GetQ = 9
Noop = 10
Version = 11
GetK = 12
GetKQ = 13
Append = 14
Prepend = 15
Stat = 16
SetQ = 17
AddQ = 18
ReplaceQ = 19
DeleteQ = 20
IncrementQ = 21
DecrementQ = 22
QuitQ = 23
FlushQ = 24
AppendQ = 25
PrependQ = 26
Verbosity = 27
Touch = 28
Gat = 29
GatQ = 30
SaslListMechs = 32
SaslAuth = 33
SaslStep = 34
RGet = 48
RSet = 49
RSetQ = 50
RAppend = 51
RAppendQ = 52
RPrepend = 53
RPrependQ = 54
RDelete = 55
RDeleteQ = 56
RIncr = 57
RIncrQ = 58
RDecr = 59
RDecrQ = 60
SetVBucket = 61
GetVBucket = 62
DelVBucket = 63
TapConnect = 64
TapMutation = 65
TapDelete = 66
TapFlush = 67
TapOpaque = 68
TapVBucketSet = 69
TapCheckpointStart = 70
TapCheckpointEnd = 71
Trait Implementations§
Source§impl FromPrimitive for Command
impl FromPrimitive for Command
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreimpl Copy for Command
impl StructuralPartialEq for Command
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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