Expand description
Exact cookie-agent protocol 20 transport-neutral JSON-RPC service.
Structs§
- Client
- Protocol client connected through transports provided by this crate.
- InProcess
Stream - Running
Server - Server
- Protocol service composed with one coherent engine runtime.
- Server
Context - Per-connection facilities available to a server implementation.
- Server
Fault - JSON-RPC failure returned by a
ServerProtocolimplementation. - WebSocket
Transport - Tokio WebSocket transport for protocol clients.
Enums§
- Client
Delivery - The sole ordered delivery stream consumed by the UI.
- Client
Error - Errors returned by the transport or a JSON-RPC operation.
- Message
Frame - One complete JSON-RPC message exchanged by a protocol transport.
- Server
Error - Token
Error - Errors returned while preparing the per-run daemon authentication token.
- Transport
Error - WebSocket
UrlError - Errors returned when a daemon WebSocket URL is not a safe attach endpoint.
Constants§
- READY_
LINE_ PREFIX - Literal prefix that marks the single machine-readable startup frame.
Traits§
- Client
Event Sink - Consumer of ordered protocol notifications and replay deliveries.
- Client
Protocol - Client end of the protocol contract over shared session mechanics.
- Message
Stream - Frame-level channel with no JSON-RPC semantics.
- Server
Protocol - Server end of the protocol contract after session-level validation.
- Transport
- Frame-level channel with no JSON-RPC semantics.
Functions§
- generate_
token - Generates a fresh random 32-byte daemon bearer token as 43 base64url characters. The token is kept only in memory and dies with the process.
- in_
process_ pair - ready_
line - Formats the single machine-readable startup frame a supervisor parses.
- validate_
websocket_ url - Validates that a URL targets the daemon’s exact loopback WebSocket endpoint.