Adding large folders

This commit is contained in:
2026-02-26 12:00:21 -05:00
parent 5400d82acd
commit 49701c85ad
47332 changed files with 1942573 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/fn.abortable.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/fn.abortable.html">../../../futures_util/stream/fn.abortable.html</a>...</p>
<script>location.replace("../../../futures_util/stream/fn.abortable.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/fn.empty.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/fn.empty.html">../../../futures_util/stream/fn.empty.html</a>...</p>
<script>location.replace("../../../futures_util/stream/fn.empty.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/struct.Empty.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/struct.Empty.html">../../../futures_util/stream/struct.Empty.html</a>...</p>
<script>location.replace("../../../futures_util/stream/struct.Empty.html" + location.search + location.hash);</script>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,7 @@
<!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="Creates a new `Abortable` stream and an `AbortHandle` which can be used to stop it."><title>abortable in futures_util::stream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">abortable</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In futures_<wbr>util::<wbr>stream</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">futures_util</a>::<wbr><a href="index.html">stream</a></div><h1>Function <span class="fn">abortable</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/futures_util/stream/abortable.rs.html#12-19">Source</a> </span></div><pre class="rust item-decl"><code>pub fn abortable&lt;St&gt;(stream: St) -&gt; (<a class="struct" href="../future/struct.Abortable.html" title="struct futures_util::future::Abortable">Abortable</a>&lt;St&gt;, <a class="struct" href="../future/struct.AbortHandle.html" title="struct futures_util::future::AbortHandle">AbortHandle</a>)<div class="where">where
St: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new <code>Abortable</code> stream and an <code>AbortHandle</code> which can be used to stop it.</p>
<p>This function is a convenient (but less flexible) alternative to calling
<code>AbortHandle::new</code> and <code>Abortable::new</code> manually.</p>
<p>This function is only available when the <code>std</code> or <code>alloc</code> feature of this
library is activated, and it is activated by default.</p>
</div></details></section></div></main></body></html>

View File

@@ -0,0 +1,3 @@
<!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="Creates a stream which contains no elements."><title>empty in futures_util::stream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">empty</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In futures_<wbr>util::<wbr>stream</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">futures_util</a>::<wbr><a href="index.html">stream</a></div><h1>Function <span class="fn">empty</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/futures_util/stream/empty.rs.html#17-19">Source</a> </span></div><pre class="rust item-decl"><code>pub fn empty&lt;T&gt;() -&gt; <a class="struct" href="struct.Empty.html" title="struct futures_util::stream::Empty">Empty</a>&lt;T&gt;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a stream which contains no elements.</p>
<p>The returned stream will always return <code>Ready(None)</code> when polled.</p>
</div></details></section></div></main></body></html>

View File

@@ -0,0 +1,10 @@
<!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="Converts an `Iterator` into a `Stream` which is always ready to yield the next value."><title>iter in futures_util::stream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">iter</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In futures_<wbr>util::<wbr>stream</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">futures_util</a>::<wbr><a href="index.html">stream</a></div><h1>Function <span class="fn">iter</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/futures_util/stream/iter.rs.html#46-51">Source</a> </span></div><pre class="rust item-decl"><code>pub fn iter&lt;I&gt;(i: I) -&gt; <a class="struct" href="struct.Iter.html" title="struct futures_util::stream::Iter">Iter</a>&lt;I::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;<div class="where">where
I: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Converts an <code>Iterator</code> into a <code>Stream</code> which is always ready
to yield the next value.</p>
<p>Iterators in Rust dont express the ability to block, so this adapter
simply always calls <code>iter.next()</code> and returns that.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::stream::{<span class="self">self</span>, StreamExt};
<span class="kw">let </span>stream = stream::iter(<span class="macro">vec!</span>[<span class="number">17</span>, <span class="number">19</span>]);
<span class="macro">assert_eq!</span>(<span class="macro">vec!</span>[<span class="number">17</span>, <span class="number">19</span>], stream.collect::&lt;Vec&lt;i32&gt;&gt;().<span class="kw">await</span>);</code></pre></div></div></details></section></div></main></body></html>

View File

@@ -0,0 +1,7 @@
<!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="Creates a stream of a single element."><title>once in futures_util::stream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">once</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In futures_<wbr>util::<wbr>stream</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">futures_util</a>::<wbr><a href="index.html">stream</a></div><h1>Function <span class="fn">once</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/futures_util/stream/once.rs.html#20-22">Source</a> </span></div><pre class="rust item-decl"><code>pub fn once&lt;Fut: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&gt;(future: Fut) -&gt; <a class="struct" href="struct.Once.html" title="struct futures_util::stream::Once">Once</a>&lt;Fut&gt;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a stream of a single element.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::stream::{<span class="self">self</span>, StreamExt};
<span class="kw">let </span>stream = stream::once(<span class="kw">async </span>{ <span class="number">17 </span>});
<span class="kw">let </span>collected = stream.collect::&lt;Vec&lt;i32&gt;&gt;().<span class="kw">await</span>;
<span class="macro">assert_eq!</span>(collected, <span class="macro">vec!</span>[<span class="number">17</span>]);</code></pre></div></div></details></section></div></main></body></html>

View File

@@ -0,0 +1,3 @@
<!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="Creates a stream which never returns any elements."><title>pending in futures_util::stream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">pending</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In futures_<wbr>util::<wbr>stream</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">futures_util</a>::<wbr><a href="index.html">stream</a></div><h1>Function <span class="fn">pending</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/futures_util/stream/pending.rs.html#17-19">Source</a> </span></div><pre class="rust item-decl"><code>pub fn pending&lt;T&gt;() -&gt; <a class="struct" href="struct.Pending.html" title="struct futures_util::stream::Pending">Pending</a>&lt;T&gt;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a stream which never returns any elements.</p>
<p>The returned stream will always return <code>Pending</code> when polled.</p>
</div></details></section></div></main></body></html>

View File

@@ -0,0 +1,14 @@
<!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="Creates a new stream wrapping a function returning `Poll&#60;Option&#60;T&#62;&#62;`."><title>poll_fn in futures_util::stream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">poll_fn</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">poll_fn</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In futures_<wbr>util::<wbr>stream</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">futures_util</a>::<wbr><a href="index.html">stream</a></div><h1>Function <span class="fn">poll_fn</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/futures_util/stream/poll_fn.rs.html#41-46">Source</a> </span></div><pre class="rust item-decl"><code>pub fn poll_fn&lt;T, F&gt;(f: F) -&gt; <a class="struct" href="struct.PollFn.html" title="struct futures_util::stream::PollFn">PollFn</a>&lt;F&gt;<div class="where">where
F: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;&gt;,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new stream wrapping a function returning <code>Poll&lt;Option&lt;T&gt;&gt;</code>.</p>
<p>Polling the returned stream calls the wrapped function.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::stream::poll_fn;
<span class="kw">use </span>futures::task::Poll;
<span class="kw">let </span><span class="kw-2">mut </span>counter = <span class="number">1usize</span>;
<span class="kw">let </span>read_stream = poll_fn(<span class="kw">move </span>|<span class="kw">_</span>| -&gt; Poll&lt;<span class="prelude-ty">Option</span>&lt;String&gt;&gt; {
<span class="kw">if </span>counter == <span class="number">0 </span>{ <span class="kw">return </span>Poll::Ready(<span class="prelude-val">None</span>); }
counter -= <span class="number">1</span>;
Poll::Ready(<span class="prelude-val">Some</span>(<span class="string">"Hello, World!"</span>.to_owned()))
});</code></pre></div></div></details></section></div></main></body></html>

View File

@@ -0,0 +1,18 @@
<!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="Creates a new stream that always immediately returns Poll::Ready when awaiting it."><title>poll_immediate in futures_util::stream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">poll_immediate</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">poll_<wbr>immediate</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In futures_<wbr>util::<wbr>stream</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">futures_util</a>::<wbr><a href="index.html">stream</a></div><h1>Function <span class="fn">poll_<wbr>immediate</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/futures_util/stream/poll_immediate.rs.html#78-80">Source</a> </span></div><pre class="rust item-decl"><code>pub fn poll_immediate&lt;S: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>&gt;(s: S) -&gt; <a class="struct" href="struct.PollImmediate.html" title="struct futures_util::stream::PollImmediate">PollImmediate</a>&lt;S&gt;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new stream that always immediately returns <a href="https://doc.rust-lang.org/1.93.1/core/task/poll/enum.Poll.html#variant.Ready" title="variant core::task::poll::Poll::Ready">Poll::Ready</a> when awaiting it.</p>
<p>This is useful when immediacy is more important than waiting for the next item to be ready.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::stream::{<span class="self">self</span>, StreamExt};
<span class="kw">use </span>futures::task::Poll;
<span class="kw">let </span><span class="kw-2">mut </span>r = stream::poll_immediate(Box::pin(stream::iter(<span class="number">1_u32</span>..<span class="number">3</span>)));
<span class="macro">assert_eq!</span>(r.next().<span class="kw">await</span>, <span class="prelude-val">Some</span>(Poll::Ready(<span class="number">1</span>)));
<span class="macro">assert_eq!</span>(r.next().<span class="kw">await</span>, <span class="prelude-val">Some</span>(Poll::Ready(<span class="number">2</span>)));
<span class="macro">assert_eq!</span>(r.next().<span class="kw">await</span>, <span class="prelude-val">None</span>);
<span class="kw">let </span><span class="kw-2">mut </span>p = stream::poll_immediate(Box::pin(stream::once(<span class="kw">async </span>{
<span class="macro">futures::pending!</span>();
<span class="number">42_u8
</span>})));
<span class="macro">assert_eq!</span>(p.next().<span class="kw">await</span>, <span class="prelude-val">Some</span>(Poll::Pending));
<span class="macro">assert_eq!</span>(p.next().<span class="kw">await</span>, <span class="prelude-val">Some</span>(Poll::Ready(<span class="number">42</span>)));
<span class="macro">assert_eq!</span>(p.next().<span class="kw">await</span>, <span class="prelude-val">None</span>);</code></pre></div></div></details></section></div></main></body></html>

View File

@@ -0,0 +1,10 @@
<!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="Create a stream which produces the same item repeatedly."><title>repeat in futures_util::stream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">repeat</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In futures_<wbr>util::<wbr>stream</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">futures_util</a>::<wbr><a href="index.html">stream</a></div><h1>Function <span class="fn">repeat</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/futures_util/stream/repeat.rs.html#27-32">Source</a> </span></div><pre class="rust item-decl"><code>pub fn repeat&lt;T&gt;(item: T) -&gt; <a class="struct" href="struct.Repeat.html" title="struct futures_util::stream::Repeat">Repeat</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Create a stream which produces the same item repeatedly.</p>
<p>The stream never terminates. Note that you likely want to avoid
usage of <code>collect</code> or such on the returned stream as it will exhaust
available memory as it tries to just fill up all RAM.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::stream::{<span class="self">self</span>, StreamExt};
<span class="kw">let </span>stream = stream::repeat(<span class="number">9</span>);
<span class="macro">assert_eq!</span>(<span class="macro">vec!</span>[<span class="number">9</span>, <span class="number">9</span>, <span class="number">9</span>], stream.take(<span class="number">3</span>).collect::&lt;Vec&lt;i32&gt;&gt;().<span class="kw">await</span>);</code></pre></div></div></details></section></div></main></body></html>

View File

@@ -0,0 +1,40 @@
<!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="Creates a new stream that repeats elements of type `A` endlessly by applying the provided closure, the repeater, `F: FnMut() -&#62; A`."><title>repeat_with in futures_util::stream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">repeat_with</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">repeat_<wbr>with</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In futures_<wbr>util::<wbr>stream</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">futures_util</a>::<wbr><a href="index.html">stream</a></div><h1>Function <span class="fn">repeat_<wbr>with</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/futures_util/stream/repeat_with.rs.html#91-93">Source</a> </span></div><pre class="rust item-decl"><code>pub fn repeat_with&lt;A, F: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>() -&gt; A&gt;(repeater: F) -&gt; <a class="struct" href="struct.RepeatWith.html" title="struct futures_util::stream::RepeatWith">RepeatWith</a>&lt;F&gt;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a new stream that repeats elements of type <code>A</code> endlessly by
applying the provided closure, the repeater, <code>F: FnMut() -&gt; A</code>.</p>
<p>The <code>repeat_with()</code> function calls the repeater over and over again.</p>
<p>Infinite stream like <code>repeat_with()</code> are often used with adapters like
<a href="trait.StreamExt.html#method.take" title="method futures_util::stream::StreamExt::take"><code>stream.take()</code></a>, in order to make them finite.</p>
<p>If the element type of the stream you need implements <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone"><code>Clone</code></a>, and
it is OK to keep the source element in memory, you should instead use
the <a href="fn.repeat.html" title="fn futures_util::stream::repeat"><code>stream::repeat()</code></a> function.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<p>Basic usage:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::stream::{<span class="self">self</span>, StreamExt};
<span class="comment">// let's assume we have some value of a type that is not `Clone`
// or which don't want to have in memory just yet because it is expensive:
</span><span class="attr">#[derive(PartialEq, Debug)]
</span><span class="kw">struct </span>Expensive;
<span class="comment">// a particular value forever:
</span><span class="kw">let </span><span class="kw-2">mut </span>things = stream::repeat_with(|| Expensive);
<span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(Expensive), things.next().<span class="kw">await</span>);
<span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(Expensive), things.next().<span class="kw">await</span>);
<span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(Expensive), things.next().<span class="kw">await</span>);</code></pre></div>
<p>Using mutation and going finite:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::stream::{<span class="self">self</span>, StreamExt};
<span class="comment">// From the zeroth to the third power of two:
</span><span class="kw">let </span><span class="kw-2">mut </span>curr = <span class="number">1</span>;
<span class="kw">let </span><span class="kw-2">mut </span>pow2 = stream::repeat_with(|| { <span class="kw">let </span>tmp = curr; curr <span class="kw-2">*</span>= <span class="number">2</span>; tmp })
.take(<span class="number">4</span>);
<span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(<span class="number">1</span>), pow2.next().<span class="kw">await</span>);
<span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(<span class="number">2</span>), pow2.next().<span class="kw">await</span>);
<span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(<span class="number">4</span>), pow2.next().<span class="kw">await</span>);
<span class="macro">assert_eq!</span>(<span class="prelude-val">Some</span>(<span class="number">8</span>), pow2.next().<span class="kw">await</span>);
<span class="comment">// ... and now we're done
</span><span class="macro">assert_eq!</span>(<span class="prelude-val">None</span>, pow2.next().<span class="kw">await</span>);</code></pre></div></div></details></section></div></main></body></html>

