mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-01-27 04:10:02 +01:00
121 lines
70 KiB
HTML
121 lines
70 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Trait representing a streaming body of a Request or Response."><title>Body in http_body - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-ac92e1bbe349e143.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="http_body" data-themes="" data-resource-suffix="" data-rustdoc-version="1.76.0 (07dca489a 2024-02-04)" data-channel="1.76.0" data-search-js="search-2b6ce74ff89ae146.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-f2adc0d6ca4d09fb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-305769736d49e732.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-feafe1bb7466e4bd.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../http_body/index.html">http_body</a><span class="version">0.4.5</span></h2></div><h2 class="location"><a href="#">Body</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Data">Data</a></li><li><a href="#associatedtype.Error">Error</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.poll_data">poll_data</a></li><li><a href="#tymethod.poll_trailers">poll_trailers</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.boxed">boxed</a></li><li><a href="#method.boxed_unsync">boxed_unsync</a></li><li><a href="#method.data">data</a></li><li><a href="#method.is_end_stream">is_end_stream</a></li><li><a href="#method.map_data">map_data</a></li><li><a href="#method.map_err">map_err</a></li><li><a href="#method.size_hint">size_hint</a></li><li><a href="#method.trailers">trailers</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Body-for-%26mut+T">&mut T</a></li><li><a href="#impl-Body-for-Box%3CT%3E">Box<T></a></li><li><a href="#impl-Body-for-Pin%3CP%3E">Pin<P></a></li><li><a href="#impl-Body-for-Request%3CB%3E">Request<B></a></li><li><a href="#impl-Body-for-Response%3CB%3E">Response<B></a></li><li><a href="#impl-Body-for-String">String</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In crate http_body</a></h2></div></nav><div class="sidebar-resizer"></div>
|
||
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../http_body/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="index.html">http_body</a>::<wbr><a class="trait" href="#">Body</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/http_body/lib.rs.html#46-136">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub trait Body {
|
||
type <a href="#associatedtype.Data" class="associatedtype">Data</a>: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>;
|
||
type <a href="#associatedtype.Error" class="associatedtype">Error</a>;
|
||
|
||
// Required methods
|
||
fn <a href="#tymethod.poll_data" class="fn">poll_data</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut Self</a>>,
|
||
cx: &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><'_>
|
||
) -> <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><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>>>;
|
||
<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><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut Self</a>>,
|
||
cx: &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><'_>
|
||
) -> <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><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../http/header/map/struct.HeaderMap.html" title="struct http::header::map::HeaderMap">HeaderMap</a>>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>>;
|
||
|
||
// Provided methods
|
||
fn <a href="#method.is_end_stream" class="fn">is_end_stream</a>(&self) -> <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>(&self) -> <a class="struct" href="struct.SizeHint.html" title="struct http_body::SizeHint">SizeHint</a> { ... }
|
||
<span class="item-spacer"></span> fn <a href="#method.data" class="fn">data</a>(&mut self) -> <a class="struct" href="struct.Data.html" title="struct http_body::Data">Data</a><'_, Self> <a href="#" class="tooltip" data-notable-ty="Data<'_, Self>">ⓘ</a>
|
||
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
|
||
<span class="item-spacer"></span> fn <a href="#method.trailers" class="fn">trailers</a>(&mut self) -> <a class="struct" href="struct.Trailers.html" title="struct http_body::Trailers">Trailers</a><'_, Self> <a href="#" class="tooltip" data-notable-ty="Trailers<'_, Self>">ⓘ</a>
|
||
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
|
||
<span class="item-spacer"></span> fn <a href="#method.map_data" class="fn">map_data</a><F, B>(self, f: F) -> <a class="struct" href="combinators/struct.MapData.html" title="struct http_body::combinators::MapData">MapData</a><Self, F>
|
||
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>) -> B,
|
||
B: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a></span> { ... }
|
||
<span class="item-spacer"></span> fn <a href="#method.map_err" class="fn">map_err</a><F, E>(self, f: F) -> <a class="struct" href="combinators/struct.MapErr.html" title="struct http_body::combinators::MapErr">MapErr</a><Self, F>
|
||
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>) -> E</span> { ... }
|
||
<span class="item-spacer"></span> fn <a href="#method.boxed" class="fn">boxed</a>(self) -> <a class="struct" href="combinators/struct.BoxBody.html" title="struct http_body::combinators::BoxBody">BoxBody</a><Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>
|
||
<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) -> <a class="struct" href="combinators/struct.UnsyncBoxBody.html" title="struct http_body::combinators::UnsyncBoxBody">UnsyncBoxBody</a><Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>
|
||
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static</span> { ... }
|
||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Trait representing a streaming body of a Request or Response.</p>
|
||
<p>Data is streamed via the <code>poll_data</code> function, which asynchronously yields <code>T: Buf</code> values. The
|
||
<code>size_hint</code> function provides insight into the total number of bytes that will be streamed.</p>
|
||
<p>The <code>poll_trailers</code> function returns an optional set of trailers used to finalize the request /
|
||
response exchange. This is mostly used when using the HTTP/2.0 protocol.</p>
|
||
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Data" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#48">source</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a>: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a></h4></section></summary><div class="docblock"><p>Values yielded by the <code>Body</code>.</p>
|
||
</div></details><details class="toggle" open><summary><section id="associatedtype.Error" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#51">source</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a></h4></section></summary><div class="docblock"><p>The error type this <code>Body</code> might generate.</p>
|
||
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.poll_data" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#54-57">source</a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fn">poll_data</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut Self</a>>,
|
||
cx: &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><'_>
|
||
) -> <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><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>>></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><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut Self</a>>,
|
||
cx: &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><'_>
|
||
) -> <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><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../http/header/map/struct.HeaderMap.html" title="struct http::header::map::HeaderMap">HeaderMap</a>>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::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="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.is_end_stream" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#74-76">source</a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fn">is_end_stream</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> when the end of stream has been reached.</p>
|
||
<p>An end of stream means that both <code>poll_data</code> and <code>poll_trailers</code> will
|
||
return <code>None</code>.</p>
|
||
<p>A return value of <code>false</code> <strong>does not</strong> guarantee that a value will be
|
||
returned from <code>poll_stream</code> or <code>poll_trailers</code>.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.size_hint" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#82-84">source</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&self) -> <a class="struct" href="struct.SizeHint.html" title="struct http_body::SizeHint">SizeHint</a></h4></section></summary><div class="docblock"><p>Returns the bounds on the remaining length of the stream.</p>
|
||
<p>When the <strong>exact</strong> remaining length of the stream is known, the upper bound will be set and
|
||
will equal the lower bound.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.data" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#87-92">source</a><h4 class="code-header">fn <a href="#method.data" class="fn">data</a>(&mut self) -> <a class="struct" href="struct.Data.html" title="struct http_body::Data">Data</a><'_, Self> <a href="#" class="tooltip" data-notable-ty="Data<'_, Self>">ⓘ</a><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Returns future that resolves to next data chunk, if any.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.trailers" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#95-100">source</a><h4 class="code-header">fn <a href="#method.trailers" class="fn">trailers</a>(&mut self) -> <a class="struct" href="struct.Trailers.html" title="struct http_body::Trailers">Trailers</a><'_, Self> <a href="#" class="tooltip" data-notable-ty="Trailers<'_, Self>">ⓘ</a><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Returns future that resolves to trailers, if any.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.map_data" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#103-110">source</a><h4 class="code-header">fn <a href="#method.map_data" class="fn">map_data</a><F, B>(self, f: F) -> <a class="struct" href="combinators/struct.MapData.html" title="struct http_body::combinators::MapData">MapData</a><Self, F><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>) -> B,
|
||
B: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,</div></h4></section></summary><div class="docblock"><p>Maps this body’s data value to a different value.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.map_err" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#113-119">source</a><h4 class="code-header">fn <a href="#method.map_err" class="fn">map_err</a><F, E>(self, f: F) -> <a class="struct" href="combinators/struct.MapErr.html" title="struct http_body::combinators::MapErr">MapErr</a><Self, F><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>) -> E,</div></h4></section></summary><div class="docblock"><p>Maps this body’s error value to a different value.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.boxed" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#122-127">source</a><h4 class="code-header">fn <a href="#method.boxed" class="fn">boxed</a>(self) -> <a class="struct" href="combinators/struct.BoxBody.html" title="struct http_body::combinators::BoxBody">BoxBody</a><Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static,</div></h4></section></summary><div class="docblock"><p>Turn this body into a boxed trait object.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.boxed_unsync" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#130-135">source</a><h4 class="code-header">fn <a href="#method.boxed_unsync" class="fn">boxed_unsync</a>(self) -> <a class="struct" href="combinators/struct.UnsyncBoxBody.html" title="struct http_body::combinators::UnsyncBoxBody">UnsyncBoxBody</a><Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,</div></h4></section></summary><div class="docblock"><p>Turn this body into a boxed trait object that is !Sync.</p>
|
||
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-String" class="impl"><a class="src rightside" href="../src/http_body/lib.rs.html#289-319">source</a><a href="#impl-Body-for-String" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-1" class="associatedtype trait-impl"><a href="#associatedtype.Data-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = <a class="struct" href="../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a></h4></section><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section><section id="method.poll_data" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#293-303">source</a><a href="#method.poll_data" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fn">poll_data</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut Self</a>>,
|
||
_cx: &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><'_>
|
||
) -> <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><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>>></h4></section><section id="method.poll_trailers" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#305-310">source</a><a href="#method.poll_trailers" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fn">poll_trailers</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut Self</a>>,
|
||
_cx: &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><'_>
|
||
) -> <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><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../http/header/map/struct.HeaderMap.html" title="struct http::header::map::HeaderMap">HeaderMap</a>>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>></h4></section><section id="method.is_end_stream-1" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#312-314">source</a><a href="#method.is_end_stream-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fn">is_end_stream</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section><section id="method.size_hint-1" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#316-318">source</a><a href="#method.size_hint-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&self) -> <a class="struct" href="struct.SizeHint.html" title="struct http_body::SizeHint">SizeHint</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-Request%3CB%3E" class="impl"><a class="src rightside" href="../src/http_body/lib.rs.html#223-254">source</a><a href="#impl-Body-for-Request%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B: <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>> <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="../http/request/struct.Request.html" title="struct http::request::Request">Request</a><B></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> = <B as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>>::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a></h4></section><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a href="#associatedtype.Error-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <B as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>>::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a></h4></section><section id="method.poll_data-1" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#227-235">source</a><a href="#method.poll_data-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fn">poll_data</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut Self</a>>,
|
||
cx: &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><'_>
|
||
) -> <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><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>>></h4></section><section id="method.poll_trailers-1" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#237-245">source</a><a href="#method.poll_trailers-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fn">poll_trailers</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut Self</a>>,
|
||
cx: &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><'_>
|
||
) -> <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><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../http/header/map/struct.HeaderMap.html" title="struct http::header::map::HeaderMap">HeaderMap</a>>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>></h4></section><section id="method.is_end_stream-2" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#247-249">source</a><a href="#method.is_end_stream-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fn">is_end_stream</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section><section id="method.size_hint-2" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#251-253">source</a><a href="#method.size_hint-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&self) -> <a class="struct" href="struct.SizeHint.html" title="struct http_body::SizeHint">SizeHint</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-Response%3CB%3E" class="impl"><a class="src rightside" href="../src/http_body/lib.rs.html#256-287">source</a><a href="#impl-Body-for-Response%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B: <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>> <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="../http/response/struct.Response.html" title="struct http::response::Response">Response</a><B></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> = <B as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>>::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a></h4></section><section id="associatedtype.Error-3" class="associatedtype trait-impl"><a href="#associatedtype.Error-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <B as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>>::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a></h4></section><section id="method.poll_data-2" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#260-268">source</a><a href="#method.poll_data-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fn">poll_data</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut Self</a>>,
|
||
cx: &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><'_>
|
||
) -> <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><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>>></h4></section><section id="method.poll_trailers-2" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#270-278">source</a><a href="#method.poll_trailers-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fn">poll_trailers</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut Self</a>>,
|
||
cx: &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><'_>
|
||
) -> <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><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../http/header/map/struct.HeaderMap.html" title="struct http::header::map::HeaderMap">HeaderMap</a>>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>></h4></section><section id="method.is_end_stream-3" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#280-282">source</a><a href="#method.is_end_stream-3" class="anchor">§</a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fn">is_end_stream</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section><section id="method.size_hint-3" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#284-286">source</a><a href="#method.size_hint-3" class="anchor">§</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&self) -> <a class="struct" href="struct.SizeHint.html" title="struct http_body::SizeHint">SizeHint</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-Pin%3CP%3E" class="impl"><a class="src rightside" href="../src/http_body/lib.rs.html#165-194">source</a><a href="#impl-Body-for-Pin%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P> <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><P><div class="where">where
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a>,
|
||
P::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>: <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-4" class="associatedtype trait-impl"><a href="#associatedtype.Data-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = <<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>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a> as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>>::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a></h4></section><section id="associatedtype.Error-4" class="associatedtype trait-impl"><a href="#associatedtype.Error-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <<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>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a> as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>>::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a></h4></section><section id="method.poll_data-3" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#173-178">source</a><a href="#method.poll_data-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fn">poll_data</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut Self</a>>,
|
||
cx: &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><'_>
|
||
) -> <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><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>>></h4></section><section id="method.poll_trailers-3" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#180-185">source</a><a href="#method.poll_trailers-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fn">poll_trailers</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut Self</a>>,
|
||
cx: &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><'_>
|
||
) -> <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><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../http/header/map/struct.HeaderMap.html" title="struct http::header::map::HeaderMap">HeaderMap</a>>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>></h4></section><section id="method.is_end_stream-4" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#187-189">source</a><a href="#method.is_end_stream-4" class="anchor">§</a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fn">is_end_stream</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section><section id="method.size_hint-4" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#191-193">source</a><a href="#method.size_hint-4" class="anchor">§</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&self) -> <a class="struct" href="struct.SizeHint.html" title="struct http_body::SizeHint">SizeHint</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-%26mut+T" class="impl"><a class="src rightside" href="../src/http_body/lib.rs.html#138-163">source</a><a href="#impl-Body-for-%26mut+T" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>> <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut T</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-5" class="associatedtype trait-impl"><a href="#associatedtype.Data-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = <T as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>>::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a></h4></section><section id="associatedtype.Error-5" class="associatedtype trait-impl"><a href="#associatedtype.Error-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <T as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>>::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a></h4></section><section id="method.poll_data-4" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#142-147">source</a><a href="#method.poll_data-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fn">poll_data</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut Self</a>>,
|
||
cx: &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><'_>
|
||
) -> <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><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>>></h4></section><section id="method.poll_trailers-4" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#149-154">source</a><a href="#method.poll_trailers-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fn">poll_trailers</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut Self</a>>,
|
||
cx: &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><'_>
|
||
) -> <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><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../http/header/map/struct.HeaderMap.html" title="struct http::header::map::HeaderMap">HeaderMap</a>>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>></h4></section><section id="method.is_end_stream-5" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#156-158">source</a><a href="#method.is_end_stream-5" class="anchor">§</a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fn">is_end_stream</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section><section id="method.size_hint-5" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#160-162">source</a><a href="#method.size_hint-5" class="anchor">§</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&self) -> <a class="struct" href="struct.SizeHint.html" title="struct http_body::SizeHint">SizeHint</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-Box%3CT%3E" class="impl"><a class="src rightside" href="../src/http_body/lib.rs.html#196-221">source</a><a href="#impl-Body-for-Box%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>> <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><T></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> = <T as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>>::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a></h4></section><section id="associatedtype.Error-6" class="associatedtype trait-impl"><a href="#associatedtype.Error-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <T as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>>::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a></h4></section><section id="method.poll_data-5" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#200-205">source</a><a href="#method.poll_data-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_data" class="fn">poll_data</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut Self</a>>,
|
||
cx: &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><'_>
|
||
) -> <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><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>>></h4></section><section id="method.poll_trailers-5" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#207-212">source</a><a href="#method.poll_trailers-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_trailers" class="fn">poll_trailers</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.76.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut Self</a>>,
|
||
cx: &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><'_>
|
||
) -> <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><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../http/header/map/struct.HeaderMap.html" title="struct http::header::map::HeaderMap">HeaderMap</a>>, Self::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>>></h4></section><section id="method.is_end_stream-6" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#214-216">source</a><a href="#method.is_end_stream-6" class="anchor">§</a><h4 class="code-header">fn <a href="#method.is_end_stream" class="fn">is_end_stream</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.bool.html">bool</a></h4></section><section id="method.size_hint-6" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#218-220">source</a><a href="#method.size_hint-6" class="anchor">§</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&self) -> <a class="struct" href="struct.SizeHint.html" title="struct http_body::SizeHint">SizeHint</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-Limited%3CB%3E" class="impl"><a class="src rightside" href="../src/http_body/limited.rs.html#33-99">source</a><a href="#impl-Body-for-Limited%3CB%3E" class="anchor">§</a><h3 class="code-header">impl<B> <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="struct.Limited.html" title="struct http_body::Limited">Limited</a><B><div class="where">where
|
||
B: <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>,
|
||
B::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/error/trait.Error.html" title="trait core::error::Error">Error</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>>>,</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> = <B as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>>::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a></h4></section><section id="associatedtype.Error-7" class="associatedtype trait-impl"><a href="#associatedtype.Error-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><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>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-MapData%3CB,+F%3E" class="impl"><a class="src rightside" href="../src/http_body/combinators/map_data.rs.html#50-82">source</a><a href="#impl-Body-for-MapData%3CB,+F%3E" class="anchor">§</a><h3 class="code-header">impl<B, F, B2> <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="combinators/struct.MapData.html" title="struct http_body::combinators::MapData">MapData</a><B, F><div class="where">where
|
||
B: <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(B::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a>) -> B2,
|
||
B2: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-8" class="associatedtype trait-impl"><a href="#associatedtype.Data-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = B2</h4></section><section id="associatedtype.Error-8" class="associatedtype trait-impl"><a href="#associatedtype.Error-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <B as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>>::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-MapErr%3CB,+F%3E" class="impl"><a class="src rightside" href="../src/http_body/combinators/map_err.rs.html#49-85">source</a><a href="#impl-Body-for-MapErr%3CB,+F%3E" class="anchor">§</a><h3 class="code-header">impl<B, F, E> <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="combinators/struct.MapErr.html" title="struct http_body::combinators::MapErr">MapErr</a><B, F><div class="where">where
|
||
B: <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(B::<a class="associatedtype" href="trait.Body.html#associatedtype.Error" title="type http_body::Body::Error">Error</a>) -> E,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-9" class="associatedtype trait-impl"><a href="#associatedtype.Data-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = <B as <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a>>::<a class="associatedtype" href="trait.Body.html#associatedtype.Data" title="type http_body::Body::Data">Data</a></h4></section><section id="associatedtype.Error-9" class="associatedtype trait-impl"><a href="#associatedtype.Error-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-Full%3CD%3E" class="impl"><a class="src rightside" href="../src/http_body/full.rs.html#33-64">source</a><a href="#impl-Body-for-Full%3CD%3E" class="anchor">§</a><h3 class="code-header">impl<D> <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="struct.Full.html" title="struct http_body::Full">Full</a><D><div class="where">where
|
||
D: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-10" class="associatedtype trait-impl"><a href="#associatedtype.Data-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = D</h4></section><section id="associatedtype.Error-10" class="associatedtype trait-impl"><a href="#associatedtype.Error-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-BoxBody%3CD,+E%3E" class="impl"><a class="src rightside" href="../src/http_body/combinators/box_body.rs.html#38-66">source</a><a href="#impl-Body-for-BoxBody%3CD,+E%3E" class="anchor">§</a><h3 class="code-header">impl<D, E> <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="combinators/struct.BoxBody.html" title="struct http_body::combinators::BoxBody">BoxBody</a><D, E><div class="where">where
|
||
D: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-11" class="associatedtype trait-impl"><a href="#associatedtype.Data-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = D</h4></section><section id="associatedtype.Error-11" class="associatedtype trait-impl"><a href="#associatedtype.Error-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-UnsyncBoxBody%3CD,+E%3E" class="impl"><a class="src rightside" href="../src/http_body/combinators/box_body.rs.html#97-125">source</a><a href="#impl-Body-for-UnsyncBoxBody%3CD,+E%3E" class="anchor">§</a><h3 class="code-header">impl<D, E> <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="combinators/struct.UnsyncBoxBody.html" title="struct http_body::combinators::UnsyncBoxBody">UnsyncBoxBody</a><D, E><div class="where">where
|
||
D: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-12" class="associatedtype trait-impl"><a href="#associatedtype.Data-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = D</h4></section><section id="associatedtype.Error-12" class="associatedtype trait-impl"><a href="#associatedtype.Error-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Body-for-Empty%3CD%3E" class="impl"><a class="src rightside" href="../src/http_body/empty.rs.html#24-51">source</a><a href="#impl-Body-for-Empty%3CD%3E" class="anchor">§</a><h3 class="code-header">impl<D: <a class="trait" href="../bytes/buf/buf_impl/trait.Buf.html" title="trait bytes::buf::buf_impl::Buf">Buf</a>> <a class="trait" href="trait.Body.html" title="trait http_body::Body">Body</a> for <a class="struct" href="struct.Empty.html" title="struct http_body::Empty">Empty</a><D></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-13" class="associatedtype trait-impl"><a href="#associatedtype.Data-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Data" class="associatedtype">Data</a> = D</h4></section><section id="associatedtype.Error-13" class="associatedtype trait-impl"><a href="#associatedtype.Error-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></div></details></div><script src="../trait.impl/http_body/trait.Body.js" data-ignore-extern-crates="alloc,http,core" async></script><script type="text/json" id="notable-traits-data">{"Data<'_, Self>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.Data.html\" title=\"struct http_body::Data\">Data</a><'a, T></code></h3><pre><code><div class=\"where\">impl<'a, T: <a class=\"trait\" href=\"trait.Body.html\" title=\"trait http_body::Body\">Body</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html\" title=\"trait core::marker::Unpin\">Unpin</a> + ?<a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html\" title=\"trait core::marker::Sized\">Sized</a>> <a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a> for <a class=\"struct\" href=\"struct.Data.html\" title=\"struct http_body::Data\">Data</a><'a, T></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/1.76.0/core/future/future/trait.Future.html#associatedtype.Output\" class=\"associatedtype\">Output</a> = <a class=\"enum\" href=\"https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html\" title=\"enum core::option::Option\">Option</a><<a class=\"enum\" href=\"https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html\" title=\"enum core::result::Result\">Result</a><T::<a class=\"associatedtype\" href=\"trait.Body.html#associatedtype.Data\" title=\"type http_body::Body::Data\">Data</a>, T::<a class=\"associatedtype\" href=\"trait.Body.html#associatedtype.Error\" title=\"type http_body::Body::Error\">Error</a>>>;</div>","Trailers<'_, Self>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.Trailers.html\" title=\"struct http_body::Trailers\">Trailers</a><'a, T></code></h3><pre><code><div class=\"where\">impl<'a, T: <a class=\"trait\" href=\"trait.Body.html\" title=\"trait http_body::Body\">Body</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html\" title=\"trait core::marker::Unpin\">Unpin</a> + ?<a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html\" title=\"trait core::marker::Sized\">Sized</a>> <a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/future/future/trait.Future.html\" title=\"trait core::future::future::Future\">Future</a> for <a class=\"struct\" href=\"struct.Trailers.html\" title=\"struct http_body::Trailers\">Trailers</a><'a, T></div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/1.76.0/core/future/future/trait.Future.html#associatedtype.Output\" class=\"associatedtype\">Output</a> = <a class=\"enum\" href=\"https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html\" title=\"enum core::result::Result\">Result</a><<a class=\"enum\" href=\"https://doc.rust-lang.org/1.76.0/core/option/enum.Option.html\" title=\"enum core::option::Option\">Option</a><<a class=\"struct\" href=\"../http/header/map/struct.HeaderMap.html\" title=\"struct http::header::map::HeaderMap\">HeaderMap</a>>, T::<a class=\"associatedtype\" href=\"trait.Body.html#associatedtype.Error\" title=\"type http_body::Body::Error\">Error</a>>;</div>"}</script></section></div></main></body></html> |