pub type PoolError = PoolError<Error>;
Expand description
Type alias for using deadpool::managed::PoolError
with tokio_postgres
.
Aliased Type§
enum PoolError {
Timeout(TimeoutType),
Backend(Error),
Closed,
NoRuntimeSpecified,
PostCreateHook(HookError<Error>),
PreRecycleHook(HookError<Error>),
PostRecycleHook(HookError<Error>),
}
Variants§
Timeout(TimeoutType)
Timeout happened.
Backend(Error)
Backend reported an error.
Closed
Pool
has been closed.
NoRuntimeSpecified
No Runtime
was specified.
PostCreateHook(HookError<Error>)
A post_create
hook reported an error.
PreRecycleHook(HookError<Error>)
A pre_recycle
hook reported an error.
PostRecycleHook(HookError<Error>)
A post_recycle
hook reported an error.