pub type CreatePoolError = CreatePoolError<ConfigError, Error>;
Expand description
Type alias for using deadpool::managed::CreatePoolError
with tokio_postgres
.
Aliased Type§
enum CreatePoolError {
Config(ConfigError),
Build(BuildError<Error>),
}
Variants§
Config(ConfigError)
This variant is used for configuration errors
Build(BuildError<Error>)
This variant is used for errors while building the pool
Trait Implementations
Source§impl<C, B> Debug for CreatePoolError<C, B>
impl<C, B> Debug for CreatePoolError<C, B>
Source§impl<C, B> Display for CreatePoolError<C, B>
impl<C, B> Display for CreatePoolError<C, B>
Source§impl<C, B> Error for CreatePoolError<C, B>
impl<C, B> Error for CreatePoolError<C, B>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()