/// A convenience function that constructs a Hyper server builder that uses TLS
/// acceptor using Crypto API.
///
/// This function sets the SO_REUSEADDR and SO_REUSEPORT options on the socket.
///
/// Returns an `Err` if binding to the specified socket address or setting
/// the above socket options failed.
A convenience function that constructs a Hyper server builder that uses TLS
acceptor using Crypto API.

This function sets the SO_REUSEADDR and SO_REUSEPORT options on the socket.

Returns an `Err` if binding to the specified socket address or setting
the above socket options failed.
A convenience function that constructs a Hyper server builder that uses TLS acceptor using Crypto API . This function sets the SO_REUSEADDR and SO_REUSEPORT options on the socket . Returns an ` Err ` if binding to the specified socket address or setting the above socket options failed .
pub fn tls_bind(
    addr: &SocketAddr,
    tls: Arc<dyn TlsHandshake + Send + Sync>,
    registry_client: Arc<dyn RegistryClient + Send + Sync>,
) -> Result<(SocketAddr, hyper::server::Builder<TlsAccept>), BoxError> {
    let socket = bind_tcp_socket_with_reuse(addr)?;
    socket.listen(128)?;
    let listener = TcpListener::from_std(socket.into())?;
    AddrIncoming::from_listener(listener)
        .map(move |inner| {
            (
                inner.local_addr(),
                hyper::server::Server::<TlsAccept, ()>::builder(TlsAccept {
                    connection_type: ConnectionType::default(),
                    inner,
                    tls,
                    registry_client,
                }),
            )
        })
        .map_err(box_err)
}
pub fn tls_bind ( addr : & SocketAddr , tls : Arc < dyn TlsHandshake + Send + Sync > , registry_client : Arc < dyn RegistryClient + Send + Sync > , ) -> Result < ( SocketAddr , hyper :: server :: Builder < TlsAccept > ) , BoxError > { let socket = bind_tcp_socket_with_reuse ( addr ) ? ; socket . listen ( 128 ) ? ; let listener = TcpListener :: from_std ( socket . into ( ) ) ? ; AddrIncoming :: from_listener ( listener ) . map ( move | inner | { ( inner . local_addr ( ) , hyper :: server :: Server :: < TlsAccept , ( ) > :: builder ( TlsAccept { connection_type : ConnectionType :: default ( ) , inner , tls , registry_client , } ) , ) } ) . map_err ( box_err ) }
A convenience function that constructs a Hyper server builder that uses TLS
acceptor using Crypto API.
A convenience function that constructs a Hyper server builder that uses TLS acceptor using Crypto API .
addr
&SocketAddr
tls
Arc<dyn TlsHandshake + Send + Sync>
registry_client
Arc<dyn RegistryClient + Send + Sync>