View File

@@ -0,0 +1,23 @@
<!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="This function will attempt to pull items from both streams. Each stream will be polled in a round-robin fashion, and whenever a stream is ready to yield an item that item is yielded."><title>select in futures_util::stream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">select</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">select</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In futures_<wbr>util::<wbr>stream</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">futures_util</a>::<wbr><a href="index.html">stream</a></div><h1>Function <span class="fn">select</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/futures_util/stream/select.rs.html#47-59">Source</a> </span></div><pre class="rust item-decl"><code>pub fn select&lt;St1, St2&gt;(stream1: St1, stream2: St2) -&gt; <a class="struct" href="struct.Select.html" title="struct futures_util::stream::Select">Select</a>&lt;St1, St2&gt;<div class="where">where
St1: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,
St2: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>&lt;Item = St1::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>&gt;,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This function will attempt to pull items from both streams. Each
stream will be polled in a round-robin fashion, and whenever a stream is
ready to yield an item that item is yielded.</p>
<p>After one of the two input streams completes, the remaining one will be
polled exclusively. The returned stream completes when both input
streams have completed.</p>
<p>Note that this function consumes both streams and returns a wrapped
version of them.</p>
<h3 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h3>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::stream::{ repeat, select, StreamExt };
<span class="kw">let </span>left = repeat(<span class="number">1</span>);
<span class="kw">let </span>right = repeat(<span class="number">2</span>);
<span class="kw">let </span><span class="kw-2">mut </span>out = select(left, right);
<span class="kw">for _ in </span><span class="number">0</span>..<span class="number">100 </span>{
<span class="comment">// We should be alternating.
</span><span class="macro">assert_eq!</span>(<span class="number">1</span>, out.select_next_some().<span class="kw">await</span>);
<span class="macro">assert_eq!</span>(<span class="number">2</span>, out.select_next_some().<span class="kw">await</span>);
}</code></pre></div></div></details></section></div></main></body></html>

