pub struct Transaction { /* private fields */ }Expand description
An open transaction.
Owns its connection (no lifetime), so it can be passed to generic code that
accepts any crate::Executor. Dropping without committing enqueues a ROLLBACK
and, for pooled transactions, returns the connection to its pool once any
row stream taken from the transaction has also been dropped.
Implementations§
Trait Implementations§
Source§impl Drop for Transaction
impl Drop for Transaction
Source§impl ScriptExecutor for Transaction
impl ScriptExecutor for Transaction
Auto Trait Implementations§
impl !RefUnwindSafe for Transaction
impl !UnwindSafe for Transaction
impl Freeze for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnsafeUnpin 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