pub enum BinlogEventType {
Show 43 variants
UnknownEvent,
StartEventV3,
QueryEvent,
StopEvent,
RotateEvent,
IntvarEvent,
LoadEvent,
SlaveEvent,
CreateFileEvent,
AppendBlockEvent,
ExecLoadEvent,
DeleteFileEvent,
NewLoadEvent,
RandEvent,
UserVarEvent,
FormatDescription,
XidEvent,
BeginLoadQueryEvent,
ExecuteLoadQueryEvent,
TableMapEvent,
PreGaWriteRowsEvent,
PreGaUpdateRowsEvent,
PreGaDeleteRowsEvent,
WriteRowsEventV1,
UpdateRowsEventV1,
DeleteRowsEventV1,
IncidentEvent,
HeartbeatEvent,
IgnorableLogEvent,
RowsQueryEvent,
WriteRowsEvent,
UpdateRowsEvent,
DeleteRowsEvent,
GtidLogEvent,
AnonymousGtidLogEvent,
PreviousGtidsLogEvent,
TransactionContextEvent,
ViewChangeEvent,
XaPrepareLogEvent,
PartialUpdateRowsEvent,
TransactionPayloadEvent,
HeartbeatEventV2,
Unknown(u8),
}Expand description
MySQL binary log event type codes.
Covers all event types from MySQL 5.0 through 9.x (42 named variants).
Unrecognized type codes are preserved in the Unknown(u8) variant
for forward compatibility.
§Examples
use idb::binlog::BinlogEventType;
let t = BinlogEventType::from_u8(15);
assert_eq!(t, BinlogEventType::FormatDescription);
assert_eq!(t.name(), "FORMAT_DESCRIPTION");
let u = BinlogEventType::from_u8(200);
assert!(matches!(u, BinlogEventType::Unknown(200)));Variants§
UnknownEvent
Unknown or invalid event (type code 0).
StartEventV3
Start event v3 (pre-v4 format).
QueryEvent
SQL query event.
StopEvent
Server shutdown.
RotateEvent
Binlog file rotation.
IntvarEvent
Integer session variable.
LoadEvent
LOAD DATA INFILE event (deprecated).
SlaveEvent
Slave event (internal replication, deprecated).
CreateFileEvent
Create file for LOAD DATA (deprecated).
AppendBlockEvent
Append block for LOAD DATA (deprecated).
ExecLoadEvent
Execute LOAD DATA (deprecated).
DeleteFileEvent
Delete file for LOAD DATA (deprecated).
NewLoadEvent
New LOAD DATA INFILE event (deprecated).
RandEvent
Random seed for RAND().
UserVarEvent
User-defined variable.
FormatDescription
Format description event (binlog v4 header).
XidEvent
XA transaction commit.
BeginLoadQueryEvent
Begin LOAD QUERY event.
ExecuteLoadQueryEvent
Execute LOAD QUERY event.
TableMapEvent
Table map (row-based replication).
PreGaWriteRowsEvent
Pre-GA write rows event.
PreGaUpdateRowsEvent
Pre-GA update rows event.
PreGaDeleteRowsEvent
Pre-GA delete rows event.
WriteRowsEventV1
Write rows v1.
UpdateRowsEventV1
Update rows v1.
DeleteRowsEventV1
Delete rows v1.
IncidentEvent
Incident event.
HeartbeatEvent
Heartbeat event.
IgnorableLogEvent
Ignorable log event.
RowsQueryEvent
Rows query event.
WriteRowsEvent
Write rows v2.
UpdateRowsEvent
Update rows v2.
DeleteRowsEvent
Delete rows v2.
GtidLogEvent
GTID event.
AnonymousGtidLogEvent
Anonymous GTID event.
PreviousGtidsLogEvent
Previous GTIDs event.
TransactionContextEvent
Transaction context event (Group Replication).
ViewChangeEvent
View change event (Group Replication).
XaPrepareLogEvent
XA prepare log event.
PartialUpdateRowsEvent
Partial update rows event (MySQL 8.0+).
TransactionPayloadEvent
Transaction payload event (MySQL 8.0.20+).
HeartbeatEventV2
Heartbeat v2 event (MySQL 8.0.26+).
Unknown(u8)
Unrecognized event type code (forward compatibility).
Implementations§
Trait Implementations§
Source§impl Clone for BinlogEventType
impl Clone for BinlogEventType
Source§fn clone(&self) -> BinlogEventType
fn clone(&self) -> BinlogEventType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BinlogEventType
impl Debug for BinlogEventType
Source§impl Display for BinlogEventType
impl Display for BinlogEventType
Source§impl PartialEq for BinlogEventType
impl PartialEq for BinlogEventType
Source§impl Serialize for BinlogEventType
impl Serialize for BinlogEventType
impl Copy for BinlogEventType
impl Eq for BinlogEventType
impl StructuralPartialEq for BinlogEventType
Auto Trait Implementations§
impl Freeze for BinlogEventType
impl RefUnwindSafe for BinlogEventType
impl Send for BinlogEventType
impl Sync for BinlogEventType
impl Unpin for BinlogEventType
impl UnsafeUnpin for BinlogEventType
impl UnwindSafe for BinlogEventType
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
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§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
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more