#[non_exhaustive]pub enum BinlogCommand {
CreateTable,
AlterTable,
RenameTable,
DropTable,
CreateDb,
AlterDb,
DropDb,
Unknown,
}Expand description
The DDL command flavour MySQL is logging through the binary log.
Mirrors enum enum_binlog_command 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.
CreateTable
LOGCOM_CREATE_TABLE
AlterTable
LOGCOM_ALTER_TABLE
RenameTable
LOGCOM_RENAME_TABLE
DropTable
LOGCOM_DROP_TABLE
CreateDb
LOGCOM_CREATE_DB
AlterDb
LOGCOM_ALTER_DB
DropDb
LOGCOM_DROP_DB
Unknown
Forward-compatible fallback for any value MySQL adds in the future.
Implementations§
Source§impl BinlogCommand
impl BinlogCommand
Sourcepub const fn from_raw(value: u32) -> Self
pub const fn from_raw(value: u32) -> Self
Decode the C enum enum_binlog_command value. Unknown values map to
BinlogCommand::Unknown.
Trait Implementations§
Source§impl Clone for BinlogCommand
impl Clone for BinlogCommand
Source§fn clone(&self) -> BinlogCommand
fn clone(&self) -> BinlogCommand
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 BinlogCommand
Source§impl Debug for BinlogCommand
impl Debug for BinlogCommand
impl Eq for BinlogCommand
Source§impl PartialEq for BinlogCommand
impl PartialEq for BinlogCommand
Source§fn eq(&self, other: &BinlogCommand) -> bool
fn eq(&self, other: &BinlogCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BinlogCommand
Auto Trait Implementations§
impl Freeze for BinlogCommand
impl RefUnwindSafe for BinlogCommand
impl Send for BinlogCommand
impl Sync for BinlogCommand
impl Unpin for BinlogCommand
impl UnsafeUnpin for BinlogCommand
impl UnwindSafe for BinlogCommand
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