Trait hyper_rustls::ConfigBuilderExt
source · pub trait ConfigBuilderExt {
// Required method
fn with_native_roots(
self
) -> ConfigBuilder<ClientConfig, WantsTransparencyPolicyOrClientCert>;
}
Expand description
Methods for configuring roots
This adds methods (gated by crate features) for easily configuring TLS server roots a rustls ClientConfig will trust.
Required Methods§
sourcefn with_native_roots(
self
) -> ConfigBuilder<ClientConfig, WantsTransparencyPolicyOrClientCert>
fn with_native_roots( self ) -> ConfigBuilder<ClientConfig, WantsTransparencyPolicyOrClientCert>
This configures the platform’s trusted certs, as implemented by rustls-native-certs