index.html 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  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 `qutex` crate.">
  8. <meta name="keywords" content="rust, rustlang, rust-lang, qutex">
  9. <title>qutex - 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'>Crate qutex</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></div><p class='location'></p><script>window.sidebarCurrent = {name: 'qutex', ty: 'mod', relpath: '../'};</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'>Crate <a class="mod" href=''>qutex</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/qutex/lib.rs.html#1-17' title='goto source code'>[src]</a></span></h1>
  50. <div class='docblock'><p>A collection of locking data structures, both thread-safe and
  51. single-thread-optimized, which use Rust futures instead of
  52. thread-blocking.</p>
  53. <p><a href="https://github.com/cogciprocate/qutex"><img src="https://img.shields.io/badge/github-qutex-blue.svg" alt="" /></a> <a href="https://crates.io/crates/qutex"><img src="http://meritbadge.herokuapp.com/qutex" alt="" /></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.FutureGuard.html"
  58. title='struct qutex::FutureGuard'>FutureGuard</a></td>
  59. <td class='docblock-short'>
  60. <p>A future which resolves to a <code>Guard</code>.</p>
  61. </td>
  62. </tr>
  63. <tr class=' module-item'>
  64. <td><a class="struct" href="struct.FutureReadGuard.html"
  65. title='struct qutex::FutureReadGuard'>FutureReadGuard</a></td>
  66. <td class='docblock-short'>
  67. <p>A future which resolves to a <code>ReadGuard</code>.</p>
  68. </td>
  69. </tr>
  70. <tr class=' module-item'>
  71. <td><a class="struct" href="struct.FutureWriteGuard.html"
  72. title='struct qutex::FutureWriteGuard'>FutureWriteGuard</a></td>
  73. <td class='docblock-short'>
  74. <p>A future which resolves to a <code>WriteGuard</code>.</p>
  75. </td>
  76. </tr>
  77. <tr class=' module-item'>
  78. <td><a class="struct" href="struct.Guard.html"
  79. title='struct qutex::Guard'>Guard</a></td>
  80. <td class='docblock-short'>
  81. <p>Allows access to the data contained within a lock just like a mutex guard.</p>
  82. </td>
  83. </tr>
  84. <tr class=' module-item'>
  85. <td><a class="struct" href="struct.QrwLock.html"
  86. title='struct qutex::QrwLock'>QrwLock</a></td>
  87. <td class='docblock-short'>
  88. <p>A queue-backed read/write data lock.</p>
  89. </td>
  90. </tr>
  91. <tr class=' module-item'>
  92. <td><a class="struct" href="struct.QrwRequest.html"
  93. title='struct qutex::QrwRequest'>QrwRequest</a></td>
  94. <td class='docblock-short'>
  95. <p>A request to lock the lock for either read or write access.</p>
  96. </td>
  97. </tr>
  98. <tr class=' module-item'>
  99. <td><a class="struct" href="struct.Qutex.html"
  100. title='struct qutex::Qutex'>Qutex</a></td>
  101. <td class='docblock-short'>
  102. <p>A lock-free-queue-backed exclusive data lock.</p>
  103. </td>
  104. </tr>
  105. <tr class=' module-item'>
  106. <td><a class="struct" href="struct.ReadGuard.html"
  107. title='struct qutex::ReadGuard'>ReadGuard</a></td>
  108. <td class='docblock-short'>
  109. <p>Allows read-only access to the data contained within a lock.</p>
  110. </td>
  111. </tr>
  112. <tr class=' module-item'>
  113. <td><a class="struct" href="struct.Request.html"
  114. title='struct qutex::Request'>Request</a></td>
  115. <td class='docblock-short'>
  116. <p>A request to lock the qutex for exclusive access.</p>
  117. </td>
  118. </tr>
  119. <tr class=' module-item'>
  120. <td><a class="struct" href="struct.WriteGuard.html"
  121. title='struct qutex::WriteGuard'>WriteGuard</a></td>
  122. <td class='docblock-short'>
  123. <p>Allows read or write access to the data contained within a lock.</p>
  124. </td>
  125. </tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
  126. <table>
  127. <tr class=' module-item'>
  128. <td><a class="enum" href="enum.RequestKind.html"
  129. title='enum qutex::RequestKind'>RequestKind</a></td>
  130. <td class='docblock-short'>
  131. <p>Specifies whether a <code>QrwRequest</code> is a read or write request.</p>
  132. </td>
  133. </tr></table></section>
  134. <section id='search' class="content hidden"></section>
  135. <section class="footer"></section>
  136. <aside id="help" class="hidden">
  137. <div>
  138. <h1 class="hidden">Help</h1>
  139. <div class="shortcuts">
  140. <h2>Keyboard Shortcuts</h2>
  141. <dl>
  142. <dt><kbd>?</kbd></dt>
  143. <dd>Show this help dialog</dd>
  144. <dt><kbd>S</kbd></dt>
  145. <dd>Focus the search field</dd>
  146. <dt><kbd>↑</kbd></dt>
  147. <dd>Move up in search results</dd>
  148. <dt><kbd>↓</kbd></dt>
  149. <dd>Move down in search results</dd>
  150. <dt><kbd>↹</kbd></dt>
  151. <dd>Switch tab</dd>
  152. <dt><kbd>&#9166;</kbd></dt>
  153. <dd>Go to active search result</dd>
  154. <dt><kbd>+</kbd></dt>
  155. <dd>Expand all sections</dd>
  156. <dt><kbd>-</kbd></dt>
  157. <dd>Collapse all sections</dd>
  158. </dl>
  159. </div>
  160. <div class="infos">
  161. <h2>Search Tricks</h2>
  162. <p>
  163. Prefix searches with a type followed by a colon (e.g.
  164. <code>fn:</code>) to restrict the search to a given type.
  165. </p>
  166. <p>
  167. Accepted types are: <code>fn</code>, <code>mod</code>,
  168. <code>struct</code>, <code>enum</code>,
  169. <code>trait</code>, <code>type</code>, <code>macro</code>,
  170. and <code>const</code>.
  171. </p>
  172. <p>
  173. Search functions by type signature (e.g.
  174. <code>vec -> usize</code> or <code>* -> vec</code>)
  175. </p>
  176. </div>
  177. </div>
  178. </aside>
  179. <script>
  180. window.rootPath = "../";
  181. window.currentCrate = "qutex";
  182. </script>
  183. <script src="../main.js"></script>
  184. <script defer src="../search-index.js"></script>
  185. </body>
  186. </html>