pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net 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§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for AddrInfo
§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 more§impl Ord for AddrInfo
source§impl PartialOrd for AddrInfo
§impl PartialOrd for AddrInfo
§fn partial_cmp(&self, other: &AddrInfo) -> 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 more§impl Serialize for AddrInfo
§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 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§
source§impl<T> Any for Twhere
+ __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§
§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/2922/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2922/docs/iroh_net/endpoint/struct.NodeAddr.html
index 040339a678..9b3691c5ae 100644
--- a/pr/2922/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2922/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net 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§
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(
+
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(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-sourcepub fn from_parts(
+
pub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+pub fn apply_options(&mut self, opts: AddrInfoOptions)
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>(
+
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>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§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.§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.§impl Ord for NodeAddr
source§impl PartialOrd for NodeAddr
§impl PartialOrd for NodeAddr
§fn partial_cmp(&self, other: &NodeAddr) -> 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 more§impl Serialize for NodeAddr
§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 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§
source§impl<T> Any for Twhere
+ __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§
§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/2922/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2922/docs/iroh_net/key/enum.KeyParsingError.html
index 36c1973d24..43ed01d94b 100644
--- a/pr/2922/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2922/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
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§
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§
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§
§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/2922/docs/iroh_net/key/index.html b/pr/2922/docs/iroh_net/key/index.html
index f6ce28ff2d..fe317e06b2 100644
--- a/pr/2922/docs/iroh_net/key/index.html
+++ b/pr/2922/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2922/docs/iroh_net/key/struct.PublicKey.html b/pr/2922/docs/iroh_net/key/struct.PublicKey.html
index 8da7493058..d07749703f 100644
--- a/pr/2922/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2922/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::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§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
§impl PublicKey
pub 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.
-sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+pub 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§
§impl<'de> Deserialize<'de> for PublicKey
§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 more§impl FromStr for PublicKey
source§impl Hash for PublicKey
§impl Ord for PublicKey
§impl PartialEq for PublicKey
source§impl PartialOrd for PublicKey
§impl PartialOrd for PublicKey
§fn partial_cmp(&self, other: &PublicKey) -> 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 more§impl Serialize for PublicKey
§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 moresource§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 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§
§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/2922/docs/iroh_net/key/struct.SecretKey.html b/pr/2922/docs/iroh_net/key/struct.SecretKey.html
index f227722d69..75f0feb867 100644
--- a/pr/2922/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2922/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::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
+SecretKey in iroh_net::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
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-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>where
+
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>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
-pub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-sourcepub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for SecretKey
§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 more§impl Serialize for SecretKey
§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/2922/docs/iroh_net/key/struct.SharedSecret.html b/pr/2922/docs/iroh_net/key/struct.SharedSecret.html
index 6c79c6c567..c5fadbfb4f 100644
--- a/pr/2922/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2922/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · 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_net::key - Rust Struct iroh_net::key::SharedSecret
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/2922/docs/iroh_net/key/type.NodeId.html b/pr/2922/docs/iroh_net/key/type.NodeId.html
index 744b824071..e45ed49bae 100644
--- a/pr/2922/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2922/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::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/2922/docs/iroh_net/struct.AddrInfo.html b/pr/2922/docs/iroh_net/struct.AddrInfo.html
index 53b57cbd67..bdcd20008e 100644
--- a/pr/2922/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2922/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net 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§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for AddrInfo
§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 more§impl Ord for AddrInfo
source§impl PartialOrd for AddrInfo
§impl PartialOrd for AddrInfo
§fn partial_cmp(&self, other: &AddrInfo) -> 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 more§impl Serialize for AddrInfo
§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 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§
source§impl<T> Any for Twhere
+ __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§
§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/2922/docs/iroh_net/struct.NodeAddr.html b/pr/2922/docs/iroh_net/struct.NodeAddr.html
index fc293f5887..5959b535fd 100644
--- a/pr/2922/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2922/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net 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§
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(
+
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(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-sourcepub fn from_parts(
+
pub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+pub fn apply_options(&mut self, opts: AddrInfoOptions)
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>(
+
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>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§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.§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.§impl Ord for NodeAddr
source§impl PartialOrd for NodeAddr
§impl PartialOrd for NodeAddr
§fn partial_cmp(&self, other: &NodeAddr) -> 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 more§impl Serialize for NodeAddr
§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 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§
source§impl<T> Any for Twhere
+ __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§
§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/2922/docs/iroh_net/struct.RelayUrl.html b/pr/2922/docs/iroh_net/struct.RelayUrl.html
index 3eee19f9e2..afd162dbc6 100644
--- a/pr/2922/docs/iroh_net/struct.RelayUrl.html
+++ b/pr/2922/docs/iroh_net/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net - 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§
§impl Deref for RelayUrl
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
+
§impl<'de> Deserialize<'de> for RelayUrl
§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.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-source§impl Hash for RelayUrl
§impl Ord for RelayUrl
source§impl PartialOrd for RelayUrl
§impl PartialOrd for RelayUrl
§fn partial_cmp(&self, other: &RelayUrl) -> 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 more§impl Serialize for RelayUrl
§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 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§
source§impl<T> Any for Twhere
+ __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§
§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/2922/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2922/docs/iroh_net/ticket/struct.NodeTicket.html
index 395aad8334..8d28ae5208 100644
--- a/pr/2922/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2922/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,4 +1,4 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing information for establishing a connection to a node.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
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§
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>(
+
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>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
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
§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
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
§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 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§
source§impl<T> Any for Twhere
+ 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§
§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/2922/docs/iroh_net/ticket/trait.Ticket.html b/pr/2922/docs/iroh_net/ticket/trait.Ticket.html
index aeb5ad78e9..62d1eea749 100644
--- a/pr/2922/docs/iroh_net/ticket/trait.Ticket.html
+++ b/pr/2922/docs/iroh_net/ticket/trait.Ticket.html
@@ -1,13 +1,13 @@
-Ticket in iroh_net::ticket - Rust pub trait Ticket: Sized {
+Ticket in iroh_net::ticket - Rust pub trait Ticket: Sized {
const KIND: &'static str;
// Required methods
fn to_bytes(&self) -> Vec<u8> ⓘ;
- fn from_bytes(bytes: &[u8]) -> Result<Self, Error>;
+ fn from_bytes(bytes: &[u8]) -> Result<Self, Error>;
// Provided methods
fn serialize(&self) -> String { ... }
- fn deserialize(str: &str) -> Result<Self, Error> { ... }
+ fn deserialize(str: &str) -> Result<Self, Error> { ... }
}
Expand description
A ticket is a serializable object combining information required for an operation.
Typically tickets contain all information required for an operation, e.g. an iroh blob
ticket would contain the hash of the data as well as information about how to reach the
@@ -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§
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
+
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
diff --git a/pr/2922/docs/iroh_net/type.NodeId.html b/pr/2922/docs/iroh_net/type.NodeId.html
index c99be03560..22237ce40e 100644
--- a/pr/2922/docs/iroh_net/type.NodeId.html
+++ b/pr/2922/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - 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/2922/docs/iroh_net_bench/enum.EndpointSelector.html b/pr/2922/docs/iroh_net_bench/enum.EndpointSelector.html
index 72727c8aba..4ede882e54 100644
--- a/pr/2922/docs/iroh_net_bench/enum.EndpointSelector.html
+++ b/pr/2922/docs/iroh_net_bench/enum.EndpointSelector.html
@@ -1,7 +1,7 @@
EndpointSelector in iroh_net_bench - Rust Enum iroh_net_bench::EndpointSelector
source · pub enum EndpointSelector {
- Iroh(Endpoint),
+ Iroh(Endpoint),
Quinn(Endpoint),
-}
Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
Blanket Implementations§
source§impl<T> Any for Twhere
+}Variants§
Implementations§
Auto Trait Implementations§
§impl Freeze for EndpointSelector
§impl !RefUnwindSafe for EndpointSelector
§impl Send for EndpointSelector
§impl Sync for EndpointSelector
§impl Unpin for EndpointSelector
§impl !UnwindSafe for EndpointSelector
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/2922/docs/iroh_net_bench/iroh/fn.client.html b/pr/2922/docs/iroh_net_bench/iroh/fn.client.html
index 4482ba8c5b..24c3346dc9 100644
--- a/pr/2922/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2922/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,6 +1,6 @@
client in iroh_net_bench::iroh - Rust
\ No newline at end of file
diff --git a/pr/2922/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2922/docs/iroh_net_bench/iroh/fn.connect_client.html
index cd334b71ae..7ef94e93ef 100644
--- a/pr/2922/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2922/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,6 +1,6 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
- relay_url: Option<RelayUrl>,
+ server_addr: NodeAddr,
+ relay_url: Option<RelayUrl>,
opt: Opt
-) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
+) -> Result<(Endpoint, Connection)>Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2922/docs/iroh_net_bench/iroh/fn.server.html b/pr/2922/docs/iroh_net_bench/iroh/fn.server.html
index da8cfb70c1..4550d8c1da 100644
--- a/pr/2922/docs/iroh_net_bench/iroh/fn.server.html
+++ b/pr/2922/docs/iroh_net_bench/iroh/fn.server.html
@@ -1,2 +1,2 @@
-server in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server
source · pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
Expand description
Take the provided endpoint and run the server
+server in iroh_net_bench::iroh - Rust
\ No newline at end of file
diff --git a/pr/2922/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2922/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 5c47f40b7d..27a1bd2845 100644
--- a/pr/2922/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2922/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,6 +1,6 @@
server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(
rt: &Runtime,
- relay_url: &Option<RelayUrl>,
+ relay_url: &Option<RelayUrl>,
opt: &Opt
-) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+) -> (NodeAddr, Endpoint)Expand description
Creates a server endpoint which runs on the given runtime
\ No newline at end of file
diff --git a/pr/2922/docs/iroh_router/struct.Router.html b/pr/2922/docs/iroh_router/struct.Router.html
index b5b16cb706..9f978bd9b1 100644
--- a/pr/2922/docs/iroh_router/struct.Router.html
+++ b/pr/2922/docs/iroh_router/struct.Router.html
@@ -1,7 +1,7 @@
-Router in iroh_router - Rust Struct iroh_router::Router
source · pub struct Router { /* private fields */ }
Implementations§
source§impl Router
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub fn get_protocol<P: ProtocolHandler>(&self, alpn: &[u8]) -> Option<Arc<P>>
Returns a protocol handler for an ALPN.
+Router in iroh_router - Rust Struct iroh_router::Router
source · pub struct Router { /* private fields */ }
Implementations§
source§impl Router
sourcepub fn builder(endpoint: Endpoint) -> RouterBuilder
sourcepub fn get_protocol<P: ProtocolHandler>(&self, alpn: &[u8]) -> Option<Arc<P>>
Returns a protocol handler for an ALPN.
This downcasts to the concrete type and returns None if the handler registered for alpn
does not match the passed type.
-sourcepub fn endpoint(&self) -> &Endpoint
sourcepub async fn shutdown(self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Router
§impl !RefUnwindSafe for Router
§impl Send for Router
§impl Sync for Router
§impl Unpin for Router
§impl !UnwindSafe for Router
Blanket Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Router
§impl !RefUnwindSafe for Router
§impl Send for Router
§impl Sync for Router
§impl Unpin for Router
§impl !UnwindSafe for Router
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/2922/docs/iroh_router/struct.RouterBuilder.html b/pr/2922/docs/iroh_router/struct.RouterBuilder.html
index 623e8d09ab..032d090f2f 100644
--- a/pr/2922/docs/iroh_router/struct.RouterBuilder.html
+++ b/pr/2922/docs/iroh_router/struct.RouterBuilder.html
@@ -1,4 +1,4 @@
-RouterBuilder in iroh_router - Rust Struct iroh_router::RouterBuilder
source · pub struct RouterBuilder { /* private fields */ }
Implementations§
source§impl RouterBuilder
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub fn endpoint(&self) -> &Endpoint
Returns the [Endpoint] of the node.
+RouterBuilder in iroh_router - Rust Struct iroh_router::RouterBuilder
source · pub struct RouterBuilder { /* private fields */ }
Implementations§
source§impl RouterBuilder
sourcepub fn new(endpoint: Endpoint) -> Self
sourcepub fn accept(self, alpn: Vec<u8>, handler: Arc<dyn ProtocolHandler>) -> Self
sourcepub fn get_protocol<P: ProtocolHandler>(&self, alpn: &[u8]) -> Option<Arc<P>>
Returns a protocol handler for an ALPN.
This downcasts to the concrete type and returns None if the handler registered for alpn
does not match the passed type.
diff --git a/pr/2922/docs/iroh_router/trait.ProtocolHandler.html b/pr/2922/docs/iroh_router/trait.ProtocolHandler.html
index 2b83255e5f..0369fae323 100644
--- a/pr/2922/docs/iroh_router/trait.ProtocolHandler.html
+++ b/pr/2922/docs/iroh_router/trait.ProtocolHandler.html
@@ -1,6 +1,6 @@
ProtocolHandler in iroh_router - Rust Trait iroh_router::ProtocolHandler
source · pub trait ProtocolHandler: Send + Sync + IntoArcAny + Debug + 'static {
// Required method
- fn accept(self: Arc<Self>, conn: Connecting) -> BoxedFuture<Result<()>>;
+ fn accept(self: Arc<Self>, conn: Connecting) -> BoxedFuture<Result<()>>;
// Provided method
fn shutdown(self: Arc<Self>) -> BoxedFuture<()> { ... }
@@ -10,7 +10,7 @@
Implement this trait on a struct that should handle incoming connections.
The protocol handler must then be registered on the node for an ALPN protocol with
crate::RouterBuilder::accept.
-
Required Methods§
\ No newline at end of file
diff --git a/pr/2922/docs/src/iroh_relay/server/actor.rs.html b/pr/2922/docs/src/iroh_relay/server/actor.rs.html
index 28c32e2b17..699634a3b1 100644
--- a/pr/2922/docs/src/iroh_relay/server/actor.rs.html
+++ b/pr/2922/docs/src/iroh_relay/server/actor.rs.html
@@ -361,8 +361,6 @@
361
362
363
-364
-365
//! The main event loop for the relay server.
//!
//! based on tailscale/derp/derp_server.go
@@ -384,9 +382,7 @@
server::{client_conn::ClientConnConfig, clients::Clients, metrics::Metrics},
};
-// TODO: skipping `verboseDropKeys` for now
-
-#[derive(Debug)]
+#[derive(Debug)]
pub(super) enum Message {
SendPacket {
dst: NodeId,
diff --git a/pr/2922/docs/type.impl/iroh_net/key/struct.PublicKey.js b/pr/2922/docs/type.impl/iroh_net/key/struct.PublicKey.js
index d83f280fc6..7942858ed5 100644
--- a/pr/2922/docs/type.impl/iroh_net/key/struct.PublicKey.js
+++ b/pr/2922/docs/type.impl/iroh_net/key/struct.PublicKey.js
@@ -1,3 +1,3 @@
(function() {var type_impls = {
-"iroh_net":[["","AsRef<[u8]>","iroh_net::NodeId"],["","Clone","iroh_net::NodeId"],["","Debug","iroh_net::NodeId"],["source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(\n deserializer: D\n) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where\n D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more","Deserialize<'de>","iroh_net::NodeId"],["","Display","iroh_net::NodeId"],["","From","iroh_net::NodeId"],["source§impl FromStr for PublicKey
","FromStr","iroh_net::NodeId"],["","Hash","iroh_net::NodeId"],["source§impl Ord for PublicKey
1.21.0 · source§fn max(self, other: Self) -> Selfwhere\n Self: Sized,
Compares and returns the maximum of two values. Read more","Ord","iroh_net::NodeId"],["source§impl PartialEq for PublicKey
","PartialEq","iroh_net::NodeId"],["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 <=\noperator. Read more","PartialOrd","iroh_net::NodeId"],["source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
\n§Warning
\nThis will return a [SignatureError] if the bytes passed into this method do not represent\na valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.\nSee [VerifyingKey::from_bytes] for details.
\n",0,"iroh_net::NodeId"],["source§impl Serialize for PublicKey
source§fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where\n S: Serializer,
Serialize this value into the given Serde serializer. Read more","Serialize","iroh_net::NodeId"],["","TryFrom<&[u8]>","iroh_net::NodeId"],["","TryFrom<&[u8; 32]>","iroh_net::NodeId"],["source§impl Copy for PublicKey
","Copy","iroh_net::NodeId"],["source§impl Eq for PublicKey
","Eq","iroh_net::NodeId"],["source§impl StructuralPartialEq for PublicKey
","StructuralPartialEq","iroh_net::NodeId"]]
+"iroh_net":[["","AsRef<[u8]>","iroh_net::NodeId"],["","Clone","iroh_net::NodeId"],["","Debug","iroh_net::NodeId"],["§impl<'de> Deserialize<'de> for PublicKey
§fn deserialize<D>(\n deserializer: D\n) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where\n D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more","Deserialize<'de>","iroh_net::NodeId"],["","Display","iroh_net::NodeId"],["","From","iroh_net::NodeId"],["§impl FromStr for PublicKey
","FromStr","iroh_net::NodeId"],["","Hash","iroh_net::NodeId"],["§impl Ord for PublicKey
","Ord","iroh_net::NodeId"],["§impl PartialEq for PublicKey
","PartialEq","iroh_net::NodeId"],["§impl PartialOrd for PublicKey
§fn partial_cmp(&self, other: &PublicKey) -> 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 <=\noperator. Read more","PartialOrd","iroh_net::NodeId"],["§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
\n§Warning
\nThis will return a [SignatureError] if the bytes passed into this method do not represent\na valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.\nSee [VerifyingKey::from_bytes] for details.
\n",0,"iroh_net::NodeId"],["§impl Serialize for PublicKey
§fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where\n S: Serializer,
Serialize this value into the given Serde serializer. Read more","Serialize","iroh_net::NodeId"],["","TryFrom<&[u8]>","iroh_net::NodeId"],["","TryFrom<&[u8; 32]>","iroh_net::NodeId"],["§impl Copy for PublicKey
","Copy","iroh_net::NodeId"],["§impl Eq for PublicKey
","Eq","iroh_net::NodeId"],["§impl StructuralPartialEq for PublicKey
","StructuralPartialEq","iroh_net::NodeId"]]
};if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()
\ No newline at end of file