Files
iroh/pr/3501/docs/iroh_base/index.html
T

5 lines
7.1 KiB
HTML

<!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="Base types and utilities for Iroh"><title>iroh_base - 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_base" 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="../crates.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 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_base/index.html">iroh_<wbr>base</a><span class="version">0.92.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="#modules">Crate Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#types" title="Type Aliases">Type Aliases</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_base</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_base/lib.rs.html#1-22">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Base types and utilities for Iroh</p>
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="ticket/index.html" title="mod iroh_base::ticket">ticket</a><wbr><span class="stab portability" title="Available on crate feature `ticket` only"><code>ticket</code></span></dt><dd>Tickets is a serializable object combining information required for an operation.
Typically tickets contain all information required for an operation, e.g. an iroh blob
ticket would contain the hash of the data as well as information about how to reach the
provider.</dd></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.NodeAddr.html" title="struct iroh_base::NodeAddr">Node<wbr>Addr</a><wbr><span class="stab portability" title="Available on crate feature `key` only"><code>key</code></span></dt><dd>Network-level addressing information for an iroh node.</dd><dt><a class="struct" href="struct.PublicKey.html" title="struct iroh_base::PublicKey">Public<wbr>Key</a><wbr><span class="stab portability" title="Available on crate feature `key` only"><code>key</code></span></dt><dd>A public key.</dd><dt><a class="struct" href="struct.RelayUrl.html" title="struct iroh_base::RelayUrl">Relay<wbr>Url</a><wbr><span class="stab portability" title="Available on crate feature `relay` only"><code>relay</code></span></dt><dd>A URL identifying a relay server.</dd><dt><a class="struct" href="struct.RelayUrlParseError.html" title="struct iroh_base::RelayUrlParseError">Relay<wbr>UrlParse<wbr>Error</a><wbr><span class="stab portability" title="Available on crate feature `relay` only"><code>relay</code></span></dt><dd>Can occur when parsing a string into a <a href="struct.RelayUrl.html" title="struct iroh_base::RelayUrl"><code>RelayUrl</code></a>.</dd><dt><a class="struct" href="struct.SecretKey.html" title="struct iroh_base::SecretKey">Secret<wbr>Key</a><wbr><span class="stab portability" title="Available on crate feature `key` only"><code>key</code></span></dt><dd>A secret key.</dd><dt><a class="struct" href="struct.Signature.html" title="struct iroh_base::Signature">Signature</a><wbr><span class="stab portability" title="Available on crate feature `key` only"><code>key</code></span></dt><dd>Ed25519 signature.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.KeyParsingError.html" title="enum iroh_base::KeyParsingError">KeyParsing<wbr>Error</a><wbr><span class="stab portability" title="Available on crate feature `key` only"><code>key</code></span></dt><dd>Error when deserialising a <a href="struct.PublicKey.html" title="struct iroh_base::PublicKey"><code>PublicKey</code></a> or a <a href="struct.SecretKey.html" title="struct iroh_base::SecretKey"><code>SecretKey</code></a>.</dd></dl><h2 id="types" class="section-header">Type Aliases<a href="#types" class="anchor">§</a></h2><dl class="item-table"><dt><a class="type" href="type.NodeId.html" title="type iroh_base::NodeId">NodeId</a><wbr><span class="stab portability" title="Available on crate feature `key` only"><code>key</code></span></dt><dd>The identifier for a node in the (iroh) network.</dd><dt><a class="type" href="type.SignatureError.html" title="type iroh_base::SignatureError">Signature<wbr>Error</a><wbr><span class="stab portability" title="Available on crate feature `key` only"><code>key</code></span></dt><dd>Errors which may occur while processing signatures and keypairs.</dd></dl><script type="text/json" id="notable-traits-data">{"&[u8]":"<h3>Notable traits for <code>&amp;[<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.u8.html\">u8</a>]</code></h3><pre><code><div class=\"where\">impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/std/io/trait.Read.html\" title=\"trait std::io::Read\">Read</a> for &amp;[<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.u8.html\">u8</a>]</div>"}</script></section></div></main></body></html>