pub struct PostgresTransaction { /* private fields */ }Expand description
A PostgreSQL transaction using tokio-postgres
Trait Implementations§
Source§impl TransactionTrait for PostgresTransaction
impl TransactionTrait for PostgresTransaction
type Error = PostgresError
fn commit<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn rollback<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl !RefUnwindSafe for PostgresTransaction
impl !UnwindSafe for PostgresTransaction
impl Freeze for PostgresTransaction
impl Send for PostgresTransaction
impl Sync for PostgresTransaction
impl Unpin for PostgresTransaction
impl UnsafeUnpin for PostgresTransaction
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