#[non_exhaustive]pub enum LogicalReplicationMessage {
Begin(BeginBody),
Commit(CommitBody),
Origin(OriginBody),
Relation(RelationBody),
Type(TypeBody),
Insert(InsertBody),
Update(UpdateBody),
Delete(DeleteBody),
Truncate(TruncateBody),
}
Expand description
A message of the logical replication stream
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.
Begin(BeginBody)
A BEGIN statement
Commit(CommitBody)
A BEGIN statement
Origin(OriginBody)
An Origin replication message Note that there can be multiple Origin messages inside a single transaction.
Relation(RelationBody)
A Relation replication message
Type(TypeBody)
A Type replication message
Insert(InsertBody)
An INSERT statement
Update(UpdateBody)
An UPDATE statement
Delete(DeleteBody)
A DELETE statement
Truncate(TruncateBody)
A TRUNCATE statement
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LogicalReplicationMessage
impl RefUnwindSafe for LogicalReplicationMessage
impl Send for LogicalReplicationMessage
impl Sync for LogicalReplicationMessage
impl Unpin for LogicalReplicationMessage
impl UnwindSafe for LogicalReplicationMessage
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