View File

@@ -0,0 +1,12 @@
<!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="Convert a list of streams into a `Stream` of results from the streams."><title>select_all in futures_util::stream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">select_all</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In futures_<wbr>util::<wbr>stream</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">futures_util</a>::<wbr><a href="index.html">stream</a></div><h1>Function <span class="fn">select_<wbr>all</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/futures_util/stream/select_all.rs.html#130-142">Source</a> </span></div><pre class="rust item-decl"><code>pub fn select_all&lt;I&gt;(streams: I) -&gt; <a class="struct" href="struct.SelectAll.html" title="struct futures_util::stream::SelectAll">SelectAll</a>&lt;I::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>&gt;<div class="where">where
I: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,
I::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Convert a list of streams into a <code>Stream</code> of results from the streams.</p>
<p>This essentially takes a list of streams (e.g. a vector, an iterator, etc.)
and bundles them together into a single stream.
The stream will yield items as they become available on the underlying
streams internally, in the order they become available.</p>
<p>Note that the returned set can also be used to dynamically push more
streams into the set as they become available.</p>
<p>This function is only available when the <code>std</code> or <code>alloc</code> feature of this
library is activated, and it is activated by default.</p>
</div></details></section></div></main></body></html>

View File

@@ -0,0 +1,54 @@
<!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="This function will attempt to pull items from both streams. You provide a closure to tell `SelectWithStrategy` which stream to poll. The closure can store state on `SelectWithStrategy` to which it will receive a `&#38;mut` on every invocation. This allows basing the strategy on prior choices."><title>select_with_strategy in futures_util::stream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">select_with_strategy</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">select_<wbr>with_<wbr>strategy</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a><ul><li><a href="#priority" title="Priority">Priority</a></li><li><a href="#round-robin" title="Round Robin">Round Robin</a></li></ul></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In futures_<wbr>util::<wbr>stream</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">futures_util</a>::<wbr><a href="index.html">stream</a></div><h1>Function <span class="fn">select_<wbr>with_<wbr>strategy</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/futures_util/stream/select_with_strategy.rs.html#139-157">Source</a> </span></div><pre class="rust item-decl"><code>pub fn select_with_strategy&lt;St1, St2, Clos, State&gt;(
stream1: St1,
stream2: St2,
which: Clos,
) -&gt; <a class="struct" href="struct.SelectWithStrategy.html" title="struct futures_util::stream::SelectWithStrategy">SelectWithStrategy</a>&lt;St1, St2, Clos, State&gt;<div class="where">where
St1: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,
St2: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>&lt;Item = St1::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>&gt;,
Clos: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;mut State</a>) -&gt; <a class="enum" href="enum.PollNext.html" title="enum futures_util::stream::PollNext">PollNext</a>,
State: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This function will attempt to pull items from both streams. You provide a
closure to tell <a href="struct.SelectWithStrategy.html" title="struct futures_util::stream::SelectWithStrategy"><code>SelectWithStrategy</code></a> which stream to poll. The closure can
store state on <code>SelectWithStrategy</code> to which it will receive a <code>&amp;mut</code> on every
invocation. This allows basing the strategy on prior choices.</p>
<p>After one of the two input streams completes, the remaining one will be
polled exclusively. The returned stream completes when both input
streams have completed.</p>
<p>Note that this function consumes both streams and returns a wrapped
version of them.</p>
<h3 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h3><h4 id="priority"><a class="doc-anchor" href="#priority">§</a>Priority</h4>
<p>This example shows how to always prioritize the left stream.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::stream::{ repeat, select_with_strategy, PollNext, StreamExt };
<span class="kw">let </span>left = repeat(<span class="number">1</span>);
<span class="kw">let </span>right = repeat(<span class="number">2</span>);
<span class="comment">// We don't need any state, so let's make it an empty tuple.
// We must provide some type here, as there is no way for the compiler
// to infer it. As we don't need to capture variables, we can just
// use a function pointer instead of a closure.
</span><span class="kw">fn </span>prio_left(<span class="kw">_</span>: <span class="kw-2">&amp;mut </span>()) -&gt; PollNext { PollNext::Left }
<span class="kw">let </span><span class="kw-2">mut </span>out = select_with_strategy(left, right, prio_left);
<span class="kw">for _ in </span><span class="number">0</span>..<span class="number">100 </span>{
<span class="comment">// Whenever we poll out, we will alwas get `1`.
</span><span class="macro">assert_eq!</span>(<span class="number">1</span>, out.select_next_some().<span class="kw">await</span>);
}</code></pre></div><h4 id="round-robin"><a class="doc-anchor" href="#round-robin">§</a>Round Robin</h4>
<p>This example shows how to select from both streams round robin.
Note: this special case is provided by <a href="fn.select.html" title="fn futures_util::stream::select"><code>stream::select</code></a>.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::stream::{ repeat, select_with_strategy, PollNext, StreamExt };
<span class="kw">let </span>left = repeat(<span class="number">1</span>);
<span class="kw">let </span>right = repeat(<span class="number">2</span>);
<span class="kw">let </span>rrobin = |last: <span class="kw-2">&amp;mut </span>PollNext| last.toggle();
<span class="kw">let </span><span class="kw-2">mut </span>out = select_with_strategy(left, right, rrobin);
<span class="kw">for _ in </span><span class="number">0</span>..<span class="number">100 </span>{
<span class="comment">// We should be alternating now.
</span><span class="macro">assert_eq!</span>(<span class="number">1</span>, out.select_next_some().<span class="kw">await</span>);
<span class="macro">assert_eq!</span>(<span class="number">2</span>, out.select_next_some().<span class="kw">await</span>);
}</code></pre></div></div></details></section></div></main></body></html>

