Type Alias redis_module::CallResult

source ·
pub type CallResult<'root> = Result<CallReply<'root>, ErrorReply<'root>>;

Aliased Type§

enum CallResult<'root> {
    Ok(CallReply<'root>),
    Err(ErrorReply<'root>),
}

Variants§

§1.0.0

Ok(CallReply<'root>)

Contains the success value

§1.0.0

Err(ErrorReply<'root>)

Contains the error value

Trait Implementations§

source§

impl<'ctx> From<PromiseCallReply<'static, 'ctx>> for CallResult<'static>

source§

fn from(value: PromiseCallReply<'static, 'ctx>) -> Self

Converts to this type from the input type.