#[repr(i32)]pub enum VEventType {
Show 21 variants
Unknown = 0,
Gtid = 1,
Begin = 2,
Commit = 3,
Rollback = 4,
Ddl = 5,
Insert = 6,
Replace = 7,
Update = 8,
Delete = 9,
Set = 10,
Other = 11,
Row = 12,
Field = 13,
Heartbeat = 14,
Vgtid = 15,
Journal = 16,
Version = 17,
Lastpk = 18,
Savepoint = 19,
CopyCompleted = 20,
}Expand description
VEventType enumerates the event types. Many of these types will not be encountered in RBR mode.
Variants§
Unknown = 0
Gtid = 1
Begin = 2
Commit = 3
Rollback = 4
Ddl = 5
Insert = 6
INSERT, REPLACE, UPDATE, DELETE and SET will not be seen in RBR mode.
Replace = 7
Update = 8
Delete = 9
Set = 10
Other = 11
OTHER is a dummy event. If encountered, the current GTID must be recorded by the client to be able to resume.
Row = 12
Field = 13
Heartbeat = 14
HEARTBEAT is sent if there is inactivity. If a client does not receive events beyond the hearbeat interval, it can assume that it’s lost connection to the vstreamer.
Vgtid = 15
VGTID is generated by VTGate’s VStream that combines multiple GTIDs.
Journal = 16
Version = 17
Lastpk = 18
Savepoint = 19
CopyCompleted = 20
COPY_COMPLETED is sent when VTGate’s VStream copy operation is done. If a client experiences some disruptions before receiving the event, the client should restart the copy operation.
Implementations§
Source§impl VEventType
impl VEventType
Source§impl VEventType
impl VEventType
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for VEventType
impl Clone for VEventType
Source§fn clone(&self) -> VEventType
fn clone(&self) -> VEventType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VEventType
impl Debug for VEventType
Source§impl Default for VEventType
impl Default for VEventType
Source§fn default() -> VEventType
fn default() -> VEventType
Source§impl From<VEventType> for i32
impl From<VEventType> for i32
Source§fn from(value: VEventType) -> i32
fn from(value: VEventType) -> i32
Source§impl Hash for VEventType
impl Hash for VEventType
Source§impl Ord for VEventType
impl Ord for VEventType
Source§fn cmp(&self, other: &VEventType) -> Ordering
fn cmp(&self, other: &VEventType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for VEventType
impl PartialEq for VEventType
Source§impl PartialOrd for VEventType
impl PartialOrd for VEventType
Source§impl TryFrom<i32> for VEventType
impl TryFrom<i32> for VEventType
Source§type Error = DecodeError
type Error = DecodeError
Source§fn try_from(value: i32) -> Result<VEventType, DecodeError>
fn try_from(value: i32) -> Result<VEventType, DecodeError>
impl Copy for VEventType
impl Eq for VEventType
impl StructuralPartialEq for VEventType
Auto Trait Implementations§
impl Freeze for VEventType
impl RefUnwindSafe for VEventType
impl Send for VEventType
impl Sync for VEventType
impl Unpin for VEventType
impl UnwindSafe for VEventType
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request