OtherCloseCode¶
A valid close status code without a named primitive.
Covers application-defined codes (3000-4999), IANA-registered codes without named primitives (1010, 1012-1014), and any future additions to the standard range. The raw code is preserved for application inspection.
Implements¶
- Stringable box
Constructors¶
create¶
Create an OtherCloseCode wrapping the given numeric code.
Parameters¶
- code': U16 val
Returns¶
- OtherCloseCode val^
Public Functions¶
code¶
Returns the raw numeric close code.
Returns¶
- U16 val
string¶
Returns a human-readable representation including the numeric code.
Returns¶
- String iso^