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