pub enum RespVersion {
V2,
V3,
}Expand description
Which version of RESP a connection is speaking. Negotiated via the
HELLO command — RESP2 is the default for backwards compatibility
with every Redis 6.x and earlier client; RESP3 is opt-in via
HELLO 3 and unlocks the additive reply types
(Reply::Map / Reply::Set / Reply::Double / Reply::Boolean
/ Reply::Verbatim / Reply::BigNumber / Reply::Null /
Reply::Push / Reply::BlobError) plus out-of-band push frames
for PUBLISH delivery.
Stored per-connection in kevy-rt and forwarded to dispatch so each
reply encoder can pick the right wire shape — see the kevy v2 RESP3
design notes for the full phase plan.
Variants§
V2
RESP2 — every reply is one of the seven legacy prefixes
(+ - : $ * $-1 *-1). Default for backward compatibility.
V3
RESP3 — adds 9 reply prefixes (% ~ , # = ( _ > !) plus
attributes (|). Opt-in via HELLO 3.
Trait Implementations§
Source§impl Clone for RespVersion
impl Clone for RespVersion
Source§fn clone(&self) -> RespVersion
fn clone(&self) -> RespVersion
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RespVersion
Source§impl Debug for RespVersion
impl Debug for RespVersion
Source§impl Default for RespVersion
impl Default for RespVersion
Source§fn default() -> RespVersion
fn default() -> RespVersion
impl Eq for RespVersion
Source§impl PartialEq for RespVersion
impl PartialEq for RespVersion
Source§fn eq(&self, other: &RespVersion) -> bool
fn eq(&self, other: &RespVersion) -> bool
self and other values to be equal, and is used by ==.