Type Alias ncryptf::deadpool_redis::HookError

pub type HookError = HookError<RedisError>;
Expand description

Type alias for using [deadpool::managed::HookError] with redis.

Aliased Type§

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

Variants§

§

Continue(Option<HookErrorCause<RedisError>>)

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

§

Abort(HookErrorCause<RedisError>)

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