pub struct XactView<'a> {
pub current: Option<u64>,
pub active: &'a BTreeSet<u64>,
pub aborted: &'a BTreeSet<u64>,
}Expand description
v7.38 (T24) — the transaction-id surface PG’s txid_* family exposes.
SPG’s writer versions ARE its transaction ids (row_header::next_version),
so no separate xid counter is needed — this is the bridge U22 was waiting
on.
Fields§
§current: Option<u64>The id assigned to the current transaction (allocated at BEGIN) or, in
autocommit, to the current statement once it has written. None when
nothing has been assigned — *_if_assigned returns NULL there, as PG does.
active: &'a BTreeSet<u64>Ids allocated by transactions that have neither committed nor aborted.
aborted: &'a BTreeSet<u64>Ids of rolled-back transactions.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for XactView<'a>
impl<'a> RefUnwindSafe for XactView<'a>
impl<'a> Send for XactView<'a>
impl<'a> Sync for XactView<'a>
impl<'a> Unpin for XactView<'a>
impl<'a> UnsafeUnpin for XactView<'a>
impl<'a> UnwindSafe for XactView<'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