Struct embedded_redis::commands::get::GetCommand
source · pub struct GetCommand { /* private fields */ }Expand description
Abstraction of GET command.
Implementations§
source§impl GetCommand
impl GetCommand
Trait Implementations§
source§impl<F> Command<F> for GetCommandwhere
F: From<CommandBuilder> + IsNullFrame + ToStringBytes,
impl<F> Command<F> for GetCommandwhere F: From<CommandBuilder> + IsNullFrame + ToStringBytes,
§type Response = Option<GetResponse>
type Response = Option<GetResponse>
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