Skip to content

health

Structs


Struct

Minimal HTTP server that serves a /healthz liveness probe.

Methods:

  • fn bind(addr: SocketAddr, cancel: CancellationToken) -> Result<Self, std::io::Error> - Creates a new health-check server bound to addr.
  • fn serve(self: Self) - Runs the accept loop until the cancellation token fires.

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result