mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-28 12:51:55 +01:00
121 lines
76 KiB
HTML
121 lines
76 KiB
HTML
<!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="API documentation for the Rust `SslContext` struct in crate `security_framework`."><meta name="keywords" content="rust, rustlang, rust-lang, SslContext"><title>security_framework::secure_transport::SslContext - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
|
||
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
|
||
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><a href='../../security_framework/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct SslContext</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.break_on_cert_requested">break_on_cert_requested</a><a href="#method.break_on_client_auth">break_on_client_auth</a><a href="#method.break_on_server_auth">break_on_server_auth</a><a href="#method.buffered_read_size">buffered_read_size</a><a href="#method.client_certificate_state">client_certificate_state</a><a href="#method.enabled_ciphers">enabled_ciphers</a><a href="#method.false_start">false_start</a><a href="#method.handshake">handshake</a><a href="#method.negotiated_cipher">negotiated_cipher</a><a href="#method.negotiated_protocol_version">negotiated_protocol_version</a><a href="#method.new">new</a><a href="#method.peer_domain_name">peer_domain_name</a><a href="#method.peer_id">peer_id</a><a href="#method.peer_trust2">peer_trust2</a><a href="#method.protocol_version_max">protocol_version_max</a><a href="#method.protocol_version_min">protocol_version_min</a><a href="#method.send_one_byte_record">send_one_byte_record</a><a href="#method.set_break_on_cert_requested">set_break_on_cert_requested</a><a href="#method.set_break_on_client_auth">set_break_on_client_auth</a><a href="#method.set_break_on_server_auth">set_break_on_server_auth</a><a href="#method.set_certificate">set_certificate</a><a href="#method.set_client_side_authenticate">set_client_side_authenticate</a><a href="#method.set_enabled_ciphers">set_enabled_ciphers</a><a href="#method.set_false_start">set_false_start</a><a href="#method.set_peer_domain_name">set_peer_domain_name</a><a href="#method.set_peer_id">set_peer_id</a><a href="#method.set_protocol_version_enabled">set_protocol_version_enabled</a><a href="#method.set_protocol_version_max">set_protocol_version_max</a><a href="#method.set_protocol_version_min">set_protocol_version_min</a><a href="#method.set_send_one_byte_record">set_send_one_byte_record</a><a href="#method.state">state</a><a href="#method.supported_ciphers">supported_ciphers</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-ConcreteCFType">ConcreteCFType</a><a href="#impl-Debug">Debug</a><a href="#impl-Drop">Drop</a><a href="#impl-Eq">Eq</a><a href="#impl-PartialEq%3CSslContext%3E">PartialEq<SslContext></a><a href="#impl-Send">Send</a><a href="#impl-SslContextExt">SslContextExt</a><a href="#impl-Sync">Sync</a><a href="#impl-TCFType">TCFType</a><a href="#impl-ToVoid%3CSslContext%3E">ToVoid<SslContext></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-RefUnwindSafe">RefUnwindSafe</a><a href="#impl-Unpin">Unpin</a><a href="#impl-UnwindSafe">UnwindSafe</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-FromMutVoid">FromMutVoid</a><a href="#impl-FromVoid">FromVoid</a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class="location"><a href="../index.html">security_framework</a>::<wbr><a href="index.html">secure_transport</a></p><div id="sidebar-vars" data-name="SslContext" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" class="help-button">?</button>
|
||
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../index.html">security_framework</a>::<wbr><a href="index.html">secure_transport</a>::<wbr><a class="struct" href="">SslContext</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#423-426" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct SslContext(_);</pre></div><div class="docblock"><p>A Secure Transport SSL/TLS context object.</p>
|
||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#473-894" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a>(side: <a class="struct" href="../../security_framework/secure_transport/struct.SslProtocolSide.html" title="struct security_framework::secure_transport::SslProtocolSide">SslProtocolSide</a>, type_: <a class="struct" href="../../security_framework/secure_transport/struct.SslConnectionType.html" title="struct security_framework::secure_transport::SslConnectionType">SslConnectionType</a>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><Self></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#477-482" title="goto source code">[src]</a></h4><div class="docblock"><p>Creates a new <code>SslContext</code> for the specified side and type of SSL
|
||
connection.</p>
|
||
</div><h4 id="method.set_peer_domain_name" class="method"><code>pub fn <a href="#method.set_peer_domain_name" class="fnname">set_peer_domain_name</a>(&mut self, peer_name: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#493-502" title="goto source code">[src]</a></h4><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 server's 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><h4 id="method.peer_domain_name" class="method"><code>pub fn <a href="#method.peer_domain_name" class="fnname">peer_domain_name</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#505-517" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the peer domain name set by <code>set_peer_domain_name</code>.</p>
|
||
</div><h4 id="method.set_certificate" class="method"><code>pub fn <a href="#method.set_certificate" class="fnname">set_certificate</a>(<br> &mut self, <br> identity: &<a class="struct" href="../../security_framework/identity/struct.SecIdentity.html" title="struct security_framework::identity::SecIdentity">SecIdentity</a>, <br> certs: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="struct" href="../../security_framework/certificate/struct.SecCertificate.html" title="struct security_framework::certificate::SecCertificate">SecCertificate</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#526-536" title="goto source code">[src]</a></h4><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><h4 id="method.set_peer_id" class="method"><code>pub fn <a href="#method.set_peer_id" class="fnname">set_peer_id</a>(&mut self, peer_id: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#545-553" title="goto source code">[src]</a></h4><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><h4 id="method.peer_id" class="method"><code>pub fn <a href="#method.peer_id" class="fnname">peer_id</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#556-567" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the peer ID of this session.</p>
|
||
</div><h4 id="method.supported_ciphers" class="method"><code>pub fn <a href="#method.supported_ciphers" class="fnname">supported_ciphers</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../security_framework/cipher_suite/struct.CipherSuite.html" title="struct security_framework::cipher_suite::CipherSuite">CipherSuite</a>>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#570-582" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the list of ciphers that are supported by Secure Transport.</p>
|
||
</div><h4 id="method.enabled_ciphers" class="method"><code>pub fn <a href="#method.enabled_ciphers" class="fnname">enabled_ciphers</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../security_framework/cipher_suite/struct.CipherSuite.html" title="struct security_framework::cipher_suite::CipherSuite">CipherSuite</a>>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#586-598" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the list of ciphers that are eligible to be used for
|
||
negotiation.</p>
|
||
</div><h4 id="method.set_enabled_ciphers" class="method"><code>pub fn <a href="#method.set_enabled_ciphers" class="fnname">set_enabled_ciphers</a>(&mut self, ciphers: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="struct" href="../../security_framework/cipher_suite/struct.CipherSuite.html" title="struct security_framework::cipher_suite::CipherSuite">CipherSuite</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#601-610" title="goto source code">[src]</a></h4><div class="docblock"><p>Sets the list of ciphers that are eligible to be used for negotiation.</p>
|
||
</div><h4 id="method.negotiated_cipher" class="method"><code>pub fn <a href="#method.negotiated_cipher" class="fnname">negotiated_cipher</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="struct" href="../../security_framework/cipher_suite/struct.CipherSuite.html" title="struct security_framework::cipher_suite::CipherSuite">CipherSuite</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#614-620" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the cipher being used by the session.</p>
|
||
</div><h4 id="method.set_client_side_authenticate" class="method"><code>pub fn <a href="#method.set_client_side_authenticate" class="fnname">set_client_side_authenticate</a>(<br> &mut self, <br> auth: <a class="struct" href="../../security_framework/secure_transport/struct.SslAuthenticate.html" title="struct security_framework::secure_transport::SslAuthenticate">SslAuthenticate</a><br>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#626-628" title="goto source code">[src]</a></h4><div class="docblock"><p>Sets the requirements for client certificates.</p>
|
||
<p>Should only be called on server-side sessions.</p>
|
||
</div><h4 id="method.client_certificate_state" class="method"><code>pub fn <a href="#method.client_certificate_state" class="fnname">client_certificate_state</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="struct" href="../../security_framework/secure_transport/struct.SslClientCertificateState.html" title="struct security_framework::secure_transport::SslClientCertificateState">SslClientCertificateState</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#632-639" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the state of client certificate processing.</p>
|
||
</div><h4 id="method.peer_trust2" class="method"><code>pub fn <a href="#method.peer_trust2" class="fnname">peer_trust2</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../security_framework/trust/struct.SecTrust.html" title="struct security_framework::trust::SecTrust">SecTrust</a>>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#645-661" title="goto source code">[src]</a></h4><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><h4 id="method.state" class="method"><code>pub fn <a href="#method.state" class="fnname">state</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="struct" href="../../security_framework/secure_transport/struct.SessionState.html" title="struct security_framework::secure_transport::SessionState">SessionState</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#665-671" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the state of the session.</p>
|
||
</div><h4 id="method.negotiated_protocol_version" class="method"><code>pub fn <a href="#method.negotiated_protocol_version" class="fnname">negotiated_protocol_version</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="struct" href="../../security_framework/secure_transport/struct.SslProtocol.html" title="struct security_framework::secure_transport::SslProtocol">SslProtocol</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#675-681" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the protocol version being used by the session.</p>
|
||
</div><h4 id="method.protocol_version_max" class="method"><code>pub fn <a href="#method.protocol_version_max" class="fnname">protocol_version_max</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="struct" href="../../security_framework/secure_transport/struct.SslProtocol.html" title="struct security_framework::secure_transport::SslProtocol">SslProtocol</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#685-691" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the maximum protocol version allowed by the session.</p>
|
||
</div><h4 id="method.set_protocol_version_max" class="method"><code>pub fn <a href="#method.set_protocol_version_max" class="fnname">set_protocol_version_max</a>(<br> &mut self, <br> max_version: <a class="struct" href="../../security_framework/secure_transport/struct.SslProtocol.html" title="struct security_framework::secure_transport::SslProtocol">SslProtocol</a><br>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#695-697" title="goto source code">[src]</a></h4><div class="docblock"><p>Sets the maximum protocol version allowed by the session.</p>
|
||
</div><h4 id="method.protocol_version_min" class="method"><code>pub fn <a href="#method.protocol_version_min" class="fnname">protocol_version_min</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="struct" href="../../security_framework/secure_transport/struct.SslProtocol.html" title="struct security_framework::secure_transport::SslProtocol">SslProtocol</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#701-707" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the minimum protocol version allowed by the session.</p>
|
||
</div><h4 id="method.set_protocol_version_min" class="method"><code>pub fn <a href="#method.set_protocol_version_min" class="fnname">set_protocol_version_min</a>(<br> &mut self, <br> min_version: <a class="struct" href="../../security_framework/secure_transport/struct.SslProtocol.html" title="struct security_framework::secure_transport::SslProtocol">SslProtocol</a><br>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#711-713" title="goto source code">[src]</a></h4><div class="docblock"><p>Sets the minimum protocol version allowed by the session.</p>
|
||
</div><h4 id="method.set_protocol_version_enabled" class="method"><code>pub fn <a href="#method.set_protocol_version_enabled" class="fnname">set_protocol_version_enabled</a>(<br> &mut self, <br> protocol: <a class="struct" href="../../security_framework/secure_transport/struct.SslProtocol.html" title="struct security_framework::secure_transport::SslProtocol">SslProtocol</a>, <br> enabled: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><br>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#807-819" title="goto source code">[src]</a></h4><div class="item-info"><div class="stab deprecated"><span class="emoji">👎</span> Deprecated: <p>use <code>set_protocol_version_max</code></p>
|
||
</div></div><div class="docblock"><p>Sets whether a protocol is enabled or not.</p>
|
||
<h1 id="note" class="section-header"><a href="#note">Note</a></h1>
|
||
<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 you're working with OSX 10.8 or before you may have
|
||
to use this API instead.</p>
|
||
</div><h4 id="method.buffered_read_size" class="method"><code>pub fn <a href="#method.buffered_read_size" class="fnname">buffered_read_size</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#824-830" title="goto source code">[src]</a></h4><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><h4 id="method.set_break_on_server_auth" class="method"><code>pub fn <a href="#method.set_break_on_server_auth" class="fnname">set_break_on_server_auth</a>(&mut self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#832-854" title="goto source code">[src]</a></h4><div class="docblock"><p>If enabled, the handshake process will pause and return instead of
|
||
automatically validating a server's certificate.</p>
|
||
</div><h4 id="method.break_on_server_auth" class="method"><code>pub fn <a href="#method.break_on_server_auth" class="fnname">break_on_server_auth</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#832-854" title="goto source code">[src]</a></h4><div class="docblock"><p>If enabled, the handshake process will pause and return instead of
|
||
automatically validating a server's certificate.</p>
|
||
</div><h4 id="method.set_break_on_cert_requested" class="method"><code>pub fn <a href="#method.set_break_on_cert_requested" class="fnname">set_break_on_cert_requested</a>(&mut self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#832-854" title="goto source code">[src]</a></h4><div class="docblock"><p>If enabled, the handshake process will pause and return after
|
||
the server requests a certificate from the client.</p>
|
||
</div><h4 id="method.break_on_cert_requested" class="method"><code>pub fn <a href="#method.break_on_cert_requested" class="fnname">break_on_cert_requested</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#832-854" title="goto source code">[src]</a></h4><div class="docblock"><p>If enabled, the handshake process will pause and return after
|
||
the server requests a certificate from the client.</p>
|
||
</div><h4 id="method.set_break_on_client_auth" class="method"><code>pub fn <a href="#method.set_break_on_client_auth" class="fnname">set_break_on_client_auth</a>(&mut self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#832-854" title="goto source code">[src]</a></h4><div class="docblock"><p>If enabled, the handshake process will pause and return instead of
|
||
automatically validating a client's certificate.</p>
|
||
</div><h4 id="method.break_on_client_auth" class="method"><code>pub fn <a href="#method.break_on_client_auth" class="fnname">break_on_client_auth</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#832-854" title="goto source code">[src]</a></h4><div class="docblock"><p>If enabled, the handshake process will pause and return instead of
|
||
automatically validating a client's certificate.</p>
|
||
</div><h4 id="method.set_false_start" class="method"><code>pub fn <a href="#method.set_false_start" class="fnname">set_false_start</a>(&mut self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#832-854" title="goto source code">[src]</a></h4><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><h4 id="method.false_start" class="method"><code>pub fn <a href="#method.false_start" class="fnname">false_start</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#832-854" title="goto source code">[src]</a></h4><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><h4 id="method.set_send_one_byte_record" class="method"><code>pub fn <a href="#method.set_send_one_byte_record" class="fnname">set_send_one_byte_record</a>(&mut self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#832-854" title="goto source code">[src]</a></h4><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><h4 id="method.send_one_byte_record" class="method"><code>pub fn <a href="#method.send_one_byte_record" class="fnname">send_one_byte_record</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#832-854" title="goto source code">[src]</a></h4><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><h4 id="method.handshake" class="method"><code>pub fn <a href="#method.handshake" class="fnname">handshake</a><S>(self, stream: S) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../../security_framework/secure_transport/struct.SslStream.html" title="struct security_framework::secure_transport::SslStream">SslStream</a><S>, <a class="enum" href="../../security_framework/secure_transport/enum.HandshakeError.html" title="enum security_framework::secure_transport::HandshakeError">HandshakeError</a><S>> <span class="where fmt-newline">where<br> S: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#886-893" title="goto source code">[src]</a></h4><div class="docblock"><p>Performs the SSL/TLS handshake.</p>
|
||
</div></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Clone" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#428" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#428" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||
</div><h4 id="method.clone_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||
</div></div><h3 id="impl-ConcreteCFType" class="impl"><code class="in-band">impl <a class="trait" href="../../core_foundation/trait.ConcreteCFType.html" title="trait core_foundation::ConcreteCFType">ConcreteCFType</a> for <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a href="#impl-ConcreteCFType" class="anchor"></a><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#428" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#430-439" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, fmt: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#432-438" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||
</div></div><h3 id="impl-Drop" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html" title="trait core::ops::drop::Drop">Drop</a> for <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a href="#impl-Drop" class="anchor"></a><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#423-426" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.drop" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html#tymethod.drop" class="fnname">drop</a>(&mut self)</code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#423-426" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Executes the destructor for this type. <a href="https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html#tymethod.drop">Read more</a></p>
|
||
</div></div><h3 id="impl-Eq" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a href="#impl-Eq" class="anchor"></a><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#428" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-PartialEq%3CSslContext%3E" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a>> for <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a href="#impl-PartialEq%3CSslContext%3E" class="anchor"></a><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#428" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&self, other: &<a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#428" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||
</div><h4 id="method.ne" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#213" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
|
||
</div></div><h3 id="impl-Send" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a href="#impl-Send" class="anchor"></a><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#442" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-SslContextExt" class="impl"><code class="in-band">impl <a class="trait" href="../../security_framework/os/macos/secure_transport/trait.SslContextExt.html" title="trait security_framework::os::macos::secure_transport::SslContextExt">SslContextExt</a> for <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a href="#impl-SslContextExt" class="anchor"></a><a class="srclink" href="../../src/security_framework/os/macos/secure_transport.rs.html#115-192" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.diffie_hellman_params" class="method hidden"><code>fn <a href="../../security_framework/os/macos/secure_transport/trait.SslContextExt.html#tymethod.diffie_hellman_params" class="fnname">diffie_hellman_params</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>>></code><a class="srclink" href="../../src/security_framework/os/macos/secure_transport.rs.html#116-131" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the DER encoded data specifying the parameters used for
|
||
Diffie-Hellman key exchange. <a href="../../security_framework/os/macos/secure_transport/trait.SslContextExt.html#tymethod.diffie_hellman_params">Read more</a></p>
|
||
</div><h4 id="method.set_diffie_hellman_params" class="method hidden"><code>fn <a href="../../security_framework/os/macos/secure_transport/trait.SslContextExt.html#tymethod.set_diffie_hellman_params" class="fnname">set_diffie_hellman_params</a>(&mut self, dh_params: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class="srclink" href="../../src/security_framework/os/macos/secure_transport.rs.html#133-141" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Sets the parameters used for Diffie-Hellman key exchange, in the
|
||
DER format used by OpenSSL. <a href="../../security_framework/os/macos/secure_transport/trait.SslContextExt.html#tymethod.set_diffie_hellman_params">Read more</a></p>
|
||
</div><h4 id="method.certificate_authorities" class="method hidden"><code>fn <a href="../../security_framework/os/macos/secure_transport/trait.SslContextExt.html#tymethod.certificate_authorities" class="fnname">certificate_authorities</a>(&self) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><<a class="struct" href="../../security_framework/certificate/struct.SecCertificate.html" title="struct security_framework::certificate::SecCertificate">SecCertificate</a>>>></code><a class="srclink" href="../../src/security_framework/os/macos/secure_transport.rs.html#143-160" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the certificate authorities used to validate client
|
||
certificates. <a href="../../security_framework/os/macos/secure_transport/trait.SslContextExt.html#tymethod.certificate_authorities">Read more</a></p>
|
||
</div><h4 id="method.set_certificate_authorities" class="method hidden"><code>fn <a href="../../security_framework/os/macos/secure_transport/trait.SslContextExt.html#tymethod.set_certificate_authorities" class="fnname">set_certificate_authorities</a>(<br> &mut self, <br> certs: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="struct" href="../../security_framework/certificate/struct.SecCertificate.html" title="struct security_framework::certificate::SecCertificate">SecCertificate</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class="srclink" href="../../src/security_framework/os/macos/secure_transport.rs.html#162-171" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Sets the certificate authorities used to validate client certificates,
|
||
replacing any that are already present. <a href="../../security_framework/os/macos/secure_transport/trait.SslContextExt.html#tymethod.set_certificate_authorities">Read more</a></p>
|
||
</div><h4 id="method.add_certificate_authorities" class="method hidden"><code>fn <a href="../../security_framework/os/macos/secure_transport/trait.SslContextExt.html#tymethod.add_certificate_authorities" class="fnname">add_certificate_authorities</a>(<br> &mut self, <br> certs: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="struct" href="../../security_framework/certificate/struct.SecCertificate.html" title="struct security_framework::certificate::SecCertificate">SecCertificate</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a><br>) -> <a class="type" href="../../security_framework/base/type.Result.html" title="type security_framework::base::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><a class="srclink" href="../../src/security_framework/os/macos/secure_transport.rs.html#173-182" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Adds certificate authorities used to validate client certificates.</p>
|
||
</div></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a href="#impl-Sync" class="anchor"></a><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#441" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-TCFType" class="impl"><code class="in-band">impl <a class="trait" href="../../core_foundation/base/trait.TCFType.html" title="trait core_foundation::base::TCFType">TCFType</a> for <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a href="#impl-TCFType" class="anchor"></a><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#428" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Ref" class="type"><code>type <a href="../../core_foundation/base/trait.TCFType.html#associatedtype.Ref" class="type">Ref</a> = <a class="type" href="../../security_framework_sys/secure_transport/type.SSLContextRef.html" title="type security_framework_sys::secure_transport::SSLContextRef">SSLContextRef</a></code></h4><div class='docblock'><p>The reference type wrapped inside this type.</p>
|
||
</div><h4 id="method.as_concrete_TypeRef" class="method hidden"><code>fn <a href="../../core_foundation/base/trait.TCFType.html#tymethod.as_concrete_TypeRef" class="fnname">as_concrete_TypeRef</a>(&self) -> <a class="type" href="../../security_framework_sys/secure_transport/type.SSLContextRef.html" title="type security_framework_sys::secure_transport::SSLContextRef">SSLContextRef</a></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#428" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the object as its concrete TypeRef.</p>
|
||
</div><h4 id="method.wrap_under_get_rule" class="method hidden"><code>unsafe fn <a href="../../core_foundation/base/trait.TCFType.html#tymethod.wrap_under_get_rule" class="fnname">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>) -> Self</code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#428" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns an instance of the object, wrapping the underlying <code>CFTypeRef</code> subclass. Use this
|
||
when following Core Foundation's "Get Rule". The reference count <em>is</em> bumped. <a href="../../core_foundation/base/trait.TCFType.html#tymethod.wrap_under_get_rule">Read more</a></p>
|
||
</div><h4 id="method.as_CFTypeRef" class="method hidden"><code>fn <a href="../../core_foundation/base/trait.TCFType.html#tymethod.as_CFTypeRef" class="fnname">as_CFTypeRef</a>(&self) -> <a class="type" href="../../core_foundation_sys/base/type.CFTypeRef.html" title="type core_foundation_sys::base::CFTypeRef">CFTypeRef</a></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#428" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the object as a raw <code>CFTypeRef</code>. The reference count is not adjusted.</p>
|
||
</div><h4 id="method.wrap_under_create_rule" class="method hidden"><code>unsafe fn <a href="../../core_foundation/base/trait.TCFType.html#tymethod.wrap_under_create_rule" class="fnname">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>) -> Self</code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#428" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns an instance of the object, wrapping the underlying <code>CFTypeRef</code> subclass. Use this
|
||
when following Core Foundation's "Create Rule". The reference count is <em>not</em> bumped. <a href="../../core_foundation/base/trait.TCFType.html#tymethod.wrap_under_create_rule">Read more</a></p>
|
||
</div><h4 id="method.type_id" class="method hidden"><code>fn <a href="../../core_foundation/base/trait.TCFType.html#tymethod.type_id" class="fnname">type_id</a>() -> <a class="type" href="../../core_foundation_sys/base/type.CFTypeID.html" title="type core_foundation_sys::base::CFTypeID">CFTypeID</a></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#428" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the type ID for this class.</p>
|
||
</div><h4 id="method.as_CFType" class="method hidden"><code>pub fn <a href="../../core_foundation/base/trait.TCFType.html#method.as_CFType" class="fnname">as_CFType</a>(&self) -> <a class="struct" href="../../core_foundation/base/struct.CFType.html" title="struct core_foundation::base::CFType">CFType</a></code><a class="srclink" href="../../src/core_foundation/base.rs.html#180" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the object as a wrapped <code>CFType</code>. The reference count is incremented by one.</p>
|
||
</div><h4 id="method.into_CFType" class="method hidden"><code>pub fn <a href="../../core_foundation/base/trait.TCFType.html#method.into_CFType" class="fnname">into_CFType</a>(self) -> <a class="struct" href="../../core_foundation/base/struct.CFType.html" title="struct core_foundation::base::CFType">CFType</a></code><a class="srclink" href="../../src/core_foundation/base.rs.html#189-191" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the object as a wrapped <code>CFType</code>. Consumes self and avoids changing the reference
|
||
count. <a href="../../core_foundation/base/trait.TCFType.html#method.into_CFType">Read more</a></p>
|
||
</div><h4 id="method.retain_count" class="method hidden"><code>pub fn <a href="../../core_foundation/base/trait.TCFType.html#method.retain_count" class="fnname">retain_count</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code><a class="srclink" href="../../src/core_foundation/base.rs.html#208" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>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. <a href="../../core_foundation/base/trait.TCFType.html#method.retain_count">Read more</a></p>
|
||
</div><h4 id="method.type_of" class="method hidden"><code>pub fn <a href="../../core_foundation/base/trait.TCFType.html#method.type_of" class="fnname">type_of</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a class="srclink" href="../../src/core_foundation/base.rs.html#216" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the type ID of this object.</p>
|
||
</div><h4 id="method.show" class="method hidden"><code>pub fn <a href="../../core_foundation/base/trait.TCFType.html#method.show" class="fnname">show</a>(&self)</code><a class="srclink" href="../../src/core_foundation/base.rs.html#223" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Writes a debugging version of this object on standard error.</p>
|
||
</div><h4 id="method.instance_of" class="method hidden"><code>pub fn <a href="../../core_foundation/base/trait.TCFType.html#method.instance_of" class="fnname">instance_of</a><OtherCFType>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> <span class="where fmt-newline">where<br> OtherCFType: <a class="trait" href="../../core_foundation/base/trait.TCFType.html" title="trait core_foundation::base::TCFType">TCFType</a>, </span></code><a class="srclink" href="../../src/core_foundation/base.rs.html#231" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns true if this value is an instance of another type.</p>
|
||
</div></div><h3 id="impl-ToVoid%3CSslContext%3E" class="impl"><code class="in-band">impl<'a> <a class="trait" href="../../core_foundation/base/trait.ToVoid.html" title="trait core_foundation::base::ToVoid">ToVoid</a><<a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a>> for &'a <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a href="#impl-ToVoid%3CSslContext%3E" class="anchor"></a><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#428" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.to_void" class="method hidden"><code>fn <a href="../../core_foundation/base/trait.ToVoid.html#tymethod.to_void" class="fnname">to_void</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*const </a><a class="enum" href="https://doc.rust-lang.org/nightly/core/ffi/enum.c_void.html" title="enum core::ffi::c_void">c_void</a></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#428" title="goto source code">[src]</a></h4></div><h3 id="impl-ToVoid%3CSslContext%3E-1" class="impl"><code class="in-band">impl <a class="trait" href="../../core_foundation/base/trait.ToVoid.html" title="trait core_foundation::base::ToVoid">ToVoid</a><<a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a>> for <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a href="#impl-ToVoid%3CSslContext%3E-1" class="anchor"></a><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#428" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.to_void-1" class="method hidden"><code>fn <a href="../../core_foundation/base/trait.ToVoid.html#tymethod.to_void" class="fnname">to_void</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*const </a><a class="enum" href="https://doc.rust-lang.org/nightly/core/ffi/enum.c_void.html" title="enum core::ffi::c_void">c_void</a></code><a class="srclink" href="../../src/security_framework/secure_transport.rs.html#428" title="goto source code">[src]</a></h4></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-RefUnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a href="#impl-RefUnwindSafe" class="anchor"></a><a class="srclink" href="../../src/security_framework/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a href="#impl-Unpin" class="anchor"></a><a class="srclink" href="../../src/security_framework/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-UnwindSafe" class="impl"><code class="in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../../security_framework/secure_transport/struct.SslContext.html" title="struct security_framework::secure_transport::SslContext">SslContext</a></code><a href="#impl-UnwindSafe" class="anchor"></a><a class="srclink" href="../../src/security_framework/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id-1" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
|
||
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#207-211" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
|
||
</div></div><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-218" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#215" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
|
||
</div></div><h3 id="impl-From%3CT%3E" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</code><a href="#impl-From%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-549" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#546" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id="impl-FromMutVoid" class="impl"><code class="in-band">impl<T> <a class="trait" href="../../core_foundation/base/trait.FromMutVoid.html" title="trait core_foundation::base::FromMutVoid">FromMutVoid</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../../core_foundation/base/trait.TCFType.html" title="trait core_foundation::base::TCFType">TCFType</a>, </span></code><a href="#impl-FromMutVoid" class="anchor"></a><a class="srclink" href="../../src/core_foundation/base.rs.html#338-342" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from_mut_void" class="method hidden"><code>pub unsafe fn <a href="../../core_foundation/base/trait.FromMutVoid.html#tymethod.from_mut_void" class="fnname">from_mut_void</a><'a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a><a class="enum" href="https://doc.rust-lang.org/nightly/core/ffi/enum.c_void.html" title="enum core::ffi::c_void">c_void</a>) -> <a class="struct" href="../../core_foundation/base/struct.ItemMutRef.html" title="struct core_foundation::base::ItemMutRef">ItemMutRef</a><'a, T></code><a class="srclink" href="../../src/core_foundation/base.rs.html#339" title="goto source code">[src]</a></h4></div><h3 id="impl-FromVoid" class="impl"><code class="in-band">impl<T> <a class="trait" href="../../core_foundation/base/trait.FromVoid.html" title="trait core_foundation::base::FromVoid">FromVoid</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="../../core_foundation/base/trait.TCFType.html" title="trait core_foundation::base::TCFType">TCFType</a>, </span></code><a href="#impl-FromVoid" class="anchor"></a><a class="srclink" href="../../src/core_foundation/base.rs.html#363-367" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from_void" class="method hidden"><code>pub unsafe fn <a href="../../core_foundation/base/trait.FromVoid.html#tymethod.from_void" class="fnname">from_void</a><'a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*const </a><a class="enum" href="https://doc.rust-lang.org/nightly/core/ffi/enum.c_void.html" title="enum core::ffi::c_void">c_void</a>) -> <a class="struct" href="../../core_foundation/base/struct.ItemRef.html" title="struct core_foundation::base::ItemRef">ItemRef</a><'a, T></code><a class="srclink" href="../../src/core_foundation/base.rs.html#364" title="goto source code">[src]</a></h4></div><h3 id="impl-Into%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></code><a href="#impl-Into%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#534-541" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> U</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#538" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id="impl-ToOwned" class="impl"><code class="in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </span></code><a href="#impl-ToOwned" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Owned" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
|
||
</div><h4 id="method.to_owned" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fnname">to_owned</a>(&self) -> T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
|
||
</div><h4 id="method.clone_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fnname">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
|
||
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
|
||
</div></div><h3 id="impl-TryFrom%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></code><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#582-591" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div><h4 id="method.try_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id="impl-TryInto%3CU%3E" class="impl"><code class="in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><a href="#impl-TryInto%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#568-577" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
|
||
</div><h4 id="method.try_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#574" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="security_framework"></div>
|
||
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html> |