Files
google-apis-rs/http_body/trait.Body.html
2024-03-05 21:06:01 +01:00

121 lines
70 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

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

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Trait representing a streaming body of a Request or Response."><title>Body in http_body - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-ac92e1bbe349e143.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="http_body" data-themes="" data-resource-suffix="" data-rustdoc-version="1.76.0 (07dca489a 2024-02-04)" data-channel="1.76.0" data-search-js="search-2b6ce74ff89ae146.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-f2adc0d6ca4d09fb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-305769736d49e732.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-feafe1bb7466e4bd.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc 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></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../http_body/index.html">http_body</a><span class="version">0.4.5</span></h2></div><h2 class="location"><a href="#">Body</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+T">&amp;mut T</a></li><li><a href="#impl-Body-for-Box%3CT%3E">Box&lt;T&gt;</a></li><li><a href="#impl-Body-for-Pin%3CP%3E">Pin&lt;P&gt;</a></li><li><a href="#impl-Body-for-Request%3CB%3E">Request&lt;B&gt;</a></li><li><a href="#impl-Body-for-Response%3CB%3E">Response&lt;B&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 crate http_body</a></h2></div></nav><div class="sidebar-resizer"></div>
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../http_body/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="index.html">http_body</a>::<wbr><a class="trait" href="#">Body</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/http_body/lib.rs.html#46-136">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait Body {
type <a href="#associatedtype.Data" class="associatedtype">Data</a>: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>;
type <a href="#associatedtype.Error" class="associatedtype">Error</a>;
// Required methods
fn <a href="#tymethod.poll_data" class="fn">poll_data</a>(
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut Self</a>&gt;,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;&gt;&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.poll_trailers" class="fn">poll_trailers</a>(
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut Self</a>&gt;,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../http/header/map/struct.HeaderMap.html" title="struct http::header::map::HeaderMap">HeaderMap</a>&gt;, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;&gt;;
// Provided methods
fn <a href="#method.is_end_stream" class="fn">is_end_stream</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a> { ... }
<span class="item-spacer"></span> fn <a href="#method.size_hint" class="fn">size_hint</a>(&amp;self) -&gt; <a class="struct" href="struct.SizeHint.html" title="struct http_body::SizeHint">SizeHint</a> { ... }
<span class="item-spacer"></span> fn <a href="#method.data" class="fn">data</a>(&amp;mut self) -&gt; <a class="struct" href="struct.Data.html" title="struct http_body::Data">Data</a>&lt;'_, Self&gt; <a href="#" class="tooltip" data-notable-ty="Data&lt;&#39;_, Self&gt;"></a>
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.trailers" class="fn">trailers</a>(&amp;mut self) -&gt; <a class="struct" href="struct.Trailers.html" title="struct http_body::Trailers">Trailers</a>&lt;'_, Self&gt; <a href="#" class="tooltip" data-notable-ty="Trailers&lt;&#39;_, Self&gt;"></a>
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.map_data" class="fn">map_data</a>&lt;F, B&gt;(self, f: F) -&gt; <a class="struct" href="combinators/struct.MapData.html" title="struct http_body::combinators::MapData">MapData</a>&lt;Self, F&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
F: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>) -&gt; B,
B: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.map_err" class="fn">map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="combinators/struct.MapErr.html" title="struct http_body::combinators::MapErr">MapErr</a>&lt;Self, F&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
F: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>) -&gt; E</span> { ... }
<span class="item-spacer"></span> fn <a href="#method.boxed" class="fn">boxed</a>(self) -&gt; <a class="struct" href="combinators/struct.BoxBody.html" title="struct http_body::combinators::BoxBody">BoxBody</a>&lt;Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static</span> { ... }
<span class="item-spacer"></span> fn <a href="#method.boxed_unsync" class="fn">boxed_unsync</a>(self) -&gt; <a class="struct" href="combinators/struct.UnsyncBoxBody.html" title="struct http_body::combinators::UnsyncBoxBody">UnsyncBoxBody</a>&lt;Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static</span> { ... }
}</code></pre><details class="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="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Data" class="method"><a class="src 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="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a></h4></section></summary><div class="docblock"><p>Values yielded by the <code>Body</code>.</p>
</div></details><details class="toggle" open><summary><section id="associatedtype.Error" class="method"><a class="src 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="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.poll_data" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#54-57">source</a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fn">poll_data</a>(
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut Self</a>&gt;,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::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="toggle method-toggle" open><summary><section id="tymethod.poll_trailers" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#62-65">source</a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fn">poll_trailers</a>(
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut Self</a>&gt;,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../http/header/map/struct.HeaderMap.html" title="struct http::header::map::HeaderMap">HeaderMap</a>&gt;, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::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="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.is_end_stream" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#74-76">source</a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fn">is_end_stream</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><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="toggle method-toggle" open><summary><section id="method.size_hint" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#82-84">source</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&amp;self) -&gt; <a class="struct" href="struct.SizeHint.html" title="struct http_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="toggle method-toggle" open><summary><section id="method.data" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#87-92">source</a><h4 class="code-header">fn <a href="#method.data" class="fn">data</a>(&amp;mut self) -&gt; <a class="struct" href="struct.Data.html" title="struct http_body::Data">Data</a>&lt;'_, Self&gt; <a href="#" class="tooltip" data-notable-ty="Data&lt;&#39;_, Self&gt;"></a><div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Returns future that resolves to next data chunk, if any.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.trailers" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#95-100">source</a><h4 class="code-header">fn <a href="#method.trailers" class="fn">trailers</a>(&amp;mut self) -&gt; <a class="struct" href="struct.Trailers.html" title="struct http_body::Trailers">Trailers</a>&lt;'_, Self&gt; <a href="#" class="tooltip" data-notable-ty="Trailers&lt;&#39;_, Self&gt;"></a><div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Returns future that resolves to trailers, if any.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.map_data" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#103-110">source</a><h4 class="code-header">fn <a href="#method.map_data" class="fn">map_data</a>&lt;F, B&gt;(self, f: F) -&gt; <a class="struct" href="combinators/struct.MapData.html" title="struct http_body::combinators::MapData">MapData</a>&lt;Self, F&gt;<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
F: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>) -&gt; B,
B: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,</div></h4></section></summary><div class="docblock"><p>Maps this bodys data value to a different value.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.map_err" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#113-119">source</a><h4 class="code-header">fn <a href="#method.map_err" class="fn">map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="combinators/struct.MapErr.html" title="struct http_body::combinators::MapErr">MapErr</a>&lt;Self, F&gt;<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
F: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>) -&gt; E,</div></h4></section></summary><div class="docblock"><p>Maps this bodys error value to a different value.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.boxed" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#122-127">source</a><h4 class="code-header">fn <a href="#method.boxed" class="fn">boxed</a>(self) -&gt; <a class="struct" href="combinators/struct.BoxBody.html" title="struct http_body::combinators::BoxBody">BoxBody</a>&lt;Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static,</div></h4></section></summary><div class="docblock"><p>Turn this body into a boxed trait object.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.boxed_unsync" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#130-135">source</a><h4 class="code-header">fn <a href="#method.boxed_unsync" class="fn">boxed_unsync</a>(self) -&gt; <a class="struct" href="combinators/struct.UnsyncBoxBody.html" title="struct http_body::combinators::UnsyncBoxBody">UnsyncBoxBody</a>&lt;Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,</div></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="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-String" class="impl"><a class="src rightside" href="../src/http_body/lib.rs.html#289-319">source</a><a href="#impl-Body-for-String" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="https://doc.rust-lang.org/1.76.0/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"><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="../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a></h4></section><section id="associatedtype.Error-1" class="associatedtype trait-impl"><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/1.76.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section><section id="method.poll_data" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#293-303">source</a><a href="#method.poll_data" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fn">poll_data</a>(
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut Self</a>&gt;,
_cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;&gt;&gt;</h4></section><section id="method.poll_trailers" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#305-310">source</a><a href="#method.poll_trailers" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fn">poll_trailers</a>(
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut Self</a>&gt;,
_cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../http/header/map/struct.HeaderMap.html" title="struct http::header::map::HeaderMap">HeaderMap</a>&gt;, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;&gt;</h4></section><section id="method.is_end_stream-1" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#312-314">source</a><a href="#method.is_end_stream-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fn">is_end_stream</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section><section id="method.size_hint-1" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#316-318">source</a><a href="#method.size_hint-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&amp;self) -&gt; <a class="struct" href="struct.SizeHint.html" title="struct http_body::SizeHint">SizeHint</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-Request%3CB%3E" class="impl"><a class="src rightside" href="../src/http_body/lib.rs.html#223-254">source</a><a href="#impl-Body-for-Request%3CB%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B: <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>&gt; <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="../http/request/struct.Request.html" title="struct http::request::Request">Request</a>&lt;B&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Data-2" class="associatedtype trait-impl"><a href="#associatedtype.Data-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = &lt;B as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>&gt;::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a></h4></section><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a href="#associatedtype.Error-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = &lt;B as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>&gt;::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a></h4></section><section id="method.poll_data-1" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#227-235">source</a><a href="#method.poll_data-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fn">poll_data</a>(
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut Self</a>&gt;,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;&gt;&gt;</h4></section><section id="method.poll_trailers-1" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#237-245">source</a><a href="#method.poll_trailers-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fn">poll_trailers</a>(
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut Self</a>&gt;,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../http/header/map/struct.HeaderMap.html" title="struct http::header::map::HeaderMap">HeaderMap</a>&gt;, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;&gt;</h4></section><section id="method.is_end_stream-2" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#247-249">source</a><a href="#method.is_end_stream-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fn">is_end_stream</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section><section id="method.size_hint-2" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#251-253">source</a><a href="#method.size_hint-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&amp;self) -&gt; <a class="struct" href="struct.SizeHint.html" title="struct http_body::SizeHint">SizeHint</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-Response%3CB%3E" class="impl"><a class="src rightside" href="../src/http_body/lib.rs.html#256-287">source</a><a href="#impl-Body-for-Response%3CB%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B: <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>&gt; <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="../http/response/struct.Response.html" title="struct http::response::Response">Response</a>&lt;B&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Data-3" class="associatedtype trait-impl"><a href="#associatedtype.Data-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = &lt;B as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>&gt;::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a></h4></section><section id="associatedtype.Error-3" class="associatedtype trait-impl"><a href="#associatedtype.Error-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = &lt;B as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>&gt;::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a></h4></section><section id="method.poll_data-2" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#260-268">source</a><a href="#method.poll_data-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fn">poll_data</a>(
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut Self</a>&gt;,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;&gt;&gt;</h4></section><section id="method.poll_trailers-2" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#270-278">source</a><a href="#method.poll_trailers-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fn">poll_trailers</a>(
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut Self</a>&gt;,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../http/header/map/struct.HeaderMap.html" title="struct http::header::map::HeaderMap">HeaderMap</a>&gt;, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;&gt;</h4></section><section id="method.is_end_stream-3" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#280-282">source</a><a href="#method.is_end_stream-3" class="anchor">§</a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fn">is_end_stream</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section><section id="method.size_hint-3" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#284-286">source</a><a href="#method.size_hint-3" class="anchor">§</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&amp;self) -&gt; <a class="struct" href="struct.SizeHint.html" title="struct http_body::SizeHint">SizeHint</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-Pin%3CP%3E" class="impl"><a class="src rightside" href="../src/http_body/lib.rs.html#165-194">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.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;P&gt;<div class="where">where
P: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a>,
P::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>: <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-4" class="associatedtype trait-impl"><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/1.76.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a> as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>&gt;::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a></h4></section><section id="associatedtype.Error-4" class="associatedtype trait-impl"><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/1.76.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a> as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>&gt;::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a></h4></section><section id="method.poll_data-3" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#173-178">source</a><a href="#method.poll_data-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fn">poll_data</a>(
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut Self</a>&gt;,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;&gt;&gt;</h4></section><section id="method.poll_trailers-3" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#180-185">source</a><a href="#method.poll_trailers-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fn">poll_trailers</a>(
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut Self</a>&gt;,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../http/header/map/struct.HeaderMap.html" title="struct http::header::map::HeaderMap">HeaderMap</a>&gt;, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;&gt;</h4></section><section id="method.is_end_stream-4" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#187-189">source</a><a href="#method.is_end_stream-4" class="anchor">§</a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fn">is_end_stream</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section><section id="method.size_hint-4" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#191-193">source</a><a href="#method.size_hint-4" class="anchor">§</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&amp;self) -&gt; <a class="struct" href="struct.SizeHint.html" title="struct http_body::SizeHint">SizeHint</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-%26mut+T" class="impl"><a class="src rightside" href="../src/http_body/lib.rs.html#138-163">source</a><a href="#impl-Body-for-%26mut+T" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt; <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut T</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-5" class="associatedtype trait-impl"><a href="#associatedtype.Data-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = &lt;T as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>&gt;::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a></h4></section><section id="associatedtype.Error-5" class="associatedtype trait-impl"><a href="#associatedtype.Error-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = &lt;T as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>&gt;::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a></h4></section><section id="method.poll_data-4" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#142-147">source</a><a href="#method.poll_data-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fn">poll_data</a>(
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut Self</a>&gt;,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;&gt;&gt;</h4></section><section id="method.poll_trailers-4" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#149-154">source</a><a href="#method.poll_trailers-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fn">poll_trailers</a>(
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut Self</a>&gt;,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../http/header/map/struct.HeaderMap.html" title="struct http::header::map::HeaderMap">HeaderMap</a>&gt;, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;&gt;</h4></section><section id="method.is_end_stream-5" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#156-158">source</a><a href="#method.is_end_stream-5" class="anchor">§</a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fn">is_end_stream</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section><section id="method.size_hint-5" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#160-162">source</a><a href="#method.size_hint-5" class="anchor">§</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&amp;self) -&gt; <a class="struct" href="struct.SizeHint.html" title="struct http_body::SizeHint">SizeHint</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-Box%3CT%3E" class="impl"><a class="src rightside" href="../src/http_body/lib.rs.html#196-221">source</a><a href="#impl-Body-for-Box%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt; <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Data-6" class="associatedtype trait-impl"><a href="#associatedtype.Data-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = &lt;T as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>&gt;::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a></h4></section><section id="associatedtype.Error-6" class="associatedtype trait-impl"><a href="#associatedtype.Error-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = &lt;T as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>&gt;::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a></h4></section><section id="method.poll_data-5" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#200-205">source</a><a href="#method.poll_data-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fn">poll_data</a>(
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut Self</a>&gt;,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;&gt;&gt;</h4></section><section id="method.poll_trailers-5" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#207-212">source</a><a href="#method.poll_trailers-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fn">poll_trailers</a>(
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut Self</a>&gt;,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../http/header/map/struct.HeaderMap.html" title="struct http::header::map::HeaderMap">HeaderMap</a>&gt;, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>&gt;&gt;</h4></section><section id="method.is_end_stream-6" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#214-216">source</a><a href="#method.is_end_stream-6" class="anchor">§</a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fn">is_end_stream</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section><section id="method.size_hint-6" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#218-220">source</a><a href="#method.size_hint-6" class="anchor">§</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&amp;self) -&gt; <a class="struct" href="struct.SizeHint.html" title="struct http_body::SizeHint">SizeHint</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-Limited%3CB%3E" class="impl"><a class="src rightside" href="../src/http_body/limited.rs.html#33-99">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.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="struct.Limited.html" title="struct http_body::Limited">Limited</a>&lt;B&gt;<div class="where">where
B: <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>,
B::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/error/trait.Error.html" title="trait core::error::Error">Error</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>&gt;&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-7" class="associatedtype trait-impl"><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.Body.html" title="trait http_body::Body">Body</a>&gt;::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a></h4></section><section id="associatedtype.Error-7" class="associatedtype trait-impl"><a href="#associatedtype.Error-7" 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/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;dyn <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/error/trait.Error.html" title="trait core::error::Error">Error</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-MapData%3CB,+F%3E" class="impl"><a class="src rightside" href="../src/http_body/combinators/map_data.rs.html#50-82">source</a><a href="#impl-Body-for-MapData%3CB,+F%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, F, B2&gt; <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="combinators/struct.MapData.html" title="struct http_body::combinators::MapData">MapData</a>&lt;B, F&gt;<div class="where">where
B: <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>,
F: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(B::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>) -&gt; B2,
B2: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-8" class="associatedtype trait-impl"><a href="#associatedtype.Data-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = B2</h4></section><section id="associatedtype.Error-8" class="associatedtype trait-impl"><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.Body.html" title="trait http_body::Body">Body</a>&gt;::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-MapErr%3CB,+F%3E" class="impl"><a class="src rightside" href="../src/http_body/combinators/map_err.rs.html#49-85">source</a><a href="#impl-Body-for-MapErr%3CB,+F%3E" class="anchor">§</a><h3 class="code-header">impl&lt;B, F, E&gt; <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="combinators/struct.MapErr.html" title="struct http_body::combinators::MapErr">MapErr</a>&lt;B, F&gt;<div class="where">where
B: <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>,
F: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(B::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>) -&gt; E,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-9" class="associatedtype trait-impl"><a href="#associatedtype.Data-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = &lt;B as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>&gt;::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a></h4></section><section id="associatedtype.Error-9" class="associatedtype trait-impl"><a href="#associatedtype.Error-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-Full%3CD%3E" class="impl"><a class="src rightside" href="../src/http_body/full.rs.html#33-64">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.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="struct.Full.html" title="struct http_body::Full">Full</a>&lt;D&gt;<div class="where">where
D: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-10" class="associatedtype trait-impl"><a href="#associatedtype.Data-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = D</h4></section><section id="associatedtype.Error-10" class="associatedtype trait-impl"><a href="#associatedtype.Error-10" 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/1.76.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-BoxBody%3CD,+E%3E" class="impl"><a class="src rightside" href="../src/http_body/combinators/box_body.rs.html#38-66">source</a><a href="#impl-Body-for-BoxBody%3CD,+E%3E" class="anchor">§</a><h3 class="code-header">impl&lt;D, E&gt; <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="combinators/struct.BoxBody.html" title="struct http_body::combinators::BoxBody">BoxBody</a>&lt;D, E&gt;<div class="where">where
D: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-11" class="associatedtype trait-impl"><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"><a href="#associatedtype.Error-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-UnsyncBoxBody%3CD,+E%3E" class="impl"><a class="src rightside" href="../src/http_body/combinators/box_body.rs.html#97-125">source</a><a href="#impl-Body-for-UnsyncBoxBody%3CD,+E%3E" class="anchor">§</a><h3 class="code-header">impl&lt;D, E&gt; <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="combinators/struct.UnsyncBoxBody.html" title="struct http_body::combinators::UnsyncBoxBody">UnsyncBoxBody</a>&lt;D, E&gt;<div class="where">where
D: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-12" class="associatedtype trait-impl"><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"><a href="#associatedtype.Error-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-Empty%3CD%3E" class="impl"><a class="src rightside" href="../src/http_body/empty.rs.html#24-51">source</a><a href="#impl-Body-for-Empty%3CD%3E" class="anchor">§</a><h3 class="code-header">impl&lt;D: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>&gt; <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="struct.Empty.html" title="struct http_body::Empty">Empty</a>&lt;D&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Data-13" class="associatedtype trait-impl"><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"><a href="#associatedtype.Error-13" 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/1.76.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></div></details></div><script src="../trait.impl/http_body/trait.Body.js" data-ignore-extern-crates="alloc,http,core" async></script><script type="text/json" id="notable-traits-data">{"Data<'_, Self>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.Data.html\" title=\"struct http_body::Data\">Data</a>&lt;'a, T&gt;</code></h3><pre><code><div class=\"where\">impl&lt;'a, T: <a class=\"trait\" href=\"trait.Body.html\" title=\"trait http_body::Body\">Body</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html\" title=\"trait core::marker::Unpin\">Unpin</a> + ?<a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html\" title=\"trait core::marker::Sized\">Sized</a>&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a> for <a class=\"struct\" href=\"struct.Data.html\" title=\"struct http_body::Data\">Data</a>&lt;'a, T&gt;</div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/1.76.0/core/future/future/trait.Future.html#associatedtype.Output\" class=\"associatedtype\">Output</a> = <a class=\"enum\" href=\"https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html\" title=\"enum core::option::Option\">Option</a>&lt;<a class=\"enum\" href=\"https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html\" title=\"enum core::result::Result\">Result</a>&lt;T::<a class=\"associatedtype\" href=\"trait.Body.html#associatedtype.Data\" title=\"type http_body::Body::Data\">Data</a>, T::<a class=\"associatedtype\" href=\"trait.Body.html#associatedtype.Error\" title=\"type http_body::Body::Error\">Error</a>&gt;&gt;;</div>","Trailers<'_, Self>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.Trailers.html\" title=\"struct http_body::Trailers\">Trailers</a>&lt;'a, T&gt;</code></h3><pre><code><div class=\"where\">impl&lt;'a, T: <a class=\"trait\" href=\"trait.Body.html\" title=\"trait http_body::Body\">Body</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html\" title=\"trait core::marker::Unpin\">Unpin</a> + ?<a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html\" title=\"trait core::marker::Sized\">Sized</a>&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a> for <a class=\"struct\" href=\"struct.Trailers.html\" title=\"struct http_body::Trailers\">Trailers</a>&lt;'a, T&gt;</div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/1.76.0/core/future/future/trait.Future.html#associatedtype.Output\" class=\"associatedtype\">Output</a> = <a class=\"enum\" href=\"https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html\" title=\"enum core::result::Result\">Result</a>&lt;<a class=\"enum\" href=\"https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html\" title=\"enum core::option::Option\">Option</a>&lt;<a class=\"struct\" href=\"../http/header/map/struct.HeaderMap.html\" title=\"struct http::header::map::HeaderMap\">HeaderMap</a>&gt;, T::<a class=\"associatedtype\" href=\"trait.Body.html#associatedtype.Error\" title=\"type http_body::Body::Error\">Error</a>&gt;;</div>"}</script></section></div></main></body></html>