Trait ntex_redis::cmd::Command

source ·
pub trait Command {
    type Output;

    fn to_request(self) -> Request;
    fn to_output(val: Response) -> Result<Self::Output, CommandError>;
}
Expand description

Trait implemented by types that can be used as redis commands

Required Associated Types§

Command output type

Required Methods§

Convert command to a redis request

Create command response from a redis response

Implementors§