54 lines
35 KiB
HTML
54 lines
35 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><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-ca0dd0c4.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.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.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]--><rustdoc-topbar><h2><a href="#">Body</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../http_body/index.html">http_<wbr>body</a><span class="version">1.0.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Body</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Data" title="Data">Data</a></li><li><a href="#associatedtype.Error" title="Error">Error</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.poll_frame" title="poll_frame">poll_frame</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.is_end_stream" title="is_end_stream">is_end_stream</a></li><li><a href="#method.size_hint" title="size_hint">size_hint</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" title="&mut T">&mut T</a></li><li><a href="#impl-Body-for-Box%3CT%3E" title="Box<T>">Box<T></a></li><li><a href="#impl-Body-for-Pin%3CP%3E" title="Pin<P>">Pin<P></a></li><li><a href="#impl-Body-for-Request%3CB%3E" title="Request<B>">Request<B></a></li><li><a href="#impl-Body-for-Response%3CB%3E" title="Response<B>">Response<B></a></li><li><a href="#impl-Body-for-String" title="String">String</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate http_<wbr>body</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="index.html">http_body</a></div><h1>Trait <span class="trait">Body</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/http_body/lib.rs.html#38-69">Source</a> </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 method
|
|
fn <a href="#tymethod.poll_frame" class="fn">poll_frame</a>(
|
|
self: <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><&mut Self>,
|
|
cx: &mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a><'_>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a><<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.Frame.html" title="struct http_body::Frame">Frame</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>>>>;
|
|
|
|
// 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.93.1/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> { ... }
|
|
}</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>Individual frames are streamed via the <code>poll_frame</code> function, which asynchronously yields
|
|
instances of <a href="struct.Frame.html" title="struct http_body::Frame"><code>Frame<Data></code></a>.</p>
|
|
<p>Frames can contain a data buffer of type <code>Self::Data</code>. Frames can also contain an optional
|
|
set of trailers used to finalize the request/response exchange. This is mostly used when using
|
|
the HTTP/2.0 protocol.</p>
|
|
<p>The <code>size_hint</code> function provides insight into the total number of bytes that will be streamed.</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#40">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#43">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_frame" class="method"><a class="src rightside" href="../src/http_body/lib.rs.html#47-50">Source</a><h4 class="code-header">fn <a href="#tymethod.poll_frame" class="fn">poll_frame</a>(
|
|
self: <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><&mut Self>,
|
|
cx: &mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a><'_>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a><<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.Frame.html" title="struct http_body::Frame">Frame</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></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#58-60">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.93.1/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 <code>poll_frame</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_frame</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#66-68">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></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#185-208">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.93.1/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 class="src rightside" href="../src/http_body/lib.rs.html#186">Source</a><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 class="src rightside" href="../src/http_body/lib.rs.html#187">Source</a><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.93.1/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section><section id="method.poll_frame" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#189-199">Source</a><a href="#method.poll_frame" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_frame" class="fn">poll_frame</a>(
|
|
self: <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><&mut Self>,
|
|
_cx: &mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a><'_>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a><<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.Frame.html" title="struct http_body::Frame">Frame</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.is_end_stream-1" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#201-203">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.93.1/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#205-207">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#135-158">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 class="src rightside" href="../src/http_body/lib.rs.html#136">Source</a><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 class="src rightside" href="../src/http_body/lib.rs.html#137">Source</a><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_frame-1" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#139-149">Source</a><a href="#method.poll_frame-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_frame" class="fn">poll_frame</a>(
|
|
self: <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><&mut Self>,
|
|
cx: &mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a><'_>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a><<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.Frame.html" title="struct http_body::Frame">Frame</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.is_end_stream-2" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#151-153">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.93.1/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#155-157">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#160-183">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 class="src rightside" href="../src/http_body/lib.rs.html#161">Source</a><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 class="src rightside" href="../src/http_body/lib.rs.html#162">Source</a><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_frame-2" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#164-174">Source</a><a href="#method.poll_frame-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_frame" class="fn">poll_frame</a>(
|
|
self: <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><&mut Self>,
|
|
cx: &mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a><'_>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a><<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.Frame.html" title="struct http_body::Frame">Frame</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.is_end_stream-3" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#176-178">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.93.1/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#180-182">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#91-113">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.93.1/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.93.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/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.93.1/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 class="src rightside" href="../src/http_body/lib.rs.html#96">Source</a><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.93.1/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/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 class="src rightside" href="../src/http_body/lib.rs.html#97">Source</a><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.93.1/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/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_frame-3" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#99-104">Source</a><a href="#method.poll_frame-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_frame" class="fn">poll_frame</a>(
|
|
self: <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><&mut Self>,
|
|
cx: &mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a><'_>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a><<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.Frame.html" title="struct http_body::Frame">Frame</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.is_end_stream-4" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#106-108">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.93.1/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#110-112">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#71-89">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.93.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/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.93.1/std/primitive.reference.html">&mut T</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Data-5" class="associatedtype trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#72">Source</a><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 class="src rightside" href="../src/http_body/lib.rs.html#73">Source</a><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_frame-4" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#75-80">Source</a><a href="#method.poll_frame-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_frame" class="fn">poll_frame</a>(
|
|
self: <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><&mut Self>,
|
|
cx: &mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a><'_>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a><<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.Frame.html" title="struct http_body::Frame">Frame</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.is_end_stream-5" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#82-84">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.93.1/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#86-88">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#115-133">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.93.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/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.93.1/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 class="src rightside" href="../src/http_body/lib.rs.html#116">Source</a><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 class="src rightside" href="../src/http_body/lib.rs.html#117">Source</a><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_frame-5" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#119-124">Source</a><a href="#method.poll_frame-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_frame" class="fn">poll_frame</a>(
|
|
self: <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><&mut Self>,
|
|
cx: &mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a><'_>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a><<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.Frame.html" title="struct http_body::Frame">Frame</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.is_end_stream-6" class="method trait-impl"><a class="src rightside" href="../src/http_body/lib.rs.html#126-128">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.93.1/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#130-132">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"></div><script src="../trait.impl/http_body/trait.Body.js" data-ignore-extern-crates="core,alloc,http" async></script></section></div></main></body></html> |