pub struct PgConnectionPool;
Trait Implementations§
Source§impl DatabasePool for PgConnectionPool
impl DatabasePool for PgConnectionPool
Source§type Connection = PostgresConnection
type Connection = PostgresConnection
The resource to be pooled
Source§fn new_resource(
config: &Self::Config,
stale: Arc<AtomicBool>,
timeout: Duration,
) -> Result<Self::Connection, Error<Self::Error>>
fn new_resource( config: &Self::Config, stale: Arc<AtomicBool>, timeout: Duration, ) -> Result<Self::Connection, Error<Self::Error>>
Creates a new resource with a given config. Read more
Source§fn drop(_resource: Self::Connection)
fn drop(_resource: Self::Connection)
The object is dropped
Auto Trait Implementations§
impl Freeze for PgConnectionPool
impl RefUnwindSafe for PgConnectionPool
impl Send for PgConnectionPool
impl Sync for PgConnectionPool
impl Unpin for PgConnectionPool
impl UnwindSafe for PgConnectionPool
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