pub async fn serve_with_statics<F>(
addr: &str,
handler: F,
statics: Option<Arc<StaticResponses>>,
) -> Result<()>Expand description
Bind addr and serve forever with a SHARED handler (Fn + Send + Sync —
the compiled-handler contract; calls may run concurrently across shards or
connection tasks) and an optional pre-serialized StaticResponses table
both engines consult before dispatching. Engine selection as in serve.