Type Alias deadpool_postgres::PoolError

source ·
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>),
}

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.