pub struct TransactionManager { /* private fields */ }Implementations§
Source§impl TransactionManager
impl TransactionManager
pub fn new(timeout_secs: u64) -> Self
pub fn is_in_transaction(&self, key: &str) -> bool
pub fn get_depth(&self, key: &str) -> i32
pub fn increment_depth(&self, key: &str) -> bool
pub fn start(&self, key: &str, conn: PooledConn) -> bool
pub fn with_conn<F, R>(&self, key: &str, f: F) -> Option<R>where
F: FnOnce(&mut PooledConn) -> R,
pub fn acquire_table_lock( &self, table: &str, thread_id: &str, timeout: Duration, ) -> bool
pub fn release_table_lock(&self, table: &str, thread_id: &str)
pub fn release_all_table_locks(&self, thread_id: &str)
pub fn decrement_or_finish(&self, key: &str, thread_id: &str) -> Option<i32>
pub fn remove(&self, key: &str, thread_id: &str)
pub fn cleanup_expired(&self)
pub fn stats(&self) -> (usize, usize)
Auto Trait Implementations§
impl !Freeze for TransactionManager
impl RefUnwindSafe for TransactionManager
impl Send for TransactionManager
impl Sync for TransactionManager
impl Unpin for TransactionManager
impl UnsafeUnpin 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