View File

@@ -0,0 +1,38 @@
<!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="Creates a `TryStream` from a seed and a closure returning a `TryFuture`."><title>try_unfold in futures_util::stream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">try_unfold</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">try_<wbr>unfold</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In futures_<wbr>util::<wbr>stream</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">futures_util</a>::<wbr><a href="index.html">stream</a></div><h1>Function <span class="fn">try_<wbr>unfold</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/futures_util/stream/try_stream/try_unfold.rs.html#59-65">Source</a> </span></div><pre class="rust item-decl"><code>pub fn try_unfold&lt;T, F, Fut, Item&gt;(init: T, f: F) -&gt; <a class="struct" href="struct.TryUnfold.html" title="struct futures_util::stream::TryUnfold">TryUnfold</a>&lt;T, F, Fut&gt;<div class="where">where
F: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(T) -&gt; Fut,
Fut: <a class="trait" href="../future/trait.TryFuture.html" title="trait futures_util::future::TryFuture">TryFuture</a>&lt;Ok = <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(Item, T)</a>&gt;&gt;,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a <code>TryStream</code> from a seed and a closure returning a <code>TryFuture</code>.</p>
<p>This function is the dual for the <code>TryStream::try_fold()</code> adapter: while
<code>TryStream::try_fold()</code> reduces a <code>TryStream</code> to one single value,
<code>try_unfold()</code> creates a <code>TryStream</code> from a seed value.</p>
<p><code>try_unfold()</code> will call the provided closure with the provided seed, then
wait for the returned <code>TryFuture</code> to complete with <code>(a, b)</code>. It will then
yield the value <code>a</code>, and use <code>b</code> as the next internal state.</p>
<p>If the closure returns <code>None</code> instead of <code>Some(TryFuture)</code>, then the
<code>try_unfold()</code> will stop producing items and return <code>Poll::Ready(None)</code> in
future calls to <code>poll()</code>.</p>
<p>In case of error generated by the returned <code>TryFuture</code>, the error will be
returned by the <code>TryStream</code>. The <code>TryStream</code> will then yield
<code>Poll::Ready(None)</code> in future calls to <code>poll()</code>.</p>
<p>This function can typically be used when wanting to go from the “world of
futures” to the “world of streams”: the provided closure can build a
<code>TryFuture</code> using other library functions working on futures, and
<code>try_unfold()</code> will turn it into a <code>TryStream</code> by repeating the operation.</p>
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::stream::{<span class="self">self</span>, TryStreamExt};
<span class="kw">let </span>stream = stream::try_unfold(<span class="number">0</span>, |state| <span class="kw">async move </span>{
<span class="kw">if </span>state &lt; <span class="number">0 </span>{
<span class="kw">return </span><span class="prelude-val">Err</span>(SomeError);
}
<span class="kw">if </span>state &lt;= <span class="number">2 </span>{
<span class="kw">let </span>next_state = state + <span class="number">1</span>;
<span class="kw">let </span>yielded = state * <span class="number">2</span>;
<span class="prelude-val">Ok</span>(<span class="prelude-val">Some</span>((yielded, next_state)))
} <span class="kw">else </span>{
<span class="prelude-val">Ok</span>(<span class="prelude-val">None</span>)
}
});
<span class="kw">let </span>result: <span class="prelude-ty">Result</span>&lt;Vec&lt;i32&gt;, <span class="kw">_</span>&gt; = stream.try_collect().<span class="kw">await</span>;
<span class="macro">assert_eq!</span>(result, <span class="prelude-val">Ok</span>(<span class="macro">vec!</span>[<span class="number">0</span>, <span class="number">2</span>, <span class="number">4</span>]));</code></pre></div></div></details></section></div></main></body></html>

