blob: 9b175d17808ad7beb5d121eacd263ccd304b9068 [file] [log] [blame]
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The URI component of a request."><meta name="keywords" content="rust, rustlang, rust-lang, Uri"><title>Uri in teaclave_rpc::transport - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../teaclave_rpc/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../teaclave_rpc/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Uri</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block"><li><a href="#method.authority">authority</a></li><li><a href="#method.builder">builder</a></li><li><a href="#method.from_maybe_shared">from_maybe_shared</a></li><li><a href="#method.from_parts">from_parts</a></li><li><a href="#method.from_static">from_static</a></li><li><a href="#method.host">host</a></li><li><a href="#method.into_parts">into_parts</a></li><li><a href="#method.path">path</a></li><li><a href="#method.path_and_query">path_and_query</a></li><li><a href="#method.port">port</a></li><li><a href="#method.port_u16">port_u16</a></li><li><a href="#method.query">query</a></li><li><a href="#method.scheme">scheme</a></li><li><a href="#method.scheme_str">scheme_str</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-Clone-for-Uri">Clone</a></li><li><a href="#impl-Debug-for-Uri">Debug</a></li><li><a href="#impl-Default-for-Uri">Default</a></li><li><a href="#impl-Display-for-Uri">Display</a></li><li><a href="#impl-Eq-for-Uri">Eq</a></li><li><a href="#impl-From%3CAuthority%3E-for-Uri">From&lt;Authority&gt;</a></li><li><a href="#impl-From%3CPathAndQuery%3E-for-Uri">From&lt;PathAndQuery&gt;</a></li><li><a href="#impl-From%3CUri%3E-for-Endpoint">From&lt;Uri&gt;</a></li><li><a href="#impl-FromStr-for-Uri">FromStr</a></li><li><a href="#impl-Hash-for-Uri">Hash</a></li><li><a href="#impl-PartialEq%3C%26%27a%20str%3E-for-Uri">PartialEq&lt;&amp;&#39;a str&gt;</a></li><li><a href="#impl-PartialEq%3CUri%3E-for-%26%27a%20str">PartialEq&lt;Uri&gt;</a></li><li><a href="#impl-PartialEq%3CUri%3E-for-Uri">PartialEq&lt;Uri&gt;</a></li><li><a href="#impl-PartialEq%3CUri%3E-for-str">PartialEq&lt;Uri&gt;</a></li><li><a href="#impl-PartialEq%3Cstr%3E-for-Uri">PartialEq&lt;str&gt;</a></li><li><a href="#impl-TryFrom%3C%26%27a%20%5Bu8%5D%3E-for-Uri">TryFrom&lt;&amp;&#39;a [u8]&gt;</a></li><li><a href="#impl-TryFrom%3C%26%27a%20String%3E-for-Uri">TryFrom&lt;&amp;&#39;a String&gt;</a></li><li><a href="#impl-TryFrom%3C%26%27a%20Uri%3E-for-Uri">TryFrom&lt;&amp;&#39;a Uri&gt;</a></li><li><a href="#impl-TryFrom%3C%26%27a%20str%3E-for-Uri">TryFrom&lt;&amp;&#39;a str&gt;</a></li><li><a href="#impl-TryFrom%3CParts%3E-for-Uri">TryFrom&lt;Parts&gt;</a></li><li><a href="#impl-TryFrom%3CString%3E-for-Uri">TryFrom&lt;String&gt;</a></li><li><a href="#impl-TryFrom%3CVec%3Cu8%2C%20Global%3E%3E-for-Uri">TryFrom&lt;Vec&lt;u8, Global&gt;&gt;</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-Uri">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Uri">Send</a></li><li><a href="#impl-Sync-for-Uri">Sync</a></li><li><a href="#impl-Unpin-for-Uri">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Uri">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-Uri">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-Uri">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-Uri">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-Equivalent%3CK%3E-for-Uri">Equivalent&lt;K&gt;</a></li><li><a href="#impl-From%3CT%3E-for-Uri">From&lt;T&gt;</a></li><li><a href="#impl-Instrument-for-Uri">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-Uri">Into&lt;U&gt;</a></li><li><a href="#impl-IntoRequest%3CT%3E-for-Uri">IntoRequest&lt;T&gt;</a></li><li><a href="#impl-ToOwned-for-Uri">ToOwned</a></li><li><a href="#impl-ToString-for-Uri">ToString</a></li><li><a href="#impl-TryFrom%3CU%3E-for-Uri">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-Uri">TryInto&lt;U&gt;</a></li><li><a href="#impl-VZip%3CV%3E-for-Uri">VZip&lt;V&gt;</a></li><li><a href="#impl-WithSubscriber-for-Uri">WithSubscriber</a></li></ul></section><h2><a href="index.html">In teaclave_rpc::transport</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Struct <a href="../index.html">teaclave_rpc</a>::<wbr><a href="index.html">transport</a>::<wbr><a class="struct" href="#">Uri</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/http/uri/mod.rs.html#96">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="item-decl"><pre class="rust struct"><code>pub struct Uri { /* private fields */ }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The URI component of a request.</p>
<p>For HTTP 1, this is included as part of the request line. From Section 5.3,
Request Target:</p>
<blockquote>
<p>Once an inbound connection is obtained, the client sends an HTTP
request message (Section 3) with a request-target derived from the
target URI. There are four distinct formats for the request-target,
depending on both the method being requested and whether the request
is to a proxy.</p>
<div class="example-wrap"><pre class="language-notrust"><code>request-target = origin-form
/ absolute-form
/ authority-form
/ asterisk-form</code></pre></div></blockquote>
<p>The URI is structured as follows:</p>
<div class="example-wrap"><pre class="language-notrust"><code>abc://username:password@example.com:123/path/data?key=value&amp;key2=value2#fragid1
|-| |-------------------------------||--------| |-------------------| |-----|
| | | | |
scheme authority path query fragment</code></pre></div>
<p>For HTTP 2.0, the URI is encoded using pseudoheaders.</p>
<h2 id="examples"><a href="#examples">Examples</a></h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>http::Uri;
<span class="kw">let </span>uri = <span class="string">&quot;/foo/bar?baz&quot;</span>.parse::&lt;Uri&gt;().unwrap();
<span class="macro">assert_eq!</span>(uri.path(), <span class="string">&quot;/foo/bar&quot;</span>);
<span class="macro">assert_eq!</span>(uri.query(), <span class="prelude-val">Some</span>(<span class="string">&quot;baz&quot;</span>));
<span class="macro">assert_eq!</span>(uri.host(), <span class="prelude-val">None</span>);
<span class="kw">let </span>uri = <span class="string">&quot;https://www.rust-lang.org/install.html&quot;</span>.parse::&lt;Uri&gt;().unwrap();
<span class="macro">assert_eq!</span>(uri.scheme_str(), <span class="prelude-val">Some</span>(<span class="string">&quot;https&quot;</span>));
<span class="macro">assert_eq!</span>(uri.host(), <span class="prelude-val">Some</span>(<span class="string">&quot;www.rust-lang.org&quot;</span>));
<span class="macro">assert_eq!</span>(uri.path(), <span class="string">&quot;/install.html&quot;</span>);</code></pre></div>
</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#182">source</a><a href="#impl-Uri" class="anchor"></a><h3 class="code-header">impl <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.builder" class="method has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#200">source</a><h4 class="code-header">pub fn <a href="#method.builder" class="fnname">builder</a>() -&gt; <a class="struct" href="../../http/uri/builder/struct.Builder.html" title="struct http::uri::builder::Builder">Builder</a></h4></section></summary><div class="docblock"><p>Creates a new builder-style object to manufacture a <code>Uri</code>.</p>
<p>This method returns an instance of <code>Builder</code> which can be usd to
create a <code>Uri</code>.</p>
<h5 id="examples-1"><a href="#examples-1">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>http::Uri;
<span class="kw">let </span>uri = Uri::builder()
.scheme(<span class="string">&quot;https&quot;</span>)
.authority(<span class="string">&quot;hyper.rs&quot;</span>)
.path_and_query(<span class="string">&quot;/&quot;</span>)
.build()
.unwrap();</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_parts" class="method has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#238">source</a><h4 class="code-header">pub fn <a href="#method.from_parts" class="fnname">from_parts</a>(src: <a class="struct" href="../../http/uri/struct.Parts.html" title="struct http::uri::Parts">Parts</a>) -&gt; Result&lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>, <a class="struct" href="../../http/uri/struct.InvalidUriParts.html" title="struct http::uri::InvalidUriParts">InvalidUriParts</a>&gt;</h4></section></summary><div class="docblock"><p>Attempt to convert a <code>Parts</code> into a <code>Uri</code>.</p>
<h5 id="examples-2"><a href="#examples-2">Examples</a></h5>
<p>Relative URI</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>parts = Parts::default();
parts.path_and_query = <span class="prelude-val">Some</span>(<span class="string">&quot;/foo&quot;</span>.parse().unwrap());
<span class="kw">let </span>uri = Uri::from_parts(parts).unwrap();
<span class="macro">assert_eq!</span>(uri.path(), <span class="string">&quot;/foo&quot;</span>);
<span class="macro">assert!</span>(uri.scheme().is_none());
<span class="macro">assert!</span>(uri.authority().is_none());</code></pre></div>
<p>Absolute URI</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>parts = Parts::default();
parts.scheme = <span class="prelude-val">Some</span>(<span class="string">&quot;http&quot;</span>.parse().unwrap());
parts.authority = <span class="prelude-val">Some</span>(<span class="string">&quot;foo.com&quot;</span>.parse().unwrap());
parts.path_and_query = <span class="prelude-val">Some</span>(<span class="string">&quot;/foo&quot;</span>.parse().unwrap());
<span class="kw">let </span>uri = Uri::from_parts(parts).unwrap();
<span class="macro">assert_eq!</span>(uri.scheme().unwrap().as_str(), <span class="string">&quot;http&quot;</span>);
<span class="macro">assert_eq!</span>(uri.authority().unwrap(), <span class="string">&quot;foo.com&quot;</span>);
<span class="macro">assert_eq!</span>(uri.path(), <span class="string">&quot;/foo&quot;</span>);</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_maybe_shared" class="method has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#281-283">source</a><h4 class="code-header">pub fn <a href="#method.from_maybe_shared" class="fnname">from_maybe_shared</a>&lt;T&gt;(src: T) -&gt; Result&lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>, <a class="struct" href="../../http/uri/struct.InvalidUri.html" title="struct http::uri::InvalidUri">InvalidUri</a>&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + AsRef&lt;[u8]&gt;,</span></h4></section></summary><div class="docblock"><p>Attempt to convert a <code>Bytes</code> buffer to a <code>Uri</code>.</p>
<p>This will try to prevent a copy if the type passed is the type used
internally, and will copy the data if it is not.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_static" class="method has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#361">source</a><h4 class="code-header">pub fn <a href="#method.from_static" class="fnname">from_static</a>(src: &amp;'static str) -&gt; <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h4></section></summary><div class="docblock"><p>Convert a <code>Uri</code> from a static string.</p>
<p>This function will not perform any copying, however the string is
checked to ensure that it is valid.</p>
<h5 id="panics"><a href="#panics">Panics</a></h5>
<p>This function panics if the argument is an invalid URI.</p>
<h5 id="examples-3"><a href="#examples-3">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>uri = Uri::from_static(<span class="string">&quot;http://example.com/foo&quot;</span>);
<span class="macro">assert_eq!</span>(uri.host().unwrap(), <span class="string">&quot;example.com&quot;</span>);
<span class="macro">assert_eq!</span>(uri.path(), <span class="string">&quot;/foo&quot;</span>);</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_parts" class="method has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#390">source</a><h4 class="code-header">pub fn <a href="#method.into_parts" class="fnname">into_parts</a>(self) -&gt; <a class="struct" href="../../http/uri/struct.Parts.html" title="struct http::uri::Parts">Parts</a></h4></section></summary><div class="docblock"><p>Convert a <code>Uri</code> into <code>Parts</code>.</p>
<h5 id="note"><a href="#note">Note</a></h5>
<p>This is just an inherent method providing the same functionality as
<code>let parts: Parts = uri.into()</code></p>
<h5 id="examples-4"><a href="#examples-4">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>uri: Uri = <span class="string">&quot;/foo&quot;</span>.parse().unwrap();
<span class="kw">let </span>parts = uri.into_parts();
<span class="macro">assert_eq!</span>(parts.path_and_query.unwrap(), <span class="string">&quot;/foo&quot;</span>);
<span class="macro">assert!</span>(parts.scheme.is_none());
<span class="macro">assert!</span>(parts.authority.is_none());</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.path_and_query" class="method has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#396">source</a><h4 class="code-header">pub fn <a href="#method.path_and_query" class="fnname">path_and_query</a>(&amp;self) -&gt; Option&lt;&amp;<a class="struct" href="../../http/uri/path/struct.PathAndQuery.html" title="struct http::uri::path::PathAndQuery">PathAndQuery</a>&gt;</h4></section></summary><div class="docblock"><p>Returns the path &amp; query components of the Uri</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.path" class="method has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#439">source</a><h4 class="code-header">pub fn <a href="#method.path" class="fnname">path</a>(&amp;self) -&gt; &amp;str</h4></section></summary><div class="docblock"><p>Get the path of this <code>Uri</code>.</p>
<p>Both relative and absolute URIs contain a path component, though it
might be the empty string. The path component is <strong>case sensitive</strong>.</p>
<div class="example-wrap"><pre class="language-notrust"><code>abc://username:password@example.com:123/path/data?key=value&amp;key2=value2#fragid1
|--------|
|
path</code></pre></div>
<p>If the URI is <code>*</code> then the path component is equal to <code>*</code>.</p>
<h5 id="examples-5"><a href="#examples-5">Examples</a></h5>
<p>A relative URI</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code>
<span class="kw">let </span>uri: Uri = <span class="string">&quot;/hello/world&quot;</span>.parse().unwrap();
<span class="macro">assert_eq!</span>(uri.path(), <span class="string">&quot;/hello/world&quot;</span>);</code></pre></div>
<p>An absolute URI</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>uri: Uri = <span class="string">&quot;http://example.org/hello/world&quot;</span>.parse().unwrap();
<span class="macro">assert_eq!</span>(uri.path(), <span class="string">&quot;/hello/world&quot;</span>);</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.scheme" class="method has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#483">source</a><h4 class="code-header">pub fn <a href="#method.scheme" class="fnname">scheme</a>(&amp;self) -&gt; Option&lt;&amp;<a class="struct" href="../../http/uri/scheme/struct.Scheme.html" title="struct http::uri::scheme::Scheme">Scheme</a>&gt;</h4></section></summary><div class="docblock"><p>Get the scheme of this <code>Uri</code>.</p>
<p>The URI scheme refers to a specification for assigning identifiers
within that scheme. Only absolute URIs contain a scheme component, but
not all absolute URIs will contain a scheme component. Although scheme
names are case-insensitive, the canonical form is lowercase.</p>
<div class="example-wrap"><pre class="language-notrust"><code>abc://username:password@example.com:123/path/data?key=value&amp;key2=value2#fragid1
|-|
|
scheme</code></pre></div><h5 id="examples-6"><a href="#examples-6">Examples</a></h5>
<p>Absolute URI</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>http::uri::{Scheme, Uri};
<span class="kw">let </span>uri: Uri = <span class="string">&quot;http://example.org/hello/world&quot;</span>.parse().unwrap();
<span class="macro">assert_eq!</span>(uri.scheme(), <span class="prelude-val">Some</span>(<span class="kw-2">&amp;</span>Scheme::HTTP));</code></pre></div>
<p>Relative URI</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>uri: Uri = <span class="string">&quot;/hello/world&quot;</span>.parse().unwrap();
<span class="macro">assert!</span>(uri.scheme().is_none());</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.scheme_str" class="method has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#502">source</a><h4 class="code-header">pub fn <a href="#method.scheme_str" class="fnname">scheme_str</a>(&amp;self) -&gt; Option&lt;&amp;str&gt;</h4></section></summary><div class="docblock"><p>Get the scheme of this <code>Uri</code> as a <code>&amp;str</code>.</p>
<h5 id="example"><a href="#example">Example</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>uri: Uri = <span class="string">&quot;http://example.org/hello/world&quot;</span>.parse().unwrap();
<span class="macro">assert_eq!</span>(uri.scheme_str(), <span class="prelude-val">Some</span>(<span class="string">&quot;http&quot;</span>));</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.authority" class="method has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#548">source</a><h4 class="code-header">pub fn <a href="#method.authority" class="fnname">authority</a>(&amp;self) -&gt; Option&lt;&amp;<a class="struct" href="../../http/uri/authority/struct.Authority.html" title="struct http::uri::authority::Authority">Authority</a>&gt;</h4></section></summary><div class="docblock"><p>Get the authority of this <code>Uri</code>.</p>
<p>The authority is a hierarchical element for naming authority such that
the remainder of the URI is delegated to that authority. For HTTP, the
authority consists of the host and port. The host portion of the
authority is <strong>case-insensitive</strong>.</p>
<p>The authority also includes a <code>username:password</code> component, however
the use of this is deprecated and should be avoided.</p>
<div class="example-wrap"><pre class="language-notrust"><code>abc://username:password@example.com:123/path/data?key=value&amp;key2=value2#fragid1
|-------------------------------|
|
authority</code></pre></div><h5 id="examples-7"><a href="#examples-7">Examples</a></h5>
<p>Absolute URI</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>uri: Uri = <span class="string">&quot;http://example.org:80/hello/world&quot;</span>.parse().unwrap();
<span class="macro">assert_eq!</span>(uri.authority().map(|a| a.as_str()), <span class="prelude-val">Some</span>(<span class="string">&quot;example.org:80&quot;</span>));</code></pre></div>
<p>Relative URI</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>uri: Uri = <span class="string">&quot;/hello/world&quot;</span>.parse().unwrap();
<span class="macro">assert!</span>(uri.authority().is_none());</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.host" class="method has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#590">source</a><h4 class="code-header">pub fn <a href="#method.host" class="fnname">host</a>(&amp;self) -&gt; Option&lt;&amp;str&gt;</h4></section></summary><div class="docblock"><p>Get the host of this <code>Uri</code>.</p>
<p>The host subcomponent of authority is identified by an IP literal
encapsulated within square brackets, an IPv4 address in dotted- decimal
form, or a registered name. The host subcomponent is <strong>case-insensitive</strong>.</p>
<div class="example-wrap"><pre class="language-notrust"><code>abc://username:password@example.com:123/path/data?key=value&amp;key2=value2#fragid1
|---------|
|
host</code></pre></div><h5 id="examples-8"><a href="#examples-8">Examples</a></h5>
<p>Absolute URI</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>uri: Uri = <span class="string">&quot;http://example.org:80/hello/world&quot;</span>.parse().unwrap();
<span class="macro">assert_eq!</span>(uri.host(), <span class="prelude-val">Some</span>(<span class="string">&quot;example.org&quot;</span>));</code></pre></div>
<p>Relative URI</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>uri: Uri = <span class="string">&quot;/hello/world&quot;</span>.parse().unwrap();
<span class="macro">assert!</span>(uri.host().is_none());</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.port" class="method has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#637">source</a><h4 class="code-header">pub fn <a href="#method.port" class="fnname">port</a>(&amp;self) -&gt; Option&lt;<a class="struct" href="../../http/uri/port/struct.Port.html" title="struct http::uri::port::Port">Port</a>&lt;&amp;str&gt;&gt;</h4></section></summary><div class="docblock"><p>Get the port part of this <code>Uri</code>.</p>
<p>The port subcomponent of authority is designated by an optional port
number following the host and delimited from it by a single colon (“:”)
character. It can be turned into a decimal port number with the <code>as_u16</code>
method or as a <code>str</code> with the <code>as_str</code> method.</p>
<div class="example-wrap"><pre class="language-notrust"><code>abc://username:password@example.com:123/path/data?key=value&amp;key2=value2#fragid1
|-|
|
port</code></pre></div><h5 id="examples-9"><a href="#examples-9">Examples</a></h5>
<p>Absolute URI with port</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>uri: Uri = <span class="string">&quot;http://example.org:80/hello/world&quot;</span>.parse().unwrap();
<span class="kw">let </span>port = uri.port().unwrap();
<span class="macro">assert_eq!</span>(port.as_u16(), <span class="number">80</span>);</code></pre></div>
<p>Absolute URI without port</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>uri: Uri = <span class="string">&quot;http://example.org/hello/world&quot;</span>.parse().unwrap();
<span class="macro">assert!</span>(uri.port().is_none());</code></pre></div>
<p>Relative URI</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>uri: Uri = <span class="string">&quot;/hello/world&quot;</span>.parse().unwrap();
<span class="macro">assert!</span>(uri.port().is_none());</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.port_u16" class="method has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#652">source</a><h4 class="code-header">pub fn <a href="#method.port_u16" class="fnname">port_u16</a>(&amp;self) -&gt; Option&lt;u16&gt;</h4></section></summary><div class="docblock"><p>Get the port of this <code>Uri</code> as a <code>u16</code>.</p>
<h5 id="example-1"><a href="#example-1">Example</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>uri: Uri = <span class="string">&quot;http://example.org:80/hello/world&quot;</span>.parse().unwrap();
<span class="macro">assert_eq!</span>(uri.port_u16(), <span class="prelude-val">Some</span>(<span class="number">80</span>));</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.query" class="method has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#700">source</a><h4 class="code-header">pub fn <a href="#method.query" class="fnname">query</a>(&amp;self) -&gt; Option&lt;&amp;str&gt;</h4></section></summary><div class="docblock"><p>Get the query string of this <code>Uri</code>, starting after the <code>?</code>.</p>
<p>The query component contains non-hierarchical data that, along with data
in the path component, serves to identify a resource within the scope of
the URI’s scheme and naming authority (if any). The query component is
indicated by the first question mark (“?”) character and terminated by a
number sign (“#”) character or by the end of the URI.</p>
<div class="example-wrap"><pre class="language-notrust"><code>abc://username:password@example.com:123/path/data?key=value&amp;key2=value2#fragid1
|-------------------|
|
query</code></pre></div><h5 id="examples-10"><a href="#examples-10">Examples</a></h5>
<p>Absolute URI</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>uri: Uri = <span class="string">&quot;http://example.org/hello/world?key=value&quot;</span>.parse().unwrap();
<span class="macro">assert_eq!</span>(uri.query(), <span class="prelude-val">Some</span>(<span class="string">&quot;key=value&quot;</span>));</code></pre></div>
<p>Relative URI with a query string component</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>uri: Uri = <span class="string">&quot;/hello/world?key=value&amp;foo=bar&quot;</span>.parse().unwrap();
<span class="macro">assert_eq!</span>(uri.query(), <span class="prelude-val">Some</span>(<span class="string">&quot;key=value&amp;foo=bar&quot;</span>));</code></pre></div>
<p>Relative URI without a query string component</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>uri: Uri = <span class="string">&quot;/hello/world&quot;</span>.parse().unwrap();
<span class="macro">assert!</span>(uri.query().is_none());</code></pre></div>
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#95">source</a><a href="#impl-Clone-for-Uri" class="anchor"></a><h3 class="code-header">impl Clone for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#95">source</a><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">clone_from</a>(&amp;mut self, source: &amp;Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#1045">source</a><a href="#impl-Debug-for-Uri" class="anchor"></a><h3 class="code-header">impl Debug for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#1046">source</a><a href="#method.fmt-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">fmt</a>(&amp;self, f: &amp;mut Formatter&lt;'_&gt;) -&gt; Result&lt;(), Error&gt;</h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Default-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#1014">source</a><a href="#impl-Default-for-Uri" class="anchor"></a><h3 class="code-header">impl Default for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="docblock"><p>Returns a <code>Uri</code> representing <code>/</code></p>
</div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.default" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#1016">source</a><a href="#method.default" class="anchor"></a><h4 class="code-header">fn <a class="fnname">default</a>() -&gt; <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h4></section></summary><div class='docblock'>Returns the “default value” for a type. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Display-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#1025">source</a><a href="#impl-Display-for-Uri" class="anchor"></a><h3 class="code-header">impl Display for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#1026">source</a><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a class="fnname">fmt</a>(&amp;self, f: &amp;mut Formatter&lt;'_&gt;) -&gt; Result&lt;(), Error&gt;</h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CAuthority%3E-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#773">source</a><a href="#impl-From%3CAuthority%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl From&lt;<a class="struct" href="../../http/uri/authority/struct.Authority.html" title="struct http::uri::authority::Authority">Authority</a>&gt; for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="docblock"><p>Convert an <code>Authority</code> into a <code>Uri</code>.</p>
</div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#774">source</a><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(authority: <a class="struct" href="../../http/uri/authority/struct.Authority.html" title="struct http::uri::authority::Authority">Authority</a>) -&gt; <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CPathAndQuery%3E-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#784">source</a><a href="#impl-From%3CPathAndQuery%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl From&lt;<a class="struct" href="../../http/uri/path/struct.PathAndQuery.html" title="struct http::uri::path::PathAndQuery">PathAndQuery</a>&gt; for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="docblock"><p>Convert a <code>PathAndQuery</code> into a <code>Uri</code>.</p>
</div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#785">source</a><a href="#method.from-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(path_and_query: <a class="struct" href="../../http/uri/path/struct.PathAndQuery.html" title="struct http::uri::path::PathAndQuery">PathAndQuery</a>) -&gt; <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-From%3CUri%3E-for-Endpoint" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/transport/channel/endpoint.rs.html#382">source</a><a href="#impl-From%3CUri%3E-for-Endpoint" class="anchor"></a><h3 class="code-header">impl From&lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>&gt; for <a class="struct" href="struct.Endpoint.html" title="struct teaclave_rpc::transport::Endpoint">Endpoint</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/transport/channel/endpoint.rs.html#383">source</a><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(uri: <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>) -&gt; <a class="struct" href="struct.Endpoint.html" title="struct teaclave_rpc::transport::Endpoint">Endpoint</a></h4></section></summary><div class='docblock'>Converts to this type from the input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-FromStr-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#883">source</a><a href="#impl-FromStr-for-Uri" class="anchor"></a><h3 class="code-header">impl FromStr for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Err" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Err" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Err</a> = <a class="struct" href="../../http/uri/struct.InvalidUri.html" title="struct http::uri::InvalidUri">InvalidUri</a></h4></section></summary><div class='docblock'>The associated error which can be returned from parsing.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_str" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#887">source</a><a href="#method.from_str" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from_str</a>(s: &amp;str) -&gt; Result&lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>, <a class="struct" href="../../http/uri/struct.InvalidUri.html" title="struct http::uri::InvalidUri">InvalidUri</a>&gt;</h4></section></summary><div class='docblock'>Parses a string <code>s</code> to return a value of this type. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Hash-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#1097">source</a><a href="#impl-Hash-for-Uri" class="anchor"></a><h3 class="code-header">impl Hash for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hash" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#1098-1100">source</a><a href="#method.hash" class="anchor"></a><h4 class="code-header">fn <a class="fnname">hash</a>&lt;H&gt;(&amp;self, state: &amp;mut H)<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;H: Hasher,</span></h4></section></summary><div class='docblock'>Feeds this value into the given [<code>Hasher</code>]. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.hash_slice" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.3.0">1.3.0</span><a href="#method.hash_slice" class="anchor"></a><h4 class="code-header">fn <a class="fnname">hash_slice</a>&lt;H&gt;(data: &amp;[Self], state: &amp;mut H)<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;H: Hasher,</span></h4></section></summary><div class='docblock'>Feeds a slice of this type into the given [<code>Hasher</code>]. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3C%26%27a%20str%3E-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#999">source</a><a href="#impl-PartialEq%3C%26%27a%20str%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;'a&gt; PartialEq&lt;&amp;'a str&gt; for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#1000">source</a><a href="#method.eq-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">eq</a>(&amp;self, other: &amp;&amp;'a str) -&gt; bool</h4></section></summary><div class='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne-2" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ne-2" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ne</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests for <code>!=</code>. The default implementation is almost always
sufficient, and should not be overridden without very good reason. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CUri%3E-for-%26%27a%20str" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#1005">source</a><a href="#impl-PartialEq%3CUri%3E-for-%26%27a%20str" class="anchor"></a><h3 class="code-header">impl&lt;'a&gt; PartialEq&lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>&gt; for &amp;'a str</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#1006">source</a><a href="#method.eq-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">eq</a>(&amp;self, uri: &amp;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>) -&gt; bool</h4></section></summary><div class='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne-4" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ne-4" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ne</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests for <code>!=</code>. The default implementation is almost always
sufficient, and should not be overridden without very good reason. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CUri%3E-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#892">source</a><a href="#impl-PartialEq%3CUri%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl PartialEq&lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>&gt; for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#893">source</a><a href="#method.eq" class="anchor"></a><h4 class="code-header">fn <a class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>) -&gt; bool</h4></section></summary><div class='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ne" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ne</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests for <code>!=</code>. The default implementation is almost always
sufficient, and should not be overridden without very good reason. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CUri%3E-for-str" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#993">source</a><a href="#impl-PartialEq%3CUri%3E-for-str" class="anchor"></a><h3 class="code-header">impl PartialEq&lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>&gt; for str</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#994">source</a><a href="#method.eq-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">eq</a>(&amp;self, uri: &amp;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>) -&gt; bool</h4></section></summary><div class='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne-1" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ne-1" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ne</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests for <code>!=</code>. The default implementation is almost always
sufficient, and should not be overridden without very good reason. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3Cstr%3E-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#914">source</a><a href="#impl-PartialEq%3Cstr%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl PartialEq&lt;str&gt; for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#915">source</a><a href="#method.eq-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">eq</a>(&amp;self, other: &amp;str) -&gt; bool</h4></section></summary><div class='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ne-3" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.0.0">1.0.0</span><a href="#method.ne-3" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ne</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests for <code>!=</code>. The default implementation is almost always
sufficient, and should not be overridden without very good reason. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-TryFrom%3C%26%27a%20%5Bu8%5D%3E-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#709">source</a><a href="#impl-TryFrom%3C%26%27a%20%5Bu8%5D%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;'a&gt; TryFrom&lt;&amp;'a [u8]&gt; for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-2" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = <a class="struct" href="../../http/uri/struct.InvalidUri.html" title="struct http::uri::InvalidUri">InvalidUri</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#713">source</a><a href="#method.try_from-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(t: &amp;'a [u8]) -&gt; Result&lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>, &lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a> as TryFrom&lt;&amp;'a [u8]&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-TryFrom%3C%26%27a%20String%3E-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#727">source</a><a href="#impl-TryFrom%3C%26%27a%20String%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;'a&gt; TryFrom&lt;&amp;'a String&gt; for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = <a class="struct" href="../../http/uri/struct.InvalidUri.html" title="struct http::uri::InvalidUri">InvalidUri</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#731">source</a><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(t: &amp;'a String) -&gt; Result&lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>, &lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a> as TryFrom&lt;&amp;'a String&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-TryFrom%3C%26%27a%20Uri%3E-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#763">source</a><a href="#impl-TryFrom%3C%26%27a%20Uri%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;'a&gt; TryFrom&lt;&amp;'a <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>&gt; for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-4" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-4" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = <a class="struct" href="../../http/error/struct.Error.html" title="struct http::error::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#767">source</a><a href="#method.try_from-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(src: &amp;'a <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>) -&gt; Result&lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>, &lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a> as TryFrom&lt;&amp;'a <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-TryFrom%3C%26%27a%20str%3E-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#718">source</a><a href="#impl-TryFrom%3C%26%27a%20str%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;'a&gt; TryFrom&lt;&amp;'a str&gt; for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-3" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-3" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = <a class="struct" href="../../http/uri/struct.InvalidUri.html" title="struct http::uri::InvalidUri">InvalidUri</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#722">source</a><a href="#method.try_from-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(t: &amp;'a str) -&gt; Result&lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>, &lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a> as TryFrom&lt;&amp;'a str&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-TryFrom%3CParts%3E-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#754">source</a><a href="#impl-TryFrom%3CParts%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl TryFrom&lt;<a class="struct" href="../../http/uri/struct.Parts.html" title="struct http::uri::Parts">Parts</a>&gt; for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = <a class="struct" href="../../http/uri/struct.InvalidUriParts.html" title="struct http::uri::InvalidUriParts">InvalidUriParts</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#758">source</a><a href="#method.try_from-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(src: <a class="struct" href="../../http/uri/struct.Parts.html" title="struct http::uri::Parts">Parts</a>) -&gt; Result&lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>, &lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a> as TryFrom&lt;<a class="struct" href="../../http/uri/struct.Parts.html" title="struct http::uri::Parts">Parts</a>&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-TryFrom%3CString%3E-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#736">source</a><a href="#impl-TryFrom%3CString%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl TryFrom&lt;String&gt; for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-6" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-6" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = <a class="struct" href="../../http/uri/struct.InvalidUri.html" title="struct http::uri::InvalidUri">InvalidUri</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#740">source</a><a href="#method.try_from-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(t: String) -&gt; Result&lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>, &lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a> as TryFrom&lt;String&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-TryFrom%3CVec%3Cu8%2C%20Global%3E%3E-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#745">source</a><a href="#impl-TryFrom%3CVec%3Cu8%2C%20Global%3E%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;'a&gt; TryFrom&lt;Vec&lt;u8, Global&gt;&gt; for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-5" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-5" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = <a class="struct" href="../../http/uri/struct.InvalidUri.html" title="struct http::uri::InvalidUri">InvalidUri</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#749">source</a><a href="#method.try_from-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;vec: Vec&lt;u8, Global&gt;<br>) -&gt; Result&lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a>, &lt;<a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a> as TryFrom&lt;Vec&lt;u8, Global&gt;&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><section id="impl-Eq-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/http/uri/mod.rs.html#1011">source</a><a href="#impl-Eq-for-Uri" class="anchor"></a><h3 class="code-header">impl Eq for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-Uri" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-Uri" class="anchor"></a><h3 class="code-header">impl RefUnwindSafe for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section><section id="impl-Send-for-Uri" class="impl has-srclink"><a href="#impl-Send-for-Uri" class="anchor"></a><h3 class="code-header">impl Send for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section><section id="impl-Sync-for-Uri" class="impl has-srclink"><a href="#impl-Sync-for-Uri" class="anchor"></a><h3 class="code-header">impl Sync for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section><section id="impl-Unpin-for-Uri" class="impl has-srclink"><a href="#impl-Unpin-for-Uri" class="anchor"></a><h3 class="code-header">impl Unpin for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section><section id="impl-UnwindSafe-for-Uri" class="impl has-srclink"><a href="#impl-UnwindSafe-for-Uri" class="anchor"></a><h3 class="code-header">impl UnwindSafe for <a class="struct" href="struct.Uri.html" title="struct teaclave_rpc::transport::Uri">Uri</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-Uri" class="impl has-srclink"><a href="#impl-Any-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; Any for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a class="fnname">type_id</a>(&amp;self) -&gt; TypeId</h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-Uri" class="impl has-srclink"><a href="#impl-Borrow%3CT%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; Borrow&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow</a>(&amp;self) -&gt; &amp;T</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-Uri" class="impl has-srclink"><a href="#impl-BorrowMut%3CT%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; BorrowMut&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow_mut</a>(&amp;mut self) -&gt; &amp;mut T</h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Equivalent%3CK%3E-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/indexmap/equivalent.rs.html#18">source</a><a href="#impl-Equivalent%3CK%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;Q, K&gt; <a class="trait" href="../../indexmap/equivalent/trait.Equivalent.html" title="trait indexmap::equivalent::Equivalent">Equivalent</a>&lt;K&gt; for Q<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Q: Eq + ?Sized,<br>&nbsp;&nbsp;&nbsp;&nbsp;K: Borrow&lt;Q&gt; + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.equivalent" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/indexmap/equivalent.rs.html#24">source</a><a href="#method.equivalent" class="anchor"></a><h4 class="code-header">fn <a href="../../indexmap/equivalent/trait.Equivalent.html#tymethod.equivalent" class="fnname">equivalent</a>(&amp;self, key: &amp;K) -&gt; bool</h4></section></summary><div class='docblock'>Compare self to <code>key</code> and return <code>true</code> if they are equal.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-Uri" class="impl has-srclink"><a href="#impl-From%3CT%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; From&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from-3" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.from-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Instrument-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/tracing/instrument.rs.html#276">source</a><a href="#impl-Instrument-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../../tracing/instrument/trait.Instrument.html" title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tracing/instrument.rs.html#82">source</a><a href="#method.instrument" class="anchor"></a><h4 class="code-header">fn <a href="../../tracing/instrument/trait.Instrument.html#method.instrument" class="fnname">instrument</a>(self, span: <a class="struct" href="../../tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -&gt; <a class="struct" href="../../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the provided <a href="../../tracing/span/struct.Span.html" title="Span"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a href="../../tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tracing/instrument.rs.html#121">source</a><a href="#method.in_current_span" class="anchor"></a><h4 class="code-header">fn <a href="../../tracing/instrument/trait.Instrument.html#method.in_current_span" class="fnname">in_current_span</a>(self) -&gt; <a class="struct" href="../../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the <a href="../../tracing/span/struct.Span.html#method.current">current</a> <a href="../../tracing/span/struct.Span.html"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a href="../../tracing/instrument/trait.Instrument.html#method.in_current_span">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-Uri" class="impl has-srclink"><a href="#impl-Into%3CU%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; Into&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: From&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code>[From]&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-IntoRequest%3CT%3E-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/request.rs.html#346">source</a><a href="#impl-IntoRequest%3CT%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../trait.IntoRequest.html" title="trait teaclave_rpc::IntoRequest">IntoRequest</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_request" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/request.rs.html#347">source</a><a href="#method.into_request" class="anchor"></a><h4 class="code-header">fn <a href="../trait.IntoRequest.html#tymethod.into_request" class="fnname">into_request</a>(self) -&gt; <a class="struct" href="../struct.Request.html" title="struct teaclave_rpc::Request">Request</a>&lt;T&gt;</h4></section></summary><div class='docblock'>Wrap the input message <code>T</code> in a <code>tonic::Request</code></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ToOwned-for-Uri" class="impl has-srclink"><a href="#impl-ToOwned-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; ToOwned for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Clone,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Owned" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl has-srclink"><a href="#method.to_owned" class="anchor"></a><h4 class="code-header">fn <a class="fnname">to_owned</a>(&amp;self) -&gt; T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl has-srclink"><a href="#method.clone_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">clone_into</a>(&amp;self, target: &amp;mut T)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ToString-for-Uri" class="impl has-srclink"><a href="#impl-ToString-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; ToString for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Display + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_string" class="method trait-impl has-srclink"><a href="#method.to_string" class="anchor"></a><h4 class="code-header">default fn <a class="fnname">to_string</a>(&amp;self) -&gt; String</h4></section></summary><div class='docblock'>Converts the given value to a <code>String</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-Uri" class="impl has-srclink"><a href="#impl-TryFrom%3CU%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; TryFrom&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: Into&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-8" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-8" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = Infallible</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from-7" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_from-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(value: U) -&gt; Result&lt;T, &lt;T as TryFrom&lt;U&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-Uri" class="impl has-srclink"><a href="#impl-TryInto%3CU%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; TryInto&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: TryFrom&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-7" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-7" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = &lt;U as TryFrom&lt;T&gt;&gt;::Error</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_into</a>(self) -&gt; Result&lt;U, &lt;U as TryFrom&lt;T&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/ppv_lite86/types.rs.html#221">source</a><a href="#impl-VZip%3CV%3E-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;V, T&gt; <a class="trait" href="../../ppv_lite86/types/trait.VZip.html" title="trait ppv_lite86::types::VZip">VZip</a>&lt;V&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="../../ppv_lite86/types/trait.MultiLane.html" title="trait ppv_lite86::types::MultiLane">MultiLane</a>&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ppv_lite86/types.rs.html#226">source</a><a href="#method.vzip" class="anchor"></a><h4 class="code-header">fn <a href="../../ppv_lite86/types/trait.VZip.html#tymethod.vzip" class="fnname">vzip</a>(self) -&gt; V</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-Uri" class="impl has-srclink"><a class="srclink rightside" href="../../src/tracing/instrument.rs.html#334">source</a><a href="#impl-WithSubscriber-for-Uri" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../../tracing/instrument/trait.WithSubscriber.html" title="trait tracing::instrument::WithSubscriber">WithSubscriber</a> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tracing/instrument.rs.html#169-171">source</a><a href="#method.with_subscriber" class="anchor"></a><h4 class="code-header">fn <a href="../../tracing/instrument/trait.WithSubscriber.html#method.with_subscriber" class="fnname">with_subscriber</a>&lt;S&gt;(self, subscriber: S) -&gt; <a class="struct" href="../../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;Self&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: Into&lt;<a class="struct" href="../../tracing_core/dispatcher/struct.Dispatch.html" title="struct tracing_core::dispatcher::Dispatch">Dispatch</a>&gt;,</span></h4></section></summary><div class='docblock'>Attaches the provided <a href="../../tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
<a href="../../tracing/instrument/struct.WithDispatch.html" title="WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="../../tracing/instrument/trait.WithSubscriber.html#method.with_subscriber">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tracing/instrument.rs.html#221">source</a><a href="#method.with_current_subscriber" class="anchor"></a><h4 class="code-header">fn <a href="../../tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber" class="fnname">with_current_subscriber</a>(self) -&gt; <a class="struct" href="../../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;Self&gt;</h4></section></summary><div class='docblock'>Attaches the current <a href="../../tracing/dispatcher/index.html#setting-the-default-subscriber">default</a> <a href="../../tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
<a href="../../tracing/instrument/struct.WithDispatch.html" title="WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="../../tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></div></details></div></details></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="teaclave_rpc" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html>