Skip to main content

Crate regain_worker

Crate regain_worker 

Source
Expand description

Shared, bounded newline-JSON IPC for accessory workers. Camera workers retain their separate length-prefixed JSON and binary frame protocol.

Constants§

MAX_REQUEST

Functions§

parse
read_request
EOF, a partial final request, and oversized input terminate the session. This bounds memory before allocation, including when a caller never sends a newline.
reply
serve
Dispatch requests and poll idle devices. The caller retains device-specific shutdown policy.
stdin_requests
write_reply
Write one response without allowing a closed parent pipe to panic the worker.