pub enum EventData {
EventHeader {
timestamp: u32,
event_type: TypeCode,
server_id: u32,
event_size: u32,
log_pos: u32,
flags: u16,
},
XIDEvent {
xid: u64,
},
RotateEvent {
pos: u64,
next_log_name: String,
},
GtidLogEvent {
flags: u8,
uuid: Uuid,
coordinate: u64,
last_committed: Option<u64>,
sequence_number: Option<u64>,
},
QueryEvent {
thread_id: u32,
exec_time: u32,
error_code: i16,
schema: String,
query: String,
},
FormatDescriptionEvent {
binlog_version: u16,
server_version: String,
create_timestamp: u32,
common_header_len: u8,
checksum_algorithm: ChecksumAlgorithm,
},
TableMapEvent {
table_id: u64,
schema_name: String,
table_name: String,
columns: Vec<ColumnType>,
null_bitmap: BitSet,
},
WriteRowsEvent {
table_id: u64,
rows: Vec<RowEvent>,
},
UpdateRowsEvent {
table_id: u64,
rows: Vec<RowEvent>,
},
DeleteRowsEvent {
table_id: u64,
rows: Vec<RowEvent>,
},
}
Variants§
EventHeader
XIDEvent
RotateEvent
GtidLogEvent
Fields
QueryEvent
FormatDescriptionEvent
Fields
§
checksum_algorithm: ChecksumAlgorithm
TableMapEvent
WriteRowsEvent
UpdateRowsEvent
DeleteRowsEvent
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EventData
impl RefUnwindSafe for EventData
impl Send for EventData
impl Sync for EventData
impl Unpin for EventData
impl UnwindSafe for EventData
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