blob: 16767d2c7253e49a5b25d904a384c092c4768032 [file] [log] [blame]
<!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="A stream of `Bytes`, used when receiving bodies."><meta name="keywords" content="rust, rustlang, rust-lang, Body"><title>Body in hyper::body - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../hyper/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../hyper/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Body</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block"><li><a href="#method.channel">channel</a></li><li><a href="#method.empty">empty</a></li><li><a href="#method.wrap_stream">wrap_stream</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-Body-for-Body">Body</a></li><li><a href="#impl-Debug-for-Body">Debug</a></li><li><a href="#impl-Default-for-Body">Default</a></li><li><a href="#impl-From%3C%26%27static%20%5Bu8%5D%3E-for-Body">From&lt;&amp;&#39;static [u8]&gt;</a></li><li><a href="#impl-From%3C%26%27static%20str%3E-for-Body">From&lt;&amp;&#39;static str&gt;</a></li><li><a href="#impl-From%3CBox%3Cdyn%20Stream%3CItem%20=%20Result%3CBytes%2C%20Box%3Cdyn%20Error%20+%20Sync%20+%20Send%20+%20%27static%2C%20Global%3E%3E%3E%20+%20Send%20+%20%27static%2C%20Global%3E%3E-for-Body">From&lt;Box&lt;dyn Stream&lt;Item = Result&lt;Bytes, Box&lt;dyn Error + Sync + Send + &#39;static, Global&gt;&gt;&gt; + Send + &#39;static, Global&gt;&gt;</a></li><li><a href="#impl-From%3CBytes%3E-for-Body">From&lt;Bytes&gt;</a></li><li><a href="#impl-From%3CCow%3C%27static%2C%20%5Bu8%5D%3E%3E-for-Body">From&lt;Cow&lt;&#39;static, [u8]&gt;&gt;</a></li><li><a href="#impl-From%3CCow%3C%27static%2C%20str%3E%3E-for-Body">From&lt;Cow&lt;&#39;static, str&gt;&gt;</a></li><li><a href="#impl-From%3CString%3E-for-Body">From&lt;String&gt;</a></li><li><a href="#impl-From%3CVec%3Cu8%2C%20Global%3E%3E-for-Body">From&lt;Vec&lt;u8, Global&gt;&gt;</a></li><li><a href="#impl-Stream-for-Body">Stream</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-Body">!RefUnwindSafe</a></li><li><a href="#impl-Send-for-Body">Send</a></li><li><a href="#impl-Sync-for-Body">Sync</a></li><li><a href="#impl-Unpin-for-Body">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Body">!UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-Body">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-Body">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-Body">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-From%3CT%3E-for-Body">From&lt;T&gt;</a></li><li><a href="#impl-Instrument-for-Body">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-Body">Into&lt;U&gt;</a></li><li><a href="#impl-StreamExt-for-Body">StreamExt</a></li><li><a href="#impl-TryFrom%3CU%3E-for-Body">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-Body">TryInto&lt;U&gt;</a></li><li><a href="#impl-TryStream-for-Body">TryStream</a></li><li><a href="#impl-TryStreamExt-for-Body">TryStreamExt</a></li><li><a href="#impl-WithSubscriber-for-Body">WithSubscriber</a></li></ul></section><h2><a href="index.html">In hyper::body</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Struct <a href="../index.html">hyper</a>::<wbr><a href="index.html">body</a>::<wbr><a class="struct" href="#">Body</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/hyper/body/body.rs.html#36-41">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="item-decl"><pre class="rust struct"><code>pub struct Body { /* private fields */ }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A stream of <code>Bytes</code>, used when receiving bodies.</p>
<p>A good default <a href="trait.HttpBody.html"><code>HttpBody</code></a> to use in many
applications.</p>
<p>Note: To read the full body, use <a href="fn.to_bytes.html"><code>body::to_bytes</code></a>
or <a href="fn.aggregate.html"><code>body::aggregate</code></a>.</p>
</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#118-349">source</a><a href="#impl-Body" class="anchor"></a><h3 class="code-header">impl <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.empty" class="method has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#130-132">source</a><h4 class="code-header">pub fn <a href="#method.empty" class="fnname">empty</a>() -&gt; <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h4></section></summary><div class="docblock"><p>Create an empty <code>Body</code> stream.</p>
<h5 id="example"><a href="#example">Example</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>hyper::{Body, Request};
<span class="comment">// create a `GET /` request
</span><span class="kw">let </span>get = Request::new(Body::empty());</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.channel" class="method has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#138-140">source</a><h4 class="code-header">pub fn <a href="#method.channel" class="fnname">channel</a>() -&gt; (<a class="struct" href="struct.Sender.html" title="struct hyper::body::Sender">Sender</a>, <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a>)</h4></section></summary><div class="docblock"><p>Create a <code>Body</code> stream with an associated sender half.</p>
<p>Useful when wanting to stream chunks from another thread.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.wrap_stream" class="method has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#190-198">source</a><h4 class="code-header">pub fn <a href="#method.wrap_stream" class="fnname">wrap_stream</a>&lt;S, O, E&gt;(stream: S) -&gt; <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a><span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a>&lt;Item = Result&lt;O, E&gt;&gt; + Send + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;O: Into&lt;<a class="struct" href="struct.Bytes.html" title="struct hyper::body::Bytes">Bytes</a>&gt; + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;E: Into&lt;Box&lt;dyn StdError + Send + Sync&gt;&gt; + 'static,</span></h4></section></summary><div class="docblock"><p>Wrap a futures <code>Stream</code> in a box inside <code>Body</code>.</p>
<h5 id="example-1"><a href="#example-1">Example</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>chunks: Vec&lt;<span class="prelude-ty">Result</span>&lt;<span class="kw">_</span>, std::io::Error&gt;&gt; = <span class="macro">vec!</span>[
<span class="prelude-val">Ok</span>(<span class="string">&quot;hello&quot;</span>),
<span class="prelude-val">Ok</span>(<span class="string">&quot; &quot;</span>),
<span class="prelude-val">Ok</span>(<span class="string">&quot;world&quot;</span>),
];
<span class="kw">let </span>stream = futures_util::stream::iter(chunks);
<span class="kw">let </span>body = Body::wrap_stream(stream);</code></pre></div>
<h5 id="optional"><a href="#optional">Optional</a></h5>
<p>This function requires enabling the <code>stream</code> feature in your
<code>Cargo.toml</code>.</p>
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Body-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#359-438">source</a><a href="#impl-Body-for-Body" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.HttpBody.html" title="trait hyper::body::HttpBody">Body</a> for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Data" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Data" class="anchor"></a><h4 class="code-header">type <a href="trait.HttpBody.html#associatedtype.Data" class="associatedtype">Data</a> = <a class="struct" href="struct.Bytes.html" title="struct hyper::body::Bytes">Bytes</a></h4></section></summary><div class='docblock'>Values yielded by the <code>Body</code>.</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a href="trait.HttpBody.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../struct.Error.html" title="struct hyper::Error">Error</a></h4></section></summary><div class='docblock'>The error type this <code>Body</code> might generate.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.poll_data" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#363-368">source</a><a href="#method.poll_data" class="anchor"></a><h4 class="code-header">fn <a href="trait.HttpBody.html#tymethod.poll_data" class="fnname">poll_data</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: Pin&lt;&amp;mut Self&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &amp;mut Context&lt;'_&gt;<br>) -&gt; Poll&lt;Option&lt;Result&lt;Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>, Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;&gt;</h4></section></summary><div class='docblock'>Attempt to pull out the next data buffer of this stream.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.poll_trailers" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#370-398">source</a><a href="#method.poll_trailers" class="anchor"></a><h4 class="code-header">fn <a href="trait.HttpBody.html#tymethod.poll_trailers" class="fnname">poll_trailers</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: Pin&lt;&amp;mut Self&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &amp;mut Context&lt;'_&gt;<br>) -&gt; Poll&lt;Result&lt;Option&lt;<a class="struct" href="../header/struct.HeaderMap.html" title="struct hyper::header::HeaderMap">HeaderMap</a>&gt;, Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;&gt;</h4></section></summary><div class='docblock'>Poll for an optional <strong>single</strong> <code>HeaderMap</code> of trailers. <a href="trait.HttpBody.html#tymethod.poll_trailers">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_end_stream" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#400-411">source</a><a href="#method.is_end_stream" class="anchor"></a><h4 class="code-header">fn <a href="trait.HttpBody.html#method.is_end_stream" class="fnname">is_end_stream</a>(&amp;self) -&gt; bool</h4></section></summary><div class='docblock'>Returns <code>true</code> when the end of stream has been reached. <a href="trait.HttpBody.html#method.is_end_stream">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.size_hint" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#413-437">source</a><a href="#method.size_hint" class="anchor"></a><h4 class="code-header">fn <a href="trait.HttpBody.html#method.size_hint" class="fnname">size_hint</a>(&amp;self) -&gt; <a class="struct" href="struct.SizeHint.html" title="struct hyper::body::SizeHint">SizeHint</a></h4></section></summary><div class='docblock'>Returns the bounds on the remaining length of the stream. <a href="trait.HttpBody.html#method.size_hint">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.data" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#87-89">source</a><a href="#method.data" class="anchor"></a><h4 class="code-header">fn <a href="trait.HttpBody.html#method.data" class="fnname">data</a>(&amp;mut self) -&gt; <a class="struct" href="../../http_body/next/struct.Data.html" title="struct http_body::next::Data">Data</a>&lt;'_, Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Unpin,</span></h4></section></summary><div class='docblock'>Returns future that resolves to next data chunk, if any.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.trailers" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#95-97">source</a><a href="#method.trailers" class="anchor"></a><h4 class="code-header">fn <a href="trait.HttpBody.html#method.trailers" class="fnname">trailers</a>(&amp;mut self) -&gt; <a class="struct" href="../../http_body/next/struct.Trailers.html" title="struct http_body::next::Trailers">Trailers</a>&lt;'_, Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Unpin,</span></h4></section></summary><div class='docblock'>Returns future that resolves to trailers, if any.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map_data" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#103-107">source</a><a href="#method.map_data" class="anchor"></a><h4 class="code-header">fn <a href="trait.HttpBody.html#method.map_data" class="fnname">map_data</a>&lt;F, B&gt;(self, f: F) -&gt; <a class="struct" href="../../http_body/combinators/map_data/struct.MapData.html" title="struct http_body::combinators::map_data::MapData">MapData</a>&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>) -&gt; B,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="trait.Buf.html" title="trait hyper::body::Buf">Buf</a>,</span></h4></section></summary><div class='docblock'>Maps this body’s data value to a different value.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map_err" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#113-116">source</a><a href="#method.map_err" class="anchor"></a><h4 class="code-header">fn <a href="trait.HttpBody.html#method.map_err" class="fnname">map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../http_body/combinators/map_err/struct.MapErr.html" title="struct http_body::combinators::map_err::MapErr">MapErr</a>&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>) -&gt; E,</span></h4></section></summary><div class='docblock'>Maps this body’s error value to a different value.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.boxed" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#122-124">source</a><a href="#method.boxed" class="anchor"></a><h4 class="code-header">fn <a href="trait.HttpBody.html#method.boxed" class="fnname">boxed</a>(self) -&gt; <a class="struct" href="../../http_body/combinators/box_body/struct.BoxBody.html" title="struct http_body::combinators::box_body::BoxBody">BoxBody</a>&lt;Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>, Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'static + Send + Sync,</span></h4></section></summary><div class='docblock'>Turn this body into a boxed trait object.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.boxed_unsync" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http_body/lib.rs.html#130-132">source</a><a href="#method.boxed_unsync" class="anchor"></a><h4 class="code-header">fn <a href="trait.HttpBody.html#method.boxed_unsync" class="fnname">boxed_unsync</a>(self) -&gt; <a class="struct" href="../../http_body/combinators/box_body/struct.UnsyncBoxBody.html" title="struct http_body::combinators::box_body::UnsyncBoxBody">UnsyncBoxBody</a>&lt;Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Data" title="type hyper::body::HttpBody::Data">Data</a>, Self::<a class="associatedtype" href="trait.HttpBody.html#associatedtype.Error" title="type hyper::body::HttpBody::Error">Error</a>&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'static + Send,</span></h4></section></summary><div class='docblock'>Turn this body into a boxed trait object that is !Sync.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#440-458">source</a><a href="#impl-Debug-for-Body" class="anchor"></a><h3 class="code-header">impl Debug for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#441-457">source</a><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a class="fnname">fmt</a>(&amp;self, f: &amp;mut Formatter&lt;'_&gt;) -&gt; Result</h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Default-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#351-357">source</a><a href="#impl-Default-for-Body" class="anchor"></a><h3 class="code-header">impl Default for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.default" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#354-356">source</a><a href="#method.default" class="anchor"></a><h4 class="code-header">fn <a class="fnname">default</a>() -&gt; <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h4></section></summary><div class="docblock"><p>Returns <code>Body::empty()</code>.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3C%26%27static%20%5Bu8%5D%3E-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#505-510">source</a><a href="#impl-From%3C%26%27static%20%5Bu8%5D%3E-for-Body" class="anchor"></a><h3 class="code-header">impl From&lt;&amp;'static [u8]&gt; for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#507-509">source</a><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(slice: &amp;'static [u8]) -&gt; <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3C%26%27static%20str%3E-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#529-534">source</a><a href="#impl-From%3C%26%27static%20str%3E-for-Body" class="anchor"></a><h3 class="code-header">impl From&lt;&amp;'static str&gt; for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#531-533">source</a><a href="#method.from-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(slice: &amp;'static str) -&gt; <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CBox%3Cdyn%20Stream%3CItem%20=%20Result%3CBytes%2C%20Box%3Cdyn%20Error%20+%20Sync%20+%20Send%20+%20%27static%2C%20Global%3E%3E%3E%20+%20Send%20+%20%27static%2C%20Global%3E%3E-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#478-485">source</a><a href="#impl-From%3CBox%3Cdyn%20Stream%3CItem%20=%20Result%3CBytes%2C%20Box%3Cdyn%20Error%20+%20Sync%20+%20Send%20+%20%27static%2C%20Global%3E%3E%3E%20+%20Send%20+%20%27static%2C%20Global%3E%3E-for-Body" class="anchor"></a><h3 class="code-header">impl From&lt;Box&lt;dyn <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a>&lt;Item = Result&lt;<a class="struct" href="struct.Bytes.html" title="struct hyper::body::Bytes">Bytes</a>, Box&lt;dyn Error + Sync + Send + 'static, Global&gt;&gt;&gt; + Send + 'static, Global&gt;&gt; for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section></summary><div class="docblock"><h4 id="optional-2"><a href="#optional-2">Optional</a></h4>
<p>This function requires enabling the <code>stream</code> feature in your
<code>Cargo.toml</code>.</p>
</div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#480-484">source</a><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;stream: Box&lt;dyn <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a>&lt;Item = Result&lt;<a class="struct" href="struct.Bytes.html" title="struct hyper::body::Bytes">Bytes</a>, Box&lt;dyn StdError + Send + Sync&gt;&gt;&gt; + Send&gt;<br>) -&gt; <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CBytes%3E-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#487-496">source</a><a href="#impl-From%3CBytes%3E-for-Body" class="anchor"></a><h3 class="code-header">impl From&lt;<a class="struct" href="struct.Bytes.html" title="struct hyper::body::Bytes">Bytes</a>&gt; for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#489-495">source</a><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(chunk: <a class="struct" href="struct.Bytes.html" title="struct hyper::body::Bytes">Bytes</a>) -&gt; <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CCow%3C%27static%2C%20%5Bu8%5D%3E%3E-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#512-520">source</a><a href="#impl-From%3CCow%3C%27static%2C%20%5Bu8%5D%3E%3E-for-Body" class="anchor"></a><h3 class="code-header">impl From&lt;Cow&lt;'static, [u8]&gt;&gt; for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#514-519">source</a><a href="#method.from-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(cow: Cow&lt;'static, [u8]&gt;) -&gt; <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CCow%3C%27static%2C%20str%3E%3E-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#536-544">source</a><a href="#impl-From%3CCow%3C%27static%2C%20str%3E%3E-for-Body" class="anchor"></a><h3 class="code-header">impl From&lt;Cow&lt;'static, str&gt;&gt; for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#538-543">source</a><a href="#method.from-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(cow: Cow&lt;'static, str&gt;) -&gt; <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CString%3E-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#522-527">source</a><a href="#impl-From%3CString%3E-for-Body" class="anchor"></a><h3 class="code-header">impl From&lt;String&gt; for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#524-526">source</a><a href="#method.from-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(s: String) -&gt; <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CVec%3Cu8%2C%20Global%3E%3E-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#498-503">source</a><a href="#impl-From%3CVec%3Cu8%2C%20Global%3E%3E-for-Body" class="anchor"></a><h3 class="code-header">impl From&lt;Vec&lt;u8, Global&gt;&gt; for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#500-502">source</a><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(vec: Vec&lt;u8&gt;) -&gt; <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Stream-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#465-471">source</a><a href="#impl-Stream-for-Body" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a> for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section></summary><div class="docblock"><h4 id="optional-1"><a href="#optional-1">Optional</a></h4>
<p>This function requires enabling the <code>stream</code> feature in your
<code>Cargo.toml</code>.</p>
</div><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Item" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Item" class="anchor"></a><h4 class="code-header">type <a href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" class="associatedtype">Item</a> = Result&lt;<a class="struct" href="struct.Bytes.html" title="struct hyper::body::Bytes">Bytes</a>, <a class="struct" href="../struct.Error.html" title="struct hyper::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Values yielded by the stream.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.poll_next" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hyper/body/body.rs.html#468-470">source</a><a href="#method.poll_next" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_core/stream/trait.Stream.html#tymethod.poll_next" class="fnname">poll_next</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: Pin&lt;&amp;mut Self&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &amp;mut Context&lt;'_&gt;<br>) -&gt; Poll&lt;Option&lt;Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>&gt;&gt;</h4></section></summary><div class='docblock'>Attempt to pull out the next value of this stream, registering the
current task for wakeup if the value is not yet available, and returning
<code>None</code> if the stream is exhausted. <a href="../../futures_core/stream/trait.Stream.html#tymethod.poll_next">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.size_hint-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_core/stream.rs.html#95">source</a><a href="#method.size_hint-1" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_core/stream/trait.Stream.html#method.size_hint" class="fnname">size_hint</a>(&amp;self) -&gt; (usize, Option&lt;usize&gt;)</h4></section></summary><div class='docblock'>Returns the bounds on the remaining length of the stream. <a href="../../futures_core/stream/trait.Stream.html#method.size_hint">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-Body" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-Body" class="anchor"></a><h3 class="code-header">impl !RefUnwindSafe for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section><section id="impl-Send-for-Body" class="impl has-srclink"><a href="#impl-Send-for-Body" class="anchor"></a><h3 class="code-header">impl Send for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section><section id="impl-Sync-for-Body" class="impl has-srclink"><a href="#impl-Sync-for-Body" class="anchor"></a><h3 class="code-header">impl Sync for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section><section id="impl-Unpin-for-Body" class="impl has-srclink"><a href="#impl-Unpin-for-Body" class="anchor"></a><h3 class="code-header">impl Unpin for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section><section id="impl-UnwindSafe-for-Body" class="impl has-srclink"><a href="#impl-UnwindSafe-for-Body" class="anchor"></a><h3 class="code-header">impl !UnwindSafe for <a class="struct" href="struct.Body.html" title="struct hyper::body::Body">Body</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-Body" class="impl has-srclink"><a href="#impl-Any-for-Body" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; Any for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a class="fnname">type_id</a>(&amp;self) -&gt; TypeId</h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-Body" class="impl has-srclink"><a href="#impl-Borrow%3CT%3E-for-Body" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; Borrow&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow</a>(&amp;self) -&gt; &amp;T</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-Body" class="impl has-srclink"><a href="#impl-BorrowMut%3CT%3E-for-Body" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; BorrowMut&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow_mut</a>(&amp;mut self) -&gt; &amp;mut T</h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-Body" class="impl has-srclink"><a href="#impl-From%3CT%3E-for-Body" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; From&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-8" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.from-8" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Instrument-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/tracing/instrument.rs.html#276">source</a><a href="#impl-Instrument-for-Body" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../../tracing/instrument/trait.Instrument.html" title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tracing/instrument.rs.html#82">source</a><a href="#method.instrument" class="anchor"></a><h4 class="code-header">fn <a href="../../tracing/instrument/trait.Instrument.html#method.instrument" class="fnname">instrument</a>(self, span: <a class="struct" href="../../tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -&gt; <a class="struct" href="../../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the provided <a href="../../tracing/span/struct.Span.html" title="Span"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a href="../../tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tracing/instrument.rs.html#121">source</a><a href="#method.in_current_span" class="anchor"></a><h4 class="code-header">fn <a href="../../tracing/instrument/trait.Instrument.html#method.in_current_span" class="fnname">in_current_span</a>(self) -&gt; <a class="struct" href="../../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the <a href="../../tracing/span/struct.Span.html#method.current">current</a> <a href="../../tracing/span/struct.Span.html"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a href="../../tracing/instrument/trait.Instrument.html#method.in_current_span">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-Body" class="impl has-srclink"><a href="#impl-Into%3CU%3E-for-Body" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; Into&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: From&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code>[From]&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-StreamExt-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#245">source</a><a href="#impl-StreamExt-for-Body" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../../futures_util/stream/stream/trait.StreamExt.html" title="trait futures_util::stream::stream::StreamExt">StreamExt</a> for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a> + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.next" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#273-275">source</a><a href="#method.next" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.next" class="fnname">next</a>(&amp;mut self) -&gt; Next&lt;'_, Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Unpin,</span></h4></section></summary><div class='docblock'>Creates a future that resolves to the next item in the stream. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.next">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_future" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#308-310">source</a><a href="#method.into_future" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.into_future" class="fnname">into_future</a>(self) -&gt; StreamFuture&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Unpin,</span></h4></section></summary><div class='docblock'>Converts this stream into a future of <code>(next_item, tail_of_stream)</code>.
If the stream terminates, then the next item is [<code>None</code>]. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.into_future">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#338-341">source</a><a href="#method.map" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.map" class="fnname">map</a>&lt;T, F&gt;(self, f: F) -&gt; Map&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -&gt; T,</span></h4></section></summary><div class='docblock'>Maps this stream’s items to a different type, returning a new stream of
the resulting type. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.map">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.enumerate" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#384-386">source</a><a href="#method.enumerate" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.enumerate" class="fnname">enumerate</a>(self) -&gt; Enumerate&lt;Self&gt;</h4></section></summary><div class='docblock'>Creates a stream which gives the current iteration count as well as
the next value. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.enumerate">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.filter" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#417-421">source</a><a href="#method.filter" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.filter" class="fnname">filter</a>&lt;Fut, F&gt;(self, f: F) -&gt; Filter&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(&amp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: Future&lt;Output = bool&gt;,</span></h4></section></summary><div class='docblock'>Filters the values produced by this stream according to the provided
asynchronous predicate. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.filter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.filter_map" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#451-455">source</a><a href="#method.filter_map" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.filter_map" class="fnname">filter_map</a>&lt;Fut, T, F&gt;(self, f: F) -&gt; FilterMap&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: Future&lt;Output = Option&lt;T&gt;&gt;,</span></h4></section></summary><div class='docblock'>Filters the values produced by this stream while simultaneously mapping
them to a different type according to the provided asynchronous closure. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.filter_map">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.then" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#482-486">source</a><a href="#method.then" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.then" class="fnname">then</a>&lt;Fut, F&gt;(self, f: F) -&gt; Then&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: Future,</span></h4></section></summary><div class='docblock'>Computes from this stream’s items new items of a different type using
an asynchronous closure. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.then">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.collect" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#516-518">source</a><a href="#method.collect" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.collect" class="fnname">collect</a>&lt;C&gt;(self) -&gt; Collect&lt;Self, C&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;C: Default + Extend&lt;Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>&gt;,</span></h4></section></summary><div class='docblock'>Transforms a stream into a collection, returning a
future representing the result of that computation. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.collect">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.unzip" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#553-557">source</a><a href="#method.unzip" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.unzip" class="fnname">unzip</a>&lt;A, B, FromA, FromB&gt;(self) -&gt; Unzip&lt;Self, FromA, FromB&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;FromA: Default + Extend&lt;A&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;FromB: Default + Extend&lt;B&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a>&lt;Item = (A, B)&gt;,</span></h4></section></summary><div class='docblock'>Converts a stream of pairs into a future, which
resolves to pair of containers. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.unzip">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.concat" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#594-597">source</a><a href="#method.concat" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.concat" class="fnname">concat</a>(self) -&gt; Concat&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>: Extend&lt;&lt;Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a> as IntoIterator&gt;::Item&gt; + IntoIterator + Default,</span></h4></section></summary><div class='docblock'>Concatenate all items of a stream into a single extendable
destination, returning a future representing the end result. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.concat">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.count" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#627-629">source</a><a href="#method.count" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.count" class="fnname">count</a>(self) -&gt; Count&lt;Self&gt;</h4></section></summary><div class='docblock'>Drives the stream to completion, counting the number of items. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.count">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.cycle" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#657-659">source</a><a href="#method.cycle" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.cycle" class="fnname">cycle</a>(self) -&gt; Cycle&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Clone,</span></h4></section></summary><div class='docblock'>Repeats a stream endlessly. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.cycle">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fold" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#684-688">source</a><a href="#method.fold" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.fold" class="fnname">fold</a>&lt;T, Fut, F&gt;(self, init: T, f: F) -&gt; Fold&lt;Self, Fut, T, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(T, Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: Future&lt;Output = T&gt;,</span></h4></section></summary><div class='docblock'>Execute an accumulating asynchronous computation over a stream,
collecting all the values into one final result. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.fold">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.any" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#706-710">source</a><a href="#method.any" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.any" class="fnname">any</a>&lt;Fut, F&gt;(self, f: F) -&gt; Any&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: Future&lt;Output = bool&gt;,</span></h4></section></summary><div class='docblock'>Execute predicate over asynchronous stream, and return <code>true</code> if any element in stream satisfied a predicate. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.any">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.all" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#728-732">source</a><a href="#method.all" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.all" class="fnname">all</a>&lt;Fut, F&gt;(self, f: F) -&gt; All&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: Future&lt;Output = bool&gt;,</span></h4></section></summary><div class='docblock'>Execute predicate over asynchronous stream, and return <code>true</code> if all element in stream satisfied a predicate. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.all">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.flatten" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#768-771">source</a><a href="#method.flatten" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.flatten" class="fnname">flatten</a>(self) -&gt; Flatten&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>: <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a>,</span></h4></section></summary><div class='docblock'>Flattens a stream of streams into just one continuous stream. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.flatten">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.flatten_unordered" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#819-822">source</a><a href="#method.flatten_unordered" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.flatten_unordered" class="fnname">flatten_unordered</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;limit: impl Into&lt;Option&lt;usize&gt;&gt;<br>) -&gt; FlattenUnorderedWithFlowController&lt;Self, ()&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>: <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a> + Unpin,</span></h4></section></summary><div class='docblock'>Flattens a stream of streams into just one continuous stream. Polls
inner streams produced by the base stream concurrently. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.flatten_unordered">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.flat_map" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#852-856">source</a><a href="#method.flat_map" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.flat_map" class="fnname">flat_map</a>&lt;U, F&gt;(self, f: F) -&gt; FlatMap&lt;Self, U, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -&gt; U,<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a>,</span></h4></section></summary><div class='docblock'>Maps a stream like <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.map" title="StreamExt::map"><code>StreamExt::map</code></a> but flattens nested <code>Stream</code>s. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.flat_map">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.flat_map_unordered" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#901-909">source</a><a href="#method.flat_map_unordered" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.flat_map_unordered" class="fnname">flat_map_unordered</a>&lt;U, F&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;limit: impl Into&lt;Option&lt;usize&gt;&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;f: F<br>) -&gt; FlatMapUnordered&lt;Self, U, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a> + Unpin,<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -&gt; U,</span></h4></section></summary><div class='docblock'>Maps a stream like <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.map" title="StreamExt::map"><code>StreamExt::map</code></a> but flattens nested <code>Stream</code>s
and polls them concurrently, yielding items in any order, as they made
available. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.flat_map_unordered">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.scan" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#938-942">source</a><a href="#method.scan" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.scan" class="fnname">scan</a>&lt;S, B, Fut, F&gt;(self, initial_state: S, f: F) -&gt; Scan&lt;Self, S, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(&amp;mut S, Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: Future&lt;Output = Option&lt;B&gt;&gt;,</span></h4></section></summary><div class='docblock'>Combinator similar to <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.fold" title="StreamExt::fold"><code>StreamExt::fold</code></a> that holds internal state
and produces a new stream. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.scan">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.skip_while" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#969-973">source</a><a href="#method.skip_while" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.skip_while" class="fnname">skip_while</a>&lt;Fut, F&gt;(self, f: F) -&gt; SkipWhile&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(&amp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: Future&lt;Output = bool&gt;,</span></h4></section></summary><div class='docblock'>Skip elements on this stream while the provided asynchronous predicate
resolves to <code>true</code>. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.skip_while">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.take_while" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#999-1003">source</a><a href="#method.take_while" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.take_while" class="fnname">take_while</a>&lt;Fut, F&gt;(self, f: F) -&gt; TakeWhile&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(&amp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: Future&lt;Output = bool&gt;,</span></h4></section></summary><div class='docblock'>Take elements from this stream while the provided asynchronous predicate
resolves to <code>true</code>. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.take_while">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.take_until" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1044-1047">source</a><a href="#method.take_until" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.take_until" class="fnname">take_until</a>&lt;Fut&gt;(self, fut: Fut) -&gt; TakeUntil&lt;Self, Fut&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: Future,</span></h4></section></summary><div class='docblock'>Take elements from this stream until the provided future resolves. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.take_until">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.for_each" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1085-1089">source</a><a href="#method.for_each" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.for_each" class="fnname">for_each</a>&lt;Fut, F&gt;(self, f: F) -&gt; ForEach&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: Future&lt;Output = ()&gt;,</span></h4></section></summary><div class='docblock'>Runs this stream to completion, executing the provided asynchronous
closure for each element on the stream. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.for_each">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.for_each_concurrent" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1141-1149">source</a><a href="#method.for_each_concurrent" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.for_each_concurrent" class="fnname">for_each_concurrent</a>&lt;Fut, F&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;limit: impl Into&lt;Option&lt;usize&gt;&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;f: F<br>) -&gt; ForEachConcurrent&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: Future&lt;Output = ()&gt;,</span></h4></section></summary><div class='docblock'>Runs this stream to completion, executing the provided asynchronous
closure for each element on the stream concurrently as elements become
available. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.for_each_concurrent">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.take" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1170-1172">source</a><a href="#method.take" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.take" class="fnname">take</a>(self, n: usize) -&gt; Take&lt;Self&gt;</h4></section></summary><div class='docblock'>Creates a new stream of at most <code>n</code> items of the underlying stream. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.take">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.skip" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1193-1195">source</a><a href="#method.skip" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.skip" class="fnname">skip</a>(self, n: usize) -&gt; Skip&lt;Self&gt;</h4></section></summary><div class='docblock'>Creates a new stream which skips <code>n</code> items of the underlying stream. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.skip">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fuse" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1239-1241">source</a><a href="#method.fuse" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.fuse" class="fnname">fuse</a>(self) -&gt; Fuse&lt;Self&gt;</h4></section></summary><div class='docblock'>Fuse a stream such that <a href="../../futures_core/stream/trait.Stream.html#tymethod.poll_next"><code>poll_next</code></a> will never
again be called once it has finished. This method can be used to turn
any <code>Stream</code> into a <code>FusedStream</code>. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.fuse">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.by_ref" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1272">source</a><a href="#method.by_ref" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.by_ref" class="fnname">by_ref</a>(&amp;mut self) -&gt; &amp;mut Self</h4></section></summary><div class='docblock'>Borrows a stream, rather than consuming it. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.by_ref">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.catch_unwind" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1317-1319">source</a><a href="#method.catch_unwind" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.catch_unwind" class="fnname">catch_unwind</a>(self) -&gt; CatchUnwind&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: UnwindSafe,</span></h4></section></summary><div class='docblock'>Catches unwinding panics while polling the stream. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.catch_unwind">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.boxed-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1329-1331">source</a><a href="#method.boxed-1" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.boxed" class="fnname">boxed</a>&lt;'a&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self<br>) -&gt; Pin&lt;Box&lt;dyn <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a>&lt;Item = Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>&gt; + Send + 'a, Global&gt;&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'a + Send,</span></h4></section></summary><div class='docblock'>Wrap the stream in a Box, pinning it. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.boxed">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.boxed_local" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1343-1345">source</a><a href="#method.boxed_local" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.boxed_local" class="fnname">boxed_local</a>&lt;'a&gt;(self) -&gt; Pin&lt;Box&lt;dyn <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a>&lt;Item = Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>&gt; + 'a, Global&gt;&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: 'a,</span></h4></section></summary><div class='docblock'>Wrap the stream in a Box, pinning it. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.boxed_local">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.buffered" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1364-1367">source</a><a href="#method.buffered" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.buffered" class="fnname">buffered</a>(self, n: usize) -&gt; Buffered&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>: Future,</span></h4></section></summary><div class='docblock'>An adaptor for creating a buffered list of pending futures. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.buffered">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.buffer_unordered" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1409-1412">source</a><a href="#method.buffer_unordered" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.buffer_unordered" class="fnname">buffer_unordered</a>(self, n: usize) -&gt; BufferUnordered&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>: Future,</span></h4></section></summary><div class='docblock'>An adaptor for creating a buffered list of pending futures (unordered). <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.buffer_unordered">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.zip" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1439-1442">source</a><a href="#method.zip" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.zip" class="fnname">zip</a>&lt;St&gt;(self, other: St) -&gt; Zip&lt;Self, St&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;St: <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a>,</span></h4></section></summary><div class='docblock'>An adapter for zipping two streams together. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.zip">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.chain" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1470-1473">source</a><a href="#method.chain" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.chain" class="fnname">chain</a>&lt;St&gt;(self, other: St) -&gt; Chain&lt;Self, St&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;St: <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a>&lt;Item = Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>&gt;,</span></h4></section></summary><div class='docblock'>Adapter for chaining two streams. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.chain">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.peekable" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1481-1483">source</a><a href="#method.peekable" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.peekable" class="fnname">peekable</a>(self) -&gt; Peekable&lt;Self&gt;</h4></section></summary><div class='docblock'>Creates a new stream which exposes a <code>peek</code> method. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.peekable">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.chunks" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1507-1509">source</a><a href="#method.chunks" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.chunks" class="fnname">chunks</a>(self, capacity: usize) -&gt; Chunks&lt;Self&gt;</h4></section></summary><div class='docblock'>An adaptor for chunking up items of the stream inside a vector. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.chunks">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ready_chunks" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1532-1534">source</a><a href="#method.ready_chunks" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.ready_chunks" class="fnname">ready_chunks</a>(self, capacity: usize) -&gt; ReadyChunks&lt;Self&gt;</h4></section></summary><div class='docblock'>An adaptor for chunking up ready items of the stream inside a vector. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.ready_chunks">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.forward" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1552-1555">source</a><a href="#method.forward" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.forward" class="fnname">forward</a>&lt;S&gt;(self, sink: S) -&gt; Forward&lt;Self, S&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures_sink/trait.Sink.html" title="trait futures_sink::Sink">Sink</a>&lt;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>, Error = Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../futures_core/stream/trait.TryStream.html" title="trait futures_core::stream::TryStream">TryStream</a>,</span></h4></section></summary><div class='docblock'>A future that completes after the given stream has been fully processed
into the sink and the sink has been flushed and closed. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.forward">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.split" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1576-1578">source</a><a href="#method.split" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.split" class="fnname">split</a>&lt;Item&gt;(self) -&gt; (SplitSink&lt;Self, Item&gt;, SplitStream&lt;Self&gt;)<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../futures_sink/trait.Sink.html" title="trait futures_sink::Sink">Sink</a>&lt;Item&gt;,</span></h4></section></summary><div class='docblock'>Splits this <code>Stream + Sink</code> object into separate <code>Sink</code> and <code>Stream</code>
objects. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.split">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.inspect" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1592-1595">source</a><a href="#method.inspect" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.inspect" class="fnname">inspect</a>&lt;F&gt;(self, f: F) -&gt; Inspect&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(&amp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>),</span></h4></section></summary><div class='docblock'>Do something with each item of this stream, afterwards passing it on. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.inspect">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.left_stream" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1605-1608">source</a><a href="#method.left_stream" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.left_stream" class="fnname">left_stream</a>&lt;B&gt;(self) -&gt; Either&lt;Self, B&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a>&lt;Item = Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>&gt;,</span></h4></section></summary><div class='docblock'>Wrap this stream in an <code>Either</code> stream, making it the left-hand variant
of that <code>Either</code>. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.left_stream">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.right_stream" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1618-1621">source</a><a href="#method.right_stream" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.right_stream" class="fnname">right_stream</a>&lt;B&gt;(self) -&gt; Either&lt;B, Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a>&lt;Item = Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>&gt;,</span></h4></section></summary><div class='docblock'>Wrap this stream in an <code>Either</code> stream, making it the right-hand variant
of that <code>Either</code>. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.right_stream">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.poll_next_unpin" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1628-1630">source</a><a href="#method.poll_next_unpin" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.poll_next_unpin" class="fnname">poll_next_unpin</a>(&amp;mut self, cx: &amp;mut Context&lt;'_&gt;) -&gt; Poll&lt;Option&lt;Self::<a class="associatedtype" href="../../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>&gt;&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Unpin,</span></h4></section></summary><div class='docblock'>A convenience method for calling <a href="../../futures_core/stream/trait.Stream.html#tymethod.poll_next" title="Stream::poll_next"><code>Stream::poll_next</code></a> on [<code>Unpin</code>]
stream types. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.poll_next_unpin">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.select_next_some" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/stream/mod.rs.html#1685-1687">source</a><a href="#method.select_next_some" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.select_next_some" class="fnname">select_next_some</a>(&amp;mut self) -&gt; SelectNextSome&lt;'_, Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Unpin + <a class="trait" href="../../futures_core/stream/trait.FusedStream.html" title="trait futures_core::stream::FusedStream">FusedStream</a>,</span></h4></section></summary><div class='docblock'>Returns a [<code>Future</code>] that resolves when the next item in this stream is
ready. <a href="../../futures_util/stream/stream/trait.StreamExt.html#method.select_next_some">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-Body" class="impl has-srclink"><a href="#impl-TryFrom%3CU%3E-for-Body" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; TryFrom&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: Into&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-2" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = Infallible</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(value: U) -&gt; Result&lt;T, &lt;T as TryFrom&lt;U&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-Body" class="impl has-srclink"><a href="#impl-TryInto%3CU%3E-for-Body" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; TryInto&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: TryFrom&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = &lt;U as TryFrom&lt;T&gt;&gt;::Error</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_into</a>(self) -&gt; Result&lt;U, &lt;U as TryFrom&lt;T&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryStream-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/futures_core/stream.rs.html#185">source</a><a href="#impl-TryStream-for-Body" class="anchor"></a><h3 class="code-header">impl&lt;S, T, E&gt; <a class="trait" href="../../futures_core/stream/trait.TryStream.html" title="trait futures_core::stream::TryStream">TryStream</a> for S<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a>&lt;Item = Result&lt;T, E&gt;&gt; + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Ok" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Ok" class="anchor"></a><h4 class="code-header">type <a href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" class="associatedtype">Ok</a> = T</h4></section></summary><div class='docblock'>The type of successful values yielded by this future</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-3" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-3" class="anchor"></a><h4 class="code-header">type <a href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></summary><div class='docblock'>The type of failures yielded by this future</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_poll_next" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_core/stream.rs.html#192-195">source</a><a href="#method.try_poll_next" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_core/stream/trait.TryStream.html#tymethod.try_poll_next" class="fnname">try_poll_next</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self: Pin&lt;&amp;mut S&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &amp;mut Context&lt;'_&gt;<br>) -&gt; Poll&lt;Option&lt;Result&lt;&lt;S as <a class="trait" href="../../futures_core/stream/trait.TryStream.html" title="trait futures_core::stream::TryStream">TryStream</a>&gt;::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>, &lt;S as <a class="trait" href="../../futures_core/stream/trait.TryStream.html" title="trait futures_core::stream::TryStream">TryStream</a>&gt;::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>&gt;&gt;&gt;</h4></section></summary><div class='docblock'>Poll this <code>TryStream</code> as if it were a <code>Stream</code>. <a href="../../futures_core/stream/trait.TryStream.html#tymethod.try_poll_next">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryStreamExt-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#163">source</a><a href="#impl-TryStreamExt-for-Body" class="anchor"></a><h3 class="code-header">impl&lt;S&gt; <a class="trait" href="../../futures_util/stream/try_stream/trait.TryStreamExt.html" title="trait futures_util::stream::try_stream::TryStreamExt">TryStreamExt</a> for S<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures_core/stream/trait.TryStream.html" title="trait futures_core::stream::TryStream">TryStream</a> + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.err_into" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#184-187">source</a><a href="#method.err_into" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.err_into" class="fnname">err_into</a>&lt;E&gt;(self) -&gt; ErrInto&lt;Self, E&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>: Into&lt;E&gt;,</span></h4></section></summary><div class='docblock'>Wraps the current stream in a new stream which converts the error type
into the one provided. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.err_into">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map_ok" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#209-212">source</a><a href="#method.map_ok" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.map_ok" class="fnname">map_ok</a>&lt;T, F&gt;(self, f: F) -&gt; MapOk&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>) -&gt; T,</span></h4></section></summary><div class='docblock'>Wraps the current stream in a new stream which maps the success value
using the provided closure. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.map_ok">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map_err-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#234-237">source</a><a href="#method.map_err-1" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.map_err" class="fnname">map_err</a>&lt;E, F&gt;(self, f: F) -&gt; MapErr&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>) -&gt; E,</span></h4></section></summary><div class='docblock'>Wraps the current stream in a new stream which maps the error value
using the provided closure. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.map_err">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.and_then" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#280-284">source</a><a href="#method.and_then" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.and_then" class="fnname">and_then</a>&lt;Fut, F&gt;(self, f: F) -&gt; AndThen&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: <a class="trait" href="../../futures_core/future/trait.TryFuture.html" title="trait futures_core::future::TryFuture">TryFuture</a>&lt;Error = Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>&gt;,</span></h4></section></summary><div class='docblock'>Chain on a computation for when a value is ready, passing the successful
results to the provided closure <code>f</code>. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.and_then">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.or_else" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#306-310">source</a><a href="#method.or_else" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.or_else" class="fnname">or_else</a>&lt;Fut, F&gt;(self, f: F) -&gt; OrElse&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: <a class="trait" href="../../futures_core/future/trait.TryFuture.html" title="trait futures_core::future::TryFuture">TryFuture</a>&lt;Ok = Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>&gt;,</span></h4></section></summary><div class='docblock'>Chain on a computation for when an error happens, passing the
erroneous result to the provided closure <code>f</code>. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.or_else">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.inspect_ok" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#321-324">source</a><a href="#method.inspect_ok" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.inspect_ok" class="fnname">inspect_ok</a>&lt;F&gt;(self, f: F) -&gt; InspectOk&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(&amp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>),</span></h4></section></summary><div class='docblock'>Do something with the success value of this stream, afterwards passing
it on. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.inspect_ok">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.inspect_err" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#334-337">source</a><a href="#method.inspect_err" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.inspect_err" class="fnname">inspect_err</a>&lt;F&gt;(self, f: F) -&gt; InspectErr&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(&amp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>),</span></h4></section></summary><div class='docblock'>Do something with the error value of this stream, afterwards passing it on. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.inspect_err">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_stream" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#363-365">source</a><a href="#method.into_stream" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.into_stream" class="fnname">into_stream</a>(self) -&gt; IntoStream&lt;Self&gt;</h4></section></summary><div class='docblock'>Wraps a <a href="../../futures_core/stream/trait.TryStream.html" title="TryStream"><code>TryStream</code></a> into a type that implements
<a href="../../futures_core/stream/trait.Stream.html"><code>Stream</code></a> <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.into_stream">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_next" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#390-392">source</a><a href="#method.try_next" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_next" class="fnname">try_next</a>(&amp;mut self) -&gt; TryNext&lt;'_, Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Unpin,</span></h4></section></summary><div class='docblock'>Creates a future that attempts to resolve the next item in the stream.
If an error is encountered before the next item, the error is returned
instead. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_next">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_for_each" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#430-434">source</a><a href="#method.try_for_each" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_for_each" class="fnname">try_for_each</a>&lt;Fut, F&gt;(self, f: F) -&gt; TryForEach&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: <a class="trait" href="../../futures_core/future/trait.TryFuture.html" title="trait futures_core::future::TryFuture">TryFuture</a>&lt;Ok = (), Error = Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>&gt;,</span></h4></section></summary><div class='docblock'>Attempts to run this stream to completion, executing the provided
asynchronous closure for each element on the stream. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_for_each">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_skip_while" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#460-464">source</a><a href="#method.try_skip_while" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_skip_while" class="fnname">try_skip_while</a>&lt;Fut, F&gt;(self, f: F) -&gt; TrySkipWhile&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(&amp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: <a class="trait" href="../../futures_core/future/trait.TryFuture.html" title="trait futures_core::future::TryFuture">TryFuture</a>&lt;Ok = bool, Error = Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>&gt;,</span></h4></section></summary><div class='docblock'>Skip elements on this stream while the provided asynchronous predicate
resolves to <code>true</code>. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_skip_while">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_take_while" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#490-494">source</a><a href="#method.try_take_while" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_take_while" class="fnname">try_take_while</a>&lt;Fut, F&gt;(self, f: F) -&gt; TryTakeWhile&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(&amp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: <a class="trait" href="../../futures_core/future/trait.TryFuture.html" title="trait futures_core::future::TryFuture">TryFuture</a>&lt;Ok = bool, Error = Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>&gt;,</span></h4></section></summary><div class='docblock'>Take elements on this stream while the provided asynchronous predicate
resolves to <code>true</code>. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_take_while">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_for_each_concurrent" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#542-550">source</a><a href="#method.try_for_each_concurrent" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_for_each_concurrent" class="fnname">try_for_each_concurrent</a>&lt;Fut, F&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;limit: impl Into&lt;Option&lt;usize&gt;&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;f: F<br>) -&gt; TryForEachConcurrent&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: Future&lt;Output = Result&lt;(), Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>&gt;&gt;,</span></h4></section></summary><div class='docblock'>Attempts to run this stream to completion, executing the provided asynchronous
closure for each element on the stream concurrently as elements become
available, exiting as soon as an error occurs. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_for_each_concurrent">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_collect" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#589-591">source</a><a href="#method.try_collect" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_collect" class="fnname">try_collect</a>&lt;C&gt;(self) -&gt; TryCollect&lt;Self, C&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;C: Default + Extend&lt;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>&gt;,</span></h4></section></summary><div class='docblock'>Attempt to transform a stream into a collection,
returning a future representing the result of that computation. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_collect">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_chunks" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#634-636">source</a><a href="#method.try_chunks" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_chunks" class="fnname">try_chunks</a>(self, capacity: usize) -&gt; TryChunks&lt;Self&gt;</h4></section></summary><div class='docblock'>An adaptor for chunking up successful items of the stream inside a vector. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_chunks">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_filter" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#673-677">source</a><a href="#method.try_filter" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_filter" class="fnname">try_filter</a>&lt;Fut, F&gt;(self, f: F) -&gt; TryFilter&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: Future&lt;Output = bool&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(&amp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>) -&gt; Fut,</span></h4></section></summary><div class='docblock'>Attempt to filter the values produced by this stream according to the
provided asynchronous closure. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_filter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_filter_map" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#714-718">source</a><a href="#method.try_filter_map" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_filter_map" class="fnname">try_filter_map</a>&lt;Fut, F, T&gt;(self, f: F) -&gt; TryFilterMap&lt;Self, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: <a class="trait" href="../../futures_core/future/trait.TryFuture.html" title="trait futures_core::future::TryFuture">TryFuture</a>&lt;Ok = Option&lt;T&gt;, Error = Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>) -&gt; Fut,</span></h4></section></summary><div class='docblock'>Attempt to filter the values produced by this stream while
simultaneously mapping them to a different type according to the
provided asynchronous closure. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_filter_map">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_flatten_unordered" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#769-773">source</a><a href="#method.try_flatten_unordered" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_flatten_unordered" class="fnname">try_flatten_unordered</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;limit: impl Into&lt;Option&lt;usize&gt;&gt;<br>) -&gt; TryFlattenUnordered&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>: <a class="trait" href="../../futures_core/stream/trait.TryStream.html" title="trait futures_core::stream::TryStream">TryStream</a> + Unpin,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a> as <a class="trait" href="../../futures_core/stream/trait.TryStream.html" title="trait futures_core::stream::TryStream">TryStream</a>&gt;::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>: From&lt;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>&gt;,</span></h4></section></summary><div class='docblock'>Flattens a stream of streams into just one continuous stream. Produced streams
will be polled concurrently and any errors will be passed through without looking at them.
If the underlying base stream returns an error, it will be <strong>immediately</strong> propagated. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_flatten_unordered">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_flatten" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#822-826">source</a><a href="#method.try_flatten" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_flatten" class="fnname">try_flatten</a>(self) -&gt; TryFlatten&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>: <a class="trait" href="../../futures_core/stream/trait.TryStream.html" title="trait futures_core::stream::TryStream">TryStream</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a> as <a class="trait" href="../../futures_core/stream/trait.TryStream.html" title="trait futures_core::stream::TryStream">TryStream</a>&gt;::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>: From&lt;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>&gt;,</span></h4></section></summary><div class='docblock'>Flattens a stream of streams into just one continuous stream. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_flatten">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_fold" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#861-865">source</a><a href="#method.try_fold" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_fold" class="fnname">try_fold</a>&lt;T, Fut, F&gt;(self, init: T, f: F) -&gt; TryFold&lt;Self, Fut, T, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: FnMut(T, Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: <a class="trait" href="../../futures_core/future/trait.TryFuture.html" title="trait futures_core::future::TryFuture">TryFuture</a>&lt;Ok = T, Error = Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>&gt;,</span></h4></section></summary><div class='docblock'>Attempt to execute an accumulating asynchronous computation over a
stream, collecting all the values into one final result. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_fold">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_concat" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#904-907">source</a><a href="#method.try_concat" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_concat" class="fnname">try_concat</a>(self) -&gt; TryConcat&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>: Extend&lt;&lt;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a> as IntoIterator&gt;::Item&gt; + IntoIterator + Default,</span></h4></section></summary><div class='docblock'>Attempt to concatenate all items of a stream into a single
extendable destination, returning a future representing the end result. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_concat">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_buffer_unordered" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#971-974">source</a><a href="#method.try_buffer_unordered" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_buffer_unordered" class="fnname">try_buffer_unordered</a>(self, n: usize) -&gt; TryBufferUnordered&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>: <a class="trait" href="../../futures_core/future/trait.TryFuture.html" title="trait futures_core::future::TryFuture">TryFuture</a>&lt;Error = Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>&gt;,</span></h4></section></summary><div class='docblock'>Attempt to execute several futures from a stream concurrently (unordered). <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_buffer_unordered">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_buffered" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#1047-1050">source</a><a href="#method.try_buffered" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_buffered" class="fnname">try_buffered</a>(self, n: usize) -&gt; TryBuffered&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>: <a class="trait" href="../../futures_core/future/trait.TryFuture.html" title="trait futures_core::future::TryFuture">TryFuture</a>&lt;Error = Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>&gt;,</span></h4></section></summary><div class='docblock'>Attempt to execute several futures from a stream concurrently. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_buffered">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_poll_next_unpin" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#1061-1066">source</a><a href="#method.try_poll_next_unpin" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_poll_next_unpin" class="fnname">try_poll_next_unpin</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &amp;mut Context&lt;'_&gt;<br>) -&gt; Poll&lt;Option&lt;Result&lt;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>, Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>&gt;&gt;&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: Unpin,</span></h4></section></summary><div class='docblock'>A convenience method for calling <a href="../../futures_core/stream/trait.TryStream.html#tymethod.try_poll_next" title="TryStream::try_poll_next"><code>TryStream::try_poll_next</code></a> on [<code>Unpin</code>]
stream types. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.try_poll_next_unpin">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_async_read" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#1123-1126">source</a><a href="#method.into_async_read" class="anchor"></a><h4 class="code-header">fn <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.into_async_read" class="fnname">into_async_read</a>(self) -&gt; IntoAsyncRead&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../futures_util/stream/try_stream/trait.TryStreamExt.html" title="trait futures_util::stream::try_stream::TryStreamExt">TryStreamExt</a>&lt;Error = Error&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="associatedtype" href="../../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>: AsRef&lt;[u8]&gt;,</span></h4></section></summary><div class='docblock'>Adapter that converts this stream into an <a href="../../futures_io/if_std/trait.AsyncBufRead.html"><code>AsyncBufRead</code></a>. <a href="../../futures_util/stream/try_stream/trait.TryStreamExt.html#method.into_async_read">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-Body" class="impl has-srclink"><a class="srclink rightside" href="../../src/tracing/instrument.rs.html#334">source</a><a href="#impl-WithSubscriber-for-Body" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../../tracing/instrument/trait.WithSubscriber.html" title="trait tracing::instrument::WithSubscriber">WithSubscriber</a> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tracing/instrument.rs.html#169-171">source</a><a href="#method.with_subscriber" class="anchor"></a><h4 class="code-header">fn <a href="../../tracing/instrument/trait.WithSubscriber.html#method.with_subscriber" class="fnname">with_subscriber</a>&lt;S&gt;(self, subscriber: S) -&gt; <a class="struct" href="../../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: Into&lt;<a class="struct" href="../../tracing_core/dispatcher/struct.Dispatch.html" title="struct tracing_core::dispatcher::Dispatch">Dispatch</a>&gt;,</span></h4></section></summary><div class='docblock'>Attaches the provided <a href="../../tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
<a href="../../tracing/instrument/struct.WithDispatch.html" title="WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="../../tracing/instrument/trait.WithSubscriber.html#method.with_subscriber">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tracing/instrument.rs.html#221">source</a><a href="#method.with_current_subscriber" class="anchor"></a><h4 class="code-header">fn <a href="../../tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber" class="fnname">with_current_subscriber</a>(self) -&gt; <a class="struct" href="../../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;Self&gt;</h4></section></summary><div class='docblock'>Attaches the current <a href="../../tracing/dispatcher/index.html#setting-the-default-subscriber">default</a> <a href="../../tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
<a href="../../tracing/instrument/struct.WithDispatch.html" title="WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="../../tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></div></details></div></details></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="hyper" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html>