pub struct TransactionManager { /* private fields */ }Implementations§
Source§impl TransactionManager
impl TransactionManager
pub fn new() -> Self
pub fn begin(&mut self) -> u64
pub fn get(&self, id: u64) -> Option<&Transaction>
pub fn get_mut(&mut self, id: u64) -> Option<&mut Transaction>
pub fn commit(&mut self, id: u64) -> Result<()>
pub fn rollback(&mut self, id: u64) -> Result<Vec<(Vec<u8>, Option<Vec<u8>>)>>
pub fn active_count(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransactionManager
impl RefUnwindSafe for TransactionManager
impl Send for TransactionManager
impl Sync for TransactionManager
impl Unpin for TransactionManager
impl UnwindSafe for TransactionManager
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