Skip to main content

serve_bound

Function serve_bound 

Source
pub async fn serve_bound(
    bound: BoundHttpListener,
    app: Router,
    shutdown: Arc<Notify>,
    service_name: &str,
) -> Result<(), RpcError>
Expand description

Serve phase: consume a BoundHttpListener with graceful shutdown.

TLS uses the pinned axum-server prebound constructor on the already-bound std listener; ACME mode installs rustls-acme’s challenge-aware acceptor.