<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="API documentation for the Rust `Connection` struct in crate `actix_web`."><metaname="keywords"content="rust, rustlang, rust-lang, Connection"><title>actix_web::client::Connection - Rust</title><linkrel="stylesheet"type="text/css"href="../../normalize.css"><linkrel="stylesheet"type="text/css"href="../../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../../dark.css"><linkrel="stylesheet"type="text/css"href="../../light.css"id="themeStyle"><scriptsrc="../../storage.js"></script></head><bodyclass="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu">☰</div><pclass='location'>Struct Connection</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#methods">Methods</a><divclass="sidebar-links"><ahref="#method.stream">stream</a><ahref="#method.from_stream">from_stream</a><ahref="#method.close">close</a><ahref="#method.release">release</a></div><aclass="sidebar-title"href="#implementations">Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-Debug">Debug</a><ahref="#impl-Read">Read</a><ahref="#impl-AsyncRead">AsyncRead</a><ahref="#impl-Write">Write</a><ahref="#impl-AsyncWrite">AsyncWrite</a></div><aclass="sidebar-title"href="#synthetic-implementations">Auto Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-Send">Send</a><ahref="#impl-Sync">!Sync</a></div></div><pclass='location'><ahref='../index.html'>actix_web</a>::<wbr><ahref='index.html'>client</a></p><script>window.sidebarCurrent={name:'Connection',ty:'struct',relpath:''};</script><scriptdefersrc="sidebar-items.js"></script></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"><imgsrc="../../brush.svg"width="18"alt="Pick another theme!"></button><divid="theme-choices"></div></div><scriptsrc="../../theme.js"></script><navclass="sub"><formclass="search-form js-only"><divclass="search-container"><inputclass="search-input"name="search"autocomplete="off"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"><aid="settings-menu"href="../../settings.html"><imgsrc="../../wheel.svg"width="18"alt="Change settings"></a></div></form></nav><sectionid="main"class="content"><h1class='fqn'><spanclass='in-band'>Struct <ahref='../index.html'>actix_web</a>::<wbr><ahref='index.html'>client</a>::<wbr><aclass="struct"href=''>Connection</a></span><spanclass='out-of-band'><spanid='render-detail'><aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">[<spanclass='inner'>−</span>]</a></span><aclass='srclink'href='../../src/actix_web/client/connector.rs.html#1064-1069'title='goto source code'>[src]</a></span></h1><divclass="docblock type-decl"><preclass='rust struct'>pub struct Connection { /* fields omitted */ }</pre></div><divclass='docblock'><p>HTTP client connection</p>
</div><h4id='method.from_stream'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../../actix_web/client/struct.Connection.html"title="struct actix_web::client::Connection">Connection</a></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../../actix_web/client/struct.Connection.html"title="struct actix_web::client::Connection">Connection</a></h3><codeclass="content"><spanclass="where fmt-newline">impl <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a> for <aclass="struct"href="../../actix_web/client/struct.Connection.html"title="struct actix_web::client::Connection">Connection</a></span><spanclass="where fmt-newline">impl <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> for <aclass="struct"href="../../actix_web/client/struct.Connection.html"title="struct actix_web::client::Connection">Connection</a></span></code></div></div><spanid='from_stream.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.from_stream'class='fnname'>from_stream</a><T: IoStream + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a>>(io: T) -><aclass="struct"href="../../actix_web/client/struct.Connection.html"title="struct actix_web::client::Connection">Connection</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../../src/actix_web/client/connector.rs.html#1093-1095'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Create a new connection from an IO Stream</p>
</div><h4id='method.release'class="method"><spanid='release.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>pub fn <ahref='#method.release'class='fnname'>release</a>(self)</code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../../src/actix_web/client/connector.rs.html#1105-1109'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Release this connection to the connection pool</p>
<divid='implementations-list'><h3id='impl-Debug'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> for <aclass="struct"href="../../actix_web/client/struct.Connection.html"title="struct actix_web::client::Connection">Connection</a></code><ahref='#impl-Debug'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../../src/actix_web/client/connector.rs.html#1071-1075'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.fmt'class="method"><spanid='fmt.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt'class='fnname'>fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a>) -><aclass="type"href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../../src/actix_web/client/connector.rs.html#1072-1074'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3id='impl-Read'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a> for <aclass="struct"href="../../actix_web/client/struct.Connection.html"title="struct actix_web::client::Connection">Connection</a></code><ahref='#impl-Read'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../../src/actix_web/client/connector.rs.html#1128-1132'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.read'class="method"><spanid='read.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Read.html#tymethod.read'class='fnname'>read</a>(&mut self, buf: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&mut [</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -><aclass="type"href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html"title="type std::io::error::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../../src/actix_web/client/connector.rs.html#1129-1131'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Pull some bytes from this source into the specified buffer, returning how many bytes were read. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Read.html#tymethod.read">Read more</a></p>
</div><h4id='method.initializer'class="method"><spanid='initializer.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>unsafe fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.initializer'class='fnname'>initializer</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Initializer.html"title="struct std::io::Initializer">Initializer</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/std/io/mod.rs.html#552-554'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='stability'><divclass='stab unstable'><spanclass=microscope>🔬</span> This is a nightly-only experimental API. (<code>read_initializer</code>)</div></div><divclass='docblock'><p>Determines if this <code>Read</code>er can work with buffers of uninitialized memory. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.initializer">Read more</a></p>
</div><h4id='method.read_to_end'class="method"><spanid='read_to_end.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_to_end'class='fnname'>read_to_end</a>(&mut self, buf: &mut <aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"title="struct alloc::vec::Vec">Vec</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.0.0'>1.0.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/std/io/mod.rs.html#604-606'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Read all bytes until EOF in this source, placing them into <code>buf</code>. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_to_end">Read more</a></p>
</div><h4id='method.read_to_string'class="method"><spanid='read_to_string.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_to_string'class='fnname'>read_to_string</a>(&mut self, buf: &mut <aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.0.0'>1.0.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/std/io/mod.rs.html#647-658'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Read all bytes until EOF in this source, appending them to <code>buf</code>. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_to_string">Read more</a></p>
</div><h4id='method.read_exact'class="method"><spanid='read_exact.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_exact'class='fnname'>read_exact</a>(&mut self, buf: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&mut [</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.6.0'>1.6.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/std/io/mod.rs.html#710-725'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Read the exact number of bytes required to fill <code>buf</code>. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.read_exact">Read more</a></p>
</div><h4id='method.by_ref'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>R</span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>R</h3><codeclass="content"><spanclass="where fmt-newline">impl<'a, R><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>R <spanclass="where fmt-newline">where<br> R: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></span><spanclass="where fmt-newline">impl<'a, W><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>W <spanclass="where fmt-newline">where<br> W: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></span><spanclass="where fmt-newline">impl<'a, I><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html"title="trait core::iter::iterator::Iterator">Iterator</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>I <spanclass="where fmt-newline">where<br> I: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html"title="trait core::iter::iterator::Iterator">Iterator</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = <I as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html"title="trait core::iter::iterator::Iterator">Iterator</a>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item"title="type core::iter::iterator::Iterator::Item">Item</a>;</span></code></div></div><spanid='by_ref.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.by_ref'class='fnname'>by_ref</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self</code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.0.0'>1.0.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/std/io/mod.rs.html#762'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Creates a "by reference" adaptor for this instance of <code>Read</code>. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.by_ref">Read more</a></p>
</div><h4id='method.bytes'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Bytes.html"title="struct std::io::Bytes">Bytes</a><R></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Bytes.html"title="struct std::io::Bytes">Bytes</a><R></h3><codeclass="content"><spanclass="where fmt-newline">impl<R><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html"title="trait core::iter::iterator::Iterator">Iterator</a> for <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Bytes.html"title="struct std::io::Bytes">Bytes</a><R><spanclass="where fmt-newline">where<br> R: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a>, </span></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>, <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>>;</span></code></div></div><spanid='bytes.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.bytes'class='fnname'>bytes</a>(self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Bytes.html"title="struct std::io::Bytes">Bytes</a><Self></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.0.0'>1.0.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/std/io/mod.rs.html#799-801'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Transforms this <code>Read</code> instance to an [<code>Iterator</code>] over its bytes. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.bytes">Read more</a></p>
</div><h4id='method.chars'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Chars.html"title="struct std::io::Chars">Chars</a><R></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Chars.html"title="struct std::io::Chars">Chars</a><R></h3><codeclass="content"><spanclass="where fmt-newline">impl<R><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html"title="trait core::iter::iterator::Iterator">Iterator</a> for <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Chars.html"title="struct std::io::Chars">Chars</a><R><spanclass="where fmt-newline">where<br> R: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a>, </span></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a>, <aclass="enum"href="https://doc.rust-lang.org/nightly/std/io/enum.CharsError.html"title="enum std::io::CharsError">CharsError</a>>;</span></code></div></div><spanid='chars.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.chars'class='fnname'>chars</a>(self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Chars.html"title="struct std::io::Chars">Chars</a><Self></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/std/io/mod.rs.html#846-848'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='stability'><divclass='stab deprecated'>Deprecated since 1.27.0<p>: Use str::from_utf8 instead:
</div><divclass='stab unstable'><details><summary><spanclass=microscope>🔬</span> This is a nightly-only experimental API. (<code>io</code>)</summary><p>the semantics of a partial read/write of where errors happen is currently unclear and may change</p>
</details></div></div><divclass='docblock'><p>Transforms this <code>Read</code> instance to an [<code>Iterator</code>] over [<code>char</code>]s. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.chars">Read more</a></p>
</div><h4id='method.chain'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Chain.html"title="struct std::io::Chain">Chain</a><T, U></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Chain.html"title="struct std::io::Chain">Chain</a><T, U></h3><codeclass="content"><spanclass="where fmt-newline">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a> for <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Chain.html"title="struct std::io::Chain">Chain</a><T, U><spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a>,<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a>, </span></span></code></div></div><spanid='chain.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.chain'class='fnname'>chain</a><R>(self, next: R) -><aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Chain.html"title="struct std::io::Chain">Chain</a><Self, R><spanclass="where fmt-newline">where<br> R: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a>, </span></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.0.0'>1.0.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/std/io/mod.rs.html#881-883'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Creates an adaptor which will chain this stream with another. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.chain">Read more</a></p>
</div><h4id='method.take'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Take.html"title="struct std::io::Take">Take</a><T></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Take.html"title="struct std::io::Take">Take</a><T></h3><codeclass="content"><spanclass="where fmt-newline">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a> for <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Take.html"title="struct std::io::Take">Take</a><T><spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a>, </span></span></code></div></div><spanid='take.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.take'class='fnname'>take</a>(self, limit: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -><aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.Take.html"title="struct std::io::Take">Take</a><Self></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.0.0'>1.0.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/std/io/mod.rs.html#917-919'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Creates an adaptor which will read at most <code>limit</code> bytes from it. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Read.html#method.take">Read more</a></p>
</div></div><h3id='impl-AsyncRead'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl <aclass="trait"href="https://docs.rs/tokio-io/0.1.7/tokio_io/async_read/trait.AsyncRead.html"title="trait tokio_io::async_read::AsyncRead">AsyncRead</a> for <aclass="struct"href="../../actix_web/client/struct.Connection.html"title="struct actix_web::client::Connection">Connection</a></code><ahref='#impl-AsyncRead'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../../src/actix_web/client/connector.rs.html#1134'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.prepare_uninitialized_buffer'class="method"><spanid='prepare_uninitialized_buffer.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>unsafe fn <ahref='https://docs.rs/tokio-io/0.1.7/tokio_io/async_read/trait.AsyncRead.html#method.prepare_uninitialized_buffer'class='fnname'>prepare_uninitialized_buffer</a>(&self, buf: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&mut [</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/tokio-io/0.1.7/src/tokio_io/async_read.rs.html#63-69'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Prepares an uninitialized buffer to be safe to pass to <code>read</code>. Returns <code>true</code> if the supplied buffer was zeroed out. <ahref="https://docs.rs/tokio-io/0.1.7/tokio_io/async_read/trait.AsyncRead.html#method.prepare_uninitialized_buffer">Read more</a></p>
</div><h4id='method.read_buf'class="method"><spanid='read_buf.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/tokio-io/0.1.7/tokio_io/async_read/trait.AsyncRead.html#method.read_buf'class='fnname'>read_buf</a><B>(&mut self, buf: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>B) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="enum"href="https://docs.rs/futures/0.1/futures/poll/enum.Async.html"title="enum futures::poll::Async">Async</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>, <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>><spanclass="where fmt-newline">where<br> B: <aclass="trait"href="https://docs.rs/bytes/0.4.9/bytes/buf/buf_mut/trait.BufMut.html"title="trait bytes::buf::buf_mut::BufMut">BufMut</a>, </span></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/tokio-io/0.1.7/src/tokio_io/async_read.rs.html#95-114'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Pull some bytes from this source into the specified <code>Buf</code>, returning how many bytes were read. <ahref="https://docs.rs/tokio-io/0.1.7/tokio_io/async_read/trait.AsyncRead.html#method.read_buf">Read more</a></p>
</div></div><divclass='docblock'><p>Provides a <code>Stream</code> and <code>Sink</code> interface for reading and writing to this <code>Io</code> object, using <code>Decode</code> and <code>Encode</code> to read and write the raw data. <ahref="https://docs.rs/tokio-io/0.1.7/tokio_io/async_read/trait.AsyncRead.html#method.framed">Read more</a></p>
</div><h4id='method.split'class="method"><spanid='split.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/tokio-io/0.1.7/tokio_io/async_read/trait.AsyncRead.html#method.split'class='fnname'>split</a>(self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><aclass="struct"href="https://docs.rs/tokio-io/0.1.7/tokio_io/split/struct.ReadHalf.html"title="struct tokio_io::split::ReadHalf">ReadHalf</a><Self>, <aclass="struct"href="https://docs.rs/tokio-io/0.1.7/tokio_io/split/struct.WriteHalf.html"title="struct tokio_io::split::WriteHalf">WriteHalf</a><Self><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a><spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://docs.rs/tokio-io/0.1.7/tokio_io/async_write/trait.AsyncWrite.html"title="trait tokio_io::async_write::AsyncWrite">AsyncWrite</a>, </span></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/tokio-io/0.1.7/src/tokio_io/async_read.rs.html#145-149'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Helper method for splitting this read/write object into two halves. <ahref="https://docs.rs/tokio-io/0.1.7/tokio_io/async_read/trait.AsyncRead.html#method.split">Read more</a></p>
</div></div><h3id='impl-Write'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> for <aclass="struct"href="../../actix_web/client/struct.Connection.html"title="struct actix_web::client::Connection">Connection</a></code><ahref='#impl-Write'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../../src/actix_web/client/connector.rs.html#1136-1144'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.write'class="method"><spanid='write.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Write.html#tymethod.write'class='fnname'>write</a>(&mut self, buf: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -><aclass="type"href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html"title="type std::io::error::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../../src/actix_web/client/connector.rs.html#1137-1139'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Write a buffer into this object, returning how many bytes were written. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Write.html#tymethod.write">Read more</a></p>
</div><h4id='method.flush'class="method"><spanid='flush.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Write.html#tymethod.flush'class='fnname'>flush</a>(&mut self) -><aclass="type"href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html"title="type std::io::error::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../../src/actix_web/client/connector.rs.html#1141-1143'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Flush this output stream, ensuring that all intermediately buffered contents reach their destination. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Write.html#tymethod.flush">Read more</a></p>
</div><h4id='method.write_all'class="method"><spanid='write_all.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Write.html#method.write_all'class='fnname'>write_all</a>(&mut self, buf: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.0.0'>1.0.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/std/io/mod.rs.html#1109-1120'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Attempts to write an entire buffer into this write. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Write.html#method.write_all">Read more</a></p>
</div><h4id='method.write_fmt'class="method"><spanid='write_fmt.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Write.html#method.write_fmt'class='fnname'>write_fmt</a>(&mut self, fmt: <aclass="struct"href="https://doc.rust-lang.org/nightly/core/fmt/struct.Arguments.html"title="struct core::fmt::Arguments">Arguments</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.0.0'>1.0.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/std/io/mod.rs.html#1161-1193'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Writes a formatted string into this writer, returning any error encountered. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Write.html#method.write_fmt">Read more</a></p>
</div><h4id='method.by_ref-1'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>R</span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>R</h3><codeclass="content"><spanclass="where fmt-newline">impl<'a, R><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>R <spanclass="where fmt-newline">where<br> R: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html"title="trait std::io::Read">Read</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></span><spanclass="where fmt-newline">impl<'a, W><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>W <spanclass="where fmt-newline">where<br> W: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></span><spanclass="where fmt-newline">impl<'a, I><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html"title="trait core::iter::iterator::Iterator">Iterator</a> for <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>I <spanclass="where fmt-newline">where<br> I: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html"title="trait core::iter::iterator::Iterator">Iterator</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = <I as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html"title="trait core::iter::iterator::Iterator">Iterator</a>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item"title="type core::iter::iterator::Iterator::Item">Item</a>;</span></code></div></div><spanid='by_ref.v-1'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Write.html#method.by_ref'class='fnname'>by_ref</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self</code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><divclass='since'title='Stable since Rust version 1.0.0'>1.0.0</div><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/std/io/mod.rs.html#1217'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Creates a "by reference" adaptor for this instance of <code>Write</code>. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Write.html#method.by_ref">Read more</a></p>
</div></div><h3id='impl-AsyncWrite'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl <aclass="trait"href="https://docs.rs/tokio-io/0.1.7/tokio_io/async_write/trait.AsyncWrite.html"title="trait tokio_io::async_write::AsyncWrite">AsyncWrite</a> for <aclass="struct"href="../../actix_web/client/struct.Connection.html"title="struct actix_web::client::Connection">Connection</a></code><ahref='#impl-AsyncWrite'class='anchor'></a></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../../src/actix_web/client/connector.rs.html#1146-1150'title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><divclass='impl-items'><h4id='method.shutdown'class="method"><spanid='shutdown.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/tokio-io/0.1.7/tokio_io/async_write/trait.AsyncWrite.html#tymethod.shutdown'class='fnname'>shutdown</a>(&mut self) -><aclass="type"href="https://docs.rs/futures/0.1/futures/poll/type.Poll.html"title="type futures::poll::Poll">Poll</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='../../src/actix_web/client/connector.rs.html#1147-1149'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Initiates or attempts to shut down this writer, returning success when the I/O connection has completely shut down. <ahref="https://docs.rs/tokio-io/0.1.7/tokio_io/async_write/trait.AsyncWrite.html#tymethod.shutdown">Read more</a></p>
</div><h4id='method.poll_write'class="method"><spanid='poll_write.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/tokio-io/0.1.7/tokio_io/async_write/trait.AsyncWrite.html#method.poll_write'class='fnname'>poll_write</a>(&mut self, buf: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="enum"href="https://docs.rs/futures/0.1/futures/poll/enum.Async.html"title="enum futures::poll::Async">Async</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>, <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/tokio-io/0.1.7/src/tokio_io/async_write.rs.html#45-53'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Attempt to write bytes from <code>buf</code> into the object. <ahref="https://docs.rs/tokio-io/0.1.7/tokio_io/async_write/trait.AsyncWrite.html#method.poll_write">Read more</a></p>
</div><h4id='method.poll_flush'class="method"><spanid='poll_flush.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/tokio-io/0.1.7/tokio_io/async_write/trait.AsyncWrite.html#method.poll_flush'class='fnname'>poll_flush</a>(&mut self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="enum"href="https://docs.rs/futures/0.1/futures/poll/enum.Async.html"title="enum futures::poll::Async">Async</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/tokio-io/0.1.7/src/tokio_io/async_write.rs.html#64-72'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Attempt to flush the object, ensuring that any buffered data reach their destination. <ahref="https://docs.rs/tokio-io/0.1.7/tokio_io/async_write/trait.AsyncWrite.html#method.poll_flush">Read more</a></p>
</div><h4id='method.write_buf'class="method"><spanid='write_buf.v'class='invisible'><tableclass='table-display'><tbody><tr><td><code>fn <ahref='https://docs.rs/tokio-io/0.1.7/tokio_io/async_write/trait.AsyncWrite.html#method.write_buf'class='fnname'>write_buf</a><B>(&mut self, buf: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>B) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="enum"href="https://docs.rs/futures/0.1/futures/poll/enum.Async.html"title="enum futures::poll::Async">Async</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>, <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>><spanclass="where fmt-newline">where<br> B: <aclass="trait"href="https://docs.rs/bytes/0.4.9/bytes/buf/buf/trait.Buf.html"title="trait bytes::buf::buf::Buf">Buf</a>, </span></code></span></td><td><spanclass='out-of-band'><divclass='ghost'></div><aclass='srclink'href='https://docs.rs/tokio-io/0.1.7/src/tokio_io/async_write.rs.html#138-148'title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><divclass='docblock'><p>Write a <code>Buf</code> into this value, returning how many bytes were written. <ahref="https://docs.rs/tokio-io/0.1.7/tokio_io/async_write/trait.AsyncWrite.html#method.write_buf">Read more</a></p>
Auto Trait Implementations<ahref='#synthetic-implementations'class='anchor'></a>
</h2>
<divid='synthetic-implementations-list'>
<h3id='impl-Send'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a> for <aclass="struct"href="../../actix_web/client/struct.Connection.html"title="struct actix_web::client::Connection">Connection</a></code><ahref='#impl-Send'class='anchor'></a></span></td><td><spanclass='out-of-band'></span></td></tr></tbody></table></h3><divclass='impl-items'></div><h3id='impl-Sync'class='impl'><spanclass='in-band'><tableclass='table-display'><tbody><tr><td><code>impl !<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html"title="trait core::marker::Sync">Sync</a> for <aclass="struct"href="../../actix_web/client/struct.Connection.html"title="struct actix_web::client::Connection">Connection</a></code><ahref='#impl-Sync'class='anchor'></a></span></td><td><spanclass='out-of-band'></span></td></tr></tbody></table></h3><divclass='impl-items'></div></div></section><sectionid="search"class="content hidden"></section><sectionclass="footer"></section><asideid="help"class="hidden"><div><h1class="hidden">Help</h1><divclass="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><divclass="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath="../../";window.currentCrate="actix_web";</script><scriptsrc="../../aliases.js"></script><scriptsrc="../../main.js"></script><scriptdefersrc="../../search-index.js"></script></body></html>