pub async fn serve(
app: App,
addr: SocketAddr,
cert_path: &str,
key_path: &str,
) -> Result<()>Expand description
Serve app over HTTP/3 on addr until the process ends.
ยงErrors
If the certificate or key cannot be loaded, or the UDP socket cannot be bound.