Type Alias valkey_module::RedisValueResult

source ·
pub type RedisValueResult = ValkeyResult<RedisValue>;
Expand description

A [RedisResult] with RedisValue.

Aliased Type§

enum RedisValueResult {
    Ok(RedisValue),
    Err(ValkeyError),
}

Variants§

§1.0.0

Ok(RedisValue)

Contains the success value

§1.0.0

Err(ValkeyError)

Contains the error value

Trait Implementations§

source§

impl From<RedisValue> for RedisValueResult

source§

fn from(v: RedisValue) -> Self

Converts to this type from the input type.
source§

impl From<ValkeyError> for RedisValueResult

source§

fn from(v: ValkeyError) -> Self

Converts to this type from the input type.