pub struct TransactionManager { /* private fields */ }Expand description
Filesystem-backed two-phase commit transaction manager.
Wrap in Arc and attach to ToolContext
via with_staging_backend.
Implementations§
Trait Implementations§
Source§impl Clone for TransactionManager
impl Clone for TransactionManager
Source§fn clone(&self) -> TransactionManager
fn clone(&self) -> TransactionManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransactionManager
impl Debug for TransactionManager
Source§impl Drop for TransactionManager
impl Drop for TransactionManager
Source§impl StagingBackend for TransactionManager
impl StagingBackend for TransactionManager
Source§fn commit(&self) -> Result<CommitResult>
fn commit(&self) -> Result<CommitResult>
Commit all staged writes to the filesystem. Read more
Source§fn pending_count(&self) -> usize
fn pending_count(&self) -> usize
Return the number of pending staged writes.
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