pub struct PostgresPool { /* private fields */ }
Expand description
A connection pool for PostgreSQL using deadpool-postgres
Trait Implementations§
Source§impl Clone for PostgresPool
impl Clone for PostgresPool
Source§fn clone(&self) -> PostgresPool
fn clone(&self) -> PostgresPool
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl DatabasePool for PostgresPool
impl DatabasePool for PostgresPool
type Connection = PostgresConnection
type Error = PostgresError
fn acquire<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn release<'life0, 'async_trait>(
&'life0 self,
_conn: Self::Connection,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connection_string(&self) -> String
Auto Trait Implementations§
impl Freeze for PostgresPool
impl !RefUnwindSafe for PostgresPool
impl Send for PostgresPool
impl Sync for PostgresPool
impl Unpin for PostgresPool
impl !UnwindSafe for PostgresPool
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