Skip to main content

Module transport

Module transport 

Source
Expand description

Private local runtime transport, independent of cache and project-job RPC. Owner-private runtime RPC, independent of cache and Cargo-job protocol versions.

Structs§

Client
Owner-private runtime client; no solver process or fallback is ever started here.
Deadline
One Unix stream with an absolute read/write deadline, including trickle input.

Enums§

Request
One bounded local request; each connection carries exactly one request.
Response
One complete local response; partial frames never establish a solver result.

Constants§

IO_TIMEOUT
Absolute deadline for control requests and frame input/output.
MAX_REQUEST_BYTES
Maximum encoded request frame, checked before allocation.
MAX_RESPONSE_BYTES
Maximum encoded response frame, including byte-array JSON overhead.
VERSION
Transport framing version, independent of the payload’s version.

Functions§

private_parent
Verify or create the immediate owner-private directory of a runtime socket.
read_frame
Read one bounded fresh frame, rejecting unknown versions and malformed payloads.
socket_path
The runtime endpoint derived from the same canonical cache namespace as jobs.
validate_socket
Authenticate the local filesystem ownership boundary before connecting.
write_frame
Write one independently versioned frame with a hard serialization bound.