mirror of
https://github.com/n0-computer/iroh.git
synced 2026-12-04 08:01:34 +00:00
deploy: b413c82b3a1b3c388fc6415730990f6a88931e42
This commit is contained in:
@@ -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="Tools for spawning an accept loop that routes incoming requests to the right protocol."><title>iroh::protocol - 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" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-6c3ea77c.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.87.0-nightly (f280acf4c 2025-02-19)" data-channel="nightly" data-search-js="search-f7327375.js" data-settings-js="settings-6dad6058.js" ><script src="../../static.files/storage-3a5871a4.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-5332ae0c.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"><!--[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/index.html">iroh</a><span class="version">0.35.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module protocol</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></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"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a></div><h1>Module <span>protocol</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/protocol.rs.html#1-916">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Tools for spawning an accept loop that routes incoming requests to the right protocol.</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="Tools for spawning an accept loop that routes incoming requests to the right protocol."><title>iroh::protocol - 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" crossorigin href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-6c3ea77c.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.87.0-nightly (f280acf4c 2025-02-19)" data-channel="nightly" data-search-js="search-f7327375.js" data-settings-js="settings-6dad6058.js" ><script src="../../static.files/storage-3a5871a4.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-5332ae0c.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"><!--[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/index.html">iroh</a><span class="version">0.35.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module protocol</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></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"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">iroh</a></div><h1>Module <span>protocol</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/protocol.rs.html#1-920">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Tools for spawning an accept loop that routes incoming requests to the right protocol.</p>
|
||||
<h3 id="example"><a class="doc-anchor" href="#example">§</a>Example</h3>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>endpoint = Endpoint::builder().discovery_n0().bind().<span class="kw">await</span><span class="question-mark">?</span>;
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -15,26 +15,31 @@ wait for [<code>tokio::signal::ctrl_c()</code>]:</p>
|
||||
<span class="comment">// wait until the user wants to
|
||||
</span>tokio::signal::ctrl_c().<span class="kw">await</span>.context(<span class="string">"ctrl+c"</span>)<span class="question-mark">?</span>;
|
||||
router.shutdown().<span class="kw">await</span>.context(<span class="string">"shutdown"</span>)<span class="question-mark">?</span>;</code></pre></div>
|
||||
</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-Router" class="impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#368-451">Source</a><a href="#impl-Router" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Router.html" title="struct iroh::protocol::Router">Router</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.builder" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#370-372">Source</a><h4 class="code-header">pub fn <a href="#method.builder" class="fn">builder</a>(endpoint: <a class="struct" href="../endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a>) -> <a class="struct" href="struct.RouterBuilder.html" title="struct iroh::protocol::RouterBuilder">RouterBuilder</a></h4></section></summary><div class="docblock"><p>Creates a new <a href="struct.Router.html" title="struct iroh::protocol::Router"><code>Router</code></a> using given <a href="../endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a>.</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-Router" class="impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#368-456">Source</a><a href="#impl-Router" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.Router.html" title="struct iroh::protocol::Router">Router</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.builder" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#370-372">Source</a><h4 class="code-header">pub fn <a href="#method.builder" class="fn">builder</a>(endpoint: <a class="struct" href="../endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a>) -> <a class="struct" href="struct.RouterBuilder.html" title="struct iroh::protocol::RouterBuilder">RouterBuilder</a></h4></section></summary><div class="docblock"><p>Creates a new <a href="struct.Router.html" title="struct iroh::protocol::Router"><code>Router</code></a> using given <a href="../endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.endpoint" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#375-377">Source</a><h4 class="code-header">pub fn <a href="#method.endpoint" class="fn">endpoint</a>(&self) -> &<a class="struct" href="../endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint">Endpoint</a></h4></section></summary><div class="docblock"><p>Returns the <a href="../endpoint/struct.Endpoint.html" title="struct iroh::endpoint::Endpoint"><code>Endpoint</code></a> stored in this router.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_shutdown" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#380-382">Source</a><h4 class="code-header">pub fn <a href="#method.is_shutdown" class="fn">is_shutdown</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Checks if the router is already shutdown.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.accept" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#394-409">Source</a><h4 class="code-header">pub async fn <a href="#method.accept" class="fn">accept</a>(
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.accept" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#393-408">Source</a><h4 class="code-header">pub async fn <a href="#method.accept" class="fn">accept</a>(
|
||||
&self,
|
||||
alpn: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>,
|
||||
handler: impl <a class="trait" href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler">ProtocolHandler</a>,
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="enum.AddProtocolOutcome.html" title="enum iroh::protocol::AddProtocolOutcome">AddProtocolOutcome</a>, <a class="enum" href="enum.RouterError.html" title="enum iroh::protocol::RouterError">RouterError</a>></h4></section></summary><div class="docblock"><p>Adds a protocol to the list of accepted protocols.</p>
|
||||
<p>Configures the router to accept the <a href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler"><code>ProtocolHandler</code></a> when receiving a connection
|
||||
with this <code>alpn</code>.</p>
|
||||
<p>Once the function yields, new connections with this <code>alpn</code> will be handled.</p>
|
||||
<p>If a protocol handler was already registered for <code>alpn</code>, the previous handler will be shutdown.</p>
|
||||
<p>Returns <code>true</code> if</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.stop_accepting" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#415-425">Source</a><h4 class="code-header">pub async fn <a href="#method.stop_accepting" class="fn">stop_accepting</a>(
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="enum.AddProtocolOutcome.html" title="enum iroh::protocol::AddProtocolOutcome">AddProtocolOutcome</a>, <a class="enum" href="enum.RouterError.html" title="enum iroh::protocol::RouterError">RouterError</a>></h4></section></summary><div class="docblock"><p>Accepts incoming connections with this <code>alpn</code> via <a href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler"><code>ProtocolHandler</code></a>.</p>
|
||||
<p>After this function returns, new connections with this <code>alpn</code> will be handled
|
||||
by the passed <code>handler</code>.</p>
|
||||
<p>If a protocol handler was already registered for <code>alpn</code>, the previous handler will be
|
||||
shutdown. Existing connections will not be aborted by the router, but some protocol
|
||||
handlers may abort existing connnections in their <a href="struct.Router.html#method.shutdown" title="method iroh::protocol::Router::shutdown"><code>Router::shutdown</code></a> implementation.
|
||||
Consult the documentation of the protocol handler to see if that is the case.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.stop_accepting" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#420-430">Source</a><h4 class="code-header">pub async fn <a href="#method.stop_accepting" class="fn">stop_accepting</a>(
|
||||
&self,
|
||||
alpn: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>,
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="enum.StopAcceptingError.html" title="enum iroh::protocol::StopAcceptingError">StopAcceptingError</a>></h4></section></summary><div class="docblock"><p>Stops accepting a protocol.</p>
|
||||
<p>Note that this has only an effect on new connections. Existing connections that were
|
||||
accepted with <code>alpn</code> won’t be closed when calling <a href="struct.Router.html#method.stop_accepting" title="method iroh::protocol::Router::stop_accepting"><code>Router::stop_accepting</code></a>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.shutdown" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#436-450">Source</a><h4 class="code-header">pub async fn <a href="#method.shutdown" class="fn">shutdown</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, JoinError></h4></section></summary><div class="docblock"><p>Shuts down the accept loop cleanly.</p>
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="enum.StopAcceptingError.html" title="enum iroh::protocol::StopAcceptingError">StopAcceptingError</a>></h4></section></summary><div class="docblock"><p>Stops accepting connections with this <code>alpn</code>.</p>
|
||||
<p>After this function returns, new connections with <code>alpn</code> will no longer be accepted.</p>
|
||||
<p>If a protocol handler was registered for <code>alpn</code>, the handler will be
|
||||
shutdown. Existing connections will not be aborted by the router, but some protocol
|
||||
handlers may abort existing connnections in their <a href="struct.Router.html#method.shutdown" title="method iroh::protocol::Router::shutdown"><code>Router::shutdown</code></a> implementation.
|
||||
Consult the documentation of the protocol handler to see if that is the case.</p>
|
||||
<p>Returns an error if the router has been shutdown or no protocol is registered for <code>alpn</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="method.shutdown" class="method"><a class="src rightside" href="../../src/iroh/protocol.rs.html#441-455">Source</a><h4 class="code-header">pub async fn <a href="#method.shutdown" class="fn">shutdown</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, JoinError></h4></section></summary><div class="docblock"><p>Shuts down the accept loop and endpoint cleanly.</p>
|
||||
<p>When this function returns, all <a href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler"><code>ProtocolHandler</code></a>s will be shutdown and
|
||||
<code>Endpoint::close</code> will have been called.</p>
|
||||
<p>If already shutdown, it returns <code>Ok</code>.</p>
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -47,4 +47,4 @@ the router closes the endpoint.</p>
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../endpoint/struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a>, <a class="enum" href="enum.AcceptError.html" title="enum iroh::protocol::AcceptError">AcceptError</a>></h4></section><section id="method.accept" class="method trait-impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#256-258">Source</a><a href="#method.accept" class="anchor">§</a><h4 class="code-header">async fn <a href="#tymethod.accept" class="fn">accept</a>(&self, conn: <a class="struct" href="../endpoint/struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="enum.AcceptError.html" title="enum iroh::protocol::AcceptError">AcceptError</a>></h4></section><section id="method.shutdown-1" class="method trait-impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#260-262">Source</a><a href="#method.shutdown-1" class="anchor">§</a><h4 class="code-header">async fn <a href="#method.shutdown" class="fn">shutdown</a>(&self)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ProtocolHandler-for-Arc%3CT%3E" class="impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#237-249">Source</a><a href="#impl-ProtocolHandler-for-Arc%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T: <a class="trait" href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler">ProtocolHandler</a>> <a class="trait" href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler">ProtocolHandler</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/sync/struct.Arc.html" title="struct alloc::sync::Arc">Arc</a><T></h3></section></summary><div class="impl-items"><section id="method.on_connecting-2" class="method trait-impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#238-240">Source</a><a href="#method.on_connecting-2" class="anchor">§</a><h4 class="code-header">async fn <a href="#method.on_connecting" class="fn">on_connecting</a>(
|
||||
&self,
|
||||
conn: <a class="struct" href="../endpoint/struct.Connecting.html" title="struct iroh::endpoint::Connecting">Connecting</a>,
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../endpoint/struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a>, <a class="enum" href="enum.AcceptError.html" title="enum iroh::protocol::AcceptError">AcceptError</a>></h4></section><section id="method.accept-1" class="method trait-impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#242-244">Source</a><a href="#method.accept-1" class="anchor">§</a><h4 class="code-header">async fn <a href="#tymethod.accept" class="fn">accept</a>(&self, conn: <a class="struct" href="../endpoint/struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="enum.AcceptError.html" title="enum iroh::protocol::AcceptError">AcceptError</a>></h4></section><section id="method.shutdown-2" class="method trait-impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#246-248">Source</a><a href="#method.shutdown-2" class="anchor">§</a><h4 class="code-header">async fn <a href="#method.shutdown" class="fn">shutdown</a>(&self)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-ProtocolHandler-for-AccessLimit%3CP%3E" class="impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#652-674">Source</a><a href="#impl-ProtocolHandler-for-AccessLimit%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P: <a class="trait" href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler">ProtocolHandler</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="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler">ProtocolHandler</a> for <a class="struct" href="struct.AccessLimit.html" title="struct iroh::protocol::AccessLimit">AccessLimit</a><P></h3></section></div><script src="../../trait.impl/iroh/protocol/trait.ProtocolHandler.js" data-ignore-extern-crates="alloc" async></script></section></div></main></body></html>
|
||||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../endpoint/struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a>, <a class="enum" href="enum.AcceptError.html" title="enum iroh::protocol::AcceptError">AcceptError</a>></h4></section><section id="method.accept-1" class="method trait-impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#242-244">Source</a><a href="#method.accept-1" class="anchor">§</a><h4 class="code-header">async fn <a href="#tymethod.accept" class="fn">accept</a>(&self, conn: <a class="struct" href="../endpoint/struct.Connection.html" title="struct iroh::endpoint::Connection">Connection</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="enum.AcceptError.html" title="enum iroh::protocol::AcceptError">AcceptError</a>></h4></section><section id="method.shutdown-2" class="method trait-impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#246-248">Source</a><a href="#method.shutdown-2" class="anchor">§</a><h4 class="code-header">async fn <a href="#method.shutdown" class="fn">shutdown</a>(&self)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-ProtocolHandler-for-AccessLimit%3CP%3E" class="impl"><a class="src rightside" href="../../src/iroh/protocol.rs.html#656-678">Source</a><a href="#impl-ProtocolHandler-for-AccessLimit%3CP%3E" class="anchor">§</a><h3 class="code-header">impl<P: <a class="trait" href="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler">ProtocolHandler</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="trait.ProtocolHandler.html" title="trait iroh::protocol::ProtocolHandler">ProtocolHandler</a> for <a class="struct" href="struct.AccessLimit.html" title="struct iroh::protocol::AccessLimit">AccessLimit</a><P></h3></section></div><script src="../../trait.impl/iroh/protocol/trait.ProtocolHandler.js" data-ignore-extern-crates="alloc" async></script></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user