struct.FutureGuard.html 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  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 `FutureGuard` struct in crate `ocl`.">
  8. <meta name="keywords" content="rust, rustlang, rust-lang, FutureGuard">
  9. <title>ocl::async::FutureGuard - 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 FutureGuard</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.set_lock_wait_events">set_lock_wait_events</a><a href="#method.ewait_lock">ewait_lock</a><a href="#method.create_lock_event">create_lock_event</a><a href="#method.enew_lock">enew_lock</a><a href="#method.set_command_wait_event">set_command_wait_event</a><a href="#method.ewait_command">ewait_command</a><a href="#method.create_release_event">create_release_event</a><a href="#method.enew_release">enew_release</a><a href="#method.lock_event">lock_event</a><a href="#method.release_event">release_event</a><a href="#method.wait">wait</a><a href="#method.as_ptr">as_ptr</a><a href="#method.as_mut_ptr">as_mut_ptr</a><a href="#method.order_lock">order_lock</a><a href="#method.upgrade_after_command">upgrade_after_command</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Future">Future</a><a href="#impl-Drop">Drop</a></div></div><p class='location'><a href='../index.html'>ocl</a>::<wbr><a href='index.html'>async</a></p><script>window.sidebarCurrent = {name: 'FutureGuard', 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'>ocl</a>::<wbr><a href='index.html'>async</a>::<wbr><a class="struct" href=''>FutureGuard</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/order_lock.rs.html#272-283' title='goto source code'>[src]</a></span></h1>
  50. <pre class='rust struct'><div class="docblock attributes">#[must_use = "futures do nothing unless polled"]
  51. </div>pub struct FutureGuard&lt;V, G&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;G: <a class="trait" href="../../ocl/async/trait.OrderGuard.html" title="trait ocl::async::OrderGuard">OrderGuard</a>&lt;V&gt;,&nbsp;</span> { /* fields omitted */ }</pre><div class='docblock'><p>A future that resolves to a read or write guard after ensuring that the
  52. data being guarded is appropriately locked during the execution of an
  53. OpenCL command.</p>
  54. <ol>
  55. <li>Waits until both an exclusive data lock can be obtained <strong>and</strong> all
  56. prerequisite OpenCL commands have completed.</li>
  57. <li>Triggers an OpenCL command, remaining locked while the command
  58. executes.</li>
  59. <li>Returns a guard which provides exclusive (write) or shared (read)
  60. access to the locked data.</li>
  61. </ol>
  62. </div>
  63. <h2 id='methods' class='small-section-header'>
  64. Methods<a href='#methods' class='anchor'></a>
  65. </h2>
  66. <h3 id='impl' class='impl'><span class='in-band'><code>impl&lt;V, G&gt; <a class="struct" href="../../ocl/async/struct.FutureGuard.html" title="struct ocl::async::FutureGuard">FutureGuard</a>&lt;V, G&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;G: <a class="trait" href="../../ocl/async/trait.OrderGuard.html" title="trait ocl::async::OrderGuard">OrderGuard</a>&lt;V&gt;,&nbsp;</span></code><a href='#impl' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#285-676' title='goto source code'>[src]</a></span></h3>
  67. <div class='impl-items'><h4 id='method.set_lock_wait_events' class="method"><span id='set_lock_wait_events.v' class='invisible'><code>pub fn <a href='#method.set_lock_wait_events' class='fnname'>set_lock_wait_events</a>&lt;L:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../ocl/struct.EventList.html" title="struct ocl::EventList">EventList</a>&gt;&gt;(&amp;mut self, wait_events: L)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#309-312' title='goto source code'>[src]</a></span></h4>
  68. <div class='docblock'><p>Sets an event wait list.</p>
  69. <p>Setting a wait list will cause this <code>FutureGuard</code> to wait until
  70. contained events have their status set to complete before obtaining a
  71. lock on the guarded internal value.</p>
  72. <p>[UNSTABLE]: This method may be renamed or otherwise changed at any time.</p>
  73. </div><h4 id='method.ewait_lock' class="method"><span id='ewait_lock.v' class='invisible'><code>pub fn <a href='#method.ewait_lock' class='fnname'>ewait_lock</a>&lt;L:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../ocl/struct.EventList.html" title="struct ocl::EventList">EventList</a>&gt;&gt;(self, wait_events: L) -&gt; <a class="struct" href="../../ocl/async/struct.FutureGuard.html" title="struct ocl::async::FutureGuard">FutureGuard</a>&lt;V, G&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#319-322' title='goto source code'>[src]</a></span></h4>
  74. <div class='docblock'><p>Sets an event wait list.</p>
  75. <p>See <code>::set_lock_wait_events</code>.</p>
  76. <p>[UNSTABLE]: This method may be renamed or otherwise changed at any time.</p>
  77. </div><h4 id='method.create_lock_event' class="method"><span id='create_lock_event.v' class='invisible'><code>pub fn <a href='#method.create_lock_event' class='fnname'>create_lock_event</a>&lt;C:&nbsp;<a class="trait" href="../../ocl_core/types/abs/trait.ClContextPtr.html" title="trait ocl_core::types::abs::ClContextPtr">ClContextPtr</a>&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;context: C<br>) -&gt; <a class="type" href="../../ocl/error/type.Result.html" title="type ocl::error::Result">OclResult</a>&lt;&amp;<a class="struct" href="../../ocl/struct.Event.html" title="struct ocl::Event">Event</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#333-337' title='goto source code'>[src]</a></span></h4>
  78. <div class='docblock'><p>Creates an event which will be triggered when a lock is obtained on
  79. the guarded internal value.</p>
  80. <p>The returned event can be added to the wait list of subsequent OpenCL
  81. commands with the expectation that when all preceding futures are
  82. complete, the event will automatically be 'triggered' by having its
  83. status set to complete, causing those commands to execute. This can be
  84. used to inject host side code in amongst OpenCL commands without
  85. thread blocking or extra delays of any kind.</p>
  86. </div><h4 id='method.enew_lock' class="method"><span id='enew_lock.v' class='invisible'><code>pub fn <a href='#method.enew_lock' class='fnname'>enew_lock</a>&lt;C, En&gt;(self, context: C, enew: En) -&gt; <a class="struct" href="../../ocl/async/struct.FutureGuard.html" title="struct ocl::async::FutureGuard">FutureGuard</a>&lt;V, G&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;C: <a class="trait" href="../../ocl_core/types/abs/trait.ClContextPtr.html" title="trait ocl_core::types::abs::ClContextPtr">ClContextPtr</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;En: <a class="trait" href="../../ocl_core/types/abs/trait.ClNullEventPtr.html" title="trait ocl_core::types::abs::ClNullEventPtr">ClNullEventPtr</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#351-358' title='goto source code'>[src]</a></span></h4>
  87. <div class='docblock'><p>Creates an event which will be triggered when a lock is obtained on
  88. the guarded internal value.</p>
  89. <p><code>enew</code> must be an empty (null) event or event list.</p>
  90. <p>See <code>::create_lock_event</code></p>
  91. <h2 id="panics" class="section-header"><a href="#panics">Panics</a></h2>
  92. <p>Panics if there is an error creating the lock event.</p>
  93. <p>[UNSTABLE]: This method may be renamed or otherwise changed at any time.</p>
  94. </div><h4 id='method.set_command_wait_event' class="method"><span id='set_command_wait_event.v' class='invisible'><code>pub fn <a href='#method.set_command_wait_event' class='fnname'>set_command_wait_event</a>(&amp;mut self, command_event: <a class="struct" href="../../ocl/struct.Event.html" title="struct ocl::Event">Event</a>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#375-378' title='goto source code'>[src]</a></span></h4>
  95. <div class='docblock'><p>Sets a command completion wait event.</p>
  96. <p><code>command_event</code> must be an event created by enqueuing an OpenCL
  97. command which interacts (reads/writes) with the data associated with
  98. this <code>FutureGuard</code>.</p>
  99. <p>If the command completion event is specified, this <code>FutureGuard</code> will
  100. &quot;suffix&quot; itself with an additional future that will wait until the
  101. command completes before resolving.</p>
  102. <p>Not specifying a command completion event will cause this
  103. <code>FutureGuard</code> to resolve into an <code>OrderGuard</code> immediately after the
  104. lock is obtained (indicated by the optionally created lock event).</p>
  105. <p>[UNSTABLE]: This method may be renamed or otherwise changed at any time.</p>
  106. </div><h4 id='method.ewait_command' class="method"><span id='ewait_command.v' class='invisible'><code>pub fn <a href='#method.ewait_command' class='fnname'>ewait_command</a>(self, command_event: <a class="struct" href="../../ocl/struct.Event.html" title="struct ocl::Event">Event</a>) -&gt; <a class="struct" href="../../ocl/async/struct.FutureGuard.html" title="struct ocl::async::FutureGuard">FutureGuard</a>&lt;V, G&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#385-388' title='goto source code'>[src]</a></span></h4>
  107. <div class='docblock'><p>Sets a command completion wait event.</p>
  108. <p>See <code>::set_command_wait_event</code>.</p>
  109. <p>[UNSTABLE]: This method may be renamed or otherwise changed at any time.</p>
  110. </div><h4 id='method.create_release_event' class="method"><span id='create_release_event.v' class='invisible'><code>pub fn <a href='#method.create_release_event' class='fnname'>create_release_event</a>&lt;C:&nbsp;<a class="trait" href="../../ocl_core/types/abs/trait.ClContextPtr.html" title="trait ocl_core::types::abs::ClContextPtr">ClContextPtr</a>&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;context: C<br>) -&gt; <a class="type" href="../../ocl/error/type.Result.html" title="type ocl::error::Result">OclResult</a>&lt;&amp;<a class="struct" href="../../ocl/struct.Event.html" title="struct ocl::Event">Event</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#399-403' title='goto source code'>[src]</a></span></h4>
  111. <div class='docblock'><p>Creates an event which will be triggered after this future resolves
  112. <strong>and</strong> the ensuing <code>OrderGuard</code> is dropped or manually released.</p>
  113. <p>The returned event can be added to the wait list of subsequent OpenCL
  114. commands with the expectation that when all preceding futures are
  115. complete, the event will automatically be 'triggered' by having its
  116. status set to complete, causing those commands to execute. This can be
  117. used to inject host side code in amongst OpenCL commands without
  118. thread blocking or extra delays of any kind.</p>
  119. </div><h4 id='method.enew_release' class="method"><span id='enew_release.v' class='invisible'><code>pub fn <a href='#method.enew_release' class='fnname'>enew_release</a>&lt;C, En&gt;(self, context: C, enew: En) -&gt; <a class="struct" href="../../ocl/async/struct.FutureGuard.html" title="struct ocl::async::FutureGuard">FutureGuard</a>&lt;V, G&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;C: <a class="trait" href="../../ocl_core/types/abs/trait.ClContextPtr.html" title="trait ocl_core::types::abs::ClContextPtr">ClContextPtr</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;En: <a class="trait" href="../../ocl_core/types/abs/trait.ClNullEventPtr.html" title="trait ocl_core::types::abs::ClNullEventPtr">ClNullEventPtr</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#417-424' title='goto source code'>[src]</a></span></h4>
  120. <div class='docblock'><p>Creates an event which will be triggered after this future resolves
  121. <strong>and</strong> the ensuing <code>OrderGuard</code> is dropped or manually released.</p>
  122. <p><code>enew</code> must be an empty (null) event or event list.</p>
  123. <p>See <code>::create_release_event</code>.</p>
  124. <h2 id="panics-1" class="section-header"><a href="#panics-1">Panics</a></h2>
  125. <p>Panics if there is an error creating the release event.</p>
  126. <p>[UNSTABLE]: This method may be renamed or otherwise changed at any time.</p>
  127. </div><h4 id='method.lock_event' class="method"><span id='lock_event.v' class='invisible'><code>pub fn <a href='#method.lock_event' class='fnname'>lock_event</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../ocl/struct.Event.html" title="struct ocl::Event">Event</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#429-431' title='goto source code'>[src]</a></span></h4>
  128. <div class='docblock'><p>Returns a reference to the event previously created with
  129. <code>::create_lock_event</code> or <code>::enew_lock</code> which will trigger (be
  130. completed) when the wait events are complete and the lock is locked.</p>
  131. </div><h4 id='method.release_event' class="method"><span id='release_event.v' class='invisible'><code>pub fn <a href='#method.release_event' class='fnname'>release_event</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="../../ocl/struct.Event.html" title="struct ocl::Event">Event</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#436-438' title='goto source code'>[src]</a></span></h4>
  132. <div class='docblock'><p>Returns a reference to the event previously created with
  133. <code>::create_release_event</code> or <code>::enew_release</code> which will trigger (be
  134. completed) when a lock is obtained on the guarded internal value.</p>
  135. </div><h4 id='method.wait' class="method"><span id='wait.v' class='invisible'><code>pub fn <a href='#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="type" href="../../ocl/error/type.Result.html" title="type ocl::error::Result">OclResult</a>&lt;G&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#442-444' title='goto source code'>[src]</a></span></h4>
  136. <div class='docblock'><p>Blocks the current thread until the OpenCL command is complete and an
  137. appropriate lock can be obtained on the underlying data.</p>
  138. </div><h4 id='method.as_ptr' class="method"><span id='as_ptr.v' class='invisible'><code>pub fn <a href='#method.as_ptr' class='fnname'>as_ptr</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*const V</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#453-456' title='goto source code'>[src]</a></span></h4>
  139. <div class='docblock'><p>Returns a mutable pointer to the data contained within the internal
  140. value, bypassing all locks and protections.</p>
  141. <h2 id="panics-2" class="section-header"><a href="#panics-2">Panics</a></h2>
  142. <p>This future must not have already resolved into a guard.</p>
  143. </div><h4 id='method.as_mut_ptr' class="method"><span id='as_mut_ptr.v' class='invisible'><code>pub fn <a href='#method.as_mut_ptr' class='fnname'>as_mut_ptr</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut V</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#465-468' title='goto source code'>[src]</a></span></h4>
  144. <div class='docblock'><p>Returns a mutable pointer to the data contained within the internal
  145. value, bypassing all locks and protections.</p>
  146. <h2 id="panics-3" class="section-header"><a href="#panics-3">Panics</a></h2>
  147. <p>This future must not have already resolved into a guard.</p>
  148. </div><h4 id='method.order_lock' class="method"><span id='order_lock.v' class='invisible'><code>pub fn <a href='#method.order_lock' class='fnname'>order_lock</a>(&amp;self) -&gt; &amp;<a class="struct" href="../../ocl/async/struct.OrderLock.html" title="struct ocl::async::OrderLock">OrderLock</a>&lt;V&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#476-478' title='goto source code'>[src]</a></span></h4>
  149. <div class='docblock'><p>Returns a reference to the <code>OrderLock</code> used to create this future.</p>
  150. </div></div><h3 id='impl-1' class='impl'><span class='in-band'><code>impl&lt;V&gt; <a class="struct" href="../../ocl/async/struct.FutureGuard.html" title="struct ocl::async::FutureGuard">FutureGuard</a>&lt;V, <a class="struct" href="../../ocl/struct.ReadGuard.html" title="struct ocl::ReadGuard">ReadGuard</a>&lt;V&gt;&gt;</code><a href='#impl-1' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#751-774' title='goto source code'>[src]</a></span></h3>
  151. <div class='impl-items'><h4 id='method.upgrade_after_command' class="method"><span id='upgrade_after_command.v' class='invisible'><code>pub fn <a href='#method.upgrade_after_command' class='fnname'>upgrade_after_command</a>(self) -&gt; <a class="struct" href="../../ocl/async/struct.FutureGuard.html" title="struct ocl::async::FutureGuard">FutureGuard</a>&lt;V, <a class="struct" href="../../ocl/struct.WriteGuard.html" title="struct ocl::WriteGuard">WriteGuard</a>&lt;V&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#752-773' title='goto source code'>[src]</a></span></h4>
  152. </div>
  153. <h2 id='implementations' class='small-section-header'>
  154. Trait Implementations<a href='#implementations' class='anchor'></a>
  155. </h2>
  156. <h3 id='impl-Debug' class='impl'><span class='in-band'><code>impl&lt;V:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, G:&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="../../ocl/async/struct.FutureGuard.html" title="struct ocl::async::FutureGuard">FutureGuard</a>&lt;V, G&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;G: <a class="trait" href="../../ocl/async/trait.OrderGuard.html" title="trait ocl::async::OrderGuard">OrderGuard</a>&lt;V&gt;,&nbsp;</span></code><a href='#impl-Debug' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#271' title='goto source code'>[src]</a></span></h3>
  157. <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, __arg_0: &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/ocl/async/order_lock.rs.html#271' title='goto source code'>[src]</a></span></h4>
  158. <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>
  159. </div></div><h3 id='impl-Future' class='impl'><span class='in-band'><code>impl&lt;V, G&gt; <a class="trait" href="../../futures/future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="struct" href="../../ocl/async/struct.FutureGuard.html" title="struct ocl::async::FutureGuard">FutureGuard</a>&lt;V, G&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;G: <a class="trait" href="../../ocl/async/trait.OrderGuard.html" title="trait ocl::async::OrderGuard">OrderGuard</a>&lt;V&gt;,&nbsp;</span></code><a href='#impl-Future' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#678-695' title='goto source code'>[src]</a></span></h3>
  160. <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> = G</code></span></h4>
  161. <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>
  162. </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="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">OclError</a></code></span></h4>
  163. <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>
  164. </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/poll/type.Poll.html" title="type futures::poll::Poll">Poll</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;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#683-694' title='goto source code'>[src]</a></span></h4>
  165. <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>
  166. </div><h4 id='method.wait-1' class="method"><span id='wait.v-1' 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;</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>
  167. <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>
  168. </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/map/struct.Map.html" title="struct futures::future::map::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,&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>
  169. <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>
  170. </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/map_err/struct.MapErr.html" title="struct futures::future::map_err::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,&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>
  171. <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>
  172. </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&gt;(self) -&gt; <a class="struct" href="../../futures/future/from_err/struct.FromErr.html" title="struct futures::future::from_err::FromErr">FromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;E: <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;,&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>
  173. <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>
  174. </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/then/struct.Then.html" title="struct futures::future::then::Then">Then</a>&lt;Self, B, F&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;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,&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>
  175. <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>
  176. </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/and_then/struct.AndThen.html" title="struct futures::future::and_then::AndThen">AndThen</a>&lt;Self, B, F&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;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,&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>
  177. <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>
  178. </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/or_else/struct.OrElse.html" title="struct futures::future::or_else::OrElse">OrElse</a>&lt;Self, B, F&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>&gt;,<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,&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>
  179. <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>
  180. </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/select/struct.Select.html" title="struct futures::future::select::Select">Select</a>&lt;Self, &lt;B 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.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;,&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>
  181. <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>
  182. </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/select2/struct.Select2.html" title="struct futures::future::select2::Select2">Select2</a>&lt;Self, &lt;B 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.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>,&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>
  183. <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>
  184. </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/join/struct.Join.html" title="struct futures::future::join::Join">Join</a>&lt;Self, &lt;B 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.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;,&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>
  185. <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>
  186. </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;(<br>&nbsp;&nbsp;&nbsp;&nbsp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;b: B, <br>&nbsp;&nbsp;&nbsp;&nbsp;c: C<br>) -&gt; <a class="struct" href="../../futures/future/join/struct.Join3.html" title="struct futures::future::join::Join3">Join3</a>&lt;Self, &lt;B 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.Future" title="type futures::future::IntoFuture::Future">Future</a>, &lt;C 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.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;,&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>
  187. <div class='docblock'><p>Same as <code>join</code>, but with more futures.</p>
  188. </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/join/struct.Join4.html" title="struct futures::future::join::Join4">Join4</a>&lt;Self, &lt;B 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.Future" title="type futures::future::IntoFuture::Future">Future</a>, &lt;C 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.Future" title="type futures::future::IntoFuture::Future">Future</a>, &lt;D 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.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;,&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>
  189. <div class='docblock'><p>Same as <code>join</code>, but with more futures.</p>
  190. </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/join/struct.Join5.html" title="struct futures::future::join::Join5">Join5</a>&lt;Self, &lt;B 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.Future" title="type futures::future::IntoFuture::Future">Future</a>, &lt;C 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.Future" title="type futures::future::IntoFuture::Future">Future</a>, &lt;D 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.Future" title="type futures::future::IntoFuture::Future">Future</a>, &lt;E 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.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;,&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>
  191. <div class='docblock'><p>Same as <code>join</code>, but with more futures.</p>
  192. </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/into_stream/struct.IntoStream.html" title="struct futures::future::into_stream::IntoStream">IntoStream</a>&lt;Self&gt;</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>
  193. <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>
  194. </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/flatten/struct.Flatten.html" title="struct futures::future::flatten::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;,&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>
  195. <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>
  196. </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/flatten_stream/struct.FlattenStream.html" title="struct futures::future::flatten_stream::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>,<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/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> == Self::<a class="type" href="../../futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</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>
  197. <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>
  198. </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/fuse/struct.Fuse.html" title="struct futures::future::fuse::Fuse">Fuse</a>&lt;Self&gt;</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>
  199. <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>
  200. </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/inspect/struct.Inspect.html" title="struct futures::future::inspect::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>),&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>
  201. <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>
  202. </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/catch_unwind/struct.CatchUnwind.html" title="struct futures::future::catch_unwind::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/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>
  203. <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>
  204. </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/shared/struct.Shared.html" title="struct futures::future::shared::Shared">Shared</a>&lt;Self&gt;</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>
  205. <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>
  206. </div></div><h3 id='impl-Drop' class='impl'><span class='in-band'><code>impl&lt;V, G&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="../../ocl/async/struct.FutureGuard.html" title="struct ocl::async::FutureGuard">FutureGuard</a>&lt;V, G&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;G: <a class="trait" href="../../ocl/async/trait.OrderGuard.html" title="trait ocl::async::OrderGuard">OrderGuard</a>&lt;V&gt;,&nbsp;</span></code><a href='#impl-Drop' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/async/order_lock.rs.html#697-748' title='goto source code'>[src]</a></span></h3>
  207. <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/ocl/async/order_lock.rs.html#710-747' title='goto source code'>[src]</a></span></h4>
  208. <div class='docblock'><p>Drops this FutureGuard.</p>
  209. <p>Blocks the current thread until the command associated with this
  210. <code>FutureGuard</code> (represented by the command completion event)
  211. completes. This ensures that the underlying value is not dropped
  212. before the command completes (which would cause obvious problems).</p>
  213. <h2 id="future_guard_drop_panic-feature" class="section-header"><a href="#future_guard_drop_panic-feature"><code>future_guard_drop_panic</code> Feature</a></h2>
  214. <p>If the <code>future_guard_drop_panic</code> feature is enabled, dropping a
  215. <code>FutureGuard</code> before it is polled will cause a panic.</p>
  216. </div></div></section>
  217. <section id='search' class="content hidden"></section>
  218. <section class="footer"></section>
  219. <aside id="help" class="hidden">
  220. <div>
  221. <h1 class="hidden">Help</h1>
  222. <div class="shortcuts">
  223. <h2>Keyboard Shortcuts</h2>
  224. <dl>
  225. <dt><kbd>?</kbd></dt>
  226. <dd>Show this help dialog</dd>
  227. <dt><kbd>S</kbd></dt>
  228. <dd>Focus the search field</dd>
  229. <dt><kbd>↑</kbd></dt>
  230. <dd>Move up in search results</dd>
  231. <dt><kbd>↓</kbd></dt>
  232. <dd>Move down in search results</dd>
  233. <dt><kbd>↹</kbd></dt>
  234. <dd>Switch tab</dd>
  235. <dt><kbd>&#9166;</kbd></dt>
  236. <dd>Go to active search result</dd>
  237. <dt><kbd>+</kbd></dt>
  238. <dd>Expand all sections</dd>
  239. <dt><kbd>-</kbd></dt>
  240. <dd>Collapse all sections</dd>
  241. </dl>
  242. </div>
  243. <div class="infos">
  244. <h2>Search Tricks</h2>
  245. <p>
  246. Prefix searches with a type followed by a colon (e.g.
  247. <code>fn:</code>) to restrict the search to a given type.
  248. </p>
  249. <p>
  250. Accepted types are: <code>fn</code>, <code>mod</code>,
  251. <code>struct</code>, <code>enum</code>,
  252. <code>trait</code>, <code>type</code>, <code>macro</code>,
  253. and <code>const</code>.
  254. </p>
  255. <p>
  256. Search functions by type signature (e.g.
  257. <code>vec -> usize</code> or <code>* -> vec</code>)
  258. </p>
  259. </div>
  260. </div>
  261. </aside>
  262. <script>
  263. window.rootPath = "../../";
  264. window.currentCrate = "ocl";
  265. </script>
  266. <script src="../../main.js"></script>
  267. <script defer src="../../search-index.js"></script>
  268. </body>
  269. </html>