struct.FuturesUnordered.html 71 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  6. <meta name="generator" content="rustdoc">
  7. <meta name="description" content="API documentation for the Rust `FuturesUnordered` struct in crate `futures`.">
  8. <meta name="keywords" content="rust, rustlang, rust-lang, FuturesUnordered">
  9. <title>futures::stream::futures_unordered::FuturesUnordered - Rust</title>
  10. <link rel="stylesheet" type="text/css" href="../../../normalize.css">
  11. <link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle">
  12. <link rel="stylesheet" type="text/css" href="../../../dark.css">
  13. <link rel="stylesheet" type="text/css" href="../../../main.css" id="themeStyle">
  14. <script src="../../../storage.js"></script>
  15. </head>
  16. <body class="rustdoc struct">
  17. <!--[if lte IE 8]>
  18. <div class="warning">
  19. This old browser is unsupported and will most likely display funky
  20. things.
  21. </div>
  22. <![endif]-->
  23. <nav class="sidebar">
  24. <div class="sidebar-menu">&#9776;</div>
  25. <p class='location'>Struct FuturesUnordered</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.new">new</a><a href="#method.len">len</a><a href="#method.is_empty">is_empty</a><a href="#method.push">push</a><a href="#method.iter_mut">iter_mut</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Stream">Stream</a><a href="#impl-Debug">Debug</a><a href="#impl-Drop">Drop</a><a href="#impl-FromIterator%3CF%3E">FromIterator&lt;F&gt;</a></div></div><p class='location'><a href='../../index.html'>futures</a>::<wbr><a href='../index.html'>stream</a>::<wbr><a href='index.html'>futures_unordered</a></p><script>window.sidebarCurrent = {name: 'FuturesUnordered', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div>
  26. </nav>
  27. <div class="theme-picker">
  28. <button id="theme-picker" aria-label="Pick another theme!">
  29. <img src="../../../brush.svg" width="18" alt="Pick another theme!">
  30. </button>
  31. <div id="theme-choices"></div>
  32. </div>
  33. <script src="../../../theme.js"></script>
  34. <nav class="sub">
  35. <form class="search-form js-only">
  36. <div class="search-container">
  37. <input class="search-input" name="search"
  38. autocomplete="off"
  39. placeholder="Click or press ‘S’ to search, ‘?’ for more options…"
  40. type="search">
  41. </div>
  42. </form>
  43. </nav>
  44. <section id='main' class="content">
  45. <h1 class='fqn'><span class='in-band'>Struct <a href='../../index.html'>futures</a>::<wbr><a href='../index.html'>stream</a>::<wbr><a href='index.html'>futures_unordered</a>::<wbr><a class="struct" href=''>FuturesUnordered</a></span><span class='out-of-band'><span id='render-detail'>
  46. <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
  47. [<span class='inner'>&#x2212;</span>]
  48. </a>
  49. </span><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#47-51' title='goto source code'>[src]</a></span></h1>
  50. <pre class='rust struct'><div class="docblock attributes">#[must_use = "streams do nothing unless polled"]
  51. </div>pub struct FuturesUnordered&lt;F&gt; { /* fields omitted */ }</pre><div class='docblock'><p>An unbounded set of futures.</p>
  52. <p>This &quot;combinator&quot; also serves a special function in this library, providing
  53. the ability to maintain a set of futures that and manage driving them all
  54. to completion.</p>
  55. <p>Futures are pushed into this set and their realized values are yielded as
  56. they are ready. This structure is optimized to manage a large number of
  57. futures. Futures managed by <code>FuturesUnordered</code> will only be polled when they
  58. generate notifications. This reduces the required amount of work needed to
  59. coordinate large numbers of futures.</p>
  60. <p>When a <code>FuturesUnordered</code> is first created, it does not contain any futures.
  61. Calling <code>poll</code> in this state will result in <code>Ok(Async::Ready(None))</code> to be
  62. returned. Futures are submitted to the set using <code>push</code>; however, the
  63. future will <strong>not</strong> be polled at this point. <code>FuturesUnordered</code> will only
  64. poll managed futures when <code>FuturesUnordered::poll</code> is called. As such, it
  65. is important to call <code>poll</code> after pushing new futures.</p>
  66. <p>If <code>FuturesUnordered::poll</code> returns <code>Ok(Async::Ready(None))</code> this means that
  67. the set is currently not managing any futures. A future may be submitted
  68. to the set at a later time. At that point, a call to
  69. <code>FuturesUnordered::poll</code> will either return the future's resolved value
  70. <strong>or</strong> <code>Ok(Async::NotReady)</code> if the future has not yet completed.</p>
  71. <p>Note that you can create a ready-made <code>FuturesUnordered</code> via the
  72. <code>futures_unordered</code> function in the <code>stream</code> module, or you can start with an
  73. empty set with the <code>FuturesUnordered::new</code> constructor.</p>
  74. </div>
  75. <h2 id='methods' class='small-section-header'>
  76. Methods<a href='#methods' class='anchor'></a>
  77. </h2>
  78. <h3 id='impl' class='impl'><span class='in-band'><code>impl&lt;T&gt; <a class="struct" href="../../../futures/stream/futures_unordered/struct.FuturesUnordered.html" title="struct futures::stream::futures_unordered::FuturesUnordered">FuturesUnordered</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a>,&nbsp;</span></code><a href='#impl' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#116-146' title='goto source code'>[src]</a></span></h3>
  79. <div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><code>pub fn <a href='#method.new' class='fnname'>new</a>() -&gt; <a class="struct" href="../../../futures/stream/futures_unordered/struct.FuturesUnordered.html" title="struct futures::stream::futures_unordered::FuturesUnordered">FuturesUnordered</a>&lt;T&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#123-145' title='goto source code'>[src]</a></span></h4>
  80. <div class='docblock'><p>Constructs a new, empty <code>FuturesUnordered</code></p>
  81. <p>The returned <code>FuturesUnordered</code> does not contain any futures and, in this
  82. state, <code>FuturesUnordered::poll</code> will return <code>Ok(Async::Ready(None))</code>.</p>
  83. </div></div><h3 id='impl-1' class='impl'><span class='in-band'><code>impl&lt;T&gt; <a class="struct" href="../../../futures/stream/futures_unordered/struct.FuturesUnordered.html" title="struct futures::stream::futures_unordered::FuturesUnordered">FuturesUnordered</a>&lt;T&gt;</code><a href='#impl-1' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#148-262' title='goto source code'>[src]</a></span></h3>
  84. <div class='impl-items'><h4 id='method.len' class="method"><span id='len.v' class='invisible'><code>pub fn <a href='#method.len' class='fnname'>len</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#152-154' title='goto source code'>[src]</a></span></h4>
  85. <div class='docblock'><p>Returns the number of futures contained in the set.</p>
  86. <p>This represents the total number of in-flight futures.</p>
  87. </div><h4 id='method.is_empty' class="method"><span id='is_empty.v' class='invisible'><code>pub fn <a href='#method.is_empty' class='fnname'>is_empty</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#157-159' title='goto source code'>[src]</a></span></h4>
  88. <div class='docblock'><p>Returns <code>true</code> if the set contains no futures</p>
  89. </div><h4 id='method.push' class="method"><span id='push.v' class='invisible'><code>pub fn <a href='#method.push' class='fnname'>push</a>(&amp;mut self, future: T)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#167-187' title='goto source code'>[src]</a></span></h4>
  90. <div class='docblock'><p>Push a future into the set.</p>
  91. <p>This function submits the given future to the set for managing. This
  92. function will not call <code>poll</code> on the submitted future. The caller must
  93. ensure that <code>FuturesUnordered::poll</code> is called in order to receive task
  94. notifications.</p>
  95. </div><h4 id='method.iter_mut' class="method"><div class="important-traits"><div class='tooltip'>ⓘ<span class='tooltiptext'>Important traits for <a class="struct" href="../../../futures/stream/futures_unordered/struct.IterMut.html" title="struct futures::stream::futures_unordered::IterMut">IterMut</a>&lt;'a, F&gt;</span></div><div class="content hidden"><h3 class="important">Important traits for <a class="struct" href="../../../futures/stream/futures_unordered/struct.IterMut.html" title="struct futures::stream::futures_unordered::IterMut">IterMut</a>&lt;'a, F&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;'a, F&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for <a class="struct" href="../../../futures/stream/futures_unordered/struct.IterMut.html" title="struct futures::stream::futures_unordered::IterMut">IterMut</a>&lt;'a, F&gt;</span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>F;</span></code></div></div><span id='iter_mut.v' class='invisible'><code>pub fn <a href='#method.iter_mut' class='fnname'>iter_mut</a>(&amp;mut self) -&gt; <a class="struct" href="../../../futures/stream/futures_unordered/struct.IterMut.html" title="struct futures::stream::futures_unordered::IterMut">IterMut</a>&lt;T&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#190-196' title='goto source code'>[src]</a></span></h4>
  96. <div class='docblock'><p>Returns an iterator that allows modifying each future in the set.</p>
  97. </div></div>
  98. <h2 id='implementations' class='small-section-header'>
  99. Trait Implementations<a href='#implementations' class='anchor'></a>
  100. </h2>
  101. <h3 id='impl-Send' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../../futures/stream/futures_unordered/struct.FuturesUnordered.html" title="struct futures::stream::futures_unordered::FuturesUnordered">FuturesUnordered</a>&lt;T&gt;</code><a href='#impl-Send' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#53' title='goto source code'>[src]</a></span></h3>
  102. <div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../../futures/stream/futures_unordered/struct.FuturesUnordered.html" title="struct futures::stream::futures_unordered::FuturesUnordered">FuturesUnordered</a>&lt;T&gt;</code><a href='#impl-Sync' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#54' title='goto source code'>[src]</a></span></h3>
  103. <div class='impl-items'></div><h3 id='impl-Stream' class='impl'><span class='in-band'><code>impl&lt;T&gt; <a class="trait" href="../../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a> for <a class="struct" href="../../../futures/stream/futures_unordered/struct.FuturesUnordered.html" title="struct futures::stream::futures_unordered::FuturesUnordered">FuturesUnordered</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a>,&nbsp;</span></code><a href='#impl-Stream' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#264-381' title='goto source code'>[src]</a></span></h3>
  104. <div class='impl-items'><h4 id='associatedtype.Item' class="type"><span id='Item.t' class='invisible'><code>type <a href='../../../futures/stream/trait.Stream.html#associatedtype.Item' class="type">Item</a> = T::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a></code></span></h4>
  105. <div class='docblock'><p>The type of item this stream will yield on success.</p>
  106. </div><h4 id='associatedtype.Error' class="type"><span id='Error.t' class='invisible'><code>type <a href='../../../futures/stream/trait.Stream.html#associatedtype.Error' class="type">Error</a> = T::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a></code></span></h4>
  107. <div class='docblock'><p>The type of error this stream may generate.</p>
  108. </div><h4 id='method.poll' class="method"><span id='poll.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#tymethod.poll' class='fnname'>poll</a>(&amp;mut self) -&gt; <a class="type" href="../../../futures/type.Poll.html" title="type futures::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>&gt;, T::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#270-380' title='goto source code'>[src]</a></span></h4>
  109. <div class='docblock'><p>Attempt to pull out the next value of this stream, returning <code>None</code> if the stream is finished. <a href="../../../futures/stream/trait.Stream.html#tymethod.poll">Read more</a></p>
  110. </div><h4 id='method.wait' class="method"><div class="important-traits"><div class='tooltip'>ⓘ<span class='tooltiptext'>Important traits for <a class="struct" href="../../../futures/stream/struct.Wait.html" title="struct futures::stream::Wait">Wait</a>&lt;S&gt;</span></div><div class="content hidden"><h3 class="important">Important traits for <a class="struct" href="../../../futures/stream/struct.Wait.html" title="struct futures::stream::Wait">Wait</a>&lt;S&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;S:&nbsp;<a class="trait" href="../../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for <a class="struct" href="../../../futures/stream/struct.Wait.html" title="struct futures::stream::Wait">Wait</a>&lt;S&gt;</span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;S::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>, S::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;;</span></code></div></div><span id='wait.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../../futures/stream/struct.Wait.html" title="struct futures::stream::Wait">Wait</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#244-248' title='goto source code'>[src]</a></span></h4>
  111. <div class='docblock'><p>Creates an iterator which blocks the current thread until each item of this stream is resolved. <a href="../../../futures/stream/trait.Stream.html#method.wait">Read more</a></p>
  112. </div><h4 id='method.into_future' class="method"><span id='into_future.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.into_future' class='fnname'>into_future</a>(self) -&gt; <a class="struct" href="../../../futures/stream/struct.StreamFuture.html" title="struct futures::stream::StreamFuture">StreamFuture</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#291-295' title='goto source code'>[src]</a></span></h4>
  113. <div class='docblock'><p>Converts this stream into a <code>Future</code>. <a href="../../../futures/stream/trait.Stream.html#method.into_future">Read more</a></p>
  114. </div><h4 id='method.map' class="method"><span id='map.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.map' class='fnname'>map</a>&lt;U, F&gt;(self, f: F) -&gt; <a class="struct" href="../../../futures/stream/struct.Map.html" title="struct futures::stream::Map">Map</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>) -&gt; U,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#316-321' title='goto source code'>[src]</a></span></h4>
  115. <div class='docblock'><p>Converts a stream of type <code>T</code> to a stream of type <code>U</code>. <a href="../../../futures/stream/trait.Stream.html#method.map">Read more</a></p>
  116. </div><h4 id='method.map_err' class="method"><span id='map_err.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.map_err' class='fnname'>map_err</a>&lt;U, F&gt;(self, f: F) -&gt; <a class="struct" href="../../../futures/stream/struct.MapErr.html" title="struct futures::stream::MapErr">MapErr</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>) -&gt; U,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#342-347' title='goto source code'>[src]</a></span></h4>
  117. <div class='docblock'><p>Converts a stream of error type <code>T</code> to a stream of error type <code>U</code>. <a href="../../../futures/stream/trait.Stream.html#method.map_err">Read more</a></p>
  118. </div><h4 id='method.filter' class="method"><span id='filter.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.filter' class='fnname'>filter</a>&lt;F&gt;(self, f: F) -&gt; <a class="struct" href="../../../futures/stream/struct.Filter.html" title="struct futures::stream::Filter">Filter</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#372-377' title='goto source code'>[src]</a></span></h4>
  119. <div class='docblock'><p>Filters the values produced by this stream according to the provided predicate. <a href="../../../futures/stream/trait.Stream.html#method.filter">Read more</a></p>
  120. </div><h4 id='method.filter_map' class="method"><span id='filter_map.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.filter_map' class='fnname'>filter_map</a>&lt;F, B&gt;(self, f: F) -&gt; <a class="struct" href="../../../futures/stream/struct.FilterMap.html" title="struct futures::stream::FilterMap">FilterMap</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;B&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#408-413' title='goto source code'>[src]</a></span></h4>
  121. <div class='docblock'><p>Filters the values produced by this stream while simultaneously mapping them to a different type. <a href="../../../futures/stream/trait.Stream.html#method.filter_map">Read more</a></p>
  122. </div><h4 id='method.then' class="method"><span id='then.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.then' class='fnname'>then</a>&lt;F, U&gt;(self, f: F) -&gt; <a class="struct" href="../../../futures/stream/struct.Then.html" title="struct futures::stream::Then">Then</a>&lt;Self, F, U&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>, Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;) -&gt; U,<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#447-453' title='goto source code'>[src]</a></span></h4>
  123. <div class='docblock'><p>Chain on a computation for when a value is ready, passing the resulting item to the provided closure <code>f</code>. <a href="../../../futures/stream/trait.Stream.html#method.then">Read more</a></p>
  124. </div><h4 id='method.and_then' class="method"><span id='and_then.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.and_then' class='fnname'>and_then</a>&lt;F, U&gt;(self, f: F) -&gt; <a class="struct" href="../../../futures/stream/struct.AndThen.html" title="struct futures::stream::AndThen">AndThen</a>&lt;Self, F, U&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>) -&gt; U,<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#494-500' title='goto source code'>[src]</a></span></h4>
  125. <div class='docblock'><p>Chain on a computation for when a value is ready, passing the successful results to the provided closure <code>f</code>. <a href="../../../futures/stream/trait.Stream.html#method.and_then">Read more</a></p>
  126. </div><h4 id='method.or_else' class="method"><span id='or_else.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.or_else' class='fnname'>or_else</a>&lt;F, U&gt;(self, f: F) -&gt; <a class="struct" href="../../../futures/stream/struct.OrElse.html" title="struct futures::stream::OrElse">OrElse</a>&lt;Self, F, U&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>) -&gt; U,<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#521-527' title='goto source code'>[src]</a></span></h4>
  127. <div class='docblock'><p>Chain on a computation for when an error happens, passing the erroneous result to the provided closure <code>f</code>. <a href="../../../futures/stream/trait.Stream.html#method.or_else">Read more</a></p>
  128. </div><h4 id='method.collect' class="method"><span id='collect.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.collect' class='fnname'>collect</a>(self) -&gt; <a class="struct" href="../../../futures/stream/struct.Collect.html" title="struct futures::stream::Collect">Collect</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#562-566' title='goto source code'>[src]</a></span></h4>
  129. <div class='docblock'><p>Collect all of the values of this stream into a vector, returning a future representing the result of that computation. <a href="../../../futures/stream/trait.Stream.html#method.collect">Read more</a></p>
  130. </div><h4 id='method.concat2' class="method"><span id='concat2.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.concat2' class='fnname'>concat2</a>(self) -&gt; <a class="struct" href="../../../futures/stream/struct.Concat2.html" title="struct futures::stream::Concat2">Concat2</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.Extend.html" title="trait core::iter::traits::Extend">Extend</a>&lt;&lt;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.IntoIterator.html" title="trait core::iter::traits::IntoIterator">IntoIterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::IntoIterator::Item">Item</a>&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.IntoIterator.html" title="trait core::iter::traits::IntoIterator">IntoIterator</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#598-603' title='goto source code'>[src]</a></span></h4>
  131. <div class='docblock'><p>Concatenate all results of a stream into a single extendable destination, returning a future representing the end result. <a href="../../../futures/stream/trait.Stream.html#method.concat2">Read more</a></p>
  132. </div><h4 id='method.concat' class="method"><span id='concat.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.concat' class='fnname'>concat</a>(self) -&gt; <a class="struct" href="../../../futures/stream/struct.Concat.html" title="struct futures::stream::Concat">Concat</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.Extend.html" title="trait core::iter::traits::Extend">Extend</a>&lt;&lt;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.IntoIterator.html" title="trait core::iter::traits::IntoIterator">IntoIterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::IntoIterator::Item">Item</a>&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.IntoIterator.html" title="trait core::iter::traits::IntoIterator">IntoIterator</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#638-643' title='goto source code'>[src]</a></span></h4>
  133. <div class='stability'><div class='stab deprecated'>Deprecated since 0.1.14<p>: please use <code>Stream::concat2</code> instead</p>
  134. </div></div><div class='docblock'><p>Concatenate all results of a stream into a single extendable destination, returning a future representing the end result. <a href="../../../futures/stream/trait.Stream.html#method.concat">Read more</a></p>
  135. </div><h4 id='method.fold' class="method"><span id='fold.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.fold' class='fnname'>fold</a>&lt;F, T, Fut&gt;(self, init: T, f: F) -&gt; <a class="struct" href="../../../futures/stream/struct.Fold.html" title="struct futures::stream::Fold">Fold</a>&lt;Self, F, Fut, T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(T, Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Item = T&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Fut::<a class="type" href="../../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#668-675' title='goto source code'>[src]</a></span></h4>
  136. <div class='docblock'><p>Execute an accumulating computation over a stream, collecting all the values into one final result. <a href="../../../futures/stream/trait.Stream.html#method.fold">Read more</a></p>
  137. </div><h4 id='method.flatten' class="method"><span id='flatten.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.flatten' class='fnname'>flatten</a>(self) -&gt; <a class="struct" href="../../../futures/stream/struct.Flatten.html" title="struct futures::stream::Flatten">Flatten</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>: <a class="trait" href="../../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a> as <a class="trait" href="../../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&gt;::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#710-716' title='goto source code'>[src]</a></span></h4>
  138. <div class='docblock'><p>Flattens a stream of streams into just one continuous stream. <a href="../../../futures/stream/trait.Stream.html#method.flatten">Read more</a></p>
  139. </div><h4 id='method.skip_while' class="method"><span id='skip_while.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.skip_while' class='fnname'>skip_while</a>&lt;P, R&gt;(self, pred: P) -&gt; <a class="struct" href="../../../futures/stream/struct.SkipWhile.html" title="struct futures::stream::SkipWhile">SkipWhile</a>&lt;Self, P, R&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>) -&gt; R,<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, Error = Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#725-731' title='goto source code'>[src]</a></span></h4>
  140. <div class='docblock'><p>Skip elements on this stream while the predicate provided resolves to <code>true</code>. <a href="../../../futures/stream/trait.Stream.html#method.skip_while">Read more</a></p>
  141. </div><h4 id='method.take_while' class="method"><span id='take_while.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.take_while' class='fnname'>take_while</a>&lt;P, R&gt;(self, pred: P) -&gt; <a class="struct" href="../../../futures/stream/struct.TakeWhile.html" title="struct futures::stream::TakeWhile">TakeWhile</a>&lt;Self, P, R&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>) -&gt; R,<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, Error = Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#739-745' title='goto source code'>[src]</a></span></h4>
  142. <div class='docblock'><p>Take elements from this stream while the predicate provided resolves to <code>true</code>. <a href="../../../futures/stream/trait.Stream.html#method.take_while">Read more</a></p>
  143. </div><h4 id='method.for_each' class="method"><span id='for_each.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.for_each' class='fnname'>for_each</a>&lt;F, U&gt;(self, f: F) -&gt; <a class="struct" href="../../../futures/stream/struct.ForEach.html" title="struct futures::stream::ForEach">ForEach</a>&lt;Self, F, U&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>) -&gt; U,<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Error = Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#761-767' title='goto source code'>[src]</a></span></h4>
  144. <div class='docblock'><p>Runs this stream to completion, executing the provided closure for each element on the stream. <a href="../../../futures/stream/trait.Stream.html#method.for_each">Read more</a></p>
  145. </div><h4 id='method.from_err' class="method"><span id='from_err.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.from_err' class='fnname'>from_err</a>&lt;E:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;&gt;(self) -&gt; <a class="struct" href="../../../futures/stream/struct.FromErr.html" title="struct futures::stream::FromErr">FromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#780-784' title='goto source code'>[src]</a></span></h4>
  146. <div class='docblock'><p>Map this stream's error to any error implementing <code>From</code> for this stream's <code>Error</code>, returning a new stream. <a href="../../../futures/stream/trait.Stream.html#method.from_err">Read more</a></p>
  147. </div><h4 id='method.take' class="method"><span id='take.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.take' class='fnname'>take</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -&gt; <a class="struct" href="../../../futures/stream/struct.Take.html" title="struct futures::stream::Take">Take</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#796-800' title='goto source code'>[src]</a></span></h4>
  148. <div class='docblock'><p>Creates a new stream of at most <code>amt</code> items of the underlying stream. <a href="../../../futures/stream/trait.Stream.html#method.take">Read more</a></p>
  149. </div><h4 id='method.skip' class="method"><span id='skip.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.skip' class='fnname'>skip</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -&gt; <a class="struct" href="../../../futures/stream/struct.Skip.html" title="struct futures::stream::Skip">Skip</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#811-815' title='goto source code'>[src]</a></span></h4>
  150. <div class='docblock'><p>Creates a new stream which skips <code>amt</code> items of the underlying stream. <a href="../../../futures/stream/trait.Stream.html#method.skip">Read more</a></p>
  151. </div><h4 id='method.fuse' class="method"><span id='fuse.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.fuse' class='fnname'>fuse</a>(self) -&gt; <a class="struct" href="../../../futures/stream/struct.Fuse.html" title="struct futures::stream::Fuse">Fuse</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#832-836' title='goto source code'>[src]</a></span></h4>
  152. <div class='docblock'><p>Fuse a stream such that <code>poll</code> will never again be called once it has finished. <a href="../../../futures/stream/trait.Stream.html#method.fuse">Read more</a></p>
  153. </div><h4 id='method.by_ref' class="method"><span id='by_ref.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.by_ref' class='fnname'>by_ref</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#857-861' title='goto source code'>[src]</a></span></h4>
  154. <div class='docblock'><p>Borrows a stream, rather than consuming it. <a href="../../../futures/stream/trait.Stream.html#method.by_ref">Read more</a></p>
  155. </div><h4 id='method.catch_unwind' class="method"><span id='catch_unwind.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.catch_unwind' class='fnname'>catch_unwind</a>(self) -&gt; <a class="struct" href="../../../futures/stream/struct.CatchUnwind.html" title="struct futures::stream::CatchUnwind">CatchUnwind</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#897-901' title='goto source code'>[src]</a></span></h4>
  156. <div class='docblock'><p>Catches unwinding panics while polling the stream. <a href="../../../futures/stream/trait.Stream.html#method.catch_unwind">Read more</a></p>
  157. </div><h4 id='method.buffered' class="method"><span id='buffered.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.buffered' class='fnname'>buffered</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../../futures/stream/struct.Buffered.html" title="struct futures::stream::Buffered">Buffered</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#917-922' title='goto source code'>[src]</a></span></h4>
  158. <div class='docblock'><p>An adaptor for creating a buffered list of pending futures. <a href="../../../futures/stream/trait.Stream.html#method.buffered">Read more</a></p>
  159. </div><h4 id='method.buffer_unordered' class="method"><span id='buffer_unordered.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.buffer_unordered' class='fnname'>buffer_unordered</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../../futures/stream/struct.BufferUnordered.html" title="struct futures::stream::BufferUnordered">BufferUnordered</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#938-943' title='goto source code'>[src]</a></span></h4>
  160. <div class='docblock'><p>An adaptor for creating a buffered list of pending futures (unordered). <a href="../../../futures/stream/trait.Stream.html#method.buffer_unordered">Read more</a></p>
  161. </div><h4 id='method.merge' class="method"><span id='merge.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.merge' class='fnname'>merge</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../../futures/stream/struct.Merge.html" title="struct futures::stream::Merge">Merge</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Error = Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#952-957' title='goto source code'>[src]</a></span></h4>
  162. <div class='stability'><div class='stab deprecated'>Deprecated<p>: functionality provided by <code>select</code> now</p>
  163. </div></div><div class='docblock'><p>An adapter for merging the output of two streams. <a href="../../../futures/stream/trait.Stream.html#method.merge">Read more</a></p>
  164. </div><h4 id='method.zip' class="method"><span id='zip.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.zip' class='fnname'>zip</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../../futures/stream/struct.Zip.html" title="struct futures::stream::Zip">Zip</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Error = Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#964-969' title='goto source code'>[src]</a></span></h4>
  165. <div class='docblock'><p>An adapter for zipping two streams together. <a href="../../../futures/stream/trait.Stream.html#method.zip">Read more</a></p>
  166. </div><h4 id='method.chain' class="method"><span id='chain.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.chain' class='fnname'>chain</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../../futures/stream/struct.Chain.html" title="struct futures::stream::Chain">Chain</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>, Error = Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#990-995' title='goto source code'>[src]</a></span></h4>
  167. <div class='docblock'><p>Adapter for chaining two stream. <a href="../../../futures/stream/trait.Stream.html#method.chain">Read more</a></p>
  168. </div><h4 id='method.peekable' class="method"><span id='peekable.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.peekable' class='fnname'>peekable</a>(self) -&gt; <a class="struct" href="../../../futures/stream/struct.Peekable.html" title="struct futures::stream::Peekable">Peekable</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#1000-1004' title='goto source code'>[src]</a></span></h4>
  169. <div class='docblock'><p>Creates a new stream which exposes a <code>peek</code> method. <a href="../../../futures/stream/trait.Stream.html#method.peekable">Read more</a></p>
  170. </div><h4 id='method.chunks' class="method"><span id='chunks.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.chunks' class='fnname'>chunks</a>(self, capacity: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../../futures/stream/struct.Chunks.html" title="struct futures::stream::Chunks">Chunks</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#1027-1031' title='goto source code'>[src]</a></span></h4>
  171. <div class='docblock'><p>An adaptor for chunking up items of the stream inside a vector. <a href="../../../futures/stream/trait.Stream.html#method.chunks">Read more</a></p>
  172. </div><h4 id='method.select' class="method"><span id='select.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.select' class='fnname'>select</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../../futures/stream/struct.Select.html" title="struct futures::stream::Select">Select</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>, Error = Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#1044-1049' title='goto source code'>[src]</a></span></h4>
  173. <div class='docblock'><p>Creates a stream that selects the next element from either this stream or the provided one, whichever is ready first. <a href="../../../futures/stream/trait.Stream.html#method.select">Read more</a></p>
  174. </div><h4 id='method.forward' class="method"><span id='forward.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.forward' class='fnname'>forward</a>&lt;S&gt;(self, sink: S) -&gt; <a class="struct" href="../../../futures/stream/struct.Forward.html" title="struct futures::stream::Forward">Forward</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;S::<a class="type" href="../../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#1065-1071' title='goto source code'>[src]</a></span></h4>
  175. <div class='docblock'><p>A future that completes after the given stream has been fully processed into the sink, including flushing. <a href="../../../futures/stream/trait.Stream.html#method.forward">Read more</a></p>
  176. </div><h4 id='method.split' class="method"><span id='split.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.split' class='fnname'>split</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="struct" href="../../../futures/stream/struct.SplitSink.html" title="struct futures::stream::SplitSink">SplitSink</a>&lt;Self&gt;, <a class="struct" href="../../../futures/stream/struct.SplitStream.html" title="struct futures::stream::SplitStream">SplitStream</a>&lt;Self&gt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="../../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#1083-1087' title='goto source code'>[src]</a></span></h4>
  177. <div class='docblock'><p>Splits this <code>Stream + Sink</code> object into separate <code>Stream</code> and <code>Sink</code> objects. <a href="../../../futures/stream/trait.Stream.html#method.split">Read more</a></p>
  178. </div><h4 id='method.inspect' class="method"><span id='inspect.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.inspect' class='fnname'>inspect</a>&lt;F&gt;(self, f: F) -&gt; <a class="struct" href="../../../futures/stream/struct.Inspect.html" title="struct futures::stream::Inspect">Inspect</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>),<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#1094-1099' title='goto source code'>[src]</a></span></h4>
  179. <div class='docblock'><p>Do something with each item of this stream, afterwards passing it on. <a href="../../../futures/stream/trait.Stream.html#method.inspect">Read more</a></p>
  180. </div><h4 id='method.inspect_err' class="method"><span id='inspect_err.v' class='invisible'><code>fn <a href='../../../futures/stream/trait.Stream.html#method.inspect_err' class='fnname'>inspect_err</a>&lt;F&gt;(self, f: F) -&gt; <a class="struct" href="../../../futures/stream/struct.InspectErr.html" title="struct futures::stream::InspectErr">InspectErr</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="../../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>),<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/mod.rs.html#1106-1111' title='goto source code'>[src]</a></span></h4>
  181. <div class='docblock'><p>Do something with the error of this stream, afterwards passing it on. <a href="../../../futures/stream/trait.Stream.html#method.inspect_err">Read more</a></p>
  182. </div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../futures/stream/futures_unordered/struct.FuturesUnordered.html" title="struct futures::stream::futures_unordered::FuturesUnordered">FuturesUnordered</a>&lt;T&gt;</code><a href='#impl-Debug' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#383-387' title='goto source code'>[src]</a></span></h3>
  183. <div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, fmt: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#384-386' title='goto source code'>[src]</a></span></h4>
  184. <div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
  185. </div></div><h3 id='impl-Drop' class='impl'><span class='in-band'><code>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html" title="trait core::ops::drop::Drop">Drop</a> for <a class="struct" href="../../../futures/stream/futures_unordered/struct.FuturesUnordered.html" title="struct futures::stream::futures_unordered::FuturesUnordered">FuturesUnordered</a>&lt;T&gt;</code><a href='#impl-Drop' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#389-417' title='goto source code'>[src]</a></span></h3>
  186. <div class='impl-items'><h4 id='method.drop' class="method"><span id='drop.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html#tymethod.drop' class='fnname'>drop</a>(&amp;mut self)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#390-416' title='goto source code'>[src]</a></span></h4>
  187. <div class='docblock'><p>Executes the destructor for this type. <a href="https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html#tymethod.drop">Read more</a></p>
  188. </div></div><h3 id='impl-FromIterator%3CF%3E' class='impl'><span class='in-band'><code>impl&lt;F:&nbsp;<a class="trait" href="../../../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.FromIterator.html" title="trait core::iter::traits::FromIterator">FromIterator</a>&lt;F&gt; for <a class="struct" href="../../../futures/stream/futures_unordered/struct.FuturesUnordered.html" title="struct futures::stream::futures_unordered::FuturesUnordered">FuturesUnordered</a>&lt;F&gt;</code><a href='#impl-FromIterator%3CF%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#419-429' title='goto source code'>[src]</a></span></h3>
  189. <div class='impl-items'><h4 id='method.from_iter' class="method"><span id='from_iter.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/iter/traits/trait.FromIterator.html#tymethod.from_iter' class='fnname'>from_iter</a>&lt;T&gt;(iter: T) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.IntoIterator.html" title="trait core::iter::traits::IntoIterator">IntoIterator</a>&lt;Item = F&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/stream/futures_unordered.rs.html#420-428' title='goto source code'>[src]</a></span></h4>
  190. <div class='docblock'><p>Creates a value from an iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/trait.FromIterator.html#tymethod.from_iter">Read more</a></p>
  191. </div></div></section>
  192. <section id='search' class="content hidden"></section>
  193. <section class="footer"></section>
  194. <aside id="help" class="hidden">
  195. <div>
  196. <h1 class="hidden">Help</h1>
  197. <div class="shortcuts">
  198. <h2>Keyboard Shortcuts</h2>
  199. <dl>
  200. <dt><kbd>?</kbd></dt>
  201. <dd>Show this help dialog</dd>
  202. <dt><kbd>S</kbd></dt>
  203. <dd>Focus the search field</dd>
  204. <dt><kbd>↑</kbd></dt>
  205. <dd>Move up in search results</dd>
  206. <dt><kbd>↓</kbd></dt>
  207. <dd>Move down in search results</dd>
  208. <dt><kbd>↹</kbd></dt>
  209. <dd>Switch tab</dd>
  210. <dt><kbd>&#9166;</kbd></dt>
  211. <dd>Go to active search result</dd>
  212. <dt><kbd>+</kbd></dt>
  213. <dd>Expand all sections</dd>
  214. <dt><kbd>-</kbd></dt>
  215. <dd>Collapse all sections</dd>
  216. </dl>
  217. </div>
  218. <div class="infos">
  219. <h2>Search Tricks</h2>
  220. <p>
  221. Prefix searches with a type followed by a colon (e.g.
  222. <code>fn:</code>) to restrict the search to a given type.
  223. </p>
  224. <p>
  225. Accepted types are: <code>fn</code>, <code>mod</code>,
  226. <code>struct</code>, <code>enum</code>,
  227. <code>trait</code>, <code>type</code>, <code>macro</code>,
  228. and <code>const</code>.
  229. </p>
  230. <p>
  231. Search functions by type signature (e.g.
  232. <code>vec -> usize</code> or <code>* -> vec</code>)
  233. </p>
  234. </div>
  235. </div>
  236. </aside>
  237. <script>
  238. window.rootPath = "../../../";
  239. window.currentCrate = "futures";
  240. </script>
  241. <script src="../../../main.js"></script>
  242. <script defer src="../../../search-index.js"></script>
  243. </body>
  244. </html>