Struct iroh_blobs::metrics::Metrics
source · pub struct Metrics {
- pub download_bytes_total: Counter,
- pub download_time_total: Counter,
- pub downloads_success: Counter,
- pub downloads_error: Counter,
- pub downloads_notfound: Counter,
- pub downloader_tick_main: Counter,
- pub downloader_tick_connection_ready: Counter,
- pub downloader_tick_message_received: Counter,
- pub downloader_tick_transfer_completed: Counter,
- pub downloader_tick_transfer_failed: Counter,
- pub downloader_tick_retry_node: Counter,
- pub downloader_tick_goodbye_node: Counter,
+ pub download_bytes_total: Counter,
+ pub download_time_total: Counter,
+ pub downloads_success: Counter,
+ pub downloads_error: Counter,
+ pub downloads_notfound: Counter,
+ pub downloader_tick_main: Counter,
+ pub downloader_tick_connection_ready: Counter,
+ pub downloader_tick_message_received: Counter,
+ pub downloader_tick_transfer_completed: Counter,
+ pub downloader_tick_transfer_failed: Counter,
+ pub downloader_tick_retry_node: Counter,
+ pub downloader_tick_goodbye_node: Counter,
}Expand description
Enum of metrics for the module
-Fields§
§download_bytes_total: Counter§download_time_total: Counter§downloads_success: Counter§downloads_error: Counter§downloads_notfound: Counter§downloader_tick_main: Counter§downloader_tick_connection_ready: Counter§downloader_tick_message_received: Counter§downloader_tick_transfer_completed: Counter§downloader_tick_transfer_failed: Counter§downloader_tick_retry_node: Counter§downloader_tick_goodbye_node: CounterTrait Implementations§
source§impl Metric for Metrics
impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
fn with_metric<T, F>(f: F)where
+
Fields§
§download_bytes_total: Counter§download_time_total: Counter§downloads_success: Counter§downloads_error: Counter§downloads_notfound: Counter§downloader_tick_main: Counter§downloader_tick_connection_ready: Counter§downloader_tick_message_received: Counter§downloader_tick_transfer_completed: Counter§downloader_tick_transfer_failed: Counter§downloader_tick_retry_node: Counter§downloader_tick_goodbye_node: CounterTrait 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§
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
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit(
diff --git a/pr/2231/docs/iroh_gossip/net/enum.Command.html b/pr/2231/docs/iroh_gossip/net/enum.Command.html
index f59fd2e7d7..0b93148d2f 100644
--- a/pr/2231/docs/iroh_gossip/net/enum.Command.html
+++ b/pr/2231/docs/iroh_gossip/net/enum.Command.html
@@ -1,11 +1,11 @@
Command in iroh_gossip::net - Rust Enum iroh_gossip::net::Command
source · pub enum Command {
Broadcast(Bytes),
BroadcastNeighbors(Bytes),
- JoinPeers(Vec<NodeId>),
+ JoinPeers(Vec<NodeId>),
}
Expand description
Send a gossip message
Variants§
§Broadcast(Bytes)
Broadcast a message to all nodes in the swarm
§BroadcastNeighbors(Bytes)
Broadcast a message to all direct neighbors
-§JoinPeers(Vec<NodeId>)
Connect to a set of peers
+§JoinPeers(Vec<NodeId>)
Connect to a set of peers
Trait Implementations§
source§impl<'de> Deserialize<'de> for Command
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 Command
§impl RefUnwindSafe for Command
§impl Send for Command
§impl Sync for Command
§impl Unpin for Command
§impl UnwindSafe for Command
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2231/docs/iroh_gossip/net/enum.GossipEvent.html b/pr/2231/docs/iroh_gossip/net/enum.GossipEvent.html
index 291018eff0..45e391e8db 100644
--- a/pr/2231/docs/iroh_gossip/net/enum.GossipEvent.html
+++ b/pr/2231/docs/iroh_gossip/net/enum.GossipEvent.html
@@ -1,17 +1,17 @@
GossipEvent in iroh_gossip::net - Rust Enum iroh_gossip::net::GossipEvent
source · pub enum GossipEvent {
- Joined(Vec<NodeId>),
- NeighborUp(NodeId),
- NeighborDown(NodeId),
+ Joined(Vec<NodeId>),
+ NeighborUp(NodeId),
+ NeighborDown(NodeId),
Received(Message),
}
Expand description
Events emitted from a gossip topic.
These are the events emitted from a GossipReceiver, wrapped in Event::Gossip.
-Variants§
§Joined(Vec<NodeId>)
We joined the topic with at least one peer.
+Variants§
§Joined(Vec<NodeId>)
We joined the topic with at least one peer.
This is the first event on a GossipReceiver and will only be emitted once.
-§NeighborUp(NodeId)
We have a new, direct neighbor in the swarm membership layer for this topic.
-§NeighborDown(NodeId)
We dropped direct neighbor in the swarm membership layer for this topic.
+§NeighborUp(NodeId)
We have a new, direct neighbor in the swarm membership layer for this topic.
+§NeighborDown(NodeId)
We dropped direct neighbor in the swarm membership layer for this topic.
§Received(Message)
We received a gossip message for this topic.
Trait Implementations§
source§impl Clone for GossipEvent
source§fn clone(&self) -> GossipEvent
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 GossipEvent
source§impl<'de> Deserialize<'de> for GossipEvent
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<Event<PublicKey>> for GossipEvent
source§impl Ord for GossipEvent
source§impl Ord for GossipEvent
source§fn cmp(&self, other: &GossipEvent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialEq for GossipEvent
source§fn eq(&self, other: &GossipEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2231/docs/iroh_gossip/net/struct.Gossip.html b/pr/2231/docs/iroh_gossip/net/struct.Gossip.html
index 256eafd1fe..f3e927f78a 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.Gossip.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.Gossip.html
@@ -1,7 +1,7 @@
Gossip in iroh_gossip::net - Rust Struct iroh_gossip::net::Gossip
source · pub struct Gossip { /* private fields */ }
Expand description
Publish and subscribe on gossiping topics.
Each topic is a separate broadcast tree with separate memberships.
A topic has to be joined before you can publish or subscribe on the topic.
-To join the swarm for a topic, you have to know the [PublicKey] of at least one peer that also joined the topic.
+To join the swarm for a topic, you have to know the PublicKey of at least one peer that also joined the topic.
Messages published on the swarm will be delivered to all peers that joined the swarm for that
topic. You will also be relaying (gossiping) messages published by other peers.
With the default settings, the protocol will maintain up to 5 peer connections per topic.
@@ -13,7 +13,7 @@ gossip actor through Implementations§
source§impl Gossip
sourcepub fn from_endpoint(
endpoint: Endpoint,
config: Config,
- my_addr: &AddrInfo
+ my_addr: &AddrInfo
) -> Self
Spawn a gossip actor and get a handle for it
sourcepub fn max_message_size(&self) -> usize
Get the maximum message size configured for this gossip actor.
sourcepub async fn handle_connection(&self, conn: Connection) -> Result<()>
Handle an incoming [Connection].
@@ -21,7 +21,7 @@ gossip actor through sourcepub async fn join(
&self,
topic_id: TopicId,
- bootstrap: Vec<NodeId>
+ bootstrap: Vec<NodeId>
) -> Result<GossipTopic>
Join a gossip topic with the default options and wait for at least one active connection.
sourcepub fn join_with_opts(
&self,
diff --git a/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html b/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html
index 7095f28789..bbcce9b4f0 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html
@@ -1,6 +1,6 @@
GossipReceiver in iroh_gossip::net - Rust Struct iroh_gossip::net::GossipReceiver
source · pub struct GossipReceiver { /* private fields */ }
Expand description
Receiver for gossip events on a topic.
This is a [Stream] of Events emitted from the topic.
-Implementations§
source§impl GossipReceiver
sourcepub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_
Lists our current direct neighbors.
+Implementations§
source§impl GossipReceiver
sourcepub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_
Lists our current direct neighbors.
sourcepub async fn joined(&mut self) -> Result<()>
Waits until we are connected to at least one node.
This progresses the stream until we received GossipEvent::Joined, which is the first
item emitted on the stream.
diff --git a/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html b/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html
index b3cd3ce9b1..116461efa1 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html
@@ -1,7 +1,7 @@
GossipSender in iroh_gossip::net - Rust Struct iroh_gossip::net::GossipSender
source · pub struct GossipSender(/* private fields */);
Expand description
Sender for a gossip topic.
Implementations§
source§impl GossipSender
sourcepub async fn broadcast_neighbors(&self, message: Bytes) -> Result<()>
Broadcast a message to our direct neighbors.
-sourcepub async fn join_peers(&self, peers: Vec<NodeId>) -> Result<()>
Join a set of peers.
+Trait Implementations§
Auto Trait Implementations§
§impl Freeze for GossipSender
§impl RefUnwindSafe for GossipSender
§impl Send for GossipSender
§impl Sync for GossipSender
§impl Unpin for GossipSender
§impl UnwindSafe for GossipSender
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html b/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
index 7cd50bfeb7..809a4ef917 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
@@ -1,14 +1,14 @@
JoinOptions in iroh_gossip::net - Rust Struct iroh_gossip::net::JoinOptions
source · pub struct JoinOptions {
- pub bootstrap: BTreeSet<NodeId>,
+ pub bootstrap: BTreeSet<NodeId>,
pub subscription_capacity: usize,
}
Expand description
Options for joining a gossip topic.
-Fields§
§bootstrap: BTreeSet<NodeId>The initial bootstrap nodes
+Fields§
§bootstrap: BTreeSet<NodeId>The initial bootstrap nodes
§subscription_capacity: usizeThe maximum number of messages that can be buffered in a subscription.
If this limit is reached, the subscriber will receive a Lagged response,
the message will be dropped, and the subscriber will be closed.
This is to prevent a single slow subscriber from blocking the dispatch loop.
If a subscriber is lagging, it should be closed and re-opened.
-Implementations§
source§impl JoinOptions
sourcepub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
Creates JoinOptions with the provided bootstrap nodes and the default subscription
+
Implementations§
source§impl JoinOptions
sourcepub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
Creates JoinOptions with the provided bootstrap nodes and the default subscription
capacity.
Trait Implementations§
source§impl Debug for JoinOptions
source§impl<'de> Deserialize<'de> for JoinOptions
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 Serialize for JoinOptions
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2231/docs/iroh_gossip/net/struct.Message.html b/pr/2231/docs/iroh_gossip/net/struct.Message.html
index ca0c1c33d5..f687c479d2 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.Message.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.Message.html
@@ -1,12 +1,12 @@
Message in iroh_gossip::net - Rust Struct iroh_gossip::net::Message
source · pub struct Message {
pub content: Bytes,
pub scope: DeliveryScope,
- pub delivered_from: NodeId,
+ pub delivered_from: NodeId,
}
Expand description
A gossip message
Fields§
§content: BytesThe content of the message
§scope: DeliveryScopeThe scope of the message.
This tells us if the message is from a direct neighbor or actual gossip.
-§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
+§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
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 Message
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more1.21.0 · source§fn min(self, other: Self) -> Selfwhere
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
index 590d571ec7..301d28aff1 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
@@ -1,9 +1,9 @@
-ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
+ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
Aliased Type§
enum ProtoCommand {
- Join(Vec<PublicKey>),
+ Join(Vec<PublicKey>),
Broadcast(Bytes, Scope),
Quit,
-}
Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
+}Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
If the list of peers is empty, will prepare the state and accept incoming join requests,
but only become operational after the first join request by another peer.
§Broadcast(Bytes, Scope)
Broadcast a message for this topic.
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
index 82531f5998..d42255752a 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
@@ -1,9 +1,9 @@
-ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
+ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
Aliased Type§
enum ProtoEvent {
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
- Received(GossipEvent<PublicKey>),
-}
Variants§
§NeighborUp(PublicKey)
We have a new, direct neighbor in the swarm membership layer for this topic
-§NeighborDown(PublicKey)
We dropped direct neighbor in the swarm membership layer for this topic
-§Received(GossipEvent<PublicKey>)
A gossip message was received for this topic
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
+ Received(GossipEvent<PublicKey>),
+}Variants§
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
index 07dd089029..0750fa8c38 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
@@ -2,5 +2,5 @@
reader: impl AsyncRead + Unpin,
buffer: &mut BytesMut,
max_message_size: usize
-) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
+) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
index c3ee8b490b..9c961dc01c 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
@@ -1,7 +1,7 @@
write_message in iroh_gossip::net::util - Rust Function iroh_gossip::net::util::write_message
source · pub async fn write_message<W: AsyncWrite + Unpin>(
writer: &mut W,
buffer: &mut BytesMut,
- frame: &Message<PublicKey>,
+ frame: &Message<PublicKey>,
max_message_size: usize
) -> Result<()>
Expand description
Write a ProtoMessage as a length-prefixed, postcard-encoded message.
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
index 90442a8828..b9e6243f91 100644
--- a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
+++ b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
@@ -8,7 +8,7 @@
§Received(GossipEvent<PI>)
A gossip message was received for this topic
Trait Implementations§
source§impl<'de, PI> Deserialize<'de> for Event<PI>where
PI: Deserialize<'de>,
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<Event<PublicKey>> for GossipEvent
source§impl<PI: Ord> Ord for Event<PI>
source§impl<PI: PartialEq> PartialEq for Event<PI>
source§fn eq(&self, other: &Event<PI>) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
index 25d4340e43..704137ef24 100644
--- a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
+++ b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
@@ -30,7 +30,7 @@
) -> Result<Vec<CapabilityPack>>sourcepub async fn import_caps(&self, caps: Vec<CapabilityPack>) -> Result<()>
sourcepub async fn resolve_interests(
&self,
interests: Interests
-) -> Result<InterestMap>
sourcepub async fn shutdown(&self) -> Result<()>
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
index e00006425d..f0097c48be 100644
--- a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
+++ b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
@@ -501,8 +501,6 @@
501
502
503
-504
-505
use std::{sync::Arc, thread::JoinHandle};
use anyhow::Result;
@@ -734,10 +732,8 @@
let shutdown = move || {
if let Err(err) = inbox_tx.blocking_send(Input::Shutdown { reply: None }) {
warn!(?err, "Failed to send shutdown");
- } else {
- if let Err(err) = handle.join() {
- warn!(?err, "Failed to join sync actor");
- }
+ } else if let Err(err) = handle.join() {
+ warn!(?err, "Failed to join sync actor");
}
};
diff --git a/pr/2231/docs/trait.impl/core/convert/trait.From.js b/pr/2231/docs/trait.impl/core/convert/trait.From.js
index 6dbc4ff9b8..5e9d63d16e 100644
--- a/pr/2231/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/2231/docs/trait.impl/core/convert/trait.From.js
@@ -3,7 +3,7 @@
"iroh_base":[["impl From<&[u8; 32]> for Hash"],["impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr"],["impl From<FromHexError> for HexOrBase32ParseError"],["impl From<HexOrBase32ParseError> for KeyParsingError"],["impl From<BlobFormat> for u64"],["impl From<Error> for RpcError"],["impl From<Error> for RpcError"],["impl From<Url> for RelayUrl"],["impl From<DecodeError> for HexOrBase32ParseError"],["impl From<DecodeError> for Error"],["impl From<Hash> for Hash"],["impl From<Hash> for [u8; 32]"],["impl From<PublicKey> for NodeAddr"],["impl From<RelayUrl> for Url"],["impl From<Error> for KeyParsingError"],["impl From<Error> for Error"],["impl From<Hash> for Hash"],["impl From<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for Hash"],["impl From<[u8; 32]> for SecretKey"]],
"iroh_blobs":[["impl From<&str> for Tag"],["impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext"],["impl From<BlobId> for u64"],["impl From<GetResponseError> for Error"],["impl From<GetError> for FailureAction"],["impl From<AtBlobHeaderNextError> for GetError"],["impl From<AtBlobHeaderNextError> for DecodeError"],["impl From<AtBlobHeaderNextError> for Error"],["impl From<ConnectedNextError> for GetError"],["impl From<ConnectedNextError> for Error"],["impl From<DecodeError> for GetError"],["impl From<DecodeError> for Error"],["impl From<Closed> for VarInt"],["impl From<SpawnError> for Error"],["impl From<ProgressSendError> for GetError"],["impl From<ProgressSendError> for Error"],["impl From<String> for Tag"],["impl From<Vec<u8>> for SparseMemFile"],["impl From<Error> for GetError"],["impl From<Error> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<DownloadKind> for HashAndFormat"],["impl From<AtClosing> for ConnectedNext"],["impl From<AtClosing> for EndBlobNext"],["impl From<AtEndBlob> for BlobContentNext"],["impl From<AtStartChild> for ConnectedNext"],["impl From<AtStartChild> for EndBlobNext"],["impl From<AtStartRoot> for ConnectedNext"],["impl From<HashSeq> for Bytes"],["impl From<GetRequest> for Request"],["impl From<HashAndFormat> for DownloadKind"],["impl From<Tag> for Bytes"],["impl From<Bytes> for Tag"],["impl From<ClosedStream> for GetError"],["impl From<ClosedStream> for ConnectedNextError"],["impl From<ConnectionError> for GetResponseError"],["impl From<ConnectionError> for GetError"],["impl From<DecodeError> for GetResponseError"],["impl From<DecodeError> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<ReadError> for GetResponseError"],["impl From<ReadError> for GetError"],["impl From<WriteError> for GetResponseError"],["impl From<WriteError> for GetError"],["impl From<WriteError> for ConnectedNextError"],["impl<T: CustomEventSender> From<T> for EventSender"]],
"iroh_docs":[["impl From<&Author> for AuthorPublicKey"],["impl From<&AuthorPublicKey> for AuthorId"],["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecret> for NamespacePublicKey"],["impl From<&[u8; 32]> for AuthorId"],["impl From<&[u8; 32]> for NamespaceId"],["impl From<CapabilityKind> for u8"],["impl From<ValidationFailure> for InsertError"],["impl From<Error> for OpenError"],["impl From<QueryBuilder<FlatQuery>> for Query"],["impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query"],["impl From<Author> for AuthorId"],["impl From<Author> for AuthorPublicKey"],["impl From<AuthorId> for AuthorFilter"],["impl From<AuthorId> for [u8; 32]"],["impl From<AuthorPublicKey> for AuthorId"],["impl From<NamespaceId> for Capability"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecret> for Capability"],["impl From<NamespaceSecret> for NamespaceId"],["impl From<NamespaceSecret> for NamespacePublicKey"],["impl From<ReadOnly> for InsertError"],["impl From<SignedEntry> for Entry"],["impl From<SigningKey> for Author"],["impl From<SigningKey> for NamespaceSecret"],["impl From<VerifyingKey> for AuthorPublicKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<[u8; 32]> for AuthorId"],["impl From<[u8; 32]> for NamespaceId"],["impl<T: AsRef<[u8]>> From<T> for KeyFilter"]],
-"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
+"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
"iroh_net":[["impl From<&NodeInfo> for TxtAttrs<IrohAttr>"],["impl From<&TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<&Peer> for DiscoveryItem"],["impl From<IpAddr> for IpFamily"],["impl From<IpFamily> for Domain"],["impl From<Error> for ClientError"],["impl From<Error> for PingError"],["impl From<NodeInfo> for AddrInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<RemoteInfo> for NodeAddr"],["impl From<GenError> for CreateConfigError"],["impl From<ParseError> for Error"],["impl From<VerificationError> for Error"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for GenError"],["impl From<Error> for ParseError"],["impl From<Error> for VerificationError"],["impl From<JoinError> for ClientError"],["impl From<NoInitialCipherSuite> for CreateConfigError"],["impl From<SurgeError> for PingError"],["impl From<UdpSocket> for UdpSocket"],["impl<T> From<T> for ConcurrentDiscovery"]],
"iroh_willow":[["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecretKey> for NamespacePublicKey"],["impl From<&UserPublicKey> for UserId"],["impl From<&UserSecretKey> for UserPublicKey"],["impl From<InvalidPathError> for InvalidPathError2"],["impl From<DataMessage> for Message"],["impl From<IntersectionMessage> for Message"],["impl From<ReconciliationMessage> for Message"],["impl From<EventKind> for Event"],["impl From<u64> for AreaOfInterestHandle"],["impl From<u64> for CapabilityHandle"],["impl From<u64> for IntersectionHandle"],["impl From<u64> for StaticTokenHandle"],["impl From<Box<PaiReplySubspaceCapability>> for Message"],["impl From<Error> for SecretStoreError"],["impl From<EntryForm> for EntryOrForm"],["impl From<InterestBuilder> for Interests"],["impl From<SerdeAuthorisedEntry> for AuthorisedEntry"],["impl From<SerdeEntry> for Entry"],["impl From<PayloadDigest> for Hash"],["impl From<SerdeArea> for Area"],["impl From<SerdeAreaOfInterest> for AreaOfInterest"],["impl From<SerdeRange3d> for Range3d"],["impl From<NamespaceId> for CapSelector"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecretKey> for SecretKey"],["impl From<NamespaceSecretKey> for NamespaceId"],["impl From<NamespaceSecretKey> for NamespacePublicKey"],["impl From<UserId> for AuthForm"],["impl From<UserId> for UserSelector"],["impl From<UserId> for [u8; 32]"],["impl From<UserPublicKey> for UserId"],["impl From<UserSecretKey> for SecretKey"],["impl From<UserSecretKey> for UserId"],["impl From<UserSecretKey> for UserPublicKey"],["impl From<SerdeMcCapability> for McCapability"],["impl From<SerdeMcSubspaceCapability> for McSubspaceCapability"],["impl From<SerdeReadAuthorisation> for ReadAuthorisation"],["impl From<ReadAuthorisation> for SerdeReadAuthorisation"],["impl From<AreaOfInterestHandle> for ResourceHandle"],["impl From<CapabilityHandle> for ResourceHandle"],["impl From<CommitmentReveal> for Message"],["impl From<ControlAbsolve> for Message"],["impl From<ControlAnnounceDropping> for Message"],["impl From<ControlApologise> for Message"],["impl From<ControlFreeHandle> for Message"],["impl From<ControlIssueGuarantee> for Message"],["impl From<ControlPlead> for Message"],["impl From<DataSendEntry> for DataMessage"],["impl From<DataSendEntry> for Message"],["impl From<DataSendPayload> for DataMessage"],["impl From<DataSendPayload> for Message"],["impl From<DataSetMetadata> for DataMessage"],["impl From<DataSetMetadata> for Message"],["impl From<IntersectionHandle> for ResourceHandle"],["impl From<PaiBindFragment> for IntersectionMessage"],["impl From<PaiBindFragment> for Message"],["impl From<PaiReplyFragment> for IntersectionMessage"],["impl From<PaiReplyFragment> for Message"],["impl From<PaiRequestSubspaceCapability> for Message"],["impl From<ReconciliationAnnounceEntries> for Message"],["impl From<ReconciliationAnnounceEntries> for ReconciliationMessage"],["impl From<ReconciliationSendEntry> for Message"],["impl From<ReconciliationSendEntry> for ReconciliationMessage"],["impl From<ReconciliationSendFingerprint> for Message"],["impl From<ReconciliationSendFingerprint> for ReconciliationMessage"],["impl From<ReconciliationSendPayload> for Message"],["impl From<ReconciliationSendPayload> for ReconciliationMessage"],["impl From<ReconciliationTerminatePayload> for Message"],["impl From<ReconciliationTerminatePayload> for ReconciliationMessage"],["impl From<SetupBindAreaOfInterest> for Message"],["impl From<SetupBindReadCapability> for Message"],["impl From<SetupBindStaticToken> for Message"],["impl From<StaticTokenHandle> for ResourceHandle"],["impl From<Area<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeArea"],["impl From<AreaOfInterest<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeAreaOfInterest"],["impl From<AuthorisedEntry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest, McAuthorisationToken<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>>> for SerdeAuthorisedEntry"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for EntryOrForm"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for SerdeEntry"],["impl From<Hash> for PayloadDigest"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for AuthForm"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability"],["impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability"],["impl From<Range3d<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeRange3d"],["impl From<Signature> for NamespaceSignature"],["impl From<Signature> for UserSignature"],["impl From<SigningKey> for NamespaceSecretKey"],["impl From<SigningKey> for UserSecretKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<VerifyingKey> for UserPublicKey"],["impl From<[u8; 32]> for NamespaceId"],["impl From<[u8; 32]> for UserId"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index 8902586109..d96c0fcf7e 100644
--- a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -1,6 +1,6 @@
(function() {var implementors = {
"iroh":[["impl Metric for Metrics"]],
-"iroh_blobs":[["impl Metric for Metrics"]],
+"iroh_blobs":[["impl Metric for Metrics"]],
"iroh_dns_server":[["impl Metric for Metrics"]],
"iroh_docs":[["impl Metric for Metrics"]],
"iroh_gossip":[["impl Metric for Metrics"]],
Enum iroh_gossip::net::Command
source · pub enum Command {
Broadcast(Bytes),
BroadcastNeighbors(Bytes),
- JoinPeers(Vec<NodeId>),
+ JoinPeers(Vec<NodeId>),
}Expand description
Send a gossip message
Variants§
Broadcast(Bytes)
Broadcast a message to all nodes in the swarm
BroadcastNeighbors(Bytes)
Broadcast a message to all direct neighbors
-JoinPeers(Vec<NodeId>)
Connect to a set of peers
+JoinPeers(Vec<NodeId>)
Connect to a set of peers
Trait Implementations§
source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl !Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2231/docs/iroh_gossip/net/enum.GossipEvent.html b/pr/2231/docs/iroh_gossip/net/enum.GossipEvent.html
index 291018eff0..45e391e8db 100644
--- a/pr/2231/docs/iroh_gossip/net/enum.GossipEvent.html
+++ b/pr/2231/docs/iroh_gossip/net/enum.GossipEvent.html
@@ -1,17 +1,17 @@
GossipEvent in iroh_gossip::net - Rust Enum iroh_gossip::net::GossipEvent
source · pub enum GossipEvent {
- Joined(Vec<NodeId>),
- NeighborUp(NodeId),
- NeighborDown(NodeId),
+ Joined(Vec<NodeId>),
+ NeighborUp(NodeId),
+ NeighborDown(NodeId),
Received(Message),
}
Expand description
Events emitted from a gossip topic.
These are the events emitted from a GossipReceiver, wrapped in Event::Gossip.
-Variants§
§Joined(Vec<NodeId>)
We joined the topic with at least one peer.
+Variants§
§Joined(Vec<NodeId>)
We joined the topic with at least one peer.
This is the first event on a GossipReceiver and will only be emitted once.
-§NeighborUp(NodeId)
We have a new, direct neighbor in the swarm membership layer for this topic.
-§NeighborDown(NodeId)
We dropped direct neighbor in the swarm membership layer for this topic.
+§NeighborUp(NodeId)
We have a new, direct neighbor in the swarm membership layer for this topic.
+§NeighborDown(NodeId)
We dropped direct neighbor in the swarm membership layer for this topic.
§Received(Message)
We received a gossip message for this topic.
Trait Implementations§
source§impl Clone for GossipEvent
source§fn clone(&self) -> GossipEvent
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 GossipEvent
source§impl<'de> Deserialize<'de> for GossipEvent
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<Event<PublicKey>> for GossipEvent
source§impl Ord for GossipEvent
source§impl Ord for GossipEvent
source§fn cmp(&self, other: &GossipEvent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialEq for GossipEvent
source§fn eq(&self, other: &GossipEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2231/docs/iroh_gossip/net/struct.Gossip.html b/pr/2231/docs/iroh_gossip/net/struct.Gossip.html
index 256eafd1fe..f3e927f78a 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.Gossip.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.Gossip.html
@@ -1,7 +1,7 @@
Gossip in iroh_gossip::net - Rust Struct iroh_gossip::net::Gossip
source · pub struct Gossip { /* private fields */ }
Expand description
Publish and subscribe on gossiping topics.
Each topic is a separate broadcast tree with separate memberships.
A topic has to be joined before you can publish or subscribe on the topic.
-To join the swarm for a topic, you have to know the [PublicKey] of at least one peer that also joined the topic.
+To join the swarm for a topic, you have to know the PublicKey of at least one peer that also joined the topic.
Messages published on the swarm will be delivered to all peers that joined the swarm for that
topic. You will also be relaying (gossiping) messages published by other peers.
With the default settings, the protocol will maintain up to 5 peer connections per topic.
@@ -13,7 +13,7 @@ gossip actor through Implementations§
source§impl Gossip
sourcepub fn from_endpoint(
endpoint: Endpoint,
config: Config,
- my_addr: &AddrInfo
+ my_addr: &AddrInfo
) -> Self
Spawn a gossip actor and get a handle for it
sourcepub fn max_message_size(&self) -> usize
Get the maximum message size configured for this gossip actor.
sourcepub async fn handle_connection(&self, conn: Connection) -> Result<()>
Handle an incoming [Connection].
@@ -21,7 +21,7 @@ gossip actor through sourcepub async fn join(
&self,
topic_id: TopicId,
- bootstrap: Vec<NodeId>
+ bootstrap: Vec<NodeId>
) -> Result<GossipTopic>
Join a gossip topic with the default options and wait for at least one active connection.
sourcepub fn join_with_opts(
&self,
diff --git a/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html b/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html
index 7095f28789..bbcce9b4f0 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html
@@ -1,6 +1,6 @@
GossipReceiver in iroh_gossip::net - Rust Struct iroh_gossip::net::GossipReceiver
source · pub struct GossipReceiver { /* private fields */ }
Expand description
Receiver for gossip events on a topic.
This is a [Stream] of Events emitted from the topic.
-Implementations§
source§impl GossipReceiver
sourcepub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_
Lists our current direct neighbors.
+Implementations§
source§impl GossipReceiver
sourcepub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_
Lists our current direct neighbors.
sourcepub async fn joined(&mut self) -> Result<()>
Waits until we are connected to at least one node.
This progresses the stream until we received GossipEvent::Joined, which is the first
item emitted on the stream.
diff --git a/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html b/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html
index b3cd3ce9b1..116461efa1 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html
@@ -1,7 +1,7 @@
GossipSender in iroh_gossip::net - Rust Struct iroh_gossip::net::GossipSender
source · pub struct GossipSender(/* private fields */);
Expand description
Sender for a gossip topic.
Implementations§
source§impl GossipSender
sourcepub async fn broadcast_neighbors(&self, message: Bytes) -> Result<()>
Broadcast a message to our direct neighbors.
-sourcepub async fn join_peers(&self, peers: Vec<NodeId>) -> Result<()>
Join a set of peers.
+Trait Implementations§
Auto Trait Implementations§
§impl Freeze for GossipSender
§impl RefUnwindSafe for GossipSender
§impl Send for GossipSender
§impl Sync for GossipSender
§impl Unpin for GossipSender
§impl UnwindSafe for GossipSender
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html b/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
index 7cd50bfeb7..809a4ef917 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
@@ -1,14 +1,14 @@
JoinOptions in iroh_gossip::net - Rust Struct iroh_gossip::net::JoinOptions
source · pub struct JoinOptions {
- pub bootstrap: BTreeSet<NodeId>,
+ pub bootstrap: BTreeSet<NodeId>,
pub subscription_capacity: usize,
}
Expand description
Options for joining a gossip topic.
-Fields§
§bootstrap: BTreeSet<NodeId>The initial bootstrap nodes
+Fields§
§bootstrap: BTreeSet<NodeId>The initial bootstrap nodes
§subscription_capacity: usizeThe maximum number of messages that can be buffered in a subscription.
If this limit is reached, the subscriber will receive a Lagged response,
the message will be dropped, and the subscriber will be closed.
This is to prevent a single slow subscriber from blocking the dispatch loop.
If a subscriber is lagging, it should be closed and re-opened.
-Implementations§
source§impl JoinOptions
sourcepub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
Creates JoinOptions with the provided bootstrap nodes and the default subscription
+
Implementations§
source§impl JoinOptions
sourcepub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
Creates JoinOptions with the provided bootstrap nodes and the default subscription
capacity.
Trait Implementations§
source§impl Debug for JoinOptions
source§impl<'de> Deserialize<'de> for JoinOptions
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 Serialize for JoinOptions
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2231/docs/iroh_gossip/net/struct.Message.html b/pr/2231/docs/iroh_gossip/net/struct.Message.html
index ca0c1c33d5..f687c479d2 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.Message.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.Message.html
@@ -1,12 +1,12 @@
Message in iroh_gossip::net - Rust Struct iroh_gossip::net::Message
source · pub struct Message {
pub content: Bytes,
pub scope: DeliveryScope,
- pub delivered_from: NodeId,
+ pub delivered_from: NodeId,
}
Expand description
A gossip message
Fields§
§content: BytesThe content of the message
§scope: DeliveryScopeThe scope of the message.
This tells us if the message is from a direct neighbor or actual gossip.
-§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
+§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
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 Message
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more1.21.0 · source§fn min(self, other: Self) -> Selfwhere
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
index 590d571ec7..301d28aff1 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
@@ -1,9 +1,9 @@
-ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
+ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
Aliased Type§
enum ProtoCommand {
- Join(Vec<PublicKey>),
+ Join(Vec<PublicKey>),
Broadcast(Bytes, Scope),
Quit,
-}
Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
+}Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
If the list of peers is empty, will prepare the state and accept incoming join requests,
but only become operational after the first join request by another peer.
§Broadcast(Bytes, Scope)
Broadcast a message for this topic.
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
index 82531f5998..d42255752a 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
@@ -1,9 +1,9 @@
-ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
+ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
Aliased Type§
enum ProtoEvent {
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
- Received(GossipEvent<PublicKey>),
-}
Variants§
§NeighborUp(PublicKey)
We have a new, direct neighbor in the swarm membership layer for this topic
-§NeighborDown(PublicKey)
We dropped direct neighbor in the swarm membership layer for this topic
-§Received(GossipEvent<PublicKey>)
A gossip message was received for this topic
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
+ Received(GossipEvent<PublicKey>),
+}Variants§
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
index 07dd089029..0750fa8c38 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
@@ -2,5 +2,5 @@
reader: impl AsyncRead + Unpin,
buffer: &mut BytesMut,
max_message_size: usize
-) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
+) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
index c3ee8b490b..9c961dc01c 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
@@ -1,7 +1,7 @@
write_message in iroh_gossip::net::util - Rust Function iroh_gossip::net::util::write_message
source · pub async fn write_message<W: AsyncWrite + Unpin>(
writer: &mut W,
buffer: &mut BytesMut,
- frame: &Message<PublicKey>,
+ frame: &Message<PublicKey>,
max_message_size: usize
) -> Result<()>
Expand description
Write a ProtoMessage as a length-prefixed, postcard-encoded message.
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
index 90442a8828..b9e6243f91 100644
--- a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
+++ b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
@@ -8,7 +8,7 @@
§Received(GossipEvent<PI>)
A gossip message was received for this topic
Trait Implementations§
source§impl<'de, PI> Deserialize<'de> for Event<PI>where
PI: Deserialize<'de>,
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<Event<PublicKey>> for GossipEvent
source§impl<PI: Ord> Ord for Event<PI>
source§impl<PI: PartialEq> PartialEq for Event<PI>
source§fn eq(&self, other: &Event<PI>) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
index 25d4340e43..704137ef24 100644
--- a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
+++ b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
@@ -30,7 +30,7 @@
) -> Result<Vec<CapabilityPack>>sourcepub async fn import_caps(&self, caps: Vec<CapabilityPack>) -> Result<()>
sourcepub async fn resolve_interests(
&self,
interests: Interests
-) -> Result<InterestMap>
sourcepub async fn shutdown(&self) -> Result<()>
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
index e00006425d..f0097c48be 100644
--- a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
+++ b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
@@ -501,8 +501,6 @@
501
502
503
-504
-505
use std::{sync::Arc, thread::JoinHandle};
use anyhow::Result;
@@ -734,10 +732,8 @@
let shutdown = move || {
if let Err(err) = inbox_tx.blocking_send(Input::Shutdown { reply: None }) {
warn!(?err, "Failed to send shutdown");
- } else {
- if let Err(err) = handle.join() {
- warn!(?err, "Failed to join sync actor");
- }
+ } else if let Err(err) = handle.join() {
+ warn!(?err, "Failed to join sync actor");
}
};
diff --git a/pr/2231/docs/trait.impl/core/convert/trait.From.js b/pr/2231/docs/trait.impl/core/convert/trait.From.js
index 6dbc4ff9b8..5e9d63d16e 100644
--- a/pr/2231/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/2231/docs/trait.impl/core/convert/trait.From.js
@@ -3,7 +3,7 @@
"iroh_base":[["impl From<&[u8; 32]> for Hash"],["impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr"],["impl From<FromHexError> for HexOrBase32ParseError"],["impl From<HexOrBase32ParseError> for KeyParsingError"],["impl From<BlobFormat> for u64"],["impl From<Error> for RpcError"],["impl From<Error> for RpcError"],["impl From<Url> for RelayUrl"],["impl From<DecodeError> for HexOrBase32ParseError"],["impl From<DecodeError> for Error"],["impl From<Hash> for Hash"],["impl From<Hash> for [u8; 32]"],["impl From<PublicKey> for NodeAddr"],["impl From<RelayUrl> for Url"],["impl From<Error> for KeyParsingError"],["impl From<Error> for Error"],["impl From<Hash> for Hash"],["impl From<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for Hash"],["impl From<[u8; 32]> for SecretKey"]],
"iroh_blobs":[["impl From<&str> for Tag"],["impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext"],["impl From<BlobId> for u64"],["impl From<GetResponseError> for Error"],["impl From<GetError> for FailureAction"],["impl From<AtBlobHeaderNextError> for GetError"],["impl From<AtBlobHeaderNextError> for DecodeError"],["impl From<AtBlobHeaderNextError> for Error"],["impl From<ConnectedNextError> for GetError"],["impl From<ConnectedNextError> for Error"],["impl From<DecodeError> for GetError"],["impl From<DecodeError> for Error"],["impl From<Closed> for VarInt"],["impl From<SpawnError> for Error"],["impl From<ProgressSendError> for GetError"],["impl From<ProgressSendError> for Error"],["impl From<String> for Tag"],["impl From<Vec<u8>> for SparseMemFile"],["impl From<Error> for GetError"],["impl From<Error> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<DownloadKind> for HashAndFormat"],["impl From<AtClosing> for ConnectedNext"],["impl From<AtClosing> for EndBlobNext"],["impl From<AtEndBlob> for BlobContentNext"],["impl From<AtStartChild> for ConnectedNext"],["impl From<AtStartChild> for EndBlobNext"],["impl From<AtStartRoot> for ConnectedNext"],["impl From<HashSeq> for Bytes"],["impl From<GetRequest> for Request"],["impl From<HashAndFormat> for DownloadKind"],["impl From<Tag> for Bytes"],["impl From<Bytes> for Tag"],["impl From<ClosedStream> for GetError"],["impl From<ClosedStream> for ConnectedNextError"],["impl From<ConnectionError> for GetResponseError"],["impl From<ConnectionError> for GetError"],["impl From<DecodeError> for GetResponseError"],["impl From<DecodeError> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<ReadError> for GetResponseError"],["impl From<ReadError> for GetError"],["impl From<WriteError> for GetResponseError"],["impl From<WriteError> for GetError"],["impl From<WriteError> for ConnectedNextError"],["impl<T: CustomEventSender> From<T> for EventSender"]],
"iroh_docs":[["impl From<&Author> for AuthorPublicKey"],["impl From<&AuthorPublicKey> for AuthorId"],["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecret> for NamespacePublicKey"],["impl From<&[u8; 32]> for AuthorId"],["impl From<&[u8; 32]> for NamespaceId"],["impl From<CapabilityKind> for u8"],["impl From<ValidationFailure> for InsertError"],["impl From<Error> for OpenError"],["impl From<QueryBuilder<FlatQuery>> for Query"],["impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query"],["impl From<Author> for AuthorId"],["impl From<Author> for AuthorPublicKey"],["impl From<AuthorId> for AuthorFilter"],["impl From<AuthorId> for [u8; 32]"],["impl From<AuthorPublicKey> for AuthorId"],["impl From<NamespaceId> for Capability"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecret> for Capability"],["impl From<NamespaceSecret> for NamespaceId"],["impl From<NamespaceSecret> for NamespacePublicKey"],["impl From<ReadOnly> for InsertError"],["impl From<SignedEntry> for Entry"],["impl From<SigningKey> for Author"],["impl From<SigningKey> for NamespaceSecret"],["impl From<VerifyingKey> for AuthorPublicKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<[u8; 32]> for AuthorId"],["impl From<[u8; 32]> for NamespaceId"],["impl<T: AsRef<[u8]>> From<T> for KeyFilter"]],
-"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
+"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
"iroh_net":[["impl From<&NodeInfo> for TxtAttrs<IrohAttr>"],["impl From<&TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<&Peer> for DiscoveryItem"],["impl From<IpAddr> for IpFamily"],["impl From<IpFamily> for Domain"],["impl From<Error> for ClientError"],["impl From<Error> for PingError"],["impl From<NodeInfo> for AddrInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<RemoteInfo> for NodeAddr"],["impl From<GenError> for CreateConfigError"],["impl From<ParseError> for Error"],["impl From<VerificationError> for Error"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for GenError"],["impl From<Error> for ParseError"],["impl From<Error> for VerificationError"],["impl From<JoinError> for ClientError"],["impl From<NoInitialCipherSuite> for CreateConfigError"],["impl From<SurgeError> for PingError"],["impl From<UdpSocket> for UdpSocket"],["impl<T> From<T> for ConcurrentDiscovery"]],
"iroh_willow":[["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecretKey> for NamespacePublicKey"],["impl From<&UserPublicKey> for UserId"],["impl From<&UserSecretKey> for UserPublicKey"],["impl From<InvalidPathError> for InvalidPathError2"],["impl From<DataMessage> for Message"],["impl From<IntersectionMessage> for Message"],["impl From<ReconciliationMessage> for Message"],["impl From<EventKind> for Event"],["impl From<u64> for AreaOfInterestHandle"],["impl From<u64> for CapabilityHandle"],["impl From<u64> for IntersectionHandle"],["impl From<u64> for StaticTokenHandle"],["impl From<Box<PaiReplySubspaceCapability>> for Message"],["impl From<Error> for SecretStoreError"],["impl From<EntryForm> for EntryOrForm"],["impl From<InterestBuilder> for Interests"],["impl From<SerdeAuthorisedEntry> for AuthorisedEntry"],["impl From<SerdeEntry> for Entry"],["impl From<PayloadDigest> for Hash"],["impl From<SerdeArea> for Area"],["impl From<SerdeAreaOfInterest> for AreaOfInterest"],["impl From<SerdeRange3d> for Range3d"],["impl From<NamespaceId> for CapSelector"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecretKey> for SecretKey"],["impl From<NamespaceSecretKey> for NamespaceId"],["impl From<NamespaceSecretKey> for NamespacePublicKey"],["impl From<UserId> for AuthForm"],["impl From<UserId> for UserSelector"],["impl From<UserId> for [u8; 32]"],["impl From<UserPublicKey> for UserId"],["impl From<UserSecretKey> for SecretKey"],["impl From<UserSecretKey> for UserId"],["impl From<UserSecretKey> for UserPublicKey"],["impl From<SerdeMcCapability> for McCapability"],["impl From<SerdeMcSubspaceCapability> for McSubspaceCapability"],["impl From<SerdeReadAuthorisation> for ReadAuthorisation"],["impl From<ReadAuthorisation> for SerdeReadAuthorisation"],["impl From<AreaOfInterestHandle> for ResourceHandle"],["impl From<CapabilityHandle> for ResourceHandle"],["impl From<CommitmentReveal> for Message"],["impl From<ControlAbsolve> for Message"],["impl From<ControlAnnounceDropping> for Message"],["impl From<ControlApologise> for Message"],["impl From<ControlFreeHandle> for Message"],["impl From<ControlIssueGuarantee> for Message"],["impl From<ControlPlead> for Message"],["impl From<DataSendEntry> for DataMessage"],["impl From<DataSendEntry> for Message"],["impl From<DataSendPayload> for DataMessage"],["impl From<DataSendPayload> for Message"],["impl From<DataSetMetadata> for DataMessage"],["impl From<DataSetMetadata> for Message"],["impl From<IntersectionHandle> for ResourceHandle"],["impl From<PaiBindFragment> for IntersectionMessage"],["impl From<PaiBindFragment> for Message"],["impl From<PaiReplyFragment> for IntersectionMessage"],["impl From<PaiReplyFragment> for Message"],["impl From<PaiRequestSubspaceCapability> for Message"],["impl From<ReconciliationAnnounceEntries> for Message"],["impl From<ReconciliationAnnounceEntries> for ReconciliationMessage"],["impl From<ReconciliationSendEntry> for Message"],["impl From<ReconciliationSendEntry> for ReconciliationMessage"],["impl From<ReconciliationSendFingerprint> for Message"],["impl From<ReconciliationSendFingerprint> for ReconciliationMessage"],["impl From<ReconciliationSendPayload> for Message"],["impl From<ReconciliationSendPayload> for ReconciliationMessage"],["impl From<ReconciliationTerminatePayload> for Message"],["impl From<ReconciliationTerminatePayload> for ReconciliationMessage"],["impl From<SetupBindAreaOfInterest> for Message"],["impl From<SetupBindReadCapability> for Message"],["impl From<SetupBindStaticToken> for Message"],["impl From<StaticTokenHandle> for ResourceHandle"],["impl From<Area<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeArea"],["impl From<AreaOfInterest<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeAreaOfInterest"],["impl From<AuthorisedEntry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest, McAuthorisationToken<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>>> for SerdeAuthorisedEntry"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for EntryOrForm"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for SerdeEntry"],["impl From<Hash> for PayloadDigest"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for AuthForm"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability"],["impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability"],["impl From<Range3d<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeRange3d"],["impl From<Signature> for NamespaceSignature"],["impl From<Signature> for UserSignature"],["impl From<SigningKey> for NamespaceSecretKey"],["impl From<SigningKey> for UserSecretKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<VerifyingKey> for UserPublicKey"],["impl From<[u8; 32]> for NamespaceId"],["impl From<[u8; 32]> for UserId"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index 8902586109..d96c0fcf7e 100644
--- a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -1,6 +1,6 @@
(function() {var implementors = {
"iroh":[["impl Metric for Metrics"]],
-"iroh_blobs":[["impl Metric for Metrics"]],
+"iroh_blobs":[["impl Metric for Metrics"]],
"iroh_dns_server":[["impl Metric for Metrics"]],
"iroh_docs":[["impl Metric for Metrics"]],
"iroh_gossip":[["impl Metric for Metrics"]],
impl<T> Any for Twhere
diff --git a/pr/2231/docs/iroh_gossip/net/enum.GossipEvent.html b/pr/2231/docs/iroh_gossip/net/enum.GossipEvent.html
index 291018eff0..45e391e8db 100644
--- a/pr/2231/docs/iroh_gossip/net/enum.GossipEvent.html
+++ b/pr/2231/docs/iroh_gossip/net/enum.GossipEvent.html
@@ -1,17 +1,17 @@
GossipEvent in iroh_gossip::net - Rust Enum iroh_gossip::net::GossipEvent
source · pub enum GossipEvent {
- Joined(Vec<NodeId>),
- NeighborUp(NodeId),
- NeighborDown(NodeId),
+ Joined(Vec<NodeId>),
+ NeighborUp(NodeId),
+ NeighborDown(NodeId),
Received(Message),
}
Expand description
Events emitted from a gossip topic.
These are the events emitted from a GossipReceiver, wrapped in Event::Gossip.
-Variants§
§Joined(Vec<NodeId>)
We joined the topic with at least one peer.
+Variants§
§Joined(Vec<NodeId>)
We joined the topic with at least one peer.
This is the first event on a GossipReceiver and will only be emitted once.
-§NeighborUp(NodeId)
We have a new, direct neighbor in the swarm membership layer for this topic.
-§NeighborDown(NodeId)
We dropped direct neighbor in the swarm membership layer for this topic.
+§NeighborUp(NodeId)
We have a new, direct neighbor in the swarm membership layer for this topic.
+§NeighborDown(NodeId)
We dropped direct neighbor in the swarm membership layer for this topic.
§Received(Message)
We received a gossip message for this topic.
Trait Implementations§
source§impl Clone for GossipEvent
source§fn clone(&self) -> GossipEvent
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 GossipEvent
source§impl<'de> Deserialize<'de> for GossipEvent
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<Event<PublicKey>> for GossipEvent
source§impl Ord for GossipEvent
source§impl Ord for GossipEvent
source§fn cmp(&self, other: &GossipEvent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read moresource§impl PartialEq for GossipEvent
source§fn eq(&self, other: &GossipEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2231/docs/iroh_gossip/net/struct.Gossip.html b/pr/2231/docs/iroh_gossip/net/struct.Gossip.html
index 256eafd1fe..f3e927f78a 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.Gossip.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.Gossip.html
@@ -1,7 +1,7 @@
Gossip in iroh_gossip::net - Rust Struct iroh_gossip::net::Gossip
source · pub struct Gossip { /* private fields */ }
Expand description
Publish and subscribe on gossiping topics.
Each topic is a separate broadcast tree with separate memberships.
A topic has to be joined before you can publish or subscribe on the topic.
-To join the swarm for a topic, you have to know the [PublicKey] of at least one peer that also joined the topic.
+To join the swarm for a topic, you have to know the PublicKey of at least one peer that also joined the topic.
Messages published on the swarm will be delivered to all peers that joined the swarm for that
topic. You will also be relaying (gossiping) messages published by other peers.
With the default settings, the protocol will maintain up to 5 peer connections per topic.
@@ -13,7 +13,7 @@ gossip actor through Implementations§
source§impl Gossip
sourcepub fn from_endpoint(
endpoint: Endpoint,
config: Config,
- my_addr: &AddrInfo
+ my_addr: &AddrInfo
) -> Self
Spawn a gossip actor and get a handle for it
sourcepub fn max_message_size(&self) -> usize
Get the maximum message size configured for this gossip actor.
sourcepub async fn handle_connection(&self, conn: Connection) -> Result<()>
Handle an incoming [Connection].
@@ -21,7 +21,7 @@ gossip actor through sourcepub async fn join(
&self,
topic_id: TopicId,
- bootstrap: Vec<NodeId>
+ bootstrap: Vec<NodeId>
) -> Result<GossipTopic>
Join a gossip topic with the default options and wait for at least one active connection.
sourcepub fn join_with_opts(
&self,
diff --git a/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html b/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html
index 7095f28789..bbcce9b4f0 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html
@@ -1,6 +1,6 @@
GossipReceiver in iroh_gossip::net - Rust Struct iroh_gossip::net::GossipReceiver
source · pub struct GossipReceiver { /* private fields */ }
Expand description
Receiver for gossip events on a topic.
This is a [Stream] of Events emitted from the topic.
-Implementations§
source§impl GossipReceiver
sourcepub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_
Lists our current direct neighbors.
+Implementations§
source§impl GossipReceiver
sourcepub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_
Lists our current direct neighbors.
sourcepub async fn joined(&mut self) -> Result<()>
Waits until we are connected to at least one node.
This progresses the stream until we received GossipEvent::Joined, which is the first
item emitted on the stream.
diff --git a/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html b/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html
index b3cd3ce9b1..116461efa1 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html
@@ -1,7 +1,7 @@
GossipSender in iroh_gossip::net - Rust Struct iroh_gossip::net::GossipSender
source · pub struct GossipSender(/* private fields */);
Expand description
Sender for a gossip topic.
Implementations§
source§impl GossipSender
sourcepub async fn broadcast_neighbors(&self, message: Bytes) -> Result<()>
Broadcast a message to our direct neighbors.
-sourcepub async fn join_peers(&self, peers: Vec<NodeId>) -> Result<()>
Join a set of peers.
+Trait Implementations§
Auto Trait Implementations§
§impl Freeze for GossipSender
§impl RefUnwindSafe for GossipSender
§impl Send for GossipSender
§impl Sync for GossipSender
§impl Unpin for GossipSender
§impl UnwindSafe for GossipSender
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html b/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
index 7cd50bfeb7..809a4ef917 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
@@ -1,14 +1,14 @@
JoinOptions in iroh_gossip::net - Rust Struct iroh_gossip::net::JoinOptions
source · pub struct JoinOptions {
- pub bootstrap: BTreeSet<NodeId>,
+ pub bootstrap: BTreeSet<NodeId>,
pub subscription_capacity: usize,
}
Expand description
Options for joining a gossip topic.
-Fields§
§bootstrap: BTreeSet<NodeId>The initial bootstrap nodes
+Fields§
§bootstrap: BTreeSet<NodeId>The initial bootstrap nodes
§subscription_capacity: usizeThe maximum number of messages that can be buffered in a subscription.
If this limit is reached, the subscriber will receive a Lagged response,
the message will be dropped, and the subscriber will be closed.
This is to prevent a single slow subscriber from blocking the dispatch loop.
If a subscriber is lagging, it should be closed and re-opened.
-Implementations§
source§impl JoinOptions
sourcepub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
Creates JoinOptions with the provided bootstrap nodes and the default subscription
+
Implementations§
source§impl JoinOptions
sourcepub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
Creates JoinOptions with the provided bootstrap nodes and the default subscription
capacity.
Trait Implementations§
source§impl Debug for JoinOptions
source§impl<'de> Deserialize<'de> for JoinOptions
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 Serialize for JoinOptions
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2231/docs/iroh_gossip/net/struct.Message.html b/pr/2231/docs/iroh_gossip/net/struct.Message.html
index ca0c1c33d5..f687c479d2 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.Message.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.Message.html
@@ -1,12 +1,12 @@
Message in iroh_gossip::net - Rust Struct iroh_gossip::net::Message
source · pub struct Message {
pub content: Bytes,
pub scope: DeliveryScope,
- pub delivered_from: NodeId,
+ pub delivered_from: NodeId,
}
Expand description
A gossip message
Fields§
§content: BytesThe content of the message
§scope: DeliveryScopeThe scope of the message.
This tells us if the message is from a direct neighbor or actual gossip.
-§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
+§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
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 Message
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more1.21.0 · source§fn min(self, other: Self) -> Selfwhere
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
index 590d571ec7..301d28aff1 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
@@ -1,9 +1,9 @@
-ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
+ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
Aliased Type§
enum ProtoCommand {
- Join(Vec<PublicKey>),
+ Join(Vec<PublicKey>),
Broadcast(Bytes, Scope),
Quit,
-}
Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
+}Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
If the list of peers is empty, will prepare the state and accept incoming join requests,
but only become operational after the first join request by another peer.
§Broadcast(Bytes, Scope)
Broadcast a message for this topic.
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
index 82531f5998..d42255752a 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
@@ -1,9 +1,9 @@
-ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
+ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
Aliased Type§
enum ProtoEvent {
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
- Received(GossipEvent<PublicKey>),
-}
Variants§
§NeighborUp(PublicKey)
We have a new, direct neighbor in the swarm membership layer for this topic
-§NeighborDown(PublicKey)
We dropped direct neighbor in the swarm membership layer for this topic
-§Received(GossipEvent<PublicKey>)
A gossip message was received for this topic
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
+ Received(GossipEvent<PublicKey>),
+}Variants§
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
index 07dd089029..0750fa8c38 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
@@ -2,5 +2,5 @@
reader: impl AsyncRead + Unpin,
buffer: &mut BytesMut,
max_message_size: usize
-) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
+) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
index c3ee8b490b..9c961dc01c 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
@@ -1,7 +1,7 @@
write_message in iroh_gossip::net::util - Rust Function iroh_gossip::net::util::write_message
source · pub async fn write_message<W: AsyncWrite + Unpin>(
writer: &mut W,
buffer: &mut BytesMut,
- frame: &Message<PublicKey>,
+ frame: &Message<PublicKey>,
max_message_size: usize
) -> Result<()>
Expand description
Write a ProtoMessage as a length-prefixed, postcard-encoded message.
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
index 90442a8828..b9e6243f91 100644
--- a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
+++ b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
@@ -8,7 +8,7 @@
§Received(GossipEvent<PI>)
A gossip message was received for this topic
Trait Implementations§
source§impl<'de, PI> Deserialize<'de> for Event<PI>where
PI: Deserialize<'de>,
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<Event<PublicKey>> for GossipEvent
source§impl<PI: Ord> Ord for Event<PI>
source§impl<PI: PartialEq> PartialEq for Event<PI>
source§fn eq(&self, other: &Event<PI>) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
index 25d4340e43..704137ef24 100644
--- a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
+++ b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
@@ -30,7 +30,7 @@
) -> Result<Vec<CapabilityPack>>sourcepub async fn import_caps(&self, caps: Vec<CapabilityPack>) -> Result<()>
sourcepub async fn resolve_interests(
&self,
interests: Interests
-) -> Result<InterestMap>
sourcepub async fn shutdown(&self) -> Result<()>
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
index e00006425d..f0097c48be 100644
--- a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
+++ b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
@@ -501,8 +501,6 @@
501
502
503
-504
-505
use std::{sync::Arc, thread::JoinHandle};
use anyhow::Result;
@@ -734,10 +732,8 @@
let shutdown = move || {
if let Err(err) = inbox_tx.blocking_send(Input::Shutdown { reply: None }) {
warn!(?err, "Failed to send shutdown");
- } else {
- if let Err(err) = handle.join() {
- warn!(?err, "Failed to join sync actor");
- }
+ } else if let Err(err) = handle.join() {
+ warn!(?err, "Failed to join sync actor");
}
};
diff --git a/pr/2231/docs/trait.impl/core/convert/trait.From.js b/pr/2231/docs/trait.impl/core/convert/trait.From.js
index 6dbc4ff9b8..5e9d63d16e 100644
--- a/pr/2231/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/2231/docs/trait.impl/core/convert/trait.From.js
@@ -3,7 +3,7 @@
"iroh_base":[["impl From<&[u8; 32]> for Hash"],["impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr"],["impl From<FromHexError> for HexOrBase32ParseError"],["impl From<HexOrBase32ParseError> for KeyParsingError"],["impl From<BlobFormat> for u64"],["impl From<Error> for RpcError"],["impl From<Error> for RpcError"],["impl From<Url> for RelayUrl"],["impl From<DecodeError> for HexOrBase32ParseError"],["impl From<DecodeError> for Error"],["impl From<Hash> for Hash"],["impl From<Hash> for [u8; 32]"],["impl From<PublicKey> for NodeAddr"],["impl From<RelayUrl> for Url"],["impl From<Error> for KeyParsingError"],["impl From<Error> for Error"],["impl From<Hash> for Hash"],["impl From<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for Hash"],["impl From<[u8; 32]> for SecretKey"]],
"iroh_blobs":[["impl From<&str> for Tag"],["impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext"],["impl From<BlobId> for u64"],["impl From<GetResponseError> for Error"],["impl From<GetError> for FailureAction"],["impl From<AtBlobHeaderNextError> for GetError"],["impl From<AtBlobHeaderNextError> for DecodeError"],["impl From<AtBlobHeaderNextError> for Error"],["impl From<ConnectedNextError> for GetError"],["impl From<ConnectedNextError> for Error"],["impl From<DecodeError> for GetError"],["impl From<DecodeError> for Error"],["impl From<Closed> for VarInt"],["impl From<SpawnError> for Error"],["impl From<ProgressSendError> for GetError"],["impl From<ProgressSendError> for Error"],["impl From<String> for Tag"],["impl From<Vec<u8>> for SparseMemFile"],["impl From<Error> for GetError"],["impl From<Error> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<DownloadKind> for HashAndFormat"],["impl From<AtClosing> for ConnectedNext"],["impl From<AtClosing> for EndBlobNext"],["impl From<AtEndBlob> for BlobContentNext"],["impl From<AtStartChild> for ConnectedNext"],["impl From<AtStartChild> for EndBlobNext"],["impl From<AtStartRoot> for ConnectedNext"],["impl From<HashSeq> for Bytes"],["impl From<GetRequest> for Request"],["impl From<HashAndFormat> for DownloadKind"],["impl From<Tag> for Bytes"],["impl From<Bytes> for Tag"],["impl From<ClosedStream> for GetError"],["impl From<ClosedStream> for ConnectedNextError"],["impl From<ConnectionError> for GetResponseError"],["impl From<ConnectionError> for GetError"],["impl From<DecodeError> for GetResponseError"],["impl From<DecodeError> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<ReadError> for GetResponseError"],["impl From<ReadError> for GetError"],["impl From<WriteError> for GetResponseError"],["impl From<WriteError> for GetError"],["impl From<WriteError> for ConnectedNextError"],["impl<T: CustomEventSender> From<T> for EventSender"]],
"iroh_docs":[["impl From<&Author> for AuthorPublicKey"],["impl From<&AuthorPublicKey> for AuthorId"],["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecret> for NamespacePublicKey"],["impl From<&[u8; 32]> for AuthorId"],["impl From<&[u8; 32]> for NamespaceId"],["impl From<CapabilityKind> for u8"],["impl From<ValidationFailure> for InsertError"],["impl From<Error> for OpenError"],["impl From<QueryBuilder<FlatQuery>> for Query"],["impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query"],["impl From<Author> for AuthorId"],["impl From<Author> for AuthorPublicKey"],["impl From<AuthorId> for AuthorFilter"],["impl From<AuthorId> for [u8; 32]"],["impl From<AuthorPublicKey> for AuthorId"],["impl From<NamespaceId> for Capability"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecret> for Capability"],["impl From<NamespaceSecret> for NamespaceId"],["impl From<NamespaceSecret> for NamespacePublicKey"],["impl From<ReadOnly> for InsertError"],["impl From<SignedEntry> for Entry"],["impl From<SigningKey> for Author"],["impl From<SigningKey> for NamespaceSecret"],["impl From<VerifyingKey> for AuthorPublicKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<[u8; 32]> for AuthorId"],["impl From<[u8; 32]> for NamespaceId"],["impl<T: AsRef<[u8]>> From<T> for KeyFilter"]],
-"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
+"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
"iroh_net":[["impl From<&NodeInfo> for TxtAttrs<IrohAttr>"],["impl From<&TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<&Peer> for DiscoveryItem"],["impl From<IpAddr> for IpFamily"],["impl From<IpFamily> for Domain"],["impl From<Error> for ClientError"],["impl From<Error> for PingError"],["impl From<NodeInfo> for AddrInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<RemoteInfo> for NodeAddr"],["impl From<GenError> for CreateConfigError"],["impl From<ParseError> for Error"],["impl From<VerificationError> for Error"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for GenError"],["impl From<Error> for ParseError"],["impl From<Error> for VerificationError"],["impl From<JoinError> for ClientError"],["impl From<NoInitialCipherSuite> for CreateConfigError"],["impl From<SurgeError> for PingError"],["impl From<UdpSocket> for UdpSocket"],["impl<T> From<T> for ConcurrentDiscovery"]],
"iroh_willow":[["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecretKey> for NamespacePublicKey"],["impl From<&UserPublicKey> for UserId"],["impl From<&UserSecretKey> for UserPublicKey"],["impl From<InvalidPathError> for InvalidPathError2"],["impl From<DataMessage> for Message"],["impl From<IntersectionMessage> for Message"],["impl From<ReconciliationMessage> for Message"],["impl From<EventKind> for Event"],["impl From<u64> for AreaOfInterestHandle"],["impl From<u64> for CapabilityHandle"],["impl From<u64> for IntersectionHandle"],["impl From<u64> for StaticTokenHandle"],["impl From<Box<PaiReplySubspaceCapability>> for Message"],["impl From<Error> for SecretStoreError"],["impl From<EntryForm> for EntryOrForm"],["impl From<InterestBuilder> for Interests"],["impl From<SerdeAuthorisedEntry> for AuthorisedEntry"],["impl From<SerdeEntry> for Entry"],["impl From<PayloadDigest> for Hash"],["impl From<SerdeArea> for Area"],["impl From<SerdeAreaOfInterest> for AreaOfInterest"],["impl From<SerdeRange3d> for Range3d"],["impl From<NamespaceId> for CapSelector"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecretKey> for SecretKey"],["impl From<NamespaceSecretKey> for NamespaceId"],["impl From<NamespaceSecretKey> for NamespacePublicKey"],["impl From<UserId> for AuthForm"],["impl From<UserId> for UserSelector"],["impl From<UserId> for [u8; 32]"],["impl From<UserPublicKey> for UserId"],["impl From<UserSecretKey> for SecretKey"],["impl From<UserSecretKey> for UserId"],["impl From<UserSecretKey> for UserPublicKey"],["impl From<SerdeMcCapability> for McCapability"],["impl From<SerdeMcSubspaceCapability> for McSubspaceCapability"],["impl From<SerdeReadAuthorisation> for ReadAuthorisation"],["impl From<ReadAuthorisation> for SerdeReadAuthorisation"],["impl From<AreaOfInterestHandle> for ResourceHandle"],["impl From<CapabilityHandle> for ResourceHandle"],["impl From<CommitmentReveal> for Message"],["impl From<ControlAbsolve> for Message"],["impl From<ControlAnnounceDropping> for Message"],["impl From<ControlApologise> for Message"],["impl From<ControlFreeHandle> for Message"],["impl From<ControlIssueGuarantee> for Message"],["impl From<ControlPlead> for Message"],["impl From<DataSendEntry> for DataMessage"],["impl From<DataSendEntry> for Message"],["impl From<DataSendPayload> for DataMessage"],["impl From<DataSendPayload> for Message"],["impl From<DataSetMetadata> for DataMessage"],["impl From<DataSetMetadata> for Message"],["impl From<IntersectionHandle> for ResourceHandle"],["impl From<PaiBindFragment> for IntersectionMessage"],["impl From<PaiBindFragment> for Message"],["impl From<PaiReplyFragment> for IntersectionMessage"],["impl From<PaiReplyFragment> for Message"],["impl From<PaiRequestSubspaceCapability> for Message"],["impl From<ReconciliationAnnounceEntries> for Message"],["impl From<ReconciliationAnnounceEntries> for ReconciliationMessage"],["impl From<ReconciliationSendEntry> for Message"],["impl From<ReconciliationSendEntry> for ReconciliationMessage"],["impl From<ReconciliationSendFingerprint> for Message"],["impl From<ReconciliationSendFingerprint> for ReconciliationMessage"],["impl From<ReconciliationSendPayload> for Message"],["impl From<ReconciliationSendPayload> for ReconciliationMessage"],["impl From<ReconciliationTerminatePayload> for Message"],["impl From<ReconciliationTerminatePayload> for ReconciliationMessage"],["impl From<SetupBindAreaOfInterest> for Message"],["impl From<SetupBindReadCapability> for Message"],["impl From<SetupBindStaticToken> for Message"],["impl From<StaticTokenHandle> for ResourceHandle"],["impl From<Area<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeArea"],["impl From<AreaOfInterest<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeAreaOfInterest"],["impl From<AuthorisedEntry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest, McAuthorisationToken<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>>> for SerdeAuthorisedEntry"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for EntryOrForm"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for SerdeEntry"],["impl From<Hash> for PayloadDigest"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for AuthForm"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability"],["impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability"],["impl From<Range3d<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeRange3d"],["impl From<Signature> for NamespaceSignature"],["impl From<Signature> for UserSignature"],["impl From<SigningKey> for NamespaceSecretKey"],["impl From<SigningKey> for UserSecretKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<VerifyingKey> for UserPublicKey"],["impl From<[u8; 32]> for NamespaceId"],["impl From<[u8; 32]> for UserId"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index 8902586109..d96c0fcf7e 100644
--- a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -1,6 +1,6 @@
(function() {var implementors = {
"iroh":[["impl Metric for Metrics"]],
-"iroh_blobs":[["impl Metric for Metrics"]],
+"iroh_blobs":[["impl Metric for Metrics"]],
"iroh_dns_server":[["impl Metric for Metrics"]],
"iroh_docs":[["impl Metric for Metrics"]],
"iroh_gossip":[["impl Metric for Metrics"]],
Enum iroh_gossip::net::GossipEvent
source · pub enum GossipEvent {
- Joined(Vec<NodeId>),
- NeighborUp(NodeId),
- NeighborDown(NodeId),
+ Joined(Vec<NodeId>),
+ NeighborUp(NodeId),
+ NeighborDown(NodeId),
Received(Message),
}Expand description
Events emitted from a gossip topic.
These are the events emitted from a GossipReceiver, wrapped in Event::Gossip.
Variants§
Joined(Vec<NodeId>)
We joined the topic with at least one peer.
+Variants§
Joined(Vec<NodeId>)
We joined the topic with at least one peer.
This is the first event on a GossipReceiver and will only be emitted once.
NeighborUp(NodeId)
We have a new, direct neighbor in the swarm membership layer for this topic.
-NeighborDown(NodeId)
We dropped direct neighbor in the swarm membership layer for this topic.
+NeighborUp(NodeId)
We have a new, direct neighbor in the swarm membership layer for this topic.
+NeighborDown(NodeId)
We dropped direct neighbor in the swarm membership layer for this topic.
Received(Message)
We received a gossip message for this topic.
Trait Implementations§
source§impl Clone for GossipEvent
impl Clone for GossipEvent
source§fn clone(&self) -> GossipEvent
fn clone(&self) -> GossipEvent
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GossipEvent
impl Debug for GossipEvent
source§impl<'de> Deserialize<'de> for GossipEvent
impl<'de> Deserialize<'de> for GossipEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
source§impl From<Event<PublicKey>> for GossipEvent
impl From<Event<PublicKey>> for GossipEvent
source§impl Ord for GossipEvent
impl Ord for GossipEvent
source§impl Ord for GossipEvent
impl Ord for GossipEvent
source§fn cmp(&self, other: &GossipEvent) -> Ordering
fn cmp(&self, other: &GossipEvent) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for GossipEvent
impl PartialEq for GossipEvent
source§fn eq(&self, other: &GossipEvent) -> bool
fn eq(&self, other: &GossipEvent) -> bool
self and other values to be equal, and is used
diff --git a/pr/2231/docs/iroh_gossip/net/struct.Gossip.html b/pr/2231/docs/iroh_gossip/net/struct.Gossip.html
index 256eafd1fe..f3e927f78a 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.Gossip.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.Gossip.html
@@ -1,7 +1,7 @@
Struct iroh_gossip::net::Gossip
source · pub struct Gossip { /* private fields */ }Expand description
Publish and subscribe on gossiping topics.
Each topic is a separate broadcast tree with separate memberships.
A topic has to be joined before you can publish or subscribe on the topic.
-To join the swarm for a topic, you have to know the [PublicKey] of at least one peer that also joined the topic.
PublicKey of at least one peer that also joined the topic.
Messages published on the swarm will be delivered to all peers that joined the swarm for that topic. You will also be relaying (gossiping) messages published by other peers.
With the default settings, the protocol will maintain up to 5 peer connections per topic.
@@ -13,7 +13,7 @@ gossip actor throughImplementations§
source§impl Gossip
impl Gossip
sourcepub fn from_endpoint(
endpoint: Endpoint,
config: Config,
- my_addr: &AddrInfo
+ my_addr: &AddrInfo
) -> Self
pub fn from_endpoint( endpoint: Endpoint, config: Config, - my_addr: &AddrInfo + my_addr: &AddrInfo ) -> Self
Spawn a gossip actor and get a handle for it
sourcepub fn max_message_size(&self) -> usize
pub fn max_message_size(&self) -> usize
Get the maximum message size configured for this gossip actor.
sourcepub async fn handle_connection(&self, conn: Connection) -> Result<()>
pub async fn handle_connection(&self, conn: Connection) -> Result<()>
Handle an incoming [Connection].
sourcepub async fn join(
&self,
topic_id: TopicId,
- bootstrap: Vec<NodeId>
+ bootstrap: Vec<NodeId>
) -> Result<GossipTopic>
pub async fn join( &self, topic_id: TopicId, - bootstrap: Vec<NodeId> + bootstrap: Vec<NodeId> ) -> Result<GossipTopic>
Join a gossip topic with the default options and wait for at least one active connection.
sourcepub fn join_with_opts(
&self,
diff --git a/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html b/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html
index 7095f28789..bbcce9b4f0 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html
@@ -1,6 +1,6 @@
GossipReceiver in iroh_gossip::net - Rust Struct iroh_gossip::net::GossipReceiver
source · pub struct GossipReceiver { /* private fields */ }
Expand description
Receiver for gossip events on a topic.
This is a [Stream] of Events emitted from the topic.
-Implementations§
source§impl GossipReceiver
sourcepub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_
Lists our current direct neighbors.
+Implementations§
source§impl GossipReceiver
sourcepub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_
Lists our current direct neighbors.
sourcepub async fn joined(&mut self) -> Result<()>
Waits until we are connected to at least one node.
This progresses the stream until we received GossipEvent::Joined, which is the first
item emitted on the stream.
diff --git a/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html b/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html
index b3cd3ce9b1..116461efa1 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html
@@ -1,7 +1,7 @@
GossipSender in iroh_gossip::net - Rust Struct iroh_gossip::net::GossipSender
source · pub struct GossipSender(/* private fields */);
Expand description
Sender for a gossip topic.
Implementations§
source§impl GossipSender
sourcepub async fn broadcast_neighbors(&self, message: Bytes) -> Result<()>
Broadcast a message to our direct neighbors.
-sourcepub async fn join_peers(&self, peers: Vec<NodeId>) -> Result<()>
Join a set of peers.
+Trait Implementations§
Auto Trait Implementations§
§impl Freeze for GossipSender
§impl RefUnwindSafe for GossipSender
§impl Send for GossipSender
§impl Sync for GossipSender
§impl Unpin for GossipSender
§impl UnwindSafe for GossipSender
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html b/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
index 7cd50bfeb7..809a4ef917 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
@@ -1,14 +1,14 @@
JoinOptions in iroh_gossip::net - Rust Struct iroh_gossip::net::JoinOptions
source · pub struct JoinOptions {
- pub bootstrap: BTreeSet<NodeId>,
+ pub bootstrap: BTreeSet<NodeId>,
pub subscription_capacity: usize,
}
Expand description
Options for joining a gossip topic.
-Fields§
§bootstrap: BTreeSet<NodeId>The initial bootstrap nodes
+Fields§
§bootstrap: BTreeSet<NodeId>The initial bootstrap nodes
§subscription_capacity: usizeThe maximum number of messages that can be buffered in a subscription.
If this limit is reached, the subscriber will receive a Lagged response,
the message will be dropped, and the subscriber will be closed.
This is to prevent a single slow subscriber from blocking the dispatch loop.
If a subscriber is lagging, it should be closed and re-opened.
-Implementations§
source§impl JoinOptions
sourcepub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
Creates JoinOptions with the provided bootstrap nodes and the default subscription
+
Implementations§
source§impl JoinOptions
sourcepub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
Creates JoinOptions with the provided bootstrap nodes and the default subscription
capacity.
Trait Implementations§
source§impl Debug for JoinOptions
source§impl<'de> Deserialize<'de> for JoinOptions
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 Serialize for JoinOptions
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2231/docs/iroh_gossip/net/struct.Message.html b/pr/2231/docs/iroh_gossip/net/struct.Message.html
index ca0c1c33d5..f687c479d2 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.Message.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.Message.html
@@ -1,12 +1,12 @@
Message in iroh_gossip::net - Rust Struct iroh_gossip::net::Message
source · pub struct Message {
pub content: Bytes,
pub scope: DeliveryScope,
- pub delivered_from: NodeId,
+ pub delivered_from: NodeId,
}
Expand description
A gossip message
Fields§
§content: BytesThe content of the message
§scope: DeliveryScopeThe scope of the message.
This tells us if the message is from a direct neighbor or actual gossip.
-§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
+§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
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 Message
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more1.21.0 · source§fn min(self, other: Self) -> Selfwhere
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
index 590d571ec7..301d28aff1 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
@@ -1,9 +1,9 @@
-ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
+ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
Aliased Type§
enum ProtoCommand {
- Join(Vec<PublicKey>),
+ Join(Vec<PublicKey>),
Broadcast(Bytes, Scope),
Quit,
-}
Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
+}Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
If the list of peers is empty, will prepare the state and accept incoming join requests,
but only become operational after the first join request by another peer.
§Broadcast(Bytes, Scope)
Broadcast a message for this topic.
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
index 82531f5998..d42255752a 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
@@ -1,9 +1,9 @@
-ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
+ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
Aliased Type§
enum ProtoEvent {
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
- Received(GossipEvent<PublicKey>),
-}
Variants§
§NeighborUp(PublicKey)
We have a new, direct neighbor in the swarm membership layer for this topic
-§NeighborDown(PublicKey)
We dropped direct neighbor in the swarm membership layer for this topic
-§Received(GossipEvent<PublicKey>)
A gossip message was received for this topic
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
+ Received(GossipEvent<PublicKey>),
+}Variants§
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
index 07dd089029..0750fa8c38 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
@@ -2,5 +2,5 @@
reader: impl AsyncRead + Unpin,
buffer: &mut BytesMut,
max_message_size: usize
-) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
+) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
index c3ee8b490b..9c961dc01c 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
@@ -1,7 +1,7 @@
write_message in iroh_gossip::net::util - Rust Function iroh_gossip::net::util::write_message
source · pub async fn write_message<W: AsyncWrite + Unpin>(
writer: &mut W,
buffer: &mut BytesMut,
- frame: &Message<PublicKey>,
+ frame: &Message<PublicKey>,
max_message_size: usize
) -> Result<()>
Expand description
Write a ProtoMessage as a length-prefixed, postcard-encoded message.
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
index 90442a8828..b9e6243f91 100644
--- a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
+++ b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
@@ -8,7 +8,7 @@
§Received(GossipEvent<PI>)
A gossip message was received for this topic
Trait Implementations§
source§impl<'de, PI> Deserialize<'de> for Event<PI>where
PI: Deserialize<'de>,
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<Event<PublicKey>> for GossipEvent
source§impl<PI: Ord> Ord for Event<PI>
source§impl<PI: PartialEq> PartialEq for Event<PI>
source§fn eq(&self, other: &Event<PI>) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
index 25d4340e43..704137ef24 100644
--- a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
+++ b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
@@ -30,7 +30,7 @@
) -> Result<Vec<CapabilityPack>>sourcepub async fn import_caps(&self, caps: Vec<CapabilityPack>) -> Result<()>
sourcepub async fn resolve_interests(
&self,
interests: Interests
-) -> Result<InterestMap>
sourcepub async fn shutdown(&self) -> Result<()>
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
index e00006425d..f0097c48be 100644
--- a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
+++ b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
@@ -501,8 +501,6 @@
501
502
503
-504
-505
use std::{sync::Arc, thread::JoinHandle};
use anyhow::Result;
@@ -734,10 +732,8 @@
let shutdown = move || {
if let Err(err) = inbox_tx.blocking_send(Input::Shutdown { reply: None }) {
warn!(?err, "Failed to send shutdown");
- } else {
- if let Err(err) = handle.join() {
- warn!(?err, "Failed to join sync actor");
- }
+ } else if let Err(err) = handle.join() {
+ warn!(?err, "Failed to join sync actor");
}
};
diff --git a/pr/2231/docs/trait.impl/core/convert/trait.From.js b/pr/2231/docs/trait.impl/core/convert/trait.From.js
index 6dbc4ff9b8..5e9d63d16e 100644
--- a/pr/2231/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/2231/docs/trait.impl/core/convert/trait.From.js
@@ -3,7 +3,7 @@
"iroh_base":[["impl From<&[u8; 32]> for Hash"],["impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr"],["impl From<FromHexError> for HexOrBase32ParseError"],["impl From<HexOrBase32ParseError> for KeyParsingError"],["impl From<BlobFormat> for u64"],["impl From<Error> for RpcError"],["impl From<Error> for RpcError"],["impl From<Url> for RelayUrl"],["impl From<DecodeError> for HexOrBase32ParseError"],["impl From<DecodeError> for Error"],["impl From<Hash> for Hash"],["impl From<Hash> for [u8; 32]"],["impl From<PublicKey> for NodeAddr"],["impl From<RelayUrl> for Url"],["impl From<Error> for KeyParsingError"],["impl From<Error> for Error"],["impl From<Hash> for Hash"],["impl From<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for Hash"],["impl From<[u8; 32]> for SecretKey"]],
"iroh_blobs":[["impl From<&str> for Tag"],["impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext"],["impl From<BlobId> for u64"],["impl From<GetResponseError> for Error"],["impl From<GetError> for FailureAction"],["impl From<AtBlobHeaderNextError> for GetError"],["impl From<AtBlobHeaderNextError> for DecodeError"],["impl From<AtBlobHeaderNextError> for Error"],["impl From<ConnectedNextError> for GetError"],["impl From<ConnectedNextError> for Error"],["impl From<DecodeError> for GetError"],["impl From<DecodeError> for Error"],["impl From<Closed> for VarInt"],["impl From<SpawnError> for Error"],["impl From<ProgressSendError> for GetError"],["impl From<ProgressSendError> for Error"],["impl From<String> for Tag"],["impl From<Vec<u8>> for SparseMemFile"],["impl From<Error> for GetError"],["impl From<Error> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<DownloadKind> for HashAndFormat"],["impl From<AtClosing> for ConnectedNext"],["impl From<AtClosing> for EndBlobNext"],["impl From<AtEndBlob> for BlobContentNext"],["impl From<AtStartChild> for ConnectedNext"],["impl From<AtStartChild> for EndBlobNext"],["impl From<AtStartRoot> for ConnectedNext"],["impl From<HashSeq> for Bytes"],["impl From<GetRequest> for Request"],["impl From<HashAndFormat> for DownloadKind"],["impl From<Tag> for Bytes"],["impl From<Bytes> for Tag"],["impl From<ClosedStream> for GetError"],["impl From<ClosedStream> for ConnectedNextError"],["impl From<ConnectionError> for GetResponseError"],["impl From<ConnectionError> for GetError"],["impl From<DecodeError> for GetResponseError"],["impl From<DecodeError> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<ReadError> for GetResponseError"],["impl From<ReadError> for GetError"],["impl From<WriteError> for GetResponseError"],["impl From<WriteError> for GetError"],["impl From<WriteError> for ConnectedNextError"],["impl<T: CustomEventSender> From<T> for EventSender"]],
"iroh_docs":[["impl From<&Author> for AuthorPublicKey"],["impl From<&AuthorPublicKey> for AuthorId"],["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecret> for NamespacePublicKey"],["impl From<&[u8; 32]> for AuthorId"],["impl From<&[u8; 32]> for NamespaceId"],["impl From<CapabilityKind> for u8"],["impl From<ValidationFailure> for InsertError"],["impl From<Error> for OpenError"],["impl From<QueryBuilder<FlatQuery>> for Query"],["impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query"],["impl From<Author> for AuthorId"],["impl From<Author> for AuthorPublicKey"],["impl From<AuthorId> for AuthorFilter"],["impl From<AuthorId> for [u8; 32]"],["impl From<AuthorPublicKey> for AuthorId"],["impl From<NamespaceId> for Capability"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecret> for Capability"],["impl From<NamespaceSecret> for NamespaceId"],["impl From<NamespaceSecret> for NamespacePublicKey"],["impl From<ReadOnly> for InsertError"],["impl From<SignedEntry> for Entry"],["impl From<SigningKey> for Author"],["impl From<SigningKey> for NamespaceSecret"],["impl From<VerifyingKey> for AuthorPublicKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<[u8; 32]> for AuthorId"],["impl From<[u8; 32]> for NamespaceId"],["impl<T: AsRef<[u8]>> From<T> for KeyFilter"]],
-"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
+"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
"iroh_net":[["impl From<&NodeInfo> for TxtAttrs<IrohAttr>"],["impl From<&TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<&Peer> for DiscoveryItem"],["impl From<IpAddr> for IpFamily"],["impl From<IpFamily> for Domain"],["impl From<Error> for ClientError"],["impl From<Error> for PingError"],["impl From<NodeInfo> for AddrInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<RemoteInfo> for NodeAddr"],["impl From<GenError> for CreateConfigError"],["impl From<ParseError> for Error"],["impl From<VerificationError> for Error"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for GenError"],["impl From<Error> for ParseError"],["impl From<Error> for VerificationError"],["impl From<JoinError> for ClientError"],["impl From<NoInitialCipherSuite> for CreateConfigError"],["impl From<SurgeError> for PingError"],["impl From<UdpSocket> for UdpSocket"],["impl<T> From<T> for ConcurrentDiscovery"]],
"iroh_willow":[["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecretKey> for NamespacePublicKey"],["impl From<&UserPublicKey> for UserId"],["impl From<&UserSecretKey> for UserPublicKey"],["impl From<InvalidPathError> for InvalidPathError2"],["impl From<DataMessage> for Message"],["impl From<IntersectionMessage> for Message"],["impl From<ReconciliationMessage> for Message"],["impl From<EventKind> for Event"],["impl From<u64> for AreaOfInterestHandle"],["impl From<u64> for CapabilityHandle"],["impl From<u64> for IntersectionHandle"],["impl From<u64> for StaticTokenHandle"],["impl From<Box<PaiReplySubspaceCapability>> for Message"],["impl From<Error> for SecretStoreError"],["impl From<EntryForm> for EntryOrForm"],["impl From<InterestBuilder> for Interests"],["impl From<SerdeAuthorisedEntry> for AuthorisedEntry"],["impl From<SerdeEntry> for Entry"],["impl From<PayloadDigest> for Hash"],["impl From<SerdeArea> for Area"],["impl From<SerdeAreaOfInterest> for AreaOfInterest"],["impl From<SerdeRange3d> for Range3d"],["impl From<NamespaceId> for CapSelector"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecretKey> for SecretKey"],["impl From<NamespaceSecretKey> for NamespaceId"],["impl From<NamespaceSecretKey> for NamespacePublicKey"],["impl From<UserId> for AuthForm"],["impl From<UserId> for UserSelector"],["impl From<UserId> for [u8; 32]"],["impl From<UserPublicKey> for UserId"],["impl From<UserSecretKey> for SecretKey"],["impl From<UserSecretKey> for UserId"],["impl From<UserSecretKey> for UserPublicKey"],["impl From<SerdeMcCapability> for McCapability"],["impl From<SerdeMcSubspaceCapability> for McSubspaceCapability"],["impl From<SerdeReadAuthorisation> for ReadAuthorisation"],["impl From<ReadAuthorisation> for SerdeReadAuthorisation"],["impl From<AreaOfInterestHandle> for ResourceHandle"],["impl From<CapabilityHandle> for ResourceHandle"],["impl From<CommitmentReveal> for Message"],["impl From<ControlAbsolve> for Message"],["impl From<ControlAnnounceDropping> for Message"],["impl From<ControlApologise> for Message"],["impl From<ControlFreeHandle> for Message"],["impl From<ControlIssueGuarantee> for Message"],["impl From<ControlPlead> for Message"],["impl From<DataSendEntry> for DataMessage"],["impl From<DataSendEntry> for Message"],["impl From<DataSendPayload> for DataMessage"],["impl From<DataSendPayload> for Message"],["impl From<DataSetMetadata> for DataMessage"],["impl From<DataSetMetadata> for Message"],["impl From<IntersectionHandle> for ResourceHandle"],["impl From<PaiBindFragment> for IntersectionMessage"],["impl From<PaiBindFragment> for Message"],["impl From<PaiReplyFragment> for IntersectionMessage"],["impl From<PaiReplyFragment> for Message"],["impl From<PaiRequestSubspaceCapability> for Message"],["impl From<ReconciliationAnnounceEntries> for Message"],["impl From<ReconciliationAnnounceEntries> for ReconciliationMessage"],["impl From<ReconciliationSendEntry> for Message"],["impl From<ReconciliationSendEntry> for ReconciliationMessage"],["impl From<ReconciliationSendFingerprint> for Message"],["impl From<ReconciliationSendFingerprint> for ReconciliationMessage"],["impl From<ReconciliationSendPayload> for Message"],["impl From<ReconciliationSendPayload> for ReconciliationMessage"],["impl From<ReconciliationTerminatePayload> for Message"],["impl From<ReconciliationTerminatePayload> for ReconciliationMessage"],["impl From<SetupBindAreaOfInterest> for Message"],["impl From<SetupBindReadCapability> for Message"],["impl From<SetupBindStaticToken> for Message"],["impl From<StaticTokenHandle> for ResourceHandle"],["impl From<Area<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeArea"],["impl From<AreaOfInterest<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeAreaOfInterest"],["impl From<AuthorisedEntry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest, McAuthorisationToken<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>>> for SerdeAuthorisedEntry"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for EntryOrForm"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for SerdeEntry"],["impl From<Hash> for PayloadDigest"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for AuthForm"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability"],["impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability"],["impl From<Range3d<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeRange3d"],["impl From<Signature> for NamespaceSignature"],["impl From<Signature> for UserSignature"],["impl From<SigningKey> for NamespaceSecretKey"],["impl From<SigningKey> for UserSecretKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<VerifyingKey> for UserPublicKey"],["impl From<[u8; 32]> for NamespaceId"],["impl From<[u8; 32]> for UserId"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index 8902586109..d96c0fcf7e 100644
--- a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -1,6 +1,6 @@
(function() {var implementors = {
"iroh":[["impl Metric for Metrics"]],
-"iroh_blobs":[["impl Metric for Metrics"]],
+"iroh_blobs":[["impl Metric for Metrics"]],
"iroh_dns_server":[["impl Metric for Metrics"]],
"iroh_docs":[["impl Metric for Metrics"]],
"iroh_gossip":[["impl Metric for Metrics"]],
pub fn join_with_opts(
&self,
diff --git a/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html b/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html
index 7095f28789..bbcce9b4f0 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.GossipReceiver.html
@@ -1,6 +1,6 @@
GossipReceiver in iroh_gossip::net - Rust Struct iroh_gossip::net::GossipReceiver
source · pub struct GossipReceiver { /* private fields */ }
Expand description
Receiver for gossip events on a topic.
This is a [Stream] of Events emitted from the topic.
-Implementations§
source§impl GossipReceiver
sourcepub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_
Lists our current direct neighbors.
+Implementations§
source§impl GossipReceiver
sourcepub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_
Lists our current direct neighbors.
sourcepub async fn joined(&mut self) -> Result<()>
Waits until we are connected to at least one node.
This progresses the stream until we received GossipEvent::Joined, which is the first
item emitted on the stream.
diff --git a/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html b/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html
index b3cd3ce9b1..116461efa1 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.GossipSender.html
@@ -1,7 +1,7 @@
GossipSender in iroh_gossip::net - Rust Struct iroh_gossip::net::GossipSender
source · pub struct GossipSender(/* private fields */);
Expand description
Sender for a gossip topic.
Implementations§
source§impl GossipSender
sourcepub async fn broadcast_neighbors(&self, message: Bytes) -> Result<()>
Broadcast a message to our direct neighbors.
-sourcepub async fn join_peers(&self, peers: Vec<NodeId>) -> Result<()>
Join a set of peers.
+Trait Implementations§
Auto Trait Implementations§
§impl Freeze for GossipSender
§impl RefUnwindSafe for GossipSender
§impl Send for GossipSender
§impl Sync for GossipSender
§impl Unpin for GossipSender
§impl UnwindSafe for GossipSender
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html b/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
index 7cd50bfeb7..809a4ef917 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
@@ -1,14 +1,14 @@
JoinOptions in iroh_gossip::net - Rust Struct iroh_gossip::net::JoinOptions
source · pub struct JoinOptions {
- pub bootstrap: BTreeSet<NodeId>,
+ pub bootstrap: BTreeSet<NodeId>,
pub subscription_capacity: usize,
}
Expand description
Options for joining a gossip topic.
-Fields§
§bootstrap: BTreeSet<NodeId>The initial bootstrap nodes
+Fields§
§bootstrap: BTreeSet<NodeId>The initial bootstrap nodes
§subscription_capacity: usizeThe maximum number of messages that can be buffered in a subscription.
If this limit is reached, the subscriber will receive a Lagged response,
the message will be dropped, and the subscriber will be closed.
This is to prevent a single slow subscriber from blocking the dispatch loop.
If a subscriber is lagging, it should be closed and re-opened.
-Implementations§
source§impl JoinOptions
sourcepub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
Creates JoinOptions with the provided bootstrap nodes and the default subscription
+
Implementations§
source§impl JoinOptions
sourcepub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
Creates JoinOptions with the provided bootstrap nodes and the default subscription
capacity.
Trait Implementations§
source§impl Debug for JoinOptions
source§impl<'de> Deserialize<'de> for JoinOptions
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 Serialize for JoinOptions
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2231/docs/iroh_gossip/net/struct.Message.html b/pr/2231/docs/iroh_gossip/net/struct.Message.html
index ca0c1c33d5..f687c479d2 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.Message.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.Message.html
@@ -1,12 +1,12 @@
Message in iroh_gossip::net - Rust Struct iroh_gossip::net::Message
source · pub struct Message {
pub content: Bytes,
pub scope: DeliveryScope,
- pub delivered_from: NodeId,
+ pub delivered_from: NodeId,
}
Expand description
A gossip message
Fields§
§content: BytesThe content of the message
§scope: DeliveryScopeThe scope of the message.
This tells us if the message is from a direct neighbor or actual gossip.
-§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
+§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
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 Message
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more1.21.0 · source§fn min(self, other: Self) -> Selfwhere
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
index 590d571ec7..301d28aff1 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
@@ -1,9 +1,9 @@
-ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
+ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
Aliased Type§
enum ProtoCommand {
- Join(Vec<PublicKey>),
+ Join(Vec<PublicKey>),
Broadcast(Bytes, Scope),
Quit,
-}
Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
+}Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
If the list of peers is empty, will prepare the state and accept incoming join requests,
but only become operational after the first join request by another peer.
§Broadcast(Bytes, Scope)
Broadcast a message for this topic.
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
index 82531f5998..d42255752a 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
@@ -1,9 +1,9 @@
-ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
+ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
Aliased Type§
enum ProtoEvent {
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
- Received(GossipEvent<PublicKey>),
-}
Variants§
§NeighborUp(PublicKey)
We have a new, direct neighbor in the swarm membership layer for this topic
-§NeighborDown(PublicKey)
We dropped direct neighbor in the swarm membership layer for this topic
-§Received(GossipEvent<PublicKey>)
A gossip message was received for this topic
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
+ Received(GossipEvent<PublicKey>),
+}Variants§
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
index 07dd089029..0750fa8c38 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
@@ -2,5 +2,5 @@
reader: impl AsyncRead + Unpin,
buffer: &mut BytesMut,
max_message_size: usize
-) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
+) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
index c3ee8b490b..9c961dc01c 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
@@ -1,7 +1,7 @@
write_message in iroh_gossip::net::util - Rust Function iroh_gossip::net::util::write_message
source · pub async fn write_message<W: AsyncWrite + Unpin>(
writer: &mut W,
buffer: &mut BytesMut,
- frame: &Message<PublicKey>,
+ frame: &Message<PublicKey>,
max_message_size: usize
) -> Result<()>
Expand description
Write a ProtoMessage as a length-prefixed, postcard-encoded message.
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
index 90442a8828..b9e6243f91 100644
--- a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
+++ b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
@@ -8,7 +8,7 @@
§Received(GossipEvent<PI>)
A gossip message was received for this topic
Trait Implementations§
source§impl<'de, PI> Deserialize<'de> for Event<PI>where
PI: Deserialize<'de>,
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<Event<PublicKey>> for GossipEvent
source§impl<PI: Ord> Ord for Event<PI>
source§impl<PI: PartialEq> PartialEq for Event<PI>
source§fn eq(&self, other: &Event<PI>) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
index 25d4340e43..704137ef24 100644
--- a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
+++ b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
@@ -30,7 +30,7 @@
) -> Result<Vec<CapabilityPack>>sourcepub async fn import_caps(&self, caps: Vec<CapabilityPack>) -> Result<()>
sourcepub async fn resolve_interests(
&self,
interests: Interests
-) -> Result<InterestMap>
sourcepub async fn shutdown(&self) -> Result<()>
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
index e00006425d..f0097c48be 100644
--- a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
+++ b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
@@ -501,8 +501,6 @@
501
502
503
-504
-505
use std::{sync::Arc, thread::JoinHandle};
use anyhow::Result;
@@ -734,10 +732,8 @@
let shutdown = move || {
if let Err(err) = inbox_tx.blocking_send(Input::Shutdown { reply: None }) {
warn!(?err, "Failed to send shutdown");
- } else {
- if let Err(err) = handle.join() {
- warn!(?err, "Failed to join sync actor");
- }
+ } else if let Err(err) = handle.join() {
+ warn!(?err, "Failed to join sync actor");
}
};
diff --git a/pr/2231/docs/trait.impl/core/convert/trait.From.js b/pr/2231/docs/trait.impl/core/convert/trait.From.js
index 6dbc4ff9b8..5e9d63d16e 100644
--- a/pr/2231/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/2231/docs/trait.impl/core/convert/trait.From.js
@@ -3,7 +3,7 @@
"iroh_base":[["impl From<&[u8; 32]> for Hash"],["impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr"],["impl From<FromHexError> for HexOrBase32ParseError"],["impl From<HexOrBase32ParseError> for KeyParsingError"],["impl From<BlobFormat> for u64"],["impl From<Error> for RpcError"],["impl From<Error> for RpcError"],["impl From<Url> for RelayUrl"],["impl From<DecodeError> for HexOrBase32ParseError"],["impl From<DecodeError> for Error"],["impl From<Hash> for Hash"],["impl From<Hash> for [u8; 32]"],["impl From<PublicKey> for NodeAddr"],["impl From<RelayUrl> for Url"],["impl From<Error> for KeyParsingError"],["impl From<Error> for Error"],["impl From<Hash> for Hash"],["impl From<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for Hash"],["impl From<[u8; 32]> for SecretKey"]],
"iroh_blobs":[["impl From<&str> for Tag"],["impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext"],["impl From<BlobId> for u64"],["impl From<GetResponseError> for Error"],["impl From<GetError> for FailureAction"],["impl From<AtBlobHeaderNextError> for GetError"],["impl From<AtBlobHeaderNextError> for DecodeError"],["impl From<AtBlobHeaderNextError> for Error"],["impl From<ConnectedNextError> for GetError"],["impl From<ConnectedNextError> for Error"],["impl From<DecodeError> for GetError"],["impl From<DecodeError> for Error"],["impl From<Closed> for VarInt"],["impl From<SpawnError> for Error"],["impl From<ProgressSendError> for GetError"],["impl From<ProgressSendError> for Error"],["impl From<String> for Tag"],["impl From<Vec<u8>> for SparseMemFile"],["impl From<Error> for GetError"],["impl From<Error> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<DownloadKind> for HashAndFormat"],["impl From<AtClosing> for ConnectedNext"],["impl From<AtClosing> for EndBlobNext"],["impl From<AtEndBlob> for BlobContentNext"],["impl From<AtStartChild> for ConnectedNext"],["impl From<AtStartChild> for EndBlobNext"],["impl From<AtStartRoot> for ConnectedNext"],["impl From<HashSeq> for Bytes"],["impl From<GetRequest> for Request"],["impl From<HashAndFormat> for DownloadKind"],["impl From<Tag> for Bytes"],["impl From<Bytes> for Tag"],["impl From<ClosedStream> for GetError"],["impl From<ClosedStream> for ConnectedNextError"],["impl From<ConnectionError> for GetResponseError"],["impl From<ConnectionError> for GetError"],["impl From<DecodeError> for GetResponseError"],["impl From<DecodeError> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<ReadError> for GetResponseError"],["impl From<ReadError> for GetError"],["impl From<WriteError> for GetResponseError"],["impl From<WriteError> for GetError"],["impl From<WriteError> for ConnectedNextError"],["impl<T: CustomEventSender> From<T> for EventSender"]],
"iroh_docs":[["impl From<&Author> for AuthorPublicKey"],["impl From<&AuthorPublicKey> for AuthorId"],["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecret> for NamespacePublicKey"],["impl From<&[u8; 32]> for AuthorId"],["impl From<&[u8; 32]> for NamespaceId"],["impl From<CapabilityKind> for u8"],["impl From<ValidationFailure> for InsertError"],["impl From<Error> for OpenError"],["impl From<QueryBuilder<FlatQuery>> for Query"],["impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query"],["impl From<Author> for AuthorId"],["impl From<Author> for AuthorPublicKey"],["impl From<AuthorId> for AuthorFilter"],["impl From<AuthorId> for [u8; 32]"],["impl From<AuthorPublicKey> for AuthorId"],["impl From<NamespaceId> for Capability"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecret> for Capability"],["impl From<NamespaceSecret> for NamespaceId"],["impl From<NamespaceSecret> for NamespacePublicKey"],["impl From<ReadOnly> for InsertError"],["impl From<SignedEntry> for Entry"],["impl From<SigningKey> for Author"],["impl From<SigningKey> for NamespaceSecret"],["impl From<VerifyingKey> for AuthorPublicKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<[u8; 32]> for AuthorId"],["impl From<[u8; 32]> for NamespaceId"],["impl<T: AsRef<[u8]>> From<T> for KeyFilter"]],
-"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
+"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
"iroh_net":[["impl From<&NodeInfo> for TxtAttrs<IrohAttr>"],["impl From<&TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<&Peer> for DiscoveryItem"],["impl From<IpAddr> for IpFamily"],["impl From<IpFamily> for Domain"],["impl From<Error> for ClientError"],["impl From<Error> for PingError"],["impl From<NodeInfo> for AddrInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<RemoteInfo> for NodeAddr"],["impl From<GenError> for CreateConfigError"],["impl From<ParseError> for Error"],["impl From<VerificationError> for Error"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for GenError"],["impl From<Error> for ParseError"],["impl From<Error> for VerificationError"],["impl From<JoinError> for ClientError"],["impl From<NoInitialCipherSuite> for CreateConfigError"],["impl From<SurgeError> for PingError"],["impl From<UdpSocket> for UdpSocket"],["impl<T> From<T> for ConcurrentDiscovery"]],
"iroh_willow":[["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecretKey> for NamespacePublicKey"],["impl From<&UserPublicKey> for UserId"],["impl From<&UserSecretKey> for UserPublicKey"],["impl From<InvalidPathError> for InvalidPathError2"],["impl From<DataMessage> for Message"],["impl From<IntersectionMessage> for Message"],["impl From<ReconciliationMessage> for Message"],["impl From<EventKind> for Event"],["impl From<u64> for AreaOfInterestHandle"],["impl From<u64> for CapabilityHandle"],["impl From<u64> for IntersectionHandle"],["impl From<u64> for StaticTokenHandle"],["impl From<Box<PaiReplySubspaceCapability>> for Message"],["impl From<Error> for SecretStoreError"],["impl From<EntryForm> for EntryOrForm"],["impl From<InterestBuilder> for Interests"],["impl From<SerdeAuthorisedEntry> for AuthorisedEntry"],["impl From<SerdeEntry> for Entry"],["impl From<PayloadDigest> for Hash"],["impl From<SerdeArea> for Area"],["impl From<SerdeAreaOfInterest> for AreaOfInterest"],["impl From<SerdeRange3d> for Range3d"],["impl From<NamespaceId> for CapSelector"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecretKey> for SecretKey"],["impl From<NamespaceSecretKey> for NamespaceId"],["impl From<NamespaceSecretKey> for NamespacePublicKey"],["impl From<UserId> for AuthForm"],["impl From<UserId> for UserSelector"],["impl From<UserId> for [u8; 32]"],["impl From<UserPublicKey> for UserId"],["impl From<UserSecretKey> for SecretKey"],["impl From<UserSecretKey> for UserId"],["impl From<UserSecretKey> for UserPublicKey"],["impl From<SerdeMcCapability> for McCapability"],["impl From<SerdeMcSubspaceCapability> for McSubspaceCapability"],["impl From<SerdeReadAuthorisation> for ReadAuthorisation"],["impl From<ReadAuthorisation> for SerdeReadAuthorisation"],["impl From<AreaOfInterestHandle> for ResourceHandle"],["impl From<CapabilityHandle> for ResourceHandle"],["impl From<CommitmentReveal> for Message"],["impl From<ControlAbsolve> for Message"],["impl From<ControlAnnounceDropping> for Message"],["impl From<ControlApologise> for Message"],["impl From<ControlFreeHandle> for Message"],["impl From<ControlIssueGuarantee> for Message"],["impl From<ControlPlead> for Message"],["impl From<DataSendEntry> for DataMessage"],["impl From<DataSendEntry> for Message"],["impl From<DataSendPayload> for DataMessage"],["impl From<DataSendPayload> for Message"],["impl From<DataSetMetadata> for DataMessage"],["impl From<DataSetMetadata> for Message"],["impl From<IntersectionHandle> for ResourceHandle"],["impl From<PaiBindFragment> for IntersectionMessage"],["impl From<PaiBindFragment> for Message"],["impl From<PaiReplyFragment> for IntersectionMessage"],["impl From<PaiReplyFragment> for Message"],["impl From<PaiRequestSubspaceCapability> for Message"],["impl From<ReconciliationAnnounceEntries> for Message"],["impl From<ReconciliationAnnounceEntries> for ReconciliationMessage"],["impl From<ReconciliationSendEntry> for Message"],["impl From<ReconciliationSendEntry> for ReconciliationMessage"],["impl From<ReconciliationSendFingerprint> for Message"],["impl From<ReconciliationSendFingerprint> for ReconciliationMessage"],["impl From<ReconciliationSendPayload> for Message"],["impl From<ReconciliationSendPayload> for ReconciliationMessage"],["impl From<ReconciliationTerminatePayload> for Message"],["impl From<ReconciliationTerminatePayload> for ReconciliationMessage"],["impl From<SetupBindAreaOfInterest> for Message"],["impl From<SetupBindReadCapability> for Message"],["impl From<SetupBindStaticToken> for Message"],["impl From<StaticTokenHandle> for ResourceHandle"],["impl From<Area<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeArea"],["impl From<AreaOfInterest<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeAreaOfInterest"],["impl From<AuthorisedEntry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest, McAuthorisationToken<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>>> for SerdeAuthorisedEntry"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for EntryOrForm"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for SerdeEntry"],["impl From<Hash> for PayloadDigest"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for AuthForm"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability"],["impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability"],["impl From<Range3d<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeRange3d"],["impl From<Signature> for NamespaceSignature"],["impl From<Signature> for UserSignature"],["impl From<SigningKey> for NamespaceSecretKey"],["impl From<SigningKey> for UserSecretKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<VerifyingKey> for UserPublicKey"],["impl From<[u8; 32]> for NamespaceId"],["impl From<[u8; 32]> for UserId"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index 8902586109..d96c0fcf7e 100644
--- a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -1,6 +1,6 @@
(function() {var implementors = {
"iroh":[["impl Metric for Metrics"]],
-"iroh_blobs":[["impl Metric for Metrics"]],
+"iroh_blobs":[["impl Metric for Metrics"]],
"iroh_dns_server":[["impl Metric for Metrics"]],
"iroh_docs":[["impl Metric for Metrics"]],
"iroh_gossip":[["impl Metric for Metrics"]],
Struct iroh_gossip::net::GossipReceiver
source · pub struct GossipReceiver { /* private fields */ }Expand description
Receiver for gossip events on a topic.
This is a [Stream] of Events emitted from the topic.
Implementations§
source§impl GossipReceiver
impl GossipReceiver
sourcepub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_
pub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_
Lists our current direct neighbors.
+Implementations§
source§impl GossipReceiver
impl GossipReceiver
sourcepub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_
pub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_
Lists our current direct neighbors.
sourcepub async fn joined(&mut self) -> Result<()>
pub async fn joined(&mut self) -> Result<()>
Waits until we are connected to at least one node.
This progresses the stream until we received GossipEvent::Joined, which is the first
item emitted on the stream.
Struct iroh_gossip::net::GossipSender
source · pub struct GossipSender(/* private fields */);Expand description
Sender for a gossip topic.
Implementations§
source§impl GossipSender
impl GossipSender
sourcepub async fn broadcast_neighbors(&self, message: Bytes) -> Result<()>
pub async fn broadcast_neighbors(&self, message: Bytes) -> Result<()>
Broadcast a message to our direct neighbors.
-sourcepub async fn join_peers(&self, peers: Vec<NodeId>) -> Result<()>
pub async fn join_peers(&self, peers: Vec<NodeId>) -> Result<()>
Join a set of peers.
+Trait Implementations§
Auto Trait Implementations§
impl Freeze for GossipSender
impl RefUnwindSafe for GossipSender
impl Send for GossipSender
impl Sync for GossipSender
impl Unpin for GossipSender
impl UnwindSafe for GossipSender
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/2231/docs/iroh_gossip/net/struct.JoinOptions.html b/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
index 7cd50bfeb7..809a4ef917 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
@@ -1,14 +1,14 @@
JoinOptions in iroh_gossip::net - Rust Struct iroh_gossip::net::JoinOptions
source · pub struct JoinOptions {
- pub bootstrap: BTreeSet<NodeId>,
+ pub bootstrap: BTreeSet<NodeId>,
pub subscription_capacity: usize,
}
Expand description
Options for joining a gossip topic.
-Fields§
§bootstrap: BTreeSet<NodeId>The initial bootstrap nodes
+Fields§
§bootstrap: BTreeSet<NodeId>The initial bootstrap nodes
§subscription_capacity: usizeThe maximum number of messages that can be buffered in a subscription.
If this limit is reached, the subscriber will receive a Lagged response,
the message will be dropped, and the subscriber will be closed.
This is to prevent a single slow subscriber from blocking the dispatch loop.
If a subscriber is lagging, it should be closed and re-opened.
-Implementations§
source§impl JoinOptions
sourcepub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
Creates JoinOptions with the provided bootstrap nodes and the default subscription
+
Implementations§
source§impl JoinOptions
sourcepub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
Creates JoinOptions with the provided bootstrap nodes and the default subscription
capacity.
Trait Implementations§
source§impl Debug for JoinOptions
source§impl<'de> Deserialize<'de> for JoinOptions
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 Serialize for JoinOptions
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2231/docs/iroh_gossip/net/struct.Message.html b/pr/2231/docs/iroh_gossip/net/struct.Message.html
index ca0c1c33d5..f687c479d2 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.Message.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.Message.html
@@ -1,12 +1,12 @@
Message in iroh_gossip::net - Rust Struct iroh_gossip::net::Message
source · pub struct Message {
pub content: Bytes,
pub scope: DeliveryScope,
- pub delivered_from: NodeId,
+ pub delivered_from: NodeId,
}
Expand description
A gossip message
Fields§
§content: BytesThe content of the message
§scope: DeliveryScopeThe scope of the message.
This tells us if the message is from a direct neighbor or actual gossip.
-§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
+§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
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 Message
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more1.21.0 · source§fn min(self, other: Self) -> Selfwhere
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
index 590d571ec7..301d28aff1 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
@@ -1,9 +1,9 @@
-ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
+ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
Aliased Type§
enum ProtoCommand {
- Join(Vec<PublicKey>),
+ Join(Vec<PublicKey>),
Broadcast(Bytes, Scope),
Quit,
-}
Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
+}Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
If the list of peers is empty, will prepare the state and accept incoming join requests,
but only become operational after the first join request by another peer.
§Broadcast(Bytes, Scope)
Broadcast a message for this topic.
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
index 82531f5998..d42255752a 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
@@ -1,9 +1,9 @@
-ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
+ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
Aliased Type§
enum ProtoEvent {
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
- Received(GossipEvent<PublicKey>),
-}
Variants§
§NeighborUp(PublicKey)
We have a new, direct neighbor in the swarm membership layer for this topic
-§NeighborDown(PublicKey)
We dropped direct neighbor in the swarm membership layer for this topic
-§Received(GossipEvent<PublicKey>)
A gossip message was received for this topic
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
+ Received(GossipEvent<PublicKey>),
+}Variants§
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
index 07dd089029..0750fa8c38 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
@@ -2,5 +2,5 @@
reader: impl AsyncRead + Unpin,
buffer: &mut BytesMut,
max_message_size: usize
-) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
+) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
index c3ee8b490b..9c961dc01c 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
@@ -1,7 +1,7 @@
write_message in iroh_gossip::net::util - Rust Function iroh_gossip::net::util::write_message
source · pub async fn write_message<W: AsyncWrite + Unpin>(
writer: &mut W,
buffer: &mut BytesMut,
- frame: &Message<PublicKey>,
+ frame: &Message<PublicKey>,
max_message_size: usize
) -> Result<()>
Expand description
Write a ProtoMessage as a length-prefixed, postcard-encoded message.
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
index 90442a8828..b9e6243f91 100644
--- a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
+++ b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
@@ -8,7 +8,7 @@
§Received(GossipEvent<PI>)
A gossip message was received for this topic
Trait Implementations§
source§impl<'de, PI> Deserialize<'de> for Event<PI>where
PI: Deserialize<'de>,
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<Event<PublicKey>> for GossipEvent
source§impl<PI: Ord> Ord for Event<PI>
source§impl<PI: PartialEq> PartialEq for Event<PI>
source§fn eq(&self, other: &Event<PI>) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
index 25d4340e43..704137ef24 100644
--- a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
+++ b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
@@ -30,7 +30,7 @@
) -> Result<Vec<CapabilityPack>>sourcepub async fn import_caps(&self, caps: Vec<CapabilityPack>) -> Result<()>
sourcepub async fn resolve_interests(
&self,
interests: Interests
-) -> Result<InterestMap>
sourcepub async fn shutdown(&self) -> Result<()>
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
index e00006425d..f0097c48be 100644
--- a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
+++ b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
@@ -501,8 +501,6 @@
501
502
503
-504
-505
use std::{sync::Arc, thread::JoinHandle};
use anyhow::Result;
@@ -734,10 +732,8 @@
let shutdown = move || {
if let Err(err) = inbox_tx.blocking_send(Input::Shutdown { reply: None }) {
warn!(?err, "Failed to send shutdown");
- } else {
- if let Err(err) = handle.join() {
- warn!(?err, "Failed to join sync actor");
- }
+ } else if let Err(err) = handle.join() {
+ warn!(?err, "Failed to join sync actor");
}
};
diff --git a/pr/2231/docs/trait.impl/core/convert/trait.From.js b/pr/2231/docs/trait.impl/core/convert/trait.From.js
index 6dbc4ff9b8..5e9d63d16e 100644
--- a/pr/2231/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/2231/docs/trait.impl/core/convert/trait.From.js
@@ -3,7 +3,7 @@
"iroh_base":[["impl From<&[u8; 32]> for Hash"],["impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr"],["impl From<FromHexError> for HexOrBase32ParseError"],["impl From<HexOrBase32ParseError> for KeyParsingError"],["impl From<BlobFormat> for u64"],["impl From<Error> for RpcError"],["impl From<Error> for RpcError"],["impl From<Url> for RelayUrl"],["impl From<DecodeError> for HexOrBase32ParseError"],["impl From<DecodeError> for Error"],["impl From<Hash> for Hash"],["impl From<Hash> for [u8; 32]"],["impl From<PublicKey> for NodeAddr"],["impl From<RelayUrl> for Url"],["impl From<Error> for KeyParsingError"],["impl From<Error> for Error"],["impl From<Hash> for Hash"],["impl From<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for Hash"],["impl From<[u8; 32]> for SecretKey"]],
"iroh_blobs":[["impl From<&str> for Tag"],["impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext"],["impl From<BlobId> for u64"],["impl From<GetResponseError> for Error"],["impl From<GetError> for FailureAction"],["impl From<AtBlobHeaderNextError> for GetError"],["impl From<AtBlobHeaderNextError> for DecodeError"],["impl From<AtBlobHeaderNextError> for Error"],["impl From<ConnectedNextError> for GetError"],["impl From<ConnectedNextError> for Error"],["impl From<DecodeError> for GetError"],["impl From<DecodeError> for Error"],["impl From<Closed> for VarInt"],["impl From<SpawnError> for Error"],["impl From<ProgressSendError> for GetError"],["impl From<ProgressSendError> for Error"],["impl From<String> for Tag"],["impl From<Vec<u8>> for SparseMemFile"],["impl From<Error> for GetError"],["impl From<Error> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<DownloadKind> for HashAndFormat"],["impl From<AtClosing> for ConnectedNext"],["impl From<AtClosing> for EndBlobNext"],["impl From<AtEndBlob> for BlobContentNext"],["impl From<AtStartChild> for ConnectedNext"],["impl From<AtStartChild> for EndBlobNext"],["impl From<AtStartRoot> for ConnectedNext"],["impl From<HashSeq> for Bytes"],["impl From<GetRequest> for Request"],["impl From<HashAndFormat> for DownloadKind"],["impl From<Tag> for Bytes"],["impl From<Bytes> for Tag"],["impl From<ClosedStream> for GetError"],["impl From<ClosedStream> for ConnectedNextError"],["impl From<ConnectionError> for GetResponseError"],["impl From<ConnectionError> for GetError"],["impl From<DecodeError> for GetResponseError"],["impl From<DecodeError> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<ReadError> for GetResponseError"],["impl From<ReadError> for GetError"],["impl From<WriteError> for GetResponseError"],["impl From<WriteError> for GetError"],["impl From<WriteError> for ConnectedNextError"],["impl<T: CustomEventSender> From<T> for EventSender"]],
"iroh_docs":[["impl From<&Author> for AuthorPublicKey"],["impl From<&AuthorPublicKey> for AuthorId"],["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecret> for NamespacePublicKey"],["impl From<&[u8; 32]> for AuthorId"],["impl From<&[u8; 32]> for NamespaceId"],["impl From<CapabilityKind> for u8"],["impl From<ValidationFailure> for InsertError"],["impl From<Error> for OpenError"],["impl From<QueryBuilder<FlatQuery>> for Query"],["impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query"],["impl From<Author> for AuthorId"],["impl From<Author> for AuthorPublicKey"],["impl From<AuthorId> for AuthorFilter"],["impl From<AuthorId> for [u8; 32]"],["impl From<AuthorPublicKey> for AuthorId"],["impl From<NamespaceId> for Capability"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecret> for Capability"],["impl From<NamespaceSecret> for NamespaceId"],["impl From<NamespaceSecret> for NamespacePublicKey"],["impl From<ReadOnly> for InsertError"],["impl From<SignedEntry> for Entry"],["impl From<SigningKey> for Author"],["impl From<SigningKey> for NamespaceSecret"],["impl From<VerifyingKey> for AuthorPublicKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<[u8; 32]> for AuthorId"],["impl From<[u8; 32]> for NamespaceId"],["impl<T: AsRef<[u8]>> From<T> for KeyFilter"]],
-"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
+"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
"iroh_net":[["impl From<&NodeInfo> for TxtAttrs<IrohAttr>"],["impl From<&TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<&Peer> for DiscoveryItem"],["impl From<IpAddr> for IpFamily"],["impl From<IpFamily> for Domain"],["impl From<Error> for ClientError"],["impl From<Error> for PingError"],["impl From<NodeInfo> for AddrInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<RemoteInfo> for NodeAddr"],["impl From<GenError> for CreateConfigError"],["impl From<ParseError> for Error"],["impl From<VerificationError> for Error"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for GenError"],["impl From<Error> for ParseError"],["impl From<Error> for VerificationError"],["impl From<JoinError> for ClientError"],["impl From<NoInitialCipherSuite> for CreateConfigError"],["impl From<SurgeError> for PingError"],["impl From<UdpSocket> for UdpSocket"],["impl<T> From<T> for ConcurrentDiscovery"]],
"iroh_willow":[["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecretKey> for NamespacePublicKey"],["impl From<&UserPublicKey> for UserId"],["impl From<&UserSecretKey> for UserPublicKey"],["impl From<InvalidPathError> for InvalidPathError2"],["impl From<DataMessage> for Message"],["impl From<IntersectionMessage> for Message"],["impl From<ReconciliationMessage> for Message"],["impl From<EventKind> for Event"],["impl From<u64> for AreaOfInterestHandle"],["impl From<u64> for CapabilityHandle"],["impl From<u64> for IntersectionHandle"],["impl From<u64> for StaticTokenHandle"],["impl From<Box<PaiReplySubspaceCapability>> for Message"],["impl From<Error> for SecretStoreError"],["impl From<EntryForm> for EntryOrForm"],["impl From<InterestBuilder> for Interests"],["impl From<SerdeAuthorisedEntry> for AuthorisedEntry"],["impl From<SerdeEntry> for Entry"],["impl From<PayloadDigest> for Hash"],["impl From<SerdeArea> for Area"],["impl From<SerdeAreaOfInterest> for AreaOfInterest"],["impl From<SerdeRange3d> for Range3d"],["impl From<NamespaceId> for CapSelector"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecretKey> for SecretKey"],["impl From<NamespaceSecretKey> for NamespaceId"],["impl From<NamespaceSecretKey> for NamespacePublicKey"],["impl From<UserId> for AuthForm"],["impl From<UserId> for UserSelector"],["impl From<UserId> for [u8; 32]"],["impl From<UserPublicKey> for UserId"],["impl From<UserSecretKey> for SecretKey"],["impl From<UserSecretKey> for UserId"],["impl From<UserSecretKey> for UserPublicKey"],["impl From<SerdeMcCapability> for McCapability"],["impl From<SerdeMcSubspaceCapability> for McSubspaceCapability"],["impl From<SerdeReadAuthorisation> for ReadAuthorisation"],["impl From<ReadAuthorisation> for SerdeReadAuthorisation"],["impl From<AreaOfInterestHandle> for ResourceHandle"],["impl From<CapabilityHandle> for ResourceHandle"],["impl From<CommitmentReveal> for Message"],["impl From<ControlAbsolve> for Message"],["impl From<ControlAnnounceDropping> for Message"],["impl From<ControlApologise> for Message"],["impl From<ControlFreeHandle> for Message"],["impl From<ControlIssueGuarantee> for Message"],["impl From<ControlPlead> for Message"],["impl From<DataSendEntry> for DataMessage"],["impl From<DataSendEntry> for Message"],["impl From<DataSendPayload> for DataMessage"],["impl From<DataSendPayload> for Message"],["impl From<DataSetMetadata> for DataMessage"],["impl From<DataSetMetadata> for Message"],["impl From<IntersectionHandle> for ResourceHandle"],["impl From<PaiBindFragment> for IntersectionMessage"],["impl From<PaiBindFragment> for Message"],["impl From<PaiReplyFragment> for IntersectionMessage"],["impl From<PaiReplyFragment> for Message"],["impl From<PaiRequestSubspaceCapability> for Message"],["impl From<ReconciliationAnnounceEntries> for Message"],["impl From<ReconciliationAnnounceEntries> for ReconciliationMessage"],["impl From<ReconciliationSendEntry> for Message"],["impl From<ReconciliationSendEntry> for ReconciliationMessage"],["impl From<ReconciliationSendFingerprint> for Message"],["impl From<ReconciliationSendFingerprint> for ReconciliationMessage"],["impl From<ReconciliationSendPayload> for Message"],["impl From<ReconciliationSendPayload> for ReconciliationMessage"],["impl From<ReconciliationTerminatePayload> for Message"],["impl From<ReconciliationTerminatePayload> for ReconciliationMessage"],["impl From<SetupBindAreaOfInterest> for Message"],["impl From<SetupBindReadCapability> for Message"],["impl From<SetupBindStaticToken> for Message"],["impl From<StaticTokenHandle> for ResourceHandle"],["impl From<Area<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeArea"],["impl From<AreaOfInterest<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeAreaOfInterest"],["impl From<AuthorisedEntry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest, McAuthorisationToken<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>>> for SerdeAuthorisedEntry"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for EntryOrForm"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for SerdeEntry"],["impl From<Hash> for PayloadDigest"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for AuthForm"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability"],["impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability"],["impl From<Range3d<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeRange3d"],["impl From<Signature> for NamespaceSignature"],["impl From<Signature> for UserSignature"],["impl From<SigningKey> for NamespaceSecretKey"],["impl From<SigningKey> for UserSecretKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<VerifyingKey> for UserPublicKey"],["impl From<[u8; 32]> for NamespaceId"],["impl From<[u8; 32]> for UserId"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index 8902586109..d96c0fcf7e 100644
--- a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -1,6 +1,6 @@
(function() {var implementors = {
"iroh":[["impl Metric for Metrics"]],
-"iroh_blobs":[["impl Metric for Metrics"]],
+"iroh_blobs":[["impl Metric for Metrics"]],
"iroh_dns_server":[["impl Metric for Metrics"]],
"iroh_docs":[["impl Metric for Metrics"]],
"iroh_gossip":[["impl Metric for Metrics"]],
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html b/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
index 7cd50bfeb7..809a4ef917 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.JoinOptions.html
@@ -1,14 +1,14 @@
JoinOptions in iroh_gossip::net - Rust Struct iroh_gossip::net::JoinOptions
source · pub struct JoinOptions {
- pub bootstrap: BTreeSet<NodeId>,
+ pub bootstrap: BTreeSet<NodeId>,
pub subscription_capacity: usize,
}
Expand description
Options for joining a gossip topic.
-Fields§
§bootstrap: BTreeSet<NodeId>The initial bootstrap nodes
+Fields§
§bootstrap: BTreeSet<NodeId>The initial bootstrap nodes
§subscription_capacity: usizeThe maximum number of messages that can be buffered in a subscription.
If this limit is reached, the subscriber will receive a Lagged response,
the message will be dropped, and the subscriber will be closed.
This is to prevent a single slow subscriber from blocking the dispatch loop.
If a subscriber is lagging, it should be closed and re-opened.
-Implementations§
source§impl JoinOptions
sourcepub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
Creates JoinOptions with the provided bootstrap nodes and the default subscription
+
Implementations§
source§impl JoinOptions
sourcepub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
Creates JoinOptions with the provided bootstrap nodes and the default subscription
capacity.
Trait Implementations§
source§impl Debug for JoinOptions
source§impl<'de> Deserialize<'de> for JoinOptions
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 Serialize for JoinOptions
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2231/docs/iroh_gossip/net/struct.Message.html b/pr/2231/docs/iroh_gossip/net/struct.Message.html
index ca0c1c33d5..f687c479d2 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.Message.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.Message.html
@@ -1,12 +1,12 @@
Message in iroh_gossip::net - Rust Struct iroh_gossip::net::Message
source · pub struct Message {
pub content: Bytes,
pub scope: DeliveryScope,
- pub delivered_from: NodeId,
+ pub delivered_from: NodeId,
}
Expand description
A gossip message
Fields§
§content: BytesThe content of the message
§scope: DeliveryScopeThe scope of the message.
This tells us if the message is from a direct neighbor or actual gossip.
-§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
+§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
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 Message
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more1.21.0 · source§fn min(self, other: Self) -> Selfwhere
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
index 590d571ec7..301d28aff1 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
@@ -1,9 +1,9 @@
-ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
+ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
Aliased Type§
enum ProtoCommand {
- Join(Vec<PublicKey>),
+ Join(Vec<PublicKey>),
Broadcast(Bytes, Scope),
Quit,
-}
Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
+}Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
If the list of peers is empty, will prepare the state and accept incoming join requests,
but only become operational after the first join request by another peer.
§Broadcast(Bytes, Scope)
Broadcast a message for this topic.
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
index 82531f5998..d42255752a 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
@@ -1,9 +1,9 @@
-ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
+ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
Aliased Type§
enum ProtoEvent {
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
- Received(GossipEvent<PublicKey>),
-}
Variants§
§NeighborUp(PublicKey)
We have a new, direct neighbor in the swarm membership layer for this topic
-§NeighborDown(PublicKey)
We dropped direct neighbor in the swarm membership layer for this topic
-§Received(GossipEvent<PublicKey>)
A gossip message was received for this topic
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
+ Received(GossipEvent<PublicKey>),
+}Variants§
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
index 07dd089029..0750fa8c38 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
@@ -2,5 +2,5 @@
reader: impl AsyncRead + Unpin,
buffer: &mut BytesMut,
max_message_size: usize
-) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
+) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
index c3ee8b490b..9c961dc01c 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
@@ -1,7 +1,7 @@
write_message in iroh_gossip::net::util - Rust Function iroh_gossip::net::util::write_message
source · pub async fn write_message<W: AsyncWrite + Unpin>(
writer: &mut W,
buffer: &mut BytesMut,
- frame: &Message<PublicKey>,
+ frame: &Message<PublicKey>,
max_message_size: usize
) -> Result<()>
Expand description
Write a ProtoMessage as a length-prefixed, postcard-encoded message.
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
index 90442a8828..b9e6243f91 100644
--- a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
+++ b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
@@ -8,7 +8,7 @@
§Received(GossipEvent<PI>)
A gossip message was received for this topic
Trait Implementations§
source§impl<'de, PI> Deserialize<'de> for Event<PI>where
PI: Deserialize<'de>,
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<Event<PublicKey>> for GossipEvent
source§impl<PI: Ord> Ord for Event<PI>
source§impl<PI: PartialEq> PartialEq for Event<PI>
source§fn eq(&self, other: &Event<PI>) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
index 25d4340e43..704137ef24 100644
--- a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
+++ b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
@@ -30,7 +30,7 @@
) -> Result<Vec<CapabilityPack>>sourcepub async fn import_caps(&self, caps: Vec<CapabilityPack>) -> Result<()>
sourcepub async fn resolve_interests(
&self,
interests: Interests
-) -> Result<InterestMap>
sourcepub async fn shutdown(&self) -> Result<()>
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
index e00006425d..f0097c48be 100644
--- a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
+++ b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
@@ -501,8 +501,6 @@
501
502
503
-504
-505
use std::{sync::Arc, thread::JoinHandle};
use anyhow::Result;
@@ -734,10 +732,8 @@
let shutdown = move || {
if let Err(err) = inbox_tx.blocking_send(Input::Shutdown { reply: None }) {
warn!(?err, "Failed to send shutdown");
- } else {
- if let Err(err) = handle.join() {
- warn!(?err, "Failed to join sync actor");
- }
+ } else if let Err(err) = handle.join() {
+ warn!(?err, "Failed to join sync actor");
}
};
diff --git a/pr/2231/docs/trait.impl/core/convert/trait.From.js b/pr/2231/docs/trait.impl/core/convert/trait.From.js
index 6dbc4ff9b8..5e9d63d16e 100644
--- a/pr/2231/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/2231/docs/trait.impl/core/convert/trait.From.js
@@ -3,7 +3,7 @@
"iroh_base":[["impl From<&[u8; 32]> for Hash"],["impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr"],["impl From<FromHexError> for HexOrBase32ParseError"],["impl From<HexOrBase32ParseError> for KeyParsingError"],["impl From<BlobFormat> for u64"],["impl From<Error> for RpcError"],["impl From<Error> for RpcError"],["impl From<Url> for RelayUrl"],["impl From<DecodeError> for HexOrBase32ParseError"],["impl From<DecodeError> for Error"],["impl From<Hash> for Hash"],["impl From<Hash> for [u8; 32]"],["impl From<PublicKey> for NodeAddr"],["impl From<RelayUrl> for Url"],["impl From<Error> for KeyParsingError"],["impl From<Error> for Error"],["impl From<Hash> for Hash"],["impl From<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for Hash"],["impl From<[u8; 32]> for SecretKey"]],
"iroh_blobs":[["impl From<&str> for Tag"],["impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext"],["impl From<BlobId> for u64"],["impl From<GetResponseError> for Error"],["impl From<GetError> for FailureAction"],["impl From<AtBlobHeaderNextError> for GetError"],["impl From<AtBlobHeaderNextError> for DecodeError"],["impl From<AtBlobHeaderNextError> for Error"],["impl From<ConnectedNextError> for GetError"],["impl From<ConnectedNextError> for Error"],["impl From<DecodeError> for GetError"],["impl From<DecodeError> for Error"],["impl From<Closed> for VarInt"],["impl From<SpawnError> for Error"],["impl From<ProgressSendError> for GetError"],["impl From<ProgressSendError> for Error"],["impl From<String> for Tag"],["impl From<Vec<u8>> for SparseMemFile"],["impl From<Error> for GetError"],["impl From<Error> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<DownloadKind> for HashAndFormat"],["impl From<AtClosing> for ConnectedNext"],["impl From<AtClosing> for EndBlobNext"],["impl From<AtEndBlob> for BlobContentNext"],["impl From<AtStartChild> for ConnectedNext"],["impl From<AtStartChild> for EndBlobNext"],["impl From<AtStartRoot> for ConnectedNext"],["impl From<HashSeq> for Bytes"],["impl From<GetRequest> for Request"],["impl From<HashAndFormat> for DownloadKind"],["impl From<Tag> for Bytes"],["impl From<Bytes> for Tag"],["impl From<ClosedStream> for GetError"],["impl From<ClosedStream> for ConnectedNextError"],["impl From<ConnectionError> for GetResponseError"],["impl From<ConnectionError> for GetError"],["impl From<DecodeError> for GetResponseError"],["impl From<DecodeError> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<ReadError> for GetResponseError"],["impl From<ReadError> for GetError"],["impl From<WriteError> for GetResponseError"],["impl From<WriteError> for GetError"],["impl From<WriteError> for ConnectedNextError"],["impl<T: CustomEventSender> From<T> for EventSender"]],
"iroh_docs":[["impl From<&Author> for AuthorPublicKey"],["impl From<&AuthorPublicKey> for AuthorId"],["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecret> for NamespacePublicKey"],["impl From<&[u8; 32]> for AuthorId"],["impl From<&[u8; 32]> for NamespaceId"],["impl From<CapabilityKind> for u8"],["impl From<ValidationFailure> for InsertError"],["impl From<Error> for OpenError"],["impl From<QueryBuilder<FlatQuery>> for Query"],["impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query"],["impl From<Author> for AuthorId"],["impl From<Author> for AuthorPublicKey"],["impl From<AuthorId> for AuthorFilter"],["impl From<AuthorId> for [u8; 32]"],["impl From<AuthorPublicKey> for AuthorId"],["impl From<NamespaceId> for Capability"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecret> for Capability"],["impl From<NamespaceSecret> for NamespaceId"],["impl From<NamespaceSecret> for NamespacePublicKey"],["impl From<ReadOnly> for InsertError"],["impl From<SignedEntry> for Entry"],["impl From<SigningKey> for Author"],["impl From<SigningKey> for NamespaceSecret"],["impl From<VerifyingKey> for AuthorPublicKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<[u8; 32]> for AuthorId"],["impl From<[u8; 32]> for NamespaceId"],["impl<T: AsRef<[u8]>> From<T> for KeyFilter"]],
-"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
+"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
"iroh_net":[["impl From<&NodeInfo> for TxtAttrs<IrohAttr>"],["impl From<&TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<&Peer> for DiscoveryItem"],["impl From<IpAddr> for IpFamily"],["impl From<IpFamily> for Domain"],["impl From<Error> for ClientError"],["impl From<Error> for PingError"],["impl From<NodeInfo> for AddrInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<RemoteInfo> for NodeAddr"],["impl From<GenError> for CreateConfigError"],["impl From<ParseError> for Error"],["impl From<VerificationError> for Error"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for GenError"],["impl From<Error> for ParseError"],["impl From<Error> for VerificationError"],["impl From<JoinError> for ClientError"],["impl From<NoInitialCipherSuite> for CreateConfigError"],["impl From<SurgeError> for PingError"],["impl From<UdpSocket> for UdpSocket"],["impl<T> From<T> for ConcurrentDiscovery"]],
"iroh_willow":[["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecretKey> for NamespacePublicKey"],["impl From<&UserPublicKey> for UserId"],["impl From<&UserSecretKey> for UserPublicKey"],["impl From<InvalidPathError> for InvalidPathError2"],["impl From<DataMessage> for Message"],["impl From<IntersectionMessage> for Message"],["impl From<ReconciliationMessage> for Message"],["impl From<EventKind> for Event"],["impl From<u64> for AreaOfInterestHandle"],["impl From<u64> for CapabilityHandle"],["impl From<u64> for IntersectionHandle"],["impl From<u64> for StaticTokenHandle"],["impl From<Box<PaiReplySubspaceCapability>> for Message"],["impl From<Error> for SecretStoreError"],["impl From<EntryForm> for EntryOrForm"],["impl From<InterestBuilder> for Interests"],["impl From<SerdeAuthorisedEntry> for AuthorisedEntry"],["impl From<SerdeEntry> for Entry"],["impl From<PayloadDigest> for Hash"],["impl From<SerdeArea> for Area"],["impl From<SerdeAreaOfInterest> for AreaOfInterest"],["impl From<SerdeRange3d> for Range3d"],["impl From<NamespaceId> for CapSelector"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecretKey> for SecretKey"],["impl From<NamespaceSecretKey> for NamespaceId"],["impl From<NamespaceSecretKey> for NamespacePublicKey"],["impl From<UserId> for AuthForm"],["impl From<UserId> for UserSelector"],["impl From<UserId> for [u8; 32]"],["impl From<UserPublicKey> for UserId"],["impl From<UserSecretKey> for SecretKey"],["impl From<UserSecretKey> for UserId"],["impl From<UserSecretKey> for UserPublicKey"],["impl From<SerdeMcCapability> for McCapability"],["impl From<SerdeMcSubspaceCapability> for McSubspaceCapability"],["impl From<SerdeReadAuthorisation> for ReadAuthorisation"],["impl From<ReadAuthorisation> for SerdeReadAuthorisation"],["impl From<AreaOfInterestHandle> for ResourceHandle"],["impl From<CapabilityHandle> for ResourceHandle"],["impl From<CommitmentReveal> for Message"],["impl From<ControlAbsolve> for Message"],["impl From<ControlAnnounceDropping> for Message"],["impl From<ControlApologise> for Message"],["impl From<ControlFreeHandle> for Message"],["impl From<ControlIssueGuarantee> for Message"],["impl From<ControlPlead> for Message"],["impl From<DataSendEntry> for DataMessage"],["impl From<DataSendEntry> for Message"],["impl From<DataSendPayload> for DataMessage"],["impl From<DataSendPayload> for Message"],["impl From<DataSetMetadata> for DataMessage"],["impl From<DataSetMetadata> for Message"],["impl From<IntersectionHandle> for ResourceHandle"],["impl From<PaiBindFragment> for IntersectionMessage"],["impl From<PaiBindFragment> for Message"],["impl From<PaiReplyFragment> for IntersectionMessage"],["impl From<PaiReplyFragment> for Message"],["impl From<PaiRequestSubspaceCapability> for Message"],["impl From<ReconciliationAnnounceEntries> for Message"],["impl From<ReconciliationAnnounceEntries> for ReconciliationMessage"],["impl From<ReconciliationSendEntry> for Message"],["impl From<ReconciliationSendEntry> for ReconciliationMessage"],["impl From<ReconciliationSendFingerprint> for Message"],["impl From<ReconciliationSendFingerprint> for ReconciliationMessage"],["impl From<ReconciliationSendPayload> for Message"],["impl From<ReconciliationSendPayload> for ReconciliationMessage"],["impl From<ReconciliationTerminatePayload> for Message"],["impl From<ReconciliationTerminatePayload> for ReconciliationMessage"],["impl From<SetupBindAreaOfInterest> for Message"],["impl From<SetupBindReadCapability> for Message"],["impl From<SetupBindStaticToken> for Message"],["impl From<StaticTokenHandle> for ResourceHandle"],["impl From<Area<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeArea"],["impl From<AreaOfInterest<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeAreaOfInterest"],["impl From<AuthorisedEntry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest, McAuthorisationToken<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>>> for SerdeAuthorisedEntry"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for EntryOrForm"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for SerdeEntry"],["impl From<Hash> for PayloadDigest"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for AuthForm"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability"],["impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability"],["impl From<Range3d<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeRange3d"],["impl From<Signature> for NamespaceSignature"],["impl From<Signature> for UserSignature"],["impl From<SigningKey> for NamespaceSecretKey"],["impl From<SigningKey> for UserSecretKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<VerifyingKey> for UserPublicKey"],["impl From<[u8; 32]> for NamespaceId"],["impl From<[u8; 32]> for UserId"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index 8902586109..d96c0fcf7e 100644
--- a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -1,6 +1,6 @@
(function() {var implementors = {
"iroh":[["impl Metric for Metrics"]],
-"iroh_blobs":[["impl Metric for Metrics"]],
+"iroh_blobs":[["impl Metric for Metrics"]],
"iroh_dns_server":[["impl Metric for Metrics"]],
"iroh_docs":[["impl Metric for Metrics"]],
"iroh_gossip":[["impl Metric for Metrics"]],
Struct iroh_gossip::net::JoinOptions
source · pub struct JoinOptions {
- pub bootstrap: BTreeSet<NodeId>,
+ pub bootstrap: BTreeSet<NodeId>,
pub subscription_capacity: usize,
}Expand description
Options for joining a gossip topic.
-Fields§
§bootstrap: BTreeSet<NodeId>The initial bootstrap nodes
+Fields§
§bootstrap: BTreeSet<NodeId>The initial bootstrap nodes
subscription_capacity: usizeThe maximum number of messages that can be buffered in a subscription.
If this limit is reached, the subscriber will receive a Lagged response,
the message will be dropped, and the subscriber will be closed.
This is to prevent a single slow subscriber from blocking the dispatch loop. If a subscriber is lagging, it should be closed and re-opened.
-Implementations§
source§impl JoinOptions
impl JoinOptions
sourcepub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
pub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
Creates JoinOptions with the provided bootstrap nodes and the default subscription
+
Implementations§
source§impl JoinOptions
impl JoinOptions
sourcepub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
pub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self
Creates JoinOptions with the provided bootstrap nodes and the default subscription
capacity.
Trait Implementations§
source§impl Debug for JoinOptions
impl Debug for JoinOptions
source§impl<'de> Deserialize<'de> for JoinOptions
impl<'de> Deserialize<'de> for JoinOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Serialize for JoinOptions
impl Serialize for JoinOptions
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2231/docs/iroh_gossip/net/struct.Message.html b/pr/2231/docs/iroh_gossip/net/struct.Message.html
index ca0c1c33d5..f687c479d2 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.Message.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.Message.html
@@ -1,12 +1,12 @@
Message in iroh_gossip::net - Rust Struct iroh_gossip::net::Message
source · pub struct Message {
pub content: Bytes,
pub scope: DeliveryScope,
- pub delivered_from: NodeId,
+ pub delivered_from: NodeId,
}
Expand description
A gossip message
Fields§
§content: BytesThe content of the message
§scope: DeliveryScopeThe scope of the message.
This tells us if the message is from a direct neighbor or actual gossip.
-§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
+§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
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 Message
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more1.21.0 · source§fn min(self, other: Self) -> Selfwhere
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
index 590d571ec7..301d28aff1 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
@@ -1,9 +1,9 @@
-ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
+ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
Aliased Type§
enum ProtoCommand {
- Join(Vec<PublicKey>),
+ Join(Vec<PublicKey>),
Broadcast(Bytes, Scope),
Quit,
-}
Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
+}Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
If the list of peers is empty, will prepare the state and accept incoming join requests,
but only become operational after the first join request by another peer.
§Broadcast(Bytes, Scope)
Broadcast a message for this topic.
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
index 82531f5998..d42255752a 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
@@ -1,9 +1,9 @@
-ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
+ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
Aliased Type§
enum ProtoEvent {
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
- Received(GossipEvent<PublicKey>),
-}
Variants§
§NeighborUp(PublicKey)
We have a new, direct neighbor in the swarm membership layer for this topic
-§NeighborDown(PublicKey)
We dropped direct neighbor in the swarm membership layer for this topic
-§Received(GossipEvent<PublicKey>)
A gossip message was received for this topic
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
+ Received(GossipEvent<PublicKey>),
+}Variants§
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
index 07dd089029..0750fa8c38 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
@@ -2,5 +2,5 @@
reader: impl AsyncRead + Unpin,
buffer: &mut BytesMut,
max_message_size: usize
-) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
+) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
index c3ee8b490b..9c961dc01c 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
@@ -1,7 +1,7 @@
write_message in iroh_gossip::net::util - Rust Function iroh_gossip::net::util::write_message
source · pub async fn write_message<W: AsyncWrite + Unpin>(
writer: &mut W,
buffer: &mut BytesMut,
- frame: &Message<PublicKey>,
+ frame: &Message<PublicKey>,
max_message_size: usize
) -> Result<()>
Expand description
Write a ProtoMessage as a length-prefixed, postcard-encoded message.
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
index 90442a8828..b9e6243f91 100644
--- a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
+++ b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
@@ -8,7 +8,7 @@
§Received(GossipEvent<PI>)
A gossip message was received for this topic
Trait Implementations§
source§impl<'de, PI> Deserialize<'de> for Event<PI>where
PI: Deserialize<'de>,
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<Event<PublicKey>> for GossipEvent
source§impl<PI: Ord> Ord for Event<PI>
source§impl<PI: PartialEq> PartialEq for Event<PI>
source§fn eq(&self, other: &Event<PI>) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
index 25d4340e43..704137ef24 100644
--- a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
+++ b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
@@ -30,7 +30,7 @@
) -> Result<Vec<CapabilityPack>>sourcepub async fn import_caps(&self, caps: Vec<CapabilityPack>) -> Result<()>
sourcepub async fn resolve_interests(
&self,
interests: Interests
-) -> Result<InterestMap>
sourcepub async fn shutdown(&self) -> Result<()>
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
index e00006425d..f0097c48be 100644
--- a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
+++ b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
@@ -501,8 +501,6 @@
501
502
503
-504
-505
use std::{sync::Arc, thread::JoinHandle};
use anyhow::Result;
@@ -734,10 +732,8 @@
let shutdown = move || {
if let Err(err) = inbox_tx.blocking_send(Input::Shutdown { reply: None }) {
warn!(?err, "Failed to send shutdown");
- } else {
- if let Err(err) = handle.join() {
- warn!(?err, "Failed to join sync actor");
- }
+ } else if let Err(err) = handle.join() {
+ warn!(?err, "Failed to join sync actor");
}
};
diff --git a/pr/2231/docs/trait.impl/core/convert/trait.From.js b/pr/2231/docs/trait.impl/core/convert/trait.From.js
index 6dbc4ff9b8..5e9d63d16e 100644
--- a/pr/2231/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/2231/docs/trait.impl/core/convert/trait.From.js
@@ -3,7 +3,7 @@
"iroh_base":[["impl From<&[u8; 32]> for Hash"],["impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr"],["impl From<FromHexError> for HexOrBase32ParseError"],["impl From<HexOrBase32ParseError> for KeyParsingError"],["impl From<BlobFormat> for u64"],["impl From<Error> for RpcError"],["impl From<Error> for RpcError"],["impl From<Url> for RelayUrl"],["impl From<DecodeError> for HexOrBase32ParseError"],["impl From<DecodeError> for Error"],["impl From<Hash> for Hash"],["impl From<Hash> for [u8; 32]"],["impl From<PublicKey> for NodeAddr"],["impl From<RelayUrl> for Url"],["impl From<Error> for KeyParsingError"],["impl From<Error> for Error"],["impl From<Hash> for Hash"],["impl From<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for Hash"],["impl From<[u8; 32]> for SecretKey"]],
"iroh_blobs":[["impl From<&str> for Tag"],["impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext"],["impl From<BlobId> for u64"],["impl From<GetResponseError> for Error"],["impl From<GetError> for FailureAction"],["impl From<AtBlobHeaderNextError> for GetError"],["impl From<AtBlobHeaderNextError> for DecodeError"],["impl From<AtBlobHeaderNextError> for Error"],["impl From<ConnectedNextError> for GetError"],["impl From<ConnectedNextError> for Error"],["impl From<DecodeError> for GetError"],["impl From<DecodeError> for Error"],["impl From<Closed> for VarInt"],["impl From<SpawnError> for Error"],["impl From<ProgressSendError> for GetError"],["impl From<ProgressSendError> for Error"],["impl From<String> for Tag"],["impl From<Vec<u8>> for SparseMemFile"],["impl From<Error> for GetError"],["impl From<Error> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<DownloadKind> for HashAndFormat"],["impl From<AtClosing> for ConnectedNext"],["impl From<AtClosing> for EndBlobNext"],["impl From<AtEndBlob> for BlobContentNext"],["impl From<AtStartChild> for ConnectedNext"],["impl From<AtStartChild> for EndBlobNext"],["impl From<AtStartRoot> for ConnectedNext"],["impl From<HashSeq> for Bytes"],["impl From<GetRequest> for Request"],["impl From<HashAndFormat> for DownloadKind"],["impl From<Tag> for Bytes"],["impl From<Bytes> for Tag"],["impl From<ClosedStream> for GetError"],["impl From<ClosedStream> for ConnectedNextError"],["impl From<ConnectionError> for GetResponseError"],["impl From<ConnectionError> for GetError"],["impl From<DecodeError> for GetResponseError"],["impl From<DecodeError> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<ReadError> for GetResponseError"],["impl From<ReadError> for GetError"],["impl From<WriteError> for GetResponseError"],["impl From<WriteError> for GetError"],["impl From<WriteError> for ConnectedNextError"],["impl<T: CustomEventSender> From<T> for EventSender"]],
"iroh_docs":[["impl From<&Author> for AuthorPublicKey"],["impl From<&AuthorPublicKey> for AuthorId"],["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecret> for NamespacePublicKey"],["impl From<&[u8; 32]> for AuthorId"],["impl From<&[u8; 32]> for NamespaceId"],["impl From<CapabilityKind> for u8"],["impl From<ValidationFailure> for InsertError"],["impl From<Error> for OpenError"],["impl From<QueryBuilder<FlatQuery>> for Query"],["impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query"],["impl From<Author> for AuthorId"],["impl From<Author> for AuthorPublicKey"],["impl From<AuthorId> for AuthorFilter"],["impl From<AuthorId> for [u8; 32]"],["impl From<AuthorPublicKey> for AuthorId"],["impl From<NamespaceId> for Capability"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecret> for Capability"],["impl From<NamespaceSecret> for NamespaceId"],["impl From<NamespaceSecret> for NamespacePublicKey"],["impl From<ReadOnly> for InsertError"],["impl From<SignedEntry> for Entry"],["impl From<SigningKey> for Author"],["impl From<SigningKey> for NamespaceSecret"],["impl From<VerifyingKey> for AuthorPublicKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<[u8; 32]> for AuthorId"],["impl From<[u8; 32]> for NamespaceId"],["impl<T: AsRef<[u8]>> From<T> for KeyFilter"]],
-"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
+"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
"iroh_net":[["impl From<&NodeInfo> for TxtAttrs<IrohAttr>"],["impl From<&TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<&Peer> for DiscoveryItem"],["impl From<IpAddr> for IpFamily"],["impl From<IpFamily> for Domain"],["impl From<Error> for ClientError"],["impl From<Error> for PingError"],["impl From<NodeInfo> for AddrInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<RemoteInfo> for NodeAddr"],["impl From<GenError> for CreateConfigError"],["impl From<ParseError> for Error"],["impl From<VerificationError> for Error"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for GenError"],["impl From<Error> for ParseError"],["impl From<Error> for VerificationError"],["impl From<JoinError> for ClientError"],["impl From<NoInitialCipherSuite> for CreateConfigError"],["impl From<SurgeError> for PingError"],["impl From<UdpSocket> for UdpSocket"],["impl<T> From<T> for ConcurrentDiscovery"]],
"iroh_willow":[["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecretKey> for NamespacePublicKey"],["impl From<&UserPublicKey> for UserId"],["impl From<&UserSecretKey> for UserPublicKey"],["impl From<InvalidPathError> for InvalidPathError2"],["impl From<DataMessage> for Message"],["impl From<IntersectionMessage> for Message"],["impl From<ReconciliationMessage> for Message"],["impl From<EventKind> for Event"],["impl From<u64> for AreaOfInterestHandle"],["impl From<u64> for CapabilityHandle"],["impl From<u64> for IntersectionHandle"],["impl From<u64> for StaticTokenHandle"],["impl From<Box<PaiReplySubspaceCapability>> for Message"],["impl From<Error> for SecretStoreError"],["impl From<EntryForm> for EntryOrForm"],["impl From<InterestBuilder> for Interests"],["impl From<SerdeAuthorisedEntry> for AuthorisedEntry"],["impl From<SerdeEntry> for Entry"],["impl From<PayloadDigest> for Hash"],["impl From<SerdeArea> for Area"],["impl From<SerdeAreaOfInterest> for AreaOfInterest"],["impl From<SerdeRange3d> for Range3d"],["impl From<NamespaceId> for CapSelector"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecretKey> for SecretKey"],["impl From<NamespaceSecretKey> for NamespaceId"],["impl From<NamespaceSecretKey> for NamespacePublicKey"],["impl From<UserId> for AuthForm"],["impl From<UserId> for UserSelector"],["impl From<UserId> for [u8; 32]"],["impl From<UserPublicKey> for UserId"],["impl From<UserSecretKey> for SecretKey"],["impl From<UserSecretKey> for UserId"],["impl From<UserSecretKey> for UserPublicKey"],["impl From<SerdeMcCapability> for McCapability"],["impl From<SerdeMcSubspaceCapability> for McSubspaceCapability"],["impl From<SerdeReadAuthorisation> for ReadAuthorisation"],["impl From<ReadAuthorisation> for SerdeReadAuthorisation"],["impl From<AreaOfInterestHandle> for ResourceHandle"],["impl From<CapabilityHandle> for ResourceHandle"],["impl From<CommitmentReveal> for Message"],["impl From<ControlAbsolve> for Message"],["impl From<ControlAnnounceDropping> for Message"],["impl From<ControlApologise> for Message"],["impl From<ControlFreeHandle> for Message"],["impl From<ControlIssueGuarantee> for Message"],["impl From<ControlPlead> for Message"],["impl From<DataSendEntry> for DataMessage"],["impl From<DataSendEntry> for Message"],["impl From<DataSendPayload> for DataMessage"],["impl From<DataSendPayload> for Message"],["impl From<DataSetMetadata> for DataMessage"],["impl From<DataSetMetadata> for Message"],["impl From<IntersectionHandle> for ResourceHandle"],["impl From<PaiBindFragment> for IntersectionMessage"],["impl From<PaiBindFragment> for Message"],["impl From<PaiReplyFragment> for IntersectionMessage"],["impl From<PaiReplyFragment> for Message"],["impl From<PaiRequestSubspaceCapability> for Message"],["impl From<ReconciliationAnnounceEntries> for Message"],["impl From<ReconciliationAnnounceEntries> for ReconciliationMessage"],["impl From<ReconciliationSendEntry> for Message"],["impl From<ReconciliationSendEntry> for ReconciliationMessage"],["impl From<ReconciliationSendFingerprint> for Message"],["impl From<ReconciliationSendFingerprint> for ReconciliationMessage"],["impl From<ReconciliationSendPayload> for Message"],["impl From<ReconciliationSendPayload> for ReconciliationMessage"],["impl From<ReconciliationTerminatePayload> for Message"],["impl From<ReconciliationTerminatePayload> for ReconciliationMessage"],["impl From<SetupBindAreaOfInterest> for Message"],["impl From<SetupBindReadCapability> for Message"],["impl From<SetupBindStaticToken> for Message"],["impl From<StaticTokenHandle> for ResourceHandle"],["impl From<Area<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeArea"],["impl From<AreaOfInterest<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeAreaOfInterest"],["impl From<AuthorisedEntry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest, McAuthorisationToken<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>>> for SerdeAuthorisedEntry"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for EntryOrForm"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for SerdeEntry"],["impl From<Hash> for PayloadDigest"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for AuthForm"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability"],["impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability"],["impl From<Range3d<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeRange3d"],["impl From<Signature> for NamespaceSignature"],["impl From<Signature> for UserSignature"],["impl From<SigningKey> for NamespaceSecretKey"],["impl From<SigningKey> for UserSecretKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<VerifyingKey> for UserPublicKey"],["impl From<[u8; 32]> for NamespaceId"],["impl From<[u8; 32]> for UserId"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index 8902586109..d96c0fcf7e 100644
--- a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -1,6 +1,6 @@
(function() {var implementors = {
"iroh":[["impl Metric for Metrics"]],
-"iroh_blobs":[["impl Metric for Metrics"]],
+"iroh_blobs":[["impl Metric for Metrics"]],
"iroh_dns_server":[["impl Metric for Metrics"]],
"iroh_docs":[["impl Metric for Metrics"]],
"iroh_gossip":[["impl Metric for Metrics"]],
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2231/docs/iroh_gossip/net/struct.Message.html b/pr/2231/docs/iroh_gossip/net/struct.Message.html
index ca0c1c33d5..f687c479d2 100644
--- a/pr/2231/docs/iroh_gossip/net/struct.Message.html
+++ b/pr/2231/docs/iroh_gossip/net/struct.Message.html
@@ -1,12 +1,12 @@
Message in iroh_gossip::net - Rust Struct iroh_gossip::net::Message
source · pub struct Message {
pub content: Bytes,
pub scope: DeliveryScope,
- pub delivered_from: NodeId,
+ pub delivered_from: NodeId,
}
Expand description
A gossip message
Fields§
§content: BytesThe content of the message
§scope: DeliveryScopeThe scope of the message.
This tells us if the message is from a direct neighbor or actual gossip.
-§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
+§delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
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 Message
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more1.21.0 · source§fn min(self, other: Self) -> Selfwhere
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
index 590d571ec7..301d28aff1 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
@@ -1,9 +1,9 @@
-ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
+ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
Aliased Type§
enum ProtoCommand {
- Join(Vec<PublicKey>),
+ Join(Vec<PublicKey>),
Broadcast(Bytes, Scope),
Quit,
-}
Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
+}Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
If the list of peers is empty, will prepare the state and accept incoming join requests,
but only become operational after the first join request by another peer.
§Broadcast(Bytes, Scope)
Broadcast a message for this topic.
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
index 82531f5998..d42255752a 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
@@ -1,9 +1,9 @@
-ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
+ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
Aliased Type§
enum ProtoEvent {
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
- Received(GossipEvent<PublicKey>),
-}
Variants§
§NeighborUp(PublicKey)
We have a new, direct neighbor in the swarm membership layer for this topic
-§NeighborDown(PublicKey)
We dropped direct neighbor in the swarm membership layer for this topic
-§Received(GossipEvent<PublicKey>)
A gossip message was received for this topic
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
+ Received(GossipEvent<PublicKey>),
+}Variants§
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
index 07dd089029..0750fa8c38 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
@@ -2,5 +2,5 @@
reader: impl AsyncRead + Unpin,
buffer: &mut BytesMut,
max_message_size: usize
-) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
+) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
index c3ee8b490b..9c961dc01c 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
@@ -1,7 +1,7 @@
write_message in iroh_gossip::net::util - Rust Function iroh_gossip::net::util::write_message
source · pub async fn write_message<W: AsyncWrite + Unpin>(
writer: &mut W,
buffer: &mut BytesMut,
- frame: &Message<PublicKey>,
+ frame: &Message<PublicKey>,
max_message_size: usize
) -> Result<()>
Expand description
Write a ProtoMessage as a length-prefixed, postcard-encoded message.
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
index 90442a8828..b9e6243f91 100644
--- a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
+++ b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
@@ -8,7 +8,7 @@
§Received(GossipEvent<PI>)
A gossip message was received for this topic
Trait Implementations§
source§impl<'de, PI> Deserialize<'de> for Event<PI>where
PI: Deserialize<'de>,
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<Event<PublicKey>> for GossipEvent
source§impl<PI: Ord> Ord for Event<PI>
source§impl<PI: PartialEq> PartialEq for Event<PI>
source§fn eq(&self, other: &Event<PI>) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
index 25d4340e43..704137ef24 100644
--- a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
+++ b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
@@ -30,7 +30,7 @@
) -> Result<Vec<CapabilityPack>>sourcepub async fn import_caps(&self, caps: Vec<CapabilityPack>) -> Result<()>
sourcepub async fn resolve_interests(
&self,
interests: Interests
-) -> Result<InterestMap>
sourcepub async fn shutdown(&self) -> Result<()>
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
index e00006425d..f0097c48be 100644
--- a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
+++ b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
@@ -501,8 +501,6 @@
501
502
503
-504
-505
use std::{sync::Arc, thread::JoinHandle};
use anyhow::Result;
@@ -734,10 +732,8 @@
let shutdown = move || {
if let Err(err) = inbox_tx.blocking_send(Input::Shutdown { reply: None }) {
warn!(?err, "Failed to send shutdown");
- } else {
- if let Err(err) = handle.join() {
- warn!(?err, "Failed to join sync actor");
- }
+ } else if let Err(err) = handle.join() {
+ warn!(?err, "Failed to join sync actor");
}
};
diff --git a/pr/2231/docs/trait.impl/core/convert/trait.From.js b/pr/2231/docs/trait.impl/core/convert/trait.From.js
index 6dbc4ff9b8..5e9d63d16e 100644
--- a/pr/2231/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/2231/docs/trait.impl/core/convert/trait.From.js
@@ -3,7 +3,7 @@
"iroh_base":[["impl From<&[u8; 32]> for Hash"],["impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr"],["impl From<FromHexError> for HexOrBase32ParseError"],["impl From<HexOrBase32ParseError> for KeyParsingError"],["impl From<BlobFormat> for u64"],["impl From<Error> for RpcError"],["impl From<Error> for RpcError"],["impl From<Url> for RelayUrl"],["impl From<DecodeError> for HexOrBase32ParseError"],["impl From<DecodeError> for Error"],["impl From<Hash> for Hash"],["impl From<Hash> for [u8; 32]"],["impl From<PublicKey> for NodeAddr"],["impl From<RelayUrl> for Url"],["impl From<Error> for KeyParsingError"],["impl From<Error> for Error"],["impl From<Hash> for Hash"],["impl From<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for Hash"],["impl From<[u8; 32]> for SecretKey"]],
"iroh_blobs":[["impl From<&str> for Tag"],["impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext"],["impl From<BlobId> for u64"],["impl From<GetResponseError> for Error"],["impl From<GetError> for FailureAction"],["impl From<AtBlobHeaderNextError> for GetError"],["impl From<AtBlobHeaderNextError> for DecodeError"],["impl From<AtBlobHeaderNextError> for Error"],["impl From<ConnectedNextError> for GetError"],["impl From<ConnectedNextError> for Error"],["impl From<DecodeError> for GetError"],["impl From<DecodeError> for Error"],["impl From<Closed> for VarInt"],["impl From<SpawnError> for Error"],["impl From<ProgressSendError> for GetError"],["impl From<ProgressSendError> for Error"],["impl From<String> for Tag"],["impl From<Vec<u8>> for SparseMemFile"],["impl From<Error> for GetError"],["impl From<Error> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<DownloadKind> for HashAndFormat"],["impl From<AtClosing> for ConnectedNext"],["impl From<AtClosing> for EndBlobNext"],["impl From<AtEndBlob> for BlobContentNext"],["impl From<AtStartChild> for ConnectedNext"],["impl From<AtStartChild> for EndBlobNext"],["impl From<AtStartRoot> for ConnectedNext"],["impl From<HashSeq> for Bytes"],["impl From<GetRequest> for Request"],["impl From<HashAndFormat> for DownloadKind"],["impl From<Tag> for Bytes"],["impl From<Bytes> for Tag"],["impl From<ClosedStream> for GetError"],["impl From<ClosedStream> for ConnectedNextError"],["impl From<ConnectionError> for GetResponseError"],["impl From<ConnectionError> for GetError"],["impl From<DecodeError> for GetResponseError"],["impl From<DecodeError> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<ReadError> for GetResponseError"],["impl From<ReadError> for GetError"],["impl From<WriteError> for GetResponseError"],["impl From<WriteError> for GetError"],["impl From<WriteError> for ConnectedNextError"],["impl<T: CustomEventSender> From<T> for EventSender"]],
"iroh_docs":[["impl From<&Author> for AuthorPublicKey"],["impl From<&AuthorPublicKey> for AuthorId"],["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecret> for NamespacePublicKey"],["impl From<&[u8; 32]> for AuthorId"],["impl From<&[u8; 32]> for NamespaceId"],["impl From<CapabilityKind> for u8"],["impl From<ValidationFailure> for InsertError"],["impl From<Error> for OpenError"],["impl From<QueryBuilder<FlatQuery>> for Query"],["impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query"],["impl From<Author> for AuthorId"],["impl From<Author> for AuthorPublicKey"],["impl From<AuthorId> for AuthorFilter"],["impl From<AuthorId> for [u8; 32]"],["impl From<AuthorPublicKey> for AuthorId"],["impl From<NamespaceId> for Capability"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecret> for Capability"],["impl From<NamespaceSecret> for NamespaceId"],["impl From<NamespaceSecret> for NamespacePublicKey"],["impl From<ReadOnly> for InsertError"],["impl From<SignedEntry> for Entry"],["impl From<SigningKey> for Author"],["impl From<SigningKey> for NamespaceSecret"],["impl From<VerifyingKey> for AuthorPublicKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<[u8; 32]> for AuthorId"],["impl From<[u8; 32]> for NamespaceId"],["impl<T: AsRef<[u8]>> From<T> for KeyFilter"]],
-"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
+"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
"iroh_net":[["impl From<&NodeInfo> for TxtAttrs<IrohAttr>"],["impl From<&TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<&Peer> for DiscoveryItem"],["impl From<IpAddr> for IpFamily"],["impl From<IpFamily> for Domain"],["impl From<Error> for ClientError"],["impl From<Error> for PingError"],["impl From<NodeInfo> for AddrInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<RemoteInfo> for NodeAddr"],["impl From<GenError> for CreateConfigError"],["impl From<ParseError> for Error"],["impl From<VerificationError> for Error"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for GenError"],["impl From<Error> for ParseError"],["impl From<Error> for VerificationError"],["impl From<JoinError> for ClientError"],["impl From<NoInitialCipherSuite> for CreateConfigError"],["impl From<SurgeError> for PingError"],["impl From<UdpSocket> for UdpSocket"],["impl<T> From<T> for ConcurrentDiscovery"]],
"iroh_willow":[["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecretKey> for NamespacePublicKey"],["impl From<&UserPublicKey> for UserId"],["impl From<&UserSecretKey> for UserPublicKey"],["impl From<InvalidPathError> for InvalidPathError2"],["impl From<DataMessage> for Message"],["impl From<IntersectionMessage> for Message"],["impl From<ReconciliationMessage> for Message"],["impl From<EventKind> for Event"],["impl From<u64> for AreaOfInterestHandle"],["impl From<u64> for CapabilityHandle"],["impl From<u64> for IntersectionHandle"],["impl From<u64> for StaticTokenHandle"],["impl From<Box<PaiReplySubspaceCapability>> for Message"],["impl From<Error> for SecretStoreError"],["impl From<EntryForm> for EntryOrForm"],["impl From<InterestBuilder> for Interests"],["impl From<SerdeAuthorisedEntry> for AuthorisedEntry"],["impl From<SerdeEntry> for Entry"],["impl From<PayloadDigest> for Hash"],["impl From<SerdeArea> for Area"],["impl From<SerdeAreaOfInterest> for AreaOfInterest"],["impl From<SerdeRange3d> for Range3d"],["impl From<NamespaceId> for CapSelector"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecretKey> for SecretKey"],["impl From<NamespaceSecretKey> for NamespaceId"],["impl From<NamespaceSecretKey> for NamespacePublicKey"],["impl From<UserId> for AuthForm"],["impl From<UserId> for UserSelector"],["impl From<UserId> for [u8; 32]"],["impl From<UserPublicKey> for UserId"],["impl From<UserSecretKey> for SecretKey"],["impl From<UserSecretKey> for UserId"],["impl From<UserSecretKey> for UserPublicKey"],["impl From<SerdeMcCapability> for McCapability"],["impl From<SerdeMcSubspaceCapability> for McSubspaceCapability"],["impl From<SerdeReadAuthorisation> for ReadAuthorisation"],["impl From<ReadAuthorisation> for SerdeReadAuthorisation"],["impl From<AreaOfInterestHandle> for ResourceHandle"],["impl From<CapabilityHandle> for ResourceHandle"],["impl From<CommitmentReveal> for Message"],["impl From<ControlAbsolve> for Message"],["impl From<ControlAnnounceDropping> for Message"],["impl From<ControlApologise> for Message"],["impl From<ControlFreeHandle> for Message"],["impl From<ControlIssueGuarantee> for Message"],["impl From<ControlPlead> for Message"],["impl From<DataSendEntry> for DataMessage"],["impl From<DataSendEntry> for Message"],["impl From<DataSendPayload> for DataMessage"],["impl From<DataSendPayload> for Message"],["impl From<DataSetMetadata> for DataMessage"],["impl From<DataSetMetadata> for Message"],["impl From<IntersectionHandle> for ResourceHandle"],["impl From<PaiBindFragment> for IntersectionMessage"],["impl From<PaiBindFragment> for Message"],["impl From<PaiReplyFragment> for IntersectionMessage"],["impl From<PaiReplyFragment> for Message"],["impl From<PaiRequestSubspaceCapability> for Message"],["impl From<ReconciliationAnnounceEntries> for Message"],["impl From<ReconciliationAnnounceEntries> for ReconciliationMessage"],["impl From<ReconciliationSendEntry> for Message"],["impl From<ReconciliationSendEntry> for ReconciliationMessage"],["impl From<ReconciliationSendFingerprint> for Message"],["impl From<ReconciliationSendFingerprint> for ReconciliationMessage"],["impl From<ReconciliationSendPayload> for Message"],["impl From<ReconciliationSendPayload> for ReconciliationMessage"],["impl From<ReconciliationTerminatePayload> for Message"],["impl From<ReconciliationTerminatePayload> for ReconciliationMessage"],["impl From<SetupBindAreaOfInterest> for Message"],["impl From<SetupBindReadCapability> for Message"],["impl From<SetupBindStaticToken> for Message"],["impl From<StaticTokenHandle> for ResourceHandle"],["impl From<Area<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeArea"],["impl From<AreaOfInterest<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeAreaOfInterest"],["impl From<AuthorisedEntry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest, McAuthorisationToken<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>>> for SerdeAuthorisedEntry"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for EntryOrForm"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for SerdeEntry"],["impl From<Hash> for PayloadDigest"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for AuthForm"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability"],["impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability"],["impl From<Range3d<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeRange3d"],["impl From<Signature> for NamespaceSignature"],["impl From<Signature> for UserSignature"],["impl From<SigningKey> for NamespaceSecretKey"],["impl From<SigningKey> for UserSecretKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<VerifyingKey> for UserPublicKey"],["impl From<[u8; 32]> for NamespaceId"],["impl From<[u8; 32]> for UserId"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index 8902586109..d96c0fcf7e 100644
--- a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -1,6 +1,6 @@
(function() {var implementors = {
"iroh":[["impl Metric for Metrics"]],
-"iroh_blobs":[["impl Metric for Metrics"]],
+"iroh_blobs":[["impl Metric for Metrics"]],
"iroh_dns_server":[["impl Metric for Metrics"]],
"iroh_docs":[["impl Metric for Metrics"]],
"iroh_gossip":[["impl Metric for Metrics"]],
Struct iroh_gossip::net::Message
source · pub struct Message {
pub content: Bytes,
pub scope: DeliveryScope,
- pub delivered_from: NodeId,
+ pub delivered_from: NodeId,
}Expand description
A gossip message
Fields§
§content: BytesThe content of the message
scope: DeliveryScopeThe scope of the message. This tells us if the message is from a direct neighbor or actual gossip.
-delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
+delivered_from: NodeIdThe node that delivered the message. This is not the same as the original author.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Ord for Message
impl Ord for Message
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 · source§fn min(self, other: Self) -> Selfwhere
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
index 590d571ec7..301d28aff1 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
@@ -1,9 +1,9 @@
-ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
+ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
Aliased Type§
enum ProtoCommand {
- Join(Vec<PublicKey>),
+ Join(Vec<PublicKey>),
Broadcast(Bytes, Scope),
Quit,
-}
Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
+}Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
If the list of peers is empty, will prepare the state and accept incoming join requests,
but only become operational after the first join request by another peer.
§Broadcast(Bytes, Scope)
Broadcast a message for this topic.
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
index 82531f5998..d42255752a 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
@@ -1,9 +1,9 @@
-ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
+ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
Aliased Type§
enum ProtoEvent {
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
- Received(GossipEvent<PublicKey>),
-}
Variants§
§NeighborUp(PublicKey)
We have a new, direct neighbor in the swarm membership layer for this topic
-§NeighborDown(PublicKey)
We dropped direct neighbor in the swarm membership layer for this topic
-§Received(GossipEvent<PublicKey>)
A gossip message was received for this topic
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
+ Received(GossipEvent<PublicKey>),
+}Variants§
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
index 07dd089029..0750fa8c38 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
@@ -2,5 +2,5 @@
reader: impl AsyncRead + Unpin,
buffer: &mut BytesMut,
max_message_size: usize
-) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
+) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
index c3ee8b490b..9c961dc01c 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
@@ -1,7 +1,7 @@
write_message in iroh_gossip::net::util - Rust Function iroh_gossip::net::util::write_message
source · pub async fn write_message<W: AsyncWrite + Unpin>(
writer: &mut W,
buffer: &mut BytesMut,
- frame: &Message<PublicKey>,
+ frame: &Message<PublicKey>,
max_message_size: usize
) -> Result<()>
Expand description
Write a ProtoMessage as a length-prefixed, postcard-encoded message.
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
index 90442a8828..b9e6243f91 100644
--- a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
+++ b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
@@ -8,7 +8,7 @@
§Received(GossipEvent<PI>)
A gossip message was received for this topic
Trait Implementations§
source§impl<'de, PI> Deserialize<'de> for Event<PI>where
PI: Deserialize<'de>,
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<Event<PublicKey>> for GossipEvent
source§impl<PI: Ord> Ord for Event<PI>
source§impl<PI: PartialEq> PartialEq for Event<PI>
source§fn eq(&self, other: &Event<PI>) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
index 25d4340e43..704137ef24 100644
--- a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
+++ b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
@@ -30,7 +30,7 @@
) -> Result<Vec<CapabilityPack>>sourcepub async fn import_caps(&self, caps: Vec<CapabilityPack>) -> Result<()>
sourcepub async fn resolve_interests(
&self,
interests: Interests
-) -> Result<InterestMap>
sourcepub async fn shutdown(&self) -> Result<()>
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
index e00006425d..f0097c48be 100644
--- a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
+++ b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
@@ -501,8 +501,6 @@
501
502
503
-504
-505
use std::{sync::Arc, thread::JoinHandle};
use anyhow::Result;
@@ -734,10 +732,8 @@
let shutdown = move || {
if let Err(err) = inbox_tx.blocking_send(Input::Shutdown { reply: None }) {
warn!(?err, "Failed to send shutdown");
- } else {
- if let Err(err) = handle.join() {
- warn!(?err, "Failed to join sync actor");
- }
+ } else if let Err(err) = handle.join() {
+ warn!(?err, "Failed to join sync actor");
}
};
diff --git a/pr/2231/docs/trait.impl/core/convert/trait.From.js b/pr/2231/docs/trait.impl/core/convert/trait.From.js
index 6dbc4ff9b8..5e9d63d16e 100644
--- a/pr/2231/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/2231/docs/trait.impl/core/convert/trait.From.js
@@ -3,7 +3,7 @@
"iroh_base":[["impl From<&[u8; 32]> for Hash"],["impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr"],["impl From<FromHexError> for HexOrBase32ParseError"],["impl From<HexOrBase32ParseError> for KeyParsingError"],["impl From<BlobFormat> for u64"],["impl From<Error> for RpcError"],["impl From<Error> for RpcError"],["impl From<Url> for RelayUrl"],["impl From<DecodeError> for HexOrBase32ParseError"],["impl From<DecodeError> for Error"],["impl From<Hash> for Hash"],["impl From<Hash> for [u8; 32]"],["impl From<PublicKey> for NodeAddr"],["impl From<RelayUrl> for Url"],["impl From<Error> for KeyParsingError"],["impl From<Error> for Error"],["impl From<Hash> for Hash"],["impl From<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for Hash"],["impl From<[u8; 32]> for SecretKey"]],
"iroh_blobs":[["impl From<&str> for Tag"],["impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext"],["impl From<BlobId> for u64"],["impl From<GetResponseError> for Error"],["impl From<GetError> for FailureAction"],["impl From<AtBlobHeaderNextError> for GetError"],["impl From<AtBlobHeaderNextError> for DecodeError"],["impl From<AtBlobHeaderNextError> for Error"],["impl From<ConnectedNextError> for GetError"],["impl From<ConnectedNextError> for Error"],["impl From<DecodeError> for GetError"],["impl From<DecodeError> for Error"],["impl From<Closed> for VarInt"],["impl From<SpawnError> for Error"],["impl From<ProgressSendError> for GetError"],["impl From<ProgressSendError> for Error"],["impl From<String> for Tag"],["impl From<Vec<u8>> for SparseMemFile"],["impl From<Error> for GetError"],["impl From<Error> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<DownloadKind> for HashAndFormat"],["impl From<AtClosing> for ConnectedNext"],["impl From<AtClosing> for EndBlobNext"],["impl From<AtEndBlob> for BlobContentNext"],["impl From<AtStartChild> for ConnectedNext"],["impl From<AtStartChild> for EndBlobNext"],["impl From<AtStartRoot> for ConnectedNext"],["impl From<HashSeq> for Bytes"],["impl From<GetRequest> for Request"],["impl From<HashAndFormat> for DownloadKind"],["impl From<Tag> for Bytes"],["impl From<Bytes> for Tag"],["impl From<ClosedStream> for GetError"],["impl From<ClosedStream> for ConnectedNextError"],["impl From<ConnectionError> for GetResponseError"],["impl From<ConnectionError> for GetError"],["impl From<DecodeError> for GetResponseError"],["impl From<DecodeError> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<ReadError> for GetResponseError"],["impl From<ReadError> for GetError"],["impl From<WriteError> for GetResponseError"],["impl From<WriteError> for GetError"],["impl From<WriteError> for ConnectedNextError"],["impl<T: CustomEventSender> From<T> for EventSender"]],
"iroh_docs":[["impl From<&Author> for AuthorPublicKey"],["impl From<&AuthorPublicKey> for AuthorId"],["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecret> for NamespacePublicKey"],["impl From<&[u8; 32]> for AuthorId"],["impl From<&[u8; 32]> for NamespaceId"],["impl From<CapabilityKind> for u8"],["impl From<ValidationFailure> for InsertError"],["impl From<Error> for OpenError"],["impl From<QueryBuilder<FlatQuery>> for Query"],["impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query"],["impl From<Author> for AuthorId"],["impl From<Author> for AuthorPublicKey"],["impl From<AuthorId> for AuthorFilter"],["impl From<AuthorId> for [u8; 32]"],["impl From<AuthorPublicKey> for AuthorId"],["impl From<NamespaceId> for Capability"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecret> for Capability"],["impl From<NamespaceSecret> for NamespaceId"],["impl From<NamespaceSecret> for NamespacePublicKey"],["impl From<ReadOnly> for InsertError"],["impl From<SignedEntry> for Entry"],["impl From<SigningKey> for Author"],["impl From<SigningKey> for NamespaceSecret"],["impl From<VerifyingKey> for AuthorPublicKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<[u8; 32]> for AuthorId"],["impl From<[u8; 32]> for NamespaceId"],["impl<T: AsRef<[u8]>> From<T> for KeyFilter"]],
-"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
+"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
"iroh_net":[["impl From<&NodeInfo> for TxtAttrs<IrohAttr>"],["impl From<&TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<&Peer> for DiscoveryItem"],["impl From<IpAddr> for IpFamily"],["impl From<IpFamily> for Domain"],["impl From<Error> for ClientError"],["impl From<Error> for PingError"],["impl From<NodeInfo> for AddrInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<RemoteInfo> for NodeAddr"],["impl From<GenError> for CreateConfigError"],["impl From<ParseError> for Error"],["impl From<VerificationError> for Error"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for GenError"],["impl From<Error> for ParseError"],["impl From<Error> for VerificationError"],["impl From<JoinError> for ClientError"],["impl From<NoInitialCipherSuite> for CreateConfigError"],["impl From<SurgeError> for PingError"],["impl From<UdpSocket> for UdpSocket"],["impl<T> From<T> for ConcurrentDiscovery"]],
"iroh_willow":[["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecretKey> for NamespacePublicKey"],["impl From<&UserPublicKey> for UserId"],["impl From<&UserSecretKey> for UserPublicKey"],["impl From<InvalidPathError> for InvalidPathError2"],["impl From<DataMessage> for Message"],["impl From<IntersectionMessage> for Message"],["impl From<ReconciliationMessage> for Message"],["impl From<EventKind> for Event"],["impl From<u64> for AreaOfInterestHandle"],["impl From<u64> for CapabilityHandle"],["impl From<u64> for IntersectionHandle"],["impl From<u64> for StaticTokenHandle"],["impl From<Box<PaiReplySubspaceCapability>> for Message"],["impl From<Error> for SecretStoreError"],["impl From<EntryForm> for EntryOrForm"],["impl From<InterestBuilder> for Interests"],["impl From<SerdeAuthorisedEntry> for AuthorisedEntry"],["impl From<SerdeEntry> for Entry"],["impl From<PayloadDigest> for Hash"],["impl From<SerdeArea> for Area"],["impl From<SerdeAreaOfInterest> for AreaOfInterest"],["impl From<SerdeRange3d> for Range3d"],["impl From<NamespaceId> for CapSelector"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecretKey> for SecretKey"],["impl From<NamespaceSecretKey> for NamespaceId"],["impl From<NamespaceSecretKey> for NamespacePublicKey"],["impl From<UserId> for AuthForm"],["impl From<UserId> for UserSelector"],["impl From<UserId> for [u8; 32]"],["impl From<UserPublicKey> for UserId"],["impl From<UserSecretKey> for SecretKey"],["impl From<UserSecretKey> for UserId"],["impl From<UserSecretKey> for UserPublicKey"],["impl From<SerdeMcCapability> for McCapability"],["impl From<SerdeMcSubspaceCapability> for McSubspaceCapability"],["impl From<SerdeReadAuthorisation> for ReadAuthorisation"],["impl From<ReadAuthorisation> for SerdeReadAuthorisation"],["impl From<AreaOfInterestHandle> for ResourceHandle"],["impl From<CapabilityHandle> for ResourceHandle"],["impl From<CommitmentReveal> for Message"],["impl From<ControlAbsolve> for Message"],["impl From<ControlAnnounceDropping> for Message"],["impl From<ControlApologise> for Message"],["impl From<ControlFreeHandle> for Message"],["impl From<ControlIssueGuarantee> for Message"],["impl From<ControlPlead> for Message"],["impl From<DataSendEntry> for DataMessage"],["impl From<DataSendEntry> for Message"],["impl From<DataSendPayload> for DataMessage"],["impl From<DataSendPayload> for Message"],["impl From<DataSetMetadata> for DataMessage"],["impl From<DataSetMetadata> for Message"],["impl From<IntersectionHandle> for ResourceHandle"],["impl From<PaiBindFragment> for IntersectionMessage"],["impl From<PaiBindFragment> for Message"],["impl From<PaiReplyFragment> for IntersectionMessage"],["impl From<PaiReplyFragment> for Message"],["impl From<PaiRequestSubspaceCapability> for Message"],["impl From<ReconciliationAnnounceEntries> for Message"],["impl From<ReconciliationAnnounceEntries> for ReconciliationMessage"],["impl From<ReconciliationSendEntry> for Message"],["impl From<ReconciliationSendEntry> for ReconciliationMessage"],["impl From<ReconciliationSendFingerprint> for Message"],["impl From<ReconciliationSendFingerprint> for ReconciliationMessage"],["impl From<ReconciliationSendPayload> for Message"],["impl From<ReconciliationSendPayload> for ReconciliationMessage"],["impl From<ReconciliationTerminatePayload> for Message"],["impl From<ReconciliationTerminatePayload> for ReconciliationMessage"],["impl From<SetupBindAreaOfInterest> for Message"],["impl From<SetupBindReadCapability> for Message"],["impl From<SetupBindStaticToken> for Message"],["impl From<StaticTokenHandle> for ResourceHandle"],["impl From<Area<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeArea"],["impl From<AreaOfInterest<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeAreaOfInterest"],["impl From<AuthorisedEntry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest, McAuthorisationToken<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>>> for SerdeAuthorisedEntry"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for EntryOrForm"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for SerdeEntry"],["impl From<Hash> for PayloadDigest"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for AuthForm"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability"],["impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability"],["impl From<Range3d<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeRange3d"],["impl From<Signature> for NamespaceSignature"],["impl From<Signature> for UserSignature"],["impl From<SigningKey> for NamespaceSecretKey"],["impl From<SigningKey> for UserSecretKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<VerifyingKey> for UserPublicKey"],["impl From<[u8; 32]> for NamespaceId"],["impl From<[u8; 32]> for UserId"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index 8902586109..d96c0fcf7e 100644
--- a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -1,6 +1,6 @@
(function() {var implementors = {
"iroh":[["impl Metric for Metrics"]],
-"iroh_blobs":[["impl Metric for Metrics"]],
+"iroh_blobs":[["impl Metric for Metrics"]],
"iroh_dns_server":[["impl Metric for Metrics"]],
"iroh_docs":[["impl Metric for Metrics"]],
"iroh_gossip":[["impl Metric for Metrics"]],
fn min(self, other: Self) -> Selfwhere
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
index 590d571ec7..301d28aff1 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoCommand.html
@@ -1,9 +1,9 @@
-ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
+ProtoCommand in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;
Expand description
Commands for the gossip protocol
Aliased Type§
enum ProtoCommand {
- Join(Vec<PublicKey>),
+ Join(Vec<PublicKey>),
Broadcast(Bytes, Scope),
Quit,
-}
Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
+}Variants§
§Join(Vec<PublicKey>)
Join this topic and connect to peers.
If the list of peers is empty, will prepare the state and accept incoming join requests,
but only become operational after the first join request by another peer.
§Broadcast(Bytes, Scope)
Broadcast a message for this topic.
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
index 82531f5998..d42255752a 100644
--- a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
+++ b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html
@@ -1,9 +1,9 @@
-ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
+ProtoEvent in iroh_gossip::net - Rust Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;
Expand description
Events emitted from the gossip protocol
Aliased Type§
enum ProtoEvent {
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
- Received(GossipEvent<PublicKey>),
-}
Variants§
§NeighborUp(PublicKey)
We have a new, direct neighbor in the swarm membership layer for this topic
-§NeighborDown(PublicKey)
We dropped direct neighbor in the swarm membership layer for this topic
-§Received(GossipEvent<PublicKey>)
A gossip message was received for this topic
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
+ Received(GossipEvent<PublicKey>),
+}Variants§
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
index 07dd089029..0750fa8c38 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.read_message.html
@@ -2,5 +2,5 @@
reader: impl AsyncRead + Unpin,
buffer: &mut BytesMut,
max_message_size: usize
-) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
+) -> Result<Option<Message<PublicKey>>>Expand description
Read a length-prefixed message and decode as ProtoMessage;
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
index c3ee8b490b..9c961dc01c 100644
--- a/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
+++ b/pr/2231/docs/iroh_gossip/net/util/fn.write_message.html
@@ -1,7 +1,7 @@
write_message in iroh_gossip::net::util - Rust Function iroh_gossip::net::util::write_message
source · pub async fn write_message<W: AsyncWrite + Unpin>(
writer: &mut W,
buffer: &mut BytesMut,
- frame: &Message<PublicKey>,
+ frame: &Message<PublicKey>,
max_message_size: usize
) -> Result<()>
Expand description
Write a ProtoMessage as a length-prefixed, postcard-encoded message.
\ No newline at end of file
diff --git a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
index 90442a8828..b9e6243f91 100644
--- a/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
+++ b/pr/2231/docs/iroh_gossip/proto/topic/enum.Event.html
@@ -8,7 +8,7 @@
§Received(GossipEvent<PI>)
A gossip message was received for this topic
Trait Implementations§
source§impl<'de, PI> Deserialize<'de> for Event<PI>where
PI: Deserialize<'de>,
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<Event<PublicKey>> for GossipEvent
source§impl<PI: Ord> Ord for Event<PI>
source§impl<PI: PartialEq> PartialEq for Event<PI>
source§fn eq(&self, other: &Event<PI>) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
index 25d4340e43..704137ef24 100644
--- a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
+++ b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
@@ -30,7 +30,7 @@
) -> Result<Vec<CapabilityPack>>sourcepub async fn import_caps(&self, caps: Vec<CapabilityPack>) -> Result<()>
sourcepub async fn resolve_interests(
&self,
interests: Interests
-) -> Result<InterestMap>
sourcepub async fn shutdown(&self) -> Result<()>
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
Trait Implementations§
source§impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
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 ActorHandle
Auto Trait Implementations§
§impl Freeze for ActorHandle
§impl !RefUnwindSafe for ActorHandle
§impl Send for ActorHandle
§impl Sync for ActorHandle
§impl Unpin for ActorHandle
§impl !UnwindSafe for ActorHandle
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
§fn implicit(
diff --git a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
index e00006425d..f0097c48be 100644
--- a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
+++ b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html
@@ -501,8 +501,6 @@
501
502
503
-504
-505
use std::{sync::Arc, thread::JoinHandle};
use anyhow::Result;
@@ -734,10 +732,8 @@
let shutdown = move || {
if let Err(err) = inbox_tx.blocking_send(Input::Shutdown { reply: None }) {
warn!(?err, "Failed to send shutdown");
- } else {
- if let Err(err) = handle.join() {
- warn!(?err, "Failed to join sync actor");
- }
+ } else if let Err(err) = handle.join() {
+ warn!(?err, "Failed to join sync actor");
}
};
diff --git a/pr/2231/docs/trait.impl/core/convert/trait.From.js b/pr/2231/docs/trait.impl/core/convert/trait.From.js
index 6dbc4ff9b8..5e9d63d16e 100644
--- a/pr/2231/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/2231/docs/trait.impl/core/convert/trait.From.js
@@ -3,7 +3,7 @@
"iroh_base":[["impl From<&[u8; 32]> for Hash"],["impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr"],["impl From<FromHexError> for HexOrBase32ParseError"],["impl From<HexOrBase32ParseError> for KeyParsingError"],["impl From<BlobFormat> for u64"],["impl From<Error> for RpcError"],["impl From<Error> for RpcError"],["impl From<Url> for RelayUrl"],["impl From<DecodeError> for HexOrBase32ParseError"],["impl From<DecodeError> for Error"],["impl From<Hash> for Hash"],["impl From<Hash> for [u8; 32]"],["impl From<PublicKey> for NodeAddr"],["impl From<RelayUrl> for Url"],["impl From<Error> for KeyParsingError"],["impl From<Error> for Error"],["impl From<Hash> for Hash"],["impl From<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for Hash"],["impl From<[u8; 32]> for SecretKey"]],
"iroh_blobs":[["impl From<&str> for Tag"],["impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext"],["impl From<BlobId> for u64"],["impl From<GetResponseError> for Error"],["impl From<GetError> for FailureAction"],["impl From<AtBlobHeaderNextError> for GetError"],["impl From<AtBlobHeaderNextError> for DecodeError"],["impl From<AtBlobHeaderNextError> for Error"],["impl From<ConnectedNextError> for GetError"],["impl From<ConnectedNextError> for Error"],["impl From<DecodeError> for GetError"],["impl From<DecodeError> for Error"],["impl From<Closed> for VarInt"],["impl From<SpawnError> for Error"],["impl From<ProgressSendError> for GetError"],["impl From<ProgressSendError> for Error"],["impl From<String> for Tag"],["impl From<Vec<u8>> for SparseMemFile"],["impl From<Error> for GetError"],["impl From<Error> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<DownloadKind> for HashAndFormat"],["impl From<AtClosing> for ConnectedNext"],["impl From<AtClosing> for EndBlobNext"],["impl From<AtEndBlob> for BlobContentNext"],["impl From<AtStartChild> for ConnectedNext"],["impl From<AtStartChild> for EndBlobNext"],["impl From<AtStartRoot> for ConnectedNext"],["impl From<HashSeq> for Bytes"],["impl From<GetRequest> for Request"],["impl From<HashAndFormat> for DownloadKind"],["impl From<Tag> for Bytes"],["impl From<Bytes> for Tag"],["impl From<ClosedStream> for GetError"],["impl From<ClosedStream> for ConnectedNextError"],["impl From<ConnectionError> for GetResponseError"],["impl From<ConnectionError> for GetError"],["impl From<DecodeError> for GetResponseError"],["impl From<DecodeError> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<ReadError> for GetResponseError"],["impl From<ReadError> for GetError"],["impl From<WriteError> for GetResponseError"],["impl From<WriteError> for GetError"],["impl From<WriteError> for ConnectedNextError"],["impl<T: CustomEventSender> From<T> for EventSender"]],
"iroh_docs":[["impl From<&Author> for AuthorPublicKey"],["impl From<&AuthorPublicKey> for AuthorId"],["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecret> for NamespacePublicKey"],["impl From<&[u8; 32]> for AuthorId"],["impl From<&[u8; 32]> for NamespaceId"],["impl From<CapabilityKind> for u8"],["impl From<ValidationFailure> for InsertError"],["impl From<Error> for OpenError"],["impl From<QueryBuilder<FlatQuery>> for Query"],["impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query"],["impl From<Author> for AuthorId"],["impl From<Author> for AuthorPublicKey"],["impl From<AuthorId> for AuthorFilter"],["impl From<AuthorId> for [u8; 32]"],["impl From<AuthorPublicKey> for AuthorId"],["impl From<NamespaceId> for Capability"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecret> for Capability"],["impl From<NamespaceSecret> for NamespaceId"],["impl From<NamespaceSecret> for NamespacePublicKey"],["impl From<ReadOnly> for InsertError"],["impl From<SignedEntry> for Entry"],["impl From<SigningKey> for Author"],["impl From<SigningKey> for NamespaceSecret"],["impl From<VerifyingKey> for AuthorPublicKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<[u8; 32]> for AuthorId"],["impl From<[u8; 32]> for NamespaceId"],["impl<T: AsRef<[u8]>> From<T> for KeyFilter"]],
-"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
+"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
"iroh_net":[["impl From<&NodeInfo> for TxtAttrs<IrohAttr>"],["impl From<&TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<&Peer> for DiscoveryItem"],["impl From<IpAddr> for IpFamily"],["impl From<IpFamily> for Domain"],["impl From<Error> for ClientError"],["impl From<Error> for PingError"],["impl From<NodeInfo> for AddrInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<RemoteInfo> for NodeAddr"],["impl From<GenError> for CreateConfigError"],["impl From<ParseError> for Error"],["impl From<VerificationError> for Error"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for GenError"],["impl From<Error> for ParseError"],["impl From<Error> for VerificationError"],["impl From<JoinError> for ClientError"],["impl From<NoInitialCipherSuite> for CreateConfigError"],["impl From<SurgeError> for PingError"],["impl From<UdpSocket> for UdpSocket"],["impl<T> From<T> for ConcurrentDiscovery"]],
"iroh_willow":[["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecretKey> for NamespacePublicKey"],["impl From<&UserPublicKey> for UserId"],["impl From<&UserSecretKey> for UserPublicKey"],["impl From<InvalidPathError> for InvalidPathError2"],["impl From<DataMessage> for Message"],["impl From<IntersectionMessage> for Message"],["impl From<ReconciliationMessage> for Message"],["impl From<EventKind> for Event"],["impl From<u64> for AreaOfInterestHandle"],["impl From<u64> for CapabilityHandle"],["impl From<u64> for IntersectionHandle"],["impl From<u64> for StaticTokenHandle"],["impl From<Box<PaiReplySubspaceCapability>> for Message"],["impl From<Error> for SecretStoreError"],["impl From<EntryForm> for EntryOrForm"],["impl From<InterestBuilder> for Interests"],["impl From<SerdeAuthorisedEntry> for AuthorisedEntry"],["impl From<SerdeEntry> for Entry"],["impl From<PayloadDigest> for Hash"],["impl From<SerdeArea> for Area"],["impl From<SerdeAreaOfInterest> for AreaOfInterest"],["impl From<SerdeRange3d> for Range3d"],["impl From<NamespaceId> for CapSelector"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecretKey> for SecretKey"],["impl From<NamespaceSecretKey> for NamespaceId"],["impl From<NamespaceSecretKey> for NamespacePublicKey"],["impl From<UserId> for AuthForm"],["impl From<UserId> for UserSelector"],["impl From<UserId> for [u8; 32]"],["impl From<UserPublicKey> for UserId"],["impl From<UserSecretKey> for SecretKey"],["impl From<UserSecretKey> for UserId"],["impl From<UserSecretKey> for UserPublicKey"],["impl From<SerdeMcCapability> for McCapability"],["impl From<SerdeMcSubspaceCapability> for McSubspaceCapability"],["impl From<SerdeReadAuthorisation> for ReadAuthorisation"],["impl From<ReadAuthorisation> for SerdeReadAuthorisation"],["impl From<AreaOfInterestHandle> for ResourceHandle"],["impl From<CapabilityHandle> for ResourceHandle"],["impl From<CommitmentReveal> for Message"],["impl From<ControlAbsolve> for Message"],["impl From<ControlAnnounceDropping> for Message"],["impl From<ControlApologise> for Message"],["impl From<ControlFreeHandle> for Message"],["impl From<ControlIssueGuarantee> for Message"],["impl From<ControlPlead> for Message"],["impl From<DataSendEntry> for DataMessage"],["impl From<DataSendEntry> for Message"],["impl From<DataSendPayload> for DataMessage"],["impl From<DataSendPayload> for Message"],["impl From<DataSetMetadata> for DataMessage"],["impl From<DataSetMetadata> for Message"],["impl From<IntersectionHandle> for ResourceHandle"],["impl From<PaiBindFragment> for IntersectionMessage"],["impl From<PaiBindFragment> for Message"],["impl From<PaiReplyFragment> for IntersectionMessage"],["impl From<PaiReplyFragment> for Message"],["impl From<PaiRequestSubspaceCapability> for Message"],["impl From<ReconciliationAnnounceEntries> for Message"],["impl From<ReconciliationAnnounceEntries> for ReconciliationMessage"],["impl From<ReconciliationSendEntry> for Message"],["impl From<ReconciliationSendEntry> for ReconciliationMessage"],["impl From<ReconciliationSendFingerprint> for Message"],["impl From<ReconciliationSendFingerprint> for ReconciliationMessage"],["impl From<ReconciliationSendPayload> for Message"],["impl From<ReconciliationSendPayload> for ReconciliationMessage"],["impl From<ReconciliationTerminatePayload> for Message"],["impl From<ReconciliationTerminatePayload> for ReconciliationMessage"],["impl From<SetupBindAreaOfInterest> for Message"],["impl From<SetupBindReadCapability> for Message"],["impl From<SetupBindStaticToken> for Message"],["impl From<StaticTokenHandle> for ResourceHandle"],["impl From<Area<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeArea"],["impl From<AreaOfInterest<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeAreaOfInterest"],["impl From<AuthorisedEntry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest, McAuthorisationToken<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>>> for SerdeAuthorisedEntry"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for EntryOrForm"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for SerdeEntry"],["impl From<Hash> for PayloadDigest"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for AuthForm"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability"],["impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability"],["impl From<Range3d<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeRange3d"],["impl From<Signature> for NamespaceSignature"],["impl From<Signature> for UserSignature"],["impl From<SigningKey> for NamespaceSecretKey"],["impl From<SigningKey> for UserSecretKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<VerifyingKey> for UserPublicKey"],["impl From<[u8; 32]> for NamespaceId"],["impl From<[u8; 32]> for UserId"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index 8902586109..d96c0fcf7e 100644
--- a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -1,6 +1,6 @@
(function() {var implementors = {
"iroh":[["impl Metric for Metrics"]],
-"iroh_blobs":[["impl Metric for Metrics"]],
+"iroh_blobs":[["impl Metric for Metrics"]],
"iroh_dns_server":[["impl Metric for Metrics"]],
"iroh_docs":[["impl Metric for Metrics"]],
"iroh_gossip":[["impl Metric for Metrics"]],
Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;Expand description
Commands for the gossip protocol
+Type Alias iroh_gossip::net::ProtoCommand
source · pub type ProtoCommand = Command<PublicKey>;Expand description
Commands for the gossip protocol
Aliased Type§
enum ProtoCommand {
- Join(Vec<PublicKey>),
+ Join(Vec<PublicKey>),
Broadcast(Bytes, Scope),
Quit,
-}Variants§
Join(Vec<PublicKey>)
Join this topic and connect to peers.
+}Variants§
Join(Vec<PublicKey>)
Join this topic and connect to peers.
If the list of peers is empty, will prepare the state and accept incoming join requests, but only become operational after the first join request by another peer.
Broadcast(Bytes, Scope)
Broadcast a message for this topic.
diff --git a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html index 82531f5998..d42255752a 100644 --- a/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html +++ b/pr/2231/docs/iroh_gossip/net/type.ProtoEvent.html @@ -1,9 +1,9 @@ -Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;Expand description
Events emitted from the gossip protocol
+Type Alias iroh_gossip::net::ProtoEvent
source · pub type ProtoEvent = Event<PublicKey>;Expand description
Events emitted from the gossip protocol
Aliased Type§
enum ProtoEvent {
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
- Received(GossipEvent<PublicKey>),
-}Variants§
NeighborUp(PublicKey)
We have a new, direct neighbor in the swarm membership layer for this topic
-NeighborDown(PublicKey)
We dropped direct neighbor in the swarm membership layer for this topic
-Received(GossipEvent<PublicKey>)
A gossip message was received for this topic
+ NeighborUp(PublicKey), + NeighborDown(PublicKey), + Received(GossipEvent<PublicKey>), +}Variants§
Expand description
Read a length-prefixed message and decode as ProtoMessage;
Expand description
Read a length-prefixed message and decode as ProtoMessage;
Function iroh_gossip::net::util::write_message
source · pub async fn write_message<W: AsyncWrite + Unpin>(
writer: &mut W,
buffer: &mut BytesMut,
- frame: &Message<PublicKey>,
+ frame: &Message<PublicKey>,
max_message_size: usize
) -> Result<()>Expand description
Write a ProtoMessage as a length-prefixed, postcard-encoded message.
Received(GossipEvent<PI>)
A gossip message was received for this topic
Trait Implementations§
source§impl<'de, PI> Deserialize<'de> for Event<PI>where
PI: Deserialize<'de>,
impl<'de, PI> Deserialize<'de> for Event<PI>where
PI: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
source§impl From<Event<PublicKey>> for GossipEvent
impl From<Event<PublicKey>> for GossipEvent
source§impl<PI: Ord> Ord for Event<PI>
impl<PI: Ord> Ord for Event<PI>
source§impl<PI: PartialEq> PartialEq for Event<PI>
impl<PI: PartialEq> PartialEq for Event<PI>
source§fn eq(&self, other: &Event<PI>) -> bool
fn eq(&self, other: &Event<PI>) -> bool
self and other values to be equal, and is used
diff --git a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
index 25d4340e43..704137ef24 100644
--- a/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
+++ b/pr/2231/docs/iroh_willow/engine/struct.ActorHandle.html
@@ -30,7 +30,7 @@
) -> Result<Vec<CapabilityPack>>pub async fn import_caps(&self, caps: Vec<CapabilityPack>) -> Result<()>
pub async fn resolve_interests( &self, interests: Interests -) -> Result<InterestMap>
pub async fn shutdown(&self) -> Result<()>
Trait Implementations§
source§impl Clone for ActorHandle
impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
fn clone(&self) -> ActorHandle
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ActorHandle
impl Debug for ActorHandle
Auto Trait Implementations§
impl Freeze for ActorHandle
impl !RefUnwindSafe for ActorHandle
impl Send for ActorHandle
impl Sync for ActorHandle
impl Unpin for ActorHandle
impl !UnwindSafe for ActorHandle
Blanket Implementations§
Trait Implementations§
source§impl Clone for ActorHandle
impl Clone for ActorHandle
source§fn clone(&self) -> ActorHandle
fn clone(&self) -> ActorHandle
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ActorHandle
impl Debug for ActorHandle
Auto Trait Implementations§
impl Freeze for ActorHandle
impl !RefUnwindSafe for ActorHandle
impl Send for ActorHandle
impl Sync for ActorHandle
impl Unpin for ActorHandle
impl !UnwindSafe for ActorHandle
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
fn implicit( diff --git a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html index e00006425d..f0097c48be 100644 --- a/pr/2231/docs/src/iroh_willow/engine/actor.rs.html +++ b/pr/2231/docs/src/iroh_willow/engine/actor.rs.html @@ -501,8 +501,6 @@ 501 502 503 -504 -505
use std::{sync::Arc, thread::JoinHandle};
use anyhow::Result;
@@ -734,10 +732,8 @@
let shutdown = move || {
if let Err(err) = inbox_tx.blocking_send(Input::Shutdown { reply: None }) {
warn!(?err, "Failed to send shutdown");
- } else {
- if let Err(err) = handle.join() {
- warn!(?err, "Failed to join sync actor");
- }
+ } else if let Err(err) = handle.join() {
+ warn!(?err, "Failed to join sync actor");
}
};
diff --git a/pr/2231/docs/trait.impl/core/convert/trait.From.js b/pr/2231/docs/trait.impl/core/convert/trait.From.js
index 6dbc4ff9b8..5e9d63d16e 100644
--- a/pr/2231/docs/trait.impl/core/convert/trait.From.js
+++ b/pr/2231/docs/trait.impl/core/convert/trait.From.js
@@ -3,7 +3,7 @@
"iroh_base":[["impl From<&[u8; 32]> for Hash"],["impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr"],["impl From<FromHexError> for HexOrBase32ParseError"],["impl From<HexOrBase32ParseError> for KeyParsingError"],["impl From<BlobFormat> for u64"],["impl From<Error> for RpcError"],["impl From<Error> for RpcError"],["impl From<Url> for RelayUrl"],["impl From<DecodeError> for HexOrBase32ParseError"],["impl From<DecodeError> for Error"],["impl From<Hash> for Hash"],["impl From<Hash> for [u8; 32]"],["impl From<PublicKey> for NodeAddr"],["impl From<RelayUrl> for Url"],["impl From<Error> for KeyParsingError"],["impl From<Error> for Error"],["impl From<Hash> for Hash"],["impl From<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for Hash"],["impl From<[u8; 32]> for SecretKey"]],
"iroh_blobs":[["impl From<&str> for Tag"],["impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext"],["impl From<BlobId> for u64"],["impl From<GetResponseError> for Error"],["impl From<GetError> for FailureAction"],["impl From<AtBlobHeaderNextError> for GetError"],["impl From<AtBlobHeaderNextError> for DecodeError"],["impl From<AtBlobHeaderNextError> for Error"],["impl From<ConnectedNextError> for GetError"],["impl From<ConnectedNextError> for Error"],["impl From<DecodeError> for GetError"],["impl From<DecodeError> for Error"],["impl From<Closed> for VarInt"],["impl From<SpawnError> for Error"],["impl From<ProgressSendError> for GetError"],["impl From<ProgressSendError> for Error"],["impl From<String> for Tag"],["impl From<Vec<u8>> for SparseMemFile"],["impl From<Error> for GetError"],["impl From<Error> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<DownloadKind> for HashAndFormat"],["impl From<AtClosing> for ConnectedNext"],["impl From<AtClosing> for EndBlobNext"],["impl From<AtEndBlob> for BlobContentNext"],["impl From<AtStartChild> for ConnectedNext"],["impl From<AtStartChild> for EndBlobNext"],["impl From<AtStartRoot> for ConnectedNext"],["impl From<HashSeq> for Bytes"],["impl From<GetRequest> for Request"],["impl From<HashAndFormat> for DownloadKind"],["impl From<Tag> for Bytes"],["impl From<Bytes> for Tag"],["impl From<ClosedStream> for GetError"],["impl From<ClosedStream> for ConnectedNextError"],["impl From<ConnectionError> for GetResponseError"],["impl From<ConnectionError> for GetError"],["impl From<DecodeError> for GetResponseError"],["impl From<DecodeError> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<ReadError> for GetResponseError"],["impl From<ReadError> for GetError"],["impl From<WriteError> for GetResponseError"],["impl From<WriteError> for GetError"],["impl From<WriteError> for ConnectedNextError"],["impl<T: CustomEventSender> From<T> for EventSender"]],
"iroh_docs":[["impl From<&Author> for AuthorPublicKey"],["impl From<&AuthorPublicKey> for AuthorId"],["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecret> for NamespacePublicKey"],["impl From<&[u8; 32]> for AuthorId"],["impl From<&[u8; 32]> for NamespaceId"],["impl From<CapabilityKind> for u8"],["impl From<ValidationFailure> for InsertError"],["impl From<Error> for OpenError"],["impl From<QueryBuilder<FlatQuery>> for Query"],["impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query"],["impl From<Author> for AuthorId"],["impl From<Author> for AuthorPublicKey"],["impl From<AuthorId> for AuthorFilter"],["impl From<AuthorId> for [u8; 32]"],["impl From<AuthorPublicKey> for AuthorId"],["impl From<NamespaceId> for Capability"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecret> for Capability"],["impl From<NamespaceSecret> for NamespaceId"],["impl From<NamespaceSecret> for NamespacePublicKey"],["impl From<ReadOnly> for InsertError"],["impl From<SignedEntry> for Entry"],["impl From<SigningKey> for Author"],["impl From<SigningKey> for NamespaceSecret"],["impl From<VerifyingKey> for AuthorPublicKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<[u8; 32]> for AuthorId"],["impl From<[u8; 32]> for NamespaceId"],["impl<T: AsRef<[u8]>> From<T> for KeyFilter"]],
-"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
+"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
"iroh_net":[["impl From<&NodeInfo> for TxtAttrs<IrohAttr>"],["impl From<&TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<&Peer> for DiscoveryItem"],["impl From<IpAddr> for IpFamily"],["impl From<IpFamily> for Domain"],["impl From<Error> for ClientError"],["impl From<Error> for PingError"],["impl From<NodeInfo> for AddrInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<RemoteInfo> for NodeAddr"],["impl From<GenError> for CreateConfigError"],["impl From<ParseError> for Error"],["impl From<VerificationError> for Error"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for GenError"],["impl From<Error> for ParseError"],["impl From<Error> for VerificationError"],["impl From<JoinError> for ClientError"],["impl From<NoInitialCipherSuite> for CreateConfigError"],["impl From<SurgeError> for PingError"],["impl From<UdpSocket> for UdpSocket"],["impl<T> From<T> for ConcurrentDiscovery"]],
"iroh_willow":[["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecretKey> for NamespacePublicKey"],["impl From<&UserPublicKey> for UserId"],["impl From<&UserSecretKey> for UserPublicKey"],["impl From<InvalidPathError> for InvalidPathError2"],["impl From<DataMessage> for Message"],["impl From<IntersectionMessage> for Message"],["impl From<ReconciliationMessage> for Message"],["impl From<EventKind> for Event"],["impl From<u64> for AreaOfInterestHandle"],["impl From<u64> for CapabilityHandle"],["impl From<u64> for IntersectionHandle"],["impl From<u64> for StaticTokenHandle"],["impl From<Box<PaiReplySubspaceCapability>> for Message"],["impl From<Error> for SecretStoreError"],["impl From<EntryForm> for EntryOrForm"],["impl From<InterestBuilder> for Interests"],["impl From<SerdeAuthorisedEntry> for AuthorisedEntry"],["impl From<SerdeEntry> for Entry"],["impl From<PayloadDigest> for Hash"],["impl From<SerdeArea> for Area"],["impl From<SerdeAreaOfInterest> for AreaOfInterest"],["impl From<SerdeRange3d> for Range3d"],["impl From<NamespaceId> for CapSelector"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecretKey> for SecretKey"],["impl From<NamespaceSecretKey> for NamespaceId"],["impl From<NamespaceSecretKey> for NamespacePublicKey"],["impl From<UserId> for AuthForm"],["impl From<UserId> for UserSelector"],["impl From<UserId> for [u8; 32]"],["impl From<UserPublicKey> for UserId"],["impl From<UserSecretKey> for SecretKey"],["impl From<UserSecretKey> for UserId"],["impl From<UserSecretKey> for UserPublicKey"],["impl From<SerdeMcCapability> for McCapability"],["impl From<SerdeMcSubspaceCapability> for McSubspaceCapability"],["impl From<SerdeReadAuthorisation> for ReadAuthorisation"],["impl From<ReadAuthorisation> for SerdeReadAuthorisation"],["impl From<AreaOfInterestHandle> for ResourceHandle"],["impl From<CapabilityHandle> for ResourceHandle"],["impl From<CommitmentReveal> for Message"],["impl From<ControlAbsolve> for Message"],["impl From<ControlAnnounceDropping> for Message"],["impl From<ControlApologise> for Message"],["impl From<ControlFreeHandle> for Message"],["impl From<ControlIssueGuarantee> for Message"],["impl From<ControlPlead> for Message"],["impl From<DataSendEntry> for DataMessage"],["impl From<DataSendEntry> for Message"],["impl From<DataSendPayload> for DataMessage"],["impl From<DataSendPayload> for Message"],["impl From<DataSetMetadata> for DataMessage"],["impl From<DataSetMetadata> for Message"],["impl From<IntersectionHandle> for ResourceHandle"],["impl From<PaiBindFragment> for IntersectionMessage"],["impl From<PaiBindFragment> for Message"],["impl From<PaiReplyFragment> for IntersectionMessage"],["impl From<PaiReplyFragment> for Message"],["impl From<PaiRequestSubspaceCapability> for Message"],["impl From<ReconciliationAnnounceEntries> for Message"],["impl From<ReconciliationAnnounceEntries> for ReconciliationMessage"],["impl From<ReconciliationSendEntry> for Message"],["impl From<ReconciliationSendEntry> for ReconciliationMessage"],["impl From<ReconciliationSendFingerprint> for Message"],["impl From<ReconciliationSendFingerprint> for ReconciliationMessage"],["impl From<ReconciliationSendPayload> for Message"],["impl From<ReconciliationSendPayload> for ReconciliationMessage"],["impl From<ReconciliationTerminatePayload> for Message"],["impl From<ReconciliationTerminatePayload> for ReconciliationMessage"],["impl From<SetupBindAreaOfInterest> for Message"],["impl From<SetupBindReadCapability> for Message"],["impl From<SetupBindStaticToken> for Message"],["impl From<StaticTokenHandle> for ResourceHandle"],["impl From<Area<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeArea"],["impl From<AreaOfInterest<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeAreaOfInterest"],["impl From<AuthorisedEntry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest, McAuthorisationToken<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>>> for SerdeAuthorisedEntry"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for EntryOrForm"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for SerdeEntry"],["impl From<Hash> for PayloadDigest"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for AuthForm"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability"],["impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability"],["impl From<Range3d<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeRange3d"],["impl From<Signature> for NamespaceSignature"],["impl From<Signature> for UserSignature"],["impl From<SigningKey> for NamespaceSecretKey"],["impl From<SigningKey> for UserSecretKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<VerifyingKey> for UserPublicKey"],["impl From<[u8; 32]> for NamespaceId"],["impl From<[u8; 32]> for UserId"]]
};if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()
\ No newline at end of file
diff --git a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
index 8902586109..d96c0fcf7e 100644
--- a/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
+++ b/pr/2231/docs/trait.impl/iroh_metrics/core/trait.Metric.js
@@ -1,6 +1,6 @@
(function() {var implementors = {
"iroh":[["impl Metric for Metrics"]],
-"iroh_blobs":[["impl Metric for Metrics"]],
+"iroh_blobs":[["impl Metric for Metrics"]],
"iroh_dns_server":[["impl Metric for Metrics"]],
"iroh_docs":[["impl Metric for Metrics"]],
"iroh_gossip":[["impl Metric for Metrics"]],