Type Alias redis_module::RedisResult

source ·
pub type RedisResult<T = RedisValue> = Result<T, RedisError>;
Expand description

A short-hand type that stores a std::result::Result with custom type and RedisError.

Aliased Type§

enum RedisResult<T = RedisValue> {
    Ok(T),
    Err(RedisError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(RedisError)

Contains the error value

Trait Implementations§

source§

impl From<Status> for RedisResult<()>

source§

fn from(value: Status) -> Self

Converts to this type from the input type.