blob: a9d74027bf0c62c11ef0e03a241ce87ce369903e [file] [log] [blame]
<!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="Trait representing a streaming body of a Request or Response."><meta name="keywords" content="rust, rustlang, rust-lang, HttpBody"><title>HttpBody in hyper::body - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../hyper/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../hyper/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">HttpBody</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Data">Data</a></li><li><a href="#associatedtype.Error">Error</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.poll_data">poll_data</a></li><li><a href="#tymethod.poll_trailers">poll_trailers</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.boxed">boxed</a></li><li><a href="#method.boxed_unsync">boxed_unsync</a></li><li><a href="#method.data">data</a></li><li><a href="#method.is_end_stream">is_end_stream</a></li><li><a href="#method.map_data">map_data</a></li><li><a href="#method.map_err">map_err</a></li><li><a href="#method.size_hint">size_hint</a></li><li><a href="#method.trailers">trailers</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Body-for-%26mut%20T">&amp;mut T</a></li><li><a href="#impl-Body-for-Box%3CT%2C%20Global%3E">Box&lt;T, Global&gt;</a></li><li><a href="#impl-Body-for-Pin%3CP%3E">Pin&lt;P&gt;</a></li><li><a href="#impl-Body-for-String">String</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In hyper::body</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Trait <a href="../index.html">hyper</a>::<wbr><a href="index.html">body</a>::<wbr><a class="trait" href="#">HttpBody</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/http_body/lib.rs.html#46">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="item-decl"><pre class="rust trait"><code>pub trait HttpBody {
type <a href="#associatedtype.Data" class="associatedtype">Data</a>: <a class="trait" href="trait.Buf.html" title="trait hyper::body::Buf">Buf</a>;
type <a href="#associatedtype.Error" class="associatedtype">Error</a>;
fn <a href="#tymethod.poll_data" class="fnname">poll_data</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>Self&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cx: &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;<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&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/option/enum.Option.html" title="enum core::option::Option">Option</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;Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>, Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.poll_trailers" class="fnname">poll_trailers</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>Self&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cx: &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;<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../header/struct.HeaderMap.html" title="struct hyper::header::HeaderMap">HeaderMap</a>&lt;<a class="struct" href="../header/struct.HeaderValue.html" title="struct hyper::header::HeaderValue">HeaderValue</a>&gt;&gt;, Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;;
fn <a href="#method.is_end_stream" class="fnname">is_end_stream</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> { ... }
<span class="item-spacer"></span> fn <a href="#method.size_hint" class="fnname">size_hint</a>(&amp;self) -&gt; <a class="struct" href="struct.SizeHint.html" title="struct hyper::body::SizeHint">SizeHint</a> { ... }
<span class="item-spacer"></span> fn <a href="#method.data" class="fnname">data</a>(&amp;mut self) -&gt; <a class="struct" href="../../http_body/next/struct.Data.html" title="struct http_body::next::Data">Data</a>&lt;'_, Self&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.trailers" class="fnname">trailers</a>(&amp;mut self) -&gt; <a class="struct" href="../../http_body/next/struct.Trailers.html" title="struct http_body::next::Trailers">Trailers</a>&lt;'_, Self&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.map_data" class="fnname">map_data</a>&lt;F, B&gt;(self, f: F) -&gt; <a class="struct" href="../../http_body/combinators/map_data/struct.MapData.html" title="struct http_body::combinators::map_data::MapData">MapData</a>&lt;Self, F&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>) -&gt; B,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="trait.Buf.html" title="trait hyper::body::Buf">Buf</a></span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.map_err" class="fnname">map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../http_body/combinators/map_err/struct.MapErr.html" title="struct http_body::combinators::map_err::MapErr">MapErr</a>&lt;Self, F&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>) -&gt; E</span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.boxed" class="fnname">boxed</a>(self) -&gt; <a class="struct" href="../../http_body/combinators/box_body/struct.BoxBody.html" title="struct http_body::combinators::box_body::BoxBody">BoxBody</a>&lt;Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>, Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a></span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.boxed_unsync" class="fnname">boxed_unsync</a>(self) -&gt; <a class="struct" href="../../http_body/combinators/box_body/struct.UnsyncBoxBody.html" title="struct http_body::combinators::box_body::UnsyncBoxBody">UnsyncBoxBody</a>&lt;Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>, Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a></span>,
{ ... }
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Trait representing a streaming body of a Request or Response.</p>
<p>Data is streamed via the <code>poll_data</code> function, which asynchronously yields <code>T: Buf</code> values. The
<code>size_hint</code> function provides insight into the total number of bytes that will be streamed.</p>
<p>The <code>poll_trailers</code> function returns an optional set of trailers used to finalize the request /
response exchange. This is mostly used when using the HTTP/2.0 protocol.</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle method-toggle" open><summary><section id="associatedtype.Data" class="method has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#48">source</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a>: <a class="trait" href="trait.Buf.html" title="trait hyper::body::Buf">Buf</a></h4></section></summary><div class="docblock"><p>Values yielded by the <code>Body</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="associatedtype.Error" class="method has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#51">source</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a></h4></section></summary><div class="docblock"><p>The error type this <code>Body</code> might generate.</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle method-toggle" open><summary><section id="tymethod.poll_data" class="method has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#54-57">source</a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fnname">poll_data</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>Self&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &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;<br>) -&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/option/enum.Option.html" title="enum core::option::Option">Option</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;Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>, Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;&gt;</h4></section></summary><div class="docblock"><p>Attempt to pull out the next data buffer of this stream.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="tymethod.poll_trailers" class="method has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#62-65">source</a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fnname">poll_trailers</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>Self&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &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;<br>) -&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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../header/struct.HeaderMap.html" title="struct hyper::header::HeaderMap">HeaderMap</a>&lt;<a class="struct" href="../header/struct.HeaderValue.html" title="struct hyper::header::HeaderValue">HeaderValue</a>&gt;&gt;, Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Poll for an optional <strong>single</strong> <code>HeaderMap</code> of trailers.</p>
<p>This function should only be called once <code>poll_data</code> returns <code>None</code>.</p>
</div></details></div><h2 id="provided-methods" class="small-section-header">Provided Methods<a href="#provided-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_end_stream" class="method has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#74">source</a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fnname">is_end_stream</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> when the end of stream has been reached.</p>
<p>An end of stream means that both <code>poll_data</code> and <code>poll_trailers</code> will
return <code>None</code>.</p>
<p>A return value of <code>false</code> <strong>does not</strong> guarantee that a value will be
returned from <code>poll_stream</code> or <code>poll_trailers</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.size_hint" class="method has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#82">source</a><h4 class="code-header">fn <a href="#method.size_hint" class="fnname">size_hint</a>(&amp;self) -&gt; <a class="struct" href="struct.SizeHint.html" title="struct hyper::body::SizeHint">SizeHint</a></h4></section></summary><div class="docblock"><p>Returns the bounds on the remaining length of the stream.</p>
<p>When the <strong>exact</strong> remaining length of the stream is known, the upper bound will be set and
will equal the lower bound.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.data" class="method has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#87-89">source</a><h4 class="code-header">fn <a href="#method.data" class="fnname">data</a>(&amp;mut self) -&gt; <a class="struct" href="../../http_body/next/struct.Data.html" title="struct http_body::next::Data">Data</a>&lt;'_, Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</span></h4></section></summary><div class="docblock"><p>Returns future that resolves to next data chunk, if any.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.trailers" class="method has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#95-97">source</a><h4 class="code-header">fn <a href="#method.trailers" class="fnname">trailers</a>(&amp;mut self) -&gt; <a class="struct" href="../../http_body/next/struct.Trailers.html" title="struct http_body::next::Trailers">Trailers</a>&lt;'_, Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</span></h4></section></summary><div class="docblock"><p>Returns future that resolves to trailers, if any.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map_data" class="method has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#103-107">source</a><h4 class="code-header">fn <a href="#method.map_data" class="fnname">map_data</a>&lt;F, B&gt;(self, f: F) -&gt; <a class="struct" href="../../http_body/combinators/map_data/struct.MapData.html" title="struct http_body::combinators::map_data::MapData">MapData</a>&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>) -&gt; B,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="trait.Buf.html" title="trait hyper::body::Buf">Buf</a>,</span></h4></section></summary><div class="docblock"><p>Maps this body’s data value to a different value.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map_err" class="method has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#113-116">source</a><h4 class="code-header">fn <a href="#method.map_err" class="fnname">map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../http_body/combinators/map_err/struct.MapErr.html" title="struct http_body::combinators::map_err::MapErr">MapErr</a>&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>) -&gt; E,</span></h4></section></summary><div class="docblock"><p>Maps this body’s error value to a different value.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.boxed" class="method has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#122-124">source</a><h4 class="code-header">fn <a href="#method.boxed" class="fnname">boxed</a>(self) -&gt; <a class="struct" href="../../http_body/combinators/box_body/struct.BoxBody.html" title="struct http_body::combinators::box_body::BoxBody">BoxBody</a>&lt;Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>, Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</span></h4></section></summary><div class="docblock"><p>Turn this body into a boxed trait object.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.boxed_unsync" class="method has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#130-132">source</a><h4 class="code-header">fn <a href="#method.boxed_unsync" class="fnname">boxed_unsync</a>(self) -&gt; <a class="struct" href="../../http_body/combinators/box_body/struct.UnsyncBoxBody.html" title="struct http_body::combinators::box_body::UnsyncBoxBody">UnsyncBoxBody</a>&lt;Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>, Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</span></h4></section></summary><div class="docblock"><p>Turn this body into a boxed trait object that is !Sync.</p>
</div></details></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Body-for-String" class="impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#289">source</a><a href="#impl-Body-for-String" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Data-1" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = <a class="struct" href="struct.Bytes.html" title="struct hyper::body::Bytes">Bytes</a></h4></section><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a href="#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><section id="method.poll_data" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#293-296">source</a><a href="#method.poll_data" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fnname">poll_data</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;&amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;_cx: &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;<br>) -&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/option/enum.Option.html" title="enum core::option::Option">Option</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="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a> as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>, &lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a> as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;&gt;</h4></section><section id="method.poll_trailers" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#305-308">source</a><a href="#method.poll_trailers" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fnname">poll_trailers</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;&amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;_cx: &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;<br>) -&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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../header/struct.HeaderMap.html" title="struct hyper::header::HeaderMap">HeaderMap</a>&lt;<a class="struct" href="../header/struct.HeaderValue.html" title="struct hyper::header::HeaderValue">HeaderValue</a>&gt;&gt;, &lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a> as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;</h4></section><section id="method.is_end_stream-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#312">source</a><a href="#method.is_end_stream-1" class="anchor"></a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fnname">is_end_stream</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section><section id="method.size_hint-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#316">source</a><a href="#method.size_hint-1" class="anchor"></a><h4 class="code-header">fn <a href="#method.size_hint" class="fnname">size_hint</a>(&amp;self) -&gt; <a class="struct" href="struct.SizeHint.html" title="struct hyper::body::SizeHint">SizeHint</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Body-for-%26mut%20T" class="impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#138">source</a><a href="#impl-Body-for-%26mut%20T" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Data-2" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = &lt;T as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a></h4></section><section id="associatedtype.Error-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-2" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = &lt;T as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a></h4></section><section id="method.poll_data-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#142-145">source</a><a href="#method.poll_data-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fnname">poll_data</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;&amp;mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &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;<br>) -&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/option/enum.Option.html" title="enum core::option::Option">Option</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>, &lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;&gt;</h4></section><section id="method.poll_trailers-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#149-152">source</a><a href="#method.poll_trailers-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fnname">poll_trailers</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;&amp;mut <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &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;<br>) -&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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../header/struct.HeaderMap.html" title="struct hyper::header::HeaderMap">HeaderMap</a>&lt;<a class="struct" href="../header/struct.HeaderValue.html" title="struct hyper::header::HeaderValue">HeaderValue</a>&gt;&gt;, &lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>T as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;</h4></section><section id="method.is_end_stream-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#156">source</a><a href="#method.is_end_stream-2" class="anchor"></a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fnname">is_end_stream</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section><section id="method.size_hint-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#160">source</a><a href="#method.size_hint-2" class="anchor"></a><h4 class="code-header">fn <a href="#method.size_hint" class="fnname">size_hint</a>(&amp;self) -&gt; <a class="struct" href="struct.SizeHint.html" title="struct hyper::body::SizeHint">SizeHint</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Body-for-Box%3CT%2C%20Global%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#196">source</a><a href="#impl-Body-for-Box%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;T, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-3" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Data-3" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = &lt;T as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a></h4></section><section id="associatedtype.Error-3" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-3" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = &lt;T as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a></h4></section><section id="method.poll_data-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#200-203">source</a><a href="#method.poll_data-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fnname">poll_data</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;&amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;T, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &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;<br>) -&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/option/enum.Option.html" title="enum core::option::Option">Option</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="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;T, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt; as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>, &lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;T, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt; as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;&gt;</h4></section><section id="method.poll_trailers-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#207-210">source</a><a href="#method.poll_trailers-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fnname">poll_trailers</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;&amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;T, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &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;<br>) -&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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../header/struct.HeaderMap.html" title="struct hyper::header::HeaderMap">HeaderMap</a>&lt;<a class="struct" href="../header/struct.HeaderValue.html" title="struct hyper::header::HeaderValue">HeaderValue</a>&gt;&gt;, &lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;T, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt; as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;</h4></section><section id="method.is_end_stream-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#214">source</a><a href="#method.is_end_stream-3" class="anchor"></a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fnname">is_end_stream</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section><section id="method.size_hint-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#218">source</a><a href="#method.size_hint-3" class="anchor"></a><h4 class="code-header">fn <a href="#method.size_hint" class="fnname">size_hint</a>(&amp;self) -&gt; <a class="struct" href="struct.SizeHint.html" title="struct hyper::body::SizeHint">SizeHint</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Body-for-Pin%3CP%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#165">source</a><a href="#impl-Body-for-Pin%3CP%3E" class="anchor"></a><h3 class="code-header">impl&lt;P&gt; <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;P&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;P as <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>: <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-4" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Data-4" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = &lt;&lt;P as <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a> as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a></h4></section><section id="associatedtype.Error-4" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-4" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = &lt;&lt;P as <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a> as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a></h4></section><section id="method.poll_data-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#173-176">source</a><a href="#method.poll_data-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fnname">poll_data</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;&amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;P&gt;&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &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;<br>) -&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/option/enum.Option.html" title="enum core::option::Option">Option</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="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;P&gt; as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>, &lt;<a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;P&gt; as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;&gt;</h4></section><section id="method.poll_trailers-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#180-183">source</a><a href="#method.poll_trailers-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fnname">poll_trailers</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;&amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;P&gt;&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &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;<br>) -&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="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../header/struct.HeaderMap.html" title="struct hyper::header::HeaderMap">HeaderMap</a>&lt;<a class="struct" href="../header/struct.HeaderValue.html" title="struct hyper::header::HeaderValue">HeaderValue</a>&gt;&gt;, &lt;<a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;P&gt; as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;</h4></section><section id="method.is_end_stream-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#187">source</a><a href="#method.is_end_stream-4" class="anchor"></a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fnname">is_end_stream</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section><section id="method.size_hint-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#191">source</a><a href="#method.size_hint-4" class="anchor"></a><h4 class="code-header">fn <a href="#method.size_hint" class="fnname">size_hint</a>(&amp;self) -&gt; <a class="struct" href="struct.SizeHint.html" title="struct hyper::body::SizeHint">SizeHint</a></h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div id="implementors-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Body-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#359-438">source</a><a href="#impl-Body-for-Body" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-5" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Data-5" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = <a class="struct" href="struct.Bytes.html" title="struct hyper::body::Bytes">Bytes</a></h4></section><section id="associatedtype.Error-5" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-5" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../struct.Error.html" title="struct hyper::Error">Error</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Body-for-Limited%3CB%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/http_body/limited.rs.html#33">source</a><a href="#impl-Body-for-Limited%3CB%3E" class="anchor"></a><h3 class="code-header">impl&lt;B&gt; <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="struct" href="../../http_body/limited/struct.Limited.html" title="struct http_body::limited::Limited">Limited</a>&lt;B&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;B as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>: <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="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/error/trait.Error.html" title="trait core::error::Error">Error</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;&gt;,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-6" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Data-6" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = &lt;B as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a></h4></section><section id="associatedtype.Error-6" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-6" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/error/trait.Error.html" title="trait core::error::Error">Error</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>&gt;</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Body-for-Request%3CB%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#223">source</a><a href="#impl-Body-for-Request%3CB%3E" class="anchor"></a><h3 class="code-header">impl&lt;B&gt; <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="struct" href="../struct.Request.html" title="struct hyper::Request">Request</a>&lt;B&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-7" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Data-7" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = &lt;B as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a></h4></section><section id="associatedtype.Error-7" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-7" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = &lt;B as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Body-for-Response%3CB%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#256">source</a><a href="#impl-Body-for-Response%3CB%3E" class="anchor"></a><h3 class="code-header">impl&lt;B&gt; <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="struct" href="../struct.Response.html" title="struct hyper::Response">Response</a>&lt;B&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-8" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Data-8" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = &lt;B as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a></h4></section><section id="associatedtype.Error-8" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-8" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = &lt;B as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Body-for-MapData%3CB%2C%20F%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/http_body/combinators/map_data.rs.html#50">source</a><a href="#impl-Body-for-MapData%3CB%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;B, F, B2&gt; <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="struct" href="../../http_body/combinators/map_data/struct.MapData.html" title="struct http_body::combinators::map_data::MapData">MapData</a>&lt;B, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&lt;B as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>) -&gt; B2,<br>&nbsp;&nbsp;&nbsp;&nbsp;B2: <a class="trait" href="trait.Buf.html" title="trait hyper::body::Buf">Buf</a>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-9" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Data-9" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = B2</h4></section><section id="associatedtype.Error-9" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-9" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = &lt;B as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Body-for-MapErr%3CB%2C%20F%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/http_body/combinators/map_err.rs.html#49">source</a><a href="#impl-Body-for-MapErr%3CB%2C%20F%3E" class="anchor"></a><h3 class="code-header">impl&lt;B, F, E&gt; <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="struct" href="../../http_body/combinators/map_err/struct.MapErr.html" title="struct http_body::combinators::map_err::MapErr">MapErr</a>&lt;B, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&lt;B as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>) -&gt; E,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-10" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Data-10" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = &lt;B as <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>&gt;::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a></h4></section><section id="associatedtype.Error-10" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-10" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Body-for-Empty%3CD%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/http_body/empty.rs.html#24">source</a><a href="#impl-Body-for-Empty%3CD%3E" class="anchor"></a><h3 class="code-header">impl&lt;D&gt; <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="struct" href="../../http_body/empty/struct.Empty.html" title="struct http_body::empty::Empty">Empty</a>&lt;D&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;D: <a class="trait" href="trait.Buf.html" title="trait hyper::body::Buf">Buf</a>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-11" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Data-11" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = D</h4></section><section id="associatedtype.Error-11" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-11" class="anchor"></a><h4 class="code-header">type <a href="#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></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Body-for-Full%3CD%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/http_body/full.rs.html#33">source</a><a href="#impl-Body-for-Full%3CD%3E" class="anchor"></a><h3 class="code-header">impl&lt;D&gt; <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="struct" href="../../http_body/full/struct.Full.html" title="struct http_body::full::Full">Full</a>&lt;D&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;D: <a class="trait" href="trait.Buf.html" title="trait hyper::body::Buf">Buf</a>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-12" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Data-12" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = D</h4></section><section id="associatedtype.Error-12" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-12" class="anchor"></a><h4 class="code-header">type <a href="#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></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Body-for-BoxBody%3CD%2C%20E%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/http_body/combinators/box_body.rs.html#38">source</a><a href="#impl-Body-for-BoxBody%3CD%2C%20E%3E" class="anchor"></a><h3 class="code-header">impl&lt;D, E&gt; <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="struct" href="../../http_body/combinators/box_body/struct.BoxBody.html" title="struct http_body::combinators::box_body::BoxBody">BoxBody</a>&lt;D, E&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;D: <a class="trait" href="trait.Buf.html" title="trait hyper::body::Buf">Buf</a>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-13" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Data-13" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = D</h4></section><section id="associatedtype.Error-13" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-13" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Body-for-UnsyncBoxBody%3CD%2C%20E%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/http_body/combinators/box_body.rs.html#97">source</a><a href="#impl-Body-for-UnsyncBoxBody%3CD%2C%20E%3E" class="anchor"></a><h3 class="code-header">impl&lt;D, E&gt; <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="struct" href="../../http_body/combinators/box_body/struct.UnsyncBoxBody.html" title="struct http_body::combinators::box_body::UnsyncBoxBody">UnsyncBoxBody</a>&lt;D, E&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;D: <a class="trait" href="trait.Buf.html" title="trait hyper::body::Buf">Buf</a>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-14" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Data-14" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = D</h4></section><section id="associatedtype.Error-14" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-14" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details></div><script src="../../implementors/http_body/trait.Body.js" data-ignore-extern-crates="http,alloc,core,http_body" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="hyper" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html>