Skip to main content

encode_setup_parameters

Function encode_setup_parameters 

Source
fn encode_setup_parameters(
    parameters: &[KeyValuePair],
    buf: &mut impl BufMut,
) -> Result<(), CodecError>
Expand description

Encode a SETUP message’s parameter list.

Separate from encode_parameters for the reason the decode side is: two of the three value rules are version-specific, and a setup 0x21 or 0x22 is not the parameter either of them describes. The token is in both namespaces and is held to its structure in both.