re-export max_concurrent_ssl_accept

This commit is contained in:
Nikolay Kim 2021-12-22 01:25:28 +06:00
parent 0b98468c1a
commit 2e7547948e
3 changed files with 6 additions and 4 deletions

View file

@ -242,7 +242,7 @@ impl Clone for SslAcceptor {
}
}
impl<F: Filter + 'static> FilterFactory<F> for SslAcceptor {
impl<F: Filter> FilterFactory<F> for SslAcceptor {
type Filter = SslFilter<F>;
type Error = Box<dyn Error>;
@ -297,7 +297,7 @@ impl SslConnector {
}
}
impl<F: Filter + 'static> FilterFactory<F> for SslConnector {
impl<F: Filter> FilterFactory<F> for SslConnector {
type Filter = SslFilter<F>;
type Error = Box<dyn Error>;

View file

@ -166,7 +166,7 @@ impl Clone for TlsAcceptor {
}
}
impl<F: Filter + 'static> FilterFactory<F> for TlsAcceptor {
impl<F: Filter> FilterFactory<F> for TlsAcceptor {
type Filter = TlsFilter<F>;
type Error = io::Error;
@ -221,7 +221,7 @@ impl Clone for TlsConnectorConfigured {
}
}
impl<F: Filter + 'static> FilterFactory<F> for TlsConnectorConfigured {
impl<F: Filter> FilterFactory<F> for TlsConnectorConfigured {
type Filter = TlsFilter<F>;
type Error = io::Error;

View file

@ -18,6 +18,8 @@ pub use ntex_tls::openssl;
#[cfg(feature = "rustls")]
pub use ntex_tls::rustls;
pub use ntex_tls::max_concurrent_ssl_accept;
pub(crate) use self::builder::create_tcp_listener;
pub use self::builder::ServerBuilder;
pub use self::config::{Configuration, RuntimeConfiguration, ServiceConfig};