Trait QuicClientConfigProvider
pub trait QuicClientConfigProvider: TlsClientConfigProvider {
// Required method
fn client_config(
&self,
config: &TlsClientConfig,
options: TlsOptions,
) -> Result<ClientConfig, TlsConfigError>;
}Available on crate features
quic and std only.Expand description
Build QUIC TLS configurations from Rama settings using a fixed provider.
This is the request-configuration boundary; the lower-level session provider
interface remains available through ClientConfig::new. Custom providers use
this same interface for construction, pool identity and server authentication.
Built-in providers apply common Rama TLS settings and their own native extensions, ignoring other providers’ native settings. Construction, authentication claims and pool identity describe the settings actually applied. Different connectors can therefore use different TLS policies.
Required Methods§
fn client_config( &self, config: &TlsClientConfig, options: TlsOptions, ) -> Result<ClientConfig, TlsConfigError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl QuicClientConfigProvider for BoringTlsProvider
Available on crate feature
boring only.impl QuicClientConfigProvider for RustlsTlsProvider
Available on crate feature
rustls and (crate features aws-lc or ring) only.