fn decoded_status(code: u64) -> Result<ObjectStatus, CodecError>Expand description
Turn a wire Object Status code into an ObjectStatus, refusing one
draft-23 does not assign.
Draft-23 Section 11.1.1 lists the codes an object may carry — the three
rows of the Object Status registry in Section 16.9 — and says: “If an
endpoint receives any other value, it SHOULD close the session with
INVALID_OBJECT_STATUS (Section 12.2).” Every place this module reads a status
converts it here, so a decoded SubgroupObject::object_status or
DatagramHeader::object_status is always a status the draft assigns, and
SubgroupObjectMeta::status — which stays a raw code because a relay may
carry it to a draft that numbers the set differently — holds one because it
comes from the same conversion.