pub fn decode_server_value_body(
discriminant: ServerDiscriminant,
version: ProtocolVersion,
body: &[u8],
) -> Result<(ServerValue, ProtocolVersion), CodecError>Expand description
Decodes one exact semantic server-value body under v1.0.
The concrete protocol version is returned beside the decoded value so a complete-frame caller can preserve its already-validated prefix value.
ยงErrors
Returns the canonical structural decode class, or
CodecError::UnsupportedVersion when version is not v1.0.