Files
iroh/pr/3627/docs/iroh/trait.Watcher.html
T

118 lines
29 KiB
HTML
Raw 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="A handle to a value that’s represented by one or more underlying `Watchable`s."><title>Watcher in iroh - 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" 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 trait"><!--[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="#">Watcher</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../iroh/index.html">iroh</a><span class="version">0.95.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Watcher</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Value" title="Value">Value</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.get" title="get">get</a></li><li><a href="#tymethod.is_connected" title="is_connected">is_connected</a></li><li><a href="#tymethod.poll_updated" title="poll_updated">poll_updated</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.initialized" title="initialized">initialized</a></li><li><a href="#method.map" title="map">map</a></li><li><a href="#method.or" title="or">or</a></li><li><a href="#method.stream" title="stream">stream</a></li><li><a href="#method.stream_updates_only" title="stream_updates_only">stream_updates_only</a></li><li><a href="#method.updated" title="updated">updated</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Watcher-for-(S,+T)" title="(S, T)">(S, T)</a></li><li><a href="#impl-Watcher-for-(S,+T,+U)" title="(S, T, U)">(S, T, U)</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate iroh</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</a></div><h1>Trait <span class="trait">Watcher</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"></span></div><pre class="rust item-decl"><code>pub trait Watcher: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> {
type <a href="#associatedtype.Value" class="associatedtype">Value</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>;
// Required methods
fn <a href="#tymethod.get" class="fn">get</a>(&amp;mut self) -&gt; Self::<a class="associatedtype" href="trait.Watcher.html#associatedtype.Value" title="type iroh::Watcher::Value">Value</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.is_connected" class="fn">is_connected</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.poll_updated" class="fn">poll_updated</a>(
&amp;mut self,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Watcher.html#associatedtype.Value" title="type iroh::Watcher::Value">Value</a>, Disconnected&gt;&gt;;
// Provided methods
fn <a href="#method.updated" class="fn">updated</a>(&amp;mut self) -&gt; NextFut&lt;'_, Self&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.initialized" class="fn">initialized</a>&lt;T, W&gt;(&amp;mut self) -&gt; InitializedFut&lt;'_, T, W, Self&gt;
<span class="where">where W: Nullable&lt;T&gt;,
Self: <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>&lt;Value = W&gt;</span> { ... }
<span class="item-spacer"></span> fn <a href="#method.stream" class="fn">stream</a>(self) -&gt; Stream&lt;Self&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.stream_updates_only" class="fn">stream_updates_only</a>(self) -&gt; Stream&lt;Self&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.map" class="fn">map</a>&lt;T&gt;(
self,
map: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(Self::<a class="associatedtype" href="trait.Watcher.html#associatedtype.Value" title="type iroh::Watcher::Value">Value</a>) -&gt; T + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static,
) -&gt; Map&lt;Self, T&gt;
<span class="where">where T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.or" class="fn">or</a>&lt;W&gt;(self, other: W) -&gt; (Self, W)
<span class="where">where W: <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a></span> { ... }
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A handle to a value that’s represented by one or more underlying [<code>Watchable</code>]s.</p>
<p>A <a href="trait.Watcher.html" title="trait iroh::Watcher"><code>Watcher</code></a> can get the current value, and will be notified when the value changes.
Only the most recent value is accessible, and if the threads with the underlying [<code>Watchable</code>]s
change the value faster than the threads with the <a href="trait.Watcher.html" title="trait iroh::Watcher"><code>Watcher</code></a> can keep up with, then
it’ll miss in-between values.
When the thread changing the [<code>Watchable</code>] pauses updating, the <a href="trait.Watcher.html" title="trait iroh::Watcher"><code>Watcher</code></a> will always
end up reporting the most recent state eventually.</p>
<p>Watchers can be modified via <a href="trait.Watcher.html#method.map" title="method iroh::Watcher::map"><code>Watcher::map</code></a> to observe a value derived from the original
value via a function.</p>
<p>Watchers can be combined via <a href="trait.Watcher.html#method.or" title="method iroh::Watcher::or"><code>Watcher::or</code></a> to allow observing multiple values at once and
getting an update in case any of the values updates.</p>
<p>One of the underlying [<code>Watchable</code>]s might already be dropped. In that case,
the watcher will be “disconnected” and return <a href="Disconnected"><code>Err(Disconnected)</code></a>
on some function calls or, when turned into a stream, that stream will end.
This property can also be checked with <a href="trait.Watcher.html#tymethod.is_connected" title="method iroh::Watcher::is_connected"><code>Watcher::is_connected</code></a>.</p>
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Value" class="method"><h4 class="code-header">type <a href="#associatedtype.Value" class="associatedtype">Value</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a></h4></section></summary><div class="docblock"><p>The type of value that can change.</p>
<p>We require <code>Clone</code>, because we need to be able to make
the values have a lifetime that’s detached from the original [<code>Watchable</code>]’s
lifetime.</p>
<p>We require <code>Eq</code>, to be able to check whether the value actually changed or
not, so we can notify or not notify accordingly.</p>
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.get" class="method"><h4 class="code-header">fn <a href="#tymethod.get" class="fn">get</a>(&amp;mut self) -&gt; Self::<a class="associatedtype" href="trait.Watcher.html#associatedtype.Value" title="type iroh::Watcher::Value">Value</a></h4></section></summary><div class="docblock"><p>Returns the current state of the underlying value.</p>
<p>If any of the underlying [<code>Watchable</code>] values has been dropped, then this
might return an outdated value for that watchable, specifically, the latest
value that was fetched for that watchable, as opposed to the latest value
that was set on the watchable before it was dropped.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.is_connected" class="method"><h4 class="code-header">fn <a href="#tymethod.is_connected" class="fn">is_connected</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Whether this watcher is still connected to all of its underlying [<code>Watchable</code>]s.</p>
<p>Returns false when any of the underlying watchables has been dropped.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.poll_updated" class="method"><h4 class="code-header">fn <a href="#tymethod.poll_updated" class="fn">poll_updated</a>(
&amp;mut self,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Watcher.html#associatedtype.Value" title="type iroh::Watcher::Value">Value</a>, Disconnected&gt;&gt;</h4></section></summary><div class="docblock"><p>Polls for the next value, or returns [<code>Disconnected</code>] if one of the underlying
[<code>Watchable</code>]s has been dropped.</p>
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.updated" class="method"><h4 class="code-header">fn <a href="#method.updated" class="fn">updated</a>(&amp;mut self) -&gt; NextFut&lt;'_, Self&gt;</h4></section></summary><div class="docblock"><p>Returns a future completing with <code>Ok(value)</code> once a new value is set, or with
<a href="Disconnected"><code>Err(Disconnected)</code></a> if the connected [<code>Watchable</code>] was dropped.</p>
<h5 id="cancel-safety"><a class="doc-anchor" href="#cancel-safety">§</a>Cancel Safety</h5>
<p>The returned future is cancel-safe.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.initialized" class="method"><h4 class="code-header">fn <a href="#method.initialized" class="fn">initialized</a>&lt;T, W&gt;(&amp;mut self) -&gt; InitializedFut&lt;'_, T, W, Self&gt;<div class="where">where
W: Nullable&lt;T&gt;,
Self: <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>&lt;Value = W&gt;,</div></h4></section></summary><div class="docblock"><p>Returns a future completing once the value is set to <a href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html#variant.Some" title="variant core::option::Option::Some"><code>Some</code></a> value.</p>
<p>If the current value is <a href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html#variant.Some" title="variant core::option::Option::Some"><code>Some</code></a> value, this future will resolve immediately.</p>
<p>This is a utility for the common case of storing an <a href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option"><code>Option</code></a> inside a
[<code>Watchable</code>].</p>
<h5 id="cancel-safety-1"><a class="doc-anchor" href="#cancel-safety-1">§</a>Cancel Safety</h5>
<p>The returned future is cancel-safe.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.stream" class="method"><h4 class="code-header">fn <a href="#method.stream" class="fn">stream</a>(self) -&gt; Stream&lt;Self&gt;<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h4></section></summary><div class="docblock"><p>Returns a stream which will yield the most recent values as items.</p>
<p>The first item of the stream is the current value, so that this stream can be easily
used to operate on the most recent value.</p>
<p>Note however, that only the last item is stored. If the stream is not polled when an
item is available it can be replaced with another item by the time it is polled.</p>
<p>This stream ends once the original [<code>Watchable</code>] has been dropped.</p>
<h5 id="cancel-safety-2"><a class="doc-anchor" href="#cancel-safety-2">§</a>Cancel Safety</h5>
<p>The returned stream is cancel-safe.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.stream_updates_only" class="method"><h4 class="code-header">fn <a href="#method.stream_updates_only" class="fn">stream_updates_only</a>(self) -&gt; Stream&lt;Self&gt;<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h4></section></summary><div class="docblock"><p>Returns a stream which will yield the most recent values as items, starting from
the next unobserved future value.</p>
<p>This means this stream will only yield values when the watched value changes,
the value stored at the time the stream is created is not yielded.</p>
<p>Note however, that only the last item is stored. If the stream is not polled when an
item is available it can be replaced with another item by the time it is polled.</p>
<p>This stream ends once the original [<code>Watchable</code>] has been dropped.</p>
<h5 id="cancel-safety-3"><a class="doc-anchor" href="#cancel-safety-3">§</a>Cancel Safety</h5>
<p>The returned stream is cancel-safe.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.map" class="method"><h4 class="code-header">fn <a href="#method.map" class="fn">map</a>&lt;T&gt;(
self,
map: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(Self::<a class="associatedtype" href="trait.Watcher.html#associatedtype.Value" title="type iroh::Watcher::Value">Value</a>) -&gt; T + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static,
) -&gt; Map&lt;Self, T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>,</div></h4></section></summary><div class="docblock"><p>Maps this watcher with a function that transforms the observed values.</p>
<p>The returned watcher will only register updates, when the <em>mapped</em> value
observably changes.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.or" class="method"><h4 class="code-header">fn <a href="#method.or" class="fn">or</a>&lt;W&gt;(self, other: W) -&gt; (Self, W)<div class="where">where
W: <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>,</div></h4></section></summary><div class="docblock"><p>Returns a watcher that updates every time this or the other watcher
updates, and yields both watcher’s items together when that happens.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Watcher-for-(S,+T)" class="impl"><a href="#impl-Watcher-for-(S,+T)" class="anchor">§</a><h3 class="code-header">impl&lt;S, T&gt; <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(S, T)</a><div class="where">where
S: <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>,
T: <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Value-1" class="associatedtype trait-impl"><a href="#associatedtype.Value-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Value" class="associatedtype">Value</a> = (&lt;S as <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>&gt;::<a class="associatedtype" href="trait.Watcher.html#associatedtype.Value" title="type iroh::Watcher::Value">Value</a>, &lt;T as <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>&gt;::<a class="associatedtype" href="trait.Watcher.html#associatedtype.Value" title="type iroh::Watcher::Value">Value</a>)</h4></section><section id="method.get" class="method trait-impl"><a href="#method.get" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.get" class="fn">get</a>(&amp;mut self) -&gt; &lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(S, T)</a> as <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>&gt;::<a class="associatedtype" href="trait.Watcher.html#associatedtype.Value" title="type iroh::Watcher::Value">Value</a></h4></section><section id="method.is_connected" class="method trait-impl"><a href="#method.is_connected" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_connected" class="fn">is_connected</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section><section id="method.poll_updated" class="method trait-impl"><a href="#method.poll_updated" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_updated" class="fn">poll_updated</a>(
&amp;mut self,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(S, T)</a> as <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>&gt;::<a class="associatedtype" href="trait.Watcher.html#associatedtype.Value" title="type iroh::Watcher::Value">Value</a>, Disconnected&gt;&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Watcher-for-(S,+T,+U)" class="impl"><a href="#impl-Watcher-for-(S,+T,+U)" class="anchor">§</a><h3 class="code-header">impl&lt;S, T, U&gt; <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(S, T, U)</a><div class="where">where
S: <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>,
T: <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>,
U: <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Value-2" class="associatedtype trait-impl"><a href="#associatedtype.Value-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Value" class="associatedtype">Value</a> = (&lt;S as <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>&gt;::<a class="associatedtype" href="trait.Watcher.html#associatedtype.Value" title="type iroh::Watcher::Value">Value</a>, &lt;T as <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>&gt;::<a class="associatedtype" href="trait.Watcher.html#associatedtype.Value" title="type iroh::Watcher::Value">Value</a>, &lt;U as <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>&gt;::<a class="associatedtype" href="trait.Watcher.html#associatedtype.Value" title="type iroh::Watcher::Value">Value</a>)</h4></section><section id="method.get-1" class="method trait-impl"><a href="#method.get-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.get" class="fn">get</a>(&amp;mut self) -&gt; &lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(S, T, U)</a> as <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>&gt;::<a class="associatedtype" href="trait.Watcher.html#associatedtype.Value" title="type iroh::Watcher::Value">Value</a></h4></section><section id="method.is_connected-1" class="method trait-impl"><a href="#method.is_connected-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_connected" class="fn">is_connected</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section><section id="method.poll_updated-1" class="method trait-impl"><a href="#method.poll_updated-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.poll_updated" class="fn">poll_updated</a>(
&amp;mut self,
cx: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/task/wake/struct.Context.html" title="struct core::task::wake::Context">Context</a>&lt;'_&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(S, T, U)</a> as <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>&gt;::<a class="associatedtype" href="trait.Watcher.html#associatedtype.Value" title="type iroh::Watcher::Value">Value</a>, Disconnected&gt;&gt;</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Watcher-for-Direct%3CT%3E" class="impl"><a href="#impl-Watcher-for-Direct%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a> for Direct&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Value-3" class="associatedtype trait-impl"><a href="#associatedtype.Value-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Value" class="associatedtype">Value</a> = T</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Watcher-for-Join%3CT,+W%3E" class="impl"><a href="#impl-Watcher-for-Join%3CT,+W%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, W&gt; <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a> for Join&lt;T, W&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>,
W: <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>&lt;Value = T&gt;,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Value-4" class="associatedtype trait-impl"><a href="#associatedtype.Value-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Value" class="associatedtype">Value</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;T&gt;</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Watcher-for-Map%3CW,+T%3E" class="impl"><a href="#impl-Watcher-for-Map%3CW,+T%3E" class="anchor">§</a><h3 class="code-header">impl&lt;W, T&gt; <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a> for Map&lt;W, T&gt;<div class="where">where
W: <a class="trait" href="trait.Watcher.html" title="trait iroh::Watcher">Watcher</a>,
T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Value-5" class="associatedtype trait-impl"><a href="#associatedtype.Value-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Value" class="associatedtype">Value</a> = T</h4></section></div></details></div><script src="../trait.impl/n0_watcher/trait.Watcher.js" data-ignore-extern-crates="n0_watcher,std" async></script></section></div></main></body></html>