struct.Execute.html 39 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  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 `Execute` struct in crate `futures`.">
  8. <meta name="keywords" content="rust, rustlang, rust-lang, Execute">
  9. <title>futures::unsync::oneshot::Execute - 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 Execute</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Future">Future</a><a href="#impl-Debug">Debug</a></div></div><p class='location'><a href='../../index.html'>futures</a>::<wbr><a href='../index.html'>unsync</a>::<wbr><a href='index.html'>oneshot</a></p><script>window.sidebarCurrent = {name: 'Execute', 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'>unsync</a>::<wbr><a href='index.html'>oneshot</a>::<wbr><a class="struct" href=''>Execute</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/unsync/oneshot.rs.html#232-236' title='goto source code'>[src]</a></span></h1>
  50. <pre class='rust struct'>pub struct Execute&lt;F:&nbsp;<a class="trait" href="../../../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a>&gt; { /* fields omitted */ }</pre><div class='docblock'><p>Type of future which <code>Spawn</code> instances below must be able to spawn.</p>
  51. </div>
  52. <h2 id='implementations' class='small-section-header'>
  53. Trait Implementations<a href='#implementations' class='anchor'></a>
  54. </h2>
  55. <h3 id='impl-Future' 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="../../../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="struct" href="../../../futures/unsync/oneshot/struct.Execute.html" title="struct futures::unsync::oneshot::Execute">Execute</a>&lt;F&gt;</code><a href='#impl-Future' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/unsync/oneshot.rs.html#321-343' title='goto source code'>[src]</a></span></h3>
  56. <div class='impl-items'><h4 id='associatedtype.Item' class="type"><span id='Item.t' class='invisible'><code>type <a href='../../../futures/future/trait.Future.html#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
  57. <div class='docblock'><p>The type of value that this future will resolved with if it is successful. <a href="../../../futures/future/trait.Future.html#associatedtype.Item">Read more</a></p>
  58. </div><h4 id='associatedtype.Error' class="type"><span id='Error.t' class='invisible'><code>type <a href='../../../futures/future/trait.Future.html#associatedtype.Error' class="type">Error</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
  59. <div class='docblock'><p>The type of error that this future will resolve with if it fails in a normal fashion. <a href="../../../futures/future/trait.Future.html#associatedtype.Error">Read more</a></p>
  60. </div><h4 id='method.poll' class="method"><span id='poll.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../src/futures/unsync/oneshot.rs.html#325-342' title='goto source code'>[src]</a></span></h4>
  61. <div class='docblock'><p>Query this future to see if its value has become available, registering interest if it is not. <a href="../../../futures/future/trait.Future.html#tymethod.poll">Read more</a></p>
  62. </div><h4 id='method.wait' class="method"><span id='wait.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.wait' class='fnname'>wait</a>(self) -&gt; <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/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>, Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>&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/future/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
  63. <div class='docblock'><p>Block the current thread until this future is resolved. <a href="../../../futures/future/trait.Future.html#method.wait">Read more</a></p>
  64. </div><h4 id='method.map' class="method"><span id='map.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.map' class='fnname'>map</a>&lt;F, U&gt;(self, f: F) -&gt; <a class="struct" href="../../../futures/future/struct.Map.html" title="struct futures::future::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.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::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/future/mod.rs.html#370-375' title='goto source code'>[src]</a></span></h4>
  65. <div class='docblock'><p>Map this future's result to a different type, returning a new future of the resulting type. <a href="../../../futures/future/trait.Future.html#method.map">Read more</a></p>
  66. </div><h4 id='method.map_err' class="method"><span id='map_err.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.map_err' class='fnname'>map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../../futures/future/struct.MapErr.html" title="struct futures::future::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.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>) -&gt; E,<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/future/mod.rs.html#410-415' title='goto source code'>[src]</a></span></h4>
  67. <div class='docblock'><p>Map this future's error to a different error, returning a new future. <a href="../../../futures/future/trait.Future.html#method.map_err">Read more</a></p>
  68. </div><h4 id='method.from_err' class="method"><span id='from_err.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.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/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>&gt;&gt;(self) -&gt; <a class="struct" href="../../../futures/future/struct.FromErr.html" title="struct futures::future::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/future/mod.rs.html#440-444' title='goto source code'>[src]</a></span></h4>
  69. <div class='docblock'><p>Map this future's error to any error implementing <code>From</code> for this future's <code>Error</code>, returning a new future. <a href="../../../futures/future/trait.Future.html#method.from_err">Read more</a></p>
  70. </div><h4 id='method.then' class="method"><span id='then.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.then' class='fnname'>then</a>&lt;F, B&gt;(self, f: F) -&gt; <a class="struct" href="../../../futures/future/struct.Then.html" title="struct futures::future::Then">Then</a>&lt;Self, B, 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.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</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/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>, Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>&gt;) -&gt; B,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <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/future/mod.rs.html#484-490' title='goto source code'>[src]</a></span></h4>
  71. <div class='docblock'><p>Chain on a computation for when a future finished, passing the result of the future to the provided closure <code>f</code>. <a href="../../../futures/future/trait.Future.html#method.then">Read more</a></p>
  72. </div><h4 id='method.and_then' class="method"><span id='and_then.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.and_then' class='fnname'>and_then</a>&lt;F, B&gt;(self, f: F) -&gt; <a class="struct" href="../../../futures/future/struct.AndThen.html" title="struct futures::future::AndThen">AndThen</a>&lt;Self, B, 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.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>) -&gt; B,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::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/future/mod.rs.html#525-531' title='goto source code'>[src]</a></span></h4>
  73. <div class='docblock'><p>Execute another future after this one has resolved successfully. <a href="../../../futures/future/trait.Future.html#method.and_then">Read more</a></p>
  74. </div><h4 id='method.or_else' class="method"><span id='or_else.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.or_else' class='fnname'>or_else</a>&lt;F, B&gt;(self, f: F) -&gt; <a class="struct" href="../../../futures/future/struct.OrElse.html" title="struct futures::future::OrElse">OrElse</a>&lt;Self, B, 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.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>) -&gt; B,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::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/future/mod.rs.html#566-572' title='goto source code'>[src]</a></span></h4>
  75. <div class='docblock'><p>Execute another future if this one resolves with an error. <a href="../../../futures/future/trait.Future.html#method.or_else">Read more</a></p>
  76. </div><h4 id='method.select' class="method"><span id='select.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.select' class='fnname'>select</a>&lt;B&gt;(self, other: B) -&gt; <a class="struct" href="../../../futures/future/struct.Select.html" title="struct futures::future::Select">Select</a>&lt;Self, B::<a class="type" href="../../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>, Error = Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::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/future/mod.rs.html#624-631' title='goto source code'>[src]</a></span></h4>
  77. <div class='docblock'><p>Waits for either one of two futures to complete. <a href="../../../futures/future/trait.Future.html#method.select">Read more</a></p>
  78. </div><h4 id='method.select2' class="method"><span id='select2.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.select2' class='fnname'>select2</a>&lt;B&gt;(self, other: B) -&gt; <a class="struct" href="../../../futures/future/struct.Select2.html" title="struct futures::future::Select2">Select2</a>&lt;Self, B::<a class="type" href="../../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <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/future/mod.rs.html#670-674' title='goto source code'>[src]</a></span></h4>
  79. <div class='docblock'><p>Waits for either one of two differently-typed futures to complete. <a href="../../../futures/future/trait.Future.html#method.select2">Read more</a></p>
  80. </div><h4 id='method.join' class="method"><span id='join.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.join' class='fnname'>join</a>&lt;B&gt;(self, other: B) -&gt; <a class="struct" href="../../../futures/future/struct.Join.html" title="struct futures::future::Join">Join</a>&lt;Self, B::<a class="type" href="../../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::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/future/mod.rs.html#715-721' title='goto source code'>[src]</a></span></h4>
  81. <div class='docblock'><p>Joins the result of two futures, waiting for them both to complete. <a href="../../../futures/future/trait.Future.html#method.join">Read more</a></p>
  82. </div><h4 id='method.join3' class="method"><span id='join3.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.join3' class='fnname'>join3</a>&lt;B, C&gt;(self, b: B, c: C) -&gt; <a class="struct" href="../../../futures/future/struct.Join3.html" title="struct futures::future::Join3">Join3</a>&lt;Self, B::<a class="type" href="../../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>, C::<a class="type" href="../../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;C: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::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/future/mod.rs.html#724-730' title='goto source code'>[src]</a></span></h4>
  83. <div class='docblock'><p>Same as <code>join</code>, but with more futures.</p>
  84. </div><h4 id='method.join4' class="method"><span id='join4.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.join4' class='fnname'>join4</a>&lt;B, C, D&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;b: B, <br>&nbsp;&nbsp;&nbsp;&nbsp;c: C, <br>&nbsp;&nbsp;&nbsp;&nbsp;d: D<br>) -&gt; <a class="struct" href="../../../futures/future/struct.Join4.html" title="struct futures::future::Join4">Join4</a>&lt;Self, B::<a class="type" href="../../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>, C::<a class="type" href="../../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>, D::<a class="type" href="../../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;C: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;D: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::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/future/mod.rs.html#733-741' title='goto source code'>[src]</a></span></h4>
  85. <div class='docblock'><p>Same as <code>join</code>, but with more futures.</p>
  86. </div><h4 id='method.join5' class="method"><span id='join5.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.join5' class='fnname'>join5</a>&lt;B, C, D, E&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;b: B, <br>&nbsp;&nbsp;&nbsp;&nbsp;c: C, <br>&nbsp;&nbsp;&nbsp;&nbsp;d: D, <br>&nbsp;&nbsp;&nbsp;&nbsp;e: E<br>) -&gt; <a class="struct" href="../../../futures/future/struct.Join5.html" title="struct futures::future::Join5">Join5</a>&lt;Self, B::<a class="type" href="../../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>, C::<a class="type" href="../../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>, D::<a class="type" href="../../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>, E::<a class="type" href="../../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;C: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;D: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;E: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::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/future/mod.rs.html#744-754' title='goto source code'>[src]</a></span></h4>
  87. <div class='docblock'><p>Same as <code>join</code>, but with more futures.</p>
  88. </div><h4 id='method.into_stream' class="method"><span id='into_stream.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.into_stream' class='fnname'>into_stream</a>(self) -&gt; <a class="struct" href="../../../futures/future/struct.IntoStream.html" title="struct futures::future::IntoStream">IntoStream</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/future/mod.rs.html#777-781' title='goto source code'>[src]</a></span></h4>
  89. <div class='docblock'><p>Convert this future into a single element stream. <a href="../../../futures/future/trait.Future.html#method.into_stream">Read more</a></p>
  90. </div><h4 id='method.flatten' class="method"><span id='flatten.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.flatten' class='fnname'>flatten</a>(self) -&gt; <a class="struct" href="../../../futures/future/struct.Flatten.html" title="struct futures::future::Flatten">Flatten</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>: <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a> as <a class="trait" href="../../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::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/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::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/future/mod.rs.html#819-829' title='goto source code'>[src]</a></span></h4>
  91. <div class='docblock'><p>Flatten the execution of this future when the successful result of this future is itself another future. <a href="../../../futures/future/trait.Future.html#method.flatten">Read more</a></p>
  92. </div><h4 id='method.flatten_stream' class="method"><span id='flatten_stream.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.flatten_stream' class='fnname'>flatten_stream</a>(self) -&gt; <a class="struct" href="../../../futures/future/struct.FlattenStream.html" title="struct futures::future::FlattenStream">FlattenStream</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>: <a class="trait" href="../../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Error = Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::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/future/mod.rs.html#859-864' title='goto source code'>[src]</a></span></h4>
  93. <div class='docblock'><p>Flatten the execution of this future when the successful result of this future is a stream. <a href="../../../futures/future/trait.Future.html#method.flatten_stream">Read more</a></p>
  94. </div><h4 id='method.fuse' class="method"><span id='fuse.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.fuse' class='fnname'>fuse</a>(self) -&gt; <a class="struct" href="../../../futures/future/struct.Fuse.html" title="struct futures::future::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/future/mod.rs.html#899-904' title='goto source code'>[src]</a></span></h4>
  95. <div class='docblock'><p>Fuse a future such that <code>poll</code> will never again be called once it has completed. <a href="../../../futures/future/trait.Future.html#method.fuse">Read more</a></p>
  96. </div><h4 id='method.inspect' class="method"><span id='inspect.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.inspect' class='fnname'>inspect</a>&lt;F&gt;(self, f: F) -&gt; <a class="struct" href="../../../futures/future/struct.Inspect.html" title="struct futures::future::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.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;Self::<a class="type" href="../../../futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::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/future/mod.rs.html#922-927' title='goto source code'>[src]</a></span></h4>
  97. <div class='docblock'><p>Do something with the item of a future, passing it on. <a href="../../../futures/future/trait.Future.html#method.inspect">Read more</a></p>
  98. </div><h4 id='method.catch_unwind' class="method"><span id='catch_unwind.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.catch_unwind' class='fnname'>catch_unwind</a>(self) -&gt; <a class="struct" href="../../../futures/future/struct.CatchUnwind.html" title="struct futures::future::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/future/mod.rs.html#961-965' title='goto source code'>[src]</a></span></h4>
  99. <div class='docblock'><p>Catches unwinding panics while polling the future. <a href="../../../futures/future/trait.Future.html#method.catch_unwind">Read more</a></p>
  100. </div><h4 id='method.shared' class="method"><span id='shared.v' class='invisible'><code>fn <a href='../../../futures/future/trait.Future.html#method.shared' class='fnname'>shared</a>(self) -&gt; <a class="struct" href="../../../futures/future/struct.Shared.html" title="struct futures::future::Shared">Shared</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/future/mod.rs.html#1010-1014' title='goto source code'>[src]</a></span></h4>
  101. <div class='docblock'><p>Create a cloneable handle to this future where all handles will resolve to the same result. <a href="../../../futures/future/trait.Future.html#method.shared">Read more</a></p>
  102. </div></div><h3 id='impl-Debug' 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> + <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/unsync/oneshot/struct.Execute.html" title="struct futures::unsync::oneshot::Execute">Execute</a>&lt;F&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/unsync/oneshot.rs.html#345-351' title='goto source code'>[src]</a></span></h3>
  103. <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, f: &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/unsync/oneshot.rs.html#346-350' title='goto source code'>[src]</a></span></h4>
  104. <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>
  105. </div></div></section>
  106. <section id='search' class="content hidden"></section>
  107. <section class="footer"></section>
  108. <aside id="help" class="hidden">
  109. <div>
  110. <h1 class="hidden">Help</h1>
  111. <div class="shortcuts">
  112. <h2>Keyboard Shortcuts</h2>
  113. <dl>
  114. <dt><kbd>?</kbd></dt>
  115. <dd>Show this help dialog</dd>
  116. <dt><kbd>S</kbd></dt>
  117. <dd>Focus the search field</dd>
  118. <dt><kbd>↑</kbd></dt>
  119. <dd>Move up in search results</dd>
  120. <dt><kbd>↓</kbd></dt>
  121. <dd>Move down in search results</dd>
  122. <dt><kbd>↹</kbd></dt>
  123. <dd>Switch tab</dd>
  124. <dt><kbd>&#9166;</kbd></dt>
  125. <dd>Go to active search result</dd>
  126. <dt><kbd>+</kbd></dt>
  127. <dd>Expand all sections</dd>
  128. <dt><kbd>-</kbd></dt>
  129. <dd>Collapse all sections</dd>
  130. </dl>
  131. </div>
  132. <div class="infos">
  133. <h2>Search Tricks</h2>
  134. <p>
  135. Prefix searches with a type followed by a colon (e.g.
  136. <code>fn:</code>) to restrict the search to a given type.
  137. </p>
  138. <p>
  139. Accepted types are: <code>fn</code>, <code>mod</code>,
  140. <code>struct</code>, <code>enum</code>,
  141. <code>trait</code>, <code>type</code>, <code>macro</code>,
  142. and <code>const</code>.
  143. </p>
  144. <p>
  145. Search functions by type signature (e.g.
  146. <code>vec -> usize</code> or <code>* -> vec</code>)
  147. </p>
  148. </div>
  149. </div>
  150. </aside>
  151. <script>
  152. window.rootPath = "../../../";
  153. window.currentCrate = "futures";
  154. </script>
  155. <script src="../../../main.js"></script>
  156. <script defer src="../../../search-index.js"></script>
  157. </body>
  158. </html>