index.html 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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 `executor` mod in crate `futures`.">
  8. <meta name="keywords" content="rust, rustlang, rust-lang, executor">
  9. <title>futures::executor - 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 mod">
  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'>Module executor</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../index.html'>futures</a></p><script>window.sidebarCurrent = {name: 'executor', ty: 'mod', 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'>Module <a href='../index.html'>futures</a>::<wbr><a class="mod" href=''>executor</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/executor.rs.html#1-16' title='goto source code'>[src]</a></span></h1>
  50. <div class='docblock'><p>Executors</p>
  51. <p>This module contains tools for managing the raw execution of futures,
  52. which is needed when building <em>executors</em> (places where futures can run).</p>
  53. <p>More information about executors can be <a href="https://tokio.rs/docs/going-deeper-futures/tasks/">found online at tokio.rs</a>.</p>
  54. </div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
  55. <table>
  56. <tr class=' module-item'>
  57. <td><a class="struct" href="struct.NotifyHandle.html"
  58. title='struct futures::executor::NotifyHandle'>NotifyHandle</a></td>
  59. <td class='docblock-short'>
  60. <p>A <code>NotifyHandle</code> is the core value through which notifications are routed
  61. in the <code>futures</code> crate.</p>
  62. </td>
  63. </tr>
  64. <tr class=' module-item'>
  65. <td><a class="struct" href="struct.Run.html"
  66. title='struct futures::executor::Run'>Run</a></td>
  67. <td class='docblock-short'>
  68. <p>Units of work submitted to an <code>Executor</code>, currently only created
  69. internally.</p>
  70. </td>
  71. </tr>
  72. <tr class=' module-item'>
  73. <td><a class="struct" href="struct.Spawn.html"
  74. title='struct futures::executor::Spawn'>Spawn</a></td>
  75. <td class='docblock-short'>
  76. <p>Representation of a spawned future/stream.</p>
  77. </td>
  78. </tr></table><h2 id='traits' class='section-header'><a href="#traits">Traits</a></h2>
  79. <table>
  80. <tr class=' module-item'>
  81. <td><a class="trait" href="trait.Executor.html"
  82. title='trait futures::executor::Executor'>Executor</a></td>
  83. <td class='docblock-short'>
  84. <p>A trait representing requests to poll futures.</p>
  85. </td>
  86. </tr>
  87. <tr class=' module-item'>
  88. <td><a class="trait" href="trait.Notify.html"
  89. title='trait futures::executor::Notify'>Notify</a></td>
  90. <td class='docblock-short'>
  91. <p>A trait which represents a sink of notifications that a future is ready to
  92. make progress.</p>
  93. </td>
  94. </tr>
  95. <tr class=' module-item'>
  96. <td><a class="trait" href="trait.Unpark.html"
  97. title='trait futures::executor::Unpark'>Unpark</a></td>
  98. <td class='docblock-short'>
  99. [<div class='stab deprecated'>Deprecated</div>] <p>A trait which represents a sink of notifications that a future is ready to
  100. make progress.</p>
  101. </td>
  102. </tr>
  103. <tr class=' module-item'>
  104. <td><a class="trait" href="trait.UnsafeNotify.html"
  105. title='trait futures::executor::UnsafeNotify'>UnsafeNotify</a></td>
  106. <td class='docblock-short'>
  107. <p>An unsafe trait for implementing custom forms of memory management behind a
  108. <code>Task</code>.</p>
  109. </td>
  110. </tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
  111. <table>
  112. <tr class=' module-item'>
  113. <td><a class="fn" href="fn.spawn.html"
  114. title='fn futures::executor::spawn'>spawn</a></td>
  115. <td class='docblock-short'>
  116. <p>Spawns a future or stream, returning it and the new task responsible for
  117. running it to completion.</p>
  118. </td>
  119. </tr>
  120. <tr class=' module-item'>
  121. <td><a class="fn" href="fn.with_notify.html"
  122. title='fn futures::executor::with_notify'>with_notify</a></td>
  123. <td class='docblock-short'>
  124. <p>Sets the <code>NotifyHandle</code> of the current task for the duration of the provided
  125. closure.</p>
  126. </td>
  127. </tr></table></section>
  128. <section id='search' class="content hidden"></section>
  129. <section class="footer"></section>
  130. <aside id="help" class="hidden">
  131. <div>
  132. <h1 class="hidden">Help</h1>
  133. <div class="shortcuts">
  134. <h2>Keyboard Shortcuts</h2>
  135. <dl>
  136. <dt><kbd>?</kbd></dt>
  137. <dd>Show this help dialog</dd>
  138. <dt><kbd>S</kbd></dt>
  139. <dd>Focus the search field</dd>
  140. <dt><kbd>↑</kbd></dt>
  141. <dd>Move up in search results</dd>
  142. <dt><kbd>↓</kbd></dt>
  143. <dd>Move down in search results</dd>
  144. <dt><kbd>↹</kbd></dt>
  145. <dd>Switch tab</dd>
  146. <dt><kbd>&#9166;</kbd></dt>
  147. <dd>Go to active search result</dd>
  148. <dt><kbd>+</kbd></dt>
  149. <dd>Expand all sections</dd>
  150. <dt><kbd>-</kbd></dt>
  151. <dd>Collapse all sections</dd>
  152. </dl>
  153. </div>
  154. <div class="infos">
  155. <h2>Search Tricks</h2>
  156. <p>
  157. Prefix searches with a type followed by a colon (e.g.
  158. <code>fn:</code>) to restrict the search to a given type.
  159. </p>
  160. <p>
  161. Accepted types are: <code>fn</code>, <code>mod</code>,
  162. <code>struct</code>, <code>enum</code>,
  163. <code>trait</code>, <code>type</code>, <code>macro</code>,
  164. and <code>const</code>.
  165. </p>
  166. <p>
  167. Search functions by type signature (e.g.
  168. <code>vec -> usize</code> or <code>* -> vec</code>)
  169. </p>
  170. </div>
  171. </div>
  172. </aside>
  173. <script>
  174. window.rootPath = "../../";
  175. window.currentCrate = "futures";
  176. </script>
  177. <script src="../../main.js"></script>
  178. <script defer src="../../search-index.js"></script>
  179. </body>
  180. </html>