pub struct PreparedTxnEntry { /* private fields */ }Expand description
A validated, _seq-assigned, serialized log line produced by Table::prepare_txn_ops —
nothing on disk yet, but everything needed to journal it and, later, to append it.
Implementations§
Source§impl PreparedTxnEntry
impl PreparedTxnEntry
pub fn seq(&self) -> u64
pub fn line(&self) -> &str
pub fn old(&self) -> Option<&HaysonRecord>
pub fn record(&self) -> Option<&HaysonRecord>
Sourcepub fn upsert_event(&self) -> TriggerEvent
pub fn upsert_event(&self) -> TriggerEvent
Insert when no old record existed, Update otherwise — a Delete is never produced
here, since a caller telling insert/update apart from delete already knows which TxnOp
it staged; use it against TxnOp::Put/TxnOp::Patch results only.
Auto Trait Implementations§
impl Freeze for PreparedTxnEntry
impl RefUnwindSafe for PreparedTxnEntry
impl Send for PreparedTxnEntry
impl Sync for PreparedTxnEntry
impl Unpin for PreparedTxnEntry
impl UnsafeUnpin for PreparedTxnEntry
impl UnwindSafe for PreparedTxnEntry
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