Trait DynamicConfigProvider
pub trait DynamicConfigProvider:
Send
+ Sync
+ 'static {
// Required method
fn get_config(
&self,
client_hello: ClientHello<'_>,
server_name: Option<&ServerName>,
) -> impl Future<Output = Result<Arc<ServerConfig>, Box<dyn Error + Send + Sync>>> + Send;
}Available on crate feature
rustls only.Expand description
Resolve a server configuration using the native hello and its observed SNI. The observed name retains IP literals omitted by the native hello view.
Required Methods§
fn get_config( &self, client_hello: ClientHello<'_>, server_name: Option<&ServerName>, ) -> impl Future<Output = Result<Arc<ServerConfig>, Box<dyn Error + Send + Sync>>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".