mirror of
https://github.com/n0-computer/iroh.git
synced 2026-11-29 08:01:13 +00:00
deploy: d8edbbc2a53c4e6ab134607c57db0748e72e6d31
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -43,4 +43,4 @@ address that received the packet. The latter surfaces via
|
||||
<p>This controls how many datagrams Noq will batch into a single transmit.
|
||||
The default is 1 (no batching). Custom transports that support batching
|
||||
can override this to allow more efficient transmission.</p>
|
||||
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-CustomEndpoint-for-TestTransport" class="impl"><a class="src rightside" href="../../../src/iroh/test_utils/test_transport.rs.html#250-318">Source</a><a href="#impl-CustomEndpoint-for-TestTransport" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.CustomEndpoint.html" title="trait iroh::endpoint::transports::CustomEndpoint">CustomEndpoint</a> for <a class="struct" href="../../test_utils/test_transport/struct.TestTransport.html" title="struct iroh::test_utils::test_transport::TestTransport">TestTransport</a></h3><span class="item-info"><div class="stab portability">Available on <strong>crate features <code>test-utils</code></strong> only.</div></span></section></div><script src="../../../trait.impl/iroh/socket/transports/custom/trait.CustomEndpoint.js" async></script></section></div></main></body></html>
|
||||
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-CustomEndpoint-for-TestTransport" class="impl"><a class="src rightside" href="../../../src/iroh/test_utils/test_transport.rs.html#251-319">Source</a><a href="#impl-CustomEndpoint-for-TestTransport" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.CustomEndpoint.html" title="trait iroh::endpoint::transports::CustomEndpoint">CustomEndpoint</a> for <a class="struct" href="../../test_utils/test_transport/struct.TestTransport.html" title="struct iroh::test_utils::test_transport::TestTransport">TestTransport</a></h3><span class="item-info"><div class="stab portability">Available on <strong>crate features <code>test-utils</code></strong> only.</div></span></section></div><script src="../../../trait.impl/iroh/socket/transports/custom/trait.CustomEndpoint.js" async></script></section></div></main></body></html>
|
||||
@@ -1,4 +1,4 @@
|
||||
<!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="Custom sender"><title>CustomSender in iroh::endpoint::transports - 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="#">CustomSender</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh/index.html">iroh</a><span class="version">1.0.0-rc.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Custom<wbr>Sender</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.is_valid_send_addr" title="is_valid_send_addr">is_valid_send_addr</a></li><li><a href="#tymethod.poll_send" title="poll_send">poll_send</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint::<wbr>transports</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>::<wbr><a href="../index.html">endpoint</a>::<wbr><a href="index.html">transports</a></div><h1>Trait <span class="trait">Custom<wbr>Sender</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/socket/transports/custom.rs.html#84-98">Source</a> </span></div><pre class="rust item-decl"><code>pub trait CustomSender:
|
||||
<!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="Custom sender"><title>CustomSender in iroh::endpoint::transports - 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="#">CustomSender</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh/index.html">iroh</a><span class="version">1.0.0-rc.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Custom<wbr>Sender</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.is_valid_send_addr" title="is_valid_send_addr">is_valid_send_addr</a></li><li><a href="#tymethod.poll_send" title="poll_send">poll_send</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In iroh::<wbr>endpoint::<wbr>transports</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>::<wbr><a href="../index.html">endpoint</a>::<wbr><a href="index.html">transports</a></div><h1>Trait <span class="trait">Custom<wbr>Sender</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/socket/transports/custom.rs.html#84-99">Source</a> </span></div><pre class="rust item-decl"><code>pub trait CustomSender:
|
||||
<a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>
|
||||
+ <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>
|
||||
@@ -9,6 +9,7 @@
|
||||
&self,
|
||||
cx: &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><'_>,
|
||||
dst: &<a class="struct" href="../../../iroh_base/endpoint_addr/struct.CustomAddr.html" title="struct iroh_base::endpoint_addr::CustomAddr">CustomAddr</a>,
|
||||
src: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../../../iroh_base/endpoint_addr/struct.CustomAddr.html" title="struct iroh_base::endpoint_addr::CustomAddr">CustomAddr</a>>,
|
||||
transmit: &<a class="struct" href="struct.Transmit.html" title="struct iroh::endpoint::transports::Transmit">Transmit</a><'_>,
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a><<a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>>;
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>unstable-custom-transports</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Custom sender</p>
|
||||
@@ -18,10 +19,11 @@ It can decide whether it wants to send to a given custom address type.</p>
|
||||
only be called with addresses for which <a href="trait.CustomSender.html#tymethod.is_valid_send_addr" title="method iroh::endpoint::transports::CustomSender::is_valid_send_addr">CustomSender::is_valid_send_addr</a>
|
||||
returns true.</p>
|
||||
</div></details><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.is_valid_send_addr" class="method"><a class="src rightside" href="../../../src/iroh/socket/transports/custom.rs.html#86">Source</a><h4 class="code-header">fn <a href="#tymethod.is_valid_send_addr" class="fn">is_valid_send_addr</a>(&self, addr: &<a class="struct" href="../../../iroh_base/endpoint_addr/struct.CustomAddr.html" title="struct iroh_base::endpoint_addr::CustomAddr">CustomAddr</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>True if this sender can send to the given address.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.poll_send" class="method"><a class="src rightside" href="../../../src/iroh/socket/transports/custom.rs.html#92-97">Source</a><h4 class="code-header">fn <a href="#tymethod.poll_send" class="fn">poll_send</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.poll_send" class="method"><a class="src rightside" href="../../../src/iroh/socket/transports/custom.rs.html#92-98">Source</a><h4 class="code-header">fn <a href="#tymethod.poll_send" class="fn">poll_send</a>(
|
||||
&self,
|
||||
cx: &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><'_>,
|
||||
dst: &<a class="struct" href="../../../iroh_base/endpoint_addr/struct.CustomAddr.html" title="struct iroh_base::endpoint_addr::CustomAddr">CustomAddr</a>,
|
||||
src: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="../../../iroh_base/endpoint_addr/struct.CustomAddr.html" title="struct iroh_base::endpoint_addr::CustomAddr">CustomAddr</a>>,
|
||||
transmit: &<a class="struct" href="struct.Transmit.html" title="struct iroh::endpoint::transports::Transmit">Transmit</a><'_>,
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/task/poll/enum.Poll.html" title="enum core::task::poll::Poll">Poll</a><<a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>></h4></section></summary><div class="docblock"><p>poll sending a packet on this sender.</p>
|
||||
<p>This will only be called from iroh with addresses for which <a href="trait.CustomSender.html#tymethod.is_valid_send_addr" title="method iroh::endpoint::transports::CustomSender::is_valid_send_addr">CustomSender::is_valid_send_addr</a> returns true.</p>
|
||||
|
||||
@@ -14,4 +14,4 @@ be created using <a href="trait.CustomTransport.html#tymethod.bind" title="metho
|
||||
</div></details><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.bind" class="method"><a class="src rightside" href="../../../src/iroh/socket/transports/custom.rs.html#29">Source</a><h4 class="code-header">fn <a href="#tymethod.bind" class="fn">bind</a>(&self) -> <a class="type" href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="trait.CustomEndpoint.html" title="trait iroh::endpoint::transports::CustomEndpoint">CustomEndpoint</a>>></h4></section></summary><div class="docblock"><p>Create a custom endpoint</p>
|
||||
<p>Analogously to <a href="https://doc.rust-lang.org/nightly/std/net/udp/struct.UdpSocket.html#method.bind" title="associated function std::net::udp::UdpSocket::bind">std::net::UdpSocket::bind</a>, this is where the actual
|
||||
underlying hardware resource is created.</p>
|
||||
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-CustomTransport-for-TestTransport" class="impl"><a class="src rightside" href="../../../src/iroh/test_utils/test_transport.rs.html#244-248">Source</a><a href="#impl-CustomTransport-for-TestTransport" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.CustomTransport.html" title="trait iroh::endpoint::transports::CustomTransport">CustomTransport</a> for <a class="struct" href="../../test_utils/test_transport/struct.TestTransport.html" title="struct iroh::test_utils::test_transport::TestTransport">TestTransport</a></h3><span class="item-info"><div class="stab portability">Available on <strong>crate features <code>test-utils</code></strong> only.</div></span></section></div><script src="../../../trait.impl/iroh/socket/transports/custom/trait.CustomTransport.js" async></script></section></div></main></body></html>
|
||||
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-CustomTransport-for-TestTransport" class="impl"><a class="src rightside" href="../../../src/iroh/test_utils/test_transport.rs.html#245-249">Source</a><a href="#impl-CustomTransport-for-TestTransport" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.CustomTransport.html" title="trait iroh::endpoint::transports::CustomTransport">CustomTransport</a> for <a class="struct" href="../../test_utils/test_transport/struct.TestTransport.html" title="struct iroh::test_utils::test_transport::TestTransport">TestTransport</a></h3><span class="item-info"><div class="stab portability">Available on <strong>crate features <code>test-utils</code></strong> only.</div></span></section></div><script src="../../../trait.impl/iroh/socket/transports/custom/trait.CustomTransport.js" async></script></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
<!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="In-memory test transport for testing."><title>iroh::test_utils::test_transport - 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 mod"><!--[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="#">Module test_transport</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh/index.html">iroh</a><span class="version">1.0.0-rc.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module test_<wbr>transport</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In iroh::<wbr>test_<wbr>utils</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>::<wbr><a href="../index.html">test_utils</a></div><h1>Module <span>test_<wbr>transport</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/test_utils/test_transport.rs.html#1-740">Source</a> </span></div><span class="item-info"><div class="stab portability">Available on <strong>(crate features <code>test-utils</code>) and crate feature <code>unstable-custom-transports</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>In-memory test transport for testing.</p>
|
||||
<!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="In-memory test transport for testing."><title>iroh::test_utils::test_transport - 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 mod"><!--[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="#">Module test_transport</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../iroh/index.html">iroh</a><span class="version">1.0.0-rc.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module test_<wbr>transport</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#constants" title="Constants">Constants</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In iroh::<wbr>test_<wbr>utils</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>::<wbr><a href="../index.html">test_utils</a></div><h1>Module <span>test_<wbr>transport</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/test_utils/test_transport.rs.html#1-741">Source</a> </span></div><span class="item-info"><div class="stab portability">Available on <strong>(crate features <code>test-utils</code>) and crate feature <code>unstable-custom-transports</code></strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>In-memory test transport for testing.</p>
|
||||
<p>This module provides <a href="struct.TestNetwork.html" title="struct iroh::test_utils::test_transport::TestNetwork"><code>TestNetwork</code></a> and <a href="struct.TestTransport.html" title="struct iroh::test_utils::test_transport::TestTransport"><code>TestTransport</code></a> for testing
|
||||
using in-memory channels instead of real network transports.</p>
|
||||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.TestNetwork.html" title="struct iroh::test_utils::test_transport::TestNetwork">Test<wbr>Network</a></dt><dd>A simulated network for testing custom transports.</dd><dt><a class="struct" href="struct.TestTransport.html" title="struct iroh::test_utils::test_transport::TestTransport">Test<wbr>Transport</a></dt><dd>A test transport for use with <a href="struct.TestNetwork.html" title="struct iroh::test_utils::test_transport::TestNetwork"><code>TestNetwork</code></a>.</dd></dl><h2 id="constants" class="section-header">Constants<a href="#constants" class="anchor">§</a></h2><dl class="item-table"><dt><a class="constant" href="constant.TEST_TRANSPORT_ID.html" title="constant iroh::test_utils::test_transport::TEST_TRANSPORT_ID">TEST_<wbr>TRANSPORT_<wbr>ID</a></dt><dd>The transport ID used by <a href="struct.TestNetwork.html" title="struct iroh::test_utils::test_transport::TestNetwork"><code>TestNetwork</code></a>.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.to_custom_addr.html" title="fn iroh::test_utils::test_transport::to_custom_addr">to_<wbr>custom_<wbr>addr</a></dt><dd>Converts an endpoint ID to a custom address for this test transport.</dd></dl></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -93,6 +93,7 @@
|
||||
<a href=#93 id=93 data-nosnippet>93</a> <span class="kw-2">&</span><span class="self">self</span>,
|
||||
<a href=#94 id=94 data-nosnippet>94</a> cx: <span class="kw-2">&mut </span>std::task::Context,
|
||||
<a href=#95 id=95 data-nosnippet>95</a> dst: <span class="kw-2">&</span>CustomAddr,
|
||||
<a href=#96 id=96 data-nosnippet>96</a> transmit: <span class="kw-2">&</span>Transmit<<span class="lifetime">'_</span>>,
|
||||
<a href=#97 id=97 data-nosnippet>97</a> ) -> Poll<io::Result<()>>;
|
||||
<a href=#98 id=98 data-nosnippet>98</a>}</code></pre></div></section></main></body></html>
|
||||
<a href=#96 id=96 data-nosnippet>96</a> src: <span class="prelude-ty">Option</span><<span class="kw-2">&</span>CustomAddr>,
|
||||
<a href=#97 id=97 data-nosnippet>97</a> transmit: <span class="kw-2">&</span>Transmit<<span class="lifetime">'_</span>>,
|
||||
<a href=#98 id=98 data-nosnippet>98</a> ) -> Poll<io::Result<()>>;
|
||||
<a href=#99 id=99 data-nosnippet>99</a>}</code></pre></div></section></main></body></html>
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user