pub enum BinlogEvent {
FormatDescription(FormatDescriptionEvent),
Rotate(RotateEvent),
Stop,
Query {
payload: Vec<u8>,
},
Xid {
xid: u64,
},
Unknown {
type_code: u8,
payload: Vec<u8>,
},
}Expand description
Parsed binlog event payload.
Wraps the typed payload for recognized event types. Events not yet
supported by full parsing are stored as Unknown with their raw bytes.
Variants§
FormatDescription(FormatDescriptionEvent)
FORMAT_DESCRIPTION_EVENT — always the first event after the magic bytes.
Rotate(RotateEvent)
ROTATE_EVENT — signals rotation to the next binlog file.
Stop
STOP_EVENT — server shutdown, no payload.
Query
QUERY_EVENT — SQL query (full parsing deferred to #135).
Xid
XID_EVENT — transaction commit with XA transaction ID.
Unknown
Unrecognized or not-yet-parsed event type.
Trait Implementations§
Source§impl Clone for BinlogEvent
impl Clone for BinlogEvent
Source§fn clone(&self) -> BinlogEvent
fn clone(&self) -> BinlogEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BinlogEvent
impl Debug for BinlogEvent
Auto Trait Implementations§
impl Freeze for BinlogEvent
impl RefUnwindSafe for BinlogEvent
impl Send for BinlogEvent
impl Sync for BinlogEvent
impl Unpin for BinlogEvent
impl UnsafeUnpin for BinlogEvent
impl UnwindSafe for BinlogEvent
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> 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>
Converts
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>
Converts
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