Expand description
Error, status and stream-reset code registries defined by draft-ietf-moq-transport-23.
One enum per registry in the IANA Considerations section (Section 16.12), plus the Error Detail Types registry (Section 16.11). The per-code prose in the variant docs is taken from the section each row cites.
from_u64 returns None for any value the draft does not assign. Section
13: “Receipt of an unknown error code in any error context (Session
Termination, REQUEST_ERROR, PUBLISH_DONE, or Data Stream Reset) MUST be
treated as equivalent to INTERNAL_ERROR for that context.”
Each registry reserves 0x7f * N + 0x9D for greasing (Section 13). That is
a range rather than an assignment, so it gets no variant and from_u64
reports it as unknown like any other unassigned value.
Session termination codes do not fit a u8: 0x200 through 0x401 are
assigned.
Enums§
- Error
Detail Type - Error Detail types (draft-23 Section 16.11, Table 19).
- Publish
Done Status Code - PUBLISH_DONE codes (draft-23 Section 16.12.3, Table 22).
- Request
Error Code - REQUEST_ERROR codes (draft-23 Section 16.12.2, Table 21).
- Session
Error Category - The category Section 12.2 gives a session termination code in 0x200-0x4FF.
- Session
Error Code - Session termination error codes (draft-23 Section 16.12.1, Table 20).
- Stream
Reset Error Code - Stream reset error codes (draft-23 Section 16.12.4, Table 23).