pub struct PostgresTxn { /* private fields */ }Expand description
An open, uncommitted Postgres transaction scoped to one agent_id.
Created by PostgresPersistenceStore::begin_atomic; consumed by commit or rollback.
Owns the pooled connection for the duration of the transaction.
The connection returns to the r2d2 pool on Drop.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for PostgresTxn
impl !RefUnwindSafe for PostgresTxn
impl !Sync for PostgresTxn
impl !UnwindSafe for PostgresTxn
impl Send for PostgresTxn
impl Unpin for PostgresTxn
impl UnsafeUnpin for PostgresTxn
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