pub async fn serve(router: Router, host: &str, port: u16) -> Result<()>
Binds to host:port and serves router until Ctrl+C or SIGTERM is received.
host:port
router
In-flight requests are allowed to finish before this function returns.