pub type BuildError = BuildError<Error>;
Expand description
Type alias for using deadpool::managed::BuildError
with tokio_postgres
.
Aliased Type§
enum BuildError {
Backend(Error),
NoRuntimeSpecified(String),
}
Variants§
Backend(Error)
Backend reported an error when creating a [Pool
].
NoRuntimeSpecified(String)
[Runtime
] is required.
Trait Implementations
Source§impl<E> Debug for BuildError<E>where
E: Debug,
impl<E> Debug for BuildError<E>where
E: Debug,
Source§impl<E> Display for BuildError<E>where
E: Display,
impl<E> Display for BuildError<E>where
E: Display,
Source§impl<E> Error for BuildError<E>where
E: Error + 'static,
impl<E> Error for BuildError<E>where
E: Error + 'static,
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()