Skip to content

Commit

Permalink
Regenerate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lipanski committed Jul 4, 2017
1 parent 86e67bf commit 424e936
Show file tree
Hide file tree
Showing 13 changed files with 326 additions and 351 deletions.
2 changes: 1 addition & 1 deletion docs/generated/implementors/core/cmp/trait.PartialEq.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions docs/generated/implementors/core/ops/trait.Drop.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(function() {var implementors = {};
implementors["mockito"] = ["impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/ops/trait.Drop.html\" title=\"trait core::ops::Drop\">Drop</a> for <a class=\"struct\" href=\"mockito/struct.Mock.html\" title=\"struct mockito::Mock\">Mock</a>",];

if (window.register_implementors) {
window.register_implementors(implementors);
} else {
window.pending_implementors = implementors;
}

})()
2 changes: 1 addition & 1 deletion docs/generated/mockito/constant.SERVER_ADDRESS.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1 class='fqn'><span class='in-band'>Constant <a href='index.html'>mockito</a>:
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
</span><a class='srclink' href='../src/mockito/lib.rs.html#294' title='goto source code'>[src]</a></span></h1>
</span><a class='srclink' href='../src/mockito/lib.rs.html#306' title='goto source code'>[src]</a></span></h1>
<pre class='rust const'>pub const SERVER_ADDRESS: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><code> = </code><code>&quot;127.0.0.1:1234&quot;</code></pre><div class='docblock'><p>Points to the address the mock server is running at.
Can be used with <code>std::net::TcpStream</code>.</p>
</div></section>
Expand Down
2 changes: 1 addition & 1 deletion docs/generated/mockito/constant.SERVER_URL.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1 class='fqn'><span class='in-band'>Constant <a href='index.html'>mockito</a>:
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
</span><a class='srclink' href='../src/mockito/lib.rs.html#299' title='goto source code'>[src]</a></span></h1>
</span><a class='srclink' href='../src/mockito/lib.rs.html#311' title='goto source code'>[src]</a></span></h1>
<pre class='rust const'>pub const SERVER_URL: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><code> = </code><code>&quot;http://127.0.0.1:1234&quot;</code></pre><div class='docblock'><p>Points to the URL the mock server is running at.</p>
</div></section>
<section id='search' class="content hidden"></section>
Expand Down
10 changes: 5 additions & 5 deletions docs/generated/mockito/enum.Matcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1 class='fqn'><span class='in-band'>Enum <a href='index.html'>mockito</a>::<wb
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
</span><a class='srclink' href='../src/mockito/lib.rs.html#344-354' title='goto source code'>[src]</a></span></h1>
</span><a class='srclink' href='../src/mockito/lib.rs.html#356-366' title='goto source code'>[src]</a></span></h1>
<pre class='rust enum'>pub enum Matcher {
Exact(<a class="struct" href="https://doc.rust-lang.org/nightly/collections/string/struct.String.html" title="struct collections::string::String">String</a>),
Regex(<a class="struct" href="https://doc.rust-lang.org/nightly/collections/string/struct.String.html" title="struct collections::string::String">String</a>),
Expand All @@ -64,18 +64,18 @@ <h1 class='fqn'><span class='in-band'>Enum <a href='index.html'>mockito</a>::<wb
</div><span id='variant.Regex' class='variant'><span id='Regex.v' class='invisible'><code>Regex(<a class="struct" href="https://doc.rust-lang.org/nightly/collections/string/struct.String.html" title="struct collections::string::String">String</a>)</code></span></span><div class='docblock'><p>Matches a path or header value by a regular expression.</p>
</div><span id='variant.Any' class='variant'><span id='Any.v' class='invisible'><code>Any</code></span></span><div class='docblock'><p>Matches any path or any header value.</p>
</div><span id='variant.Missing' class='variant'><span id='Missing.v' class='invisible'><code>Missing</code></span></span><div class='docblock'><p>Checks that a header is not present in the request.</p>
</div><h2 id='implementations'>Trait Implementations</h2><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="enum" href="../mockito/enum.Matcher.html" title="enum mockito::Matcher">Matcher</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mockito/lib.rs.html#343' title='goto source code'>[src]</a></span></h3>
</div><h2 id='implementations'>Trait Implementations</h2><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> for <a class="enum" href="../mockito/enum.Matcher.html" title="enum mockito::Matcher">Matcher</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mockito/lib.rs.html#355' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, __arg_0: &amp;<a class="enum" href="../mockito/enum.Matcher.html" title="enum mockito::Matcher">Matcher</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, __arg_0: &amp;<a class="enum" href="../mockito/enum.Matcher.html" title="enum mockito::Matcher">Matcher</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 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="enum" href="../mockito/enum.Matcher.html" title="enum mockito::Matcher">Matcher</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mockito/lib.rs.html#343' title='goto source code'>[src]</a></span></h3>
</div></div><h3 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="enum" href="../mockito/enum.Matcher.html" title="enum mockito::Matcher">Matcher</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mockito/lib.rs.html#355' title='goto source code'>[src]</a></span></h3>
<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></h4>
<div class='docblock'><p>Formats the value using the given formatter.</p>
</div></div><h3 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="enum" href="../mockito/enum.Matcher.html" title="enum mockito::Matcher">Matcher</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mockito/lib.rs.html#356-360' title='goto source code'>[src]</a></span></h3>
</div></div><h3 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="enum" href="../mockito/enum.Matcher.html" title="enum mockito::Matcher">Matcher</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mockito/lib.rs.html#368-372' title='goto source code'>[src]</a></span></h3>
<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>(value: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="../mockito/enum.Matcher.html" title="enum mockito::Matcher">Matcher</a></code></span></h4>
<div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/collections/string/struct.String.html" title="struct collections::string::String">String</a>&gt; for <a class="enum" href="../mockito/enum.Matcher.html" title="enum mockito::Matcher">Matcher</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mockito/lib.rs.html#362-371' title='goto source code'>[src]</a></span></h3>
</div></div><h3 class='impl'><span class='in-band'><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/collections/string/struct.String.html" title="struct collections::string::String">String</a>&gt; for <a class="enum" href="../mockito/enum.Matcher.html" title="enum mockito::Matcher">Matcher</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/mockito/lib.rs.html#374-383' title='goto source code'>[src]</a></span></h3>
<div class='impl-items'><h4 id='method.eq-1' class="method"><span id='eq.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, other: &amp;<a class="struct" href="https://doc.rust-lang.org/nightly/collections/string/struct.String.html" title="struct collections::string::String">String</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h4>
<div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id='method.ne-1' class="method"><span id='ne.v-1' class='invisible'><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, other: &amp;Rhs) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div></span></h4>
Expand Down
10 changes: 5 additions & 5 deletions docs/generated/mockito/fn.mock.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ <h1 class='fqn'><span class='in-band'>Function <a href='index.html'>mockito</a>:
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
</span><a class='srclink' href='../src/mockito/lib.rs.html#316-318' title='goto source code'>[src]</a></span></h1>
</span><a class='srclink' href='../src/mockito/lib.rs.html#328-330' title='goto source code'>[src]</a></span></h1>
<pre class='rust fn'>pub fn mock&lt;P:&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="enum" href="../mockito/enum.Matcher.html" title="enum mockito::Matcher">Matcher</a>&gt;&gt;(method: &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, path: P) -&gt; <a class="struct" href="../mockito/struct.Mock.html" title="struct mockito::Mock">Mock</a></pre><div class='docblock'><p>Initializes a mock for the provided <code>method</code> and <code>path</code>.</p>

<p>The mock is registered to the server only after the <code>create()</code> method has been called.</p>

<h1 id='example' class='section-header'><a href='#example'>Example</a></h1>
<h2 id='example' class='section-header'><a href='#example'>Example</a></h2>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">mockito</span>::<span class="ident">mock</span>;

<span class="ident">mock</span>(<span class="string">&quot;GET&quot;</span>, <span class="string">&quot;/&quot;</span>);
<span class="ident">mock</span>(<span class="string">&quot;POST&quot;</span>, <span class="string">&quot;/users&quot;</span>);
<span class="ident">mock</span>(<span class="string">&quot;DELETE&quot;</span>, <span class="string">&quot;/users?id=1&quot;</span>);</pre>
<span class="kw">let</span> <span class="ident">_m1</span> <span class="op">=</span> <span class="ident">mock</span>(<span class="string">&quot;GET&quot;</span>, <span class="string">&quot;/&quot;</span>);
<span class="kw">let</span> <span class="ident">_m2</span> <span class="op">=</span> <span class="ident">mock</span>(<span class="string">&quot;POST&quot;</span>, <span class="string">&quot;/users&quot;</span>);
<span class="kw">let</span> <span class="ident">_m3</span> <span class="op">=</span> <span class="ident">mock</span>(<span class="string">&quot;DELETE&quot;</span>, <span class="string">&quot;/users?id=1&quot;</span>);</pre>
</div></section>
<section id='search' class="content hidden"></section>

Expand Down
2 changes: 1 addition & 1 deletion docs/generated/mockito/fn.reset.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1 class='fqn'><span class='in-band'>Function <a href='index.html'>mockito</a>:
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
</span><a class='srclink' href='../src/mockito/lib.rs.html#323-330' title='goto source code'>[src]</a></span></h1>
</span><a class='srclink' href='../src/mockito/lib.rs.html#335-342' title='goto source code'>[src]</a></span></h1>
<pre class='rust fn'>pub fn reset()</pre><div class='docblock'><p>Removes all the mocks stored on the server.</p>
</div></section>
<section id='search' class="content hidden"></section>
Expand Down
2 changes: 1 addition & 1 deletion docs/generated/mockito/fn.start.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h1 class='fqn'><span class='in-band'>Function <a href='index.html'>mockito</a>:
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
</span><a class='srclink' href='../src/mockito/lib.rs.html#333-335' title='goto source code'>[src]</a></span></h1>
</span><a class='srclink' href='../src/mockito/lib.rs.html#345-347' title='goto source code'>[src]</a></span></h1>
<pre class='rust fn'>pub fn start()</pre></section>
<section id='search' class="content hidden"></section>

Expand Down
Loading

0 comments on commit 424e936

Please sign in to comment.