#[repr(u8)]pub enum Command {
Show 32 variants
Sleep = 0,
Quit = 1,
InitDb = 2,
Query = 3,
FieldList = 4,
CreateDb = 5,
DropDb = 6,
Refresh = 7,
Shutdown = 8,
Statistics = 9,
ProcessInfo = 10,
Connect = 11,
ProcessKill = 12,
Debug = 13,
Ping = 14,
Time = 15,
DelayedInsert = 16,
ChangeUser = 17,
BinlogDump = 18,
TableDump = 19,
ConnectOut = 20,
RegisterSlave = 21,
StmtPrepare = 22,
StmtExecute = 23,
StmtSendLongData = 24,
StmtClose = 25,
StmtReset = 26,
SetOption = 27,
StmtFetch = 28,
Daemon = 29,
BinlogDumpGtid = 30,
ResetConnection = 31,
}Expand description
MySQL command codes (COM_xxx).
Variants§
Sleep = 0
Sleep (internal use)
Quit = 1
Quit connection
InitDb = 2
Switch database
Query = 3
Text protocol query
FieldList = 4
List fields in table (deprecated)
CreateDb = 5
Create database
DropDb = 6
Drop database
Refresh = 7
Refresh (flush tables, etc.)
Shutdown = 8
Shutdown server
Statistics = 9
Statistics
ProcessInfo = 10
Process info
Connect = 11
Connect (internal use)
ProcessKill = 12
Kill process
Debug = 13
Debug
Ping = 14
Ping server
Time = 15
Time (internal use)
DelayedInsert = 16
Delayed insert (deprecated)
ChangeUser = 17
Change user
BinlogDump = 18
Binlog dump
TableDump = 19
Table dump
ConnectOut = 20
Connect out
RegisterSlave = 21
Register slave
StmtPrepare = 22
Prepare statement
StmtExecute = 23
Execute prepared statement
StmtSendLongData = 24
Send long data for prepared statement
StmtClose = 25
Close prepared statement
StmtReset = 26
Reset prepared statement
SetOption = 27
Set option
StmtFetch = 28
Fetch cursor rows
Daemon = 29
Daemon (internal use)
BinlogDumpGtid = 30
Binlog dump GTID
ResetConnection = 31
Reset connection
Trait Implementations§
impl Copy for Command
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).