pub struct Transaction<'a> { /* private fields */ }
Expand description
Transaction.
Implementations§
Source§impl<'a> Transaction<'a>
impl<'a> Transaction<'a>
Sourcepub fn update_read_csn(&mut self)
pub fn update_read_csn(&mut self)
Update transaction’s change seqence number to the latest commit in the system. By default csn of a transaction is set just once when the transaction is created. And any changes committed by other transactions after that csn are not visible to the current transaction. This allows current transaction to have a consistent view of data as of certain point in time. This function updates csn to the latest commit, making the latest changes in the system visible to the current transaction.
Auto Trait Implementations§
impl<'a> Freeze for Transaction<'a>
impl<'a> !RefUnwindSafe for Transaction<'a>
impl<'a> !Send for Transaction<'a>
impl<'a> !Sync for Transaction<'a>
impl<'a> Unpin for Transaction<'a>
impl<'a> !UnwindSafe for Transaction<'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