blob: 98b56dbc8c7403a226a96f4c7d6c468d4d1ab0ce [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="Represents a custom metadata field value."><meta name="keywords" content="rust, rustlang, rust-lang, MetadataValue"><title>MetadataValue in tonic::metadata - 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="../../tonic/index.html"><div class="logo-container"><img src="https://raw.githubusercontent.com/tokio-rs/website/master/public/img/icons/tonic.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../tonic/index.html"><div class="logo-container">
<img src="https://raw.githubusercontent.com/tokio-rs/website/master/public/img/icons/tonic.svg" alt="logo"></div></a><h2 class="location"><a href="#">MetadataValue</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block"><li><a href="#method.as_bytes">as_bytes</a></li><li><a href="#method.as_encoded_bytes">as_encoded_bytes</a></li><li><a href="#method.from_bytes">from_bytes</a></li><li><a href="#method.from_key">from_key</a></li><li><a href="#method.from_shared">from_shared</a></li><li><a href="#method.from_shared_unchecked">from_shared_unchecked</a></li><li><a href="#method.from_static">from_static</a></li><li><a href="#method.from_str">from_str</a></li><li><a href="#method.is_empty">is_empty</a></li><li><a href="#method.is_sensitive">is_sensitive</a></li><li><a href="#method.len">len</a></li><li><a href="#method.set_sensitive">set_sensitive</a></li><li><a href="#method.to_bytes">to_bytes</a></li><li><a href="#method.to_str">to_str</a></li><li><a href="#method.try_from_bytes">try_from_bytes</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-AsRef%3C%5Bu8%5D%3E-for-MetadataValue%3CVE%3E">AsRef&lt;[u8]&gt;</a></li><li><a href="#impl-Clone-for-MetadataValue%3CVE%3E">Clone</a></li><li><a href="#impl-Debug-for-MetadataValue%3CVE%3E">Debug</a></li><li><a href="#impl-Eq-for-MetadataValue%3CVE%3E">Eq</a></li><li><a href="#impl-From%3C%26%27a%20MetadataValue%3CVE%3E%3E-for-MetadataValue%3CVE%3E">From&lt;&amp;&#39;a MetadataValue&lt;VE&gt;&gt;</a></li><li><a href="#impl-From%3CMetadataValue%3CVE%3E%3E-for-Bytes">From&lt;MetadataValue&lt;VE&gt;&gt;</a></li><li><a href="#impl-Ord-for-MetadataValue%3CVE%3E">Ord</a></li><li><a href="#impl-PartialEq%3C%26%27a%20T%3E-for-MetadataValue%3CVE%3E">PartialEq&lt;&amp;&#39;a T&gt;</a></li><li><a href="#impl-PartialEq%3C%5Bu8%5D%3E-for-MetadataValue%3CVE%3E">PartialEq&lt;[u8]&gt;</a></li><li><a href="#impl-PartialEq%3CMetadataValue%3CVE%3E%3E-for-%26%27a%20MetadataValue%3CVE%3E">PartialEq&lt;MetadataValue&lt;VE&gt;&gt;</a></li><li><a href="#impl-PartialEq%3CMetadataValue%3CVE%3E%3E-for-%26%27a%20str">PartialEq&lt;MetadataValue&lt;VE&gt;&gt;</a></li><li><a href="#impl-PartialEq%3CMetadataValue%3CVE%3E%3E-for-%5Bu8%5D">PartialEq&lt;MetadataValue&lt;VE&gt;&gt;</a></li><li><a href="#impl-PartialEq%3CMetadataValue%3CVE%3E%3E-for-MetadataValue%3CVE%3E">PartialEq&lt;MetadataValue&lt;VE&gt;&gt;</a></li><li><a href="#impl-PartialEq%3CMetadataValue%3CVE%3E%3E-for-String">PartialEq&lt;MetadataValue&lt;VE&gt;&gt;</a></li><li><a href="#impl-PartialEq%3CMetadataValue%3CVE%3E%3E-for-str">PartialEq&lt;MetadataValue&lt;VE&gt;&gt;</a></li><li><a href="#impl-PartialEq%3CString%3E-for-MetadataValue%3CVE%3E">PartialEq&lt;String&gt;</a></li><li><a href="#impl-PartialEq%3Cstr%3E-for-MetadataValue%3CVE%3E">PartialEq&lt;str&gt;</a></li><li><a href="#impl-PartialOrd%3C%26%27a%20T%3E-for-MetadataValue%3CVE%3E">PartialOrd&lt;&amp;&#39;a T&gt;</a></li><li><a href="#impl-PartialOrd%3C%5Bu8%5D%3E-for-MetadataValue%3CVE%3E">PartialOrd&lt;[u8]&gt;</a></li><li><a href="#impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-%26%27a%20MetadataValue%3CVE%3E">PartialOrd&lt;MetadataValue&lt;VE&gt;&gt;</a></li><li><a href="#impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-%26%27a%20str">PartialOrd&lt;MetadataValue&lt;VE&gt;&gt;</a></li><li><a href="#impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-%5Bu8%5D">PartialOrd&lt;MetadataValue&lt;VE&gt;&gt;</a></li><li><a href="#impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-MetadataValue%3CVE%3E">PartialOrd&lt;MetadataValue&lt;VE&gt;&gt;</a></li><li><a href="#impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-String">PartialOrd&lt;MetadataValue&lt;VE&gt;&gt;</a></li><li><a href="#impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-str">PartialOrd&lt;MetadataValue&lt;VE&gt;&gt;</a></li><li><a href="#impl-PartialOrd%3CString%3E-for-MetadataValue%3CVE%3E">PartialOrd&lt;String&gt;</a></li><li><a href="#impl-PartialOrd%3Cstr%3E-for-MetadataValue%3CVE%3E">PartialOrd&lt;str&gt;</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-MetadataValue%3CVE%3E">RefUnwindSafe</a></li><li><a href="#impl-Send-for-MetadataValue%3CVE%3E">Send</a></li><li><a href="#impl-Sync-for-MetadataValue%3CVE%3E">Sync</a></li><li><a href="#impl-Unpin-for-MetadataValue%3CVE%3E">Unpin</a></li><li><a href="#impl-UnwindSafe-for-MetadataValue%3CVE%3E">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-MetadataValue%3CVE%3E">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-MetadataValue%3CVE%3E">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-MetadataValue%3CVE%3E">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-Equivalent%3CK%3E-for-MetadataValue%3CVE%3E">Equivalent&lt;K&gt;</a></li><li><a href="#impl-From%3CT%3E-for-MetadataValue%3CVE%3E">From&lt;T&gt;</a></li><li><a href="#impl-Instrument-for-MetadataValue%3CVE%3E">Instrument</a></li><li><a href="#impl-Instrument-for-MetadataValue%3CVE%3E-1">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-MetadataValue%3CVE%3E">Into&lt;U&gt;</a></li><li><a href="#impl-ToOwned-for-MetadataValue%3CVE%3E">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-MetadataValue%3CVE%3E">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-MetadataValue%3CVE%3E">TryInto&lt;U&gt;</a></li><li><a href="#impl-VZip%3CV%3E-for-MetadataValue%3CVE%3E">VZip&lt;V&gt;</a></li><li><a href="#impl-WithSubscriber-for-MetadataValue%3CVE%3E">WithSubscriber</a></li><li><a href="#impl-WithSubscriber-for-MetadataValue%3CVE%3E-1">WithSubscriber</a></li></ul></section><h2><a href="index.html">In tonic::metadata</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">tonic</a>::<wbr><a href="index.html">metadata</a>::<wbr><a class="struct" href="#">MetadataValue</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/tonic/metadata/value.rs.html#24-29">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><div class="code-attribute">#[repr(transparent)]</div>pub struct MetadataValue&lt;VE:&nbsp;ValueEncoding&gt; { /* private fields */ }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Represents a custom metadata field value.</p>
<p><code>MetadataValue</code> is used as the <a href="struct.MetadataMap.html"><code>MetadataMap</code></a> value.</p>
</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-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#45-283">source</a><a href="#impl-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_static" class="method has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#73-78">source</a><h4 class="code-header">pub fn <a href="#method.from_static" class="fnname">from_static</a>(src: &amp;'static str) -&gt; Self</h4></section></summary><div class="docblock"><p>Convert a static string to a <code>MetadataValue</code>.</p>
<p>This function will not perform any copying, however the string is
checked to ensure that no invalid characters are present.</p>
<p>For Ascii values, only visible ASCII characters (32-127) are permitted.
For Binary values, the string must be valid base64.</p>
<h5 id="panics"><a href="#panics">Panics</a></h5>
<p>This function panics if the argument contains invalid metadata value
characters.</p>
<h5 id="examples"><a href="#examples">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>val = AsciiMetadataValue::from_static(<span class="string">&quot;hello&quot;</span>);
<span class="macro">assert_eq!</span>(val, <span class="string">&quot;hello&quot;</span>);</code></pre></div>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>val = BinaryMetadataValue::from_static(<span class="string">&quot;SGVsbG8hIQ==&quot;</span>);
<span class="macro">assert_eq!</span>(val, <span class="string">&quot;Hello!!&quot;</span>);</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from_bytes" class="method has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#108-113">source</a><h4 class="code-header">pub fn <a href="#method.try_from_bytes" class="fnname">try_from_bytes</a>(src: &amp;[u8]) -&gt; Result&lt;Self, <a class="struct" href="errors/struct.InvalidMetadataValueBytes.html" title="struct tonic::metadata::errors::InvalidMetadataValueBytes">InvalidMetadataValueBytes</a>&gt;</h4></section></summary><div class="docblock"><p>Attempt to convert a byte slice to a <code>MetadataValue</code>.</p>
<p>For Ascii metadata values, If the argument contains invalid metadata
value bytes, an error is returned. Only byte values between 32 and 255
(inclusive) are permitted, excluding byte 127 (DEL).</p>
<p>For Binary metadata values this method cannot fail. See also the Binary
only version of this method <code>from_bytes</code>.</p>
<p>This function is intended to be replaced in the future by a <code>TryFrom</code>
implementation once the trait is stabilized in std.</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">let </span>val = AsciiMetadataValue::try_from_bytes(<span class="string">b&quot;hello\xfa&quot;</span>).unwrap();
<span class="macro">assert_eq!</span>(val, <span class="kw-2">&amp;</span><span class="string">b&quot;hello\xfa&quot;</span>[..]);</code></pre></div>
<p>An invalid value</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>val = AsciiMetadataValue::try_from_bytes(<span class="string">b&quot;\n&quot;</span>);
<span class="macro">assert!</span>(val.is_err());</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_shared" class="method has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#129-134">source</a><h4 class="code-header">pub fn <a href="#method.from_shared" class="fnname">from_shared</a>(src: <a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>) -&gt; Result&lt;Self, <a class="struct" href="errors/struct.InvalidMetadataValueBytes.html" title="struct tonic::metadata::errors::InvalidMetadataValueBytes">InvalidMetadataValueBytes</a>&gt;</h4></section></summary><div class="docblock"><p>Attempt to convert a <code>Bytes</code> buffer to a <code>MetadataValue</code>.</p>
<p>For <code>MetadataValue&lt;Ascii&gt;</code>, if the argument contains invalid metadata
value bytes, an error is returned. Only byte values between 32 and 255
(inclusive) are permitted, excluding byte 127 (DEL).</p>
<p>For <code>MetadataValue&lt;Binary&gt;</code>, if the argument is not valid base64, an
error is returned. In use cases where the input is not base64 encoded,
use <code>from_bytes</code>; if the value has to be encoded it’s not possible to
share the memory anyways.</p>
<p>This function is intended to be replaced in the future by a <code>TryFrom</code>
implementation once the trait is stabilized in std.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_shared_unchecked" class="method has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#145-150">source</a><h4 class="code-header">pub unsafe fn <a href="#method.from_shared_unchecked" class="fnname">from_shared_unchecked</a>(src: <a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Convert a <code>Bytes</code> directly into a <code>MetadataValue</code> without validating.
For MetadataValue<Binary> the provided parameter must be base64
encoded without padding bytes at the end.</p>
<h5 id="safety"><a href="#safety">Safety</a></h5>
<p>This function does NOT validate that illegal bytes are not contained
within the buffer.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_empty" class="method has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#165-167">source</a><h4 class="code-header">pub fn <a href="#method.is_empty" class="fnname">is_empty</a>(&amp;self) -&gt; bool</h4></section></summary><div class="docblock"><p>Returns true if the <code>MetadataValue</code> has a length of zero bytes.</p>
<h5 id="examples-2"><a href="#examples-2">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>val = AsciiMetadataValue::from_static(<span class="string">&quot;&quot;</span>);
<span class="macro">assert!</span>(val.is_empty());
<span class="kw">let </span>val = AsciiMetadataValue::from_static(<span class="string">&quot;hello&quot;</span>);
<span class="macro">assert!</span>(!val.is_empty());</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_bytes" class="method has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#187-189">source</a><h4 class="code-header">pub fn <a href="#method.to_bytes" class="fnname">to_bytes</a>(&amp;self) -&gt; Result&lt;<a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</a>, <a class="struct" href="errors/struct.InvalidMetadataValueBytes.html" title="struct tonic::metadata::errors::InvalidMetadataValueBytes">InvalidMetadataValueBytes</a>&gt;</h4></section></summary><div class="docblock"><p>Converts a <code>MetadataValue</code> to a Bytes buffer. This method cannot
fail for Ascii values. For Ascii values, <code>as_bytes</code> is more convenient
to use.</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>val = AsciiMetadataValue::from_static(<span class="string">&quot;hello&quot;</span>);
<span class="macro">assert_eq!</span>(val.to_bytes().unwrap().as_ref(), <span class="string">b&quot;hello&quot;</span>);</code></pre></div>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>val = BinaryMetadataValue::from_bytes(<span class="string">b&quot;hello&quot;</span>);
<span class="macro">assert_eq!</span>(val.to_bytes().unwrap().as_ref(), <span class="string">b&quot;hello&quot;</span>);</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_sensitive" class="method has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#206-208">source</a><h4 class="code-header">pub fn <a href="#method.set_sensitive" class="fnname">set_sensitive</a>(&amp;mut self, val: bool)</h4></section></summary><div class="docblock"><p>Mark that the metadata value represents sensitive information.</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><span class="kw-2">mut </span>val = AsciiMetadataValue::from_static(<span class="string">&quot;my secret&quot;</span>);
val.set_sensitive(<span class="bool-val">true</span>);
<span class="macro">assert!</span>(val.is_sensitive());
val.set_sensitive(<span class="bool-val">false</span>);
<span class="macro">assert!</span>(!val.is_sensitive());</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_sensitive" class="method has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#232-234">source</a><h4 class="code-header">pub fn <a href="#method.is_sensitive" class="fnname">is_sensitive</a>(&amp;self) -&gt; bool</h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the value represents sensitive data.</p>
<p>Sensitive data could represent passwords or other data that should not
be stored on disk or in memory. This setting can be used by components
like caches to avoid storing the value. HPACK encoders must set the
metadata field to never index when <code>is_sensitive</code> returns true.</p>
<p>Note that sensitivity is not factored into equality or ordering.</p>
<h5 id="examples-5"><a href="#examples-5">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>val = AsciiMetadataValue::from_static(<span class="string">&quot;my secret&quot;</span>);
val.set_sensitive(<span class="bool-val">true</span>);
<span class="macro">assert!</span>(val.is_sensitive());
val.set_sensitive(<span class="bool-val">false</span>);
<span class="macro">assert!</span>(!val.is_sensitive());</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_encoded_bytes" class="method has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#253-255">source</a><h4 class="code-header">pub fn <a href="#method.as_encoded_bytes" class="fnname">as_encoded_bytes</a>(&amp;self) -&gt; &amp;[u8]</h4></section></summary><div class="docblock"><p>Converts a <code>MetadataValue</code> to a byte slice. For Binary values, the
return value is base64 encoded.</p>
<h5 id="examples-6"><a href="#examples-6">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>val = AsciiMetadataValue::from_static(<span class="string">&quot;hello&quot;</span>);
<span class="macro">assert_eq!</span>(val.as_encoded_bytes(), <span class="string">b&quot;hello&quot;</span>);</code></pre></div>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>val = BinaryMetadataValue::from_bytes(<span class="string">b&quot;Hello!&quot;</span>);
<span class="macro">assert_eq!</span>(val.as_encoded_bytes(), <span class="string">b&quot;SGVsbG8h&quot;</span>);</code></pre></div>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-MetadataValue%3CAscii%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#287-391">source</a><a href="#impl-MetadataValue%3CAscii%3E" class="anchor"></a><h3 class="code-header">impl <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;Ascii&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_str" class="method has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#315-322">source</a><h4 class="code-header">pub fn <a href="#method.from_str" class="fnname">from_str</a>(src: &amp;str) -&gt; Result&lt;Self, <a class="struct" href="errors/struct.InvalidMetadataValue.html" title="struct tonic::metadata::errors::InvalidMetadataValue">InvalidMetadataValue</a>&gt;</h4></section></summary><div class="docblock"><p>Attempt to convert a string to a <code>MetadataValue&lt;Ascii&gt;</code>.</p>
<p>If the argument contains invalid metadata value characters, an error is
returned. Only visible ASCII characters (32-127) are permitted. Use
<code>from_bytes</code> to create a <code>MetadataValue</code> that includes opaque octets
(128-255).</p>
<p>This function is intended to be replaced in the future by a <code>TryFrom</code>
implementation once the trait is stabilized in std.</p>
<h5 id="examples-7"><a href="#examples-7">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>val = AsciiMetadataValue::from_str(<span class="string">&quot;hello&quot;</span>).unwrap();
<span class="macro">assert_eq!</span>(val, <span class="string">&quot;hello&quot;</span>);</code></pre></div>
<p>An invalid value</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>val = AsciiMetadataValue::from_str(<span class="string">&quot;\n&quot;</span>);
<span class="macro">assert!</span>(val.is_err());</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_key" class="method has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#337-339">source</a><h4 class="code-header">pub fn <a href="#method.from_key" class="fnname">from_key</a>&lt;KeyVE:&nbsp;ValueEncoding&gt;(key: <a class="struct" href="struct.MetadataKey.html" title="struct tonic::metadata::MetadataKey">MetadataKey</a>&lt;KeyVE&gt;) -&gt; Self</h4></section></summary><div class="docblock"><p>Converts a MetadataKey into a MetadataValue<Ascii>.</p>
<p>Since every valid MetadataKey is a valid MetadataValue this is done
infallibly.</p>
<h5 id="examples-8"><a href="#examples-8">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>val = AsciiMetadataValue::from_key::&lt;Ascii&gt;(<span class="string">&quot;accept&quot;</span>.parse().unwrap());
<span class="macro">assert_eq!</span>(val, AsciiMetadataValue::try_from_bytes(<span class="string">b&quot;accept&quot;</span>).unwrap());</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.len" class="method has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#356-358">source</a><h4 class="code-header">pub fn <a href="#method.len" class="fnname">len</a>(&amp;self) -&gt; usize</h4></section></summary><div class="docblock"><p>Returns the length of <code>self</code>, in bytes.</p>
<p>This method is not available for MetadataValue<Binary> because that
cannot be implemented in constant time, which most people would probably
expect. To get the length of MetadataValue<Binary>, convert it to a
Bytes value and measure its length.</p>
<h5 id="examples-9"><a href="#examples-9">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>val = AsciiMetadataValue::from_static(<span class="string">&quot;hello&quot;</span>);
<span class="macro">assert_eq!</span>(val.len(), <span class="number">5</span>);</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_str" class="method has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#373-375">source</a><h4 class="code-header">pub fn <a href="#method.to_str" class="fnname">to_str</a>(&amp;self) -&gt; Result&lt;&amp;str, <a class="struct" href="errors/struct.ToStrError.html" title="struct tonic::metadata::errors::ToStrError">ToStrError</a>&gt;</h4></section></summary><div class="docblock"><p>Yields a <code>&amp;str</code> slice if the <code>MetadataValue</code> only contains visible ASCII
chars.</p>
<p>This function will perform a scan of the metadata value, checking all the
characters.</p>
<h5 id="examples-10"><a href="#examples-10">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>val = AsciiMetadataValue::from_static(<span class="string">&quot;hello&quot;</span>);
<span class="macro">assert_eq!</span>(val.to_str().unwrap(), <span class="string">&quot;hello&quot;</span>);</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_bytes" class="method has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#388-390">source</a><h4 class="code-header">pub fn <a href="#method.as_bytes" class="fnname">as_bytes</a>(&amp;self) -&gt; &amp;[u8]</h4></section></summary><div class="docblock"><p>Converts a <code>MetadataValue</code> to a byte slice. For Binary values, use
<code>to_bytes</code>.</p>
<h5 id="examples-11"><a href="#examples-11">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>val = AsciiMetadataValue::from_static(<span class="string">&quot;hello&quot;</span>);
<span class="macro">assert_eq!</span>(val.as_bytes(), <span class="string">b&quot;hello&quot;</span>);</code></pre></div>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-MetadataValue%3CBinary%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#393-408">source</a><a href="#impl-MetadataValue%3CBinary%3E" class="anchor"></a><h3 class="code-header">impl <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;Binary&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from_bytes" class="method has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#404-407">source</a><h4 class="code-header">pub fn <a href="#method.from_bytes" class="fnname">from_bytes</a>(src: &amp;[u8]) -&gt; Self</h4></section></summary><div class="docblock"><p>Convert a byte slice to a <code>MetadataValue&lt;Binary&gt;</code>.</p>
<h5 id="examples-12"><a href="#examples-12">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>val = BinaryMetadataValue::from_bytes(<span class="string">b&quot;hello\xfa&quot;</span>);
<span class="macro">assert_eq!</span>(val, <span class="kw-2">&amp;</span><span class="string">b&quot;hello\xfa&quot;</span>[..]);</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-AsRef%3C%5Bu8%5D%3E-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#410-415">source</a><a href="#impl-AsRef%3C%5Bu8%5D%3E-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; AsRef&lt;[u8]&gt; for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.as_ref" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#412-414">source</a><a href="#method.as_ref" class="anchor"></a><h4 class="code-header">fn <a class="fnname">as_ref</a>(&amp;self) -&gt; &amp;[u8]</h4></section></summary><div class='docblock'>Converts this type into a shared reference of the (usually inferred) input type.</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#22">source</a><a href="#impl-Clone-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;Clone + ValueEncoding&gt; Clone for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</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/tonic/metadata/value.rs.html#22">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.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</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-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#417-421">source</a><a href="#impl-Debug-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; Debug for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</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/tonic/metadata/value.rs.html#418-420">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</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%3C%26%27a%20MetadataValue%3CVE%3E%3E-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#525-530">source</a><a href="#impl-From%3C%26%27a%20MetadataValue%3CVE%3E%3E-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;'a, VE:&nbsp;ValueEncoding&gt; From&lt;&amp;'a <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;&gt; for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</h3></section></summary><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/tonic/metadata/value.rs.html#527-529">source</a><a href="#method.from-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(t: &amp;'a <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;) -&gt; Self</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%3CMetadataValue%3CVE%3E%3E-for-Bytes" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#518-523">source</a><a href="#impl-From%3CMetadataValue%3CVE%3E%3E-for-Bytes" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; From&lt;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;&gt; for <a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</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/metadata/value.rs.html#520-522">source</a><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(value: <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;) -&gt; <a class="struct" href="../../bytes/bytes/struct.Bytes.html" title="struct bytes::bytes::Bytes">Bytes</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-Ord-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#585-590">source</a><a href="#impl-Ord-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; Ord for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.cmp" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#587-589">source</a><a href="#method.cmp" class="anchor"></a><h4 class="code-header">fn <a class="fnname">cmp</a>(&amp;self, other: &amp;Self) -&gt; Ordering</h4></section></summary><div class='docblock'>This method returns an [<code>Ordering</code>] between <code>self</code> and <code>other</code>. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.max" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.21.0">1.21.0</span><a href="#method.max" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">max</a>(self, other: Self) -&gt; Self</h4></section></summary><div class='docblock'>Compares and returns the maximum of two values. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.min" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.21.0">1.21.0</span><a href="#method.min" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">min</a>(self, other: Self) -&gt; Self</h4></section></summary><div class='docblock'>Compares and returns the minimum of two values. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clamp" class="method trait-impl has-srclink"><span class="since rightside" title="Stable since Rust version 1.50.0">1.50.0</span><a href="#method.clamp" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">clamp</a>(self, min: Self, max: Self) -&gt; Self<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: PartialOrd&lt;Self&gt;,</span></h4></section></summary><div class='docblock'>Restrict a value to a certain interval. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialEq%3C%26%27a%20T%3E-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#690-698">source</a><a href="#impl-PartialEq%3C%26%27a%20T%3E-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;'a, VE:&nbsp;ValueEncoding, T:&nbsp;?Sized&gt; PartialEq&lt;&amp;'a T&gt; for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;: PartialEq&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#695-697">source</a><a href="#method.eq-8" class="anchor"></a><h4 class="code-header">fn <a class="fnname">eq</a>(&amp;self, other: &amp;&amp;'a T) -&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-8" 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-8" 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%3C%5Bu8%5D%3E-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#599-604">source</a><a href="#impl-PartialEq%3C%5Bu8%5D%3E-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; PartialEq&lt;[u8]&gt; for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</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/tonic/metadata/value.rs.html#601-603">source</a><a href="#method.eq-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">eq</a>(&amp;self, other: &amp;[u8]) -&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%3CMetadataValue%3CVE%3E%3E-for-%26%27a%20MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#676-681">source</a><a href="#impl-PartialEq%3CMetadataValue%3CVE%3E%3E-for-%26%27a%20MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;'a, VE:&nbsp;ValueEncoding&gt; PartialEq&lt;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;&gt; for &amp;'a <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#678-680">source</a><a href="#method.eq-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;) -&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-7" 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-7" 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%3CMetadataValue%3CVE%3E%3E-for-%26%27a%20str" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#710-715">source</a><a href="#impl-PartialEq%3CMetadataValue%3CVE%3E%3E-for-%26%27a%20str" class="anchor"></a><h3 class="code-header">impl&lt;'a, VE:&nbsp;ValueEncoding&gt; PartialEq&lt;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;&gt; for &amp;'a str</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#712-714">source</a><a href="#method.eq-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;) -&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-9" 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-9" 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%3CMetadataValue%3CVE%3E%3E-for-%5Bu8%5D" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#627-632">source</a><a href="#impl-PartialEq%3CMetadataValue%3CVE%3E%3E-for-%5Bu8%5D" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; PartialEq&lt;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;&gt; for [u8]</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/tonic/metadata/value.rs.html#629-631">source</a><a href="#method.eq-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;) -&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%3CMetadataValue%3CVE%3E%3E-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#565-574">source</a><a href="#impl-PartialEq%3CMetadataValue%3CVE%3E%3E-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; PartialEq&lt;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;&gt; for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</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/tonic/metadata/value.rs.html#567-573">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.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;) -&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%3CMetadataValue%3CVE%3E%3E-for-String" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#662-667">source</a><a href="#impl-PartialEq%3CMetadataValue%3CVE%3E%3E-for-String" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; PartialEq&lt;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;&gt; for String</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#664-666">source</a><a href="#method.eq-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;) -&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-6" 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-6" 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%3CMetadataValue%3CVE%3E%3E-for-str" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#620-625">source</a><a href="#impl-PartialEq%3CMetadataValue%3CVE%3E%3E-for-str" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; PartialEq&lt;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;&gt; for str</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/tonic/metadata/value.rs.html#622-624">source</a><a href="#method.eq-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;) -&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-PartialEq%3CString%3E-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#648-653">source</a><a href="#impl-PartialEq%3CString%3E-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; PartialEq&lt;String&gt; for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.eq-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#650-652">source</a><a href="#method.eq-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">eq</a>(&amp;self, other: &amp;String) -&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-5" 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-5" 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-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#592-597">source</a><a href="#impl-PartialEq%3Cstr%3E-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; PartialEq&lt;str&gt; for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</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/tonic/metadata/value.rs.html#594-596">source</a><a href="#method.eq-1" 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-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-PartialOrd%3C%26%27a%20T%3E-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#700-708">source</a><a href="#impl-PartialOrd%3C%26%27a%20T%3E-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;'a, VE:&nbsp;ValueEncoding, T:&nbsp;?Sized&gt; PartialOrd&lt;&amp;'a T&gt; for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;: PartialOrd&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.partial_cmp-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#705-707">source</a><a href="#method.partial_cmp-8" class="anchor"></a><h4 class="code-header">fn <a class="fnname">partial_cmp</a>(&amp;self, other: &amp;&amp;'a T) -&gt; Option&lt;Ordering&gt;</h4></section></summary><div class='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.lt-8" 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.lt-8" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">lt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.le-8" 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.le-8" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">le</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;=</code>
operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.gt-8" 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.gt-8" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">gt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ge-8" 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.ge-8" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ge</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;=</code>
operator. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialOrd%3C%5Bu8%5D%3E-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#613-618">source</a><a href="#impl-PartialOrd%3C%5Bu8%5D%3E-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; PartialOrd&lt;[u8]&gt; for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.partial_cmp-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#615-617">source</a><a href="#method.partial_cmp-2" class="anchor"></a><h4 class="code-header">fn <a class="fnname">partial_cmp</a>(&amp;self, other: &amp;[u8]) -&gt; Option&lt;Ordering&gt;</h4></section></summary><div class='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.lt-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.lt-2" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">lt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.le-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.le-2" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">le</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;=</code>
operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.gt-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.gt-2" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">gt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ge-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.ge-2" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ge</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;=</code>
operator. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-%26%27a%20MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#683-688">source</a><a href="#impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-%26%27a%20MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;'a, VE:&nbsp;ValueEncoding&gt; PartialOrd&lt;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;&gt; for &amp;'a <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.partial_cmp-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#685-687">source</a><a href="#method.partial_cmp-7" class="anchor"></a><h4 class="code-header">fn <a class="fnname">partial_cmp</a>(&amp;self, other: &amp;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;) -&gt; Option&lt;Ordering&gt;</h4></section></summary><div class='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.lt-7" 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.lt-7" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">lt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.le-7" 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.le-7" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">le</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;=</code>
operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.gt-7" 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.gt-7" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">gt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ge-7" 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.ge-7" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ge</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;=</code>
operator. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-%26%27a%20str" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#717-722">source</a><a href="#impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-%26%27a%20str" class="anchor"></a><h3 class="code-header">impl&lt;'a, VE:&nbsp;ValueEncoding&gt; PartialOrd&lt;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;&gt; for &amp;'a str</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.partial_cmp-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#719-721">source</a><a href="#method.partial_cmp-9" class="anchor"></a><h4 class="code-header">fn <a class="fnname">partial_cmp</a>(&amp;self, other: &amp;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;) -&gt; Option&lt;Ordering&gt;</h4></section></summary><div class='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.lt-9" 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.lt-9" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">lt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.le-9" 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.le-9" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">le</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;=</code>
operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.gt-9" 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.gt-9" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">gt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ge-9" 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.ge-9" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ge</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;=</code>
operator. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-%5Bu8%5D" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#641-646">source</a><a href="#impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-%5Bu8%5D" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; PartialOrd&lt;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;&gt; for [u8]</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.partial_cmp-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#643-645">source</a><a href="#method.partial_cmp-4" class="anchor"></a><h4 class="code-header">fn <a class="fnname">partial_cmp</a>(&amp;self, other: &amp;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;) -&gt; Option&lt;Ordering&gt;</h4></section></summary><div class='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.lt-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.lt-4" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">lt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.le-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.le-4" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">le</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;=</code>
operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.gt-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.gt-4" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">gt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ge-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.ge-4" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ge</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;=</code>
operator. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#578-583">source</a><a href="#impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; PartialOrd&lt;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;&gt; for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.partial_cmp" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#580-582">source</a><a href="#method.partial_cmp" class="anchor"></a><h4 class="code-header">fn <a class="fnname">partial_cmp</a>(&amp;self, other: &amp;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;) -&gt; Option&lt;Ordering&gt;</h4></section></summary><div class='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.lt" 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.lt" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">lt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.le" 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.le" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">le</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;=</code>
operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.gt" 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.gt" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">gt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ge" 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.ge" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ge</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;=</code>
operator. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-String" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#669-674">source</a><a href="#impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-String" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; PartialOrd&lt;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;&gt; for String</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.partial_cmp-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#671-673">source</a><a href="#method.partial_cmp-6" class="anchor"></a><h4 class="code-header">fn <a class="fnname">partial_cmp</a>(&amp;self, other: &amp;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;) -&gt; Option&lt;Ordering&gt;</h4></section></summary><div class='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.lt-6" 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.lt-6" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">lt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.le-6" 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.le-6" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">le</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;=</code>
operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.gt-6" 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.gt-6" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">gt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ge-6" 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.ge-6" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ge</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;=</code>
operator. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-str" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#634-639">source</a><a href="#impl-PartialOrd%3CMetadataValue%3CVE%3E%3E-for-str" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; PartialOrd&lt;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;&gt; for str</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.partial_cmp-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#636-638">source</a><a href="#method.partial_cmp-3" class="anchor"></a><h4 class="code-header">fn <a class="fnname">partial_cmp</a>(&amp;self, other: &amp;<a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;) -&gt; Option&lt;Ordering&gt;</h4></section></summary><div class='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.lt-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.lt-3" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">lt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.le-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.le-3" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">le</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;=</code>
operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.gt-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.gt-3" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">gt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ge-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.ge-3" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ge</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;=</code>
operator. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialOrd%3CString%3E-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#655-660">source</a><a href="#impl-PartialOrd%3CString%3E-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; PartialOrd&lt;String&gt; for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.partial_cmp-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#657-659">source</a><a href="#method.partial_cmp-5" class="anchor"></a><h4 class="code-header">fn <a class="fnname">partial_cmp</a>(&amp;self, other: &amp;String) -&gt; Option&lt;Ordering&gt;</h4></section></summary><div class='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.lt-5" 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.lt-5" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">lt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.le-5" 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.le-5" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">le</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;=</code>
operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.gt-5" 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.gt-5" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">gt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ge-5" 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.ge-5" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ge</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;=</code>
operator. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-PartialOrd%3Cstr%3E-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#606-611">source</a><a href="#impl-PartialOrd%3Cstr%3E-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; PartialOrd&lt;str&gt; for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.partial_cmp-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#608-610">source</a><a href="#method.partial_cmp-1" class="anchor"></a><h4 class="code-header">fn <a class="fnname">partial_cmp</a>(&amp;self, other: &amp;str) -&gt; Option&lt;Ordering&gt;</h4></section></summary><div class='docblock'>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.lt-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.lt-1" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">lt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.le-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.le-1" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">le</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;=</code>
operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.gt-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.gt-1" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">gt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code> operator. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.ge-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.ge-1" class="anchor"></a><h4 class="code-header">const fn <a class="fnname">ge</a>(&amp;self, other: &amp;Rhs) -&gt; bool</h4></section></summary><div class='docblock'>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;=</code>
operator. <a>Read more</a></div></details></div></details><section id="impl-Eq-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tonic/metadata/value.rs.html#576">source</a><a href="#impl-Eq-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE:&nbsp;ValueEncoding&gt; Eq for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;</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-MetadataValue%3CVE%3E" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE&gt; RefUnwindSafe for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;VE: RefUnwindSafe,</span></h3></section><section id="impl-Send-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a href="#impl-Send-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE&gt; Send for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;VE: Send,</span></h3></section><section id="impl-Sync-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a href="#impl-Sync-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE&gt; Sync for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;VE: Sync,</span></h3></section><section id="impl-Unpin-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a href="#impl-Unpin-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE&gt; Unpin for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;VE: Unpin,</span></h3></section><section id="impl-UnwindSafe-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a href="#impl-UnwindSafe-for-MetadataValue%3CVE%3E" class="anchor"></a><h3 class="code-header">impl&lt;VE&gt; UnwindSafe for <a class="struct" href="struct.MetadataValue.html" title="struct tonic::metadata::MetadataValue">MetadataValue</a>&lt;VE&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;VE: UnwindSafe,</span></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-MetadataValue%3CVE%3E" class="impl has-srclink"><a href="#impl-Any-for-MetadataValue%3CVE%3E" 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-MetadataValue%3CVE%3E" class="impl has-srclink"><a href="#impl-Borrow%3CT%3E-for-MetadataValue%3CVE%3E" 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-MetadataValue%3CVE%3E" class="impl has-srclink"><a href="#impl-BorrowMut%3CT%3E-for-MetadataValue%3CVE%3E" 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-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/indexmap/equivalent.rs.html#18">source</a><a href="#impl-Equivalent%3CK%3E-for-MetadataValue%3CVE%3E" 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-MetadataValue%3CVE%3E" class="impl has-srclink"><a href="#impl-From%3CT%3E-for-MetadataValue%3CVE%3E" 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-2" 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-2" 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-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tracing/instrument.rs.html#276">source</a><a href="#impl-Instrument-for-MetadataValue%3CVE%3E" 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;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;T&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;T&gt; Future for <a class="struct" href="../../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Future,</span></span><span class="where fmt-newline"> type <a class="associatedtype">Output</a> = &lt;T as Future&gt;::Output;</span></code></span></span></span></span></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;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;T&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;T&gt; Future for <a class="struct" href="../../tracing/instrument/struct.Instrumented.html" title="struct tracing::instrument::Instrumented">Instrumented</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Future,</span></span><span class="where fmt-newline"> type <a class="associatedtype">Output</a> = &lt;T as Future&gt;::Output;</span></code></span></span></span></span></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-Instrument-for-MetadataValue%3CVE%3E-1" class="impl has-srclink"><a class="srclink rightside" href="../../src/tracing_futures/lib.rs.html#273">source</a><a href="#impl-Instrument-for-MetadataValue%3CVE%3E-1" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../../tracing_futures/trait.Instrument.html" title="trait tracing_futures::Instrument">Instrument</a> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.instrument-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tracing_futures/lib.rs.html#154">source</a><a href="#method.instrument-1" class="anchor"></a><h4 class="code-header">fn <a href="../../tracing_futures/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_futures/struct.Instrumented.html" title="struct tracing_futures::Instrumented">Instrumented</a>&lt;Self&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../tracing_futures/struct.Instrumented.html" title="struct tracing_futures::Instrumented">Instrumented</a>&lt;T&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;T&gt; Future for <a class="struct" href="../../tracing_futures/struct.Instrumented.html" title="struct tracing_futures::Instrumented">Instrumented</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Future,</span></span><span class="where fmt-newline"> type <a class="associatedtype">Output</a> = &lt;T as Future&gt;::Output;</span></code></span></span></span></span></h4></section></summary><div class='docblock'>Instruments this type with the provided <code>Span</code>, returning an
<code>Instrumented</code> wrapper. <a href="../../tracing_futures/trait.Instrument.html#method.instrument">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.in_current_span-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tracing_futures/lib.rs.html#191">source</a><a href="#method.in_current_span-1" class="anchor"></a><h4 class="code-header">fn <a href="../../tracing_futures/trait.Instrument.html#method.in_current_span" class="fnname">in_current_span</a>(self) -&gt; <a class="struct" href="../../tracing_futures/struct.Instrumented.html" title="struct tracing_futures::Instrumented">Instrumented</a>&lt;Self&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../tracing_futures/struct.Instrumented.html" title="struct tracing_futures::Instrumented">Instrumented</a>&lt;T&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;T&gt; Future for <a class="struct" href="../../tracing_futures/struct.Instrumented.html" title="struct tracing_futures::Instrumented">Instrumented</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Future,</span></span><span class="where fmt-newline"> type <a class="associatedtype">Output</a> = &lt;T as Future&gt;::Output;</span></code></span></span></span></span></h4></section></summary><div class='docblock'>Instruments this type with the <a href="https://docs.rs/tracing/latest/tracing/span/struct.Span.html#method.current">current</a> <code>Span</code>, returning an
<code>Instrumented</code> wrapper. <a href="../../tracing_futures/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-MetadataValue%3CVE%3E" class="impl has-srclink"><a href="#impl-Into%3CU%3E-for-MetadataValue%3CVE%3E" 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-ToOwned-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a href="#impl-ToOwned-for-MetadataValue%3CVE%3E" 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-TryFrom%3CU%3E-for-MetadataValue%3CVE%3E" class="impl has-srclink"><a href="#impl-TryFrom%3CU%3E-for-MetadataValue%3CVE%3E" 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-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> = 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" 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" 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-MetadataValue%3CVE%3E" class="impl has-srclink"><a href="#impl-TryInto%3CU%3E-for-MetadataValue%3CVE%3E" 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" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" 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-MetadataValue%3CVE%3E" 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-MetadataValue%3CVE%3E" 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-MetadataValue%3CVE%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tracing/instrument.rs.html#334">source</a><a href="#impl-WithSubscriber-for-MetadataValue%3CVE%3E" 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="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;T&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;T&gt; Future for <a class="struct" href="../../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Future,</span></span><span class="where fmt-newline"> type <a class="associatedtype">Output</a> = &lt;T as Future&gt;::Output;</span></code></span></span></span></span><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;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;T&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;T&gt; Future for <a class="struct" href="../../tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Future,</span></span><span class="where fmt-newline"> type <a class="associatedtype">Output</a> = &lt;T as Future&gt;::Output;</span></code></span></span></span></span></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><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-MetadataValue%3CVE%3E-1" class="impl has-srclink"><a class="srclink rightside" href="../../src/tracing_futures/lib.rs.html#432">source</a><a href="#impl-WithSubscriber-for-MetadataValue%3CVE%3E-1" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="../../tracing_futures/trait.WithSubscriber.html" title="trait tracing_futures::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-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tracing_futures/lib.rs.html#213-215">source</a><a href="#method.with_subscriber-1" class="anchor"></a><h4 class="code-header">fn <a href="../../tracing_futures/trait.WithSubscriber.html#method.with_subscriber" class="fnname">with_subscriber</a>&lt;S&gt;(self, subscriber: S) -&gt; <a class="struct" href="../../tracing_futures/struct.WithDispatch.html" title="struct tracing_futures::WithDispatch">WithDispatch</a>&lt;Self&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../tracing_futures/struct.WithDispatch.html" title="struct tracing_futures::WithDispatch">WithDispatch</a>&lt;T&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;T&gt; Future for <a class="struct" href="../../tracing_futures/struct.WithDispatch.html" title="struct tracing_futures::WithDispatch">WithDispatch</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Future,</span></span><span class="where fmt-newline"> type <a class="associatedtype">Output</a> = &lt;T as Future&gt;::Output;</span></code></span></span></span></span><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="https://docs.rs/tracing/latest/tracing/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
<code>WithDispatch</code> wrapper. <a href="../../tracing_futures/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-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tracing_futures/lib.rs.html#237">source</a><a href="#method.with_current_subscriber-1" class="anchor"></a><h4 class="code-header">fn <a href="../../tracing_futures/trait.WithSubscriber.html#method.with_current_subscriber" class="fnname">with_current_subscriber</a>(self) -&gt; <a class="struct" href="../../tracing_futures/struct.WithDispatch.html" title="struct tracing_futures::WithDispatch">WithDispatch</a>&lt;Self&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../tracing_futures/struct.WithDispatch.html" title="struct tracing_futures::WithDispatch">WithDispatch</a>&lt;T&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;T&gt; Future for <a class="struct" href="../../tracing_futures/struct.WithDispatch.html" title="struct tracing_futures::WithDispatch">WithDispatch</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Future,</span></span><span class="where fmt-newline"> type <a class="associatedtype">Output</a> = &lt;T as Future&gt;::Output;</span></code></span></span></span></span></h4></section></summary><div class='docblock'>Attaches the current <a href="https://docs.rs/tracing/latest/tracing/dispatcher/index.html#setting-the-default-subscriber">default</a> <a href="https://docs.rs/tracing/latest/tracing/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a
<code>WithDispatch</code> wrapper. <a href="../../tracing_futures/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="tonic" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html>