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>; }

Trait implemented by types that can be used as redis commands

Associated Types

type Output[src]

Command output type

Loading content...

Required methods

fn to_request(self) -> Request[src]

Convert command to a redis request

fn to_output(val: Response) -> Result<Self::Output, CommandError>[src]

Create command response from a redis response

Loading content...

Implementors

impl Command for AuthCommand[src]

impl Command for BulkOutputCommand[src]

impl Command for HDelCommand[src]

impl Command for HGetAllCommand[src]

impl Command for HSetCommand[src]

impl Command for IntOutputCommand[src]

impl Command for KeysCommand[src]

impl Command for LPushCommand[src]

impl Command for SetCommand[src]

impl Command for TtlCommand[src]

Loading content...