Skip to main content

serve

Function serve 

Source
pub async fn serve(listener: TcpListener, state: AppState) -> Result<()>
Expand description

Serves the control plane on listener until the process ends.

The caller binds the listener (so it may choose 127.0.0.1:0 and read the assigned port), then hands it here.

ยงErrors

Propagates any error from the underlying axum::serve.