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