Esc

Wire_Error

enumextensionsince 0.36.1Source
  • macOS: Wire_Error works on macOS
  • Linux: Wire_Error works on Linux
  • Windows: Wire_Error works on Windows
  • Wasm: Wire_Error works on Wasm

Declaration

Wire_Error :: enum u8 {
    NONE;    TOO_LARGE;    INVALID_FLAG;    UNSUPPORTED_COMPRESSION;    INVALID_COMPRESSION;    TRUNCATED;}

Envelope validation failures. Declared-size rejection precedes payload allocation.

Example↗
_, failure := frame_message(u8.[1, 2, 3], max_message = 2);
assert(failure == .TOO_LARGE);

See also