Skip to content

Commit

Permalink
deploy: d80ba1a
Browse files Browse the repository at this point in the history
  • Loading branch information
dignifiedquire committed Dec 2, 2024
1 parent 8f12d93 commit 02a848b
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 75 deletions.
12 changes: 6 additions & 6 deletions pr/2985/docs/iroh/endpoint/enum.DirectAddrType.html

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions pr/2985/docs/iroh/endpoint/struct.DirectAddr.html

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions pr/2985/docs/iroh/endpoint/struct.DirectAddrsStream.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pr/2985/docs/iroh_net_report/struct.Client.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<p>While running the net_report actor expects to be passed all received stun packets using
<code>Addr::receive_stun_packet</code>.</p>
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Client" class="impl"><a class="src rightside" href="../src/iroh_net_report/lib.rs.html#206-278">source</a><a href="#impl-Client" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Client.html" title="struct iroh_net_report::Client">Client</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../src/iroh_net_report/lib.rs.html#211-222">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(
port_mapper: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Client&gt;,
port_mapper: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../portmapper/struct.Client.html" title="struct portmapper::Client">Client</a>&gt;,
dns_resolver: DnsResolver
) -&gt; <a class="type" href="https://docs.rs/anyhow/1.0.93/anyhow/type.Result.html" title="type anyhow::Result">Result</a>&lt;Self&gt;</h4></section></summary><div class="docblock"><p>Creates a new net_report client.</p>
<p>This starts a connected actor in the background. Once the client is dropped it will
Expand Down
4 changes: 2 additions & 2 deletions pr/2985/docs/iroh_net_report/struct.Report.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
pub mapping_varies_by_dest_ip: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>&gt;,
pub mapping_varies_by_dest_ipv6: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>&gt;,
pub hair_pinning: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>&gt;,
pub portmap_probe: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;ProbeOutput&gt;,
pub portmap_probe: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../portmapper/struct.ProbeOutput.html" title="struct portmapper::ProbeOutput">ProbeOutput</a>&gt;,
pub preferred_relay: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;RelayUrl&gt;,
pub relay_latency: <a class="struct" href="struct.RelayLatencies.html" title="struct iroh_net_report::RelayLatencies">RelayLatencies</a>,
pub relay_v4_latency: <a class="struct" href="struct.RelayLatencies.html" title="struct iroh_net_report::RelayLatencies">RelayLatencies</a>,
Expand All @@ -34,7 +34,7 @@
detecting rather than using it. For now.</p>
</div><span id="structfield.hair_pinning" class="structfield section-header"><a href="#structfield.hair_pinning" class="anchor field">§</a><code>hair_pinning: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>&gt;</code></span><div class="docblock"><p>Whether the router supports communicating between two local devices through the NATted
public IP address (on IPv4).</p>
</div><span id="structfield.portmap_probe" class="structfield section-header"><a href="#structfield.portmap_probe" class="anchor field">§</a><code>portmap_probe: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;ProbeOutput&gt;</code></span><div class="docblock"><p>Probe indicating the presence of port mapping protocols on the LAN.</p>
</div><span id="structfield.portmap_probe" class="structfield section-header"><a href="#structfield.portmap_probe" class="anchor field">§</a><code>portmap_probe: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../portmapper/struct.ProbeOutput.html" title="struct portmapper::ProbeOutput">ProbeOutput</a>&gt;</code></span><div class="docblock"><p>Probe indicating the presence of port mapping protocols on the LAN.</p>
</div><span id="structfield.preferred_relay" class="structfield section-header"><a href="#structfield.preferred_relay" class="anchor field">§</a><code>preferred_relay: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;RelayUrl&gt;</code></span><div class="docblock"><p><code>None</code> for unknown</p>
</div><span id="structfield.relay_latency" class="structfield section-header"><a href="#structfield.relay_latency" class="anchor field">§</a><code>relay_latency: <a class="struct" href="struct.RelayLatencies.html" title="struct iroh_net_report::RelayLatencies">RelayLatencies</a></code></span><div class="docblock"><p>keyed by relay Url</p>
</div><span id="structfield.relay_v4_latency" class="structfield section-header"><a href="#structfield.relay_v4_latency" class="anchor field">§</a><code>relay_v4_latency: <a class="struct" href="struct.RelayLatencies.html" title="struct iroh_net_report::RelayLatencies">RelayLatencies</a></code></span><div class="docblock"><p>keyed by relay Url</p>
Expand Down
56 changes: 0 additions & 56 deletions pr/2985/docs/src/iroh/magicsock.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -3917,34 +3917,6 @@
<a href="#3917" id="3917">3917</a>
<a href="#3918" id="3918">3918</a>
<a href="#3919" id="3919">3919</a>
<a href="#3920" id="3920">3920</a>
<a href="#3921" id="3921">3921</a>
<a href="#3922" id="3922">3922</a>
<a href="#3923" id="3923">3923</a>
<a href="#3924" id="3924">3924</a>
<a href="#3925" id="3925">3925</a>
<a href="#3926" id="3926">3926</a>
<a href="#3927" id="3927">3927</a>
<a href="#3928" id="3928">3928</a>
<a href="#3929" id="3929">3929</a>
<a href="#3930" id="3930">3930</a>
<a href="#3931" id="3931">3931</a>
<a href="#3932" id="3932">3932</a>
<a href="#3933" id="3933">3933</a>
<a href="#3934" id="3934">3934</a>
<a href="#3935" id="3935">3935</a>
<a href="#3936" id="3936">3936</a>
<a href="#3937" id="3937">3937</a>
<a href="#3938" id="3938">3938</a>
<a href="#3939" id="3939">3939</a>
<a href="#3940" id="3940">3940</a>
<a href="#3941" id="3941">3941</a>
<a href="#3942" id="3942">3942</a>
<a href="#3943" id="3943">3943</a>
<a href="#3944" id="3944">3944</a>
<a href="#3945" id="3945">3945</a>
<a href="#3946" id="3946">3946</a>
<a href="#3947" id="3947">3947</a>
</pre></div><pre class="rust"><code><span class="doccomment">//! Implements a socket that can change its communication path while in use, actively searching for the best way to communicate.
//!
//! Based on tailscale/wgengine/magicsock
Expand Down Expand Up @@ -5119,34 +5091,6 @@
<span class="prelude-val">Ok</span>(())
}

