pub async fn serve(addr: SocketAddr, cfg: PhronaConfig) -> Result<()>Expand description
Serve the REST API on addr. Blocks until the server stops (Ctrl+C or
SIGTERM trigger a graceful shutdown that drains in-flight requests).
pub async fn serve(addr: SocketAddr, cfg: PhronaConfig) -> Result<()>Serve the REST API on addr. Blocks until the server stops (Ctrl+C or
SIGTERM trigger a graceful shutdown that drains in-flight requests).