pub fn bind_openssl(
    addr: SocketAddr,
    config: OpenSSLConfig
) -> Server<OpenSSLAcceptor>
Available on crate feature tls-openssl only.
Expand description

Binds a TLS server using OpenSSL to the specified address with the given configuration.

The server is configured to accept TLS encrypted connections.

Arguments

  • addr: The address to which the server will bind.
  • config: The TLS configuration for the server.

Returns

A configured Server instance ready to be run.