Expand description
Bridged serve helper for the post-ZMQ spawn path (#136).
The RPC cutover replaces every RequestLoop::new(..).run(service) (ZMQ
ROUTER) with this: bridge the service to a Send processor
(LocalServiceBridge), then
serve it over its registered transport via the same process_request
dispatch core the quinn/iroh planes use.
Spawn-path transports (from EndpointRegistry::endpoint(name, Rep)):
Inproc{endpoint}(default daemon mode) → register the processor in the in-memory dial registry (register_inproc); no socket. The registry holds only aWeak, so the strongprocessorArcis retained here for the service’s lifetime.Ipc{path}(--ipc) → bind aUnixListeneratpath, runUdsRpcServer.SystemdFd{fd,..}→ adopt the systemd-passed listener fd, runUdsRpcServer.Quic/Irohare dialed, never bound on the spawn path → error.
Functions§
- serve_
bridged - Serve a bridged request
processorover its registeredtransportuntilshutdownfires. See the module docs for the per-transport behaviour. - serve_
bridged_ with_ shutdown_ armed - Variant of
serve_bridgedthat acknowledges after the shutdown waiter is registered, before startup readiness is signalled. This closes the window where an owner can notify shutdown after readiness but before the helper has begun waiting on the shared [Notify]. - serve_
bridged_ with_ shutdown_ armed_ silent - Variant of
serve_bridged_with_shutdown_armedfor nested helpers whose parent owns the service readiness boundary. It acknowledges the shutdown waiter but does not emit a systemdREADY=1notification.