Files
google-apis-rs/hyper/body/trait.HttpBody.html
2024-03-05 21:06:01 +01:00

114 lines
65 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>HttpBody in hyper::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="hyper" 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="../../hyper/index.html">hyper</a><span class="version">0.14.27</span></h2></div><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+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-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><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="../../hyper/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">hyper</a>::<wbr><a href="index.html">body</a>::<wbr><a class="trait" href="#">HttpBody</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">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 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>;
// 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.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="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="../header/struct.HeaderMap.html" title="struct hyper::header::HeaderMap">HeaderMap</a>&gt;, Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::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 hyper::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="../../http_body/next/struct.Data.html" title="struct http_body::next::Data">Data</a>&lt;'_, Self&gt;
<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="../../http_body/next/struct.Trailers.html" title="struct http_body::next::Trailers">Trailers</a>&lt;'_, Self&gt;
<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="../../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">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.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>) -&gt; B,
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="fn">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">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.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="fn">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">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="../../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">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="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="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.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="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="../header/struct.HeaderMap.html" title="struct hyper::header::HeaderMap">HeaderMap</a>&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="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">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">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 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="toggle method-toggle" open><summary><section id="method.data" class="method"><a class="src rightside" href="../../src/http_body/lib.rs.html#87-89">source</a><h4 class="code-header">fn <a href="#method.data" class="fn">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;<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-97">source</a><h4 class="code-header">fn <a href="#method.trailers" class="fn">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;<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-107">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="../../http_body/combinators/map_data/struct.MapData.html" title="struct http_body::combinators::map_data::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.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>) -&gt; B,
B: <a class="trait" href="trait.Buf.html" title="trait hyper::body::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-116">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="../../http_body/combinators/map_err/struct.MapErr.html" title="struct http_body::combinators::map_err::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.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::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-124">source</a><h4 class="code-header">fn <a href="#method.boxed" class="fn">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;<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-132">source</a><h4 class="code-header">fn <a href="#method.boxed_unsync" class="fn">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;<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">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/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="struct.Bytes.html" title="struct hyper::body::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-296">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;&amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</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;&lt;<a class="struct" href="https://doc.rust-lang.org/1.76.0/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/1.76.0/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"><a class="src 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="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;&amp;mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</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="../header/struct.HeaderMap.html" title="struct hyper::header::HeaderMap">HeaderMap</a>&gt;, &lt;<a class="struct" href="https://doc.rust-lang.org/1.76.0/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"><a class="src 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="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">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 hyper::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-168">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/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>,
&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>: <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>,</div></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;&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.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"><a href="#associatedtype.Error-2" 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.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"><a class="src rightside" href="../../src/http_body/lib.rs.html#173-176">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;&amp;mut <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;&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;&lt;<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; 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/1.76.0/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-1" class="method trait-impl"><a class="src rightside" href="../../src/http_body/lib.rs.html#180-183">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;&amp;mut <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;&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="../header/struct.HeaderMap.html" title="struct hyper::header::HeaderMap">HeaderMap</a>&gt;, &lt;<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; 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"><a class="src rightside" href="../../src/http_body/lib.rs.html#187">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#191">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 hyper::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">source</a><a href="#impl-Body-for-%26mut+T" 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/1.76.0/std/primitive.reference.html">&amp;mut T</a><div class="where">where
T: <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">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>,</div></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;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"><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"><a class="src rightside" href="../../src/http_body/lib.rs.html#142-145">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;&amp;mut <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut T</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;&lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut T</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="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut T</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-2" class="method trait-impl"><a class="src rightside" href="../../src/http_body/lib.rs.html#149-152">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;&amp;mut <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut T</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="../header/struct.HeaderMap.html" title="struct hyper::header::HeaderMap">HeaderMap</a>&gt;, &lt;<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&amp;mut T</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-3" class="method trait-impl"><a class="src rightside" href="../../src/http_body/lib.rs.html#156">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#160">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 hyper::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">source</a><a href="#impl-Body-for-Box%3CT%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/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">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>,</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;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-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;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-3" class="method trait-impl"><a class="src rightside" href="../../src/http_body/lib.rs.html#200-203">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;&amp;mut <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;&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;&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;T&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/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;T&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"><a class="src rightside" href="../../src/http_body/lib.rs.html#207-210">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;&amp;mut <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;&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="../header/struct.HeaderMap.html" title="struct hyper::header::HeaderMap">HeaderMap</a>&gt;, &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;T&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"><a class="src rightside" href="../../src/http_body/lib.rs.html#214">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#218">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 hyper::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-Body" class="impl"><a class="src 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"><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"><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="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-36">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;<div class="where">where
B: <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</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>: <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.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;&gt;,</div></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;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"><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/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-Request%3CB%3E" class="impl"><a class="src 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;<div class="where">where
B: <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a>,</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.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"><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="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">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;<div class="where">where
B: <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</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> = &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"><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="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-54">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.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;<div class="where">where
B: <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">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>(&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,
B2: <a class="trait" href="trait.Buf.html" title="trait hyper::body::Buf">Buf</a>,</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> = B2</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> = &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="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-52">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.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;<div class="where">where
B: <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">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>(&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,</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> = &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"><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="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">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;<div class="where">where
D: <a class="trait" href="trait.Buf.html" title="trait hyper::body::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> = <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-Full%3CD%3E" class="impl"><a class="src rightside" href="../../src/http_body/full.rs.html#33-35">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;<div class="where">where
D: <a class="trait" href="trait.Buf.html" title="trait hyper::body::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> = <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-40">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.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;<div class="where">where
D: <a class="trait" href="trait.Buf.html" title="trait hyper::body::Buf">Buf</a>,</div></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> = 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-99">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.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;<div class="where">where
D: <a class="trait" href="trait.Buf.html" title="trait hyper::body::Buf">Buf</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-14" class="associatedtype trait-impl"><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"><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="../../trait.impl/http_body/trait.Body.js" data-ignore-extern-crates="alloc,core,http,http_body" async></script></section></div></main></body></html>