pub fn resp2_frame_to_resp3(frame: Frame) -> Frame
Expand description
Utility function to translate RESP2 frames to RESP3 frames.
RESP2 frames and RESP3 frames are quite different, but RESP3 is largely a superset of RESP2 so this function will never return an error.
Redis handles the protocol choice based on the response to the HELLO
command, so developers of higher level clients can be faced with a decision on which Frame
struct to expose to callers.
This function can allow callers to take a dependency on the RESP3 interface by lazily translating RESP2 frames from the server to RESP3 frames.