Files
iroh/pr/3213/docs/iroh_net_report/index.html
T

5 lines
7.0 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="Checks the network conditions from the current host."><title>iroh_net_report - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.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" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-dbdb5eec.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="iroh_net_report" data-themes="" data-resource-suffix="" data-rustdoc-version="1.85.0-nightly (d10a6823f 2024-11-29)" data-channel="nightly" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../iroh_net_report/index.html">iroh_<wbr>net_<wbr>report</a><span class="version">0.33.0</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section id="rustdoc-toc"><h3><a href="#structs">Crate Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Crate <span>iroh_net_report</span><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_net_report/lib.rs.html#1-1394">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Checks the network conditions from the current host.</p>
<p>NetReport is responsible for finding out the network conditions of the current host, like
whether it is connected to the internet via IPv4 and/or IPv6, what the NAT situation is
etc and reachability to the configured relays.</p>
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="struct" href="struct.Addr.html" title="struct iroh_net_report::Addr">Addr</a></div><div class="desc docblock-short">Sender to the main service.</div></li><li><div class="item-name"><a class="struct" href="struct.Client.html" title="struct iroh_net_report::Client">Client</a></div><div class="desc docblock-short">Client to run net_reports.</div></li><li><div class="item-name"><a class="struct" href="struct.IpMappedAddr.html" title="struct iroh_net_report::IpMappedAddr">IpMapped<wbr>Addr</a></div><div class="desc docblock-short">A map fake Ipv6 address with an actual IP address.</div></li><li><div class="item-name"><a class="struct" href="struct.IpMappedAddrError.html" title="struct iroh_net_report::IpMappedAddrError">IpMapped<wbr>Addr<wbr>Error</a></div><div class="desc docblock-short">Can occur when converting a <a href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr"><code>SocketAddr</code></a> to an <a href="struct.IpMappedAddr.html" title="struct iroh_net_report::IpMappedAddr"><code>IpMappedAddr</code></a></div></li><li><div class="item-name"><a class="struct" href="struct.IpMappedAddresses.html" title="struct iroh_net_report::IpMappedAddresses">IpMapped<wbr>Addresses</a></div><div class="desc docblock-short">A Map of <a href="struct.IpMappedAddresses.html" title="struct iroh_net_report::IpMappedAddresses"><code>IpMappedAddresses</code></a> to <a href="https://doc.rust-lang.org/nightly/core/net/socket_addr/enum.SocketAddr.html" title="enum core::net::socket_addr::SocketAddr"><code>SocketAddr</code></a>.</div></li><li><div class="item-name"><a class="struct" href="struct.Metrics.html" title="struct iroh_net_report::Metrics">Metrics</a></div><div class="desc docblock-short">Enum of metrics for the module</div></li><li><div class="item-name"><a class="struct" href="struct.Options.html" title="struct iroh_net_report::Options">Options</a><wbr><span class="stab portability" title="Available on non-`wasm_browser` only">Non-<code>wasm_browser</code></span></div><div class="desc docblock-short">Options for running probes</div></li><li><div class="item-name"><a class="struct" href="struct.QuicConfig.html" title="struct iroh_net_report::QuicConfig">Quic<wbr>Config</a></div><div class="desc docblock-short">Pieces needed to do QUIC address discovery.</div></li><li><div class="item-name"><a class="struct" href="struct.RelayLatencies.html" title="struct iroh_net_report::RelayLatencies">Relay<wbr>Latencies</a></div><div class="desc docblock-short">Latencies per relay node.</div></li><li><div class="item-name"><a class="struct" href="struct.Report.html" title="struct iroh_net_report::Report">Report</a></div><div class="desc docblock-short">A net_report report.</div></li></ul><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="fn" href="fn.bind_local_stun_socket.html" title="fn iroh_net_report::bind_local_stun_socket">bind_<wbr>local_<wbr>stun_<wbr>socket</a><wbr><span class="stab portability" title="Available on crate feature `stun-utils` only"><code>stun-utils</code></span></div><div class="desc docblock-short">Attempts to bind a local socket to send STUN packets from.</div></li><li><div class="item-name"><a class="fn" href="fn.os_has_ipv6.html" title="fn iroh_net_report::os_has_ipv6">os_<wbr>has_<wbr>ipv6</a><wbr><span class="stab portability" title="Available on non-`wasm_browser` only">Non-<code>wasm_browser</code></span></div><div class="desc docblock-short">Test if IPv6 works at all, or if it’s been hard disabled at the OS level.</div></li></ul></section></div></main></body></html>