Skip to main content

Module protocol

Module protocol 

Source
Expand description

Wire types for the daemon’s Unix-domain control socket.

The control plane speaks newline-delimited JSON (NDJSON): one DaemonEnvelope request per line, one DaemonReply response per line. New optional fields use #[serde(default, skip_serializing_if = ...)] so older peers stay byte-compatible on the wire.

Structs§

DaemonEnvelope
A request sent to the daemon over the control socket.
DaemonReply
A response returned by the daemon over the control socket.
StatusReport
The payload of a built-in status reply: per-service status snapshots.

Constants§

DAEMON_SERVICE
The reserved service name for the daemon’s own built-in operations (ping, status, shutdown). A None service targets the same.
MAX_LINE_BYTES
Maximum length, in bytes, of a single NDJSON line on the control socket.