Type Alias diesel_async::pooled_connection::deadpool::HookError

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

Type alias for using deadpool::managed::HookError with [diesel-async]

Aliased Type§

enum HookError {
    Continue(Option<HookErrorCause<PoolError>>),
    Abort(HookErrorCause<PoolError>),
}

Variants§

§

Continue(Option<HookErrorCause<PoolError>>)

This variant can be returned by hooks if the object should be discarded but the operation should be continued.

§

Abort(HookErrorCause<PoolError>)

This variant causes the object to be discarded and aborts the operation.