pub struct PgTx { /* private fields */ }Expand description
An open store transaction. Owns its pooled connection with BEGIN issued; commit
or rollback finish it and return the connection to the pool. Dropping it unfinished
DETACHES the connection (closing it, so the server aborts the transaction) rather
than returning a dirty connection to the pool.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PgTx
impl !UnwindSafe for PgTx
impl Freeze for PgTx
impl Send for PgTx
impl Sync for PgTx
impl Unpin for PgTx
impl UnsafeUnpin for PgTx
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