pub struct TransactionSnapshot { /* private fields */ }Implementations§
Source§impl TransactionSnapshot
impl TransactionSnapshot
pub fn new( txn_id: TransactionId, xmin: TransactionId, xmax: TransactionId, active_txns: Vec<TransactionId>, ) -> Self
pub fn txn_id(&self) -> TransactionId
pub fn xmin(&self) -> TransactionId
pub fn xmax(&self) -> TransactionId
pub fn active_txns(&self) -> &[TransactionId] ⓘ
pub fn is_visible<F>( &self, meta: &TupleMeta, command_id: CommandId, status_of: F, ) -> bool
Trait Implementations§
Source§impl Clone for TransactionSnapshot
impl Clone for TransactionSnapshot
Source§fn clone(&self) -> TransactionSnapshot
fn clone(&self) -> TransactionSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TransactionSnapshot
impl RefUnwindSafe for TransactionSnapshot
impl Send for TransactionSnapshot
impl Sync for TransactionSnapshot
impl Unpin for TransactionSnapshot
impl UnsafeUnpin for TransactionSnapshot
impl UnwindSafe for TransactionSnapshot
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