Skip to main content

Crate nomoreide_daemon

Crate nomoreide_daemon 

Source
Expand description

Machine-global loopback daemon ownership and state boundary.

Structs§

DaemonOptions
DaemonOwnership
Exclusive ownership of the machine-global runtime. The OS lock is released automatically on crash; state and credentials are removed on orderly drop.

Enums§

ShutdownRequest
Why a shutdown was asked for.

Functions§

run
run_embedded
Run an app-private daemon whose connection details never reach disk.
run_embedded_with_shutdown_requests
Run an app-private daemon with a shutdown channel owned by its host.
run_with_listener
Run the daemon on a listener the caller has already bound.
serve_until
serve_with_shutdown_requests
shutdown_requests is handed in as both ends: the receiver drains the runtime, and the sender is what POST /api/daemon/shutdown pulls on, so a request and a signal reach the same drain rather than two separate exits.