struct.Error.html 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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 `Error` struct in crate `ocl`.">
  8. <meta name="keywords" content="rust, rustlang, rust-lang, Error">
  9. <title>ocl::error::Error - 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 Error</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.api_status">api_status</a><a href="#method.kind">kind</a><a href="#method.cause">cause</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Fail">Fail</a><a href="#impl-Display">Display</a><a href="#impl-Debug">Debug</a><a href="#impl-From%3COclCoreError%3E">From&lt;OclCoreError&gt;</a><a href="#impl-From%3CSendError%3CT%3E%3E">From&lt;SendError&lt;T&gt;&gt;</a><a href="#impl-From%3COneshotCanceled%3E">From&lt;OneshotCanceled&gt;</a><a href="#impl-From%3CString%3E">From&lt;String&gt;</a><a href="#impl-From%3C%26%27a%20str%3E">From&lt;&amp;&#39;a str&gt;</a><a href="#impl-From%3CNulError%3E">From&lt;NulError&gt;</a><a href="#impl-From%3CError%3E">From&lt;Error&gt;</a><a href="#impl-From%3CBufferCmdError%3E">From&lt;BufferCmdError&gt;</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../index.html'>ocl</a>::<wbr><a href='index.html'>error</a></p><script>window.sidebarCurrent = {name: 'Error', 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'>error</a>::<wbr><a class="struct" href=''>Error</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/error.rs.html#44-46' title='goto source code'>[src]</a></span></h1>
  50. <pre class='rust struct'>pub struct Error { /* fields omitted */ }</pre><div class='docblock'><p>An Error.</p>
  51. </div>
  52. <h2 id='methods' class='small-section-header'>
  53. Methods<a href='#methods' class='anchor'></a>
  54. </h2>
  55. <h3 id='impl' class='impl'><span class='in-band'><code>impl <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code><a href='#impl' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#48-67' title='goto source code'>[src]</a></span></h3>
  56. <div class='impl-items'><h4 id='method.api_status' class="method"><span id='api_status.v' class='invisible'><code>pub fn <a href='#method.api_status' class='fnname'>api_status</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;<a class="enum" href="../../ocl/enums/enum.Status.html" title="enum ocl::enums::Status">Status</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#50-55' title='goto source code'>[src]</a></span></h4>
  57. <div class='docblock'><p>Returns the error status code for <code>OclCore</code> variants.</p>
  58. </div><h4 id='method.kind' class="method"><span id='kind.v' class='invisible'><code>pub fn <a href='#method.kind' class='fnname'>kind</a>(&amp;self) -&gt; &amp;<a class="enum" href="../../ocl/error/enum.ErrorKind.html" title="enum ocl::error::ErrorKind">ErrorKind</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#58-60' title='goto source code'>[src]</a></span></h4>
  59. <div class='docblock'><p>Returns the error variant and contents.</p>
  60. </div><h4 id='method.cause' class="method"><span id='cause.v' class='invisible'><code>pub fn <a href='#method.cause' class='fnname'>cause</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="trait" href="../../failure/trait.Fail.html" title="trait failure::Fail">Fail</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#64-66' title='goto source code'>[src]</a></span></h4>
  61. <div class='docblock'><p>Returns the immediate cause of this error (e.g. the next error in the
  62. chain).</p>
  63. </div></div>
  64. <h2 id='implementations' class='small-section-header'>
  65. Trait Implementations<a href='#implementations' class='anchor'></a>
  66. </h2>
  67. <h3 id='impl-Fail' class='impl'><span class='in-band'><code>impl <a class="trait" href="../../failure/trait.Fail.html" title="trait failure::Fail">Fail</a> for <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code><a href='#impl-Fail' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#69-77' title='goto source code'>[src]</a></span></h3>
  68. <div class='impl-items'><h4 id='method.cause-1' class="method"><span id='cause.v-1' class='invisible'><code>fn <a href='../../failure/trait.Fail.html#method.cause' class='fnname'>cause</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="trait" href="../../failure/trait.Fail.html" title="trait failure::Fail">Fail</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#70-72' title='goto source code'>[src]</a></span></h4>
  69. <div class='docblock'><p>Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. <a href="../../failure/trait.Fail.html#method.cause">Read more</a></p>
  70. </div><h4 id='method.backtrace' class="method"><span id='backtrace.v' class='invisible'><code>fn <a href='../../failure/trait.Fail.html#method.backtrace' class='fnname'>backtrace</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="../../failure/backtrace/struct.Backtrace.html" title="struct failure::backtrace::Backtrace">Backtrace</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#74-76' title='goto source code'>[src]</a></span></h4>
  71. <div class='docblock'><p>Returns a reference to the <code>Backtrace</code> carried by this failure, if it carries one. <a href="../../failure/trait.Fail.html#method.backtrace">Read more</a></p>
  72. </div><h4 id='method.context' class="method"><span id='context.v' class='invisible'><code>fn <a href='../../failure/trait.Fail.html#method.context' class='fnname'>context</a>&lt;D&gt;(self, context: D) -&gt; <a class="struct" href="../../failure/context/struct.Context.html" title="struct failure::context::Context">Context</a>&lt;D&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;D: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/failure/lib.rs.html#123-128' title='goto source code'>[src]</a></span></h4>
  73. <div class='docblock'><p>Provides context for this failure. <a href="../../failure/trait.Fail.html#method.context">Read more</a></p>
  74. </div><h4 id='method.compat' class="method"><span id='compat.v' class='invisible'><code>fn <a href='../../failure/trait.Fail.html#method.compat' class='fnname'>compat</a>(self) -&gt; <a class="struct" href="../../failure/compat/struct.Compat.html" title="struct failure::compat::Compat">Compat</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/failure/lib.rs.html#135-139' title='goto source code'>[src]</a></span></h4>
  75. <div class='docblock'><p>Wraps this failure in a compatibility wrapper that implements <code>std::error::Error</code>. <a href="../../failure/trait.Fail.html#method.compat">Read more</a></p>
  76. </div><h4 id='method.causes' class="method"><div class="important-traits"><div class='tooltip'>ⓘ<span class='tooltiptext'>Important traits for <a class="struct" href="../../failure/struct.Causes.html" title="struct failure::Causes">Causes</a>&lt;'f&gt;</span></div><div class="content hidden"><h3 class="important">Important traits for <a class="struct" href="../../failure/struct.Causes.html" title="struct failure::Causes">Causes</a>&lt;'f&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;'f&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for <a class="struct" href="../../failure/struct.Causes.html" title="struct failure::Causes">Causes</a>&lt;'f&gt;</span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = &amp;'f (<a class="trait" href="../../failure/trait.Fail.html" title="trait failure::Fail">Fail</a> + 'static);</span></code></div></div><span id='causes.v' class='invisible'><code>fn <a href='../../failure/trait.Fail.html#method.causes' class='fnname'>causes</a>(&amp;self) -&gt; <a class="struct" href="../../failure/struct.Causes.html" title="struct failure::Causes">Causes</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/failure/lib.rs.html#143-145' title='goto source code'>[src]</a></span></h4>
  77. <div class='docblock'><p>Returns a iterator over the causes of this <code>Fail</code> with itself as the first item and the <code>root_cause</code> as the final item. <a href="../../failure/trait.Fail.html#method.causes">Read more</a></p>
  78. </div><h4 id='method.root_cause' class="method"><span id='root_cause.v' class='invisible'><code>fn <a href='../../failure/trait.Fail.html#method.root_cause' class='fnname'>root_cause</a>(&amp;self) -&gt; &amp;(<a class="trait" href="../../failure/trait.Fail.html" title="trait failure::Fail">Fail</a> + 'static)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/failure/lib.rs.html#152-156' title='goto source code'>[src]</a></span></h4>
  79. <div class='docblock'><p>Returns the &quot;root cause&quot; of this <code>Fail</code> - the last value in the cause chain which does not return an underlying <code>cause</code>. <a href="../../failure/trait.Fail.html#method.root_cause">Read more</a></p>
  80. </div></div><h3 id='impl-Display' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code><a href='#impl-Display' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#79-83' title='goto source code'>[src]</a></span></h3>
  81. <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.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &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/error.rs.html#80-82' title='goto source code'>[src]</a></span></h4>
  82. <div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
  83. </div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><code>impl <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/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code><a href='#impl-Debug' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#85-89' title='goto source code'>[src]</a></span></h3>
  84. <div class='impl-items'><h4 id='method.fmt-1' class="method"><span id='fmt.v-1' 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, f: &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/error.rs.html#86-88' title='goto source code'>[src]</a></span></h4>
  85. <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>
  86. </div></div><h3 id='impl-From%3COclCoreError%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../../ocl_core/error/struct.Error.html" title="struct ocl_core::error::Error">OclCoreError</a>&gt; for <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code><a href='#impl-From%3COclCoreError%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#91-95' title='goto source code'>[src]</a></span></h3>
  87. <div class='impl-items'><h4 id='method.from' class="method"><span id='from.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(err: <a class="struct" href="../../ocl_core/error/struct.Error.html" title="struct ocl_core::error::Error">OclCoreError</a>) -&gt; <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#92-94' title='goto source code'>[src]</a></span></h4>
  88. <div class='docblock'><p>Performs the conversion.</p>
  89. </div></div><h3 id='impl-From%3CSendError%3CT%3E%3E' class='impl'><span class='in-band'><code>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../../futures/sync/mpsc/struct.SendError.html" title="struct futures::sync::mpsc::SendError">SendError</a>&lt;T&gt;&gt; for <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code><a href='#impl-From%3CSendError%3CT%3E%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#97-104' title='goto source code'>[src]</a></span></h3>
  90. <div class='impl-items'><h4 id='method.from-1' class="method"><span id='from.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(err: <a class="struct" href="../../futures/sync/mpsc/struct.SendError.html" title="struct futures::sync::mpsc::SendError">SendError</a>&lt;T&gt;) -&gt; <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#98-103' title='goto source code'>[src]</a></span></h4>
  91. <div class='docblock'><p>Performs the conversion.</p>
  92. </div></div><h3 id='impl-From%3COneshotCanceled%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../../futures/sync/oneshot/struct.Canceled.html" title="struct futures::sync::oneshot::Canceled">OneshotCanceled</a>&gt; for <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code><a href='#impl-From%3COneshotCanceled%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#121-125' title='goto source code'>[src]</a></span></h3>
  93. <div class='impl-items'><h4 id='method.from-2' class="method"><span id='from.v-2' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(err: <a class="struct" href="../../futures/sync/oneshot/struct.Canceled.html" title="struct futures::sync::oneshot::Canceled">OneshotCanceled</a>) -&gt; <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#122-124' title='goto source code'>[src]</a></span></h4>
  94. <div class='docblock'><p>Performs the conversion.</p>
  95. </div></div><h3 id='impl-From%3CString%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt; for <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code><a href='#impl-From%3CString%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#128-132' title='goto source code'>[src]</a></span></h3>
  96. <div class='impl-items'><h4 id='method.from-3' class="method"><span id='from.v-3' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(desc: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -&gt; <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#129-131' title='goto source code'>[src]</a></span></h4>
  97. <div class='docblock'><p>Performs the conversion.</p>
  98. </div></div><h3 id='impl-From%3C%26%27a%20str%3E' class='impl'><span class='in-band'><code>impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt; for <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code><a href='#impl-From%3C%26%27a%20str%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#135-139' title='goto source code'>[src]</a></span></h3>
  99. <div class='impl-items'><h4 id='method.from-4' class="method"><span id='from.v-4' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(desc: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#136-138' title='goto source code'>[src]</a></span></h4>
  100. <div class='docblock'><p>Performs the conversion.</p>
  101. </div></div><h3 id='impl-From%3CNulError%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/std/ffi/c_str/struct.NulError.html" title="struct std::ffi::c_str::NulError">NulError</a>&gt; for <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code><a href='#impl-From%3CNulError%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#141-145' title='goto source code'>[src]</a></span></h3>
  102. <div class='impl-items'><h4 id='method.from-5' class="method"><span id='from.v-5' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(err: <a class="struct" href="https://doc.rust-lang.org/nightly/std/ffi/c_str/struct.NulError.html" title="struct std::ffi::c_str::NulError">NulError</a>) -&gt; <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#142-144' title='goto source code'>[src]</a></span></h4>
  103. <div class='docblock'><p>Performs the conversion.</p>
  104. </div></div><h3 id='impl-From%3CError%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>&gt; for <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code><a href='#impl-From%3CError%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#147-151' title='goto source code'>[src]</a></span></h3>
  105. <div class='impl-items'><h4 id='method.from-6' class="method"><span id='from.v-6' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(err: <a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>) -&gt; <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#148-150' title='goto source code'>[src]</a></span></h4>
  106. <div class='docblock'><p>Performs the conversion.</p>
  107. </div></div><h3 id='impl-From%3CBufferCmdError%3E' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="enum" href="../../ocl/enum.BufferCmdError.html" title="enum ocl::BufferCmdError">BufferCmdError</a>&gt; for <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code><a href='#impl-From%3CBufferCmdError%3E' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#153-157' title='goto source code'>[src]</a></span></h3>
  108. <div class='impl-items'><h4 id='method.from-7' class="method"><span id='from.v-7' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(err: <a class="enum" href="../../ocl/enum.BufferCmdError.html" title="enum ocl::BufferCmdError">BufferCmdError</a>) -&gt; <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#154-156' title='goto source code'>[src]</a></span></h4>
  109. <div class='docblock'><p>Performs the conversion.</p>
  110. </div></div><h3 id='impl-From%3CError%3E-1' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-From%3CError%3E-1' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#177-181' title='goto source code'>[src]</a></span></h3>
  111. <div class='impl-items'><h4 id='method.from-8' class="method"><span id='from.v-8' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(err: <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#178-180' title='goto source code'>[src]</a></span></h4>
  112. <div class='docblock'><p>Performs the conversion.</p>
  113. </div></div><h3 id='impl-Send' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code><a href='#impl-Send' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#184' title='goto source code'>[src]</a></span></h3>
  114. <div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../ocl/error/struct.Error.html" title="struct ocl::error::Error">Error</a></code><a href='#impl-Sync' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/ocl/error.rs.html#185' title='goto source code'>[src]</a></span></h3>
  115. <div class='impl-items'></div></section>
  116. <section id='search' class="content hidden"></section>
  117. <section class="footer"></section>
  118. <aside id="help" class="hidden">
  119. <div>
  120. <h1 class="hidden">Help</h1>
  121. <div class="shortcuts">
  122. <h2>Keyboard Shortcuts</h2>
  123. <dl>
  124. <dt><kbd>?</kbd></dt>
  125. <dd>Show this help dialog</dd>
  126. <dt><kbd>S</kbd></dt>
  127. <dd>Focus the search field</dd>
  128. <dt><kbd>↑</kbd></dt>
  129. <dd>Move up in search results</dd>
  130. <dt><kbd>↓</kbd></dt>
  131. <dd>Move down in search results</dd>
  132. <dt><kbd>↹</kbd></dt>
  133. <dd>Switch tab</dd>
  134. <dt><kbd>&#9166;</kbd></dt>
  135. <dd>Go to active search result</dd>
  136. <dt><kbd>+</kbd></dt>
  137. <dd>Expand all sections</dd>
  138. <dt><kbd>-</kbd></dt>
  139. <dd>Collapse all sections</dd>
  140. </dl>
  141. </div>
  142. <div class="infos">
  143. <h2>Search Tricks</h2>
  144. <p>
  145. Prefix searches with a type followed by a colon (e.g.
  146. <code>fn:</code>) to restrict the search to a given type.
  147. </p>
  148. <p>
  149. Accepted types are: <code>fn</code>, <code>mod</code>,
  150. <code>struct</code>, <code>enum</code>,
  151. <code>trait</code>, <code>type</code>, <code>macro</code>,
  152. and <code>const</code>.
  153. </p>
  154. <p>
  155. Search functions by type signature (e.g.
  156. <code>vec -> usize</code> or <code>* -> vec</code>)
  157. </p>
  158. </div>
  159. </div>
  160. </aside>
  161. <script>
  162. window.rootPath = "../../";
  163. window.currentCrate = "ocl";
  164. </script>
  165. <script src="../../main.js"></script>
  166. <script defer src="../../search-index.js"></script>
  167. </body>
  168. </html>