Expand description
Bounded local-socket client for the semantic side-channel.
Dormant rule. Without TERMWRIGHT_ENDPOINT and TERMWRIGHT_TOKEN in
the environment Client::from_env returns None: the application opens
no socket, writes no marker, and renders exactly the bytes it would have
rendered anyway.
The client is deliberately blocking and single-threaded. A TUI renders on
one thread and the marker must follow that render’s last byte, so
Client::publish does its socket work inline and hands back the marker
to write. Driver requests are picked up by Client::poll, which never
blocks.
Structs§
- Client
- One semantic session: handshake, snapshot publishing, render markers.
- Options
- How a client identifies itself and what it can provide.
Constants§
- DIAL_
TIMEOUT - Default handshake budget.
- ENV_
ENDPOINT - Environment variable naming the driver’s socket.
- ENV_
TOKEN - Environment variable carrying the per-launch session token.
- WRITE_
TIMEOUT - Default bound on a single frame write.