pub async fn run(cfg: ServerConfig) -> Result<()>Expand description
Run the server. Returns when the listener stops (e.g. on SIGTERM/SIGINT). In-flight requests are allowed to complete before the process exits.
§Errors
Returns an error if the listener can’t be bound, the TLS material is invalid, or the policy store can’t be loaded.