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 {
Continue(Option<HookErrorCause<Error>>),
Abort(HookErrorCause<Error>),
}
Variants§
Continue(Option<HookErrorCause<Error>>)
This variant can be returned by hooks if the object should be discarded but the operation should be continued.
Abort(HookErrorCause<Error>)
This variant causes the object to be discarded and aborts the operation.