fn encode_setup_options(
options: &[KeyValuePair],
buf: &mut impl BufMut,
) -> Result<(), CodecError>Expand description
Encode the Setup Options of a SETUP message.
The sender’s half of the same sentence, and it is the wider half: “Senders MUST NOT repeat the same Option Type in a message” names no exception for types the sender does not recognise, so every repeat is refused here except the one the draft allows. A caller holding an option this codec has never heard of still may not send it twice.
The token is in this namespace as well, and is held to its structure here for
the reason encode_parameters gives.