index.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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 `async` mod in crate `ocl`.">
  8. <meta name="keywords" content="rust, rustlang, rust-lang, async">
  9. <title>ocl::async - 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 async</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="#types">Type Definitions</a></li></ul></div><p class='location'><a href='../index.html'>ocl</a></p><script>window.sidebarCurrent = {name: 'async', 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'>ocl</a>::<wbr><a class="mod" href=''>async</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/ocl/async/mod.rs.html#1-18' title='goto source code'>[src]</a></span></h1>
  50. <div class='docblock'><p>Types related to futures and asynchrony.</p>
  51. </div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
  52. <table>
  53. <tr class=' module-item'>
  54. <td><a class="struct" href="struct.BufferSink.html"
  55. title='struct ocl::async::BufferSink'>BufferSink</a></td>
  56. <td class='docblock-short'>
  57. <p>Represents mapped memory and allows frames of data to be 'flushed'
  58. (written) from host-accessible mapped memory region into its associated
  59. device-visible buffer in a repeated fashion.</p>
  60. </td>
  61. </tr>
  62. <tr class=' module-item'>
  63. <td><a class="struct" href="struct.BufferSinkInner.html"
  64. title='struct ocl::async::BufferSinkInner'>BufferSinkInner</a></td>
  65. <td class='docblock-short'>
  66. </td>
  67. </tr>
  68. <tr class=' module-item'>
  69. <td><a class="struct" href="struct.BufferStream.html"
  70. title='struct ocl::async::BufferStream'>BufferStream</a></td>
  71. <td class='docblock-short'>
  72. <p>Represents mapped memory and allows frames of data to be 'flooded' (read)
  73. from a device-visible <code>Buffer</code> into its associated host-accessible mapped
  74. memory region in a repeated fashion.</p>
  75. </td>
  76. </tr>
  77. <tr class=' module-item'>
  78. <td><a class="struct" href="struct.BufferStreamInner.html"
  79. title='struct ocl::async::BufferStreamInner'>BufferStreamInner</a></td>
  80. <td class='docblock-short'>
  81. </td>
  82. </tr>
  83. <tr class=' module-item'>
  84. <td><a class="struct" href="struct.FutureFlood.html"
  85. title='struct ocl::async::FutureFlood'>FutureFlood</a></td>
  86. <td class='docblock-short'>
  87. </td>
  88. </tr>
  89. <tr class=' module-item'>
  90. <td><a class="struct" href="struct.FutureFlush.html"
  91. title='struct ocl::async::FutureFlush'>FutureFlush</a></td>
  92. <td class='docblock-short'>
  93. </td>
  94. </tr>
  95. <tr class=' module-item'>
  96. <td><a class="struct" href="struct.FutureGuard.html"
  97. title='struct ocl::async::FutureGuard'>FutureGuard</a></td>
  98. <td class='docblock-short'>
  99. <p>A future that resolves to a read or write guard after ensuring that the
  100. data being guarded is appropriately locked during the execution of an
  101. OpenCL command.</p>
  102. </td>
  103. </tr>
  104. <tr class=' module-item'>
  105. <td><a class="struct" href="struct.FutureMemMap.html"
  106. title='struct ocl::async::FutureMemMap'>FutureMemMap</a></td>
  107. <td class='docblock-short'>
  108. <p>A future which resolves to a <code>MemMap</code> as soon as its creating command
  109. completes.</p>
  110. </td>
  111. </tr>
  112. <tr class=' module-item'>
  113. <td><a class="struct" href="struct.MemMap.html"
  114. title='struct ocl::async::MemMap'>MemMap</a></td>
  115. <td class='docblock-short'>
  116. <p>A view of memory mapped by <code>clEnqueueMap{...}</code>.</p>
  117. </td>
  118. </tr>
  119. <tr class=' module-item'>
  120. <td><a class="struct" href="struct.OrderLock.html"
  121. title='struct ocl::async::OrderLock'>OrderLock</a></td>
  122. <td class='docblock-short'>
  123. <p>A lock with conserved global order which interoperates with OpenCL events
  124. and Rust futures to provide exclusive access to data.</p>
  125. </td>
  126. </tr>
  127. <tr class=' module-item'>
  128. <td><a class="struct" href="struct.ReadGuard.html"
  129. title='struct ocl::async::ReadGuard'>ReadGuard</a></td>
  130. <td class='docblock-short'>
  131. <p>Allows access to the data contained within a lock just like a mutex guard.</p>
  132. </td>
  133. </tr>
  134. <tr class=' module-item'>
  135. <td><a class="struct" href="struct.RwVec.html"
  136. title='struct ocl::async::RwVec'>RwVec</a></td>
  137. <td class='docblock-short'>
  138. <p>A locking <code>Vec</code> which interoperates with OpenCL events and Rust futures to
  139. provide exclusive access to data.</p>
  140. </td>
  141. </tr>
  142. <tr class=' module-item'>
  143. <td><a class="struct" href="struct.WriteGuard.html"
  144. title='struct ocl::async::WriteGuard'>WriteGuard</a></td>
  145. <td class='docblock-short'>
  146. <p>Allows access to the data contained within just like a mutex guard.</p>
  147. </td>
  148. </tr></table><h2 id='traits' class='section-header'><a href="#traits">Traits</a></h2>
  149. <table>
  150. <tr class=' module-item'>
  151. <td><a class="trait" href="trait.OrderGuard.html"
  152. title='trait ocl::async::OrderGuard'>OrderGuard</a></td>
  153. <td class='docblock-short'>
  154. <p>A read or write guard for an <code>OrderLock</code>.</p>
  155. </td>
  156. </tr></table><h2 id='types' class='section-header'><a href="#types">Type Definitions</a></h2>
  157. <table>
  158. <tr class=' module-item'>
  159. <td><a class="type" href="type.FutureReadGuard.html"
  160. title='type ocl::async::FutureReadGuard'>FutureReadGuard</a></td>
  161. <td class='docblock-short'>
  162. </td>
  163. </tr>
  164. <tr class=' module-item'>
  165. <td><a class="type" href="type.FutureWriteGuard.html"
  166. title='type ocl::async::FutureWriteGuard'>FutureWriteGuard</a></td>
  167. <td class='docblock-short'>
  168. </td>
  169. </tr></table></section>
  170. <section id='search' class="content hidden"></section>
  171. <section class="footer"></section>
  172. <aside id="help" class="hidden">
  173. <div>
  174. <h1 class="hidden">Help</h1>
  175. <div class="shortcuts">
  176. <h2>Keyboard Shortcuts</h2>
  177. <dl>
  178. <dt><kbd>?</kbd></dt>
  179. <dd>Show this help dialog</dd>
  180. <dt><kbd>S</kbd></dt>
  181. <dd>Focus the search field</dd>
  182. <dt><kbd>↑</kbd></dt>
  183. <dd>Move up in search results</dd>
  184. <dt><kbd>↓</kbd></dt>
  185. <dd>Move down in search results</dd>
  186. <dt><kbd>↹</kbd></dt>
  187. <dd>Switch tab</dd>
  188. <dt><kbd>&#9166;</kbd></dt>
  189. <dd>Go to active search result</dd>
  190. <dt><kbd>+</kbd></dt>
  191. <dd>Expand all sections</dd>
  192. <dt><kbd>-</kbd></dt>
  193. <dd>Collapse all sections</dd>
  194. </dl>
  195. </div>
  196. <div class="infos">
  197. <h2>Search Tricks</h2>
  198. <p>
  199. Prefix searches with a type followed by a colon (e.g.
  200. <code>fn:</code>) to restrict the search to a given type.
  201. </p>
  202. <p>
  203. Accepted types are: <code>fn</code>, <code>mod</code>,
  204. <code>struct</code>, <code>enum</code>,
  205. <code>trait</code>, <code>type</code>, <code>macro</code>,
  206. and <code>const</code>.
  207. </p>
  208. <p>
  209. Search functions by type signature (e.g.
  210. <code>vec -> usize</code> or <code>* -> vec</code>)
  211. </p>
  212. </div>
  213. </div>
  214. </aside>
  215. <script>
  216. window.rootPath = "../../";
  217. window.currentCrate = "ocl";
  218. </script>
  219. <script src="../../main.js"></script>
  220. <script defer src="../../search-index.js"></script>
  221. </body>
  222. </html>