Type Alias valkey_module::ValkeyResult

source ·
pub type ValkeyResult<T = ValkeyValue> = Result<T, ValkeyError>;
Expand description

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

Aliased Type§

enum ValkeyResult<T = ValkeyValue> {
    Ok(T),
    Err(ValkeyError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(ValkeyError)

Contains the error value

Trait Implementations§

source§

impl From<Status> for ValkeyResult<()>

source§

fn from(value: Status) -> Self

Converts to this type from the input type.