Files
google-apis-rs/security_framework/secure_transport/struct.SslContext.html
2024-03-05 21:06:01 +01:00

121 lines
82 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A Secure Transport SSL/TLS context object."><title>SslContext in security_framework::secure_transport - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-ac92e1bbe349e143.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="security_framework" data-themes="" data-resource-suffix="" data-rustdoc-version="1.76.0 (07dca489a 2024-02-04)" data-channel="1.76.0" data-search-js="search-2b6ce74ff89ae146.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-f2adc0d6ca4d09fb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-305769736d49e732.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-feafe1bb7466e4bd.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../security_framework/index.html">security_framework</a><span class="version">2.9.2</span></h2></div><h2 class="location"><a href="#">SslContext</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.break_on_cert_requested">break_on_cert_requested</a></li><li><a href="#method.break_on_client_auth">break_on_client_auth</a></li><li><a href="#method.break_on_server_auth">break_on_server_auth</a></li><li><a href="#method.buffered_read_size">buffered_read_size</a></li><li><a href="#method.client_certificate_state">client_certificate_state</a></li><li><a href="#method.enabled_ciphers">enabled_ciphers</a></li><li><a href="#method.false_start">false_start</a></li><li><a href="#method.handshake">handshake</a></li><li><a href="#method.negotiated_cipher">negotiated_cipher</a></li><li><a href="#method.negotiated_protocol_version">negotiated_protocol_version</a></li><li><a href="#method.new">new</a></li><li><a href="#method.peer_domain_name">peer_domain_name</a></li><li><a href="#method.peer_id">peer_id</a></li><li><a href="#method.peer_trust2">peer_trust2</a></li><li><a href="#method.protocol_version_max">protocol_version_max</a></li><li><a href="#method.protocol_version_min">protocol_version_min</a></li><li><a href="#method.send_one_byte_record">send_one_byte_record</a></li><li><a href="#method.set_break_on_cert_requested">set_break_on_cert_requested</a></li><li><a href="#method.set_break_on_client_auth">set_break_on_client_auth</a></li><li><a href="#method.set_break_on_server_auth">set_break_on_server_auth</a></li><li><a href="#method.set_certificate">set_certificate</a></li><li><a href="#method.set_client_side_authenticate">set_client_side_authenticate</a></li><li><a href="#method.set_enabled_ciphers">set_enabled_ciphers</a></li><li><a href="#method.set_false_start">set_false_start</a></li><li><a href="#method.set_peer_domain_name">set_peer_domain_name</a></li><li><a href="#method.set_peer_id">set_peer_id</a></li><li><a href="#method.set_protocol_version_enabled">set_protocol_version_enabled</a></li><li><a href="#method.set_protocol_version_max">set_protocol_version_max</a></li><li><a href="#method.set_protocol_version_min">set_protocol_version_min</a></li><li><a href="#method.set_send_one_byte_record">set_send_one_byte_record</a></li><li><a href="#method.state">state</a></li><li><a href="#method.supported_ciphers">supported_ciphers</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Clone-for-SslContext">Clone</a></li><li><a href="#impl-ConcreteCFType-for-SslContext">ConcreteCFType</a></li><li><a href="#impl-Debug-for-SslContext">Debug</a></li><li><a href="#impl-Drop-for-SslContext">Drop</a></li><li><a href="#impl-Eq-for-SslContext">Eq</a></li><li><a href="#impl-PartialEq-for-SslContext">PartialEq</a></li><li><a href="#impl-Send-for-SslContext">Send</a></li><li><a href="#impl-SslContextExt-for-SslContext">SslContextExt</a></li><li><a href="#impl-Sync-for-SslContext">Sync</a></li><li><a href="#impl-TCFType-for-SslContext">TCFType</a></li><li><a href="#impl-ToVoid%3CSslContext%3E-for-%26SslContext">ToVoid&lt;SslContext&gt;</a></li><li><a href="#impl-ToVoid%3CSslContext%3E-for-*mut+SSLContext">ToVoid&lt;SslContext&gt;</a></li><li><a href="#impl-ToVoid%3CSslContext%3E-for-SslContext">ToVoid&lt;SslContext&gt;</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-RefUnwindSafe-for-SslContext">RefUnwindSafe</a></li><li><a href="#impl-Unpin-for-SslContext">Unpin</a></li><li><a href="#impl-UnwindSafe-for-SslContext">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a href="#impl-FromMutVoid-for-T">FromMutVoid</a></li><li><a href="#impl-FromVoid-for-T">FromVoid</a></li><li><a href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a href="#impl-ToOwned-for-T">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a href="index.html">In security_framework::secure_transport</a></h2></div></nav><div class="sidebar-resizer"></div>
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../security_framework/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Struct <a href="../index.html">security_framework</a>::<wbr><a href="index.html">secure_transport</a>::<wbr><a class="struct" href="#">SslContext</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/security_framework/secure_transport.rs.html#430-433">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub struct SslContext(<span class="comment">/* private fields */</span>);</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A Secure Transport SSL/TLS context object.</p>
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-SslContext" class="impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#480-895">source</a><a href="#impl-SslContext" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#484-489">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(side: <a class="struct" href="struct.SslProtocolSide.html" title="struct security_framework::secure_transport::SslProtocolSide">SslProtocolSide</a>, type_: <a class="struct" href="struct.SslConnectionType.html" title="struct security_framework::secure_transport::SslConnectionType">SslConnectionType</a>) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Creates a new <code>SslContext</code> for the specified side and type of SSL
connection.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_peer_domain_name" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#500-509">source</a><h4 class="code-header">pub fn <a href="#method.set_peer_domain_name" class="fn">set_peer_domain_name</a>(&amp;mut self, peer_name: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the fully qualified domain name of the peer.</p>
<p>This will be used on the client side of a session to validate the
common name field of the servers certificate. It has no effect if
called on a server-side <code>SslContext</code>.</p>
<p>It is <em>highly</em> recommended to call this method before starting the
handshake process.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.peer_domain_name" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#512-524">source</a><h4 class="code-header">pub fn <a href="#method.peer_domain_name" class="fn">peer_domain_name</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the peer domain name set by <code>set_peer_domain_name</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_certificate" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#533-543">source</a><h4 class="code-header">pub fn <a href="#method.set_certificate" class="fn">set_certificate</a>(
&amp;mut self,
identity: &amp;<a class="struct" href="../identity/struct.SecIdentity.html" title="struct security_framework::identity::SecIdentity">SecIdentity</a>,
certs: &amp;[<a class="struct" href="../certificate/struct.SecCertificate.html" title="struct security_framework::certificate::SecCertificate">SecCertificate</a>]
) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the certificate to be used by this side of the SSL session.</p>
<p>This must be called before the handshake for server-side connections,
and can be used on the client-side to specify a client certificate.</p>
<p>The <code>identity</code> corresponds to the leaf certificate and private
key, and the <code>certs</code> correspond to extra certificates in the chain.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_peer_id" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#552-554">source</a><h4 class="code-header">pub fn <a href="#method.set_peer_id" class="fn">set_peer_id</a>(&amp;mut self, peer_id: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>]) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the peer ID of this session.</p>
<p>A peer ID is an opaque sequence of bytes that will be used by Secure
Transport to identify the peer of an SSL session. If the peer ID of
this session matches that of a previously terminated session, the
previous session can be resumed without requiring a full handshake.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.peer_id" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#557-568">source</a><h4 class="code-header">pub fn <a href="#method.peer_id" class="fn">peer_id</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;[<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>]&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns the peer ID of this session.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.supported_ciphers" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#571-583">source</a><h4 class="code-header">pub fn <a href="#method.supported_ciphers" class="fn">supported_ciphers</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../cipher_suite/struct.CipherSuite.html" title="struct security_framework::cipher_suite::CipherSuite">CipherSuite</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns the list of ciphers that are supported by Secure Transport.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.enabled_ciphers" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#587-599">source</a><h4 class="code-header">pub fn <a href="#method.enabled_ciphers" class="fn">enabled_ciphers</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../cipher_suite/struct.CipherSuite.html" title="struct security_framework::cipher_suite::CipherSuite">CipherSuite</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns the list of ciphers that are eligible to be used for
negotiation.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_enabled_ciphers" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#602-611">source</a><h4 class="code-header">pub fn <a href="#method.set_enabled_ciphers" class="fn">set_enabled_ciphers</a>(&amp;mut self, ciphers: &amp;[<a class="struct" href="../cipher_suite/struct.CipherSuite.html" title="struct security_framework::cipher_suite::CipherSuite">CipherSuite</a>]) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the list of ciphers that are eligible to be used for negotiation.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.negotiated_cipher" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#615-621">source</a><h4 class="code-header">pub fn <a href="#method.negotiated_cipher" class="fn">negotiated_cipher</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="struct" href="../cipher_suite/struct.CipherSuite.html" title="struct security_framework::cipher_suite::CipherSuite">CipherSuite</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the cipher being used by the session.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_client_side_authenticate" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#627-629">source</a><h4 class="code-header">pub fn <a href="#method.set_client_side_authenticate" class="fn">set_client_side_authenticate</a>(
&amp;mut self,
auth: <a class="struct" href="struct.SslAuthenticate.html" title="struct security_framework::secure_transport::SslAuthenticate">SslAuthenticate</a>
) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the requirements for client certificates.</p>
<p>Should only be called on server-side sessions.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.client_certificate_state" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#633-640">source</a><h4 class="code-header">pub fn <a href="#method.client_certificate_state" class="fn">client_certificate_state</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="struct" href="struct.SslClientCertificateState.html" title="struct security_framework::secure_transport::SslClientCertificateState">SslClientCertificateState</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the state of client certificate processing.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.peer_trust2" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#646-662">source</a><h4 class="code-header">pub fn <a href="#method.peer_trust2" class="fn">peer_trust2</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../trust/struct.SecTrust.html" title="struct security_framework::trust::SecTrust">SecTrust</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns the <code>SecTrust</code> object corresponding to the peer.</p>
<p>This can be used in conjunction with <code>set_break_on_server_auth</code> to
validate certificates which do not have roots in the default set.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.state" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#666-672">source</a><h4 class="code-header">pub fn <a href="#method.state" class="fn">state</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="struct" href="struct.SessionState.html" title="struct security_framework::secure_transport::SessionState">SessionState</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the state of the session.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.negotiated_protocol_version" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#676-682">source</a><h4 class="code-header">pub fn <a href="#method.negotiated_protocol_version" class="fn">negotiated_protocol_version</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="struct" href="struct.SslProtocol.html" title="struct security_framework::secure_transport::SslProtocol">SslProtocol</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the protocol version being used by the session.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.protocol_version_max" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#686-692">source</a><h4 class="code-header">pub fn <a href="#method.protocol_version_max" class="fn">protocol_version_max</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="struct" href="struct.SslProtocol.html" title="struct security_framework::secure_transport::SslProtocol">SslProtocol</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the maximum protocol version allowed by the session.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_protocol_version_max" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#696-698">source</a><h4 class="code-header">pub fn <a href="#method.set_protocol_version_max" class="fn">set_protocol_version_max</a>(
&amp;mut self,
max_version: <a class="struct" href="struct.SslProtocol.html" title="struct security_framework::secure_transport::SslProtocol">SslProtocol</a>
) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the maximum protocol version allowed by the session.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.protocol_version_min" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#702-708">source</a><h4 class="code-header">pub fn <a href="#method.protocol_version_min" class="fn">protocol_version_min</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="struct" href="struct.SslProtocol.html" title="struct security_framework::secure_transport::SslProtocol">SslProtocol</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the minimum protocol version allowed by the session.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_protocol_version_min" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#712-714">source</a><h4 class="code-header">pub fn <a href="#method.set_protocol_version_min" class="fn">set_protocol_version_min</a>(
&amp;mut self,
min_version: <a class="struct" href="struct.SslProtocol.html" title="struct security_framework::secure_transport::SslProtocol">SslProtocol</a>
) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Sets the minimum protocol version allowed by the session.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_protocol_version_enabled" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#808-820">source</a><h4 class="code-header">pub fn <a href="#method.set_protocol_version_enabled" class="fn">set_protocol_version_enabled</a>(
&amp;mut self,
protocol: <a class="struct" href="struct.SslProtocol.html" title="struct security_framework::secure_transport::SslProtocol">SslProtocol</a>,
enabled: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>
) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>&gt;</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: use <code>set_protocol_version_max</code></span></div></span></summary><div class="docblock"><p>Sets whether a protocol is enabled or not.</p>
<h5 id="note"><a href="#note">Note</a></h5>
<p>On OSX this is a deprecated API in favor of <code>set_protocol_version_max</code> and
<code>set_protocol_version_min</code>, although if youre working with OSX 10.8 or before you may have
to use this API instead.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.buffered_read_size" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#825-831">source</a><h4 class="code-header">pub fn <a href="#method.buffered_read_size" class="fn">buffered_read_size</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the number of bytes which can be read without triggering a
<code>read</code> call in the underlying stream.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_break_on_server_auth" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#833-855">source</a><h4 class="code-header">pub fn <a href="#method.set_break_on_server_auth" class="fn">set_break_on_server_auth</a>(&amp;mut self, value: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>If enabled, the handshake process will pause and return instead of
automatically validating a servers certificate.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.break_on_server_auth" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#833-855">source</a><h4 class="code-header">pub fn <a href="#method.break_on_server_auth" class="fn">break_on_server_auth</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>&gt;</h4></section></summary><div class="docblock"><p>If enabled, the handshake process will pause and return instead of
automatically validating a servers certificate.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_break_on_cert_requested" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#833-855">source</a><h4 class="code-header">pub fn <a href="#method.set_break_on_cert_requested" class="fn">set_break_on_cert_requested</a>(&amp;mut self, value: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>If enabled, the handshake process will pause and return after
the server requests a certificate from the client.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.break_on_cert_requested" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#833-855">source</a><h4 class="code-header">pub fn <a href="#method.break_on_cert_requested" class="fn">break_on_cert_requested</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>&gt;</h4></section></summary><div class="docblock"><p>If enabled, the handshake process will pause and return after
the server requests a certificate from the client.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_break_on_client_auth" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#833-855">source</a><h4 class="code-header">pub fn <a href="#method.set_break_on_client_auth" class="fn">set_break_on_client_auth</a>(&amp;mut self, value: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>If enabled, the handshake process will pause and return instead of
automatically validating a clients certificate.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.break_on_client_auth" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#833-855">source</a><h4 class="code-header">pub fn <a href="#method.break_on_client_auth" class="fn">break_on_client_auth</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>&gt;</h4></section></summary><div class="docblock"><p>If enabled, the handshake process will pause and return instead of
automatically validating a clients certificate.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_false_start" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#833-855">source</a><h4 class="code-header">pub fn <a href="#method.set_false_start" class="fn">set_false_start</a>(&amp;mut self, value: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>If enabled, TLS false start will be performed if an appropriate
cipher suite is negotiated.</p>
<p>Requires the <code>OSX_10_9</code> (or greater) feature.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.false_start" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#833-855">source</a><h4 class="code-header">pub fn <a href="#method.false_start" class="fn">false_start</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>&gt;</h4></section></summary><div class="docblock"><p>If enabled, TLS false start will be performed if an appropriate
cipher suite is negotiated.</p>
<p>Requires the <code>OSX_10_9</code> (or greater) feature.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_send_one_byte_record" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#833-855">source</a><h4 class="code-header">pub fn <a href="#method.set_send_one_byte_record" class="fn">set_send_one_byte_record</a>(&amp;mut self, value: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>If enabled, 1/n-1 record splitting will be enabled for TLS 1.0
connections using block ciphers to mitigate the BEAST attack.</p>
<p>Requires the <code>OSX_10_9</code> (or greater) feature.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.send_one_byte_record" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#833-855">source</a><h4 class="code-header">pub fn <a href="#method.send_one_byte_record" class="fn">send_one_byte_record</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a>&gt;</h4></section></summary><div class="docblock"><p>If enabled, 1/n-1 record splitting will be enabled for TLS 1.0
connections using block ciphers to mitigate the BEAST attack.</p>
<p>Requires the <code>OSX_10_9</code> (or greater) feature.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.handshake" class="method"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#887-894">source</a><h4 class="code-header">pub fn <a href="#method.handshake" class="fn">handshake</a>&lt;S&gt;(self, stream: S) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.SslStream.html" title="struct security_framework::secure_transport::SslStream">SslStream</a>&lt;S&gt;, <a class="enum" href="enum.HandshakeError.html" title="enum security_framework::secure_transport::HandshakeError">HandshakeError</a>&lt;S&gt;&gt;<div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/1.76.0/std/io/trait.Read.html" title="trait std::io::Read">Read</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a>,</div></h4></section></summary><div class="docblock"><p>Performs the SSL/TLS handshake.</p>
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-SslContext" class="impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#impl-Clone-for-SslContext" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.76.0/src/core/clone.rs.html#169">source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;Self</a>)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-SslContext" class="impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#437-446">source</a><a href="#impl-Debug-for-SslContext" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#439-445">source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, fmt: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.76.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Drop-for-SslContext" class="impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#430-433">source</a><a href="#impl-Drop-for-SslContext" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/drop/trait.Drop.html" title="trait core::ops::drop::Drop">Drop</a> for <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.drop" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#430-433">source</a><a href="#method.drop" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/ops/drop/trait.Drop.html#tymethod.drop" class="fn">drop</a>(&amp;mut self)</h4></section></summary><div class='docblock'>Executes the destructor for this type. <a href="https://doc.rust-lang.org/1.76.0/core/ops/drop/trait.Drop.html#tymethod.drop">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-SslContext" class="impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#impl-PartialEq-for-SslContext" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.76.0/src/core/cmp.rs.html#242">source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;Rhs</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>This method tests for <code>!=</code>. The default implementation is almost always
sufficient, and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-SslContextExt-for-SslContext" class="impl"><a class="src rightside" href="../../src/security_framework/os/macos/secure_transport.rs.html#115-192">source</a><a href="#impl-SslContextExt-for-SslContext" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../os/macos/secure_transport/trait.SslContextExt.html" title="trait security_framework::os::macos::secure_transport::SslContextExt">SslContextExt</a> for <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.diffie_hellman_params" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/os/macos/secure_transport.rs.html#116-131">source</a><a href="#method.diffie_hellman_params" class="anchor">§</a><h4 class="code-header">fn <a href="../os/macos/secure_transport/trait.SslContextExt.html#tymethod.diffie_hellman_params" class="fn">diffie_hellman_params</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;[<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>]&gt;&gt;</h4></section></summary><div class='docblock'>Returns the DER encoded data specifying the parameters used for
Diffie-Hellman key exchange.</div></details><details class="toggle method-toggle" open><summary><section id="method.set_diffie_hellman_params" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/os/macos/secure_transport.rs.html#133-141">source</a><a href="#method.set_diffie_hellman_params" class="anchor">§</a><h4 class="code-header">fn <a href="../os/macos/secure_transport/trait.SslContextExt.html#tymethod.set_diffie_hellman_params" class="fn">set_diffie_hellman_params</a>(&amp;mut self, dh_params: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>]) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class='docblock'>Sets the parameters used for Diffie-Hellman key exchange, in the
DER format used by OpenSSL. <a href="../os/macos/secure_transport/trait.SslContextExt.html#tymethod.set_diffie_hellman_params">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.certificate_authorities" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/os/macos/secure_transport.rs.html#143-160">source</a><a href="#method.certificate_authorities" class="anchor">§</a><h4 class="code-header">fn <a href="../os/macos/secure_transport/trait.SslContextExt.html#tymethod.certificate_authorities" class="fn">certificate_authorities</a>(&amp;self) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;<a class="struct" href="../certificate/struct.SecCertificate.html" title="struct security_framework::certificate::SecCertificate">SecCertificate</a>&gt;&gt;&gt;</h4></section></summary><div class='docblock'>Returns the certificate authorities used to validate client
certificates.</div></details><details class="toggle method-toggle" open><summary><section id="method.set_certificate_authorities" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/os/macos/secure_transport.rs.html#162-171">source</a><a href="#method.set_certificate_authorities" class="anchor">§</a><h4 class="code-header">fn <a href="../os/macos/secure_transport/trait.SslContextExt.html#tymethod.set_certificate_authorities" class="fn">set_certificate_authorities</a>(
&amp;mut self,
certs: &amp;[<a class="struct" href="../certificate/struct.SecCertificate.html" title="struct security_framework::certificate::SecCertificate">SecCertificate</a>]
) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class='docblock'>Sets the certificate authorities used to validate client certificates,
replacing any that are already present.</div></details><details class="toggle method-toggle" open><summary><section id="method.add_certificate_authorities" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/os/macos/secure_transport.rs.html#173-182">source</a><a href="#method.add_certificate_authorities" class="anchor">§</a><h4 class="code-header">fn <a href="../os/macos/secure_transport/trait.SslContextExt.html#tymethod.add_certificate_authorities" class="fn">add_certificate_authorities</a>(
&amp;mut self,
certs: &amp;[<a class="struct" href="../certificate/struct.SecCertificate.html" title="struct security_framework::certificate::SecCertificate">SecCertificate</a>]
) -&gt; <a class="type" href="../base/type.Result.html" title="type security_framework::base::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class='docblock'>Adds certificate authorities used to validate client certificates.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-TCFType-for-SslContext" class="impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#impl-TCFType-for-SslContext" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../core_foundation/base/trait.TCFType.html" title="trait core_foundation::base::TCFType">TCFType</a> for <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Ref" class="associatedtype trait-impl"><a href="#associatedtype.Ref" class="anchor">§</a><h4 class="code-header">type <a href="../../core_foundation/base/trait.TCFType.html#associatedtype.Ref" class="associatedtype">Ref</a> = <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.pointer.html">*mut </a><a class="enum" href="../../security_framework_sys/secure_transport/enum.SSLContext.html" title="enum security_framework_sys::secure_transport::SSLContext">SSLContext</a></h4></section></summary><div class='docblock'>The reference type wrapped inside this type.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_concrete_TypeRef" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#method.as_concrete_TypeRef" class="anchor">§</a><h4 class="code-header">fn <a href="../../core_foundation/base/trait.TCFType.html#tymethod.as_concrete_TypeRef" class="fn">as_concrete_TypeRef</a>(&amp;self) -&gt; <a class="type" href="../../security_framework_sys/secure_transport/type.SSLContextRef.html" title="type security_framework_sys::secure_transport::SSLContextRef">SSLContextRef</a></h4></section></summary><div class='docblock'>Returns the object as its concrete TypeRef.</div></details><details class="toggle method-toggle" open><summary><section id="method.wrap_under_get_rule" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#method.wrap_under_get_rule" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../../core_foundation/base/trait.TCFType.html#tymethod.wrap_under_get_rule" class="fn">wrap_under_get_rule</a>(reference: <a class="type" href="../../security_framework_sys/secure_transport/type.SSLContextRef.html" title="type security_framework_sys::secure_transport::SSLContextRef">SSLContextRef</a>) -&gt; Self</h4></section></summary><div class='docblock'>Returns an instance of the object, wrapping the underlying <code>CFTypeRef</code> subclass. Use this
when following Core Foundations “Get Rule”. The reference count <em>is</em> bumped.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_CFTypeRef" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#method.as_CFTypeRef" class="anchor">§</a><h4 class="code-header">fn <a href="../../core_foundation/base/trait.TCFType.html#tymethod.as_CFTypeRef" class="fn">as_CFTypeRef</a>(&amp;self) -&gt; <a class="type" href="../../core_foundation_sys/base/type.CFTypeRef.html" title="type core_foundation_sys::base::CFTypeRef">CFTypeRef</a></h4></section></summary><div class='docblock'>Returns the object as a raw <code>CFTypeRef</code>. The reference count is not adjusted.</div></details><details class="toggle method-toggle" open><summary><section id="method.wrap_under_create_rule" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#method.wrap_under_create_rule" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../../core_foundation/base/trait.TCFType.html#tymethod.wrap_under_create_rule" class="fn">wrap_under_create_rule</a>(reference: <a class="type" href="../../security_framework_sys/secure_transport/type.SSLContextRef.html" title="type security_framework_sys::secure_transport::SSLContextRef">SSLContextRef</a>) -&gt; Self</h4></section></summary><div class='docblock'>Returns an instance of the object, wrapping the underlying <code>CFTypeRef</code> subclass. Use this
when following Core Foundations “Create Rule”. The reference count is <em>not</em> bumped.</div></details><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="../../core_foundation/base/trait.TCFType.html#tymethod.type_id" class="fn">type_id</a>() -&gt; <a class="type" href="../../core_foundation_sys/base/type.CFTypeID.html" title="type core_foundation_sys::base::CFTypeID">CFTypeID</a></h4></section></summary><div class='docblock'>Returns the type ID for this class.</div></details><details class="toggle method-toggle" open><summary><section id="method.as_CFType" class="method trait-impl"><a class="src rightside" href="../../src/core_foundation/base.rs.html#180">source</a><a href="#method.as_CFType" class="anchor">§</a><h4 class="code-header">fn <a href="../../core_foundation/base/trait.TCFType.html#method.as_CFType" class="fn">as_CFType</a>(&amp;self) -&gt; <a class="struct" href="../../core_foundation/base/struct.CFType.html" title="struct core_foundation::base::CFType">CFType</a></h4></section></summary><div class='docblock'>Returns the object as a wrapped <code>CFType</code>. The reference count is incremented by one.</div></details><details class="toggle method-toggle" open><summary><section id="method.into_CFType" class="method trait-impl"><a class="src rightside" href="../../src/core_foundation/base.rs.html#189-191">source</a><a href="#method.into_CFType" class="anchor">§</a><h4 class="code-header">fn <a href="../../core_foundation/base/trait.TCFType.html#method.into_CFType" class="fn">into_CFType</a>(self) -&gt; <a class="struct" href="../../core_foundation/base/struct.CFType.html" title="struct core_foundation::base::CFType">CFType</a><div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Returns the object as a wrapped <code>CFType</code>. Consumes self and avoids changing the reference
count.</div></details><details class="toggle method-toggle" open><summary><section id="method.retain_count" class="method trait-impl"><a class="src rightside" href="../../src/core_foundation/base.rs.html#208">source</a><a href="#method.retain_count" class="anchor">§</a><h4 class="code-header">fn <a href="../../core_foundation/base/trait.TCFType.html#method.retain_count" class="fn">retain_count</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.isize.html">isize</a></h4></section></summary><div class='docblock'>Returns the reference count of the object. It is unwise to do anything other than test
whether the return value of this method is greater than zero.</div></details><details class="toggle method-toggle" open><summary><section id="method.type_of" class="method trait-impl"><a class="src rightside" href="../../src/core_foundation/base.rs.html#216">source</a><a href="#method.type_of" class="anchor">§</a><h4 class="code-header">fn <a href="../../core_foundation/base/trait.TCFType.html#method.type_of" class="fn">type_of</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Returns the type ID of this object.</div></details><details class="toggle method-toggle" open><summary><section id="method.show" class="method trait-impl"><a class="src rightside" href="../../src/core_foundation/base.rs.html#223">source</a><a href="#method.show" class="anchor">§</a><h4 class="code-header">fn <a href="../../core_foundation/base/trait.TCFType.html#method.show" class="fn">show</a>(&amp;self)</h4></section></summary><div class='docblock'>Writes a debugging version of this object on standard error.</div></details><details class="toggle method-toggle" open><summary><section id="method.instance_of" class="method trait-impl"><a class="src rightside" href="../../src/core_foundation/base.rs.html#231">source</a><a href="#method.instance_of" class="anchor">§</a><h4 class="code-header">fn <a href="../../core_foundation/base/trait.TCFType.html#method.instance_of" class="fn">instance_of</a>&lt;OtherCFType&gt;(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a><div class="where">where
OtherCFType: <a class="trait" href="../../core_foundation/base/trait.TCFType.html" title="trait core_foundation::base::TCFType">TCFType</a>,</div></h4></section></summary><div class='docblock'>Returns true if this value is an instance of another type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ToVoid%3CSslContext%3E-for-%26SslContext" class="impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#impl-ToVoid%3CSslContext%3E-for-%26SslContext" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="../../core_foundation/base/trait.ToVoid.html" title="trait core_foundation::base::ToVoid">ToVoid</a>&lt;<a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a>&gt; for &amp;'a <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h3></section></summary><div class="impl-items"><section id="method.to_void-2" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#method.to_void-2" class="anchor">§</a><h4 class="code-header">fn <a href="../../core_foundation/base/trait.ToVoid.html#tymethod.to_void" class="fn">to_void</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.pointer.html">*const </a><a class="type" href="https://doc.rust-lang.org/1.76.0/std/os/raw/type.c_void.html" title="type std::os::raw::c_void">c_void</a></h4></section></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ToVoid%3CSslContext%3E-for-*mut+SSLContext" class="impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#impl-ToVoid%3CSslContext%3E-for-*mut+SSLContext" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../core_foundation/base/trait.ToVoid.html" title="trait core_foundation::base::ToVoid">ToVoid</a>&lt;<a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a>&gt; for <a class="type" href="../../security_framework_sys/secure_transport/type.SSLContextRef.html" title="type security_framework_sys::secure_transport::SSLContextRef">SSLContextRef</a></h3></section></summary><div class="impl-items"><section id="method.to_void-1" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#method.to_void-1" class="anchor">§</a><h4 class="code-header">fn <a href="../../core_foundation/base/trait.ToVoid.html#tymethod.to_void" class="fn">to_void</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.pointer.html">*const </a><a class="type" href="https://doc.rust-lang.org/1.76.0/std/os/raw/type.c_void.html" title="type std::os::raw::c_void">c_void</a></h4></section></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ToVoid%3CSslContext%3E-for-SslContext" class="impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#impl-ToVoid%3CSslContext%3E-for-SslContext" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../core_foundation/base/trait.ToVoid.html" title="trait core_foundation::base::ToVoid">ToVoid</a>&lt;<a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a>&gt; for <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h3></section></summary><div class="impl-items"><section id="method.to_void" class="method trait-impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#method.to_void" class="anchor">§</a><h4 class="code-header">fn <a href="../../core_foundation/base/trait.ToVoid.html#tymethod.to_void" class="fn">to_void</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.pointer.html">*const </a><a class="type" href="https://doc.rust-lang.org/1.76.0/std/os/raw/type.c_void.html" title="type std::os::raw::c_void">c_void</a></h4></section></div></details><section id="impl-ConcreteCFType-for-SslContext" class="impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#impl-ConcreteCFType-for-SslContext" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../../core_foundation/trait.ConcreteCFType.html" title="trait core_foundation::ConcreteCFType">ConcreteCFType</a> for <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h3></section><section id="impl-Eq-for-SslContext" class="impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#435">source</a><a href="#impl-Eq-for-SslContext" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h3></section><section id="impl-Send-for-SslContext" class="impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#449">source</a><a href="#impl-Send-for-SslContext" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h3></section><section id="impl-Sync-for-SslContext" class="impl"><a class="src rightside" href="../../src/security_framework/secure_transport.rs.html#448">source</a><a href="#impl-Sync-for-SslContext" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-SslContext" class="impl"><a href="#impl-RefUnwindSafe-for-SslContext" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h3></section><section id="impl-Unpin-for-SslContext" class="impl"><a href="#impl-Unpin-for-SslContext" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h3></section><section id="impl-UnwindSafe-for-SslContext" class="impl"><a href="#impl-UnwindSafe-for-SslContext" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/any.rs.html#140">source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id-1" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/any.rs.html#141">source</a><a href="#method.type_id-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.76.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#208">source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#210">source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#216">source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/borrow.rs.html#217">source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#763">source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#766">source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromMutVoid-for-T" class="impl"><a class="src rightside" href="../../src/core_foundation/base.rs.html#338">source</a><a href="#impl-FromMutVoid-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../../core_foundation/base/trait.FromMutVoid.html" title="trait core_foundation::base::FromMutVoid">FromMutVoid</a> for T<div class="where">where
T: <a class="trait" href="../../core_foundation/base/trait.TCFType.html" title="trait core_foundation::base::TCFType">TCFType</a>,</div></h3></section></summary><div class="impl-items"><section id="method.from_mut_void" class="method trait-impl"><a class="src rightside" href="../../src/core_foundation/base.rs.html#339">source</a><a href="#method.from_mut_void" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../../core_foundation/base/trait.FromMutVoid.html#tymethod.from_mut_void" class="fn">from_mut_void</a>&lt;'a&gt;(x: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.pointer.html">*mut </a><a class="enum" href="https://doc.rust-lang.org/1.76.0/core/ffi/enum.c_void.html" title="enum core::ffi::c_void">c_void</a>) -&gt; <a class="struct" href="../../core_foundation/base/struct.ItemMutRef.html" title="struct core_foundation::base::ItemMutRef">ItemMutRef</a>&lt;'a, T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-FromVoid-for-T" class="impl"><a class="src rightside" href="../../src/core_foundation/base.rs.html#363">source</a><a href="#impl-FromVoid-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../../core_foundation/base/trait.FromVoid.html" title="trait core_foundation::base::FromVoid">FromVoid</a> for T<div class="where">where
T: <a class="trait" href="../../core_foundation/base/trait.TCFType.html" title="trait core_foundation::base::TCFType">TCFType</a>,</div></h3></section></summary><div class="impl-items"><section id="method.from_void" class="method trait-impl"><a class="src rightside" href="../../src/core_foundation/base.rs.html#364">source</a><a href="#method.from_void" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../../core_foundation/base/trait.FromVoid.html#tymethod.from_void" class="fn">from_void</a>&lt;'a&gt;(x: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.pointer.html">*const </a><a class="enum" href="https://doc.rust-lang.org/1.76.0/core/ffi/enum.c_void.html" title="enum core::ffi::c_void">c_void</a>) -&gt; <a class="struct" href="../../core_foundation/base/struct.ItemRef.html" title="struct core_foundation::base::ItemRef">ItemRef</a>&lt;'a, T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#747-749">source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#756">source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code><a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/alloc/borrow.rs.html#83-85">source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/alloc/borrow.rs.html#88">source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&amp;self) -&gt; T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/alloc/borrow.rs.html#92">source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.76.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#803-805">source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#810">source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#788-790">source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.76.0/src/core/convert/mod.rs.html#795">source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html>