pub enum ReplicationCopyData {
XLogData {
wal_start: Lsn,
wal_end: Lsn,
server_time_micros: i64,
data: Bytes,
},
KeepAlive {
wal_end: Lsn,
server_time_micros: i64,
reply_requested: bool,
},
}Expand description
Replication protocol CopyData message types.
During logical replication streaming, PostgreSQL sends data wrapped in CopyData messages. This enum represents the two primary message types:
XLogData: Contains actual WAL data (transaction changes)KeepAlive: Server heartbeat, optionally requesting client response
Variants§
Implementations§
Source§impl ReplicationCopyData
impl ReplicationCopyData
Sourcepub fn is_xlog_data(&self) -> bool
pub fn is_xlog_data(&self) -> bool
Returns true if this is an XLogData message
Sourcepub fn is_keepalive(&self) -> bool
pub fn is_keepalive(&self) -> bool
Returns true if this is a KeepAlive message
Sourcepub fn requires_reply(&self) -> bool
pub fn requires_reply(&self) -> bool
Returns true if this is a KeepAlive that requests a reply
Trait Implementations§
Source§impl Clone for ReplicationCopyData
impl Clone for ReplicationCopyData
Source§fn clone(&self) -> ReplicationCopyData
fn clone(&self) -> ReplicationCopyData
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 ReplicationCopyData
impl Debug for ReplicationCopyData
Source§impl PartialEq for ReplicationCopyData
impl PartialEq for ReplicationCopyData
impl Eq for ReplicationCopyData
impl StructuralPartialEq for ReplicationCopyData
Auto Trait Implementations§
impl !Freeze for ReplicationCopyData
impl RefUnwindSafe for ReplicationCopyData
impl Send for ReplicationCopyData
impl Sync for ReplicationCopyData
impl Unpin for ReplicationCopyData
impl UnwindSafe for ReplicationCopyData
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