Skip to main content

Module codes

Module codes 

Source
Expand description

QUIC application error codes used in CONNECTION_CLOSE, RESET_STREAM and STOP_SENDING (docs/PROTOCOL.md §7).

These are plain u64 values: the protocol crate stays free of transport types, and the weida crate wraps them in quinn::VarInt.

Constants§

CANCELED
The transfer is no longer wanted.
INTERNAL
The local side failed internally.
LIMIT_EXCEEDED
A resource limit was reached.
NEGOTIATION_FAILED
Version or capability negotiation failed.
NO_ERROR
Normal closure.
PROTOCOL_VIOLATION
The peer broke the wire protocol.
REJECTED
The receiving application declined the transfer.
SHUTDOWN
Orderly shutdown of the runtime.
UNKNOWN_ENDPOINT
No endpoint is registered for the requested path.
UNSUPPORTED
The endpoint exists but does not serve this stream kind.

Functions§

name
Human-readable name for a code, for logs and close reasons.
stop_reason
Interprets a STOP_SENDING code as a sender-side outcome reason.