A request guard which retrieves a single connection to a [`Database`]. For a database type of `Db`, a request guard of `Connection ` retrieves a single connection to `Db`. The request guard succeeds if the database was initialized by the [`Initializer`] fairing and a connection is available within [`connect_timeout`](crate::Config::connect_timeout) seconds. If the `Initializer` fairing was _n
| 183 | /// another error occurs, the guard _fails_ with status `ServiceUnavailable` |
| 184 | /// and the error is returned in `Some`. |
| 185 | pub struct Connection<'a, D: Database>(&'a <D::Pool as Pool>::Connection); |
| 186 | |
| 187 | impl<D: Database> Initializer<D> { |
| 188 | /// Returns a database initializer fairing for `D`. |
no outgoing calls
no test coverage detected