Type Alias deadpool_postgres::HookError

source ·
pub type HookError = HookError<Error>;
Expand description

Type alias for using deadpool::managed::HookError with tokio_postgres.

Aliased Type§

enum HookError {
    Message(String),
    StaticMessage(&'static str),
    Backend(Error),
}

Variants§

§

Message(String)

Hook failed for some other reason.

§

StaticMessage(&'static str)

Hook failed for some other reason.

§

Backend(Error)

Error caused by the backend.