Skip to main content

Module envelope

Module envelope 

Source

Structs§

ErrorCode
Wire-level error code. Every code is a Lisp-style symbol string, rendered as the bare token after :code in the response envelope. The wire surface is open: well-known engine-emitted codes are associated &str constants on the type, while script-raised codes (via (error 'symbol "msg")) flow through the same channel without a sentinel. Clients pattern-match identically on engine and script codes — adding a new well-known code is a non-breaking change.
Request
Response

Enums§

EnvelopeError
Frame
A request head read without the form body, so a bad form keeps its :id.
RequestId
ResponsePayload

Functions§

format_response
read_frame
Reads the head of frame: (:id ID [:stream N] :form FORM), (:interrupt N) or (:close N).
with_notices
The response frame with :notices added when there are any.