| 5 | /// guard. |
| 6 | #[derive(Debug)] |
| 7 | pub enum Error<A, B = A> { |
| 8 | /// An error that occurred during database/pool initialization. |
| 9 | Init(A), |
| 10 | |
| 11 | /// An error that occurred while retrieving a connection from the pool. |
| 12 | Get(B), |
| 13 | |
| 14 | /// A [`Figment`](crate::figment::Figment) configuration error. |
| 15 | Config(crate::figment::Error), |
| 16 | } |
| 17 | |
| 18 | impl<A: fmt::Display, B: fmt::Display> fmt::Display for Error<A, B> { |
| 19 | fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { |