Expand description
Wire messages: typed builders for what an adapter sends, checked parsers for what it receives.
The adapter pushes commits, the driver issues requests, and either side may send an error and close. Everything is validated against the active limits before it is retained; failures are returned, never raised.
Structs§
- Adapter
Info - Identifies the adapter implementation to the driver.
- GetTree
- The driver asking for a tree: the latest, or a held revision.
- GetTree
Result - Answers a
GetTreewith exactly one of a snapshot or an error. - Hello
- The adapter’s handshake: sent exactly once, before anything else.
- Hello
Ack - The driver’s reply: session id, negotiated limits, what to push.
- LogBudget
- The log-channel allowance, sent only when the adapter announced the
logscapability. Absent means logs are disabled: an adapter that receives no budget must not emit log messages at all. - LogMessage
- Carries one application log record to the driver.
- Marker
Config - Whether the adapter should emit render markers.
- Probe
Info - What a probe says about itself when it attaches.
- Protocol
Error Message - Terminal error: the sender closes after emitting it.
- Revision
Commit - Announces that a render was committed to the terminal.
- Snapshot
Message - Carries a full tree for one revision.
Enums§
- Probe
Identity Kind - How an object’s identity behaves across frames.
Constants§
- PROTOCOL_
ID - The wire protocol identifier both sides must agree on.
- PROTOCOL_
V2_ ID - Qualified observation protocol identifier.
- PROTOCOL_
VERSION - The current major version.
Functions§
- default_
capabilities - Every capability a tree-publishing adapter with real bounds announces.
- parse_
adapter_ message - Validate one adapter → driver message.
- parse_
driver_ message - Validate one driver → adapter message.