Trait ntex_redis::cmd::Command[][src]

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

Associated Types

Command output type

Required methods

Convert command to a redis request

Create command response from a redis response

Implementors