pub struct GenericMessage<'a> {
pub transaction_id: Option<i32>,
pub is_transactional: bool,
pub lsn: i64,
pub prefix: String,
pub length: i32,
pub content: &'a [u8],
}
Fields§
§transaction_id: Option<i32>
Xid of the transaction (only present for streamed transactions).
NOTE: This field is available since protocol version 2.
is_transactional: bool
If the logical decoding message is transactional?
lsn: i64
The LSN of the logical decoding message.
prefix: String
The prefix of the logical decoding message.
length: i32
Length of the content.
content: &'a [u8]
The content of the logical decoding message.
Auto Trait Implementations§
impl<'a> Freeze for GenericMessage<'a>
impl<'a> RefUnwindSafe for GenericMessage<'a>
impl<'a> Send for GenericMessage<'a>
impl<'a> Sync for GenericMessage<'a>
impl<'a> Unpin for GenericMessage<'a>
impl<'a> UnwindSafe for GenericMessage<'a>
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