pub struct Transaction(/* private fields */);Expand description
A transaction object.
Implementations§
Source§impl Transaction
impl Transaction
Sourcepub fn commit(self) -> Result<()>
pub fn commit(self) -> Result<()>
Commits the transaction.
The transaction rolls back if it is dropped before commit is called.
Trait Implementations§
Source§impl Debug for Transaction
impl Debug for Transaction
Auto Trait Implementations§
impl Freeze for Transaction
impl RefUnwindSafe for Transaction
impl !Send for Transaction
impl !Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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