trait.IntoFuture.html 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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 `IntoFuture` trait in crate `futures`.">
  8. <meta name="keywords" content="rust, rustlang, rust-lang, IntoFuture">
  9. <title>futures::future::IntoFuture - 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 trait">
  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'>Trait IntoFuture</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#associated-types">Associated Types</a><div class="sidebar-links"><a href="#associatedtype.Future">Future</a><a href="#associatedtype.Item">Item</a><a href="#associatedtype.Error">Error</a></div><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.into_future">into_future</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-IntoFuture">(A, B)</a><a href="#impl-IntoFuture">(A, B, C)</a><a href="#impl-IntoFuture">(A, B, C, D)</a><a href="#impl-IntoFuture">(A, B, C, D, E)</a><a href="#impl-IntoFuture">Result&lt;T, E&gt;</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../index.html'>futures</a>::<wbr><a href='index.html'>future</a></p><script>window.sidebarCurrent = {name: 'IntoFuture', ty: 'trait', 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'>Trait <a href='../index.html'>futures</a>::<wbr><a href='index.html'>future</a>::<wbr><a class="trait" href=''>IntoFuture</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/future/mod.rs.html#1038-1049' title='goto source code'>[src]</a></span></h1>
  50. <pre class='rust trait'>pub trait IntoFuture {
  51. type <a href='#associatedtype.Future' class="type">Future</a>: <a class="trait" href="../../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a>&lt;Item = Self::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a>, Error = Self::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a>&gt;;
  52. type <a href='#associatedtype.Item' class="type">Item</a>;
  53. type <a href='#associatedtype.Error' class="type">Error</a>;
  54. fn <a href='#tymethod.into_future' class='fnname'>into_future</a>(self) -&gt; Self::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>;
  55. }</pre><div class='docblock'><p>Class of types which can be converted into a future.</p>
  56. <p>This trait is very similar to the <code>IntoIterator</code> trait and is intended to be
  57. used in a very similar fashion.</p>
  58. </div>
  59. <h2 id='associated-types' class='small-section-header'>
  60. Associated Types<a href='#associated-types' class='anchor'></a>
  61. </h2>
  62. <div class='methods'>
  63. <h3 id='associatedtype.Future' class='method'><span id='Future.t' class='invisible'><code>type <a href='#associatedtype.Future' class="type">Future</a>: <a class="trait" href="../../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a>&lt;Item = Self::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a>, Error = Self::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a>&gt;</code></span></h3><div class='docblock'><p>The future that this type can be converted into.</p>
  64. </div><h3 id='associatedtype.Item' class='method'><span id='Item.t' class='invisible'><code>type <a href='#associatedtype.Item' class="type">Item</a></code></span></h3><div class='docblock'><p>The item that the future may resolve with.</p>
  65. </div><h3 id='associatedtype.Error' class='method'><span id='Error.t' class='invisible'><code>type <a href='#associatedtype.Error' class="type">Error</a></code></span></h3><div class='docblock'><p>The error that the future may resolve with.</p>
  66. </div></div>
  67. <h2 id='required-methods' class='small-section-header'>
  68. Required Methods<a href='#required-methods' class='anchor'></a>
  69. </h2>
  70. <div class='methods'>
  71. <h3 id='tymethod.into_future' class='method'><span id='into_future.v' class='invisible'><code>fn <a href='#tymethod.into_future' class='fnname'>into_future</a>(self) -&gt; Self::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a></code></span></h3><div class='docblock'><p>Consumes this object and produces a future.</p>
  72. </div></div>
  73. <h2 id='foreign-impls' class='small-section-header'>
  74. Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a>
  75. </h2>
  76. <h3 id='impl-IntoFuture' class='impl'><span class='in-band'><code>impl&lt;A, B&gt; <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>A, B<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;A: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = A::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a>&gt;,&nbsp;</span></code><a href='#impl-IntoFuture' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/future/join.rs.html#92-112' title='goto source code'>[src]</a></span></h3>
  77. <span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.Future-1' class="type"><span id='Future.t-1' class='invisible'><code>type <a href='#associatedtype.Future' class="type">Future</a> = <a class="struct" href="../../futures/future/struct.Join.html" title="struct futures::future::Join">Join</a>&lt;A::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>, B::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>&gt;</code></span></h4>
  78. <h4 id='associatedtype.Item-1' class="type"><span id='Item.t-1' class='invisible'><code>type <a href='#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>A::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a>, B::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></h4>
  79. <h4 id='associatedtype.Error-1' class="type"><span id='Error.t-1' class='invisible'><code>type <a href='#associatedtype.Error' class="type">Error</a> = A::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a></code></span></h4>
  80. <h4 id='method.into_future' class="method"><span id='into_future.v-1' class='invisible'><code>fn <a href='#method.into_future' class='fnname'>into_future</a>(self) -&gt; Self::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/future/join.rs.html#102-111' title='goto source code'>[src]</a></span></h4>
  81. </div></span><h3 id='impl-IntoFuture-1' class='impl'><span class='in-band'><code>impl&lt;A, B, C&gt; <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>A, B, C<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;A: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = A::<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;C: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = A::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a>&gt;,&nbsp;</span></code><a href='#impl-IntoFuture-1' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/future/join.rs.html#92-112' title='goto source code'>[src]</a></span></h3>
  82. <span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.Future-2' class="type"><span id='Future.t-2' class='invisible'><code>type <a href='#associatedtype.Future' class="type">Future</a> = <a class="struct" href="../../futures/future/struct.Join3.html" title="struct futures::future::Join3">Join3</a>&lt;A::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>, 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;</code></span></h4>
  83. <h4 id='associatedtype.Item-2' class="type"><span id='Item.t-2' class='invisible'><code>type <a href='#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>A::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a>, B::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a>, C::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></h4>
  84. <h4 id='associatedtype.Error-2' class="type"><span id='Error.t-2' class='invisible'><code>type <a href='#associatedtype.Error' class="type">Error</a> = A::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a></code></span></h4>
  85. <h4 id='method.into_future-1' class="method"><span id='into_future.v-2' class='invisible'><code>fn <a href='#method.into_future' class='fnname'>into_future</a>(self) -&gt; Self::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/future/join.rs.html#102-111' title='goto source code'>[src]</a></span></h4>
  86. </div></span><h3 id='impl-IntoFuture-2' class='impl'><span class='in-band'><code>impl&lt;A, B, C, D&gt; <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>A, B, C, D<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;A: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = A::<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;C: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = A::<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;D: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = A::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a>&gt;,&nbsp;</span></code><a href='#impl-IntoFuture-2' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/future/join.rs.html#92-112' title='goto source code'>[src]</a></span></h3>
  87. <span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.Future-3' class="type"><span id='Future.t-3' class='invisible'><code>type <a href='#associatedtype.Future' class="type">Future</a> = <a class="struct" href="../../futures/future/struct.Join4.html" title="struct futures::future::Join4">Join4</a>&lt;A::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>, 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;</code></span></h4>
  88. <h4 id='associatedtype.Item-3' class="type"><span id='Item.t-3' class='invisible'><code>type <a href='#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>A::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a>, B::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a>, C::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a>, D::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></h4>
  89. <h4 id='associatedtype.Error-3' class="type"><span id='Error.t-3' class='invisible'><code>type <a href='#associatedtype.Error' class="type">Error</a> = A::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a></code></span></h4>
  90. <h4 id='method.into_future-2' class="method"><span id='into_future.v-3' class='invisible'><code>fn <a href='#method.into_future' class='fnname'>into_future</a>(self) -&gt; Self::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/future/join.rs.html#102-111' title='goto source code'>[src]</a></span></h4>
  91. </div></span><h3 id='impl-IntoFuture-3' class='impl'><span class='in-band'><code>impl&lt;A, B, C, D, E&gt; <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>A, B, C, D, E<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;A: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = A::<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;C: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = A::<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;D: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = A::<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;E: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Error = A::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a>&gt;,&nbsp;</span></code><a href='#impl-IntoFuture-3' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/future/join.rs.html#92-112' title='goto source code'>[src]</a></span></h3>
  92. <span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.Future-4' class="type"><span id='Future.t-4' class='invisible'><code>type <a href='#associatedtype.Future' class="type">Future</a> = <a class="struct" href="../../futures/future/struct.Join5.html" title="struct futures::future::Join5">Join5</a>&lt;A::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>, 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;</code></span></h4>
  93. <h4 id='associatedtype.Item-4' class="type"><span id='Item.t-4' class='invisible'><code>type <a href='#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>A::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a>, B::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a>, C::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a>, D::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a>, E::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Item" title="type futures::future::IntoFuture::Item">Item</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></h4>
  94. <h4 id='associatedtype.Error-4' class="type"><span id='Error.t-4' class='invisible'><code>type <a href='#associatedtype.Error' class="type">Error</a> = A::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a></code></span></h4>
  95. <h4 id='method.into_future-3' class="method"><span id='into_future.v-4' class='invisible'><code>fn <a href='#method.into_future' class='fnname'>into_future</a>(self) -&gt; Self::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/future/join.rs.html#102-111' title='goto source code'>[src]</a></span></h4>
  96. </div></span><h3 id='impl-IntoFuture-4' class='impl'><span class='in-band'><code>impl&lt;T, E&gt; <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a> for <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, E&gt;</code><a href='#impl-IntoFuture-4' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/future/mod.rs.html#1061-1069' title='goto source code'>[src]</a></span></h3>
  97. <span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.Future-5' class="type"><span id='Future.t-5' class='invisible'><code>type <a href='#associatedtype.Future' class="type">Future</a> = <a class="struct" href="../../futures/future/struct.FutureResult.html" title="struct futures::future::FutureResult">FutureResult</a>&lt;T, E&gt;</code></span></h4>
  98. <h4 id='associatedtype.Item-5' class="type"><span id='Item.t-5' class='invisible'><code>type <a href='#associatedtype.Item' class="type">Item</a> = T</code></span></h4>
  99. <h4 id='associatedtype.Error-5' class="type"><span id='Error.t-5' class='invisible'><code>type <a href='#associatedtype.Error' class="type">Error</a> = E</code></span></h4>
  100. <h4 id='method.into_future-4' class="method"><span id='into_future.v-5' class='invisible'><code>fn <a href='#method.into_future' class='fnname'>into_future</a>(self) -&gt; <a class="struct" href="../../futures/future/struct.FutureResult.html" title="struct futures::future::FutureResult">FutureResult</a>&lt;T, E&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/future/mod.rs.html#1066-1068' title='goto source code'>[src]</a></span></h4>
  101. </div></span>
  102. <h2 id='implementors' class='small-section-header'>
  103. Implementors<a href='#implementors' class='anchor'></a>
  104. </h2>
  105. <ul class='item-list' id='implementors-list'>
  106. <li><div class='out-of-band'><a class='srclink' href='../../src/futures/future/mod.rs.html#1051-1059' title='goto source code'>[src]</a></div><code>impl&lt;F:&nbsp;<a class="trait" href="../../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a>&gt; IntoFuture for F<span class="where fmt-newline"> type <a href='#associatedtype.Future' class="type">Future</a> = F;</span><span class="where fmt-newline"> type <a href='#associatedtype.Item' class="type">Item</a> = F::<a class="type" href="../../futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.Error' class="type">Error</a> = F::<a class="type" href="../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>;</span></code></li>
  107. </ul><script type="text/javascript" async
  108. src="../../implementors/futures/future/trait.IntoFuture.js">
  109. </script></section>
  110. <section id='search' class="content hidden"></section>
  111. <section class="footer"></section>
  112. <aside id="help" class="hidden">
  113. <div>
  114. <h1 class="hidden">Help</h1>
  115. <div class="shortcuts">
  116. <h2>Keyboard Shortcuts</h2>
  117. <dl>
  118. <dt><kbd>?</kbd></dt>
  119. <dd>Show this help dialog</dd>
  120. <dt><kbd>S</kbd></dt>
  121. <dd>Focus the search field</dd>
  122. <dt><kbd>↑</kbd></dt>
  123. <dd>Move up in search results</dd>
  124. <dt><kbd>↓</kbd></dt>
  125. <dd>Move down in search results</dd>
  126. <dt><kbd>↹</kbd></dt>
  127. <dd>Switch tab</dd>
  128. <dt><kbd>&#9166;</kbd></dt>
  129. <dd>Go to active search result</dd>
  130. <dt><kbd>+</kbd></dt>
  131. <dd>Expand all sections</dd>
  132. <dt><kbd>-</kbd></dt>
  133. <dd>Collapse all sections</dd>
  134. </dl>
  135. </div>
  136. <div class="infos">
  137. <h2>Search Tricks</h2>
  138. <p>
  139. Prefix searches with a type followed by a colon (e.g.
  140. <code>fn:</code>) to restrict the search to a given type.
  141. </p>
  142. <p>
  143. Accepted types are: <code>fn</code>, <code>mod</code>,
  144. <code>struct</code>, <code>enum</code>,
  145. <code>trait</code>, <code>type</code>, <code>macro</code>,
  146. and <code>const</code>.
  147. </p>
  148. <p>
  149. Search functions by type signature (e.g.
  150. <code>vec -> usize</code> or <code>* -> vec</code>)
  151. </p>
  152. </div>
  153. </div>
  154. </aside>
  155. <script>
  156. window.rootPath = "../../";
  157. window.currentCrate = "futures";
  158. </script>
  159. <script src="../../main.js"></script>
  160. <script defer src="../../search-index.js"></script>
  161. </body>
  162. </html>