1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-01-31 01:12:52 +01:00
actix-net/actix_tls/connect/struct.ConnectInfo.html
2024-10-01 00:01:00 +00:00

69 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="Connection request information."><title>ConnectInfo in actix_tls::connect - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b778ab399e080a4b.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="actix_tls" data-themes="" data-resource-suffix="" data-rustdoc-version="1.83.0-nightly (7608018cb 2024-09-29)" data-channel="nightly" data-search-js="search-e056c65ede92db13.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="../../static.files/storage-1d39b6787ed640ff.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-54bc299d2a5e4e43.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></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" title="show sidebar"></button><a class="logo-container" href="../../actix_tls/index.html"><img src="https://actix.rs/img/logo.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../actix_tls/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2><a href="../../actix_tls/index.html">actix_<wbr>tls</a><span class="version">3.4.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Connect<wbr>Info</a></h2><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.addrs" title="addrs">addrs</a></li><li><a href="#method.hostname" title="hostname">hostname</a></li><li><a href="#method.new" title="new">new</a></li><li><a href="#method.port" title="port">port</a></li><li><a href="#method.request" title="request">request</a></li><li><a href="#method.set_addr" title="set_addr">set_addr</a></li><li><a href="#method.set_addrs" title="set_addrs">set_addrs</a></li><li><a href="#method.set_local_addr" title="set_local_addr">set_local_addr</a></li><li><a href="#method.set_port" title="set_port">set_port</a></li><li><a href="#method.take_addrs" title="take_addrs">take_addrs</a></li><li><a href="#method.with_addr" title="with_addr">with_addr</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Debug-for-ConnectInfo%3CR%3E" title="Debug">Debug</a></li><li><a href="#impl-Display-for-ConnectInfo%3CR%3E" title="Display">Display</a></li><li><a href="#impl-Eq-for-ConnectInfo%3CR%3E" title="Eq">Eq</a></li><li><a href="#impl-From%3CR%3E-for-ConnectInfo%3CR%3E" title="From&#60;R&#62;">From&#60;R&#62;</a></li><li><a href="#impl-Hash-for-ConnectInfo%3CR%3E" title="Hash">Hash</a></li><li><a href="#impl-PartialEq-for-ConnectInfo%3CR%3E" title="PartialEq">PartialEq</a></li><li><a href="#impl-Service%3CConnectInfo%3CR%3E%3E-for-ConnectorService" title="Service&#60;ConnectInfo&#60;R&#62;&#62;">Service&#60;ConnectInfo&#60;R&#62;&#62;</a></li><li><a href="#impl-Service%3CConnectInfo%3CR%3E%3E-for-ResolverService" title="Service&#60;ConnectInfo&#60;R&#62;&#62;">Service&#60;ConnectInfo&#60;R&#62;&#62;</a></li><li><a href="#impl-Service%3CConnectInfo%3CR%3E%3E-for-TcpConnectorService" title="Service&#60;ConnectInfo&#60;R&#62;&#62;">Service&#60;ConnectInfo&#60;R&#62;&#62;</a></li><li><a href="#impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-Connector" title="ServiceFactory&#60;ConnectInfo&#60;R&#62;&#62;">ServiceFactory&#60;ConnectInfo&#60;R&#62;&#62;</a></li><li><a href="#impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-Resolver" title="ServiceFactory&#60;ConnectInfo&#60;R&#62;&#62;">ServiceFactory&#60;ConnectInfo&#60;R&#62;&#62;</a></li><li><a href="#impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-TcpConnector" title="ServiceFactory&#60;ConnectInfo&#60;R&#62;&#62;">ServiceFactory&#60;ConnectInfo&#60;R&#62;&#62;</a></li><li><a href="#impl-StructuralPartialEq-for-ConnectInfo%3CR%3E" title="StructuralPartialEq">StructuralPartialEq</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-ConnectInfo%3CR%3E" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-ConnectInfo%3CR%3E" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-ConnectInfo%3CR%3E" title="Send">Send</a></li><li><a href="#impl-Sync-for-ConnectInfo%3CR%3E" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-ConnectInfo%3CR%3E" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-ConnectInfo%3CR%3E" title="UnwindSafe">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" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a href="#impl-Instrument-for-T" title="Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a href="#impl-ToString-for-T" title="ToString">ToString</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li><li><a href="#impl-WithSubscriber-for-T" title="WithSubscriber">WithSubscriber</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In actix_<wbr>tls::<wbr>connect</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="../index.html">actix_tls</a>::<wbr><a href="index.html">connect</a></span><h1>Struct <span class="struct">ConnectInfo</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/actix_tls/connect/info.rs.html#20-25">source</a> </span></div><pre class="rust item-decl"><code>pub struct ConnectInfo&lt;R&gt; { <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>Connection request information.</p>
<p>May contain known/pre-resolved socket address(es) or a host that needs resolving with DNS.</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-ConnectInfo%3CR%3E" class="impl"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#27-168">source</a><a href="#impl-ConnectInfo%3CR%3E" class="anchor">§</a><h3 class="code-header">impl&lt;R: <a class="trait" href="trait.Host.html" title="trait actix_tls::connect::Host">Host</a>&gt; <a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;</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/actix_tls/connect/info.rs.html#29-38">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(request: R) -&gt; <a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;</h4></section></summary><div class="docblock"><p>Constructs new connection info using a request.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.with_addr" class="method"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#44-51">source</a><h4 class="code-header">pub fn <a href="#method.with_addr" class="fn">with_addr</a>(request: R, addr: <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>) -&gt; <a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;</h4></section></summary><div class="docblock"><p>Constructs new connection info from request and known socket address.</p>
<p>Since socket address is known, <a href="struct.Connector.html" title="struct actix_tls::connect::Connector"><code>Connector</code></a> will skip the DNS
resolution step.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_port" class="method"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#56-59">source</a><h4 class="code-header">pub fn <a href="#method.set_port" class="fn">set_port</a>(self, port: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Set connection port.</p>
<p>If request provided a port, this will override it.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_addr" class="method"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#62-65">source</a><h4 class="code-header">pub fn <a href="#method.set_addr" class="fn">set_addr</a>(self, addr: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt;&gt;) -&gt; Self</h4></section></summary><div class="docblock"><p>Set connection socket address.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_addrs" class="method"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#68-79">source</a><h4 class="code-header">pub fn <a href="#method.set_addrs" class="fn">set_addrs</a>&lt;I&gt;(self, addrs: I) -&gt; Self<div class="where">where
I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt;,</div></h4></section></summary><div class="docblock"><p>Set list of addresses.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_local_addr" class="method"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#85-88">source</a><h4 class="code-header">pub fn <a href="#method.set_local_addr" class="fn">set_local_addr</a>(self, addr: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/net/ip_addr/enum.IpAddr.html" title="enum core::net::ip_addr::IpAddr">IpAddr</a>&gt;) -&gt; Self</h4></section></summary><div class="docblock"><p>Set local address to connection with.</p>
<p>Useful in situations where the IP address bound to a particular network interface is known.
This would make sure the socket is opened through that interface.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.request" class="method"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#91-93">source</a><h4 class="code-header">pub fn <a href="#method.request" class="fn">request</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;R</a></h4></section></summary><div class="docblock"><p>Returns a reference to the connection request.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.hostname" class="method"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#96-98">source</a><h4 class="code-header">pub fn <a href="#method.hostname" class="fn">hostname</a>(&amp;self) -&gt; &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></h4></section></summary><div class="docblock"><p>Returns request hostname.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.port" class="method"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#101-103">source</a><h4 class="code-header">pub fn <a href="#method.port" class="fn">port</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></h4></section></summary><div class="docblock"><p>Returns request port.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.addrs" class="method"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#122-135">source</a><h4 class="code-header">pub fn <a href="#method.addrs" class="fn">addrs</a>(
&amp;self,
) -&gt; impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/exact_size/trait.ExactSizeIterator.html" title="trait core::iter::traits::exact_size::ExactSizeIterator">ExactSizeIterator</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/marker/trait.FusedIterator.html" title="trait core::iter::traits::marker::FusedIterator">FusedIterator</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + '_</h4></section></summary><div class="docblock"><p>Get borrowed iterator of resolved request addresses.</p>
<h5 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>addr = SocketAddr::from(([<span class="number">127</span>, <span class="number">0</span>, <span class="number">0</span>, <span class="number">1</span>], <span class="number">4242</span>));
<span class="kw">let </span>conn = ConnectInfo::new(<span class="string">"localhost"</span>);
<span class="kw">let </span><span class="kw-2">mut </span>addrs = conn.addrs();
<span class="macro">assert!</span>(addrs.next().is_none());
<span class="kw">let </span>conn = ConnectInfo::with_addr(<span class="string">"localhost"</span>, addr);
<span class="kw">let </span><span class="kw-2">mut </span>addrs = conn.addrs();
<span class="macro">assert_eq!</span>(addrs.next().unwrap(), addr);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.take_addrs" class="method"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#154-167">source</a><h4 class="code-header">pub fn <a href="#method.take_addrs" class="fn">take_addrs</a>(
&amp;mut self,
) -&gt; impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr">SocketAddr</a>&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/exact_size/trait.ExactSizeIterator.html" title="trait core::iter::traits::exact_size::ExactSizeIterator">ExactSizeIterator</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/marker/trait.FusedIterator.html" title="trait core::iter::traits::marker::FusedIterator">FusedIterator</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + 'static</h4></section></summary><div class="docblock"><p>Take owned iterator resolved request addresses.</p>
<h5 id="examples-1"><a class="doc-anchor" href="#examples-1">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>addr = SocketAddr::from(([<span class="number">127</span>, <span class="number">0</span>, <span class="number">0</span>, <span class="number">1</span>], <span class="number">4242</span>));
<span class="kw">let </span><span class="kw-2">mut </span>conn = ConnectInfo::new(<span class="string">"localhost"</span>);
<span class="kw">let </span><span class="kw-2">mut </span>addrs = conn.take_addrs();
<span class="macro">assert!</span>(addrs.next().is_none());
<span class="kw">let </span><span class="kw-2">mut </span>conn = ConnectInfo::with_addr(<span class="string">"localhost"</span>, addr);
<span class="kw">let </span><span class="kw-2">mut </span>addrs = conn.take_addrs();
<span class="macro">assert_eq!</span>(addrs.next().unwrap(), addr);</code></pre></div>
</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-Debug-for-ConnectInfo%3CR%3E" class="impl"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#19">source</a><a href="#impl-Debug-for-ConnectInfo%3CR%3E" class="anchor">§</a><h3 class="code-header">impl&lt;R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>&gt; <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="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;</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/actix_tls/connect/info.rs.html#19">source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/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/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Display-for-ConnectInfo%3CR%3E" class="impl"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#176-180">source</a><a href="#impl-Display-for-ConnectInfo%3CR%3E" class="anchor">§</a><h3 class="code-header">impl&lt;R: <a class="trait" href="trait.Host.html" title="trait actix_tls::connect::Host">Host</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#177-179">source</a><a href="#method.fmt-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/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/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-From%3CR%3E-for-ConnectInfo%3CR%3E" class="impl"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#170-174">source</a><a href="#impl-From%3CR%3E-for-ConnectInfo%3CR%3E" class="anchor">§</a><h3 class="code-header">impl&lt;R: <a class="trait" href="trait.Host.html" title="trait actix_tls::connect::Host">Host</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;R&gt; for <a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;</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="../../src/actix_tls/connect/info.rs.html#171-173">source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(addr: R) -&gt; Self</h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Hash-for-ConnectInfo%3CR%3E" class="impl"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#19">source</a><a href="#impl-Hash-for-ConnectInfo%3CR%3E" class="anchor">§</a><h3 class="code-header">impl&lt;R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.hash" class="method trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#19">source</a><a href="#method.hash" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash" class="fn">hash</a>&lt;__H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>&gt;(&amp;self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut __H</a>)</h4></section></summary><div class='docblock'>Feeds this value into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.hash_slice" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.6.0">1.6.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#235-237">source</a></span><a href="#method.hash_slice" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice" class="fn">hash_slice</a>&lt;H&gt;(data: &amp;[Self], state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut H</a>)<div class="where">where
H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq-for-ConnectInfo%3CR%3E" class="impl"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#19">source</a><a href="#impl-PartialEq-for-ConnectInfo%3CR%3E" class="anchor">§</a><h3 class="code-header">impl&lt;R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;</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/actix_tls/connect/info.rs.html#19">source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>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.6.0">1.6.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#261">source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;Rhs</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>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-Service%3CConnectInfo%3CR%3E%3E-for-ConnectorService" class="impl"><a class="src rightside" href="../../src/actix_tls/connect/connector.rs.html#66-79">source</a><a href="#impl-Service%3CConnectInfo%3CR%3E%3E-for-ConnectorService" class="anchor">§</a><h3 class="code-header">impl&lt;R: <a class="trait" href="trait.Host.html" title="trait actix_tls::connect::Host">Host</a>&gt; Service&lt;<a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;&gt; for <a class="struct" href="struct.ConnectorService.html" title="struct actix_tls::connect::ConnectorService">ConnectorService</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Response-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/connector.rs.html#67">source</a><a href="#associatedtype.Response-1" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Response</a> = <a class="struct" href="struct.Connection.html" title="struct actix_tls::connect::Connection">Connection</a>&lt;R, TcpStream&gt;</h4></section></summary><div class='docblock'>Responses given by the service.</div></details><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/connector.rs.html#68">source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Error</a> = <a class="enum" href="enum.ConnectError.html" title="enum actix_tls::connect::ConnectError">ConnectError</a></h4></section></summary><div class='docblock'>Errors produced by the service when polling readiness or executing call.</div></details><details class="toggle" open><summary><section id="associatedtype.Future-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/connector.rs.html#69">source</a><a href="#associatedtype.Future-1" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Future</a> = ConnectServiceResponse&lt;R&gt;</h4></section></summary><div class='docblock'>The future response value.</div></details><details class="toggle method-toggle" open><summary><section id="method.poll_ready" class="method trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/connector.rs.html#71">source</a><a href="#method.poll_ready" class="anchor">§</a><h4 class="code-header">fn <a class="fn">poll_ready</a>(&amp;self, _: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::Error&gt;&gt;</h4></section></summary><div class='docblock'>Returns <code>Ready</code> when the service is able to process requests. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.call" class="method trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/connector.rs.html#73-78">source</a><a href="#method.call" class="anchor">§</a><h4 class="code-header">fn <a class="fn">call</a>(&amp;self, req: <a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;) -&gt; Self::Future</h4></section></summary><div class='docblock'>Process the request and return the response asynchronously. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Service%3CConnectInfo%3CR%3E%3E-for-ResolverService" class="impl"><a class="src rightside" href="../../src/actix_tls/connect/resolver.rs.html#96-142">source</a><a href="#impl-Service%3CConnectInfo%3CR%3E%3E-for-ResolverService" class="anchor">§</a><h3 class="code-header">impl&lt;R: <a class="trait" href="trait.Host.html" title="trait actix_tls::connect::Host">Host</a>&gt; Service&lt;<a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;&gt; for <a class="struct" href="struct.ResolverService.html" title="struct actix_tls::connect::ResolverService">ResolverService</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Response-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/resolver.rs.html#97">source</a><a href="#associatedtype.Response-3" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Response</a> = <a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;</h4></section></summary><div class='docblock'>Responses given by the service.</div></details><details class="toggle" open><summary><section id="associatedtype.Error-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/resolver.rs.html#98">source</a><a href="#associatedtype.Error-3" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Error</a> = <a class="enum" href="enum.ConnectError.html" title="enum actix_tls::connect::ConnectError">ConnectError</a></h4></section></summary><div class='docblock'>Errors produced by the service when polling readiness or executing call.</div></details><details class="toggle" open><summary><section id="associatedtype.Future-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/resolver.rs.html#99">source</a><a href="#associatedtype.Future-3" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Future</a> = ResolverFut&lt;R&gt;</h4></section></summary><div class='docblock'>The future response value.</div></details><details class="toggle method-toggle" open><summary><section id="method.poll_ready-1" class="method trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/resolver.rs.html#101">source</a><a href="#method.poll_ready-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">poll_ready</a>(&amp;self, _: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::Error&gt;&gt;</h4></section></summary><div class='docblock'>Returns <code>Ready</code> when the service is able to process requests. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.call-1" class="method trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/resolver.rs.html#103-141">source</a><a href="#method.call-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">call</a>(&amp;self, req: <a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;) -&gt; Self::Future</h4></section></summary><div class='docblock'>Process the request and return the response asynchronously. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Service%3CConnectInfo%3CR%3E%3E-for-TcpConnectorService" class="impl"><a class="src rightside" href="../../src/actix_tls/connect/tcp.rs.html#53-72">source</a><a href="#impl-Service%3CConnectInfo%3CR%3E%3E-for-TcpConnectorService" class="anchor">§</a><h3 class="code-header">impl&lt;R: <a class="trait" href="trait.Host.html" title="trait actix_tls::connect::Host">Host</a>&gt; Service&lt;<a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;&gt; for <a class="struct" href="tcp/struct.TcpConnectorService.html" title="struct actix_tls::connect::tcp::TcpConnectorService">TcpConnectorService</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Response-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/tcp.rs.html#54">source</a><a href="#associatedtype.Response-5" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Response</a> = <a class="struct" href="struct.Connection.html" title="struct actix_tls::connect::Connection">Connection</a>&lt;R, TcpStream&gt;</h4></section></summary><div class='docblock'>Responses given by the service.</div></details><details class="toggle" open><summary><section id="associatedtype.Error-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/tcp.rs.html#55">source</a><a href="#associatedtype.Error-5" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Error</a> = <a class="enum" href="enum.ConnectError.html" title="enum actix_tls::connect::ConnectError">ConnectError</a></h4></section></summary><div class='docblock'>Errors produced by the service when polling readiness or executing call.</div></details><details class="toggle" open><summary><section id="associatedtype.Future-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/tcp.rs.html#56">source</a><a href="#associatedtype.Future-5" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Future</a> = TcpConnectorFut&lt;R&gt;</h4></section></summary><div class='docblock'>The future response value.</div></details><details class="toggle method-toggle" open><summary><section id="method.poll_ready-2" class="method trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/tcp.rs.html#58">source</a><a href="#method.poll_ready-2" class="anchor">§</a><h4 class="code-header">fn <a class="fn">poll_ready</a>(&amp;self, _: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::Error&gt;&gt;</h4></section></summary><div class='docblock'>Returns <code>Ready</code> when the service is able to process requests. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.call-2" class="method trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/tcp.rs.html#60-71">source</a><a href="#method.call-2" class="anchor">§</a><h4 class="code-header">fn <a class="fn">call</a>(&amp;self, req: <a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;) -&gt; Self::Future</h4></section></summary><div class='docblock'>Process the request and return the response asynchronously. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-Connector" class="impl"><a class="src rightside" href="../../src/actix_tls/connect/connector.rs.html#43-54">source</a><a href="#impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-Connector" class="anchor">§</a><h3 class="code-header">impl&lt;R: <a class="trait" href="trait.Host.html" title="trait actix_tls::connect::Host">Host</a>&gt; ServiceFactory&lt;<a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;&gt; for <a class="struct" href="struct.Connector.html" title="struct actix_tls::connect::Connector">Connector</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Response" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/connector.rs.html#44">source</a><a href="#associatedtype.Response" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Response</a> = <a class="struct" href="struct.Connection.html" title="struct actix_tls::connect::Connection">Connection</a>&lt;R, TcpStream&gt;</h4></section></summary><div class='docblock'>Responses given by the created services.</div></details><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/connector.rs.html#45">source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Error</a> = <a class="enum" href="enum.ConnectError.html" title="enum actix_tls::connect::ConnectError">ConnectError</a></h4></section></summary><div class='docblock'>Errors produced by the created services.</div></details><details class="toggle" open><summary><section id="associatedtype.Config" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/connector.rs.html#46">source</a><a href="#associatedtype.Config" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>Service factory configuration.</div></details><details class="toggle" open><summary><section id="associatedtype.Service" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/connector.rs.html#47">source</a><a href="#associatedtype.Service" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Service</a> = <a class="struct" href="struct.ConnectorService.html" title="struct actix_tls::connect::ConnectorService">ConnectorService</a></h4></section></summary><div class='docblock'>The kind of <code>Service</code> created by this factory.</div></details><details class="toggle" open><summary><section id="associatedtype.InitError" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/connector.rs.html#48">source</a><a href="#associatedtype.InitError" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>Errors potentially raised while building a service.</div></details><details class="toggle" open><summary><section id="associatedtype.Future" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/connector.rs.html#49">source</a><a href="#associatedtype.Future" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Future</a> = <a class="struct" href="../../actix_utils/future/ready/struct.Ready.html" title="struct actix_utils::future::ready::Ready">Ready</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="struct.Connector.html" title="struct actix_tls::connect::Connector">Connector</a> as ServiceFactory&lt;<a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;&gt;&gt;::Service, &lt;<a class="struct" href="struct.Connector.html" title="struct actix_tls::connect::Connector">Connector</a> as ServiceFactory&lt;<a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;&gt;&gt;::InitError&gt;&gt;</h4></section></summary><div class='docblock'>The future of the <code>Service</code> instance.g</div></details><details class="toggle method-toggle" open><summary><section id="method.new_service" class="method trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/connector.rs.html#51-53">source</a><a href="#method.new_service" class="anchor">§</a><h4 class="code-header">fn <a class="fn">new_service</a>(&amp;self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>) -&gt; Self::Future</h4></section></summary><div class='docblock'>Create and return a new service asynchronously.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-Resolver" class="impl"><a class="src rightside" href="../../src/actix_tls/connect/resolver.rs.html#39-50">source</a><a href="#impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-Resolver" class="anchor">§</a><h3 class="code-header">impl&lt;R: <a class="trait" href="trait.Host.html" title="trait actix_tls::connect::Host">Host</a>&gt; ServiceFactory&lt;<a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;&gt; for <a class="struct" href="struct.Resolver.html" title="struct actix_tls::connect::Resolver">Resolver</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Response-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/resolver.rs.html#40">source</a><a href="#associatedtype.Response-2" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Response</a> = <a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;</h4></section></summary><div class='docblock'>Responses given by the created services.</div></details><details class="toggle" open><summary><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/resolver.rs.html#41">source</a><a href="#associatedtype.Error-2" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Error</a> = <a class="enum" href="enum.ConnectError.html" title="enum actix_tls::connect::ConnectError">ConnectError</a></h4></section></summary><div class='docblock'>Errors produced by the created services.</div></details><details class="toggle" open><summary><section id="associatedtype.Config-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/resolver.rs.html#42">source</a><a href="#associatedtype.Config-1" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>Service factory configuration.</div></details><details class="toggle" open><summary><section id="associatedtype.Service-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/resolver.rs.html#43">source</a><a href="#associatedtype.Service-1" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Service</a> = <a class="struct" href="struct.ResolverService.html" title="struct actix_tls::connect::ResolverService">ResolverService</a></h4></section></summary><div class='docblock'>The kind of <code>Service</code> created by this factory.</div></details><details class="toggle" open><summary><section id="associatedtype.InitError-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/resolver.rs.html#44">source</a><a href="#associatedtype.InitError-1" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>Errors potentially raised while building a service.</div></details><details class="toggle" open><summary><section id="associatedtype.Future-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/resolver.rs.html#45">source</a><a href="#associatedtype.Future-2" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Future</a> = <a class="struct" href="../../actix_utils/future/ready/struct.Ready.html" title="struct actix_utils::future::ready::Ready">Ready</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="struct.Resolver.html" title="struct actix_tls::connect::Resolver">Resolver</a> as ServiceFactory&lt;<a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;&gt;&gt;::Service, &lt;<a class="struct" href="struct.Resolver.html" title="struct actix_tls::connect::Resolver">Resolver</a> as ServiceFactory&lt;<a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;&gt;&gt;::InitError&gt;&gt;</h4></section></summary><div class='docblock'>The future of the <code>Service</code> instance.g</div></details><details class="toggle method-toggle" open><summary><section id="method.new_service-1" class="method trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/resolver.rs.html#47-49">source</a><a href="#method.new_service-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">new_service</a>(&amp;self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>) -&gt; Self::Future</h4></section></summary><div class='docblock'>Create and return a new service asynchronously.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-TcpConnector" class="impl"><a class="src rightside" href="../../src/actix_tls/connect/tcp.rs.html#35-46">source</a><a href="#impl-ServiceFactory%3CConnectInfo%3CR%3E%3E-for-TcpConnector" class="anchor">§</a><h3 class="code-header">impl&lt;R: <a class="trait" href="trait.Host.html" title="trait actix_tls::connect::Host">Host</a>&gt; ServiceFactory&lt;<a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;&gt; for <a class="struct" href="tcp/struct.TcpConnector.html" title="struct actix_tls::connect::tcp::TcpConnector">TcpConnector</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Response-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/tcp.rs.html#36">source</a><a href="#associatedtype.Response-4" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Response</a> = <a class="struct" href="struct.Connection.html" title="struct actix_tls::connect::Connection">Connection</a>&lt;R, TcpStream&gt;</h4></section></summary><div class='docblock'>Responses given by the created services.</div></details><details class="toggle" open><summary><section id="associatedtype.Error-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/tcp.rs.html#37">source</a><a href="#associatedtype.Error-4" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Error</a> = <a class="enum" href="enum.ConnectError.html" title="enum actix_tls::connect::ConnectError">ConnectError</a></h4></section></summary><div class='docblock'>Errors produced by the created services.</div></details><details class="toggle" open><summary><section id="associatedtype.Config-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/tcp.rs.html#38">source</a><a href="#associatedtype.Config-2" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Config</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>Service factory configuration.</div></details><details class="toggle" open><summary><section id="associatedtype.Service-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/tcp.rs.html#39">source</a><a href="#associatedtype.Service-2" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Service</a> = <a class="struct" href="tcp/struct.TcpConnectorService.html" title="struct actix_tls::connect::tcp::TcpConnectorService">TcpConnectorService</a></h4></section></summary><div class='docblock'>The kind of <code>Service</code> created by this factory.</div></details><details class="toggle" open><summary><section id="associatedtype.InitError-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/tcp.rs.html#40">source</a><a href="#associatedtype.InitError-2" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">InitError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>Errors potentially raised while building a service.</div></details><details class="toggle" open><summary><section id="associatedtype.Future-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/tcp.rs.html#41">source</a><a href="#associatedtype.Future-4" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Future</a> = <a class="struct" href="../../actix_utils/future/ready/struct.Ready.html" title="struct actix_utils::future::ready::Ready">Ready</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="struct" href="tcp/struct.TcpConnector.html" title="struct actix_tls::connect::tcp::TcpConnector">TcpConnector</a> as ServiceFactory&lt;<a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;&gt;&gt;::Service, &lt;<a class="struct" href="tcp/struct.TcpConnector.html" title="struct actix_tls::connect::tcp::TcpConnector">TcpConnector</a> as ServiceFactory&lt;<a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;&gt;&gt;::InitError&gt;&gt;</h4></section></summary><div class='docblock'>The future of the <code>Service</code> instance.g</div></details><details class="toggle method-toggle" open><summary><section id="method.new_service-2" class="method trait-impl"><a class="src rightside" href="../../src/actix_tls/connect/tcp.rs.html#43-45">source</a><a href="#method.new_service-2" class="anchor">§</a><h4 class="code-header">fn <a class="fn">new_service</a>(&amp;self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>) -&gt; Self::Future</h4></section></summary><div class='docblock'>Create and return a new service asynchronously.</div></details></div></details><section id="impl-Eq-for-ConnectInfo%3CR%3E" class="impl"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#19">source</a><a href="#impl-Eq-for-ConnectInfo%3CR%3E" class="anchor">§</a><h3 class="code-header">impl&lt;R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>&gt; <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="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;</h3></section><section id="impl-StructuralPartialEq-for-ConnectInfo%3CR%3E" class="impl"><a class="src rightside" href="../../src/actix_tls/connect/info.rs.html#19">source</a><a href="#impl-StructuralPartialEq-for-ConnectInfo%3CR%3E" class="anchor">§</a><h3 class="code-header">impl&lt;R&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;</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-Freeze-for-ConnectInfo%3CR%3E" class="impl"><a href="#impl-Freeze-for-ConnectInfo%3CR%3E" class="anchor">§</a><h3 class="code-header">impl&lt;R&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;<div class="where">where
R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwindSafe-for-ConnectInfo%3CR%3E" class="impl"><a href="#impl-RefUnwindSafe-for-ConnectInfo%3CR%3E" class="anchor">§</a><h3 class="code-header">impl&lt;R&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;<div class="where">where
R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section id="impl-Send-for-ConnectInfo%3CR%3E" class="impl"><a href="#impl-Send-for-ConnectInfo%3CR%3E" class="anchor">§</a><h3 class="code-header">impl&lt;R&gt; <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="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;<div class="where">where
R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-Sync-for-ConnectInfo%3CR%3E" class="impl"><a href="#impl-Sync-for-ConnectInfo%3CR%3E" class="anchor">§</a><h3 class="code-header">impl&lt;R&gt; <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="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;<div class="where">where
R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-ConnectInfo%3CR%3E" class="impl"><a href="#impl-Unpin-for-ConnectInfo%3CR%3E" class="anchor">§</a><h3 class="code-header">impl&lt;R&gt; <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="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;<div class="where">where
R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnwindSafe-for-ConnectInfo%3CR%3E" class="impl"><a href="#impl-UnwindSafe-for-ConnectInfo%3CR%3E" class="anchor">§</a><h3 class="code-header">impl&lt;R&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.ConnectInfo.html" title="struct actix_tls::connect::ConnectInfo">ConnectInfo</a>&lt;R&gt;<div class="where">where
R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,</div></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/nightly/src/core/any.rs.html#138">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/nightly/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/nightly/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" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#139">source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/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/nightly/src/core/borrow.rs.html#209">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/nightly/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/nightly/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/nightly/src/core/borrow.rs.html#211">source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/src/core/borrow.rs.html#217">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/nightly/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/nightly/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/nightly/src/core/borrow.rs.html#218">source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/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/nightly/src/core/convert/mod.rs.html#765">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/nightly/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-1" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#768">source</a><a href="#method.from-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/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-Instrument-for-T" class="impl"><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; Instrument for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a class="fn">instrument</a>(self, span: Span) -&gt; Instrumented&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the provided [<code>Span</code>], returning an
<code>Instrumented</code> wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a class="fn">in_current_span</a>(self) -&gt; Instrumented&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the <a href="super::Span::current()">current</a> <a href="crate::Span"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a>Read more</a></div></details></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/nightly/src/core/convert/mod.rs.html#748-750">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/nightly/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/nightly/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/nightly/src/core/convert/mod.rs.html#758">source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/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/nightly/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-ToString-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2660">source</a><a href="#impl-ToString-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/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.to_string" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2666">source</a><a href="#method.to_string" class="anchor">§</a><h4 class="code-header">default fn <a href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string" class="fn">to_string</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class='docblock'>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string">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/nightly/src/core/convert/mod.rs.html#805-807">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/nightly/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/nightly/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-7" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#809">source</a><a href="#associatedtype.Error-7" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/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/nightly/src/core/convert/mod.rs.html#812">source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/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/nightly/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/nightly/src/core/convert/mod.rs.html#790-792">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/nightly/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/nightly/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-6" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#794">source</a><a href="#associatedtype.Error-6" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/src/core/convert/mod.rs.html#797">source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/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-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; WithSubscriber for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_subscriber</a>&lt;S&gt;(self, subscriber: S) -&gt; WithDispatch&lt;Self&gt;<div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;Dispatch&gt;,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_current_subscriber</a>(self) -&gt; WithDispatch&lt;Self&gt;</h4></section></summary><div class='docblock'>Attaches the current <a href="crate::dispatcher#setting-the-default-subscriber">default</a> <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details></div></details></div></section></div></main></body></html>