axum_server2::tls_rustls

Function bind_rustls

Source
pub fn bind_rustls(
    addr: SocketAddr,
    config: RustlsConfig,
) -> Server<RustlsAcceptor>
Available on crate feature tls-rustls only.
Expand description

Create a tls server that will bind to provided address.