Skip to main content

RustlsServerConfigExt

Trait RustlsServerConfigExt 

Source
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§

Source

fn server_config_rustls(&self) -> ServerConfig

Build a ServerConfig using the process-default CryptoProvider.

Source

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.
Source§

impl RustlsServerConfigExt for X509Chain

Available on crate features server-config and x509 only.

Implementors§