pub enum SourceEvent {
Begin {
final_lsn: Lsn,
commit_ts: i64,
xid: u32,
},
Relation(Arc<Relation>),
Op(Op),
Commit {
commit_lsn: Lsn,
end_lsn: Lsn,
commit_ts: i64,
},
Keepalive {
wal_end: Lsn,
},
}Expand description
Ordered events produced by a replication source.
Variants§
Begin
Fields
Relation(Arc<Relation>)
Op(Op)
Commit
Fields
Keepalive
Server keepalive. Safe to acknowledge only between transactions.
Implementations§
Trait Implementations§
Source§impl Clone for SourceEvent
impl Clone for SourceEvent
Source§impl Debug for SourceEvent
impl Debug for SourceEvent
impl Eq for SourceEvent
Source§impl PartialEq for SourceEvent
impl PartialEq for SourceEvent
impl StructuralPartialEq for SourceEvent
Auto Trait Implementations§
impl Freeze for SourceEvent
impl RefUnwindSafe for SourceEvent
impl Send for SourceEvent
impl Sync for SourceEvent
impl Unpin for SourceEvent
impl UnsafeUnpin for SourceEvent
impl UnwindSafe for SourceEvent
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.