mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-27 04:19:33 +01:00
184 lines
No EOL
103 KiB
HTML
184 lines
No EOL
103 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 values produced asynchronously."><title>Stream in futures_util::stream - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.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-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-b0742ba02757f159.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.83.0 (90b35a623 2024-11-26)" data-channel="1.83.0" data-search-js="search-f0d225181b97f9a4.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="../../static.files/storage-1d39b6787ed640ff.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-f070b9041d14864c.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-0111fcff984fae8f.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../futures_util/index.html">futures_<wbr>util</a><span class="version">0.3.31</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Stream</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Item" title="Item">Item</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.poll_next" title="poll_next">poll_next</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.size_hint" title="size_hint">size_hint</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Stream-for-%26mut+S" title="&mut S">&mut S</a></li><li><a href="#impl-Stream-for-Pin%3CP%3E" title="Pin<P>">Pin<P></a></li></ul><h3><a href="#implementors">Implementors</a></h3></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"></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">futures_util</a>::<wbr><a href="index.html">stream</a></span><h1>Trait <span class="trait">Stream</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/futures_core/stream.rs.html#37">source</a> </span></div><pre class="rust item-decl"><code>pub trait Stream {
|
||
type <a href="#associatedtype.Item" class="associatedtype">Item</a>;
|
||
|
||
// Required method
|
||
fn <a href="#tymethod.poll_next" class="fn">poll_next</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.83.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.83.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.83.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.83.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>>>;
|
||
|
||
// Provided method
|
||
fn <a href="#method.size_hint" class="fn">size_hint</a>(&self) -> (<a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>, <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>>) { ... }
|
||
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A stream of values produced asynchronously.</p>
|
||
<p>If <code>Future<Output = T></code> is an asynchronous version of <code>T</code>, then <code>Stream<Item = T></code> is an asynchronous version of <code>Iterator<Item = T></code>. A stream
|
||
represents a sequence of value-producing events that occur asynchronously to
|
||
the caller.</p>
|
||
<p>The trait is modeled after <code>Future</code>, but allows <code>poll_next</code> to be called
|
||
even after a value has been produced, yielding <code>None</code> once the stream has
|
||
been fully exhausted.</p>
|
||
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Item" class="method"><a class="src rightside" href="../../src/futures_core/stream.rs.html#39">source</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a></h4></section></summary><div class="docblock"><p>Values yielded by the stream.</p>
|
||
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.poll_next" class="method"><a class="src rightside" href="../../src/futures_core/stream.rs.html#76">source</a><h4 class="code-header">fn <a href="#tymethod.poll_next" class="fn">poll_next</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.83.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.83.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.83.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.83.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><Self::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>>></h4></section></summary><div class="docblock"><p>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.</p>
|
||
<h5 id="return-value"><a class="doc-anchor" href="#return-value">§</a>Return value</h5>
|
||
<p>There are several possible return values, each indicating a distinct
|
||
stream state:</p>
|
||
<ul>
|
||
<li>
|
||
<p><code>Poll::Pending</code> means that this stream’s next value is not ready
|
||
yet. Implementations will ensure that the current task will be notified
|
||
when the next value may be ready.</p>
|
||
</li>
|
||
<li>
|
||
<p><code>Poll::Ready(Some(val))</code> means that the stream has successfully
|
||
produced a value, <code>val</code>, and may produce further values on subsequent
|
||
<code>poll_next</code> calls.</p>
|
||
</li>
|
||
<li>
|
||
<p><code>Poll::Ready(None)</code> means that the stream has terminated, and
|
||
<code>poll_next</code> should not be invoked again.</p>
|
||
</li>
|
||
</ul>
|
||
<h5 id="panics"><a class="doc-anchor" href="#panics">§</a>Panics</h5>
|
||
<p>Once a stream has finished (returned <code>Ready(None)</code> from <code>poll_next</code>), calling its
|
||
<code>poll_next</code> method again may panic, block forever, or cause other kinds of
|
||
problems; the <code>Stream</code> trait places no requirements on the effects of
|
||
such a call. However, as the <code>poll_next</code> method is not marked <code>unsafe</code>,
|
||
Rust’s usual rules apply: calls must never cause undefined behavior
|
||
(memory corruption, incorrect use of <code>unsafe</code> functions, or the like),
|
||
regardless of the stream’s state.</p>
|
||
<p>If this is difficult to guard against then the <a href="https://docs.rs/futures/0.3/futures/stream/trait.StreamExt.html#method.fuse"><code>fuse</code></a> adapter can be used
|
||
to ensure that <code>poll_next</code> always returns <code>Ready(None)</code> in subsequent
|
||
calls.</p>
|
||
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.size_hint" class="method"><a class="src rightside" href="../../src/futures_core/stream.rs.html#105">source</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&self) -> (<a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>, <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>>)</h4></section></summary><div class="docblock"><p>Returns the bounds on the remaining length of the stream.</p>
|
||
<p>Specifically, <code>size_hint()</code> returns a tuple where the first element
|
||
is the lower bound, and the second element is the upper bound.</p>
|
||
<p>The second half of the tuple that is returned is an <a href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html" title="enum core::option::Option"><code>Option</code></a><code><</code><a href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html" title="primitive usize"><code>usize</code></a><code>></code>.
|
||
A <a href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a> here means that either there is no known upper bound, or the
|
||
upper bound is larger than <a href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html" title="primitive usize"><code>usize</code></a>.</p>
|
||
<h5 id="implementation-notes"><a class="doc-anchor" href="#implementation-notes">§</a>Implementation notes</h5>
|
||
<p>It is not enforced that a stream implementation yields the declared
|
||
number of elements. A buggy stream may yield less than the lower bound
|
||
or more than the upper bound of elements.</p>
|
||
<p><code>size_hint()</code> is primarily intended to be used for optimizations such as
|
||
reserving space for the elements of the stream, but must not be
|
||
trusted to e.g., omit bounds checks in unsafe code. An incorrect
|
||
implementation of <code>size_hint()</code> should not lead to memory safety
|
||
violations.</p>
|
||
<p>That said, the implementation should provide a correct estimation,
|
||
because otherwise it would be a violation of the trait’s protocol.</p>
|
||
<p>The default implementation returns <code>(0, </code><a href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html#variant.None" title="variant core::option::Option::None"><code>None</code></a><code>)</code> which is correct for any
|
||
stream.</p>
|
||
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Pin%3CP%3E" class="impl"><a class="src rightside" href="../../src/futures_core/stream.rs.html#122-125">source</a><a href="#impl-Stream-for-Pin%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="https://doc.rust-lang.org/1.83.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><P><div class="where">where
|
||
P: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a> + <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,
|
||
<P as <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.83.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_core/stream.rs.html#127">source</a><a href="#associatedtype.Item-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <<P as <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.83.0/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a> as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section><section id="method.poll_next" class="method trait-impl"><a class="src rightside" href="../../src/futures_core/stream.rs.html#129">source</a><a href="#method.poll_next" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_next" class="fn">poll_next</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.83.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><&mut <a class="struct" href="https://doc.rust-lang.org/1.83.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><P>>,
|
||
cx: &mut <a class="struct" href="https://doc.rust-lang.org/1.83.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.83.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.83.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<<a class="struct" href="https://doc.rust-lang.org/1.83.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><P> as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>>></h4></section><section id="method.size_hint-1" class="method trait-impl"><a class="src rightside" href="../../src/futures_core/stream.rs.html#133">source</a><a href="#method.size_hint-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&self) -> (<a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>, <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>>)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-%26mut+S" class="impl"><a class="src rightside" href="../../src/futures_core/stream.rs.html#110">source</a><a href="#impl-Stream-for-%26mut+S" class="anchor">§</a><h3 class="code-header">impl<S> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&mut S</a><div class="where">where
|
||
S: <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.83.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.83.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_core/stream.rs.html#111">source</a><a href="#associatedtype.Item-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <S as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section><section id="method.poll_next-1" class="method trait-impl"><a class="src rightside" href="../../src/futures_core/stream.rs.html#113">source</a><a href="#method.poll_next-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_next" class="fn">poll_next</a>(
|
||
self: <a class="struct" href="https://doc.rust-lang.org/1.83.0/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><&mut <a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&mut S</a>>,
|
||
cx: &mut <a class="struct" href="https://doc.rust-lang.org/1.83.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.83.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.83.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<<a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.reference.html">&mut S</a> as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>>></h4></section><section id="method.size_hint-2" class="method trait-impl"><a class="src rightside" href="../../src/futures_core/stream.rs.html#117">source</a><a href="#method.size_hint-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.size_hint" class="fn">size_hint</a>(&self) -> (<a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>, <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>>)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Either%3CA,+B%3E" class="impl"><a class="src rightside" href="../../src/futures_util/future/either.rs.html#127-147">source</a><a href="#impl-Stream-for-Either%3CA,+B%3E" class="anchor">§</a><h3 class="code-header">impl<A, B> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="enum" href="../future/enum.Either.html" title="enum futures_util::future::Either">Either</a><A, B><div class="where">where
|
||
A: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,
|
||
B: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a><Item = A::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/future/either.rs.html#132">source</a><a href="#associatedtype.Item-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <A as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-RepeatWith%3CF%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/repeat_with.rs.html#19-29">source</a><a href="#impl-Stream-for-RepeatWith%3CF%3E" class="anchor">§</a><h3 class="code-header">impl<A, F: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>() -> A> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.RepeatWith.html" title="struct futures_util::stream::RepeatWith">RepeatWith</a><F></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/repeat_with.rs.html#20">source</a><a href="#associatedtype.Item-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = A</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Scan%3CSt,+S,+Fut,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/scan.rs.html#65-106">source</a><a href="#impl-Stream-for-Scan%3CSt,+S,+Fut,+F%3E" class="anchor">§</a><h3 class="code-header">impl<B, St, S, Fut, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Scan.html" title="struct futures_util::stream::Scan">Scan</a><St, S, Fut, F><div class="where">where
|
||
St: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&mut S</a>, St::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>) -> Fut,
|
||
Fut: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><B>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/scan.rs.html#71">source</a><a href="#associatedtype.Item-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = B</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-FlattenStream%3CF%3E" class="impl"><a class="src rightside" href="../../src/futures_util/future/future/mod.rs.html#37-43">source</a><a href="#impl-Stream-for-FlattenStream%3CF%3E" class="anchor">§</a><h3 class="code-header">impl<F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="../future/struct.FlattenStream.html" title="struct futures_util::future::FlattenStream">FlattenStream</a><F><div class="where">where
|
||
Flatten<F, <F as <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html#associatedtype.Output" title="type core::future::future::Future::Output">Output</a>>: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-6" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/future/future/mod.rs.html#37-43">source</a><a href="#associatedtype.Item-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <Flatten<F, <F as <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html#associatedtype.Output" title="type core::future::future::Future::Output">Output</a>> as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-IntoStream%3CF%3E" class="impl"><a class="src rightside" href="../../src/futures_util/future/future/mod.rs.html#55-60">source</a><a href="#impl-Stream-for-IntoStream%3CF%3E" class="anchor">§</a><h3 class="code-header">impl<F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for futures_util::future::<a class="struct" href="../future/struct.IntoStream.html" title="struct futures_util::future::IntoStream">IntoStream</a><F><div class="where">where
|
||
<a class="struct" href="struct.Once.html" title="struct futures_util::stream::Once">Once</a><F>: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-7" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/future/future/mod.rs.html#55-60">source</a><a href="#associatedtype.Item-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <<a class="struct" href="struct.Once.html" title="struct futures_util::stream::Once">Once</a><F> as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-TryFlattenStream%3CFut%3E" class="impl"><a class="src rightside" href="../../src/futures_util/future/try_future/mod.rs.html#44-50">source</a><a href="#impl-Stream-for-TryFlattenStream%3CFut%3E" class="anchor">§</a><h3 class="code-header">impl<Fut> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="../future/struct.TryFlattenStream.html" title="struct futures_util::future::TryFlattenStream">TryFlattenStream</a><Fut><div class="where">where
|
||
TryFlatten<Fut, Fut::<a class="associatedtype" href="../future/trait.TryFuture.html#associatedtype.Ok" title="type futures_util::future::TryFuture::Ok">Ok</a>>: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,
|
||
Fut: <a class="trait" href="../future/trait.TryFuture.html" title="trait futures_util::future::TryFuture">TryFuture</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-8" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/future/try_future/mod.rs.html#44-50">source</a><a href="#associatedtype.Item-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <TryFlatten<Fut, <Fut as <a class="trait" href="../future/trait.TryFuture.html" title="trait futures_util::future::TryFuture">TryFuture</a>>::<a class="associatedtype" href="../future/trait.TryFuture.html#associatedtype.Ok" title="type futures_util::future::TryFuture::Ok">Ok</a>> as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Once%3CFut%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/once.rs.html#40-61">source</a><a href="#impl-Stream-for-Once%3CFut%3E" class="anchor">§</a><h3 class="code-header">impl<Fut: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Once.html" title="struct futures_util::stream::Once">Once</a><Fut></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-9" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/once.rs.html#41">source</a><a href="#associatedtype.Item-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <Fut as <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html#associatedtype.Output" title="type core::future::future::Future::Output">Output</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Iter%3CI%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/iter.rs.html#53-66">source</a><a href="#impl-Stream-for-Iter%3CI%3E" class="anchor">§</a><h3 class="code-header">impl<I> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Iter.html" title="struct futures_util::stream::Iter">Iter</a><I><div class="where">where
|
||
I: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-10" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/iter.rs.html#57">source</a><a href="#associatedtype.Item-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <I as <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.83.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Fuse%3CS%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/fuse.rs.html#43-67">source</a><a href="#impl-Stream-for-Fuse%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Fuse.html" title="struct futures_util::stream::Fuse">Fuse</a><S></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-11" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/fuse.rs.html#44">source</a><a href="#associatedtype.Item-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <S as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Peekable%3CS%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/peek.rs.html#195-216">source</a><a href="#impl-Stream-for-Peekable%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<S: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Peekable.html" title="struct futures_util::stream::Peekable">Peekable</a><S></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-12" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/peek.rs.html#196">source</a><a href="#associatedtype.Item-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <S as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Chain%3CSt1,+St2%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/chain.rs.html#40-76">source</a><a href="#impl-Stream-for-Chain%3CSt1,+St2%3E" class="anchor">§</a><h3 class="code-header">impl<St1, St2> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Chain.html" title="struct futures_util::stream::Chain">Chain</a><St1, St2><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><Item = St1::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-13" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/chain.rs.html#45">source</a><a href="#associatedtype.Item-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <St1 as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Select%3CSt1,+St2%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/select.rs.html#106-117">source</a><a href="#impl-Stream-for-Select%3CSt1,+St2%3E" class="anchor">§</a><h3 class="code-header">impl<St1, St2> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Select.html" title="struct futures_util::stream::Select">Select</a><St1, St2><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><Item = St1::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-14" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/select.rs.html#111">source</a><a href="#associatedtype.Item-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <St1 as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Zip%3CSt1,+St2%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/zip.rs.html#71-128">source</a><a href="#impl-Stream-for-Zip%3CSt1,+St2%3E" class="anchor">§</a><h3 class="code-header">impl<St1, St2> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Zip.html" title="struct futures_util::stream::Zip">Zip</a><St1, St2><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>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-15" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/zip.rs.html#76">source</a><a href="#associatedtype.Item-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = (<St1 as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>, <St2 as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-SelectWithStrategy%3CSt1,+St2,+Clos,+State%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/select_with_strategy.rs.html#256-289">source</a><a href="#impl-Stream-for-SelectWithStrategy%3CSt1,+St2,+Clos,+State%3E" class="anchor">§</a><h3 class="code-header">impl<St1, St2, Clos, State> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.SelectWithStrategy.html" title="struct futures_util::stream::SelectWithStrategy">SelectWithStrategy</a><St1, St2, Clos, State><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><Item = St1::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>>,
|
||
Clos: <a class="trait" href="https://doc.rust-lang.org/1.83.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.83.0/core/primitive.reference.html">&mut State</a>) -> <a class="enum" href="enum.PollNext.html" title="enum futures_util::stream::PollNext">PollNext</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-16" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/select_with_strategy.rs.html#262">source</a><a href="#associatedtype.Item-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <St1 as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Cycle%3CSt%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/cycle.rs.html#27-53">source</a><a href="#impl-Stream-for-Cycle%3CSt%3E" class="anchor">§</a><h3 class="code-header">impl<St> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Cycle.html" title="struct futures_util::stream::Cycle">Cycle</a><St><div class="where">where
|
||
St: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-17" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/cycle.rs.html#31">source</a><a href="#associatedtype.Item-17" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <St as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Flatten%3CSt%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/mod.rs.html#65-71">source</a><a href="#impl-Stream-for-Flatten%3CSt%3E" class="anchor">§</a><h3 class="code-header">impl<St> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Flatten.html" title="struct futures_util::stream::Flatten">Flatten</a><St><div class="where">where
|
||
Flatten<St, St::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>>: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,
|
||
St: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-18" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/mod.rs.html#65-71">source</a><a href="#associatedtype.Item-18" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <Flatten<St, <St as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>> as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Take%3CSt%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/take.rs.html#29-66">source</a><a href="#impl-Stream-for-Take%3CSt%3E" class="anchor">§</a><h3 class="code-header">impl<St> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Take.html" title="struct futures_util::stream::Take">Take</a><St><div class="where">where
|
||
St: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-19" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/take.rs.html#33">source</a><a href="#associatedtype.Item-19" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <St as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-TryFlatten%3CSt%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/try_flatten.rs.html#48-73">source</a><a href="#impl-Stream-for-TryFlatten%3CSt%3E" class="anchor">§</a><h3 class="code-header">impl<St> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.TryFlatten.html" title="struct futures_util::stream::TryFlatten">TryFlatten</a><St><div class="where">where
|
||
St: <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>,
|
||
St::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Ok" title="type futures_util::stream::TryStream::Ok">Ok</a>: <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>,
|
||
<St::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Ok" title="type futures_util::stream::TryStream::Ok">Ok</a> as <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Error" title="type futures_util::stream::TryStream::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><St::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Error" title="type futures_util::stream::TryStream::Error">Error</a>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-20" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/try_flatten.rs.html#54">source</a><a href="#associatedtype.Item-20" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<<St as <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Ok" title="type futures_util::stream::TryStream::Ok">Ok</a> as <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Ok" title="type futures_util::stream::TryStream::Ok">Ok</a>, <<St as <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Ok" title="type futures_util::stream::TryStream::Ok">Ok</a> as <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Error" title="type futures_util::stream::TryStream::Error">Error</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-ErrInto%3CSt,+E%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#29-34">source</a><a href="#impl-Stream-for-ErrInto%3CSt,+E%3E" class="anchor">§</a><h3 class="code-header">impl<St, E> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.ErrInto.html" title="struct futures_util::stream::ErrInto">ErrInto</a><St, E><div class="where">where
|
||
<a class="struct" href="struct.MapErr.html" title="struct futures_util::stream::MapErr">MapErr</a><St, IntoFn<E>>: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-21" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#29-34">source</a><a href="#associatedtype.Item-21" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <<a class="struct" href="struct.MapErr.html" title="struct futures_util::stream::MapErr">MapErr</a><St, IntoFn<E>> as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Inspect%3CSt,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/mod.rs.html#110-115">source</a><a href="#impl-Stream-for-Inspect%3CSt,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Inspect.html" title="struct futures_util::stream::Inspect">Inspect</a><St, F><div class="where">where
|
||
<a class="struct" href="struct.Map.html" title="struct futures_util::stream::Map">Map</a><St, InspectFn<F>>: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-22" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/mod.rs.html#110-115">source</a><a href="#associatedtype.Item-22" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <<a class="struct" href="struct.Map.html" title="struct futures_util::stream::Map">Map</a><St, InspectFn<F>> as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-InspectErr%3CSt,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#43-48">source</a><a href="#impl-Stream-for-InspectErr%3CSt,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.InspectErr.html" title="struct futures_util::stream::InspectErr">InspectErr</a><St, F><div class="where">where
|
||
<a class="struct" href="struct.Inspect.html" title="struct futures_util::stream::Inspect">Inspect</a><<a class="struct" href="struct.IntoStream.html" title="struct futures_util::stream::IntoStream">IntoStream</a><St>, InspectErrFn<F>>: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-23" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#43-48">source</a><a href="#associatedtype.Item-23" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <<a class="struct" href="struct.Inspect.html" title="struct futures_util::stream::Inspect">Inspect</a><<a class="struct" href="struct.IntoStream.html" title="struct futures_util::stream::IntoStream">IntoStream</a><St>, InspectErrFn<F>> as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-InspectOk%3CSt,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#36-41">source</a><a href="#impl-Stream-for-InspectOk%3CSt,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.InspectOk.html" title="struct futures_util::stream::InspectOk">InspectOk</a><St, F><div class="where">where
|
||
<a class="struct" href="struct.Inspect.html" title="struct futures_util::stream::Inspect">Inspect</a><<a class="struct" href="struct.IntoStream.html" title="struct futures_util::stream::IntoStream">IntoStream</a><St>, InspectOkFn<F>>: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-24" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#36-41">source</a><a href="#associatedtype.Item-24" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <<a class="struct" href="struct.Inspect.html" title="struct futures_util::stream::Inspect">Inspect</a><<a class="struct" href="struct.IntoStream.html" title="struct futures_util::stream::IntoStream">IntoStream</a><St>, InspectOkFn<F>> as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Map%3CSt,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/map.rs.html#49-65">source</a><a href="#impl-Stream-for-Map%3CSt,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Map.html" title="struct futures_util::stream::Map">Map</a><St, F><div class="where">where
|
||
St: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,
|
||
F: FnMut1<St::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-25" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/map.rs.html#54">source</a><a href="#associatedtype.Item-25" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <F as FnOnce1<<St as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>>>::Output</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-MapErr%3CSt,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#61-66">source</a><a href="#impl-Stream-for-MapErr%3CSt,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.MapErr.html" title="struct futures_util::stream::MapErr">MapErr</a><St, F><div class="where">where
|
||
<a class="struct" href="struct.Map.html" title="struct futures_util::stream::Map">Map</a><<a class="struct" href="struct.IntoStream.html" title="struct futures_util::stream::IntoStream">IntoStream</a><St>, MapErrFn<F>>: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-26" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#61-66">source</a><a href="#associatedtype.Item-26" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <<a class="struct" href="struct.Map.html" title="struct futures_util::stream::Map">Map</a><<a class="struct" href="struct.IntoStream.html" title="struct futures_util::stream::IntoStream">IntoStream</a><St>, MapErrFn<F>> as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-MapOk%3CSt,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#54-59">source</a><a href="#impl-Stream-for-MapOk%3CSt,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.MapOk.html" title="struct futures_util::stream::MapOk">MapOk</a><St, F><div class="where">where
|
||
<a class="struct" href="struct.Map.html" title="struct futures_util::stream::Map">Map</a><<a class="struct" href="struct.IntoStream.html" title="struct futures_util::stream::IntoStream">IntoStream</a><St>, MapOkFn<F>>: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-27" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/mod.rs.html#54-59">source</a><a href="#associatedtype.Item-27" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <<a class="struct" href="struct.Map.html" title="struct futures_util::stream::Map">Map</a><<a class="struct" href="struct.IntoStream.html" title="struct futures_util::stream::IntoStream">IntoStream</a><St>, MapOkFn<F>> as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-TakeUntil%3CSt,+Fut%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/take_until.rs.html#111-148">source</a><a href="#impl-Stream-for-TakeUntil%3CSt,+Fut%3E" class="anchor">§</a><h3 class="code-header">impl<St, Fut> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.TakeUntil.html" title="struct futures_util::stream::TakeUntil">TakeUntil</a><St, Fut><div class="where">where
|
||
St: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,
|
||
Fut: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-28" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/take_until.rs.html#116">source</a><a href="#associatedtype.Item-28" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <St as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-AndThen%3CSt,+Fut,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/and_then.rs.html#49-83">source</a><a href="#impl-Stream-for-AndThen%3CSt,+Fut,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, Fut, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.AndThen.html" title="struct futures_util::stream::AndThen">AndThen</a><St, Fut, F><div class="where">where
|
||
St: <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(St::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Ok" title="type futures_util::stream::TryStream::Ok">Ok</a>) -> Fut,
|
||
Fut: <a class="trait" href="../future/trait.TryFuture.html" title="trait futures_util::future::TryFuture">TryFuture</a><Error = St::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Error" title="type futures_util::stream::TryStream::Error">Error</a>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-29" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/and_then.rs.html#55">source</a><a href="#associatedtype.Item-29" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<Fut as <a class="trait" href="../future/trait.TryFuture.html" title="trait futures_util::future::TryFuture">TryFuture</a>>::<a class="associatedtype" href="../future/trait.TryFuture.html#associatedtype.Ok" title="type futures_util::future::TryFuture::Ok">Ok</a>, <St as <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Error" title="type futures_util::stream::TryStream::Error">Error</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Filter%3CSt,+Fut,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/filter.rs.html#68-104">source</a><a href="#impl-Stream-for-Filter%3CSt,+Fut,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, Fut, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Filter.html" title="struct futures_util::stream::Filter">Filter</a><St, Fut, F><div class="where">where
|
||
St: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,
|
||
F: for<'a> FnMut1<&'a St::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>, Output = Fut>,
|
||
Fut: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.bool.html">bool</a>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-30" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/filter.rs.html#74">source</a><a href="#associatedtype.Item-30" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <St as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-OrElse%3CSt,+Fut,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/or_else.rs.html#49-87">source</a><a href="#impl-Stream-for-OrElse%3CSt,+Fut,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, Fut, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.OrElse.html" title="struct futures_util::stream::OrElse">OrElse</a><St, Fut, F><div class="where">where
|
||
St: <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(St::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Error" title="type futures_util::stream::TryStream::Error">Error</a>) -> Fut,
|
||
Fut: <a class="trait" href="../future/trait.TryFuture.html" title="trait futures_util::future::TryFuture">TryFuture</a><Ok = St::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Ok" title="type futures_util::stream::TryStream::Ok">Ok</a>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-31" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/or_else.rs.html#55">source</a><a href="#associatedtype.Item-31" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<St as <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Ok" title="type futures_util::stream::TryStream::Ok">Ok</a>, <Fut as <a class="trait" href="../future/trait.TryFuture.html" title="trait futures_util::future::TryFuture">TryFuture</a>>::<a class="associatedtype" href="../future/trait.TryFuture.html#associatedtype.Error" title="type futures_util::future::TryFuture::Error">Error</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-SkipWhile%3CSt,+Fut,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/skip_while.rs.html#65-111">source</a><a href="#impl-Stream-for-SkipWhile%3CSt,+Fut,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, Fut, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.SkipWhile.html" title="struct futures_util::stream::SkipWhile">SkipWhile</a><St, Fut, F><div class="where">where
|
||
St: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&St::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>) -> Fut,
|
||
Fut: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.bool.html">bool</a>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-32" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/skip_while.rs.html#71">source</a><a href="#associatedtype.Item-32" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <St as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-TakeWhile%3CSt,+Fut,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/take_while.rs.html#54-102">source</a><a href="#impl-Stream-for-TakeWhile%3CSt,+Fut,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, Fut, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.TakeWhile.html" title="struct futures_util::stream::TakeWhile">TakeWhile</a><St, Fut, F><div class="where">where
|
||
St: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&St::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>) -> Fut,
|
||
Fut: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.bool.html">bool</a>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-33" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/take_while.rs.html#60">source</a><a href="#associatedtype.Item-33" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <St as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Then%3CSt,+Fut,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/then.rs.html#56-90">source</a><a href="#impl-Stream-for-Then%3CSt,+Fut,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, Fut, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Then.html" title="struct futures_util::stream::Then">Then</a><St, Fut, F><div class="where">where
|
||
St: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(St::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>) -> Fut,
|
||
Fut: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-34" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/then.rs.html#62">source</a><a href="#associatedtype.Item-34" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <Fut as <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html#associatedtype.Output" title="type core::future::future::Future::Output">Output</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-TryFilter%3CSt,+Fut,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/try_filter.rs.html#64-101">source</a><a href="#impl-Stream-for-TryFilter%3CSt,+Fut,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, Fut, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.TryFilter.html" title="struct futures_util::stream::TryFilter">TryFilter</a><St, Fut, F><div class="where">where
|
||
St: <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>,
|
||
Fut: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.bool.html">bool</a>>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&St::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Ok" title="type futures_util::stream::TryStream::Ok">Ok</a>) -> Fut,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-35" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/try_filter.rs.html#70">source</a><a href="#associatedtype.Item-35" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<St as <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Ok" title="type futures_util::stream::TryStream::Ok">Ok</a>, <St as <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Error" title="type futures_util::stream::TryStream::Error">Error</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-TrySkipWhile%3CSt,+Fut,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/try_skip_while.rs.html#55-98">source</a><a href="#impl-Stream-for-TrySkipWhile%3CSt,+Fut,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, Fut, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.TrySkipWhile.html" title="struct futures_util::stream::TrySkipWhile">TrySkipWhile</a><St, Fut, F><div class="where">where
|
||
St: <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&St::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Ok" title="type futures_util::stream::TryStream::Ok">Ok</a>) -> Fut,
|
||
Fut: <a class="trait" href="../future/trait.TryFuture.html" title="trait futures_util::future::TryFuture">TryFuture</a><Ok = <a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.bool.html">bool</a>, Error = St::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Error" title="type futures_util::stream::TryStream::Error">Error</a>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-36" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/try_skip_while.rs.html#61">source</a><a href="#associatedtype.Item-36" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<St as <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Ok" title="type futures_util::stream::TryStream::Ok">Ok</a>, <St as <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Error" title="type futures_util::stream::TryStream::Error">Error</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-TryTakeWhile%3CSt,+Fut,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/try_take_while.rs.html#58-107">source</a><a href="#impl-Stream-for-TryTakeWhile%3CSt,+Fut,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, Fut, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.TryTakeWhile.html" title="struct futures_util::stream::TryTakeWhile">TryTakeWhile</a><St, Fut, F><div class="where">where
|
||
St: <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&St::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Ok" title="type futures_util::stream::TryStream::Ok">Ok</a>) -> Fut,
|
||
Fut: <a class="trait" href="../future/trait.TryFuture.html" title="trait futures_util::future::TryFuture">TryFuture</a><Ok = <a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.bool.html">bool</a>, Error = St::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Error" title="type futures_util::stream::TryStream::Error">Error</a>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-37" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/try_take_while.rs.html#64">source</a><a href="#associatedtype.Item-37" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<St as <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Ok" title="type futures_util::stream::TryStream::Ok">Ok</a>, <St as <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Error" title="type futures_util::stream::TryStream::Error">Error</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-FilterMap%3CSt,+Fut,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/filter_map.rs.html#61-98">source</a><a href="#impl-Stream-for-FilterMap%3CSt,+Fut,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, Fut, F, T> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.FilterMap.html" title="struct futures_util::stream::FilterMap">FilterMap</a><St, Fut, F><div class="where">where
|
||
St: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,
|
||
F: FnMut1<St::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>, Output = Fut>,
|
||
Fut: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-38" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/filter_map.rs.html#67">source</a><a href="#associatedtype.Item-38" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-TryFilterMap%3CSt,+Fut,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/try_filter_map.rs.html#56-95">source</a><a href="#impl-Stream-for-TryFilterMap%3CSt,+Fut,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, Fut, F, T> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.TryFilterMap.html" title="struct futures_util::stream::TryFilterMap">TryFilterMap</a><St, Fut, F><div class="where">where
|
||
St: <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>,
|
||
Fut: <a class="trait" href="../future/trait.TryFuture.html" title="trait futures_util::future::TryFuture">TryFuture</a><Ok = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T>, Error = St::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Error" title="type futures_util::stream::TryStream::Error">Error</a>>,
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(St::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Ok" title="type futures_util::stream::TryStream::Ok">Ok</a>) -> Fut,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-39" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/try_filter_map.rs.html#62">source</a><a href="#associatedtype.Item-39" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <St as <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Error" title="type futures_util::stream::TryStream::Error">Error</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-FlatMap%3CSt,+U,+F%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/mod.rs.html#121-126">source</a><a href="#impl-Stream-for-FlatMap%3CSt,+U,+F%3E" class="anchor">§</a><h3 class="code-header">impl<St, U, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.FlatMap.html" title="struct futures_util::stream::FlatMap">FlatMap</a><St, U, F><div class="where">where
|
||
Flatten<<a class="struct" href="struct.Map.html" title="struct futures_util::stream::Map">Map</a><St, F>, U>: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-40" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/mod.rs.html#121-126">source</a><a href="#associatedtype.Item-40" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <Flatten<<a class="struct" href="struct.Map.html" title="struct futures_util::stream::Map">Map</a><St, F>, U> as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Enumerate%3CSt%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/enumerate.rs.html#34-53">source</a><a href="#impl-Stream-for-Enumerate%3CSt%3E" class="anchor">§</a><h3 class="code-header">impl<St: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Enumerate.html" title="struct futures_util::stream::Enumerate">Enumerate</a><St></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-41" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/enumerate.rs.html#35">source</a><a href="#associatedtype.Item-41" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = (<a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.usize.html">usize</a>, <St as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a>)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Skip%3CSt%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/stream/skip.rs.html#34-59">source</a><a href="#impl-Stream-for-Skip%3CSt%3E" class="anchor">§</a><h3 class="code-header">impl<St: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Skip.html" title="struct futures_util::stream::Skip">Skip</a><St></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-42" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/stream/skip.rs.html#35">source</a><a href="#associatedtype.Item-42" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <St as <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a>>::<a class="associatedtype" href="trait.Stream.html#associatedtype.Item" title="type futures_util::stream::Stream::Item">Item</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-IntoStream%3CSt%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/into_stream.rs.html#33-44">source</a><a href="#impl-Stream-for-IntoStream%3CSt%3E" class="anchor">§</a><h3 class="code-header">impl<St: <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for futures_util::stream::<a class="struct" href="struct.IntoStream.html" title="struct futures_util::stream::IntoStream">IntoStream</a><St></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-43" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/into_stream.rs.html#34">source</a><a href="#associatedtype.Item-43" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<St as <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Ok" title="type futures_util::stream::TryStream::Ok">Ok</a>, <St as <a class="trait" href="trait.TryStream.html" title="trait futures_util::stream::TryStream">TryStream</a>>::<a class="associatedtype" href="trait.TryStream.html#associatedtype.Error" title="type futures_util::stream::TryStream::Error">Error</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Empty%3CT%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/empty.rs.html#29-39">source</a><a href="#impl-Stream-for-Empty%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Empty.html" title="struct futures_util::stream::Empty">Empty</a><T></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-44" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/empty.rs.html#30">source</a><a href="#associatedtype.Item-44" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Pending%3CT%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/pending.rs.html#29-39">source</a><a href="#impl-Stream-for-Pending%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Pending.html" title="struct futures_util::stream::Pending">Pending</a><T></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-45" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/pending.rs.html#30">source</a><a href="#associatedtype.Item-45" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Repeat%3CT%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/repeat.rs.html#36-49">source</a><a href="#impl-Stream-for-Repeat%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Repeat.html" title="struct futures_util::stream::Repeat">Repeat</a><T><div class="where">where
|
||
T: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-46" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/repeat.rs.html#40">source</a><a href="#associatedtype.Item-46" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-PollImmediate%3CF%3E" class="impl"><a class="src rightside" href="../../src/futures_util/future/poll_immediate.rs.html#70-87">source</a><a href="#impl-Stream-for-PollImmediate%3CF%3E" class="anchor">§</a><h3 class="code-header">impl<T, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for futures_util::future::<a class="struct" href="../future/struct.PollImmediate.html" title="struct futures_util::future::PollImmediate">PollImmediate</a><F><div class="where">where
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = T>,</div></h3></section></summary><div class="docblock"><p>A <a href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> implementation that can be polled repeatedly until the future is done.
|
||
The stream will never return <a href="https://doc.rust-lang.org/1.83.0/core/task/poll/enum.Poll.html#variant.Pending" title="variant core::task::poll::Poll::Pending">Poll::Pending</a>
|
||
so polling it in a tight loop is worse than using a blocking synchronous function.</p>
|
||
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::task::Poll;
|
||
<span class="kw">use </span>futures::{StreamExt, future, pin_mut};
|
||
<span class="kw">use </span>future::FusedFuture;
|
||
|
||
<span class="kw">let </span>f = <span class="kw">async </span>{ <span class="number">1_u32 </span>};
|
||
<span class="macro">pin_mut!</span>(f);
|
||
<span class="kw">let </span><span class="kw-2">mut </span>r = future::poll_immediate(f);
|
||
<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="kw">let </span>f = <span class="kw">async </span>{<span class="macro">futures::pending!</span>(); <span class="number">42_u8</span>};
|
||
<span class="macro">pin_mut!</span>(f);
|
||
<span class="kw">let </span><span class="kw-2">mut </span>p = future::poll_immediate(f);
|
||
<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!</span>(!p.is_terminated());
|
||
<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!</span>(p.is_terminated());
|
||
<span class="macro">assert_eq!</span>(p.next().<span class="kw">await</span>, <span class="prelude-val">None</span>);</code></pre></div>
|
||
</div><div class="impl-items"><section id="associatedtype.Item-47" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/future/poll_immediate.rs.html#74">source</a><a href="#associatedtype.Item-47" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a><T></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-PollFn%3CF%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/poll_fn.rs.html#48-57">source</a><a href="#impl-Stream-for-PollFn%3CF%3E" class="anchor">§</a><h3 class="code-header">impl<T, F> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.PollFn.html" title="struct futures_util::stream::PollFn">PollFn</a><F><div class="where">where
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&mut <a class="struct" href="https://doc.rust-lang.org/1.83.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.83.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.83.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-48" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/poll_fn.rs.html#52">source</a><a href="#associatedtype.Item-48" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-TryUnfold%3CT,+F,+Fut%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/try_unfold.rs.html#88-122">source</a><a href="#impl-Stream-for-TryUnfold%3CT,+F,+Fut%3E" class="anchor">§</a><h3 class="code-header">impl<T, F, Fut, Item> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.TryUnfold.html" title="struct futures_util::stream::TryUnfold">TryUnfold</a><T, F, Fut><div class="where">where
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(T) -> Fut,
|
||
Fut: <a class="trait" href="../future/trait.TryFuture.html" title="trait futures_util::future::TryFuture">TryFuture</a><Ok = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.tuple.html">(Item, T)</a>>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-49" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/try_stream/try_unfold.rs.html#93">source</a><a href="#associatedtype.Item-49" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Item, <Fut as <a class="trait" href="../future/trait.TryFuture.html" title="trait futures_util::future::TryFuture">TryFuture</a>>::<a class="associatedtype" href="../future/trait.TryFuture.html#associatedtype.Error" title="type futures_util::future::TryFuture::Error">Error</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-Unfold%3CT,+F,+Fut%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/unfold.rs.html#92-119">source</a><a href="#impl-Stream-for-Unfold%3CT,+F,+Fut%3E" class="anchor">§</a><h3 class="code-header">impl<T, F, Fut, Item> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for <a class="struct" href="struct.Unfold.html" title="struct futures_util::stream::Unfold">Unfold</a><T, F, Fut><div class="where">where
|
||
F: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(T) -> Fut,
|
||
Fut: <a class="trait" href="https://doc.rust-lang.org/1.83.0/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.83.0/core/primitive.tuple.html">(Item, T)</a>>>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-50" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/unfold.rs.html#97">source</a><a href="#associatedtype.Item-50" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = Item</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Stream-for-PollImmediate%3CS%3E" class="impl"><a class="src rightside" href="../../src/futures_util/stream/poll_immediate.rs.html#18-45">source</a><a href="#impl-Stream-for-PollImmediate%3CS%3E" class="anchor">§</a><h3 class="code-header">impl<T, S> <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a> for futures_util::stream::<a class="struct" href="struct.PollImmediate.html" title="struct futures_util::stream::PollImmediate">PollImmediate</a><S><div class="where">where
|
||
S: <a class="trait" href="trait.Stream.html" title="trait futures_util::stream::Stream">Stream</a><Item = T>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Item-51" class="associatedtype trait-impl"><a class="src rightside" href="../../src/futures_util/stream/poll_immediate.rs.html#22">source</a><a href="#associatedtype.Item-51" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Item" class="associatedtype">Item</a> = <a class="enum" href="https://doc.rust-lang.org/1.83.0/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a><T></h4></section></div></details></div><script src="../../trait.impl/futures_core/stream/trait.Stream.js" data-ignore-extern-crates="core" async></script></section></div></main></body></html> |