pub enum LogicalMessage {
Begin {
final_lsn: Lsn,
commit_ts: i64,
xid: u32,
},
Commit {
flags: u8,
commit_lsn: Lsn,
end_lsn: Lsn,
commit_ts: i64,
},
Origin {
commit_lsn: Lsn,
name: String,
},
Relation(Relation),
Type {
oid: u32,
schema: String,
name: String,
},
Insert {
relation: u32,
new: Tuple,
},
Update {
relation: u32,
key: Option<Tuple>,
old: Option<Tuple>,
new: Tuple,
},
Delete {
relation: u32,
key: Option<Tuple>,
old: Option<Tuple>,
},
Truncate {
relations: Vec<u32>,
cascade: bool,
restart_identity: bool,
},
Message {
transactional: bool,
lsn: Lsn,
prefix: String,
content: Bytes,
},
Unsupported {
tag: u8,
},
}Expand description
pgoutput message.
Variants§
Begin
Commit
Origin
Relation(Relation)
Type
Insert
Update
Delete
Truncate
Message
Unsupported
A tag this decoder does not implement (streaming, two-phase, …). The engine stops.
Trait Implementations§
Source§impl Clone for LogicalMessage
impl Clone for LogicalMessage
Source§impl Debug for LogicalMessage
impl Debug for LogicalMessage
impl Eq for LogicalMessage
Source§impl PartialEq for LogicalMessage
impl PartialEq for LogicalMessage
impl StructuralPartialEq for LogicalMessage
Auto Trait Implementations§
impl !Freeze for LogicalMessage
impl RefUnwindSafe for LogicalMessage
impl Send for LogicalMessage
impl Sync for LogicalMessage
impl Unpin for LogicalMessage
impl UnsafeUnpin for LogicalMessage
impl UnwindSafe for LogicalMessage
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.