<span class="kw">fn </span>poll_send_relay(
<span class="kw-2">&amp;</span><span class="self">self</span>,
url: <span class="kw-2">&amp;</span>RelayUrl,
node: PublicKey,
contents: RelayContents,
) -&gt; Poll&lt;bool&gt; {
<span class="macro">trace!</span>(node = %node.fmt_short(), relay_url = %url, count = contents.len(), len = contents.iter().map(|c| c.len()).sum::&lt;usize&gt;(), <span class="string">"send relay"</span>);
<span class="kw">let </span>msg = RelayActorMessage::Send {
url: url.clone(),
contents,
remote_node: node,
};
<span class="kw">match </span><span class="self">self</span>.relay_actor_sender.try_send(msg) {
<span class="prelude-val">Ok</span>(<span class="kw">_</span>) =&gt; {
<span class="macro">trace!</span>(node = %node.fmt_short(), relay_url = %url, <span class="string">"send relay: message queued"</span>);
Poll::Ready(<span class="bool-val">true</span>)
}
<span class="prelude-val">Err</span>(mpsc::error::TrySendError::Closed(<span class="kw">_</span>)) =&gt; {
<span class="macro">warn!</span>(node = %node.fmt_short(), relay_url = %url, <span class="string">"send relay: message dropped, channel to actor is closed"</span>);
Poll::Ready(<span class="bool-val">false</span>)
}
<span class="prelude-val">Err</span>(mpsc::error::TrySendError::Full(<span class="kw">_</span>)) =&gt; {
<span class="macro">warn!</span>(node = %node.fmt_short(), relay_url = %url, <span class="string">"send relay: message dropped, channel to actor is full"</span>);
Poll::Pending
}
}
}

<span class="kw">fn </span>send_queued_call_me_maybes(<span class="kw-2">&amp;</span><span class="self">self</span>) {
<span class="kw">let </span>msg = <span class="self">self</span>.direct_addrs.to_call_me_maybe_message();
<span class="kw">let </span>msg = disco::Message::CallMeMaybe(msg);
Expand Down
4 changes: 2 additions & 2 deletions pr/2985/docs/src/iroh_dns_server/store/signed_packets.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@

<span class="kw">pub async fn </span>get(<span class="kw-2">&amp;</span><span class="self">self</span>, key: <span class="kw-2">&amp;</span>PublicKeyBytes) -&gt; <span class="prelude-ty">Result</span>&lt;<span class="prelude-ty">Option</span>&lt;SignedPacket&gt;&gt; {
<span class="kw">let </span>db = <span class="self">self</span>.db.clone();
<span class="kw">let </span>key = key.clone();
<span class="kw">let </span>key = <span class="kw-2">*</span>key;
<span class="kw">let </span>res = tokio::task::spawn_blocking(<span class="kw">move </span>|| {
<span class="kw">let </span>tx = db.begin_read()<span class="question-mark">?</span>;
<span class="kw">let </span>table = tx.open_table(SIGNED_PACKETS_TABLE)<span class="question-mark">?</span>;
Expand All @@ -217,7 +217,7 @@

<span class="kw">pub async fn </span>remove(<span class="kw-2">&amp;</span><span class="self">self</span>, key: <span class="kw-2">&amp;</span>PublicKeyBytes) -&gt; <span class="prelude-ty">Result</span>&lt;bool&gt; {
<span class="kw">let </span>db = <span class="self">self</span>.db.clone();
<span class="kw">let </span>key = key.clone();
<span class="kw">let </span>key = <span class="kw-2">*</span>key;
tokio::task::spawn_blocking(<span class="kw">move </span>|| {
<span class="kw">let </span>tx = db.begin_write()<span class="question-mark">?</span>;
<span class="kw">let </span>updated = {
Expand Down

0 comments on commit 02a848b

Please sign in to comment.