pub type DbConnection = PooledConnection<ConnectionManager<PgConnection>>;

Aliased Type§

struct DbConnection {
    pub(crate) pool: Pool<ConnectionManager<PgConnection>>,
    pub(crate) checkout: Instant,
    pub(crate) conn: Option<Conn<PgConnection>>,
}

Fields§

§pool: Pool<ConnectionManager<PgConnection>>§checkout: Instant§conn: Option<Conn<PgConnection>>

Trait Implementations§

source§

impl<M> Deref for PooledConnection<M>where M: ManageConnection,

§

type Target = <M as ManageConnection>::Connection

The resulting type after dereferencing.
source§

fn deref(&self) -> &<M as ManageConnection>::Connection

Dereferences the value.