Trait RustlsServerConfigExt
pub trait RustlsServerConfigExt: Sized {
// Required methods
fn with_modify_rustls_config(
self,
modify: impl Fn(ServerConfig) -> Result<ServerConfig, Box<dyn Error + Sync + Send>> + Send + Sync + 'static,
) -> Self;
fn set_modify_rustls_config(
&mut self,
modify: impl Fn(ServerConfig) -> Result<ServerConfig, Box<dyn Error + Sync + Send>> + Send + Sync + 'static,
) -> &mut Self;
fn with_dynamic_config(
self,
provider: Arc<impl DynamicConfigProvider>,
) -> Self;
fn set_dynamic_config(
&mut self,
provider: Arc<impl DynamicConfigProvider>,
) -> &mut Self;
}Available on crate feature
rustls only.Expand description
Rustls-specific setters.
Required Methods§
fn with_modify_rustls_config(
self,
modify: impl Fn(ServerConfig) -> Result<ServerConfig, Box<dyn Error + Sync + Send>> + Send + Sync + 'static,
) -> Self
fn with_modify_rustls_config( self, modify: impl Fn(ServerConfig) -> Result<ServerConfig, Box<dyn Error + Sync + Send>> + Send + Sync + 'static, ) -> Self
Take over the final rustls ServerConfig build: see ModifyRustlsServerConfig.
fn set_modify_rustls_config(
&mut self,
modify: impl Fn(ServerConfig) -> Result<ServerConfig, Box<dyn Error + Sync + Send>> + Send + Sync + 'static,
) -> &mut Self
fn set_modify_rustls_config( &mut self, modify: impl Fn(ServerConfig) -> Result<ServerConfig, Box<dyn Error + Sync + Send>> + Send + Sync + 'static, ) -> &mut Self
Take over the final rustls ServerConfig build: see ModifyRustlsServerConfig.
fn with_dynamic_config(self, provider: Arc<impl DynamicConfigProvider>) -> Self
fn with_dynamic_config(self, provider: Arc<impl DynamicConfigProvider>) -> Self
Resolve a full rustls::ServerConfig per ClientHello via a DynamicConfigProvider
When set, the common static pieces are ignored.
fn set_dynamic_config(
&mut self,
provider: Arc<impl DynamicConfigProvider>,
) -> &mut Self
fn set_dynamic_config( &mut self, provider: Arc<impl DynamicConfigProvider>, ) -> &mut Self
Resolve a full rustls::ServerConfig per ClientHello via a DynamicConfigProvider
When set, the common static pieces are ignored.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".