#[non_exhaustive]pub enum TsCommandType {
Show 13 variants
NotDefined,
CreateTablespace,
AlterTablespace,
CreateLogfileGroup,
AlterLogfileGroup,
DropTablespace,
DropLogfileGroup,
ChangeFileTablespace,
AlterAccessModeTablespace,
CreateUndoTablespace,
AlterUndoTablespace,
DropUndoTablespace,
Unknown,
}Expand description
The tablespace DDL command MySQL is asking the engine to validate.
Mirrors enum ts_command_type in mysql-server/sql/handler.h.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotDefined
TS_CMD_NOT_DEFINED = -1
CreateTablespace
CREATE_TABLESPACE = 0
AlterTablespace
ALTER_TABLESPACE = 1
CreateLogfileGroup
CREATE_LOGFILE_GROUP = 2
AlterLogfileGroup
ALTER_LOGFILE_GROUP = 3
DropTablespace
DROP_TABLESPACE = 4
DropLogfileGroup
DROP_LOGFILE_GROUP = 5
ChangeFileTablespace
CHANGE_FILE_TABLESPACE = 6
AlterAccessModeTablespace
ALTER_ACCESS_MODE_TABLESPACE = 7
CreateUndoTablespace
CREATE_UNDO_TABLESPACE = 8
AlterUndoTablespace
ALTER_UNDO_TABLESPACE = 9
DropUndoTablespace
DROP_UNDO_TABLESPACE = 10
Unknown
Forward-compatible fallback for any value MySQL adds in the future.
Implementations§
Source§impl TsCommandType
impl TsCommandType
Sourcepub const fn from_raw(value: i32) -> Self
pub const fn from_raw(value: i32) -> Self
Decode the C enum ts_command_type value. The C enum uses -1 for the
not-defined sentinel; unknown positive values map to
TsCommandType::Unknown.
Trait Implementations§
Source§impl Clone for TsCommandType
impl Clone for TsCommandType
Source§fn clone(&self) -> TsCommandType
fn clone(&self) -> TsCommandType
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 moreimpl Copy for TsCommandType
Source§impl Debug for TsCommandType
impl Debug for TsCommandType
impl Eq for TsCommandType
Source§impl PartialEq for TsCommandType
impl PartialEq for TsCommandType
Source§fn eq(&self, other: &TsCommandType) -> bool
fn eq(&self, other: &TsCommandType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TsCommandType
Auto Trait Implementations§
impl Freeze for TsCommandType
impl RefUnwindSafe for TsCommandType
impl Send for TsCommandType
impl Sync for TsCommandType
impl Unpin for TsCommandType
impl UnsafeUnpin for TsCommandType
impl UnwindSafe for TsCommandType
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