We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b2997a commit 6931bc4Copy full SHA for 6931bc4
1 file changed
src/config.rs
@@ -17,7 +17,7 @@ use rustls_native_certs::CertificateResult;
17
///
18
/// This adds methods (gated by crate features) for easily configuring
19
/// TLS server roots a rustls ClientConfig will trust.
20
-pub trait ConfigBuilderExt {
+pub trait ConfigBuilderExt: sealed::Sealed {
21
/// Use the platform's native verifier to verify server certificates.
22
23
/// See the documentation for [rustls-platform-verifier] for more details.
@@ -106,3 +106,11 @@ impl ConfigBuilderExt for ConfigBuilder<ClientConfig, WantsVerifier> {
106
self.with_root_certificates(roots)
107
}
108
109
+
110
+mod sealed {
111
+ use super::*;
112
113
+ pub trait Sealed {}
114
115
+ impl Sealed for ConfigBuilder<ClientConfig, WantsVerifier> {}
116
+}
0 commit comments