pub enum ReplicationEvent {
KeepAlive {
wal_end: Lsn,
reply_requested: bool,
server_time_micros: i64,
},
Begin {
final_lsn: Lsn,
xid: u32,
commit_time_micros: i64,
},
XLogData {
wal_start: Lsn,
wal_end: Lsn,
server_time_micros: i64,
data: Bytes,
},
Commit {
lsn: Lsn,
end_lsn: Lsn,
commit_time_micros: i64,
},
StoppedAt {
reached: Lsn,
},
}Expand description
Events emitted by the replication worker.
Variants§
KeepAlive
Server heartbeat message.
Fields
Begin
Start of a transaction (pgoutput Begin message).
XLogData
WAL data containing transaction changes.
Fields
Commit
End of a transaction (pgoutput Commit message).
StoppedAt
Emitted when stop_at_lsn has been reached.
After this event, no more events will be emitted and the replication stream will be closed.
Trait Implementations§
Source§impl Clone for ReplicationEvent
impl Clone for ReplicationEvent
Source§fn clone(&self) -> ReplicationEvent
fn clone(&self) -> ReplicationEvent
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 moreAuto Trait Implementations§
impl !Freeze for ReplicationEvent
impl RefUnwindSafe for ReplicationEvent
impl Send for ReplicationEvent
impl Sync for ReplicationEvent
impl Unpin for ReplicationEvent
impl UnwindSafe for ReplicationEvent
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