pub trait Command {
type Output;
// Required methods
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§
Required Methods§
Sourcefn to_request(self) -> Request
fn to_request(self) -> Request
Convert command to a redis request
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.