Skip to main content

Crate cookie_agent_server

Crate cookie_agent_server 

Source
Expand description

Exact cookie-agent protocol 20 transport-neutral JSON-RPC service.

Structs§

Client
Protocol client connected through transports provided by this crate.
InProcessStream
RunningServer
Server
Protocol service composed with one coherent engine runtime.
ServerContext
Per-connection facilities available to a server implementation.
ServerFault
JSON-RPC failure returned by a ServerProtocol implementation.
WebSocketTransport
Tokio WebSocket transport for protocol clients.

Enums§

ClientDelivery
The sole ordered delivery stream consumed by the UI.
ClientError
Errors returned by the transport or a JSON-RPC operation.
MessageFrame
One complete JSON-RPC message exchanged by a protocol transport.
ServerError
TokenError
Errors returned while preparing the per-run daemon authentication token.
TransportError
WebSocketUrlError
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§

ClientEventSink
Consumer of ordered protocol notifications and replay deliveries.
ClientProtocol
Client end of the protocol contract over shared session mechanics.
MessageStream
Frame-level channel with no JSON-RPC semantics.
ServerProtocol
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.