106 lines
83 KiB
HTML
106 lines
83 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A stream of entries in a directory."><title>ReadDir in async_fs - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.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" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="async_fs" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="icon" href="https://raw.githubusercontent.com/smol-rs/smol/master/assets/images/logo_fullsize_transparent.png"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../async_fs/index.html"><img src="https://raw.githubusercontent.com/smol-rs/smol/master/assets/images/logo_fullsize_transparent.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../async_fs/index.html"><img src="https://raw.githubusercontent.com/smol-rs/smol/master/assets/images/logo_fullsize_transparent.png" alt="logo"></a><h2><a href="../async_fs/index.html">async_<wbr>fs</a><span class="version">2.1.2</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">ReadDir</a></h2><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Debug-for-ReadDir" title="Debug">Debug</a></li><li><a href="#impl-Stream-for-ReadDir" title="Stream">Stream</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-ReadDir" title="Freeze">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-ReadDir" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-ReadDir" title="Send">Send</a></li><li><a href="#impl-Sync-for-ReadDir" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-ReadDir" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-ReadDir" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow<T>">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut<T>">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-T" title="From<T>">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into<U>">Into<U></a></li><li><a href="#impl-StreamExt-for-S" title="StreamExt">StreamExt</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom<U>">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto<U>">TryInto<U></a></li><li><a href="#impl-TryStream-for-S" title="TryStream">TryStream</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate async_<wbr>fs</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="index.html">async_fs</a></span><h1>Struct <span class="struct">ReadDir</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/async_fs/lib.rs.html#316">Source</a> </span></div><pre class="rust item-decl"><code>pub struct ReadDir(<span class="comment">/* private fields */</span>);</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A stream of entries in a directory.</p>
|
||
<p>This stream is returned by <a href="fn.read_dir.html" title="fn async_fs::read_dir"><code>read_dir()</code></a> and yields items of type
|
||
<a href="https://doc.rust-lang.org/1.84.0/std/io/error/type.Result.html" title="type std::io::error::Result"><code>io::Result</code></a><code><</code><a href="struct.DirEntry.html" title="struct async_fs::DirEntry"><code>DirEntry</code></a><code>></code>. Each <a href="struct.DirEntry.html" title="struct async_fs::DirEntry"><code>DirEntry</code></a> can then retrieve information like entry’s
|
||
path or metadata.</p>
|
||
</div></details><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-ReadDir" class="impl"><a class="src rightside" href="../src/async_fs/lib.rs.html#326-330">Source</a><a href="#impl-Debug-for-ReadDir" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.ReadDir.html" title="struct async_fs::ReadDir">ReadDir</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../src/async_fs/lib.rs.html#327-329">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.84.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.84.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Stream-for-ReadDir" class="impl"><a class="src rightside" href="../src/async_fs/lib.rs.html#332-356">Source</a><a href="#impl-Stream-for-ReadDir" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a> for <a class="struct" href="struct.ReadDir.html" title="struct async_fs::ReadDir">ReadDir</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Item" class="associatedtype trait-impl"><a class="src rightside" href="../src/async_fs/lib.rs.html#333">Source</a><a href="#associatedtype.Item" class="anchor">§</a><h4 class="code-header">type <a href="../futures_core/stream/trait.Stream.html#associatedtype.Item" class="associatedtype">Item</a> = <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="struct.DirEntry.html" title="struct async_fs::DirEntry">DirEntry</a>, <a class="struct" href="https://doc.rust-lang.org/1.84.0/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>></h4></section></summary><div class='docblock'>Values yielded by the stream.</div></details><details class="toggle method-toggle" open><summary><section id="method.poll_next" class="method trait-impl"><a class="src rightside" href="../src/async_fs/lib.rs.html#335-355">Source</a><a href="#method.poll_next" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_core/stream/trait.Stream.html#tymethod.poll_next" class="fn">poll_next</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><&mut Self>,
|
||
cx: &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a><'_>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a><<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>>></h4></section></summary><div class='docblock'>Attempt to pull out the next value of this stream, registering the
|
||
current task for wakeup if the value is not yet available, and returning
|
||
<code>None</code> if the stream is exhausted. <a href="../futures_core/stream/trait.Stream.html#tymethod.poll_next">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.size_hint" class="method trait-impl"><a class="src rightside" href="../src/futures_core/stream.rs.html#105">Source</a><a href="#method.size_hint" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_core/stream/trait.Stream.html#method.size_hint" class="fn">size_hint</a>(&self) -> (<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>, <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>>)</h4></section></summary><div class='docblock'>Returns the bounds on the remaining length of the stream. <a href="../futures_core/stream/trait.Stream.html#method.size_hint">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-ReadDir" class="impl"><a href="#impl-Freeze-for-ReadDir" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.ReadDir.html" title="struct async_fs::ReadDir">ReadDir</a></h3></section><section id="impl-RefUnwindSafe-for-ReadDir" class="impl"><a href="#impl-RefUnwindSafe-for-ReadDir" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.ReadDir.html" title="struct async_fs::ReadDir">ReadDir</a></h3></section><section id="impl-Send-for-ReadDir" class="impl"><a href="#impl-Send-for-ReadDir" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.ReadDir.html" title="struct async_fs::ReadDir">ReadDir</a></h3></section><section id="impl-Sync-for-ReadDir" class="impl"><a href="#impl-Sync-for-ReadDir" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.ReadDir.html" title="struct async_fs::ReadDir">ReadDir</a></h3></section><section id="impl-Unpin-for-ReadDir" class="impl"><a href="#impl-Unpin-for-ReadDir" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.ReadDir.html" title="struct async_fs::ReadDir">ReadDir</a></h3></section><section id="impl-UnwindSafe-for-ReadDir" class="impl"><a href="#impl-UnwindSafe-for-ReadDir" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.ReadDir.html" title="struct async_fs::ReadDir">ReadDir</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.84.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#209">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#217">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#765">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#768">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#748-750">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#758">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||
<p>That is, this conversion is whatever the implementation of
|
||
<code><a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-StreamExt-for-S" class="impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1866">Source</a><a href="#impl-StreamExt-for-S" class="anchor">§</a><h3 class="code-header">impl<S> <a class="trait" href="../futures_lite/stream/trait.StreamExt.html" title="trait futures_lite::stream::StreamExt">StreamExt</a> for S<div class="where">where
|
||
S: <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.poll_next-1" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#669-671">Source</a><a href="#method.poll_next-1" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.poll_next" class="fn">poll_next</a>(&mut self, cx: &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a><'_>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a><<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h4></section></summary><div class='docblock'>A convenience for calling <a href="../futures_core/stream/trait.Stream.html#tymethod.poll_next" title="method futures_core::stream::Stream::poll_next"><code>Stream::poll_next()</code></a> on <code>!</code><a href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin"><code>Unpin</code></a> types.</div></details><details class="toggle method-toggle" open><summary><section id="method.next" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#695-697">Source</a><a href="#method.next" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.next" class="fn">next</a>(&mut self) -> <a class="struct" href="../futures_lite/stream/struct.NextFuture.html" title="struct futures_lite::stream::NextFuture">NextFuture</a><'_, Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h4></section></summary><div class='docblock'>Retrieves the next item in the stream. <a href="../futures_lite/stream/trait.StreamExt.html#method.next">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_next" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#723-725">Source</a><a href="#method.try_next" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.try_next" class="fn">try_next</a><T, E>(&mut self) -> <a class="struct" href="../futures_lite/stream/struct.TryNextFuture.html" title="struct futures_lite::stream::TryNextFuture">TryNextFuture</a><'_, Self><div class="where">where
|
||
Self: <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a><Item = <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, E>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h4></section></summary><div class='docblock'>Retrieves the next item in the stream. <a href="../futures_lite/stream/trait.StreamExt.html#method.try_next">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.count" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#745-747">Source</a><a href="#method.count" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.count" class="fn">count</a>(self) -> <a class="struct" href="../futures_lite/stream/struct.CountFuture.html" title="struct futures_lite::stream::CountFuture">CountFuture</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Counts the number of items in the stream. <a href="../futures_lite/stream/trait.StreamExt.html#method.count">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.map" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#772-775">Source</a><a href="#method.map" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.map" class="fn">map</a><T, F>(self, f: F) -> <a class="struct" href="../futures_lite/stream/struct.Map.html" title="struct futures_lite::stream::Map">Map</a><Self, F><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -> T,</div></h4></section></summary><div class='docblock'>Maps items of the stream to new values using a closure. <a href="../futures_lite/stream/trait.StreamExt.html#method.map">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.flat_map" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#798-802">Source</a><a href="#method.flat_map" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.flat_map" class="fn">flat_map</a><U, F>(self, f: F) -> <a class="struct" href="../futures_lite/stream/struct.FlatMap.html" title="struct futures_lite::stream::FlatMap">FlatMap</a><Self, U, F><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
U: <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -> U,</div></h4></section></summary><div class='docblock'>Maps items to streams and then concatenates them. <a href="../futures_lite/stream/trait.StreamExt.html#method.flat_map">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.flatten" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#826-829">Source</a><a href="#method.flatten" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.flatten" class="fn">flatten</a>(self) -> <a class="struct" href="../futures_lite/stream/struct.Flatten.html" title="struct futures_lite::stream::Flatten">Flatten</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>: <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a>,</div></h4></section></summary><div class='docblock'>Concatenates inner streams. <a href="../futures_lite/stream/trait.StreamExt.html#method.flatten">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.then" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#856-860">Source</a><a href="#method.then" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.then" class="fn">then</a><F, Fut>(self, f: F) -> <a class="struct" href="../futures_lite/stream/struct.Then.html" title="struct futures_lite::stream::Then">Then</a><Self, F, Fut><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -> Fut,
|
||
Fut: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>,</div></h4></section></summary><div class='docblock'>Maps items of the stream to new values using an async closure. <a href="../futures_lite/stream/trait.StreamExt.html#method.then">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.filter" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#885-888">Source</a><a href="#method.filter" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.filter" class="fn">filter</a><P>(self, predicate: P) -> <a class="struct" href="../futures_lite/stream/struct.Filter.html" title="struct futures_lite::stream::Filter">Filter</a><Self, P><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Keeps items of the stream for which <code>predicate</code> returns <code>true</code>. <a href="../futures_lite/stream/trait.StreamExt.html#method.filter">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.filter_map" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#913-916">Source</a><a href="#method.filter_map" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.filter_map" class="fn">filter_map</a><T, F>(self, f: F) -> <a class="struct" href="../futures_lite/stream/struct.FilterMap.html" title="struct futures_lite::stream::FilterMap">FilterMap</a><Self, F><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T>,</div></h4></section></summary><div class='docblock'>Filters and maps items of the stream using a closure. <a href="../futures_lite/stream/trait.StreamExt.html#method.filter_map">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.take" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#936-938">Source</a><a href="#method.take" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.take" class="fn">take</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>) -> <a class="struct" href="../futures_lite/stream/struct.Take.html" title="struct futures_lite::stream::Take">Take</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Takes only the first <code>n</code> items of the stream. <a href="../futures_lite/stream/trait.StreamExt.html#method.take">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.take_while" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#959-962">Source</a><a href="#method.take_while" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.take_while" class="fn">take_while</a><P>(self, predicate: P) -> <a class="struct" href="../futures_lite/stream/struct.TakeWhile.html" title="struct futures_lite::stream::TakeWhile">TakeWhile</a><Self, P><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Takes items while <code>predicate</code> returns <code>true</code>. <a href="../futures_lite/stream/trait.StreamExt.html#method.take_while">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.skip" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#985-987">Source</a><a href="#method.skip" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.skip" class="fn">skip</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>) -> <a class="struct" href="../futures_lite/stream/struct.Skip.html" title="struct futures_lite::stream::Skip">Skip</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Skips the first <code>n</code> items of the stream. <a href="../futures_lite/stream/trait.StreamExt.html#method.skip">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.skip_while" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1008-1011">Source</a><a href="#method.skip_while" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.skip_while" class="fn">skip_while</a><P>(self, predicate: P) -> <a class="struct" href="../futures_lite/stream/struct.SkipWhile.html" title="struct futures_lite::stream::SkipWhile">SkipWhile</a><Self, P><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Skips items while <code>predicate</code> returns <code>true</code>. <a href="../futures_lite/stream/trait.StreamExt.html#method.skip_while">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.step_by" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1040-1042">Source</a><a href="#method.step_by" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.step_by" class="fn">step_by</a>(self, step: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>) -> <a class="struct" href="../futures_lite/stream/struct.StepBy.html" title="struct futures_lite::stream::StepBy">StepBy</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Yields every <code>step</code>th item. <a href="../futures_lite/stream/trait.StreamExt.html#method.step_by">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.chain" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1071-1074">Source</a><a href="#method.chain" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.chain" class="fn">chain</a><U>(self, other: U) -> <a class="struct" href="../futures_lite/stream/struct.Chain.html" title="struct futures_lite::stream::Chain">Chain</a><Self, U><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
U: <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a><Item = Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>>,</div></h4></section></summary><div class='docblock'>Appends another stream to the end of this one. <a href="../futures_lite/stream/trait.StreamExt.html#method.chain">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.cloned" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1098-1101">Source</a><a href="#method.cloned" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.cloned" class="fn">cloned</a><'a, T>(self) -> <a class="struct" href="../futures_lite/stream/struct.Cloned.html" title="struct futures_lite::stream::Cloned">Cloned</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a><Item = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&'a T</a>>,
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'a,</div></h4></section></summary><div class='docblock'>Clones all items. <a href="../futures_lite/stream/trait.StreamExt.html#method.cloned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.copied" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1122-1125">Source</a><a href="#method.copied" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.copied" class="fn">copied</a><'a, T>(self) -> <a class="struct" href="../futures_lite/stream/struct.Copied.html" title="struct futures_lite::stream::Copied">Copied</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a><Item = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&'a T</a>>,
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + 'a,</div></h4></section></summary><div class='docblock'>Copies all items. <a href="../futures_lite/stream/trait.StreamExt.html#method.copied">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.collect" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1144-1147">Source</a><a href="#method.collect" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.collect" class="fn">collect</a><C>(self) -> <a class="struct" href="../futures_lite/stream/struct.CollectFuture.html" title="struct futures_lite::stream::CollectFuture">CollectFuture</a><Self, C><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
C: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a><Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>>,</div></h4></section></summary><div class='docblock'>Collects all items in the stream into a collection. <a href="../futures_lite/stream/trait.StreamExt.html#method.collect">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_collect" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1170-1173">Source</a><a href="#method.try_collect" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.try_collect" class="fn">try_collect</a><T, E, C>(self) -> <a class="struct" href="../futures_lite/stream/struct.TryCollectFuture.html" title="struct futures_lite::stream::TryCollectFuture">TryCollectFuture</a><Self, C><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a><Item = <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, E>>,
|
||
C: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a><T>,</div></h4></section></summary><div class='docblock'>Collects all items in the fallible stream into a collection. <a href="../futures_lite/stream/trait.StreamExt.html#method.try_collect">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.partition" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1197-1201">Source</a><a href="#method.partition" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.partition" class="fn">partition</a><B, P>(self, predicate: P) -> <a class="struct" href="../futures_lite/stream/struct.PartitionFuture.html" title="struct futures_lite::stream::PartitionFuture">PartitionFuture</a><Self, P, B><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
B: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a><Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>>,
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Partitions items into those for which <code>predicate</code> is <code>true</code> and those for which it is
|
||
<code>false</code>, and then collects them into two collections. <a href="../futures_lite/stream/trait.StreamExt.html#method.partition">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.fold" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1227-1230">Source</a><a href="#method.fold" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.fold" class="fn">fold</a><T, F>(self, init: T, f: F) -> <a class="struct" href="../futures_lite/stream/struct.FoldFuture.html" title="struct futures_lite::stream::FoldFuture">FoldFuture</a><Self, F, T><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(T, Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -> T,</div></h4></section></summary><div class='docblock'>Accumulates a computation over the stream. <a href="../futures_lite/stream/trait.StreamExt.html#method.fold">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_fold" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1265-1268">Source</a><a href="#method.try_fold" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.try_fold" class="fn">try_fold</a><T, E, F, B>(
|
||
&mut self,
|
||
init: B,
|
||
f: F,
|
||
) -> <a class="struct" href="../futures_lite/stream/struct.TryFoldFuture.html" title="struct futures_lite::stream::TryFoldFuture">TryFoldFuture</a><'_, Self, F, B><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a><Item = <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, E>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(B, T) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><B, E>,</div></h4></section></summary><div class='docblock'>Accumulates a fallible computation over the stream. <a href="../futures_lite/stream/trait.StreamExt.html#method.try_fold">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.scan" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1300-1303">Source</a><a href="#method.scan" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.scan" class="fn">scan</a><St, B, F>(self, initial_state: St, f: F) -> <a class="struct" href="../futures_lite/stream/struct.Scan.html" title="struct futures_lite::stream::Scan">Scan</a><Self, St, F><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut St</a>, Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><B>,</div></h4></section></summary><div class='docblock'>Maps items of the stream to new values using a state value and a closure. <a href="../futures_lite/stream/trait.StreamExt.html#method.scan">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.fuse" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1326-1328">Source</a><a href="#method.fuse" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.fuse" class="fn">fuse</a>(self) -> <a class="struct" href="../futures_lite/stream/struct.Fuse.html" title="struct futures_lite::stream::Fuse">Fuse</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Fuses the stream so that it stops yielding items after the first <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a>. <a href="../futures_lite/stream/trait.StreamExt.html#method.fuse">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.cycle" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1352-1354">Source</a><a href="#method.cycle" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.cycle" class="fn">cycle</a>(self) -> <a class="struct" href="../futures_lite/stream/struct.Cycle.html" title="struct futures_lite::stream::Cycle">Cycle</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><div class='docblock'>Repeats the stream from beginning to end, forever. <a href="../futures_lite/stream/trait.StreamExt.html#method.cycle">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.enumerate" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1379-1381">Source</a><a href="#method.enumerate" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.enumerate" class="fn">enumerate</a>(self) -> <a class="struct" href="../futures_lite/stream/struct.Enumerate.html" title="struct futures_lite::stream::Enumerate">Enumerate</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Enumerates items, mapping them to <code>(index, item)</code>. <a href="../futures_lite/stream/trait.StreamExt.html#method.enumerate">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.inspect" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1404-1407">Source</a><a href="#method.inspect" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.inspect" class="fn">inspect</a><F>(self, f: F) -> <a class="struct" href="../futures_lite/stream/struct.Inspect.html" title="struct futures_lite::stream::Inspect">Inspect</a><Self, F><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>),</div></h4></section></summary><div class='docblock'>Calls a closure on each item and passes it on. <a href="../futures_lite/stream/trait.StreamExt.html#method.inspect">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.nth" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1429-1431">Source</a><a href="#method.nth" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.nth" class="fn">nth</a>(&mut self, n: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.usize.html">usize</a>) -> <a class="struct" href="../futures_lite/stream/struct.NthFuture.html" title="struct futures_lite::stream::NthFuture">NthFuture</a><'_, Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h4></section></summary><div class='docblock'>Gets the <code>n</code>th item of the stream. <a href="../futures_lite/stream/trait.StreamExt.html#method.nth">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.last" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1451-1453">Source</a><a href="#method.last" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.last" class="fn">last</a>(self) -> <a class="struct" href="../futures_lite/stream/struct.LastFuture.html" title="struct futures_lite::stream::LastFuture">LastFuture</a><Self><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Returns the last item in the stream. <a href="../futures_lite/stream/trait.StreamExt.html#method.last">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.find" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1475-1478">Source</a><a href="#method.find" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.find" class="fn">find</a><P>(&mut self, predicate: P) -> <a class="struct" href="../futures_lite/stream/struct.FindFuture.html" title="struct futures_lite::stream::FindFuture">FindFuture</a><'_, Self, P><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Finds the first item of the stream for which <code>predicate</code> returns <code>true</code>. <a href="../futures_lite/stream/trait.StreamExt.html#method.find">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.find_map" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1500-1503">Source</a><a href="#method.find_map" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.find_map" class="fn">find_map</a><F, B>(&mut self, f: F) -> <a class="struct" href="../futures_lite/stream/struct.FindMapFuture.html" title="struct futures_lite::stream::FindMapFuture">FindMapFuture</a><'_, Self, F><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><B>,</div></h4></section></summary><div class='docblock'>Applies a closure to items in the stream and returns the first <a href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html#variant.Some" title="variant core::option::Option::Some"><code>Some</code></a> result. <a href="../futures_lite/stream/trait.StreamExt.html#method.find_map">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.position" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1523-1526">Source</a><a href="#method.position" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.position" class="fn">position</a><P>(&mut self, predicate: P) -> <a class="struct" href="../futures_lite/stream/struct.PositionFuture.html" title="struct futures_lite::stream::PositionFuture">PositionFuture</a><'_, Self, P><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Finds the index of the first item of the stream for which <code>predicate</code> returns <code>true</code>. <a href="../futures_lite/stream/trait.StreamExt.html#method.position">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.all" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1555-1558">Source</a><a href="#method.all" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.all" class="fn">all</a><P>(&mut self, predicate: P) -> <a class="struct" href="../futures_lite/stream/struct.AllFuture.html" title="struct futures_lite::stream::AllFuture">AllFuture</a><'_, Self, P><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Tests if <code>predicate</code> returns <code>true</code> for all items in the stream. <a href="../futures_lite/stream/trait.StreamExt.html#method.all">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.any" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1586-1589">Source</a><a href="#method.any" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.any" class="fn">any</a><P>(&mut self, predicate: P) -> <a class="struct" href="../futures_lite/stream/struct.AnyFuture.html" title="struct futures_lite::stream::AnyFuture">AnyFuture</a><'_, Self, P><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Tests if <code>predicate</code> returns <code>true</code> for any item in the stream. <a href="../futures_lite/stream/trait.StreamExt.html#method.any">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.for_each" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1609-1612">Source</a><a href="#method.for_each" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.for_each" class="fn">for_each</a><F>(self, f: F) -> <a class="struct" href="../futures_lite/stream/struct.ForEachFuture.html" title="struct futures_lite::stream::ForEachFuture">ForEachFuture</a><Self, F><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>),</div></h4></section></summary><div class='docblock'>Calls a closure on each item of the stream. <a href="../futures_lite/stream/trait.StreamExt.html#method.for_each">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_for_each" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1643-1646">Source</a><a href="#method.try_for_each" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.try_for_each" class="fn">try_for_each</a><F, E>(&mut self, f: F) -> <a class="struct" href="../futures_lite/stream/struct.TryForEachFuture.html" title="struct futures_lite::stream::TryForEachFuture">TryForEachFuture</a><'_, Self, F><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.unit.html">()</a>, E>,</div></h4></section></summary><div class='docblock'>Calls a fallible closure on each item of the stream, stopping on first error. <a href="../futures_lite/stream/trait.StreamExt.html#method.try_for_each">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.zip" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1671-1674">Source</a><a href="#method.zip" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.zip" class="fn">zip</a><U>(self, other: U) -> <a class="struct" href="../futures_lite/stream/struct.Zip.html" title="struct futures_lite::stream::Zip">Zip</a><Self, U><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
U: <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a>,</div></h4></section></summary><div class='docblock'>Zips up two streams into a single stream of pairs. <a href="../futures_lite/stream/trait.StreamExt.html#method.zip">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.unzip" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1698-1702">Source</a><a href="#method.unzip" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.unzip" class="fn">unzip</a><A, B, FromA, FromB>(self) -> <a class="struct" href="../futures_lite/stream/struct.UnzipFuture.html" title="struct futures_lite::stream::UnzipFuture">UnzipFuture</a><Self, FromA, FromB><div class="where">where
|
||
FromA: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a><A>,
|
||
FromB: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a><B>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a><Item = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.tuple.html">(A, B)</a>>,</div></h4></section></summary><div class='docblock'>Collects a stream of pairs into a pair of collections. <a href="../futures_lite/stream/trait.StreamExt.html#method.unzip">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.or" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1726-1729">Source</a><a href="#method.or" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.or" class="fn">or</a><S>(self, other: S) -> <a class="struct" href="../futures_lite/stream/struct.Or.html" title="struct futures_lite::stream::Or">Or</a><Self, S><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
S: <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a><Item = Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>>,</div></h4></section></summary><div class='docblock'>Merges with <code>other</code> stream, preferring items from <code>self</code> whenever both streams are ready. <a href="../futures_lite/stream/trait.StreamExt.html#method.or">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.race" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1754-1757">Source</a><a href="#method.race" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.race" class="fn">race</a><S>(self, other: S) -> <a class="struct" href="../futures_lite/stream/struct.Race.html" title="struct futures_lite::stream::Race">Race</a><Self, S><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,
|
||
S: <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a><Item = Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>>,</div></h4></section></summary><div class='docblock'>Merges with <code>other</code> stream, with no preference for either stream when both are ready. <a href="../futures_lite/stream/trait.StreamExt.html#method.race">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.drain" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1813">Source</a><a href="#method.drain" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.drain" class="fn">drain</a>(&mut self) -> <a class="struct" href="../futures_lite/stream/struct.Drain.html" title="struct futures_lite::stream::Drain">Drain</a><'_, Self></h4></section></summary><div class='docblock'>Yields all immediately available values from a stream. <a href="../futures_lite/stream/trait.StreamExt.html#method.drain">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.boxed" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1834-1836">Source</a><a href="#method.boxed" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.boxed" class="fn">boxed</a><'a>(self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a><Item = Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'a>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'a,</div></h4></section></summary><div class='docblock'>Boxes the stream and changes its type to <code>dyn Stream + Send + 'a</code>. <a href="../futures_lite/stream/trait.StreamExt.html#method.boxed">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.boxed_local" class="method trait-impl"><a class="src rightside" href="../src/futures_lite/stream.rs.html#1858-1860">Source</a><a href="#method.boxed_local" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_lite/stream/trait.StreamExt.html#method.boxed_local" class="fn">boxed_local</a><'a>(self) -> <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/1.84.0/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a><Item = Self::<a class="associatedtype" href="../futures_core/stream/trait.Stream.html#associatedtype.Item" title="type futures_core::stream::Stream::Item">Item</a>> + 'a>><div class="where">where
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + 'a,</div></h4></section></summary><div class='docblock'>Boxes the stream and changes its type to <code>dyn Stream + 'a</code>. <a href="../futures_lite/stream/trait.StreamExt.html#method.boxed_local">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#809">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#812">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#790-792">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#794">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#797">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryStream-for-S" class="impl"><a class="src rightside" href="../src/futures_core/stream.rs.html#195-197">Source</a><a href="#impl-TryStream-for-S" class="anchor">§</a><h3 class="code-header">impl<S, T, E> <a class="trait" href="../futures_core/stream/trait.TryStream.html" title="trait futures_core::stream::TryStream">TryStream</a> for S<div class="where">where
|
||
S: <a class="trait" href="../futures_core/stream/trait.Stream.html" title="trait futures_core::stream::Stream">Stream</a><Item = <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, E>> + ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Ok" class="associatedtype trait-impl"><a class="src rightside" href="../src/futures_core/stream.rs.html#199">Source</a><a href="#associatedtype.Ok" class="anchor">§</a><h4 class="code-header">type <a href="../futures_core/stream/trait.TryStream.html#associatedtype.Ok" class="associatedtype">Ok</a> = T</h4></section></summary><div class='docblock'>The type of successful values yielded by this future</div></details><details class="toggle" open><summary><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/futures_core/stream.rs.html#200">Source</a><a href="#associatedtype.Error-2" class="anchor">§</a><h4 class="code-header">type <a href="../futures_core/stream/trait.TryStream.html#associatedtype.Error" class="associatedtype">Error</a> = E</h4></section></summary><div class='docblock'>The type of failures yielded by this future</div></details><details class="toggle method-toggle" open><summary><section id="method.try_poll_next" class="method trait-impl"><a class="src rightside" href="../src/futures_core/stream.rs.html#202-205">Source</a><a href="#method.try_poll_next" class="anchor">§</a><h4 class="code-header">fn <a href="../futures_core/stream/trait.TryStream.html#tymethod.try_poll_next" class="fn">try_poll_next</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.reference.html">&mut S</a>>,
|
||
cx: &mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a><'_>,
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a><<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="https://doc.rust-lang.org/1.84.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<S as <a class="trait" href="../futures_core/stream/trait.TryStream.html" title="trait futures_core::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="../futures_core/stream/trait.TryStream.html#associatedtype.Ok" title="type futures_core::stream::TryStream::Ok">Ok</a>, <S as <a class="trait" href="../futures_core/stream/trait.TryStream.html" title="trait futures_core::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="../futures_core/stream/trait.TryStream.html#associatedtype.Error" title="type futures_core::stream::TryStream::Error">Error</a>>>></h4></section></summary><div class='docblock'>Poll this <code>TryStream</code> as if it were a <code>Stream</code>. <a href="../futures_core/stream/trait.TryStream.html#tymethod.try_poll_next">Read more</a></div></details></div></details></div></section></div></main></body></html> |