pub async fn exhausted(
like: &PgPool,
acquire_timeout: Duration,
) -> Result<(PgPool, PoolConnection<Postgres>), Error>Expand description
A pool of one connection and the holder of that connection.
The connection is opened by the pool’s maintenance task (spawned at once only without
idle and lifetime timers), outside the tiny
acquire_timeout, so a loaded host cannot fail the setup.
§Errors
[sqlx::Error] when the connection is not idle within WARM_DEADLINE.