Expand description
Wire protocol types for host-renderer communication.
IncomingMessage is deserialized from the host. OutgoingEvent
and response types are serialized back. The transport (stdin/stdout,
socket, test harness) is handled by the binary crate, not here.
Every wire message carries a session field identifying the logical
session it belongs to. SessionMessage pairs a session ID with a
deserialized IncomingMessage. All outgoing types include a
session field that echoes the originating session ID back.
Structs§
- Effect
Response - Response to an effect request, written to stdout as JSONL.
- Extension
Command Item - A single item within an
ExtensionCommandsbatch. - Interact
Response - Response to an Interact message.
- KeyModifiers
- Serializable representation of keyboard modifiers.
- Outgoing
Event - An event written to stdout by the renderer.
- PatchOp
- A single patch operation applied incrementally to the retained tree.
- Query
Response - Response to a Query message.
- Reset
Response - Response to a Reset message.
- Session
Message - An incoming message paired with its session ID.
- Tree
Hash Response - Response to a TreeHash message.
- Tree
Node - A single node in the UI tree.
Enums§
- Incoming
Message - Messages sent from the host to the renderer over stdin.
Constants§
- PROTOCOL_
VERSION - Protocol version number. Sent in the
hellohandshake message on startup and checked against the value the host embeds in Settings.