pub struct TxManager { /* private fields */ }Implementations§
Source§impl TxManager
impl TxManager
pub fn new() -> Self
pub fn begin(&mut self) -> Transaction
pub fn commit(&mut self, tx_id: u64)
pub fn rollback(&mut self, tx_id: u64)
pub fn is_active(&self, tx_id: u64) -> bool
pub fn is_aborted(&self, tx_id: u64) -> bool
pub fn is_committed(&self, tx_id: u64) -> bool
Sourcepub fn oldest_active(&self) -> Option<u64>
pub fn oldest_active(&self) -> Option<u64>
The oldest active tx — undo entries before this are safe to purge.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TxManager
impl RefUnwindSafe for TxManager
impl Send for TxManager
impl Sync for TxManager
impl Unpin for TxManager
impl UnsafeUnpin for TxManager
impl UnwindSafe for TxManager
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