Struct SqlTxnOutput
pub struct SqlTxnOutput {
pub applied: bool,
pub txn_id: Option<TxnWireId>,
pub lmid_advance: Option<LmidAdvance>,
}Expand description
The outcome of a one-shot SqlTxn (or a mutation rejection) — and the exact shape a
session commit answers, from either master. applied: false is an absorbed replay
(mid ≤ lmid, seq ≤ last_seq) or a zero-effect no-op: nothing committed, no
txn identity.
Fields§
§applied: bool§txn_id: Option<TxnWireId>The commit’s identity in the backend’s own currency (None when nothing committed).
lmid_advance: Option<LmidAdvance>The client’s watermark after this call (None for a foreign write).
Implementations§
§impl SqlTxnOutput
impl SqlTxnOutput
Trait Implementations§
§impl Clone for SqlTxnOutput
impl Clone for SqlTxnOutput
§fn clone(&self) -> SqlTxnOutput
fn clone(&self) -> SqlTxnOutput
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 more§impl Debug for SqlTxnOutput
impl Debug for SqlTxnOutput
§impl PartialEq for SqlTxnOutput
impl PartialEq for SqlTxnOutput
impl StructuralPartialEq for SqlTxnOutput
Auto Trait Implementations§
impl Freeze for SqlTxnOutput
impl RefUnwindSafe for SqlTxnOutput
impl Send for SqlTxnOutput
impl Sync for SqlTxnOutput
impl Unpin for SqlTxnOutput
impl UnsafeUnpin for SqlTxnOutput
impl UnwindSafe for SqlTxnOutput
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