pub trait RustlsServerConfigExt {
// Required methods
fn server_config_rustls(&self) -> ServerConfig;
fn server_config_rustls_with_provider(
&self,
provider: Arc<CryptoProvider>,
) -> ServerConfig;
}Expand description
Extension trait that builds a rustls::ServerConfig from uselesskey fixtures.
Required Methods§
Sourcefn server_config_rustls(&self) -> ServerConfig
fn server_config_rustls(&self) -> ServerConfig
Build a ServerConfig using the process-default CryptoProvider.
Sourcefn server_config_rustls_with_provider(
&self,
provider: Arc<CryptoProvider>,
) -> ServerConfig
fn server_config_rustls_with_provider( &self, provider: Arc<CryptoProvider>, ) -> ServerConfig
Build a ServerConfig with an explicit CryptoProvider.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl RustlsServerConfigExt for X509Cert
Available on crate features server-config and x509 only.
impl RustlsServerConfigExt for X509Cert
Available on crate features
server-config and x509 only.fn server_config_rustls(&self) -> ServerConfig
fn server_config_rustls_with_provider( &self, provider: Arc<CryptoProvider>, ) -> ServerConfig
Source§impl RustlsServerConfigExt for X509Chain
Available on crate features server-config and x509 only.
impl RustlsServerConfigExt for X509Chain
Available on crate features
server-config and x509 only.