pub trait ConfigBuilderExt {
    // Required methods
    fn with_native_roots(
        self
    ) -> ConfigBuilder<ClientConfig, WantsTransparencyPolicyOrClientCert>;
    fn with_webpki_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§

source

fn with_native_roots( self ) -> ConfigBuilder<ClientConfig, WantsTransparencyPolicyOrClientCert>

Available on crate feature rustls-native-certs only.

This configures the platform’s trusted certs, as implemented by rustls-native-certs

source

fn with_webpki_roots( self ) -> ConfigBuilder<ClientConfig, WantsTransparencyPolicyOrClientCert>

Available on crate feature webpki-roots only.

This configures the webpki roots, which are Mozilla’s set of trusted roots as packaged by webpki-roots.

Implementations on Foreign Types§

source§

impl ConfigBuilderExt for ConfigBuilder<ClientConfig, WantsVerifier>

source§

fn with_native_roots( self ) -> ConfigBuilder<ClientConfig, WantsTransparencyPolicyOrClientCert>

Available on crate feature rustls-native-certs only.
source§

fn with_webpki_roots( self ) -> ConfigBuilder<ClientConfig, WantsTransparencyPolicyOrClientCert>

Available on crate feature webpki-roots only.

Implementors§