Constant iroh::defaults::DEFAULT_RELAY_QUIC_PORT
pub const DEFAULT_RELAY_QUIC_PORT: u16 = 7842; // 7_842u16Expand description
The default QUIC port used by the Relay server to accept QUIC connections +
Constant iroh::defaults::DEFAULT_RELAY_QUIC_PORT
source · pub const DEFAULT_RELAY_QUIC_PORT: u16 = 7842; // 7_842u16Expand description
The default QUIC port used by the Relay server to accept QUIC connections for QUIC address discovery
The port is “QUIC” typed on a phone keypad. The default QUIC port used by the Relay server to accept QUIC connections diff --git a/pr/3028/docs/iroh/defaults/constant.DEFAULT_STUN_PORT.html b/pr/3028/docs/iroh/defaults/constant.DEFAULT_STUN_PORT.html index 0a6d9cbf10..9f5722b707 100644 --- a/pr/3028/docs/iroh/defaults/constant.DEFAULT_STUN_PORT.html +++ b/pr/3028/docs/iroh/defaults/constant.DEFAULT_STUN_PORT.html @@ -1,4 +1,4 @@ -
Constant iroh::defaults::DEFAULT_STUN_PORT
pub const DEFAULT_STUN_PORT: u16 = 3478; // 3_478u16Expand description
The default STUN port used by the Relay server.
+Constant iroh::defaults::DEFAULT_STUN_PORT
source · pub const DEFAULT_STUN_PORT: u16 = 3478; // 3_478u16Expand description
The default STUN port used by the Relay server.
The STUN port as defined by RFC 8489 The default STUN port used by the Relay server.
diff --git a/pr/3028/docs/iroh/endpoint/enum.AddrInfoOptions.html b/pr/3028/docs/iroh/endpoint/enum.AddrInfoOptions.html index 6a9c63b7fa..14cbcef57e 100644 --- a/pr/3028/docs/iroh/endpoint/enum.AddrInfoOptions.html +++ b/pr/3028/docs/iroh/endpoint/enum.AddrInfoOptions.html @@ -1,4 +1,4 @@ -Enum iroh::endpoint::AddrInfoOptions
pub enum AddrInfoOptions {
+AddrInfoOptions in iroh::endpoint - Rust Enum iroh::endpoint::AddrInfoOptions
source · pub enum AddrInfoOptions {
Id,
RelayAndAddresses,
Relay,
@@ -9,18 +9,18 @@
§RelayAndAddresses
Includes the Node ID and both the relay URL, and the direct addresses.
§Relay
Includes the Node ID and the relay URL.
§Addresses
Includes the Node ID and the direct addresses.
-Trait Implementations§
§impl Clone for AddrInfoOptions
impl Clone for AddrInfoOptions
§fn clone(&self) -> AddrInfoOptions
fn clone(&self) -> AddrInfoOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for AddrInfoOptions
impl Debug for AddrInfoOptions
§impl Default for AddrInfoOptions
impl Default for AddrInfoOptions
§fn default() -> AddrInfoOptions
fn default() -> AddrInfoOptions
§impl<'de> Deserialize<'de> for AddrInfoOptions
impl<'de> Deserialize<'de> for AddrInfoOptions
§fn deserialize<__D>(
+
fn deserialize<__D>( +
Trait Implementations§
source§impl Clone for AddrInfoOptions
impl Clone for AddrInfoOptions
source§fn clone(&self) -> AddrInfoOptions
fn clone(&self) -> AddrInfoOptions
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AddrInfoOptions
impl Debug for AddrInfoOptions
source§impl Default for AddrInfoOptions
impl Default for AddrInfoOptions
source§fn default() -> AddrInfoOptions
fn default() -> AddrInfoOptions
source§impl<'de> Deserialize<'de> for AddrInfoOptions
impl<'de> Deserialize<'de> for AddrInfoOptions
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfoOptions, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfoOptions, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
§impl Display for AddrInfoOptions
impl Display for AddrInfoOptions
§impl FromStr for AddrInfoOptions
impl FromStr for AddrInfoOptions
§fn from_str(
+ __D: Deserializer<'de>,
fn from_str( + __D: Deserializer<'de>,
source§impl Display for AddrInfoOptions
impl Display for AddrInfoOptions
source§impl FromStr for AddrInfoOptions
impl FromStr for AddrInfoOptions
§impl PartialEq for AddrInfoOptions
impl PartialEq for AddrInfoOptions
§fn eq(&self, other: &AddrInfoOptions) -> bool
fn eq(&self, other: &AddrInfoOptions) -> bool
self and other values to be equal, and is used
+) -> Result<AddrInfoOptions, <AddrInfoOptions as FromStr>::Err>s to return a value of this type. Read moresource§impl PartialEq for AddrInfoOptions
impl PartialEq for AddrInfoOptions
source§fn eq(&self, other: &AddrInfoOptions) -> bool
fn eq(&self, other: &AddrInfoOptions) -> bool
self and other values to be equal, and is used
by ==.§impl Serialize for AddrInfoOptions
impl Serialize for AddrInfoOptions
source§impl Serialize for AddrInfoOptions
impl Serialize for AddrInfoOptions
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
impl Copy for AddrInfoOptions
impl Eq for AddrInfoOptions
impl StructuralPartialEq for AddrInfoOptions
Auto Trait Implementations§
impl Freeze for AddrInfoOptions
impl RefUnwindSafe for AddrInfoOptions
impl Send for AddrInfoOptions
impl Sync for AddrInfoOptions
impl Unpin for AddrInfoOptions
impl UnwindSafe for AddrInfoOptions
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
impl<T> Any for Twhere
+ __S: Serializer,
impl Copy for AddrInfoOptions
impl Eq for AddrInfoOptions
impl StructuralPartialEq for AddrInfoOptions
Auto Trait Implementations§
impl Freeze for AddrInfoOptions
impl RefUnwindSafe for AddrInfoOptions
impl Send for AddrInfoOptions
impl Sync for AddrInfoOptions
impl Unpin for AddrInfoOptions
impl UnwindSafe for AddrInfoOptions
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/3028/docs/iroh/endpoint/struct.AddrInfo.html b/pr/3028/docs/iroh/endpoint/struct.AddrInfo.html
index 7de8534ee4..43c627bae0 100644
--- a/pr/3028/docs/iroh/endpoint/struct.AddrInfo.html
+++ b/pr/3028/docs/iroh/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/endpoint/struct.NodeAddr.html b/pr/3028/docs/iroh/endpoint/struct.NodeAddr.html
index 58f6e1aa1c..41715d8d4a 100644
--- a/pr/3028/docs/iroh/endpoint/struct.NodeAddr.html
+++ b/pr/3028/docs/iroh/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh node.
@@ -25,40 +25,40 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl From<NodeAddr> for NodeTicket
§fn from(addr: NodeAddr) -> NodeTicket
Creates a ticket from given addressing info.
-§impl From<NodeTicket> for NodeAddr
§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
-source§impl From<RemoteInfo> for NodeAddr
source§fn from(info: RemoteInfo) -> Self
Converts to this type from the input type.source§impl From<NodeAddr> for NodeTicket
source§fn from(addr: NodeAddr) -> NodeTicket
Creates a ticket from given addressing info.
+source§impl From<NodeTicket> for NodeAddr
source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
+source§impl From<RemoteInfo> for NodeAddr
source§fn from(info: RemoteInfo) -> Self
Converts to this type from the input type.source§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/enum.AddrInfoOptions.html b/pr/3028/docs/iroh/enum.AddrInfoOptions.html
index 77a66eb53c..37f4b1cf34 100644
--- a/pr/3028/docs/iroh/enum.AddrInfoOptions.html
+++ b/pr/3028/docs/iroh/enum.AddrInfoOptions.html
@@ -1,4 +1,4 @@
-AddrInfoOptions in iroh - Rust Enum iroh::AddrInfoOptions
pub enum AddrInfoOptions {
+AddrInfoOptions in iroh - Rust Enum iroh::AddrInfoOptions
source · pub enum AddrInfoOptions {
Id,
RelayAndAddresses,
Relay,
@@ -9,18 +9,18 @@
§RelayAndAddresses
Includes the Node ID and both the relay URL, and the direct addresses.
§Relay
Includes the Node ID and the relay URL.
§Addresses
Includes the Node ID and the direct addresses.
-
Trait Implementations§
§impl Clone for AddrInfoOptions
§fn clone(&self) -> AddrInfoOptions
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for AddrInfoOptions
§impl Default for AddrInfoOptions
§fn default() -> AddrInfoOptions
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for AddrInfoOptions
§fn deserialize<__D>(
+
Trait Implementations§
source§impl Clone for AddrInfoOptions
source§fn clone(&self) -> AddrInfoOptions
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for AddrInfoOptions
source§impl Default for AddrInfoOptions
source§fn default() -> AddrInfoOptions
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for AddrInfoOptions
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfoOptions, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for AddrInfoOptions
§impl FromStr for AddrInfoOptions
§fn from_str(
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AddrInfoOptions
source§impl FromStr for AddrInfoOptions
§impl PartialEq for AddrInfoOptions
§fn eq(&self, other: &AddrInfoOptions) -> bool
This method tests for self and other values to be equal, and is used
+) -> Result<AddrInfoOptions, <AddrInfoOptions as FromStr>::Err>Parses a string s to return a value of this type. Read moresource§impl PartialEq for AddrInfoOptions
source§fn eq(&self, other: &AddrInfoOptions) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for AddrInfoOptions
source§impl Serialize for AddrInfoOptions
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for AddrInfoOptions
§impl Eq for AddrInfoOptions
§impl StructuralPartialEq for AddrInfoOptions
Auto Trait Implementations§
§impl Freeze for AddrInfoOptions
§impl RefUnwindSafe for AddrInfoOptions
§impl Send for AddrInfoOptions
§impl Sync for AddrInfoOptions
§impl Unpin for AddrInfoOptions
§impl UnwindSafe for AddrInfoOptions
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Copy for AddrInfoOptions
source§impl Eq for AddrInfoOptions
source§impl StructuralPartialEq for AddrInfoOptions
Auto Trait Implementations§
§impl Freeze for AddrInfoOptions
§impl RefUnwindSafe for AddrInfoOptions
§impl Send for AddrInfoOptions
§impl Sync for AddrInfoOptions
§impl Unpin for AddrInfoOptions
§impl UnwindSafe for AddrInfoOptions
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/hash/enum.BlobFormat.html b/pr/3028/docs/iroh/hash/enum.BlobFormat.html
index ce8940a112..6dd1dc05bc 100644
--- a/pr/3028/docs/iroh/hash/enum.BlobFormat.html
+++ b/pr/3028/docs/iroh/hash/enum.BlobFormat.html
@@ -1,30 +1,30 @@
-BlobFormat in iroh::hash - Rust Enum iroh::hash::BlobFormat
pub enum BlobFormat {
+BlobFormat in iroh::hash - Rust Enum iroh::hash::BlobFormat
source · pub enum BlobFormat {
Raw,
HashSeq,
}
Expand description
A format identifier
Variants§
Implementations§
§impl BlobFormat
pub const fn is_hash_seq(&self) -> bool
Is hash seq format
-Trait Implementations§
§impl Clone for BlobFormat
§fn clone(&self) -> BlobFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for BlobFormat
§impl Default for BlobFormat
§fn default() -> BlobFormat
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for BlobFormat
§fn deserialize<__D>(
+
Implementations§
source§impl BlobFormat
Trait Implementations§
source§impl Clone for BlobFormat
source§fn clone(&self) -> BlobFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for BlobFormat
source§impl Default for BlobFormat
source§fn default() -> BlobFormat
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for BlobFormat
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<BlobFormat, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for BlobFormat
§impl Hash for BlobFormat
§fn hash<__H>(&self, state: &mut __H)where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BlobFormat
source§impl Hash for BlobFormat
§impl MaxSize for BlobFormat
§const POSTCARD_MAX_SIZE: usize = 1usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for BlobFormat
source§impl MaxSize for BlobFormat
source§const POSTCARD_MAX_SIZE: usize = 1usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for BlobFormat
source§fn cmp(&self, other: &BlobFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for BlobFormat
§fn eq(&self, other: &BlobFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for BlobFormat
source§fn eq(&self, other: &BlobFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for BlobFormat
§fn partial_cmp(&self, other: &BlobFormat) -> Option<Ordering>
source§impl PartialOrd for BlobFormat
source§fn partial_cmp(&self, other: &BlobFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for BlobFormat
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for BlobFormat
§impl Eq for BlobFormat
§impl StructuralPartialEq for BlobFormat
Auto Trait Implementations§
§impl Freeze for BlobFormat
§impl RefUnwindSafe for BlobFormat
§impl Send for BlobFormat
§impl Sync for BlobFormat
§impl Unpin for BlobFormat
§impl UnwindSafe for BlobFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Copy for BlobFormat
source§impl Eq for BlobFormat
source§impl StructuralPartialEq for BlobFormat
Auto Trait Implementations§
§impl Freeze for BlobFormat
§impl RefUnwindSafe for BlobFormat
§impl Send for BlobFormat
§impl Sync for BlobFormat
§impl Unpin for BlobFormat
§impl UnwindSafe for BlobFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/hash/index.html b/pr/3028/docs/iroh/hash/index.html
index 08facf3957..45a816dc9a 100644
--- a/pr/3028/docs/iroh/hash/index.html
+++ b/pr/3028/docs/iroh/hash/index.html
@@ -1,2 +1,2 @@
-iroh::hash - Rust Expand description
The blake3 hash used in Iroh.
+iroh::hash - Rust
\ No newline at end of file
diff --git a/pr/3028/docs/iroh/hash/struct.Hash.html b/pr/3028/docs/iroh/hash/struct.Hash.html
index 342eb3b8d9..831bcf7be2 100644
--- a/pr/3028/docs/iroh/hash/struct.Hash.html
+++ b/pr/3028/docs/iroh/hash/struct.Hash.html
@@ -1,36 +1,36 @@
-Hash in iroh::hash - Rust pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
-Implementations§
§impl Hash
pub const fn from_bytes(bytes: [u8; 32]) -> Hash
Create a Hash from its raw bytes representation.
-pub fn fmt_short(&self) -> String
Convert to a base32 string limited to the first 10 bytes for a friendly string
+
Hash in iroh::hash - Rust pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
+Implementations§
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hash
source§fn deserialize<D>(
deserializer: D
) -> Result<Hash, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Hash for Hash
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl MaxSize for Hash
§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
-type can have, in bytes.source§impl MaxSize for Hash
source§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for Hash
source§impl PartialEq for Hash
§impl PartialOrd for Hash
source§impl PartialOrd for Hash
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for Hash
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§impl Copy for Hash
§impl Eq for Hash
§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
source§impl Copy for Hash
source§impl Eq for Hash
source§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/hash/struct.HashAndFormat.html b/pr/3028/docs/iroh/hash/struct.HashAndFormat.html
index 6c4c5aaf8b..55d219540e 100644
--- a/pr/3028/docs/iroh/hash/struct.HashAndFormat.html
+++ b/pr/3028/docs/iroh/hash/struct.HashAndFormat.html
@@ -1,37 +1,37 @@
-HashAndFormat in iroh::hash - Rust Struct iroh::hash::HashAndFormat
pub struct HashAndFormat {
+HashAndFormat in iroh::hash - Rust Struct iroh::hash::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
Fields§
§hash: HashThe hash
§format: BlobFormatThe format
-Implementations§
§impl HashAndFormat
pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
-pub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
-pub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
-Trait Implementations§
§impl Clone for HashAndFormat
§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for HashAndFormat
§impl<'de> Deserialize<'de> for HashAndFormat
§fn deserialize<D>(
+
Implementations§
source§impl HashAndFormat
sourcepub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
+sourcepub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
+sourcepub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
+Trait Implementations§
source§impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
source§fn deserialize<D>(
deserializer: D
) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for HashAndFormat
§impl FromStr for HashAndFormat
§impl Hash for HashAndFormat
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for HashAndFormat
source§impl FromStr for HashAndFormat
source§impl Hash for HashAndFormat
§impl MaxSize for HashAndFormat
§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for HashAndFormat
source§impl MaxSize for HashAndFormat
source§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for HashAndFormat
§fn eq(&self, other: &HashAndFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for HashAndFormat
§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
source§impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for HashAndFormat
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable widthsource§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
HashAndFormat: 'a,
Deserializes data
-Implementations may return a view over data, or an owned typesource§fn as_bytes<'a, 'b>(
value: &'a <HashAndFormat as Value>::SelfType<'b>
) -> <HashAndFormat as Value>::AsBytes<'a>where
'b: 'a,
- HashAndFormat: 'a + 'b,
Serialize the value to a slice§impl Copy for HashAndFormat
§impl Eq for HashAndFormat
§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ HashAndFormat: 'a + 'b,
Serialize the value to a slicesource§impl Copy for HashAndFormat
source§impl Eq for HashAndFormat
source§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/index.html b/pr/3028/docs/iroh/index.html
index 30210b79da..4dbadc2525 100644
--- a/pr/3028/docs/iroh/index.html
+++ b/pr/3028/docs/iroh/index.html
@@ -162,5 +162,5 @@ connecting using only the <
Ok(())
}
Please see the examples directory for more nuanced examples.
-Re-exports§
Modules§
- Default values used in
iroh - Node address discovery.
- This module exports a DNS resolver, which is also the default resolver used in the
+
Re-exports§
pub use endpoint::Endpoint;pub use endpoint::RelayMode;pub use iroh_relay as relay;
Modules§
- Default values used in
iroh - Node address discovery.
- This module exports a DNS resolver, which is also the default resolver used in the
crate::Endpoint if no custom resolver is configured. - The
Endpoint allows establishing connections to other iroh nodes. - The blake3 hash used in Iroh.
- Cryptographic key handling for
iroh. - Co-locating all of the iroh metrics structs
- Tools for spawning an accept loop that routes incoming requests to the right protocol.
- test_utils
test or test-utilsInternal utilities to support testing.
Structs§
- Network paths to contact an iroh node.
- Network-level addressing information for an iroh node.
- Configuration of all the relay servers that can be used.
- Information on a specific relay server.
- A URL identifying a relay server.
Enums§
Type Aliases§
- The identifier for a node in the (iroh) network.
\ No newline at end of file
diff --git a/pr/3028/docs/iroh/key/enum.KeyParsingError.html b/pr/3028/docs/iroh/key/enum.KeyParsingError.html
index 47778bcd3d..adc345c075 100644
--- a/pr/3028/docs/iroh/key/enum.KeyParsingError.html
+++ b/pr/3028/docs/iroh/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh::key - Rust Enum iroh::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh::key - Rust Enum iroh::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/key/index.html b/pr/3028/docs/iroh/key/index.html
index 6a78611c6d..92f9899f5a 100644
--- a/pr/3028/docs/iroh/key/index.html
+++ b/pr/3028/docs/iroh/key/index.html
@@ -1,2 +1,2 @@
-iroh::key - Rust Expand description
Cryptographic key handling for iroh.
+iroh::key - Rust
\ No newline at end of file
diff --git a/pr/3028/docs/iroh/key/struct.PublicKey.html b/pr/3028/docs/iroh/key/struct.PublicKey.html
index 70211b9eec..cf7a51756f 100644
--- a/pr/3028/docs/iroh/key/struct.PublicKey.html
+++ b/pr/3028/docs/iroh/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/key/struct.SecretKey.html b/pr/3028/docs/iroh/key/struct.SecretKey.html
index 24adb5f449..ad6d41889f 100644
--- a/pr/3028/docs/iroh/key/struct.SecretKey.html
+++ b/pr/3028/docs/iroh/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3028/docs/iroh/key/struct.SharedSecret.html b/pr/3028/docs/iroh/key/struct.SharedSecret.html
index f87fcb80d6..71f82c4773 100644
--- a/pr/3028/docs/iroh/key/struct.SharedSecret.html
+++ b/pr/3028/docs/iroh/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh::key - Rust Struct iroh::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh::key - Rust Struct iroh::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/key/type.NodeId.html b/pr/3028/docs/iroh/key/type.NodeId.html
index 3d730836ff..d241140069 100644
--- a/pr/3028/docs/iroh/key/type.NodeId.html
+++ b/pr/3028/docs/iroh/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/3028/docs/iroh/metrics/struct.RelayMetrics.html b/pr/3028/docs/iroh/metrics/struct.RelayMetrics.html
index 603358f59a..8cf034eec0 100644
--- a/pr/3028/docs/iroh/metrics/struct.RelayMetrics.html
+++ b/pr/3028/docs/iroh/metrics/struct.RelayMetrics.html
@@ -1,4 +1,4 @@
-RelayMetrics in iroh::metrics - Rust Struct iroh::metrics::RelayMetrics
pub struct RelayMetrics {Show 21 fields
+RelayMetrics in iroh::metrics - Rust Struct iroh::metrics::RelayMetrics
source · pub struct RelayMetrics {Show 21 fields
pub bytes_sent: Counter,
pub bytes_recv: Counter,
pub send_packets_sent: Counter,
@@ -42,7 +42,7 @@
§unique_client_keys: CounterNumber of unique client keys per day
§websocket_accepts: CounterNumber of accepted websocket connections
§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)
Access to this metrics group to record a metric.
Only records if this metric is registered in the global registry.§fn try_get() -> Option<&'static Self>
Attempts to get the current metric from the global registry.Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3028/docs/iroh/struct.AddrInfo.html b/pr/3028/docs/iroh/struct.AddrInfo.html
index 50f0b65575..7232cfd58a 100644
--- a/pr/3028/docs/iroh/struct.AddrInfo.html
+++ b/pr/3028/docs/iroh/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh - Rust pub struct AddrInfo {
+AddrInfo in iroh - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/struct.NodeAddr.html b/pr/3028/docs/iroh/struct.NodeAddr.html
index 6339ed03f5..9c5f02bbf0 100644
--- a/pr/3028/docs/iroh/struct.NodeAddr.html
+++ b/pr/3028/docs/iroh/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh - Rust pub struct NodeAddr {
+NodeAddr in iroh - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh node.
@@ -25,40 +25,40 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl From<NodeAddr> for NodeTicket
§fn from(addr: NodeAddr) -> NodeTicket
Creates a ticket from given addressing info.
-§impl From<NodeTicket> for NodeAddr
§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
-source§impl From<RemoteInfo> for NodeAddr
source§fn from(info: RemoteInfo) -> Self
Converts to this type from the input type.source§impl From<NodeAddr> for NodeTicket
source§fn from(addr: NodeAddr) -> NodeTicket
Creates a ticket from given addressing info.
+source§impl From<NodeTicket> for NodeAddr
source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
+source§impl From<RemoteInfo> for NodeAddr
source§fn from(info: RemoteInfo) -> Self
Converts to this type from the input type.source§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/struct.RelayMap.html b/pr/3028/docs/iroh/struct.RelayMap.html
index c04112c1f1..2c354de2df 100644
--- a/pr/3028/docs/iroh/struct.RelayMap.html
+++ b/pr/3028/docs/iroh/struct.RelayMap.html
@@ -1,27 +1,27 @@
-RelayMap in iroh - Rust pub struct RelayMap { /* private fields */ }
Expand description
Configuration of all the relay servers that can be used.
-Implementations§
§impl RelayMap
pub fn nodes(&self) -> impl Iterator<Item = &Arc<RelayNode>>
Returns an Iterator over all known nodes.
-pub fn contains_node(&self, url: &RelayUrl) -> bool
Is this a known node?
-pub fn default_from_node(url: RelayUrl, stun_port: u16) -> RelayMap
Creates a new RelayMap with a single relay server configured.
+RelayMap in iroh - Rust pub struct RelayMap { /* private fields */ }
Expand description
Configuration of all the relay servers that can be used.
+Implementations§
source§impl RelayMap
sourcepub fn nodes(&self) -> impl Iterator<Item = &Arc<RelayNode>>
Returns an Iterator over all known nodes.
+sourcepub fn contains_node(&self, url: &RelayUrl) -> bool
Is this a known node?
+sourcepub fn default_from_node(url: RelayUrl, stun_port: u16) -> RelayMap
Creates a new RelayMap with a single relay server configured.
Allows to set a custom STUN port and different IP addresses for IPv4 and IPv6.
If IP addresses are provided, no DNS lookup will be performed.
Sets the port to the default DEFAULT_RELAY_QUIC_PORT.
-pub fn from_nodes<I>(
+
Trait Implementations§
Trait Implementations§
source§impl PartialEq for RelayMap
§impl Eq for RelayMap
§impl StructuralPartialEq for RelayMap
Auto Trait Implementations§
§impl Freeze for RelayMap
§impl RefUnwindSafe for RelayMap
§impl Send for RelayMap
§impl Sync for RelayMap
§impl Unpin for RelayMap
§impl UnwindSafe for RelayMap
Blanket Implementations§
source§impl Eq for RelayMap
source§impl StructuralPartialEq for RelayMap
Auto Trait Implementations§
§impl Freeze for RelayMap
§impl RefUnwindSafe for RelayMap
§impl Send for RelayMap
§impl Sync for RelayMap
§impl Unpin for RelayMap
§impl UnwindSafe for RelayMap
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/struct.RelayNode.html b/pr/3028/docs/iroh/struct.RelayNode.html
index 023ac04bd5..be49be446c 100644
--- a/pr/3028/docs/iroh/struct.RelayNode.html
+++ b/pr/3028/docs/iroh/struct.RelayNode.html
@@ -1,8 +1,8 @@
-RelayNode in iroh - Rust pub struct RelayNode {
+RelayNode in iroh - Rust pub struct RelayNode {
pub url: RelayUrl,
pub stun_only: bool,
pub stun_port: u16,
- pub quic: Option<QuicConfig>,
+ pub quic: Option<QuicConfig>,
}
Expand description
Information on a specific relay server.
Includes the Url where it can be dialed.
Fields§
§url: RelayUrlThe RelayUrl where this relay server can be dialed.
@@ -11,24 +11,24 @@
functionality is used.
§stun_port: u16The stun port of the relay server.
Setting this to 0 means the default STUN port is used.
-§quic: Option<QuicConfig>Configuration to speak to the QUIC endpoint on the relay server.
+§quic: Option<QuicConfig>Configuration to speak to the QUIC endpoint on the relay server.
When None, we will not attempt to do QUIC address discovery
with this relay server.
-Trait Implementations§
§impl<'de> Deserialize<'de> for RelayNode
§fn deserialize<__D>(
+
Trait Implementations§
source§impl<'de> Deserialize<'de> for RelayNode
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayNode, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for RelayNode
source§impl PartialEq for RelayNode
§impl PartialOrd for RelayNode
source§impl PartialOrd for RelayNode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayNode
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayNode
§impl StructuralPartialEq for RelayNode
Auto Trait Implementations§
§impl Freeze for RelayNode
§impl RefUnwindSafe for RelayNode
§impl Send for RelayNode
§impl Sync for RelayNode
§impl Unpin for RelayNode
§impl UnwindSafe for RelayNode
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayNode
source§impl StructuralPartialEq for RelayNode
Auto Trait Implementations§
§impl Freeze for RelayNode
§impl RefUnwindSafe for RelayNode
§impl Send for RelayNode
§impl Sync for RelayNode
§impl Unpin for RelayNode
§impl UnwindSafe for RelayNode
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/struct.RelayUrl.html b/pr/3028/docs/iroh/struct.RelayUrl.html
index 3d9029556a..f5e27baa0c 100644
--- a/pr/3028/docs/iroh/struct.RelayUrl.html
+++ b/pr/3028/docs/iroh/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -443,30 +443,30 @@ or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
This method is only available if the std Cargo feature is enabled.
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/test_utils/fn.run_relay_server.html b/pr/3028/docs/iroh/test_utils/fn.run_relay_server.html
index 7588afe3e1..3bb9643cf0 100644
--- a/pr/3028/docs/iroh/test_utils/fn.run_relay_server.html
+++ b/pr/3028/docs/iroh/test_utils/fn.run_relay_server.html
@@ -1,4 +1,4 @@
-run_relay_server in iroh::test_utils - Rust Function iroh::test_utils::run_relay_server
source · pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server)>
Available on test or crate feature test-utils only.Expand description
Runs a relay server with STUN and QUIC enabled suitable for tests.
+run_relay_server in iroh::test_utils - Rust Function iroh::test_utils::run_relay_server
source · pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server)>
Available on test or crate feature test-utils only.
\ No newline at end of file
diff --git a/pr/3028/docs/iroh/test_utils/fn.run_relay_server_with.html b/pr/3028/docs/iroh/test_utils/fn.run_relay_server_with.html
index 1dc1294387..5feacf2e7f 100644
--- a/pr/3028/docs/iroh/test_utils/fn.run_relay_server_with.html
+++ b/pr/3028/docs/iroh/test_utils/fn.run_relay_server_with.html
@@ -1,9 +1,9 @@
run_relay_server_with in iroh::test_utils - Rust Function iroh::test_utils::run_relay_server_with
source · pub async fn run_relay_server_with(
- stun: Option<StunConfig>,
+ stun: Option<StunConfig>,
quic: bool
-) -> Result<(RelayMap, RelayUrl, Server)>
Available on test or crate feature test-utils only.Expand description
Runs a relay server.
+) -> Result<(RelayMap, RelayUrl, Server)>Available on test or crate feature test-utils only.Expand description
Runs a relay server.
stun can be set to None to disable stun, or set to Some StunConfig,
to enable stun on a specific socket.
-If quic is set to true, it will make the appropriate [QuicConfig] from the generated tls certificates and run the quic server at a random free port.
+If quic is set to true, it will make the appropriate QuicConfig from the generated tls certificates and run the quic server at a random free port.
The return value is similar to run_relay_server.
\ No newline at end of file
diff --git a/pr/3028/docs/iroh/test_utils/fn.run_relay_server_with_stun.html b/pr/3028/docs/iroh/test_utils/fn.run_relay_server_with_stun.html
index 9242266b9c..03e1e776b6 100644
--- a/pr/3028/docs/iroh/test_utils/fn.run_relay_server_with_stun.html
+++ b/pr/3028/docs/iroh/test_utils/fn.run_relay_server_with_stun.html
@@ -1,5 +1,5 @@
run_relay_server_with_stun in iroh::test_utils - Rust Function iroh::test_utils::run_relay_server_with_stun
source · pub async fn run_relay_server_with_stun(
-) -> Result<(RelayMap, RelayUrl, Server)>
Available on test or crate feature test-utils only.Expand description
Runs a relay server with STUN enabled suitable for tests.
+) -> Result<(RelayMap, RelayUrl, Server)>Available on test or crate feature test-utils only.
\ No newline at end of file
diff --git a/pr/3028/docs/iroh/ticket/enum.Error.html b/pr/3028/docs/iroh/ticket/enum.Error.html
index e26b87f1a6..112bcb43bf 100644
--- a/pr/3028/docs/iroh/ticket/enum.Error.html
+++ b/pr/3028/docs/iroh/ticket/enum.Error.html
@@ -1,4 +1,4 @@
-Error in iroh::ticket - Rust pub enum Error {
+Error in iroh::ticket - Rust pub enum Error {
Kind {
expected: &'static str,
},
@@ -10,7 +10,7 @@
§Postcard(Error)
This looks like a ticket, but postcard deserialization failed.
§Encoding(DecodeError)
This looks like a ticket, but base32 decoding failed.
§Verify(&'static str)
Verification of the deserialized bytes failed.
-
Trait Implementations§
§impl Error for Error
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for Error
§impl RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl UnwindSafe for Error
Blanket Implementations§
Trait Implementations§
source§impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for Error
§impl RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl UnwindSafe for Error
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/ticket/index.html b/pr/3028/docs/iroh/ticket/index.html
index 6742b89342..288da1d108 100644
--- a/pr/3028/docs/iroh/ticket/index.html
+++ b/pr/3028/docs/iroh/ticket/index.html
@@ -1 +1 @@
-iroh::ticket - Rust
\ No newline at end of file
+iroh::ticket - Rust
\ No newline at end of file
diff --git a/pr/3028/docs/iroh/ticket/struct.BlobTicket.html b/pr/3028/docs/iroh/ticket/struct.BlobTicket.html
index 0fc4b041d6..c154fc13b7 100644
--- a/pr/3028/docs/iroh/ticket/struct.BlobTicket.html
+++ b/pr/3028/docs/iroh/ticket/struct.BlobTicket.html
@@ -1,25 +1,25 @@
-BlobTicket in iroh::ticket - Rust Struct iroh::ticket::BlobTicket
pub struct BlobTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+BlobTicket in iroh::ticket - Rust Struct iroh::ticket::BlobTicket
source · pub struct BlobTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl BlobTicket
pub fn new(
+
Implementations§
source§impl BlobTicket
sourcepub fn new(
node: NodeAddr,
hash: Hash,
format: BlobFormat
) -> Result<BlobTicket, Error>
Creates a new ticket.
-pub fn format(&self) -> BlobFormat
The BlobFormat for this ticket.
-pub fn recursive(&self) -> bool
True if the ticket is for a collection and should retrieve all blobs in it.
-pub fn into_parts(self) -> (NodeAddr, Hash, BlobFormat)
Get the contents of the ticket, consuming it.
-Trait Implementations§
§impl Clone for BlobTicket
§fn clone(&self) -> BlobTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for BlobTicket
§impl<'de> Deserialize<'de> for BlobTicket
§fn deserialize<D>(
+
sourcepub fn format(&self) -> BlobFormat
The BlobFormat for this ticket.
+sourcepub fn recursive(&self) -> bool
True if the ticket is for a collection and should retrieve all blobs in it.
+sourcepub fn into_parts(self) -> (NodeAddr, Hash, BlobFormat)
Get the contents of the ticket, consuming it.
+Trait Implementations§
source§impl Clone for BlobTicket
source§fn clone(&self) -> BlobTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for BlobTicket
source§impl<'de> Deserialize<'de> for BlobTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<BlobTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for BlobTicket
§impl FromStr for BlobTicket
§impl PartialEq for BlobTicket
§fn eq(&self, other: &BlobTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BlobTicket
source§impl FromStr for BlobTicket
source§impl PartialEq for BlobTicket
source§fn eq(&self, other: &BlobTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for BlobTicket
source§impl Serialize for BlobTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for BlobTicket
§fn from_bytes(bytes: &[u8]) -> Result<BlobTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for BlobTicket
§impl StructuralPartialEq for BlobTicket
Auto Trait Implementations§
§impl Freeze for BlobTicket
§impl RefUnwindSafe for BlobTicket
§impl Send for BlobTicket
§impl Sync for BlobTicket
§impl Unpin for BlobTicket
§impl UnwindSafe for BlobTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for BlobTicket
source§fn from_bytes(bytes: &[u8]) -> Result<BlobTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for BlobTicket
source§impl StructuralPartialEq for BlobTicket
Auto Trait Implementations§
§impl Freeze for BlobTicket
§impl RefUnwindSafe for BlobTicket
§impl Send for BlobTicket
§impl Sync for BlobTicket
§impl Unpin for BlobTicket
§impl UnwindSafe for BlobTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/ticket/struct.NodeTicket.html b/pr/3028/docs/iroh/ticket/struct.NodeTicket.html
index 2d24fbeac4..759f0ef737 100644
--- a/pr/3028/docs/iroh/ticket/struct.NodeTicket.html
+++ b/pr/3028/docs/iroh/ticket/struct.NodeTicket.html
@@ -1,4 +1,4 @@
-NodeTicket in iroh::ticket - Rust Struct iroh::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing information for establishing a connection to a node.
+NodeTicket in iroh::ticket - Rust Struct iroh::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing information for establishing a connection to a node.
Contains
- The
NodeId of the node to connect to (a 32-byte ed25519 public key).
@@ -10,20 +10,20 @@ possible to do so.
This NodeTicket is a single item which can be easily serialized and deserialized and
implements the Ticket trait. The Display and FromStr traits can also be
used to round-trip the ticket to string.
-
Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl From<NodeAddr> for NodeTicket
§fn from(addr: NodeAddr) -> NodeTicket
Creates a ticket from given addressing info.
-§impl From<NodeTicket> for NodeAddr
§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
-§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl From<NodeAddr> for NodeTicket
source§fn from(addr: NodeAddr) -> NodeTicket
Creates a ticket from given addressing info.
+source§impl From<NodeTicket> for NodeAddr
source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
+source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/ticket/trait.Ticket.html b/pr/3028/docs/iroh/ticket/trait.Ticket.html
index 29a6b228c7..5e8769cc9e 100644
--- a/pr/3028/docs/iroh/ticket/trait.Ticket.html
+++ b/pr/3028/docs/iroh/ticket/trait.Ticket.html
@@ -1,4 +1,4 @@
-Ticket in iroh::ticket - Rust pub trait Ticket: Sized {
+Ticket in iroh::ticket - Rust pub trait Ticket: Sized {
const KIND: &'static str;
// Required methods
@@ -18,10 +18,10 @@ ticket will be prepended to the string to make it somewhat self describing.
versioning, others might not.
The serialization format for converting the ticket from and to bytes is left
to the implementer. We recommend using postcard for serialization.
-
Required Associated Constants§
Required Associated Constants§
Required Methods§
fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
Deserialize from the base32 string representation bytes.
-Provided Methods§
fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+
Required Methods§
sourcefn from_bytes(bytes: &[u8]) -> Result<Self, Error>
Deserialize from the base32 string representation bytes.
+Provided Methods§
sourcefn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr/3028/docs/iroh/type.NodeId.html b/pr/3028/docs/iroh/type.NodeId.html
index ba025a9e83..fede989511 100644
--- a/pr/3028/docs/iroh/type.NodeId.html
+++ b/pr/3028/docs/iroh/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/3028/docs/iroh_net_report/struct.Client.html b/pr/3028/docs/iroh_net_report/struct.Client.html
index a38c9c1ff9..cae4815aae 100644
--- a/pr/3028/docs/iroh_net_report/struct.Client.html
+++ b/pr/3028/docs/iroh_net_report/struct.Client.html
@@ -16,7 +16,7 @@ stop running.
allows sending messages to the actor.
sourcepub async fn get_report(
&mut self,
- dm: RelayMap,
+ dm: RelayMap,
stun_conn4: Option<Arc<UdpSocket>>,
stun_conn6: Option<Arc<UdpSocket>>,
quic_config: Option<QuicConfig>
@@ -32,7 +32,7 @@ responses and function correctly.
may not be as reliable.
sourcepub async fn get_report_channel(
&mut self,
- dm: RelayMap,
+ dm: RelayMap,
stun_conn4: Option<Arc<UdpSocket>>,
stun_conn6: Option<Arc<UdpSocket>>,
quic_config: Option<QuicConfig>
diff --git a/pr/3028/docs/iroh_net_report/struct.QuicConfig.html b/pr/3028/docs/iroh_net_report/struct.QuicConfig.html
index b50ddbe24a..b1ee7bc176 100644
--- a/pr/3028/docs/iroh_net_report/struct.QuicConfig.html
+++ b/pr/3028/docs/iroh_net_report/struct.QuicConfig.html
@@ -1,10 +1,10 @@
-QuicConfig in iroh_net_report - Rust Struct iroh_net_report::QuicConfig
source · pub struct QuicConfig {
+QuicConfig in iroh_net_report - Rust Struct iroh_net_report::QuicConfig
source · pub struct QuicConfig {
pub ep: Endpoint,
pub client_config: ClientConfig,
}
Expand description
Pieces needed to do QUIC address discovery.
Fields§
§ep: EndpointA QUIC Endpoint
§client_config: ClientConfigA client config.
-Trait Implementations§
source§impl Clone for QuicConfig
source§fn clone(&self) -> QuicConfig
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for QuicConfig
§impl !RefUnwindSafe for QuicConfig
§impl Send for QuicConfig
§impl Sync for QuicConfig
§impl Unpin for QuicConfig
§impl !UnwindSafe for QuicConfig
Blanket Implementations§
source§impl<T> Any for Twhere
+Trait Implementations§
source§impl Clone for QuicConfig
source§fn clone(&self) -> QuicConfig
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for QuicConfig
§impl !RefUnwindSafe for QuicConfig
§impl Send for QuicConfig
§impl Sync for QuicConfig
§impl Unpin for QuicConfig
§impl !UnwindSafe for QuicConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh_net_report/struct.RelayLatencies.html b/pr/3028/docs/iroh_net_report/struct.RelayLatencies.html
index ddb55df920..9bad939f51 100644
--- a/pr/3028/docs/iroh_net_report/struct.RelayLatencies.html
+++ b/pr/3028/docs/iroh_net_report/struct.RelayLatencies.html
@@ -1,5 +1,5 @@
RelayLatencies in iroh_net_report - Rust Struct iroh_net_report::RelayLatencies
source · pub struct RelayLatencies(/* private fields */);
Expand description
Latencies per relay node.
-Implementations§
source§impl RelayLatencies
sourcepub fn iter(&self) -> impl Iterator<Item = (&RelayUrl, Duration)> + '_
Returns an iterator over all the relays and their latencies.
+Implementations§
Trait Implementations§
source§impl Clone for RelayLatencies
source§fn clone(&self) -> RelayLatencies
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for RelayLatencies
source§impl Default for RelayLatencies
source§fn default() -> RelayLatencies
Returns the “default value” for a type. Read moresource§impl PartialEq for RelayLatencies
source§fn eq(&self, other: &RelayLatencies) -> bool
This method tests for self and other values to be equal, and is used
by ==.source§impl Eq for RelayLatencies
source§impl StructuralPartialEq for RelayLatencies
Auto Trait Implementations§
§impl Freeze for RelayLatencies
§impl RefUnwindSafe for RelayLatencies
§impl Send for RelayLatencies
§impl Sync for RelayLatencies
§impl Unpin for RelayLatencies
§impl UnwindSafe for RelayLatencies
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/3028/docs/iroh_net_report/struct.Report.html b/pr/3028/docs/iroh_net_report/struct.Report.html
index 5965312462..d8336c9cab 100644
--- a/pr/3028/docs/iroh_net_report/struct.Report.html
+++ b/pr/3028/docs/iroh_net_report/struct.Report.html
@@ -11,7 +11,7 @@
pub mapping_varies_by_dest_ipv6: Option<bool>,
pub hair_pinning: Option<bool>,
pub portmap_probe: Option<ProbeOutput>,
- pub preferred_relay: Option<RelayUrl>,
+ pub preferred_relay: Option<RelayUrl>,
pub relay_latency: RelayLatencies,
pub relay_v4_latency: RelayLatencies,
pub relay_v6_latency: RelayLatencies,
@@ -35,7 +35,7 @@ detecting rather than using it. For now.
§hair_pinning: Option<bool>Whether the router supports communicating between two local devices through the NATted
public IP address (on IPv4).
§portmap_probe: Option<ProbeOutput>Probe indicating the presence of port mapping protocols on the LAN.
-§preferred_relay: Option<RelayUrl>None for unknown
+§preferred_relay: Option<RelayUrl>None for unknown
§relay_latency: RelayLatencieskeyed by relay Url
§relay_v4_latency: RelayLatencieskeyed by relay Url
§relay_v6_latency: RelayLatencieskeyed by relay Url
diff --git a/pr/3028/docs/iroh_relay/server/testing/fn.quic_config.html b/pr/3028/docs/iroh_relay/server/testing/fn.quic_config.html
index 0cb5b9f176..2dfdb042ac 100644
--- a/pr/3028/docs/iroh_relay/server/testing/fn.quic_config.html
+++ b/pr/3028/docs/iroh_relay/server/testing/fn.quic_config.html
@@ -1,6 +1,6 @@
quic_config in iroh_relay::server::testing - Rust
pub struct AddrInfo {
+AddrInfo in iroh::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/endpoint/struct.NodeAddr.html b/pr/3028/docs/iroh/endpoint/struct.NodeAddr.html
index 58f6e1aa1c..41715d8d4a 100644
--- a/pr/3028/docs/iroh/endpoint/struct.NodeAddr.html
+++ b/pr/3028/docs/iroh/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh node.
@@ -25,40 +25,40 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl From<NodeAddr> for NodeTicket
§fn from(addr: NodeAddr) -> NodeTicket
Creates a ticket from given addressing info.
-§impl From<NodeTicket> for NodeAddr
§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
-source§impl From<RemoteInfo> for NodeAddr
source§fn from(info: RemoteInfo) -> Self
Converts to this type from the input type.source§impl From<NodeAddr> for NodeTicket
source§fn from(addr: NodeAddr) -> NodeTicket
Creates a ticket from given addressing info.
+source§impl From<NodeTicket> for NodeAddr
source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
+source§impl From<RemoteInfo> for NodeAddr
source§fn from(info: RemoteInfo) -> Self
Converts to this type from the input type.source§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/enum.AddrInfoOptions.html b/pr/3028/docs/iroh/enum.AddrInfoOptions.html
index 77a66eb53c..37f4b1cf34 100644
--- a/pr/3028/docs/iroh/enum.AddrInfoOptions.html
+++ b/pr/3028/docs/iroh/enum.AddrInfoOptions.html
@@ -1,4 +1,4 @@
-AddrInfoOptions in iroh - Rust Enum iroh::AddrInfoOptions
pub enum AddrInfoOptions {
+AddrInfoOptions in iroh - Rust Enum iroh::AddrInfoOptions
source · pub enum AddrInfoOptions {
Id,
RelayAndAddresses,
Relay,
@@ -9,18 +9,18 @@
§RelayAndAddresses
Includes the Node ID and both the relay URL, and the direct addresses.
§Relay
Includes the Node ID and the relay URL.
§Addresses
Includes the Node ID and the direct addresses.
-
Trait Implementations§
§impl Clone for AddrInfoOptions
§fn clone(&self) -> AddrInfoOptions
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for AddrInfoOptions
§impl Default for AddrInfoOptions
§fn default() -> AddrInfoOptions
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for AddrInfoOptions
§fn deserialize<__D>(
+
Trait Implementations§
source§impl Clone for AddrInfoOptions
source§fn clone(&self) -> AddrInfoOptions
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for AddrInfoOptions
source§impl Default for AddrInfoOptions
source§fn default() -> AddrInfoOptions
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for AddrInfoOptions
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfoOptions, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for AddrInfoOptions
§impl FromStr for AddrInfoOptions
§fn from_str(
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for AddrInfoOptions
source§impl FromStr for AddrInfoOptions
§impl PartialEq for AddrInfoOptions
§fn eq(&self, other: &AddrInfoOptions) -> bool
This method tests for self and other values to be equal, and is used
+) -> Result<AddrInfoOptions, <AddrInfoOptions as FromStr>::Err>Parses a string s to return a value of this type. Read moresource§impl PartialEq for AddrInfoOptions
source§fn eq(&self, other: &AddrInfoOptions) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for AddrInfoOptions
source§impl Serialize for AddrInfoOptions
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for AddrInfoOptions
§impl Eq for AddrInfoOptions
§impl StructuralPartialEq for AddrInfoOptions
Auto Trait Implementations§
§impl Freeze for AddrInfoOptions
§impl RefUnwindSafe for AddrInfoOptions
§impl Send for AddrInfoOptions
§impl Sync for AddrInfoOptions
§impl Unpin for AddrInfoOptions
§impl UnwindSafe for AddrInfoOptions
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Copy for AddrInfoOptions
source§impl Eq for AddrInfoOptions
source§impl StructuralPartialEq for AddrInfoOptions
Auto Trait Implementations§
§impl Freeze for AddrInfoOptions
§impl RefUnwindSafe for AddrInfoOptions
§impl Send for AddrInfoOptions
§impl Sync for AddrInfoOptions
§impl Unpin for AddrInfoOptions
§impl UnwindSafe for AddrInfoOptions
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/hash/enum.BlobFormat.html b/pr/3028/docs/iroh/hash/enum.BlobFormat.html
index ce8940a112..6dd1dc05bc 100644
--- a/pr/3028/docs/iroh/hash/enum.BlobFormat.html
+++ b/pr/3028/docs/iroh/hash/enum.BlobFormat.html
@@ -1,30 +1,30 @@
-BlobFormat in iroh::hash - Rust Enum iroh::hash::BlobFormat
pub enum BlobFormat {
+BlobFormat in iroh::hash - Rust Enum iroh::hash::BlobFormat
source · pub enum BlobFormat {
Raw,
HashSeq,
}
Expand description
A format identifier
Variants§
Implementations§
§impl BlobFormat
pub const fn is_hash_seq(&self) -> bool
Is hash seq format
-Trait Implementations§
§impl Clone for BlobFormat
§fn clone(&self) -> BlobFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for BlobFormat
§impl Default for BlobFormat
§fn default() -> BlobFormat
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for BlobFormat
§fn deserialize<__D>(
+
Implementations§
source§impl BlobFormat
Trait Implementations§
source§impl Clone for BlobFormat
source§fn clone(&self) -> BlobFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for BlobFormat
source§impl Default for BlobFormat
source§fn default() -> BlobFormat
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for BlobFormat
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<BlobFormat, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for BlobFormat
§impl Hash for BlobFormat
§fn hash<__H>(&self, state: &mut __H)where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BlobFormat
source§impl Hash for BlobFormat
§impl MaxSize for BlobFormat
§const POSTCARD_MAX_SIZE: usize = 1usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for BlobFormat
source§impl MaxSize for BlobFormat
source§const POSTCARD_MAX_SIZE: usize = 1usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for BlobFormat
source§fn cmp(&self, other: &BlobFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for BlobFormat
§fn eq(&self, other: &BlobFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for BlobFormat
source§fn eq(&self, other: &BlobFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for BlobFormat
§fn partial_cmp(&self, other: &BlobFormat) -> Option<Ordering>
source§impl PartialOrd for BlobFormat
source§fn partial_cmp(&self, other: &BlobFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for BlobFormat
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for BlobFormat
§impl Eq for BlobFormat
§impl StructuralPartialEq for BlobFormat
Auto Trait Implementations§
§impl Freeze for BlobFormat
§impl RefUnwindSafe for BlobFormat
§impl Send for BlobFormat
§impl Sync for BlobFormat
§impl Unpin for BlobFormat
§impl UnwindSafe for BlobFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Copy for BlobFormat
source§impl Eq for BlobFormat
source§impl StructuralPartialEq for BlobFormat
Auto Trait Implementations§
§impl Freeze for BlobFormat
§impl RefUnwindSafe for BlobFormat
§impl Send for BlobFormat
§impl Sync for BlobFormat
§impl Unpin for BlobFormat
§impl UnwindSafe for BlobFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/hash/index.html b/pr/3028/docs/iroh/hash/index.html
index 08facf3957..45a816dc9a 100644
--- a/pr/3028/docs/iroh/hash/index.html
+++ b/pr/3028/docs/iroh/hash/index.html
@@ -1,2 +1,2 @@
-iroh::hash - Rust Expand description
The blake3 hash used in Iroh.
+iroh::hash - Rust
\ No newline at end of file
diff --git a/pr/3028/docs/iroh/hash/struct.Hash.html b/pr/3028/docs/iroh/hash/struct.Hash.html
index 342eb3b8d9..831bcf7be2 100644
--- a/pr/3028/docs/iroh/hash/struct.Hash.html
+++ b/pr/3028/docs/iroh/hash/struct.Hash.html
@@ -1,36 +1,36 @@
-Hash in iroh::hash - Rust pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
-Implementations§
§impl Hash
pub const fn from_bytes(bytes: [u8; 32]) -> Hash
Create a Hash from its raw bytes representation.
-pub fn fmt_short(&self) -> String
Convert to a base32 string limited to the first 10 bytes for a friendly string
+
Hash in iroh::hash - Rust pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
+Implementations§
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hash
source§fn deserialize<D>(
deserializer: D
) -> Result<Hash, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Hash for Hash
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl MaxSize for Hash
§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
-type can have, in bytes.source§impl MaxSize for Hash
source§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for Hash
source§impl PartialEq for Hash
§impl PartialOrd for Hash
source§impl PartialOrd for Hash
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for Hash
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§impl Copy for Hash
§impl Eq for Hash
§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
source§impl Copy for Hash
source§impl Eq for Hash
source§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/hash/struct.HashAndFormat.html b/pr/3028/docs/iroh/hash/struct.HashAndFormat.html
index 6c4c5aaf8b..55d219540e 100644
--- a/pr/3028/docs/iroh/hash/struct.HashAndFormat.html
+++ b/pr/3028/docs/iroh/hash/struct.HashAndFormat.html
@@ -1,37 +1,37 @@
-HashAndFormat in iroh::hash - Rust Struct iroh::hash::HashAndFormat
pub struct HashAndFormat {
+HashAndFormat in iroh::hash - Rust Struct iroh::hash::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
Fields§
§hash: HashThe hash
§format: BlobFormatThe format
-Implementations§
§impl HashAndFormat
pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
-pub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
-pub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
-Trait Implementations§
§impl Clone for HashAndFormat
§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for HashAndFormat
§impl<'de> Deserialize<'de> for HashAndFormat
§fn deserialize<D>(
+
Implementations§
source§impl HashAndFormat
sourcepub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
+sourcepub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
+sourcepub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
+Trait Implementations§
source§impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
source§fn deserialize<D>(
deserializer: D
) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for HashAndFormat
§impl FromStr for HashAndFormat
§impl Hash for HashAndFormat
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for HashAndFormat
source§impl FromStr for HashAndFormat
source§impl Hash for HashAndFormat
§impl MaxSize for HashAndFormat
§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for HashAndFormat
source§impl MaxSize for HashAndFormat
source§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for HashAndFormat
§fn eq(&self, other: &HashAndFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for HashAndFormat
§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
source§impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for HashAndFormat
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable widthsource§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
HashAndFormat: 'a,
Deserializes data
-Implementations may return a view over data, or an owned typesource§fn as_bytes<'a, 'b>(
value: &'a <HashAndFormat as Value>::SelfType<'b>
) -> <HashAndFormat as Value>::AsBytes<'a>where
'b: 'a,
- HashAndFormat: 'a + 'b,
Serialize the value to a slice§impl Copy for HashAndFormat
§impl Eq for HashAndFormat
§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ HashAndFormat: 'a + 'b,
Serialize the value to a slicesource§impl Copy for HashAndFormat
source§impl Eq for HashAndFormat
source§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/index.html b/pr/3028/docs/iroh/index.html
index 30210b79da..4dbadc2525 100644
--- a/pr/3028/docs/iroh/index.html
+++ b/pr/3028/docs/iroh/index.html
@@ -162,5 +162,5 @@ connecting using only the <
Ok(())
}
Please see the examples directory for more nuanced examples.
-Re-exports§
Modules§
- Default values used in
iroh - Node address discovery.
- This module exports a DNS resolver, which is also the default resolver used in the
+
Re-exports§
pub use endpoint::Endpoint;pub use endpoint::RelayMode;pub use iroh_relay as relay;
Modules§
- Default values used in
iroh - Node address discovery.
- This module exports a DNS resolver, which is also the default resolver used in the
crate::Endpoint if no custom resolver is configured. - The
Endpoint allows establishing connections to other iroh nodes. - The blake3 hash used in Iroh.
- Cryptographic key handling for
iroh. - Co-locating all of the iroh metrics structs
- Tools for spawning an accept loop that routes incoming requests to the right protocol.
- test_utils
test or test-utilsInternal utilities to support testing.
Structs§
- Network paths to contact an iroh node.
- Network-level addressing information for an iroh node.
- Configuration of all the relay servers that can be used.
- Information on a specific relay server.
- A URL identifying a relay server.
Enums§
Type Aliases§
- The identifier for a node in the (iroh) network.
\ No newline at end of file
diff --git a/pr/3028/docs/iroh/key/enum.KeyParsingError.html b/pr/3028/docs/iroh/key/enum.KeyParsingError.html
index 47778bcd3d..adc345c075 100644
--- a/pr/3028/docs/iroh/key/enum.KeyParsingError.html
+++ b/pr/3028/docs/iroh/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh::key - Rust Enum iroh::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh::key - Rust Enum iroh::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/key/index.html b/pr/3028/docs/iroh/key/index.html
index 6a78611c6d..92f9899f5a 100644
--- a/pr/3028/docs/iroh/key/index.html
+++ b/pr/3028/docs/iroh/key/index.html
@@ -1,2 +1,2 @@
-iroh::key - Rust Expand description
Cryptographic key handling for iroh.
+iroh::key - Rust
\ No newline at end of file
diff --git a/pr/3028/docs/iroh/key/struct.PublicKey.html b/pr/3028/docs/iroh/key/struct.PublicKey.html
index 70211b9eec..cf7a51756f 100644
--- a/pr/3028/docs/iroh/key/struct.PublicKey.html
+++ b/pr/3028/docs/iroh/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/key/struct.SecretKey.html b/pr/3028/docs/iroh/key/struct.SecretKey.html
index 24adb5f449..ad6d41889f 100644
--- a/pr/3028/docs/iroh/key/struct.SecretKey.html
+++ b/pr/3028/docs/iroh/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3028/docs/iroh/key/struct.SharedSecret.html b/pr/3028/docs/iroh/key/struct.SharedSecret.html
index f87fcb80d6..71f82c4773 100644
--- a/pr/3028/docs/iroh/key/struct.SharedSecret.html
+++ b/pr/3028/docs/iroh/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh::key - Rust Struct iroh::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh::key - Rust Struct iroh::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/key/type.NodeId.html b/pr/3028/docs/iroh/key/type.NodeId.html
index 3d730836ff..d241140069 100644
--- a/pr/3028/docs/iroh/key/type.NodeId.html
+++ b/pr/3028/docs/iroh/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/3028/docs/iroh/metrics/struct.RelayMetrics.html b/pr/3028/docs/iroh/metrics/struct.RelayMetrics.html
index 603358f59a..8cf034eec0 100644
--- a/pr/3028/docs/iroh/metrics/struct.RelayMetrics.html
+++ b/pr/3028/docs/iroh/metrics/struct.RelayMetrics.html
@@ -1,4 +1,4 @@
-RelayMetrics in iroh::metrics - Rust Struct iroh::metrics::RelayMetrics
pub struct RelayMetrics {Show 21 fields
+RelayMetrics in iroh::metrics - Rust Struct iroh::metrics::RelayMetrics
source · pub struct RelayMetrics {Show 21 fields
pub bytes_sent: Counter,
pub bytes_recv: Counter,
pub send_packets_sent: Counter,
@@ -42,7 +42,7 @@
§unique_client_keys: CounterNumber of unique client keys per day
§websocket_accepts: CounterNumber of accepted websocket connections
§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)
Access to this metrics group to record a metric.
Only records if this metric is registered in the global registry.§fn try_get() -> Option<&'static Self>
Attempts to get the current metric from the global registry.Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/3028/docs/iroh/struct.AddrInfo.html b/pr/3028/docs/iroh/struct.AddrInfo.html
index 50f0b65575..7232cfd58a 100644
--- a/pr/3028/docs/iroh/struct.AddrInfo.html
+++ b/pr/3028/docs/iroh/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh - Rust pub struct AddrInfo {
+AddrInfo in iroh - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/struct.NodeAddr.html b/pr/3028/docs/iroh/struct.NodeAddr.html
index 6339ed03f5..9c5f02bbf0 100644
--- a/pr/3028/docs/iroh/struct.NodeAddr.html
+++ b/pr/3028/docs/iroh/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh - Rust pub struct NodeAddr {
+NodeAddr in iroh - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh node.
@@ -25,40 +25,40 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl From<NodeAddr> for NodeTicket
§fn from(addr: NodeAddr) -> NodeTicket
Creates a ticket from given addressing info.
-§impl From<NodeTicket> for NodeAddr
§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
-source§impl From<RemoteInfo> for NodeAddr
source§fn from(info: RemoteInfo) -> Self
Converts to this type from the input type.source§impl From<NodeAddr> for NodeTicket
source§fn from(addr: NodeAddr) -> NodeTicket
Creates a ticket from given addressing info.
+source§impl From<NodeTicket> for NodeAddr
source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
+source§impl From<RemoteInfo> for NodeAddr
source§fn from(info: RemoteInfo) -> Self
Converts to this type from the input type.source§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/struct.RelayMap.html b/pr/3028/docs/iroh/struct.RelayMap.html
index c04112c1f1..2c354de2df 100644
--- a/pr/3028/docs/iroh/struct.RelayMap.html
+++ b/pr/3028/docs/iroh/struct.RelayMap.html
@@ -1,27 +1,27 @@
-RelayMap in iroh - Rust pub struct RelayMap { /* private fields */ }
Expand description
Configuration of all the relay servers that can be used.
-Implementations§
§impl RelayMap
pub fn nodes(&self) -> impl Iterator<Item = &Arc<RelayNode>>
Returns an Iterator over all known nodes.
-pub fn contains_node(&self, url: &RelayUrl) -> bool
Is this a known node?
-pub fn default_from_node(url: RelayUrl, stun_port: u16) -> RelayMap
Creates a new RelayMap with a single relay server configured.
+RelayMap in iroh - Rust pub struct RelayMap { /* private fields */ }
Expand description
Configuration of all the relay servers that can be used.
+Implementations§
source§impl RelayMap
sourcepub fn nodes(&self) -> impl Iterator<Item = &Arc<RelayNode>>
Returns an Iterator over all known nodes.
+sourcepub fn contains_node(&self, url: &RelayUrl) -> bool
Is this a known node?
+sourcepub fn default_from_node(url: RelayUrl, stun_port: u16) -> RelayMap
Creates a new RelayMap with a single relay server configured.
Allows to set a custom STUN port and different IP addresses for IPv4 and IPv6.
If IP addresses are provided, no DNS lookup will be performed.
Sets the port to the default DEFAULT_RELAY_QUIC_PORT.
-pub fn from_nodes<I>(
+
Trait Implementations§
Trait Implementations§
source§impl PartialEq for RelayMap
§impl Eq for RelayMap
§impl StructuralPartialEq for RelayMap
Auto Trait Implementations§
§impl Freeze for RelayMap
§impl RefUnwindSafe for RelayMap
§impl Send for RelayMap
§impl Sync for RelayMap
§impl Unpin for RelayMap
§impl UnwindSafe for RelayMap
Blanket Implementations§
source§impl Eq for RelayMap
source§impl StructuralPartialEq for RelayMap
Auto Trait Implementations§
§impl Freeze for RelayMap
§impl RefUnwindSafe for RelayMap
§impl Send for RelayMap
§impl Sync for RelayMap
§impl Unpin for RelayMap
§impl UnwindSafe for RelayMap
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/struct.RelayNode.html b/pr/3028/docs/iroh/struct.RelayNode.html
index 023ac04bd5..be49be446c 100644
--- a/pr/3028/docs/iroh/struct.RelayNode.html
+++ b/pr/3028/docs/iroh/struct.RelayNode.html
@@ -1,8 +1,8 @@
-RelayNode in iroh - Rust pub struct RelayNode {
+RelayNode in iroh - Rust pub struct RelayNode {
pub url: RelayUrl,
pub stun_only: bool,
pub stun_port: u16,
- pub quic: Option<QuicConfig>,
+ pub quic: Option<QuicConfig>,
}
Expand description
Information on a specific relay server.
Includes the Url where it can be dialed.
Fields§
§url: RelayUrlThe RelayUrl where this relay server can be dialed.
@@ -11,24 +11,24 @@
functionality is used.
§stun_port: u16The stun port of the relay server.
Setting this to 0 means the default STUN port is used.
-§quic: Option<QuicConfig>Configuration to speak to the QUIC endpoint on the relay server.
+§quic: Option<QuicConfig>Configuration to speak to the QUIC endpoint on the relay server.
When None, we will not attempt to do QUIC address discovery
with this relay server.
-Trait Implementations§
§impl<'de> Deserialize<'de> for RelayNode
§fn deserialize<__D>(
+
Trait Implementations§
source§impl<'de> Deserialize<'de> for RelayNode
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayNode, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for RelayNode
source§impl PartialEq for RelayNode
§impl PartialOrd for RelayNode
source§impl PartialOrd for RelayNode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayNode
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayNode
§impl StructuralPartialEq for RelayNode
Auto Trait Implementations§
§impl Freeze for RelayNode
§impl RefUnwindSafe for RelayNode
§impl Send for RelayNode
§impl Sync for RelayNode
§impl Unpin for RelayNode
§impl UnwindSafe for RelayNode
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayNode
source§impl StructuralPartialEq for RelayNode
Auto Trait Implementations§
§impl Freeze for RelayNode
§impl RefUnwindSafe for RelayNode
§impl Send for RelayNode
§impl Sync for RelayNode
§impl Unpin for RelayNode
§impl UnwindSafe for RelayNode
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/struct.RelayUrl.html b/pr/3028/docs/iroh/struct.RelayUrl.html
index 3d9029556a..f5e27baa0c 100644
--- a/pr/3028/docs/iroh/struct.RelayUrl.html
+++ b/pr/3028/docs/iroh/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -443,30 +443,30 @@ or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
This method is only available if the std Cargo feature is enabled.
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/test_utils/fn.run_relay_server.html b/pr/3028/docs/iroh/test_utils/fn.run_relay_server.html
index 7588afe3e1..3bb9643cf0 100644
--- a/pr/3028/docs/iroh/test_utils/fn.run_relay_server.html
+++ b/pr/3028/docs/iroh/test_utils/fn.run_relay_server.html
@@ -1,4 +1,4 @@
-run_relay_server in iroh::test_utils - Rust Function iroh::test_utils::run_relay_server
source · pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server)>
Available on test or crate feature test-utils only.Expand description
Runs a relay server with STUN and QUIC enabled suitable for tests.
+run_relay_server in iroh::test_utils - Rust Function iroh::test_utils::run_relay_server
source · pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server)>
Available on test or crate feature test-utils only.
\ No newline at end of file
diff --git a/pr/3028/docs/iroh/test_utils/fn.run_relay_server_with.html b/pr/3028/docs/iroh/test_utils/fn.run_relay_server_with.html
index 1dc1294387..5feacf2e7f 100644
--- a/pr/3028/docs/iroh/test_utils/fn.run_relay_server_with.html
+++ b/pr/3028/docs/iroh/test_utils/fn.run_relay_server_with.html
@@ -1,9 +1,9 @@
run_relay_server_with in iroh::test_utils - Rust Function iroh::test_utils::run_relay_server_with
source · pub async fn run_relay_server_with(
- stun: Option<StunConfig>,
+ stun: Option<StunConfig>,
quic: bool
-) -> Result<(RelayMap, RelayUrl, Server)>
Available on test or crate feature test-utils only.Expand description
Runs a relay server.
+) -> Result<(RelayMap, RelayUrl, Server)>Available on test or crate feature test-utils only.Expand description
Runs a relay server.
stun can be set to None to disable stun, or set to Some StunConfig,
to enable stun on a specific socket.
-If quic is set to true, it will make the appropriate [QuicConfig] from the generated tls certificates and run the quic server at a random free port.
+If quic is set to true, it will make the appropriate QuicConfig from the generated tls certificates and run the quic server at a random free port.
The return value is similar to run_relay_server.
\ No newline at end of file
diff --git a/pr/3028/docs/iroh/test_utils/fn.run_relay_server_with_stun.html b/pr/3028/docs/iroh/test_utils/fn.run_relay_server_with_stun.html
index 9242266b9c..03e1e776b6 100644
--- a/pr/3028/docs/iroh/test_utils/fn.run_relay_server_with_stun.html
+++ b/pr/3028/docs/iroh/test_utils/fn.run_relay_server_with_stun.html
@@ -1,5 +1,5 @@
run_relay_server_with_stun in iroh::test_utils - Rust Function iroh::test_utils::run_relay_server_with_stun
source · pub async fn run_relay_server_with_stun(
-) -> Result<(RelayMap, RelayUrl, Server)>
Available on test or crate feature test-utils only.Expand description
Runs a relay server with STUN enabled suitable for tests.
+) -> Result<(RelayMap, RelayUrl, Server)>Available on test or crate feature test-utils only.
\ No newline at end of file
diff --git a/pr/3028/docs/iroh/ticket/enum.Error.html b/pr/3028/docs/iroh/ticket/enum.Error.html
index e26b87f1a6..112bcb43bf 100644
--- a/pr/3028/docs/iroh/ticket/enum.Error.html
+++ b/pr/3028/docs/iroh/ticket/enum.Error.html
@@ -1,4 +1,4 @@
-Error in iroh::ticket - Rust pub enum Error {
+Error in iroh::ticket - Rust pub enum Error {
Kind {
expected: &'static str,
},
@@ -10,7 +10,7 @@
§Postcard(Error)
This looks like a ticket, but postcard deserialization failed.
§Encoding(DecodeError)
This looks like a ticket, but base32 decoding failed.
§Verify(&'static str)
Verification of the deserialized bytes failed.
-
Trait Implementations§
§impl Error for Error
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for Error
§impl RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl UnwindSafe for Error
Blanket Implementations§
Trait Implementations§
source§impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for Error
§impl RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl UnwindSafe for Error
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/ticket/index.html b/pr/3028/docs/iroh/ticket/index.html
index 6742b89342..288da1d108 100644
--- a/pr/3028/docs/iroh/ticket/index.html
+++ b/pr/3028/docs/iroh/ticket/index.html
@@ -1 +1 @@
-iroh::ticket - Rust
\ No newline at end of file
+iroh::ticket - Rust
\ No newline at end of file
diff --git a/pr/3028/docs/iroh/ticket/struct.BlobTicket.html b/pr/3028/docs/iroh/ticket/struct.BlobTicket.html
index 0fc4b041d6..c154fc13b7 100644
--- a/pr/3028/docs/iroh/ticket/struct.BlobTicket.html
+++ b/pr/3028/docs/iroh/ticket/struct.BlobTicket.html
@@ -1,25 +1,25 @@
-BlobTicket in iroh::ticket - Rust Struct iroh::ticket::BlobTicket
pub struct BlobTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+BlobTicket in iroh::ticket - Rust Struct iroh::ticket::BlobTicket
source · pub struct BlobTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl BlobTicket
pub fn new(
+
Implementations§
source§impl BlobTicket
sourcepub fn new(
node: NodeAddr,
hash: Hash,
format: BlobFormat
) -> Result<BlobTicket, Error>
Creates a new ticket.
-pub fn format(&self) -> BlobFormat
The BlobFormat for this ticket.
-pub fn recursive(&self) -> bool
True if the ticket is for a collection and should retrieve all blobs in it.
-pub fn into_parts(self) -> (NodeAddr, Hash, BlobFormat)
Get the contents of the ticket, consuming it.
-Trait Implementations§
§impl Clone for BlobTicket
§fn clone(&self) -> BlobTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for BlobTicket
§impl<'de> Deserialize<'de> for BlobTicket
§fn deserialize<D>(
+
sourcepub fn format(&self) -> BlobFormat
The BlobFormat for this ticket.
+sourcepub fn recursive(&self) -> bool
True if the ticket is for a collection and should retrieve all blobs in it.
+sourcepub fn into_parts(self) -> (NodeAddr, Hash, BlobFormat)
Get the contents of the ticket, consuming it.
+Trait Implementations§
source§impl Clone for BlobTicket
source§fn clone(&self) -> BlobTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for BlobTicket
source§impl<'de> Deserialize<'de> for BlobTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<BlobTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for BlobTicket
§impl FromStr for BlobTicket
§impl PartialEq for BlobTicket
§fn eq(&self, other: &BlobTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BlobTicket
source§impl FromStr for BlobTicket
source§impl PartialEq for BlobTicket
source§fn eq(&self, other: &BlobTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for BlobTicket
source§impl Serialize for BlobTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for BlobTicket
§fn from_bytes(bytes: &[u8]) -> Result<BlobTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for BlobTicket
§impl StructuralPartialEq for BlobTicket
Auto Trait Implementations§
§impl Freeze for BlobTicket
§impl RefUnwindSafe for BlobTicket
§impl Send for BlobTicket
§impl Sync for BlobTicket
§impl Unpin for BlobTicket
§impl UnwindSafe for BlobTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for BlobTicket
source§fn from_bytes(bytes: &[u8]) -> Result<BlobTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for BlobTicket
source§impl StructuralPartialEq for BlobTicket
Auto Trait Implementations§
§impl Freeze for BlobTicket
§impl RefUnwindSafe for BlobTicket
§impl Send for BlobTicket
§impl Sync for BlobTicket
§impl Unpin for BlobTicket
§impl UnwindSafe for BlobTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/ticket/struct.NodeTicket.html b/pr/3028/docs/iroh/ticket/struct.NodeTicket.html
index 2d24fbeac4..759f0ef737 100644
--- a/pr/3028/docs/iroh/ticket/struct.NodeTicket.html
+++ b/pr/3028/docs/iroh/ticket/struct.NodeTicket.html
@@ -1,4 +1,4 @@
-NodeTicket in iroh::ticket - Rust Struct iroh::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing information for establishing a connection to a node.
+NodeTicket in iroh::ticket - Rust Struct iroh::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing information for establishing a connection to a node.
Contains
- The
NodeId of the node to connect to (a 32-byte ed25519 public key).
@@ -10,20 +10,20 @@ possible to do so.
This NodeTicket is a single item which can be easily serialized and deserialized and
implements the Ticket trait. The Display and FromStr traits can also be
used to round-trip the ticket to string.
-
Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl From<NodeAddr> for NodeTicket
§fn from(addr: NodeAddr) -> NodeTicket
Creates a ticket from given addressing info.
-§impl From<NodeTicket> for NodeAddr
§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
-§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl From<NodeAddr> for NodeTicket
source§fn from(addr: NodeAddr) -> NodeTicket
Creates a ticket from given addressing info.
+source§impl From<NodeTicket> for NodeAddr
source§fn from(ticket: NodeTicket) -> NodeAddr
Returns the addressing info from given ticket.
+source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh/ticket/trait.Ticket.html b/pr/3028/docs/iroh/ticket/trait.Ticket.html
index 29a6b228c7..5e8769cc9e 100644
--- a/pr/3028/docs/iroh/ticket/trait.Ticket.html
+++ b/pr/3028/docs/iroh/ticket/trait.Ticket.html
@@ -1,4 +1,4 @@
-Ticket in iroh::ticket - Rust pub trait Ticket: Sized {
+Ticket in iroh::ticket - Rust pub trait Ticket: Sized {
const KIND: &'static str;
// Required methods
@@ -18,10 +18,10 @@ ticket will be prepended to the string to make it somewhat self describing.
versioning, others might not.
The serialization format for converting the ticket from and to bytes is left
to the implementer. We recommend using postcard for serialization.
-
Required Associated Constants§
Required Associated Constants§
Required Methods§
fn from_bytes(bytes: &[u8]) -> Result<Self, Error>
Deserialize from the base32 string representation bytes.
-Provided Methods§
fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.
-Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
+
Required Methods§
sourcefn from_bytes(bytes: &[u8]) -> Result<Self, Error>
Deserialize from the base32 string representation bytes.
+Provided Methods§
sourcefn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.
+Object Safety§
This trait is not object safe.Implementors§
\ No newline at end of file
diff --git a/pr/3028/docs/iroh/type.NodeId.html b/pr/3028/docs/iroh/type.NodeId.html
index ba025a9e83..fede989511 100644
--- a/pr/3028/docs/iroh/type.NodeId.html
+++ b/pr/3028/docs/iroh/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/3028/docs/iroh_net_report/struct.Client.html b/pr/3028/docs/iroh_net_report/struct.Client.html
index a38c9c1ff9..cae4815aae 100644
--- a/pr/3028/docs/iroh_net_report/struct.Client.html
+++ b/pr/3028/docs/iroh_net_report/struct.Client.html
@@ -16,7 +16,7 @@ stop running.
allows sending messages to the actor.
sourcepub async fn get_report(
&mut self,
- dm: RelayMap,
+ dm: RelayMap,
stun_conn4: Option<Arc<UdpSocket>>,
stun_conn6: Option<Arc<UdpSocket>>,
quic_config: Option<QuicConfig>
@@ -32,7 +32,7 @@ responses and function correctly.
may not be as reliable.
sourcepub async fn get_report_channel(
&mut self,
- dm: RelayMap,
+ dm: RelayMap,
stun_conn4: Option<Arc<UdpSocket>>,
stun_conn6: Option<Arc<UdpSocket>>,
quic_config: Option<QuicConfig>
diff --git a/pr/3028/docs/iroh_net_report/struct.QuicConfig.html b/pr/3028/docs/iroh_net_report/struct.QuicConfig.html
index b50ddbe24a..b1ee7bc176 100644
--- a/pr/3028/docs/iroh_net_report/struct.QuicConfig.html
+++ b/pr/3028/docs/iroh_net_report/struct.QuicConfig.html
@@ -1,10 +1,10 @@
-QuicConfig in iroh_net_report - Rust Struct iroh_net_report::QuicConfig
source · pub struct QuicConfig {
+QuicConfig in iroh_net_report - Rust Struct iroh_net_report::QuicConfig
source · pub struct QuicConfig {
pub ep: Endpoint,
pub client_config: ClientConfig,
}
Expand description
Pieces needed to do QUIC address discovery.
Fields§
§ep: EndpointA QUIC Endpoint
§client_config: ClientConfigA client config.
-Trait Implementations§
source§impl Clone for QuicConfig
source§fn clone(&self) -> QuicConfig
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for QuicConfig
§impl !RefUnwindSafe for QuicConfig
§impl Send for QuicConfig
§impl Sync for QuicConfig
§impl Unpin for QuicConfig
§impl !UnwindSafe for QuicConfig
Blanket Implementations§
source§impl<T> Any for Twhere
+Trait Implementations§
source§impl Clone for QuicConfig
source§fn clone(&self) -> QuicConfig
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for QuicConfig
§impl !RefUnwindSafe for QuicConfig
§impl Send for QuicConfig
§impl Sync for QuicConfig
§impl Unpin for QuicConfig
§impl !UnwindSafe for QuicConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/3028/docs/iroh_net_report/struct.RelayLatencies.html b/pr/3028/docs/iroh_net_report/struct.RelayLatencies.html
index ddb55df920..9bad939f51 100644
--- a/pr/3028/docs/iroh_net_report/struct.RelayLatencies.html
+++ b/pr/3028/docs/iroh_net_report/struct.RelayLatencies.html
@@ -1,5 +1,5 @@
RelayLatencies in iroh_net_report - Rust Struct iroh_net_report::RelayLatencies
source · pub struct RelayLatencies(/* private fields */);
Expand description
Latencies per relay node.
-Implementations§
source§impl RelayLatencies
sourcepub fn iter(&self) -> impl Iterator<Item = (&RelayUrl, Duration)> + '_
Returns an iterator over all the relays and their latencies.
+Implementations§
Trait Implementations§
source§impl Clone for RelayLatencies
source§fn clone(&self) -> RelayLatencies
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for RelayLatencies
source§impl Default for RelayLatencies
source§fn default() -> RelayLatencies
Returns the “default value” for a type. Read moresource§impl PartialEq for RelayLatencies
source§fn eq(&self, other: &RelayLatencies) -> bool
This method tests for self and other values to be equal, and is used
by ==.source§impl Eq for RelayLatencies
source§impl StructuralPartialEq for RelayLatencies
Auto Trait Implementations§
§impl Freeze for RelayLatencies
§impl RefUnwindSafe for RelayLatencies
§impl Send for RelayLatencies
§impl Sync for RelayLatencies
§impl Unpin for RelayLatencies
§impl UnwindSafe for RelayLatencies
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/3028/docs/iroh_net_report/struct.Report.html b/pr/3028/docs/iroh_net_report/struct.Report.html
index 5965312462..d8336c9cab 100644
--- a/pr/3028/docs/iroh_net_report/struct.Report.html
+++ b/pr/3028/docs/iroh_net_report/struct.Report.html
@@ -11,7 +11,7 @@
pub mapping_varies_by_dest_ipv6: Option<bool>,
pub hair_pinning: Option<bool>,
pub portmap_probe: Option<ProbeOutput>,
- pub preferred_relay: Option<RelayUrl>,
+ pub preferred_relay: Option<RelayUrl>,
pub relay_latency: RelayLatencies,
pub relay_v4_latency: RelayLatencies,
pub relay_v6_latency: RelayLatencies,
@@ -35,7 +35,7 @@ detecting rather than using it. For now.
§hair_pinning: Option<bool>Whether the router supports communicating between two local devices through the NATted
public IP address (on IPv4).
§portmap_probe: Option<ProbeOutput>Probe indicating the presence of port mapping protocols on the LAN.
-§preferred_relay: Option<RelayUrl>None for unknown
+§preferred_relay: Option<RelayUrl>None for unknown
§relay_latency: RelayLatencieskeyed by relay Url
§relay_v4_latency: RelayLatencieskeyed by relay Url
§relay_v6_latency: RelayLatencieskeyed by relay Url
diff --git a/pr/3028/docs/iroh_relay/server/testing/fn.quic_config.html b/pr/3028/docs/iroh_relay/server/testing/fn.quic_config.html
index 0cb5b9f176..2dfdb042ac 100644
--- a/pr/3028/docs/iroh_relay/server/testing/fn.quic_config.html
+++ b/pr/3028/docs/iroh_relay/server/testing/fn.quic_config.html
@@ -1,6 +1,6 @@
quic_config in iroh_relay::server::testing - Rust