View File

@@ -0,0 +1,31 @@
<!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="Creates a `Stream` from a seed and a closure returning a `Future`."><title>unfold in futures_util::stream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">unfold</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">unfold</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In futures_<wbr>util::<wbr>stream</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">futures_util</a>::<wbr><a href="index.html">stream</a></div><h1>Function <span class="fn">unfold</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/futures_util/stream/unfold.rs.html#50-56">Source</a> </span></div><pre class="rust item-decl"><code>pub fn unfold&lt;T, F, Fut, Item&gt;(init: T, f: F) -&gt; <a class="struct" href="struct.Unfold.html" title="struct futures_util::stream::Unfold">Unfold</a>&lt;T, F, Fut&gt;<div class="where">where
F: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(T) -&gt; Fut,
Fut: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(Item, T)</a>&gt;&gt;,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Creates a <code>Stream</code> from a seed and a closure returning a <code>Future</code>.</p>
<p>This function is the dual for the <code>Stream::fold()</code> adapter: while
<code>Stream::fold()</code> reduces a <code>Stream</code> to one single value, <code>unfold()</code> creates a
<code>Stream</code> from a seed value.</p>
<p><code>unfold()</code> will call the provided closure with the provided seed, then wait
for the returned <code>Future</code> to complete with <code>(a, b)</code>. It will then yield the
value <code>a</code>, and use <code>b</code> as the next internal state.</p>
<p>If the closure returns <code>None</code> instead of <code>Some(Future)</code>, then the <code>unfold()</code>
will stop producing items and return <code>Poll::Ready(None)</code> in future
calls to <code>poll()</code>.</p>
<p>This function can typically be used when wanting to go from the “world of
futures” to the “world of streams”: the provided closure can build a
<code>Future</code> using other library functions working on futures, and <code>unfold()</code>
will turn it into a <code>Stream</code> by repeating the operation.</p>
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::stream::{<span class="self">self</span>, StreamExt};
<span class="kw">let </span>stream = stream::unfold(<span class="number">0</span>, |state| <span class="kw">async move </span>{
<span class="kw">if </span>state &lt;= <span class="number">2 </span>{
<span class="kw">let </span>next_state = state + <span class="number">1</span>;
<span class="kw">let </span>yielded = state * <span class="number">2</span>;
<span class="prelude-val">Some</span>((yielded, next_state))
} <span class="kw">else </span>{
<span class="prelude-val">None
</span>}
});
<span class="kw">let </span>result = stream.collect::&lt;Vec&lt;i32&gt;&gt;().<span class="kw">await</span>;
<span class="macro">assert_eq!</span>(result, <span class="macro">vec!</span>[<span class="number">0</span>, <span class="number">2</span>, <span class="number">4</span>]);</code></pre></div></div></details></section></div></main></body></html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/struct.FuturesOrdered.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/struct.FuturesOrdered.html">../../../futures_util/stream/struct.FuturesOrdered.html</a>...</p>
<script>location.replace("../../../futures_util/stream/struct.FuturesOrdered.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,4 @@
<!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="An unbounded set of futures."><title>futures_util::stream::futures_unordered - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module futures_unordered</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module futures_<wbr>unordered</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In futures_<wbr>util::<wbr>stream</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">futures_util</a>::<wbr><a href="../index.html">stream</a></div><h1>Module <span>futures_<wbr>unordered</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/futures_util/stream/futures_unordered/mod.rs.html#1-674">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An unbounded set of futures.</p>
<p>This module is only available when the <code>std</code> or <code>alloc</code> feature of this
library is activated, and it is activated by default.</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.FuturesUnordered.html" title="struct futures_util::stream::futures_unordered::FuturesUnordered">Futures<wbr>Unordered</a></dt><dd>A set of futures which may complete in any order.</dd><dt><a class="struct" href="struct.IntoIter.html" title="struct futures_util::stream::futures_unordered::IntoIter">Into<wbr>Iter</a></dt><dd>Owned iterator over all futures in the unordered set.</dd><dt><a class="struct" href="struct.Iter.html" title="struct futures_util::stream::futures_unordered::Iter">Iter</a></dt><dd>Immutable iterator over all the futures in the unordered set.</dd><dt><a class="struct" href="struct.IterMut.html" title="struct futures_util::stream::futures_unordered::IterMut">IterMut</a></dt><dd>Mutable iterator over all futures in the unordered set.</dd><dt><a class="struct" href="struct.IterPinMut.html" title="struct futures_util::stream::futures_unordered::IterPinMut">Iter<wbr>PinMut</a></dt><dd>Mutable iterator over all futures in the unordered set.</dd><dt><a class="struct" href="struct.IterPinRef.html" title="struct futures_util::stream::futures_unordered::IterPinRef">Iter<wbr>PinRef</a></dt><dd>Immutable iterator over all futures in the unordered set.</dd></dl></section></div></main></body></html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/futures_unordered/struct.IntoIter.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/futures_unordered/struct.IntoIter.html">../../../../futures_util/stream/futures_unordered/struct.IntoIter.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/futures_unordered/struct.IntoIter.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/futures_unordered/struct.Iter.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/futures_unordered/struct.Iter.html">../../../../futures_util/stream/futures_unordered/struct.Iter.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/futures_unordered/struct.Iter.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/futures_unordered/struct.IterMut.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/futures_unordered/struct.IterMut.html">../../../../futures_util/stream/futures_unordered/struct.IterMut.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/futures_unordered/struct.IterMut.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/futures_unordered/struct.IterPinMut.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/futures_unordered/struct.IterPinMut.html">../../../../futures_util/stream/futures_unordered/struct.IterPinMut.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/futures_unordered/struct.IterPinMut.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/futures_unordered/struct.IterPinRef.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/futures_unordered/struct.IterPinRef.html">../../../../futures_util/stream/futures_unordered/struct.IterPinRef.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/futures_unordered/struct.IterPinRef.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"struct":["FuturesUnordered","IntoIter","Iter","IterMut","IterPinMut","IterPinRef"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/fn.iter.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/fn.iter.html">../../../futures_util/stream/fn.iter.html</a>...</p>
<script>location.replace("../../../futures_util/stream/fn.iter.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/struct.Iter.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/struct.Iter.html">../../../futures_util/stream/struct.Iter.html</a>...</p>
<script>location.replace("../../../futures_util/stream/struct.Iter.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/fn.once.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/fn.once.html">../../../futures_util/stream/fn.once.html</a>...</p>
<script>location.replace("../../../futures_util/stream/fn.once.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/struct.Once.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/struct.Once.html">../../../futures_util/stream/struct.Once.html</a>...</p>
<script>location.replace("../../../futures_util/stream/struct.Once.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/fn.pending.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/fn.pending.html">../../../futures_util/stream/fn.pending.html</a>...</p>
<script>location.replace("../../../futures_util/stream/fn.pending.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/struct.Pending.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/struct.Pending.html">../../../futures_util/stream/struct.Pending.html</a>...</p>
<script>location.replace("../../../futures_util/stream/struct.Pending.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/fn.poll_fn.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/fn.poll_fn.html">../../../futures_util/stream/fn.poll_fn.html</a>...</p>
<script>location.replace("../../../futures_util/stream/fn.poll_fn.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/struct.PollFn.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/struct.PollFn.html">../../../futures_util/stream/struct.PollFn.html</a>...</p>
<script>location.replace("../../../futures_util/stream/struct.PollFn.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/fn.poll_immediate.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/fn.poll_immediate.html">../../../futures_util/stream/fn.poll_immediate.html</a>...</p>
<script>location.replace("../../../futures_util/stream/fn.poll_immediate.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/struct.PollImmediate.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/struct.PollImmediate.html">../../../futures_util/stream/struct.PollImmediate.html</a>...</p>
<script>location.replace("../../../futures_util/stream/struct.PollImmediate.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/fn.repeat.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/fn.repeat.html">../../../futures_util/stream/fn.repeat.html</a>...</p>
<script>location.replace("../../../futures_util/stream/fn.repeat.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/struct.Repeat.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/struct.Repeat.html">../../../futures_util/stream/struct.Repeat.html</a>...</p>
<script>location.replace("../../../futures_util/stream/struct.Repeat.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/fn.repeat_with.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/fn.repeat_with.html">../../../futures_util/stream/fn.repeat_with.html</a>...</p>
<script>location.replace("../../../futures_util/stream/fn.repeat_with.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/struct.RepeatWith.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/struct.RepeatWith.html">../../../futures_util/stream/struct.RepeatWith.html</a>...</p>
<script>location.replace("../../../futures_util/stream/struct.RepeatWith.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/fn.select.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/fn.select.html">../../../futures_util/stream/fn.select.html</a>...</p>
<script>location.replace("../../../futures_util/stream/fn.select.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/struct.Select.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/struct.Select.html">../../../futures_util/stream/struct.Select.html</a>...</p>
<script>location.replace("../../../futures_util/stream/struct.Select.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,12 @@
<!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="Convert a list of streams into a `Stream` of results from the streams."><title>select_all in futures_util::stream::select_all - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc fn"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">select_all</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><div id="rustdoc-modnav"><h2><a href="index.html">In futures_<wbr>util::<wbr>stream::<wbr>select_<wbr>all</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">futures_util</a>::<wbr><a href="../index.html">stream</a>::<wbr><a href="index.html">select_all</a></div><h1>Function <span class="fn">select_<wbr>all</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/futures_util/stream/select_all.rs.html#130-142">Source</a> </span></div><pre class="rust item-decl"><code>pub fn select_all&lt;I&gt;(streams: I) -&gt; <a class="struct" href="../struct.SelectAll.html" title="struct futures_util::stream::SelectAll">SelectAll</a>&lt;I::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>&gt;<div class="where">where
I: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,
I::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="../trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Convert a list of streams into a <code>Stream</code> of results from the streams.</p>
<p>This essentially takes a list of streams (e.g. a vector, an iterator, etc.)
and bundles them together into a single stream.
The stream will yield items as they become available on the underlying
streams internally, in the order they become available.</p>
<p>Note that the returned set can also be used to dynamically push more
streams into the set as they become available.</p>
<p>This function is only available when the <code>std</code> or <code>alloc</code> feature of this
library is activated, and it is activated by default.</p>
</div></details></section></div></main></body></html>

View File

@@ -0,0 +1,2 @@
<!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="An unbounded set of streams"><title>futures_util::stream::select_all - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="futures_util" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../../static.files/storage-e2aeef58.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module select_all</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.32</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module select_<wbr>all</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In futures_<wbr>util::<wbr>stream</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">futures_util</a>::<wbr><a href="../index.html">stream</a></div><h1>Module <span>select_<wbr>all</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../../src/futures_util/stream/select_all.rs.html#1-249">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An unbounded set of streams</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.IntoIter.html" title="struct futures_util::stream::select_all::IntoIter">Into<wbr>Iter</a></dt><dd>Owned iterator over all streams in the unordered set.</dd><dt><a class="struct" href="struct.Iter.html" title="struct futures_util::stream::select_all::Iter">Iter</a></dt><dd>Immutable iterator over all streams in the unordered set.</dd><dt><a class="struct" href="struct.IterMut.html" title="struct futures_util::stream::select_all::IterMut">IterMut</a></dt><dd>Mutable iterator over all streams in the unordered set.</dd><dt><a class="struct" href="struct.SelectAll.html" title="struct futures_util::stream::select_all::SelectAll">Select<wbr>All</a></dt><dd>An unbounded set of streams</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.select_all.html" title="fn futures_util::stream::select_all::select_all">select_<wbr>all</a></dt><dd>Convert a list of streams into a <code>Stream</code> of results from the streams.</dd></dl></section></div></main></body></html>

View File

@@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"fn":["select_all"],"struct":["IntoIter","Iter","IterMut","SelectAll"]};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/enum.PollNext.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/enum.PollNext.html">../../../futures_util/stream/enum.PollNext.html</a>...</p>
<script>location.replace("../../../futures_util/stream/enum.PollNext.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/fn.select_with_strategy.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/fn.select_with_strategy.html">../../../futures_util/stream/fn.select_with_strategy.html</a>...</p>
<script>location.replace("../../../futures_util/stream/fn.select_with_strategy.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/struct.SelectWithStrategy.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/struct.SelectWithStrategy.html">../../../futures_util/stream/struct.SelectWithStrategy.html</a>...</p>
<script>location.replace("../../../futures_util/stream/struct.SelectWithStrategy.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1 @@
window.SIDEBAR_ITEMS = {"enum":["PollNext"],"fn":["abortable","empty","iter","once","pending","poll_fn","poll_immediate","repeat","repeat_with","select","select_all","select_with_strategy","try_unfold","unfold"],"mod":["futures_unordered","select_all"],"struct":["AbortHandle","AbortRegistration","Abortable","Aborted","All","AndThen","Any","BufferUnordered","Buffered","CatchUnwind","Chain","Chunks","Collect","Concat","Count","Cycle","Empty","Enumerate","ErrInto","Filter","FilterMap","FlatMap","FlatMapUnordered","Flatten","Fold","ForEach","ForEachConcurrent","Forward","Fuse","FuturesOrdered","FuturesUnordered","Inspect","InspectErr","InspectOk","IntoAsyncRead","IntoStream","Iter","Map","MapErr","MapOk","Next","NextIf","NextIfEq","Once","OrElse","Peek","PeekMut","Peekable","Pending","PollFn","PollImmediate","ReadyChunks","Repeat","RepeatWith","ReuniteError","Scan","Select","SelectAll","SelectNextSome","SelectWithStrategy","Skip","SkipWhile","SplitSink","SplitStream","StreamFuture","Take","TakeUntil","TakeWhile","Then","TryAll","TryAny","TryBufferUnordered","TryBuffered","TryChunks","TryChunksError","TryCollect","TryConcat","TryFilter","TryFilterMap","TryFlatten","TryFlattenUnordered","TryFold","TryForEach","TryForEachConcurrent","TryNext","TryReadyChunks","TryReadyChunksError","TrySkipWhile","TryTakeWhile","TryUnfold","Unfold","Unzip","Zip"],"trait":["FusedStream","Stream","StreamExt","TryStream","TryStreamExt"],"type":["BoxStream","FlattenUnordered","LocalBoxStream"]};

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.All.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.All.html">../../../../futures_util/stream/struct.All.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.All.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Any.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Any.html">../../../../futures_util/stream/struct.Any.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Any.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.BufferUnordered.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.BufferUnordered.html">../../../../futures_util/stream/struct.BufferUnordered.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.BufferUnordered.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Buffered.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Buffered.html">../../../../futures_util/stream/struct.Buffered.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Buffered.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.CatchUnwind.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.CatchUnwind.html">../../../../futures_util/stream/struct.CatchUnwind.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.CatchUnwind.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Chain.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Chain.html">../../../../futures_util/stream/struct.Chain.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Chain.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Chunks.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Chunks.html">../../../../futures_util/stream/struct.Chunks.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Chunks.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Collect.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Collect.html">../../../../futures_util/stream/struct.Collect.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Collect.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Concat.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Concat.html">../../../../futures_util/stream/struct.Concat.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Concat.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Count.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Count.html">../../../../futures_util/stream/struct.Count.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Count.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Cycle.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Cycle.html">../../../../futures_util/stream/struct.Cycle.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Cycle.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Enumerate.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Enumerate.html">../../../../futures_util/stream/struct.Enumerate.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Enumerate.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Filter.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Filter.html">../../../../futures_util/stream/struct.Filter.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Filter.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.FilterMap.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.FilterMap.html">../../../../futures_util/stream/struct.FilterMap.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.FilterMap.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/type.FlattenUnordered.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/type.FlattenUnordered.html">../../../../futures_util/stream/type.FlattenUnordered.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/type.FlattenUnordered.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Fold.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Fold.html">../../../../futures_util/stream/struct.Fold.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Fold.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.ForEach.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.ForEach.html">../../../../futures_util/stream/struct.ForEach.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.ForEach.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.ForEachConcurrent.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.ForEachConcurrent.html">../../../../futures_util/stream/struct.ForEachConcurrent.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.ForEachConcurrent.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Fuse.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Fuse.html">../../../../futures_util/stream/struct.Fuse.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Fuse.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.StreamFuture.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.StreamFuture.html">../../../../futures_util/stream/struct.StreamFuture.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.StreamFuture.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Map.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Map.html">../../../../futures_util/stream/struct.Map.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Map.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Next.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Next.html">../../../../futures_util/stream/struct.Next.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Next.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.NextIf.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.NextIf.html">../../../../futures_util/stream/struct.NextIf.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.NextIf.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.NextIfEq.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.NextIfEq.html">../../../../futures_util/stream/struct.NextIfEq.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.NextIfEq.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Peek.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Peek.html">../../../../futures_util/stream/struct.Peek.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Peek.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.PeekMut.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.PeekMut.html">../../../../futures_util/stream/struct.PeekMut.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.PeekMut.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Peekable.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Peekable.html">../../../../futures_util/stream/struct.Peekable.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Peekable.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.ReadyChunks.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.ReadyChunks.html">../../../../futures_util/stream/struct.ReadyChunks.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.ReadyChunks.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Scan.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Scan.html">../../../../futures_util/stream/struct.Scan.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Scan.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.SelectNextSome.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.SelectNextSome.html">../../../../futures_util/stream/struct.SelectNextSome.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.SelectNextSome.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.Skip.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.Skip.html">../../../../futures_util/stream/struct.Skip.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.Skip.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.SkipWhile.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.SkipWhile.html">../../../../futures_util/stream/struct.SkipWhile.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.SkipWhile.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.ReuniteError.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.ReuniteError.html">../../../../futures_util/stream/struct.ReuniteError.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.ReuniteError.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.SplitSink.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.SplitSink.html">../../../../futures_util/stream/struct.SplitSink.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.SplitSink.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../../futures_util/stream/struct.SplitStream.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../../futures_util/stream/struct.SplitStream.html">../../../../futures_util/stream/struct.SplitStream.html</a>...</p>
<script>location.replace("../../../../futures_util/stream/struct.SplitStream.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/struct.FlatMap.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/struct.FlatMap.html">../../../futures_util/stream/struct.FlatMap.html</a>...</p>
<script>location.replace("../../../futures_util/stream/struct.FlatMap.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/struct.FlatMapUnordered.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/struct.FlatMapUnordered.html">../../../futures_util/stream/struct.FlatMapUnordered.html</a>...</p>
<script>location.replace("../../../futures_util/stream/struct.FlatMapUnordered.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/struct.Flatten.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/struct.Flatten.html">../../../futures_util/stream/struct.Flatten.html</a>...</p>
<script>location.replace("../../../futures_util/stream/struct.Flatten.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/struct.Forward.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/struct.Forward.html">../../../futures_util/stream/struct.Forward.html</a>...</p>
<script>location.replace("../../../futures_util/stream/struct.Forward.html" + location.search + location.hash);</script>
</body>
</html>

View File

@@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../futures_util/stream/struct.Inspect.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../futures_util/stream/struct.Inspect.html">../../../futures_util/stream/struct.Inspect.html</a>...</p>
<script>location.replace("../../../futures_util/stream/struct.Inspect.html" + location.search + location.hash);</script>
</body>
</html>

Some files were not shown because too many files have changed in this diff Show More