Struct embedded_redis::commands::ping::PingCommand
source · pub struct PingCommand { /* private fields */ }Expand description
Abstraction for PING command
Implementations§
Trait Implementations§
source§impl<F> Command<F> for PingCommandwhere
F: From<CommandBuilder> + ToStringOption,
impl<F> Command<F> for PingCommandwhere F: From<CommandBuilder> + ToStringOption,
§type Response = ()
type Response = ()
Response type, either a custom evaluated “high-level” response or the original RESP frame
source§fn eval_response(&self, frame: F) -> Result<Self::Response, ResponseTypeError>
fn eval_response(&self, frame: F) -> Result<Self::Response, ResponseTypeError>
The command has the ability to evaluate the response frame and craft its own high level
response from that.
Its also possible to just return 1:1 the RESP2 frame. Read more