pub struct Client { /* private fields */ }Expand description
Iroh node Client.
+pub struct Client { /* private fields */ }Expand description
Iroh node Client.
Cheaply clonable and threadsafe. Use the iroh node::Client to access the
iroh node methods from a different thread, process, or remote machine.
The Iroh client dereferences to a node::Client,
@@ -64,7 +64,7 @@ client.add_node_addr(addr).awaitfalse).await?;
Implementations§
sourcepub async fn node_infos_iter(
&self
) -> Result<impl Stream<Item = Result<NodeInfo>>>
pub async fn node_infos_iter( &self ) -> Result<impl Stream<Item = Result<NodeInfo>>>
Fetches information about currently known remote nodes.
This streams a current snapshot. It does not keep the stream open after finishing diff --git a/pr/2610/docs/iroh/client/struct.Iroh.html b/pr/2610/docs/iroh/client/struct.Iroh.html index bf28ff1447..9683a0cc75 100644 --- a/pr/2610/docs/iroh/client/struct.Iroh.html +++ b/pr/2610/docs/iroh/client/struct.Iroh.html @@ -1,4 +1,4 @@ -
pub struct Iroh { /* private fields */ }Expand description
An iroh client.
+pub struct Iroh { /* private fields */ }Methods from Deref<Target = Client>§
sourcepub async fn stats(&self) -> Result<BTreeMap<String, CounterStats>>
pub async fn stats(&self) -> Result<BTreeMap<String, CounterStats>>
Fetches statistics of the running node.
-sourcepub async fn node_info_iter(
+
pub async fn node_info_iter( +
sourcepub async fn node_infos_iter(
&self
) -> Result<impl Stream<Item = Result<NodeInfo>>>
pub async fn node_infos_iter( &self ) -> Result<impl Stream<Item = Result<NodeInfo>>>
Fetches information about currently known remote nodes.
This streams a current snapshot. It does not keep the stream open after finishing diff --git a/pr/2610/docs/iroh/net/endpoint/struct.ConnectionTypeStream.html b/pr/2610/docs/iroh/net/endpoint/struct.ConnectionTypeStream.html index 1c55f522bb..df83327dba 100644 --- a/pr/2610/docs/iroh/net/endpoint/struct.ConnectionTypeStream.html +++ b/pr/2610/docs/iroh/net/endpoint/struct.ConnectionTypeStream.html @@ -1,5 +1,5 @@ -
Struct iroh::net::endpoint::ConnectionTypeStream
source · pub struct ConnectionTypeStream { /* private fields */ }Expand description
Stream returning ConnectionTypes
Trait Implementations§
source§impl Debug for ConnectionTypeStream
impl Debug for ConnectionTypeStream
source§impl Stream for ConnectionTypeStream
impl Stream for ConnectionTypeStream
§type Item = ConnectionType
type Item = ConnectionType
source§fn poll_next(
+ConnectionTypeStream in iroh::net::endpoint - Rust Struct iroh::net::endpoint::ConnectionTypeStream
source · pub struct ConnectionTypeStream { /* private fields */ }
Expand description
Stream returning ConnectionTypes
+Trait Implementations§
source§impl Debug for ConnectionTypeStream
source§impl Stream for ConnectionTypeStream
§type Item = ConnectionType
Values yielded by the stream.source§fn poll_next(
self: Pin<&mut ConnectionTypeStream>,
cx: &mut Context<'_>
) -> Poll<Option<<ConnectionTypeStream as Stream>::Item>>
Attempt to pull out the next value of this stream, registering the
diff --git a/pr/2610/docs/iroh/node/struct.Node.html b/pr/2610/docs/iroh/node/struct.Node.html
index 4f30881db2..c56e5c00b5 100644
--- a/pr/2610/docs/iroh/node/struct.Node.html
+++ b/pr/2610/docs/iroh/node/struct.Node.html
@@ -1,4 +1,4 @@
-Node in iroh::node - Rust pub struct Node<D> { /* private fields */ }
Expand description
A server which implements the iroh node.
+Node in iroh::node - Rust pub struct Node<D> { /* private fields */ }
Expand description
A server which implements the iroh node.
Clients can connect to this server and requests hashes from it.
The only way to create this is by using the Builder::spawn. You can use Node::memory
or Node::persistent to create a suitable Builder.
@@ -42,7 +42,7 @@ does not match the passed type.
Methods from Deref<Target = Client>§
sourcepub async fn stats(&self) -> Result<BTreeMap<String, CounterStats>>
Fetches statistics of the running node.
-sourcepub async fn node_info_iter(
+
sourcepub async fn node_infos_iter(
&self
) -> Result<impl Stream<Item = Result<NodeInfo>>>
Fetches information about currently known remote nodes.
This streams a current snapshot. It does not keep the stream open after finishing
diff --git a/pr/2610/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2610/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c70a0ff39..cfd29c2ce8 100644
--- a/pr/2610/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2610/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()>sourcepub async fn delete_prefix(
&self,
diff --git a/pr/2610/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2610/docs/iroh_docs/engine/enum.LiveEvent.html
index bb74b62f4d..5b67512912 100644
--- a/pr/2610/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2610/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§from: PublicKeyThe peer that sent us the entry.
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+Fields
§hash: HashThe content hash of the newly available entry content
§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2610/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2610/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 3b39df6428..459a6719d2 100644
--- a/pr/2610/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2610/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_docs/engine/index.html b/pr/2610/docs/iroh_docs/engine/index.html
index 622ab4b871..5f78e23386 100644
--- a/pr/2610/docs/iroh_docs/engine/index.html
+++ b/pr/2610/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_docs/engine/struct.Engine.html b/pr/2610/docs/iroh_docs/engine/struct.Engine.html
index 46cd25179e..1b88a96726 100644
--- a/pr/2610/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2610/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2610/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2610/docs/iroh_docs/engine/struct.SyncEvent.html
index cce39940b5..5b713133bd 100644
--- a/pr/2610/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2610/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2610/docs/iroh_docs/index.html b/pr/2610/docs/iroh_docs/index.html
index 41c792c5e5..a37d30e2a6 100644
--- a/pr/2610/docs/iroh_docs/index.html
+++ b/pr/2610/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2610/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2610/docs/iroh_docs/metrics/struct.Metrics.html
index b3db0e4a8f..0adab34807 100644
--- a/pr/2610/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2610/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait 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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_docs/net/enum.AcceptError.html b/pr/2610/docs/iroh_docs/net/enum.AcceptError.html
index 36f6ee01ef..f852287d7b 100644
--- a/pr/2610/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2610/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
source§impl AcceptError
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
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 AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2610/docs/iroh_docs/net/fn.connect_and_sync.html
index 055cbf1e3c..e4ee4a1d00 100644
--- a/pr/2610/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2610/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_docs/net/fn.handle_connection.html b/pr/2610/docs/iroh_docs/net/fn.handle_connection.html
index 3dc400f949..c7e5390970 100644
--- a/pr/2610/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2610/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2610/docs/iroh_docs/net/struct.SyncFinished.html
index 761d1cdb9f..94c5865cd7 100644
--- a/pr/2610/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2610/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
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 SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2610/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2610/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index df1fc8865f..8bebf68ec6 100644
--- a/pr/2610/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2610/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2610/docs/iroh_docs/struct.AuthorId.html b/pr/2610/docs/iroh_docs/struct.AuthorId.html
index 5a5c3545ad..a012634368 100644
--- a/pr/2610/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2610/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2610/docs/iroh_docs/struct.AuthorPublicKey.html
index e01d8f0dc1..7d1f068ff9 100644
--- a/pr/2610/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2610/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_docs/struct.DocTicket.html b/pr/2610/docs/iroh_docs/struct.DocTicket.html
index 0b9567c918..bad3e76f79 100644
--- a/pr/2610/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2610/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
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
diff --git a/pr/2610/docs/iroh_docs/struct.NamespaceId.html b/pr/2610/docs/iroh_docs/struct.NamespaceId.html
index 79f515f2bf..16fb90f804 100644
--- a/pr/2610/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2610/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2610/docs/iroh_docs/struct.NamespacePublicKey.html
index e2cc67cf6f..b7d8a34387 100644
--- a/pr/2610/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2610/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_docs/sync/struct.Entry.html b/pr/2610/docs/iroh_docs/sync/struct.Entry.html
index d1fb1faa87..06a256d8a3 100644
--- a/pr/2610/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2610/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2610/docs/iroh_docs/sync/struct.Record.html b/pr/2610/docs/iroh_docs/sync/struct.Record.html
index 9848e9b7d7..64887e1d89 100644
--- a/pr/2610/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2610/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2610/docs/iroh_docs/sync/struct.Replica.html b/pr/2610/docs/iroh_docs/sync/struct.Replica.html
index c4e161f3c3..23a9798651 100644
--- a/pr/2610/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2610/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2610/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2610/docs/iroh_docs/sync/struct.SignedEntry.html
index d588c9a0fd..b03a4db008 100644
--- a/pr/2610/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2610/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
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 SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2610/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2610/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 84ffdbe8ee..46d5a5a49c 100644
--- a/pr/2610/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2610/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2610/docs/iroh_gossip/metrics/struct.Metrics.html
index 20b2a2b8ce..85ee06c85a 100644
--- a/pr/2610/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2610/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait 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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2610/docs/iroh_net/endpoint/struct.AddrInfo.html
index c679e7d6c1..c73cd018d4 100644
--- a/pr/2610/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2610/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust 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> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/endpoint/struct.ConnectionTypeStream.html b/pr/2610/docs/iroh_net/endpoint/struct.ConnectionTypeStream.html
index 0a56a7c9f0..00db6ee9b0 100644
--- a/pr/2610/docs/iroh_net/endpoint/struct.ConnectionTypeStream.html
+++ b/pr/2610/docs/iroh_net/endpoint/struct.ConnectionTypeStream.html
@@ -1,5 +1,5 @@
-ConnectionTypeStream in iroh_net::endpoint - Rust Struct iroh_net::endpoint::ConnectionTypeStream
source · pub struct ConnectionTypeStream { /* private fields */ }
Expand description
Stream returning ConnectionTypes
-Trait Implementations§
source§impl Debug for ConnectionTypeStream
source§impl Stream for ConnectionTypeStream
§type Item = ConnectionType
Values yielded by the stream.source§fn poll_next(
+ConnectionTypeStream in iroh_net::endpoint - Rust Struct iroh_net::endpoint::ConnectionTypeStream
source · pub struct ConnectionTypeStream { /* private fields */ }
Expand description
Stream returning ConnectionTypes
+Trait Implementations§
source§impl Debug for ConnectionTypeStream
source§impl Stream for ConnectionTypeStream
§type Item = ConnectionType
Values yielded by the stream.source§fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Self::Item>>
Attempt to pull out the next value of this stream, registering the
diff --git a/pr/2610/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2610/docs/iroh_net/endpoint/struct.NodeAddr.html
index 84d139316d..c90806b4c6 100644
--- a/pr/2610/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2610/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,38 +25,38 @@ 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: Vec<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 more§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> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2610/docs/iroh_net/key/enum.KeyParsingError.html
index c1bd54a029..5c3418374c 100644
--- a/pr/2610/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2610/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> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/key/index.html b/pr/2610/docs/iroh_net/key/index.html
index fed9e6656d..f8a86b539b 100644
--- a/pr/2610/docs/iroh_net/key/index.html
+++ b/pr/2610/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/2610/docs/iroh_net/key/struct.PublicKey.html b/pr/2610/docs/iroh_net/key/struct.PublicKey.html
index 43d6a7b857..633db2c5de 100644
--- a/pr/2610/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2610/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> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2610/docs/iroh_net/key/struct.SecretKey.html b/pr/2610/docs/iroh_net/key/struct.SecretKey.html
index c36389d208..7cd87e14d3 100644
--- a/pr/2610/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2610/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/2610/docs/iroh_net/key/struct.SharedSecret.html b/pr/2610/docs/iroh_net/key/struct.SharedSecret.html
index 9bb2286597..cb60d9fe11 100644
--- a/pr/2610/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2610/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> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/key/type.NodeId.html b/pr/2610/docs/iroh_net/key/type.NodeId.html
index 2ca36f46fe..fddfe420b0 100644
--- a/pr/2610/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2610/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/2610/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2610/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index 2f20b8f1c5..fc9c5bfd9f 100644
--- a/pr/2610/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2610/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait 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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2610/docs/iroh_net/netcheck/struct.Metrics.html
index 3852ce6655..a7f871f603 100644
--- a/pr/2610/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2610/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait 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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2610/docs/iroh_net/portmapper/struct.Metrics.html
index d0dca45693..c8d6678859 100644
--- a/pr/2610/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2610/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait 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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2610/docs/iroh_net/relay/server/struct.Metrics.html
index 51b94be873..ede276d6f4 100644
--- a/pr/2610/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2610/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§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§
source§impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§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§
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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2610/docs/iroh_net/relay/struct.RelayUrl.html
index 2213e5581b..f199af1178 100644
--- a/pr/2610/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2610/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust
fn poll_next(
+ConnectionTypeStream in iroh::net::endpoint - Rust Struct iroh::net::endpoint::ConnectionTypeStream
source · pub struct ConnectionTypeStream { /* private fields */ }
Expand description
Stream returning ConnectionTypes
+Trait Implementations§
source§impl Debug for ConnectionTypeStream
source§impl Stream for ConnectionTypeStream
§type Item = ConnectionType
Values yielded by the stream.source§fn poll_next(
self: Pin<&mut ConnectionTypeStream>,
cx: &mut Context<'_>
) -> Poll<Option<<ConnectionTypeStream as Stream>::Item>>
Attempt to pull out the next value of this stream, registering the
diff --git a/pr/2610/docs/iroh/node/struct.Node.html b/pr/2610/docs/iroh/node/struct.Node.html
index 4f30881db2..c56e5c00b5 100644
--- a/pr/2610/docs/iroh/node/struct.Node.html
+++ b/pr/2610/docs/iroh/node/struct.Node.html
@@ -1,4 +1,4 @@
-Node in iroh::node - Rust pub struct Node<D> { /* private fields */ }
Expand description
A server which implements the iroh node.
+Node in iroh::node - Rust pub struct Node<D> { /* private fields */ }
Expand description
A server which implements the iroh node.
Clients can connect to this server and requests hashes from it.
The only way to create this is by using the Builder::spawn. You can use Node::memory
or Node::persistent to create a suitable Builder.
@@ -42,7 +42,7 @@ does not match the passed type.
Methods from Deref<Target = Client>§
sourcepub async fn stats(&self) -> Result<BTreeMap<String, CounterStats>>
Fetches statistics of the running node.
-sourcepub async fn node_info_iter(
+
sourcepub async fn node_infos_iter(
&self
) -> Result<impl Stream<Item = Result<NodeInfo>>>
Fetches information about currently known remote nodes.
This streams a current snapshot. It does not keep the stream open after finishing
diff --git a/pr/2610/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2610/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c70a0ff39..cfd29c2ce8 100644
--- a/pr/2610/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2610/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()>sourcepub async fn delete_prefix(
&self,
diff --git a/pr/2610/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2610/docs/iroh_docs/engine/enum.LiveEvent.html
index bb74b62f4d..5b67512912 100644
--- a/pr/2610/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2610/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§from: PublicKeyThe peer that sent us the entry.
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+Fields
§hash: HashThe content hash of the newly available entry content
§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2610/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2610/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 3b39df6428..459a6719d2 100644
--- a/pr/2610/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2610/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_docs/engine/index.html b/pr/2610/docs/iroh_docs/engine/index.html
index 622ab4b871..5f78e23386 100644
--- a/pr/2610/docs/iroh_docs/engine/index.html
+++ b/pr/2610/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_docs/engine/struct.Engine.html b/pr/2610/docs/iroh_docs/engine/struct.Engine.html
index 46cd25179e..1b88a96726 100644
--- a/pr/2610/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2610/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2610/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2610/docs/iroh_docs/engine/struct.SyncEvent.html
index cce39940b5..5b713133bd 100644
--- a/pr/2610/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2610/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2610/docs/iroh_docs/index.html b/pr/2610/docs/iroh_docs/index.html
index 41c792c5e5..a37d30e2a6 100644
--- a/pr/2610/docs/iroh_docs/index.html
+++ b/pr/2610/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2610/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2610/docs/iroh_docs/metrics/struct.Metrics.html
index b3db0e4a8f..0adab34807 100644
--- a/pr/2610/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2610/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait 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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_docs/net/enum.AcceptError.html b/pr/2610/docs/iroh_docs/net/enum.AcceptError.html
index 36f6ee01ef..f852287d7b 100644
--- a/pr/2610/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2610/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
source§impl AcceptError
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
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 AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2610/docs/iroh_docs/net/fn.connect_and_sync.html
index 055cbf1e3c..e4ee4a1d00 100644
--- a/pr/2610/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2610/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_docs/net/fn.handle_connection.html b/pr/2610/docs/iroh_docs/net/fn.handle_connection.html
index 3dc400f949..c7e5390970 100644
--- a/pr/2610/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2610/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2610/docs/iroh_docs/net/struct.SyncFinished.html
index 761d1cdb9f..94c5865cd7 100644
--- a/pr/2610/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2610/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
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 SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2610/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2610/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index df1fc8865f..8bebf68ec6 100644
--- a/pr/2610/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2610/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2610/docs/iroh_docs/struct.AuthorId.html b/pr/2610/docs/iroh_docs/struct.AuthorId.html
index 5a5c3545ad..a012634368 100644
--- a/pr/2610/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2610/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2610/docs/iroh_docs/struct.AuthorPublicKey.html
index e01d8f0dc1..7d1f068ff9 100644
--- a/pr/2610/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2610/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_docs/struct.DocTicket.html b/pr/2610/docs/iroh_docs/struct.DocTicket.html
index 0b9567c918..bad3e76f79 100644
--- a/pr/2610/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2610/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
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
diff --git a/pr/2610/docs/iroh_docs/struct.NamespaceId.html b/pr/2610/docs/iroh_docs/struct.NamespaceId.html
index 79f515f2bf..16fb90f804 100644
--- a/pr/2610/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2610/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2610/docs/iroh_docs/struct.NamespacePublicKey.html
index e2cc67cf6f..b7d8a34387 100644
--- a/pr/2610/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2610/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_docs/sync/struct.Entry.html b/pr/2610/docs/iroh_docs/sync/struct.Entry.html
index d1fb1faa87..06a256d8a3 100644
--- a/pr/2610/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2610/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2610/docs/iroh_docs/sync/struct.Record.html b/pr/2610/docs/iroh_docs/sync/struct.Record.html
index 9848e9b7d7..64887e1d89 100644
--- a/pr/2610/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2610/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2610/docs/iroh_docs/sync/struct.Replica.html b/pr/2610/docs/iroh_docs/sync/struct.Replica.html
index c4e161f3c3..23a9798651 100644
--- a/pr/2610/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2610/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2610/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2610/docs/iroh_docs/sync/struct.SignedEntry.html
index d588c9a0fd..b03a4db008 100644
--- a/pr/2610/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2610/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
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 SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2610/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2610/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 84ffdbe8ee..46d5a5a49c 100644
--- a/pr/2610/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2610/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2610/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2610/docs/iroh_gossip/metrics/struct.Metrics.html
index 20b2a2b8ce..85ee06c85a 100644
--- a/pr/2610/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2610/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait 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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2610/docs/iroh_net/endpoint/struct.AddrInfo.html
index c679e7d6c1..c73cd018d4 100644
--- a/pr/2610/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2610/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust 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> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/endpoint/struct.ConnectionTypeStream.html b/pr/2610/docs/iroh_net/endpoint/struct.ConnectionTypeStream.html
index 0a56a7c9f0..00db6ee9b0 100644
--- a/pr/2610/docs/iroh_net/endpoint/struct.ConnectionTypeStream.html
+++ b/pr/2610/docs/iroh_net/endpoint/struct.ConnectionTypeStream.html
@@ -1,5 +1,5 @@
-ConnectionTypeStream in iroh_net::endpoint - Rust Struct iroh_net::endpoint::ConnectionTypeStream
source · pub struct ConnectionTypeStream { /* private fields */ }
Expand description
Stream returning ConnectionTypes
-Trait Implementations§
source§impl Debug for ConnectionTypeStream
source§impl Stream for ConnectionTypeStream
§type Item = ConnectionType
Values yielded by the stream.source§fn poll_next(
+ConnectionTypeStream in iroh_net::endpoint - Rust Struct iroh_net::endpoint::ConnectionTypeStream
source · pub struct ConnectionTypeStream { /* private fields */ }
Expand description
Stream returning ConnectionTypes
+Trait Implementations§
source§impl Debug for ConnectionTypeStream
source§impl Stream for ConnectionTypeStream
§type Item = ConnectionType
Values yielded by the stream.source§fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Self::Item>>
Attempt to pull out the next value of this stream, registering the
diff --git a/pr/2610/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2610/docs/iroh_net/endpoint/struct.NodeAddr.html
index 84d139316d..c90806b4c6 100644
--- a/pr/2610/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2610/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,38 +25,38 @@ 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: Vec<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 more§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> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2610/docs/iroh_net/key/enum.KeyParsingError.html
index c1bd54a029..5c3418374c 100644
--- a/pr/2610/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2610/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> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/key/index.html b/pr/2610/docs/iroh_net/key/index.html
index fed9e6656d..f8a86b539b 100644
--- a/pr/2610/docs/iroh_net/key/index.html
+++ b/pr/2610/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/2610/docs/iroh_net/key/struct.PublicKey.html b/pr/2610/docs/iroh_net/key/struct.PublicKey.html
index 43d6a7b857..633db2c5de 100644
--- a/pr/2610/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2610/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> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2610/docs/iroh_net/key/struct.SecretKey.html b/pr/2610/docs/iroh_net/key/struct.SecretKey.html
index c36389d208..7cd87e14d3 100644
--- a/pr/2610/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2610/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/2610/docs/iroh_net/key/struct.SharedSecret.html b/pr/2610/docs/iroh_net/key/struct.SharedSecret.html
index 9bb2286597..cb60d9fe11 100644
--- a/pr/2610/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2610/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> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/key/type.NodeId.html b/pr/2610/docs/iroh_net/key/type.NodeId.html
index 2ca36f46fe..fddfe420b0 100644
--- a/pr/2610/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2610/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/2610/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2610/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index 2f20b8f1c5..fc9c5bfd9f 100644
--- a/pr/2610/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2610/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait 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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2610/docs/iroh_net/netcheck/struct.Metrics.html
index 3852ce6655..a7f871f603 100644
--- a/pr/2610/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2610/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait 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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2610/docs/iroh_net/portmapper/struct.Metrics.html
index d0dca45693..c8d6678859 100644
--- a/pr/2610/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2610/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait 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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2610/docs/iroh_net/relay/server/struct.Metrics.html
index 51b94be873..ede276d6f4 100644
--- a/pr/2610/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2610/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§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§
source§impl Metric for Metrics
source§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§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§
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.source§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§
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
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2610/docs/iroh_net/relay/struct.RelayUrl.html
index 2213e5581b..f199af1178 100644
--- a/pr/2610/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2610/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust
Struct iroh::net::endpoint::ConnectionTypeStream
source · pub struct ConnectionTypeStream { /* private fields */ }Expand description
Stream returning ConnectionTypes
Trait Implementations§
source§impl Debug for ConnectionTypeStream
impl Debug for ConnectionTypeStream
source§impl Stream for ConnectionTypeStream
impl Stream for ConnectionTypeStream
§type Item = ConnectionType
type Item = ConnectionType
source§fn poll_next(
self: Pin<&mut ConnectionTypeStream>,
cx: &mut Context<'_>
) -> Poll<Option<<ConnectionTypeStream as Stream>::Item>>
fn poll_next( self: Pin<&mut ConnectionTypeStream>, cx: &mut Context<'_> ) -> Poll<Option<<ConnectionTypeStream as Stream>::Item>>
pub struct Node<D> { /* private fields */ }Expand description
A server which implements the iroh node.
+pub struct Node<D> { /* private fields */ }Expand description
A server which implements the iroh node.
Clients can connect to this server and requests hashes from it.
The only way to create this is by using the Builder::spawn. You can use Node::memory
or Node::persistent to create a suitable Builder.
Methods from Deref<Target = Client>§
sourcepub async fn stats(&self) -> Result<BTreeMap<String, CounterStats>>
pub async fn stats(&self) -> Result<BTreeMap<String, CounterStats>>
Fetches statistics of the running node.
-sourcepub async fn node_info_iter(
+
pub async fn node_info_iter( +
sourcepub async fn node_infos_iter(
&self
) -> Result<impl Stream<Item = Result<NodeInfo>>>
pub async fn node_infos_iter( &self ) -> Result<impl Stream<Item = Result<NodeInfo>>>
Fetches information about currently known remote nodes.
This streams a current snapshot. It does not keep the stream open after finishing
diff --git a/pr/2610/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2610/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c70a0ff39..cfd29c2ce8 100644
--- a/pr/2610/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2610/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()> Events informing about actions of the live sync progress. A local insertion. Received a remote insert. The peer that sent us the entry. The peer that sent us the entry. If the content is available at the local node The content of an entry was downloaded and is now available at the local node The content hash of the newly available entry content The content hash of the newly available entry content All pending content is now ready. This event signals that all queued content downloads from the last sync run have either
completed or failed. It will only be emitted after a Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed. We have a new neighbor in the swarm. We lost a neighbor in the swarm. We have a new neighbor in the swarm. We lost a neighbor in the swarm. A set-reconciliation sync finished. Converts an Converts an [ Handlers and actors to for live syncing replicas. Handle to the actor thread. The persistent default author for this engine. Start the sync engine. This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the Start to sync a document. If Event emitted when a sync operation completes Peer we synced with Peer we synced with Origin of the sync exchange Timestamp when the sync started Timestamp when the sync finished Multi-dimensional key-value documents with an efficient synchronization protocol The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica. All entries in a replica are signed with two keypairs: Metrics for iroh-docs Errors that may occur on handling incoming sync connections. Failed to establish connection Failed to open replica We aborted the sync request. Failed to run sync Failed to close Connect to a peer and sync a replica Handle an iroh-docs connection and sync all shared documents in the replica store. Details of a finished sync operation. The namespace that was synced. The peer we syned with. The peer we syned with. The outcome of the sync operation The time this operation took Contains both a key (either secret or public) to a document, and a list of peers to join. either a public or private key A list of nodes to contact. Create a new doc ticket A list of nodes to contact. A single entry in a An entry is identified by a key, its Create a new entry Create a new empty entry with the current timestamp. Sign this entry with a Get the length of the data addressed by this record’s content hash. Get the Get the [ The data part of an entry in a Create a tombstone record with the timestamp set to now. Create a new Create a new Get the length of the data addressed by this record’s content hash. Get the Get the [ Ordering for entry values. Insert a new record at the given key. The entry will by signed by the provided Hashes the given data and inserts it. Hashes the given data and inserts it. This does not store the content, just the record of it.
Returns the calculated hash. Get the signature. Validate that the entry has the empty hash if the length is 0, or a non-zero length. Get the content Get the content [ Get the content length of the entry. Get the author bytes of this entry. Get the length of the data addressed by this record’s content hash. Get the Get the [ Callback that may be set on a replica to determine the availability status for a content hash. Callback that may be set on a replica to determine the availability status for a content hash. Enum of metrics for the module Network paths to contact an iroh-net node. The node’s home relay url. Socket addresses where the peer might be reached directly. Applies the options to Stream returning Stream returning Network-level addressing information for an iroh-net node. The node’s identifier. Addressing information to connect to Adds a relay url to the node’s Adds a relay url to the node’s Adds the given direct addresses to the peer’s Creates a new Applies the options to Returns the direct addresses of this peer. Returns the direct addresses of this peer. Error when decoding the base32. Error when decoding the base32. Error when decoding the public key. Cryptographic key handling for A public key. 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. Construct a Construct a This will return a [ Verify a signature on a message with this secret key’s public key. Verify a signature on a message with this secret key’s public key. Returns A secret key. Generate a new A secret key. Generate a new Serialise this key to OpenSSH format. Serialise this key to OpenSSH format. Deserialise this key from OpenSSH format. Sign the given message and return a digital signature Convert this to the bytes representing the secret part.
The public part can always be recovered. Create a secret key from its byte representation. Shared Secret. Shared Secret. The identifier for a node in the (iroh) network. 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. Enum of metrics for the module Number of QUIC datagrams received. The number of direct connections we have made to peers. The number of direct connections we have lost to peers. The number of connections to peers we have added over relay. The number of connections to peers we have removed over relay. Number of QUIC datagrams received. The number of direct connections we have made to peers. The number of direct connections we have lost to peers. The number of connections to peers we have added over relay. The number of connections to peers we have removed over relay. Enum of metrics for the module Enum of metrics for the module Metrics tracked for the relay server Bytes sent from a Bytes received from a Packets of other Packets of other Packets of other Number of Number of Number of Number of connections we have accepted Number of connections we have removed because of an error Number of unique client keys per day Number of accepted websocket connections Number of accepted ‘iroh derp http’ connection upgrades Bytes sent from a Bytes received from a Packets of other Packets of other Packets of other Number of Number of Number of Number of connections we have accepted Number of connections we have removed because of an error Number of unique client keys per day Number of accepted websocket connections Number of accepted ‘iroh derp http’ connection upgradespub async fn delete_prefix(
&self,
diff --git a/pr/2610/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2610/docs/iroh_docs/engine/enum.LiveEvent.html
index bb74b62f4d..5b67512912 100644
--- a/pr/2610/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2610/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}
Expand description
Variants§
InsertLocal
InsertRemote
Fields
from: PublicKeyFields
from: PublicKeycontent_status: ContentStatusContentReady
Fields
hash: HashFields
hash: HashPendingContentReady
Self::SyncFinished event, never before.NeighborUp(PublicKey)
NeighborDown(PublicKey)
NeighborUp(PublicKey)
NeighborDown(PublicKey)
SyncFinished(SyncEvent)
Trait Implementations§
impl<'de> Deserialize<'de> for LiveEvent
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
impl PartialEq for LiveEvent
fn eq(&self, other: &LiveEvent) -> bool
self and other values to be equal, and is used
diff --git a/pr/2610/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2610/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 3b39df6428..459a6719d2 100644
--- a/pr/2610/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2610/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-Function iroh_docs::
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatusExpand description
EntryStatus into a [‘ContentStatus’].Function iroh_docs::
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatusExpand description
EntryStatus] into a [‘ContentStatus’].Expand description
crate::Replica is also called documents here.Structs§
Enums§
Functions§
EntryStatus into a [‘ContentStatus’].Enums§
Functions§
EntryStatus] into a [‘ContentStatus’].Fields§
§endpoint: EndpointEndpoint used by the engine.sync: SyncHandleImplementations§
impl Engine
Implementations§
impl Engine
pub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
pub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}Expand description
Fields§
§peer: PublicKeyFields§
§peer: PublicKeyorigin: Originfinished: SystemTimestarted: SystemTimeExpand description
pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
Expand description
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
impl Metric for Metrics
fn with_metric<T, F>(f: F)
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
impl Metric for Metrics
fn with_metric<T, F>(f: F)
fn try_get() -> Option<&'static Self>
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§
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 T
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedImplicit<'a, E> for T
Expand description
Variants§
Connect
Open
Abort
Sync
Close
Implementations§
impl AcceptError
Implementations§
impl AcceptError
Trait Implementations§
impl Debug for AcceptError
impl Display for AcceptError
impl Error for AcceptError
fn source(&self) -> Option<&(dyn Error + 'static)>
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for AcceptError
impl RefUnwindSafe for AcceptError
impl Send for AcceptError
impl Sync for AcceptError
impl Unpin for AcceptError
impl UnwindSafe for AcceptError
Blanket Implementations§
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
Expand description
Expand description
Struct iroh_docs::
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}Expand description
Fields§
§namespace: NamespaceIdpeer: PublicKeypeer: PublicKeyoutcome: SyncOutcometimings: TimingsTrait Implementations§
impl Clone for SyncFinished
fn clone(&self) -> SyncFinished
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SyncFinished
impl RefUnwindSafe for SyncFinished
impl Send for SyncFinished
impl Sync for SyncFinished
impl Unpin for SyncFinished
impl UnwindSafe for SyncFinished
Blanket Implementations§
impl<T> Any for T
Implementations§
Trait Implementations§
impl Debug for ContentHashesIterator
Trait Implementations§
impl Debug for ContentHashesIterator
impl Iterator for ContentHashesIterator
fn next(&mut self) -> Option<Self::Item>
fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
iter_next_chunk)N values. Read morefn size_hint(&self) -> (usize, Option<usize>)
fn count(self) -> usize
F9B4CA)fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for T
impl<T> PeerIdentity for T
impl<T> PeerIdentity for T
impl<T> RuleType for T
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for T
impl<T> PeerIdentity for T
impl<T> PeerIdentity for T
impl<T> RuleType for T
pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}Expand description
Fields§
§capability: Capabilitynodes: Vec<NodeAddr>Implementations§
impl DocTicket
pub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
nodes: Vec<NodeAddr>Implementations§
Trait Implementations§
impl<'de> Deserialize<'de> for DocTicket
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
Auto Trait Implementations§
impl Freeze for DocTicket
impl RefUnwindSafe for DocTicket
impl Send for DocTicket
impl Sync for DocTicket
impl Unpin for DocTicket
impl UnwindSafe for DocTicket
Blanket Implementations§
impl<T> Any for T
Auto Trait Implementations§
impl Freeze for DocTicket
impl RefUnwindSafe for DocTicket
impl Send for DocTicket
impl Sync for DocTicket
impl Unpin for DocTicket
impl UnwindSafe for DocTicket
Blanket Implementations§
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedImplicit<'a, E> for T
F9B4CA)fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for T
impl<T> PeerIdentity for T
impl<T> PeerIdentity for T
impl<T> RuleType for T
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for T
impl<T> PeerIdentity for T
impl<T> PeerIdentity for T
impl<T> RuleType for T
pub struct Entry { /* private fields */ }Expand description
ReplicaAuthor, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.Implementations§
impl Entry
pub fn new(id: RecordIdentifier, record: Record) -> Self
pub fn new_empty(id: RecordIdentifier) -> Self
pub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
NamespaceSecret and Author.Methods from Deref<Target = Record>§
pub fn content_len(&self) -> u64
pub fn content_hash(&self) -> Hash
Hash of the content data of this record.pub fn content_hash(&self) -> Hash
struct@Hash] of the content data of this record.Trait Implementations§
impl<'de> Deserialize<'de> for Entry
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
impl From<SignedEntry> for Entry
fn from(value: SignedEntry) -> Self
impl Ord for Entry
fn max(self, other: Self) -> Self
pub struct Record { /* private fields */ }Expand description
Replica.Implementations§
impl Record
Implementations§
impl Record
pub fn empty_current() -> Self
pub fn new_current(hash: Hash, len: u64) -> Self
Record with the timestamp set to now.pub fn new_current(hash: Hash, len: u64) -> Self
Record with the timestamp set to now.pub fn content_len(&self) -> u64
pub fn content_hash(&self) -> Hash
Hash of the content data of this record.pub fn content_hash(&self) -> Hash
struct@Hash] of the content data of this record.Trait Implementations§
impl<'de> Deserialize<'de> for Record
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
impl Ord for Record
author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.pub fn record_id(
diff --git a/pr/2610/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2610/docs/iroh_docs/sync/struct.SignedEntry.html
index d588c9a0fd..b03a4db008 100644
--- a/pr/2610/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2610/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
pub fn signature(&self) -> &EntrySignature
pub fn validate_empty(&self) -> Result<(), ValidationFailure>
pub fn content_hash(&self) -> Hash
Hash of the entry.pub fn content_hash(&self) -> Hash
struct@Hash] of the entry.pub fn content_len(&self) -> u64
Methods from Deref<Target = Record>§
pub fn content_len(&self) -> u64
pub fn content_hash(&self) -> Hash
Hash of the content data of this record.pub fn content_hash(&self) -> Hash
struct@Hash] of the content data of this record.Trait Implementations§
impl Clone for SignedEntry
fn clone(&self) -> SignedEntry
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Debug for SignedEntry
impl Deref for SignedEntry
impl<'de> Deserialize<'de> for SignedEntry
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
impl From<SignedEntry> for Entry
fn from(value: SignedEntry) -> Self
impl Ord for SignedEntry
fn max(self, other: Self) -> Self
Type Alias iroh_docs::
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;Expand description
Type Alias iroh_docs::
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;Expand description
Aliased Type§
struct ContentStatusCallback { /* private fields */ }Struct iroh_gossip::
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
Expand description
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
impl Metric for Metrics
fn with_metric<T, F>(f: F)
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
impl Metric for Metrics
fn with_metric<T, F>(f: F)
fn try_get() -> Option<&'static Self>
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§
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 T
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedImplicit<'a, E> for T
pub struct AddrInfo {
+pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}Expand description
NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>direct_addresses: BTreeSet<SocketAddr>Implementations§
impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
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>
impl Ord for AddrInfo
impl PartialOrd for AddrInfo
impl PartialOrd for AddrInfo
fn partial_cmp(&self, other: &AddrInfo) -> Option<Ordering>
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moreimpl Serialize for AddrInfo
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
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<T> Any for T
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 T
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedImplicit<'a, E> for T
Struct iroh_net::
source · pub struct ConnectionTypeStream { /* private fields */ }Expand description
ConnectionTypesTrait Implementations§
impl Debug for ConnectionTypeStream
impl Stream for ConnectionTypeStream
type Item = ConnectionType
fn poll_next(
+
Struct iroh_net::
source · pub struct ConnectionTypeStream { /* private fields */ }Expand description
ConnectionTypesTrait Implementations§
impl Debug for ConnectionTypeStream
impl Stream for ConnectionTypeStream
type Item = ConnectionType
fn poll_next(
self: Pin<&mut Self>,
cx: &mut Context<'_>
) -> Poll<Option<Self::Item>>
pub struct NodeAddr {
+pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}Expand description
Fields§
§node_id: PublicKeyinfo: AddrInfoSelf::node_id.Implementations§
impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
AddrInfo.pub fn with_direct_addresses(
+
Implementations§
impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
AddrInfo.pub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
AddrInfo.pub fn from_parts(
+
pub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
NodeAddr from its parts.pub fn apply_options(&mut self, opts: AddrInfoOptions)
self.pub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Trait Implementations§
impl<'de> Deserialize<'de> for NodeAddr
fn deserialize<__D>(
+
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Trait Implementations§
impl<'de> Deserialize<'de> for NodeAddr
fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>
impl Ord for NodeAddr
impl PartialOrd for NodeAddr
impl PartialOrd for NodeAddr
fn partial_cmp(&self, other: &NodeAddr) -> Option<Ordering>
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moreimpl Serialize for NodeAddr
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
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<T> Any for T
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 T
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedImplicit<'a, E> for T
Enum iroh_net::
source · pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+Enum iroh_net::
pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}Variants§
Base32(HexOrBase32ParseError)
Variants§
Base32(HexOrBase32ParseError)
Key(Error)
Trait Implementations§
impl Debug for KeyParsingError
impl Display for KeyParsingError
impl Error for KeyParsingError
fn source(&self) -> Option<&(dyn Error + 'static)>
fn description(&self) -> &str
impl From<Error> for KeyParsingError
fn from(source: Error) -> KeyParsingError
impl From<HexOrBase32ParseError> for KeyParsingError
fn from(source: HexOrBase32ParseError) -> KeyParsingError
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)>
fn description(&self) -> &str
impl From<Error> for KeyParsingError
fn from(source: Error) -> KeyParsingError
impl From<HexOrBase32ParseError> for KeyParsingError
fn from(source: HexOrBase32ParseError) -> KeyParsingError
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 T
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedImplicit<'a, E> for T
Expand description
iroh-net.pub struct PublicKey(/* private fields */);Expand description
pub struct PublicKey(/* private fields */);Expand description
Implementations§
impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
PublicKey from a slice of bytes.Implementations§
impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
PublicKey from a slice of bytes.§Warning
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>
pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
§Return
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>
impl FromStr for PublicKey
impl Hash for PublicKey
impl Ord for PublicKey
impl PartialEq for PublicKey
impl PartialOrd for PublicKey
impl PartialOrd for PublicKey
fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moreimpl Serialize for PublicKey
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
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 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> AsBits<T> for A
fn as_bits<O>(&self) -> &BitSlice<T, O>
pub struct SecretKey { /* private fields */ }Expand description
Implementations§
impl SecretKey
pub fn generate() -> SecretKey
SecretKey with the default randomness generator.pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKey
pub struct SecretKey { /* private fields */ }Expand description
Implementations§
impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKey
SecretKey with a randomness generator.pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
pub fn sign(&self, msg: &[u8]) -> Signature
pub fn to_bytes(&self) -> [u8; 32]
pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Trait Implementations§
Trait Implementations§
impl<'de> Deserialize<'de> for SecretKey
fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>
impl Serialize for SecretKey
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
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 T
Struct iroh_net::
source · pub struct SharedSecret(/* private fields */);Expand description
Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
impl<T> Any for T
Struct iroh_net::
pub struct SharedSecret(/* private fields */);Expand description
Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedImplicit<'a, E> for T
pub type NodeId = PublicKey;Expand description
pub type NodeId = PublicKey;Expand description
Struct iroh_net::
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
Expand description
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: Countersend_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: Counternum_direct_conns_removed: Counternum_relay_conns_added: Counternum_relay_conns_removed: Counteractor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
impl Metric for Metrics
fn with_metric<T, F>(f: F)
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: Countersend_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: Counternum_direct_conns_removed: Counternum_relay_conns_added: Counternum_relay_conns_removed: Counteractor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
impl Metric for Metrics
fn with_metric<T, F>(f: F)
fn try_get() -> Option<&'static Self>
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§
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 T
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedImplicit<'a, E> for T
pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}Expand description
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
impl Metric for Metrics
fn with_metric<T, F>(f: F)
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
impl Metric for Metrics
fn with_metric<T, F>(f: F)
fn try_get() -> Option<&'static Self>
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§
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 T
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedImplicit<'a, E> for T
Struct iroh_net::
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}Expand description
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
impl Metric for Metrics
fn with_metric<T, F>(f: F)
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
impl Metric for Metrics
fn with_metric<T, F>(f: F)
fn try_get() -> Option<&'static Self>
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§
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 T
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedImplicit<'a, E> for T
pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
Expand description
Fields§
§bytes_sent: CounterFrameType::SendPacketbytes_recv: CounterFrameType::SendPacketsend_packets_sent: CounterFrameType::SendPacket sent, that are not disco messagessend_packets_recv: CounterFrameType::SendPacket received, that are not disco messagessend_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messagesdisco_packets_sent: CounterFrameType::SendPacket sent that are disco messagesdisco_packets_recv: CounterFrameType::SendPacket received that are disco messagesdisco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messagesother_packets_sent: CounterFrameTypes sentother_packets_recv: CounterFrameTypes receivedother_packets_dropped: CounterFrameTypes droppedgot_ping: CounterFrameType::Pings receivedsent_pong: CounterFrameType::Pongs sentunknown_frames: CounterFrameType::Unknown receivedaccepts: Counterdisconnects: Counterunique_client_keys: Counterwebsocket_accepts: Counterderp_accepts: CounterTrait Implementations§
impl Metric for Metrics
fn with_metric<T, F>(f: F)
Fields§
§bytes_sent: CounterFrameType::SendPacketbytes_recv: CounterFrameType::SendPacketsend_packets_sent: CounterFrameType::SendPacket sent, that are not disco messagessend_packets_recv: CounterFrameType::SendPacket received, that are not disco messagessend_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messagesdisco_packets_sent: CounterFrameType::SendPacket sent that are disco messagesdisco_packets_recv: CounterFrameType::SendPacket received that are disco messagesdisco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messagesother_packets_sent: CounterFrameTypes sentother_packets_recv: CounterFrameTypes receivedother_packets_dropped: CounterFrameTypes droppedgot_ping: CounterFrameType::Pings receivedsent_pong: CounterFrameType::Pongs sentunknown_frames: CounterFrameType::Unknown receivedaccepts: Counterdisconnects: Counterunique_client_keys: Counterwebsocket_accepts: Counterderp_accepts: CounterTrait Implementations§
impl Metric for Metrics
fn with_metric<T, F>(f: F)
fn try_get() -> Option<&'static Self>
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§
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 T
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedImplicit<'a, E> for T