Skip to main content

Module health

Module health 

Source
Expand description

The axum side-server (PRD §11): liveness, readiness, and metrics on a separate port from a binary’s main surface.

Structs§

Health
Shared readiness flag, flipped on once the process is wired up and flipped off as shutdown begins.

Functions§

serve
Serve the side-server until shutdown is cancelled, binding addr here.
serve_on
Serve the side-server on an already-bound listener until shutdown is cancelled. Binding is the caller’s job, so readiness can be flipped on only once the socket actually exists.