We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
WasiTlsCtxBuilder::provider
1 parent b8d0572 commit 240f561Copy full SHA for 240f561
1 file changed
crates/wasi-tls/src/lib.rs
@@ -129,6 +129,11 @@ impl WasiTlsCtxBuilder {
129
}
130
131
/// Sets the TLS provider to use for this context.
132
+ ///
133
+ /// By default, this is set to the [`DefaultProvider`] which is picked at
134
+ /// compile time based on feature flags. If this crate is compiled with
135
+ /// multiple TLS providers, this method can be used to specify the provider
136
+ /// at runtime.
137
pub fn provider(mut self, provider: Box<dyn TlsProvider>) -> Self {
138
self.provider = provider;
139
self
0 commit comments