Files
iroh/pr/4721/docs/iroh_relay/server/struct.Metrics.html

111 lines
54 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!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="Metrics tracked for the relay server"><title>Metrics in iroh_relay::server - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="iroh_relay" data-themes="" data-resource-suffix="" data-rustdoc-version="1.92.0-nightly (b6f0945e4 2025-10-08)" data-channel="nightly" data-search-js="search-8d3311b9.js" data-stringdex-js="stringdex-828709d0.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-ce535bd0.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.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]--><rustdoc-topbar><h2><a href="#">Metrics</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../iroh_relay/index.html">iroh_<wbr>relay</a><span class="version">1.5.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Metrics</a></h2><h3><a href="#fields">Fields</a></h3><ul class="block structfield"><li><a href="#structfield.accepts" title="accepts">accepts</a></li><li><a href="#structfield.bytes_recv" title="bytes_recv">bytes_recv</a></li><li><a href="#structfield.bytes_rx_ratelimited_total" title="bytes_rx_ratelimited_total">bytes_rx_ratelimited_total</a></li><li><a href="#structfield.bytes_sent" title="bytes_sent">bytes_sent</a></li><li><a href="#structfield.clients_inactive_added" title="clients_inactive_added">clients_inactive_added</a></li><li><a href="#structfield.clients_inactive_removed" title="clients_inactive_removed">clients_inactive_removed</a></li><li><a href="#structfield.conns_rx_ratelimited_total" title="conns_rx_ratelimited_total">conns_rx_ratelimited_total</a></li><li><a href="#structfield.disconnects" title="disconnects">disconnects</a></li><li><a href="#structfield.got_ping" title="got_ping">got_ping</a></li><li><a href="#structfield.http_connections" title="http_connections">http_connections</a></li><li><a href="#structfield.http_connections_closed" title="http_connections_closed">http_connections_closed</a></li><li><a href="#structfield.http_connections_errored" title="http_connections_errored">http_connections_errored</a></li><li><a href="#structfield.other_packets_dropped" title="other_packets_dropped">other_packets_dropped</a></li><li><a href="#structfield.other_packets_recv" title="other_packets_recv">other_packets_recv</a></li><li><a href="#structfield.other_packets_sent" title="other_packets_sent">other_packets_sent</a></li><li><a href="#structfield.qad_connections" title="qad_connections">qad_connections</a></li><li><a href="#structfield.qad_connections_closed" title="qad_connections_closed">qad_connections_closed</a></li><li><a href="#structfield.qad_connections_errored" title="qad_connections_errored">qad_connections_errored</a></li><li><a href="#structfield.qad_incoming" title="qad_incoming">qad_incoming</a></li><li><a href="#structfield.qad_incoming_error" title="qad_incoming_error">qad_incoming_error</a></li><li><a href="#structfield.send_packets_dropped" title="send_packets_dropped">send_packets_dropped</a></li><li><a href="#structfield.send_packets_recv" title="send_packets_recv">send_packets_recv</a></li><li><a href="#structfield.send_packets_sent" title="send_packets_sent">send_packets_sent</a></li><li><a href="#structfield.sent_pong" title="sent_pong">sent_pong</a></li><li><a href="#structfield.unique_client_keys" title="unique_client_keys">unique_client_keys</a></li><li><a href="#structfield.unknown_frames" title="unknown_frames">unknown_frames</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Debug-for-Metrics" title="Debug">Debug</a></li><li><a href="#impl-Default-for-Metrics" title="Default">Default</a></li><li><a href="#impl-Iterable-for-Metrics" title="Iterable">Iterable</a></li><li><a href="#impl-MetricsGroup-for-Metrics" title="MetricsGroup">MetricsGroup</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-Metrics" title="!Freeze">!Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Metrics" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Metrics" title="Send">Send</a></li><li><a href="#impl-Sync-for-Metrics" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-Metrics" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Metrics" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-AsTaggedExplicit%3C'a,+E%3E-for-T" title="AsTaggedExplicit&#60;&#39;a, E&#62;">AsTaggedExplicit&#60;&#39;a, E&#62;</a></li><li><a href="#impl-AsTaggedImplicit%3C'a,+E%3E-for-T" title="AsTaggedImplicit&#60;&#39;a, E&#62;">AsTaggedImplicit&#60;&#39;a, E&#62;</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a href="#impl-Instrument-for-T" title="Instrument">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a href="#impl-IntoEither-for-T" title="IntoEither">IntoEither</a></li><li><a href="#impl-IntoIterable-for-T" title="IntoIterable">IntoIterable</a></li><li><a href="#impl-PolicyExt-for-T" title="PolicyExt">PolicyExt</a></li><li><a href="#impl-Same-for-T" title="Same">Same</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li><li><a href="#impl-WithSubscriber-for-T" title="WithSubscriber">WithSubscriber</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In iroh_<wbr>relay::<wbr>server</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh_relay</a>::<wbr><a href="index.html">server</a></div><h1>Struct <span class="struct">Metrics</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/iroh_relay/server/metrics.rs.html#9-145">Source</a> </span></div><pre class="rust item-decl"><code><div class="code-attribute">#[non_exhaustive]</div>pub struct Metrics {<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 26 fields</span></summary>
pub bytes_sent: Counter,
pub bytes_recv: Counter,
pub send_packets_sent: Counter,
pub send_packets_recv: Counter,
pub send_packets_dropped: Counter,
pub other_packets_sent: Counter,
pub other_packets_recv: Counter,
pub other_packets_dropped: Counter,
pub got_ping: Counter,
pub sent_pong: Counter,
pub unknown_frames: Counter,
pub bytes_rx_ratelimited_total: Counter,
pub conns_rx_ratelimited_total: Counter,
pub accepts: Counter,
pub disconnects: Counter,
pub unique_client_keys: Counter,
pub clients_inactive_added: Counter,
pub clients_inactive_removed: Counter,
pub qad_incoming: Counter,
pub qad_incoming_error: Counter,
pub qad_connections: Counter,
pub qad_connections_closed: Counter,
pub qad_connections_errored: Counter,
pub http_connections: Counter,
pub http_connections_closed: Counter,
pub http_connections_errored: Counter,
</details>}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>server</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Metrics tracked for the relay server</p>
</div></details><h2 id="fields" class="fields section-header">Fields (Non-exhaustive)<a href="#fields" class="anchor">§</a></h2><details class="toggle non-exhaustive"><summary class="hideme"><span>This struct is marked as non-exhaustive</span></summary><div class="docblock">Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional <code>Struct { .. }</code> syntax; cannot be matched against without a wildcard <code>..</code>; and struct update syntax will not work.</div></details><span id="structfield.bytes_sent" class="structfield section-header"><a href="#structfield.bytes_sent" class="anchor field">§</a><code>bytes_sent: Counter</code></span><div class="docblock"><p>Bytes sent to a client in <a href="../protos/common/enum.FrameType.html#variant.RelayToClientDatagram" title="variant iroh_relay::protos::common::FrameType::RelayToClientDatagram"><code>RelayToClientDatagram</code></a> or <a href="../protos/common/enum.FrameType.html#variant.RelayToClientDatagramBatch" title="variant iroh_relay::protos::common::FrameType::RelayToClientDatagramBatch"><code>RelayToClientDatagramBatch</code></a> frames.</p>
</div><span id="structfield.bytes_recv" class="structfield section-header"><a href="#structfield.bytes_recv" class="anchor field">§</a><code>bytes_recv: Counter</code></span><div class="docblock"><p>Bytes received from a client in <a href="../protos/common/enum.FrameType.html#variant.ClientToRelayDatagram" title="variant iroh_relay::protos::common::FrameType::ClientToRelayDatagram"><code>ClientToRelayDatagram</code></a> or <a href="../protos/common/enum.FrameType.html#variant.ClientToRelayDatagramBatch" title="variant iroh_relay::protos::common::FrameType::ClientToRelayDatagramBatch"><code>ClientToRelayDatagramBatch</code></a> frames.</p>
</div><span id="structfield.send_packets_sent" class="structfield section-header"><a href="#structfield.send_packets_sent" class="anchor field">§</a><code>send_packets_sent: Counter</code></span><div class="docblock"><p><a href="../protos/common/enum.FrameType.html#variant.RelayToClientDatagram" title="variant iroh_relay::protos::common::FrameType::RelayToClientDatagram"><code>RelayToClientDatagram</code></a> or <a href="../protos/common/enum.FrameType.html#variant.RelayToClientDatagramBatch" title="variant iroh_relay::protos::common::FrameType::RelayToClientDatagramBatch"><code>RelayToClientDatagramBatch</code></a> frames sent to a client.</p>
</div><span id="structfield.send_packets_recv" class="structfield section-header"><a href="#structfield.send_packets_recv" class="anchor field">§</a><code>send_packets_recv: Counter</code></span><div class="docblock"><p><a href="../protos/common/enum.FrameType.html#variant.ClientToRelayDatagram" title="variant iroh_relay::protos::common::FrameType::ClientToRelayDatagram"><code>ClientToRelayDatagram</code></a> or <a href="../protos/common/enum.FrameType.html#variant.ClientToRelayDatagramBatch" title="variant iroh_relay::protos::common::FrameType::ClientToRelayDatagramBatch"><code>ClientToRelayDatagramBatch</code></a> frames received from a client.</p>
</div><span id="structfield.send_packets_dropped" class="structfield section-header"><a href="#structfield.send_packets_dropped" class="anchor field">§</a><code>send_packets_dropped: Counter</code></span><div class="docblock"><p><a href="../protos/common/enum.FrameType.html#variant.RelayToClientDatagram" title="variant iroh_relay::protos::common::FrameType::RelayToClientDatagram"><code>RelayToClientDatagram</code></a> or <a href="../protos/common/enum.FrameType.html#variant.RelayToClientDatagramBatch" title="variant iroh_relay::protos::common::FrameType::RelayToClientDatagramBatch"><code>RelayToClientDatagramBatch</code></a> frames dropped instead of being
delivered to a client, because the recipient is not connected or writing to its stream failed.</p>
<p>Note that frames dropped because the recipient’s send queue is full or closed are not counted
here.</p>
</div><span id="structfield.other_packets_sent" class="structfield section-header"><a href="#structfield.other_packets_sent" class="anchor field">§</a><code>other_packets_sent: Counter</code></span><div class="docblock"><p>Intended to count sent frames other than datagrams, but currently unused (never incremented).</p>
</div><span id="structfield.other_packets_recv" class="structfield section-header"><a href="#structfield.other_packets_recv" class="anchor field">§</a><code>other_packets_recv: Counter</code></span><div class="docblock"><p>Intended to count received frames other than datagrams, but currently unused (never incremented).</p>
</div><span id="structfield.other_packets_dropped" class="structfield section-header"><a href="#structfield.other_packets_dropped" class="anchor field">§</a><code>other_packets_dropped: Counter</code></span><div class="docblock"><p>Intended to count dropped frames other than datagrams, but currently unused (never incremented).</p>
</div><span id="structfield.got_ping" class="structfield section-header"><a href="#structfield.got_ping" class="anchor field">§</a><code>got_ping: Counter</code></span><div class="docblock"><p>Number of <a href="../protos/common/enum.FrameType.html#variant.Ping" title="variant iroh_relay::protos::common::FrameType::Ping"><code>FrameType::Ping</code></a> frames received from a client.</p>
</div><span id="structfield.sent_pong" class="structfield section-header"><a href="#structfield.sent_pong" class="anchor field">§</a><code>sent_pong: Counter</code></span><div class="docblock"><p>Number of <a href="../protos/common/enum.FrameType.html#variant.Pong" title="variant iroh_relay::protos::common::FrameType::Pong"><code>FrameType::Pong</code></a> frames sent to a client.</p>
</div><span id="structfield.unknown_frames" class="structfield section-header"><a href="#structfield.unknown_frames" class="anchor field">§</a><code>unknown_frames: Counter</code></span><div class="docblock"><p>Intended to count received frames with an unrecognized <a href="../protos/common/enum.FrameType.html" title="enum iroh_relay::protos::common::FrameType"><code>FrameType</code></a>,
but currently unused (never incremented).</p>
</div><span id="structfield.bytes_rx_ratelimited_total" class="structfield section-header"><a href="#structfield.bytes_rx_ratelimited_total" class="anchor field">§</a><code>bytes_rx_ratelimited_total: Counter</code></span><div class="docblock"><p>Number of bytes received from client connection which have been rate-limited.</p>
</div><span id="structfield.conns_rx_ratelimited_total" class="structfield section-header"><a href="#structfield.conns_rx_ratelimited_total" class="anchor field">§</a><code>conns_rx_ratelimited_total: Counter</code></span><div class="docblock"><p>Number of client connections which have had any frames rate-limited.</p>
</div><span id="structfield.accepts" class="structfield section-header"><a href="#structfield.accepts" class="anchor field">§</a><code>accepts: Counter</code></span><div class="docblock"><p>Number of times this server has accepted a connection.</p>
</div><span id="structfield.disconnects" class="structfield section-header"><a href="#structfield.disconnects" class="anchor field">§</a><code>disconnects: Counter</code></span><div class="docblock"><p>Number of times a client connection was disconnected.</p>
<p>Incremented once per connection, paired with <a href="struct.Metrics.html#structfield.accepts" title="field iroh_relay::server::Metrics::accepts"><code>Self::accepts</code></a>.</p>
</div><span id="structfield.unique_client_keys" class="structfield section-header"><a href="#structfield.unique_client_keys" class="anchor field">§</a><code>unique_client_keys: Counter</code></span><div class="docblock"><p>Number of unique client keys per day</p>
</div><span id="structfield.clients_inactive_added" class="structfield section-header"><a href="#structfield.clients_inactive_added" class="anchor field">§</a><code>clients_inactive_added: Counter</code></span><div class="docblock"><p>Number of times a client was moved into the inactive state.</p>
<p>A client becomes inactive when a new client connects with the same endpoint id. An inactive
client can still send messages, but won’t receive anything. If the currently-active client
disconnects, and if there are inactive clients, the most-recent inactive client becomes
active again.</p>
<p>The number of inactive clients at any time is <code>clients_inactive_added</code> - <code>clients_inactive_removed</code>.</p>
</div><span id="structfield.clients_inactive_removed" class="structfield section-header"><a href="#structfield.clients_inactive_removed" class="anchor field">§</a><code>clients_inactive_removed: Counter</code></span><div class="docblock"><p>Number of times a client was removed from the inactive state.</p>
<p>This is increased whenever a client disconnects while being inactive, or if a client is upgraded to be
active again (happens only when the currently-active client for that endpoint id disconnects).</p>
<p>See <a href="struct.Metrics.html#structfield.clients_inactive_added" title="field iroh_relay::server::Metrics::clients_inactive_added"><code>Self::clients_inactive_added</code></a> for details on when a client becomes inactive.</p>
</div><span id="structfield.qad_incoming" class="structfield section-header"><a href="#structfield.qad_incoming" class="anchor field">§</a><code>qad_incoming: Counter</code></span><div class="docblock"><p>Number of incoming QAD connections.</p>
<p>After completion, each is counted in either <code>qad_incoming_error</code> or <code>qad_connections</code>.</p>
<p>Thus the number of inflight incomings is <code>qad_incoming</code> - <code>qad_incoming_error</code> - <code>qad_connections</code>.</p>
</div><span id="structfield.qad_incoming_error" class="structfield section-header"><a href="#structfield.qad_incoming_error" class="anchor field">§</a><code>qad_incoming_error: Counter</code></span><div class="docblock"><p>Number of QAD QUIC connections that aborted before completing the handshake.</p>
</div><span id="structfield.qad_connections" class="structfield section-header"><a href="#structfield.qad_connections" class="anchor field">§</a><code>qad_connections: Counter</code></span><div class="docblock"><p>Number of accepted QAD QUIC connections.</p>
<p>The number of active connections is <code>qad_connections</code> - <code>qad_connections_closed</code>.</p>
</div><span id="structfield.qad_connections_closed" class="structfield section-header"><a href="#structfield.qad_connections_closed" class="anchor field">§</a><code>qad_connections_closed: Counter</code></span><div class="docblock"><p>Number of QAD QUIC connections that disconnected after being accepted.</p>
</div><span id="structfield.qad_connections_errored" class="structfield section-header"><a href="#structfield.qad_connections_errored" class="anchor field">§</a><code>qad_connections_errored: Counter</code></span><div class="docblock"><p>Number of QAD QUIC connections that disconnected after being accepted, with an error.</p>
<p>The number is <em>included</em> in <code>qad_connections_closed</code> (not in addition to).</p>
</div><span id="structfield.http_connections" class="structfield section-header"><a href="#structfield.http_connections" class="anchor field">§</a><code>http_connections: Counter</code></span><div class="docblock"><p>Number of accepted HTTP(S) connections.</p>
<p>The number of active connections at any time is <code>http_connections</code> - <code>http_connections_closed</code></p>
</div><span id="structfield.http_connections_closed" class="structfield section-header"><a href="#structfield.http_connections_closed" class="anchor field">§</a><code>http_connections_closed: Counter</code></span><div class="docblock"><p>Number of terminated HTTP(S) connections.</p>
</div><span id="structfield.http_connections_errored" class="structfield section-header"><a href="#structfield.http_connections_errored" class="anchor field">§</a><code>http_connections_errored: Counter</code></span><div class="docblock"><p>Number of HTTP(S) connections that terminated with an error.</p>
<p>The number is <em>included</em> in <code>http_connections_closed</code> (not in addition to).</p>
</div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-Metrics" class="impl"><a class="src rightside" href="../../src/iroh_relay/server/metrics.rs.html#6">Source</a><a href="#impl-Debug-for-Metrics" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Metrics.html" title="struct iroh_relay::server::Metrics">Metrics</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/iroh_relay/server/metrics.rs.html#6">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Default-for-Metrics" class="impl"><a class="src rightside" href="../../src/iroh_relay/server/metrics.rs.html#6">Source</a><a href="#impl-Default-for-Metrics" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.Metrics.html" title="struct iroh_relay::server::Metrics">Metrics</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.default" class="method trait-impl"><a class="src rightside" href="../../src/iroh_relay/server/metrics.rs.html#6">Source</a><a href="#method.default" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fn">default</a>() -&gt; <a class="struct" href="struct.Metrics.html" title="struct iroh_relay::server::Metrics">Metrics</a></h4></section></summary><div class='docblock'>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Iterable-for-Metrics" class="impl"><a class="src rightside" href="../../src/iroh_relay/server/metrics.rs.html#6">Source</a><a href="#impl-Iterable-for-Metrics" class="anchor">§</a><h3 class="code-header">impl Iterable for <a class="struct" href="struct.Metrics.html" title="struct iroh_relay::server::Metrics">Metrics</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.metric_field_count" class="method trait-impl"><a class="src rightside" href="../../src/iroh_relay/server/metrics.rs.html#6">Source</a><a href="#method.metric_field_count" class="anchor">§</a><h4 class="code-header">fn <a class="fn">metric_field_count</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Returns the number of metric fields in the struct.</div></details><details class="toggle method-toggle" open><summary><section id="method.metric_field_ref" class="method trait-impl"><a class="src rightside" href="../../src/iroh_relay/server/metrics.rs.html#6">Source</a><a href="#method.metric_field_ref" class="anchor">§</a><h4 class="code-header">fn <a class="fn">metric_field_ref</a>(&amp;self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;MetricItem&lt;'_&gt;&gt;</h4></section></summary><div class='docblock'>Returns the metric field at the given index.</div></details><details class="toggle method-toggle" open><summary><section id="method.family_field_count" class="method trait-impl"><a href="#method.family_field_count" class="anchor">§</a><h4 class="code-header">fn <a class="fn">family_field_count</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Returns the number of <a href="crate::Family"><code>Family</code></a> fields in the struct.</div></details><details class="toggle method-toggle" open><summary><section id="method.family_field_ref" class="method trait-impl"><a href="#method.family_field_ref" class="anchor">§</a><h4 class="code-header">fn <a class="fn">family_field_ref</a>(&amp;self, _n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;FamilyItem&lt;'_&gt;&gt;</h4></section></summary><div class='docblock'>Returns the <a href="crate::Family"><code>Family</code></a> field at the given index.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-MetricsGroup-for-Metrics" class="impl"><a class="src rightside" href="../../src/iroh_relay/server/metrics.rs.html#6">Source</a><a href="#impl-MetricsGroup-for-Metrics" class="anchor">§</a><h3 class="code-header">impl MetricsGroup for <a class="struct" href="struct.Metrics.html" title="struct iroh_relay::server::Metrics">Metrics</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.name" class="method trait-impl"><a class="src rightside" href="../../src/iroh_relay/server/metrics.rs.html#6">Source</a><a href="#method.name" class="anchor">§</a><h4 class="code-header">fn <a class="fn">name</a>(&amp;self) -&gt; &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></h4></section></summary><div class='docblock'>Returns the name of this metrics group.</div></details><details class="toggle method-toggle" open><summary><section id="method.iter" class="method trait-impl"><a href="#method.iter" class="anchor">§</a><h4 class="code-header">fn <a class="fn">iter</a>(&amp;self) -&gt; FieldIter&lt;'_&gt;</h4></section></summary><div class='docblock'>Returns an iterator over all metric items with their values and helps.</div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Metrics" class="impl"><a href="#impl-Freeze-for-Metrics" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.Metrics.html" title="struct iroh_relay::server::Metrics">Metrics</a></h3></section><section id="impl-RefUnwindSafe-for-Metrics" class="impl"><a href="#impl-RefUnwindSafe-for-Metrics" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Metrics.html" title="struct iroh_relay::server::Metrics">Metrics</a></h3></section><section id="impl-Send-for-Metrics" class="impl"><a href="#impl-Send-for-Metrics" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Metrics.html" title="struct iroh_relay::server::Metrics">Metrics</a></h3></section><section id="impl-Sync-for-Metrics" class="impl"><a href="#impl-Sync-for-Metrics" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Metrics.html" title="struct iroh_relay::server::Metrics">Metrics</a></h3></section><section id="impl-Unpin-for-Metrics" class="impl"><a href="#impl-Unpin-for-Metrics" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Metrics.html" title="struct iroh_relay::server::Metrics">Metrics</a></h3></section><section id="impl-UnwindSafe-for-Metrics" class="impl"><a href="#impl-UnwindSafe-for-Metrics" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Metrics.html" title="struct iroh_relay::server::Metrics">Metrics</a></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-AsTaggedExplicit%3C'a,+E%3E-for-T" class="impl"><a href="#impl-AsTaggedExplicit%3C'a,+E%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T, E&gt; AsTaggedExplicit&lt;'a, E&gt; for T<div class="where">where
T: 'a,</div></h3></section></summary><div class="impl-items"><section id="method.explicit" class="method trait-impl"><a href="#method.explicit" class="anchor">§</a><h4 class="code-header">fn <a class="fn">explicit</a>(self, class: Class, tag: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; TaggedParser&lt;'a, Explicit, Self, E&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-AsTaggedImplicit%3C'a,+E%3E-for-T" class="impl"><a href="#impl-AsTaggedImplicit%3C'a,+E%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T, E&gt; AsTaggedImplicit&lt;'a, E&gt; for T<div class="where">where
T: 'a,</div></h3></section></summary><div class="impl-items"><section id="method.implicit" class="method trait-impl"><a href="#method.implicit" class="anchor">§</a><h4 class="code-header">fn <a class="fn">implicit</a>(
self,
class: Class,
constructed: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
tag: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
) -&gt; TaggedParser&lt;'a, Implicit, Self, E&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#212">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#221">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#222">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#785">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#788">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-T" class="impl"><a href="#impl-Instrument-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; Instrument for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a class="fn">instrument</a>(self, span: Span) -&gt; Instrumented&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the provided [<code>Span</code>], returning an
<code>Instrumented</code> wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a class="fn">in_current_span</a>(self) -&gt; Instrumented&lt;Self&gt;</h4></section></summary><div class='docblock'>Instruments this type with the <a href="super::Span::current()">current</a> <a href="crate::Span"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#767-769">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#777">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fn">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><a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoEither-for-T" class="impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#64">Source</a><a href="#impl-IntoEither-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html" title="trait either::into_either::IntoEither">IntoEither</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_either" class="method trait-impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#29">Source</a><a href="#method.into_either" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either" class="fn">into_either</a>(self, into_left: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -&gt; <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a>&lt;Self, Self&gt;</h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either&lt;Self, Self&gt;</code></a>
if <code>into_left</code> is <code>true</code>.
Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either&lt;Self, Self&gt;</code></a>
otherwise. <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.into_either_with" class="method trait-impl"><a class="src rightside" href="https://docs.rs/either/1/src/either/into_either.rs.html#55-57">Source</a><a href="#method.into_either_with" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with" class="fn">into_either_with</a>&lt;F&gt;(self, into_left: F) -&gt; <a class="enum" href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either">Either</a>&lt;Self, Self&gt;<div class="where">where
F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(&amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,</div></h4></section></summary><div class='docblock'>Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Left" title="variant either::Either::Left"><code>Left</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either&lt;Self, Self&gt;</code></a>
if <code>into_left(&amp;self)</code> returns <code>true</code>.
Converts <code>self</code> into a <a href="https://docs.rs/either/1/either/enum.Either.html#variant.Right" title="variant either::Either::Right"><code>Right</code></a> variant of <a href="https://docs.rs/either/1/either/enum.Either.html" title="enum either::Either"><code>Either&lt;Self, Self&gt;</code></a>
otherwise. <a href="https://docs.rs/either/1/either/into_either/trait.IntoEither.html#method.into_either_with">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-IntoIterable-for-T" class="impl"><a href="#impl-IntoIterable-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; IntoIterable for T<div class="where">where
T: Iterable,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.as_iterable" class="method trait-impl"><a href="#method.as_iterable" class="anchor">§</a><h4 class="code-header">fn <a class="fn">as_iterable</a>(&amp;self) -&gt; &amp;dyn Iterable</h4></section></summary><div class='docblock'>Returns <code>self</code> as <code>dyn Iterable</code></div></details><details class="toggle method-toggle" open><summary><section id="method.field_iter" class="method trait-impl"><a href="#method.field_iter" class="anchor">§</a><h4 class="code-header">fn <a class="fn">field_iter</a>(&amp;self) -&gt; FieldIter&lt;'_&gt;</h4></section></summary><div class='docblock'>Returns an iterator over the metric fields of the struct.</div></details><details class="toggle method-toggle" open><summary><section id="method.family_iter" class="method trait-impl"><a href="#method.family_iter" class="anchor">§</a><h4 class="code-header">fn <a class="fn">family_iter</a>(&amp;self) -&gt; FamilyIter&lt;'_&gt;</h4></section></summary><div class='docblock'>Returns an iterator over the Family fields of the struct.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-PolicyExt-for-T" class="impl"><a href="#impl-PolicyExt-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; PolicyExt for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.and" class="method trait-impl"><a href="#method.and" class="anchor">§</a><h4 class="code-header">fn <a class="fn">and</a>&lt;P, B, E&gt;(self, other: P) -&gt; And&lt;T, P&gt;<div class="where">where
T: Policy&lt;B, E&gt;,
P: Policy&lt;B, E&gt;,</div></h4></section></summary><div class='docblock'>Create a new <code>Policy</code> that returns [<code>Action::Follow</code>] only if <code>self</code> and <code>other</code> return
<code>Action::Follow</code>. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.or" class="method trait-impl"><a href="#method.or" class="anchor">§</a><h4 class="code-header">fn <a class="fn">or</a>&lt;P, B, E&gt;(self, other: P) -&gt; Or&lt;T, P&gt;<div class="where">where
T: Policy&lt;B, E&gt;,
P: Policy&lt;B, E&gt;,</div></h4></section></summary><div class='docblock'>Create a new <code>Policy</code> that returns [<code>Action::Follow</code>] if either <code>self</code> or <code>other</code> returns
<code>Action::Follow</code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Same-for-T" class="impl"><a class="src rightside" href="https://docs.rs/typenum/1.20.1/src/typenum/type_operators.rs.html#34">Source</a><a href="#impl-Same-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://docs.rs/typenum/1.20.1/typenum/type_operators/trait.Same.html" title="trait typenum::type_operators::Same">Same</a> for T</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a class="src rightside" href="https://docs.rs/typenum/1.20.1/src/typenum/type_operators.rs.html#35">Source</a><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="https://docs.rs/typenum/1.20.1/typenum/type_operators/trait.Same.html#associatedtype.Output" class="associatedtype">Output</a> = T</h4></section></summary><div class='docblock'>Should always be <code>Self</code></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#827-829">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#831">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#834">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811-813">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#815">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#818">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-T" class="impl"><a href="#impl-WithSubscriber-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; WithSubscriber for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_subscriber</a>&lt;S&gt;(self, subscriber: S) -&gt; WithDispatch&lt;Self&gt;<div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;Dispatch&gt;,</div></h4></section></summary><div class='docblock'>Attaches the provided <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a class="fn">with_current_subscriber</a>(self) -&gt; WithDispatch&lt;Self&gt;</h4></section></summary><div class='docblock'>Attaches the current <a href="dispatcher#setting-the-default-subscriber">default</a> <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details></div></details></div></section></div></main></body></html>