Skip to main content

Module error_codes

Module error_codes 

Source
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§

ErrorDetailType
Error Detail types (draft-23 Section 16.11, Table 19).
PublishDoneStatusCode
PUBLISH_DONE codes (draft-23 Section 16.12.3, Table 22).
RequestErrorCode
REQUEST_ERROR codes (draft-23 Section 16.12.2, Table 21).
SessionErrorCategory
The category Section 12.2 gives a session termination code in 0x200-0x4FF.
SessionErrorCode
Session termination error codes (draft-23 Section 16.12.1, Table 20).
StreamResetErrorCode
Stream reset error codes (draft-23 Section 16.12.4, Table 23).