Struct embedded_redis::commands::hello::HelloCommand
source · pub struct HelloCommand {}Expand description
Abstraction of HELLO command.
Trait Implementations§
source§impl Command<Frame> for HelloCommand
impl Command<Frame> for HelloCommand
§type Response = HelloResponse
type Response = HelloResponse
Response type, either a custom evaluated “high-level” response or the original RESP frame
source§fn encode(&self) -> Resp3Frame
fn encode(&self) -> Resp3Frame
Encodes the command to RESP2/RESP3 frame
source§fn eval_response(
&self,
frame: Resp3Frame
) -> Result<Self::Response, ResponseTypeError>
fn eval_response( &self, frame: Resp3Frame ) -> 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
source§impl Command<Frame> for HelloCommand
impl Command<Frame> for HelloCommand
§type Response = HelloResponse
type Response = HelloResponse
Response type, either a custom evaluated “high-level” response or the original RESP frame
source§fn encode(&self) -> Resp2Frame
fn encode(&self) -> Resp2Frame
Encodes the command to RESP2/RESP3 frame
source§fn eval_response(
&self,
_frame: Resp2Frame
) -> Result<Self::Response, ResponseTypeError>
fn eval_response( &self, _frame: Resp2Frame ) -> 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