Type Alias vit_servicing_station_lib::db::DbConnection
source · 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,
impl<M> Deref for PooledConnection<M>where M: ManageConnection,
§type Target = <M as ManageConnection>::Connection
type Target = <M as ManageConnection>::Connection
The resulting type after dereferencing.
source§fn deref(&self) -> &<M as ManageConnection>::Connection
fn deref(&self) -> &<M as ManageConnection>::Connection
Dereferences the value.