fn decode_setup_options(
buf: &mut impl Buf,
) -> Result<Vec<KeyValuePair>, CodecError>Expand description
Decode the Setup Options of a SETUP message.
Section 10.3: “Senders MUST NOT repeat the same Option Type in a message unless the option definition explicitly allows multiple instances. Receivers MUST allow duplicates of unknown Setup Options.”
The second sentence is why this is not the mirror of
encode_setup_options: a repeat of a type this draft names is refused, and
a repeat of any other type is carried. Types ascend and are delta-encoded, so
a repeat is always a zero delta against the option before it.