Struct iroh_blobs::downloader::DownloadRequest
source · pub struct DownloadRequest { /* private fields */ }Expand description
A download request.
Implementations§
source§impl DownloadRequest
impl DownloadRequest
sourcepub fn new(
resource: impl Into<DownloadKind>,
- nodes: impl IntoIterator<Item = impl Into<NodeAddr>>
+ nodes: impl IntoIterator<Item = impl Into<NodeAddr>>
) -> Self
pub fn new( resource: impl Into<DownloadKind>, - nodes: impl IntoIterator<Item = impl Into<NodeAddr>> + nodes: impl IntoIterator<Item = impl Into<NodeAddr>> ) -> Self
Create a new download request.
It is the responsibility of the caller to ensure that the data is tagged either with a temp tag or with a persistent tag to make sure the data is not garbage collected during diff --git a/pr/2574/docs/iroh_blobs/downloader/struct.Downloader.html b/pr/2574/docs/iroh_blobs/downloader/struct.Downloader.html index b7208d0fde..11029b2de8 100644 --- a/pr/2574/docs/iroh_blobs/downloader/struct.Downloader.html +++ b/pr/2574/docs/iroh_blobs/downloader/struct.Downloader.html @@ -11,7 +11,7 @@ S: Store,
Create a new Downloader with custom ConcurrencyLimits and RetryConfig.
sourcepub async fn queue(&self, request: DownloadRequest) -> DownloadHandle ⓘ
pub async fn queue(&self, request: DownloadRequest) -> DownloadHandle ⓘ
Queue a download.
sourcepub async fn cancel(&self, handle: DownloadHandle)
pub async fn cancel(&self, handle: DownloadHandle)
Cancel a download.
-sourcepub async fn nodes_have(&mut self, hash: Hash, nodes: Vec<NodeId>)
pub async fn nodes_have(&mut self, hash: Hash, nodes: Vec<NodeId>)
Declare that certains nodes can be used to download a hash.
+sourcepub async fn nodes_have(&mut self, hash: Hash, nodes: Vec<NodeId>)
pub async fn nodes_have(&mut self, hash: Hash, nodes: Vec<NodeId>)
Declare that certains nodes can be used to download a hash.
Note that this does not start a download, but only provides new nodes to already queued
downloads. Use Self::queue to queue a download.
Trait Implementations§
source§impl Clone for Downloader
impl Clone for Downloader
source§fn clone(&self) -> Downloader
fn clone(&self) -> Downloader
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for Downloader
impl !RefUnwindSafe for Downloader
impl Send for Downloader
impl Sync for Downloader
impl Unpin for Downloader
impl !UnwindSafe for Downloader
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/downloader/trait.Dialer.html b/pr/2574/docs/iroh_blobs/downloader/trait.Dialer.html
index 91be9fbea3..6f4034411a 100644
--- a/pr/2574/docs/iroh_blobs/downloader/trait.Dialer.html
+++ b/pr/2574/docs/iroh_blobs/downloader/trait.Dialer.html
@@ -1,13 +1,13 @@
-Dialer in iroh_blobs::downloader - Rust Trait iroh_blobs::downloader::Dialer
source · pub trait Dialer: Stream<Item = (NodeId, Result<Self::Connection>)> + Unpin {
+Dialer in iroh_blobs::downloader - Rust Trait iroh_blobs::downloader::Dialer
source · pub trait Dialer: Stream<Item = (NodeId, Result<Self::Connection>)> + Unpin {
type Connection: Clone;
// Required methods
- fn queue_dial(&mut self, node_id: NodeId);
+ fn queue_dial(&mut self, node_id: NodeId);
fn pending_count(&self) -> usize;
- fn is_pending(&self, node: NodeId) -> bool;
+ fn is_pending(&self, node: NodeId) -> bool;
}
Expand description
Trait modeling a dialer. This allows for IO-less testing.
Required Associated Types§
sourcetype Connection: Clone
Type of connections returned by the Dialer.
-Required Methods§
sourcefn queue_dial(&mut self, node_id: NodeId)
Dial a node.
+Required Methods§
sourcefn queue_dial(&mut self, node_id: NodeId)
Dial a node.
sourcefn pending_count(&self) -> usize
Get the number of dialing nodes.
-sourcefn is_pending(&self, node: NodeId) -> bool
Check if a node is being dialed.
-Implementations on Foreign Types§
source§impl Dialer for Dialer
§type Connection = Connection
source§fn queue_dial(&mut self, node_id: NodeId)
source§fn pending_count(&self) -> usize
source§fn is_pending(&self, node: NodeId) -> bool
Implementors§
\ No newline at end of file
+
sourcefn is_pending(&self, node: NodeId) -> bool
Check if a node is being dialed.
+Implementations on Foreign Types§
source§impl Dialer for Dialer
§type Connection = Connection
source§fn queue_dial(&mut self, node_id: NodeId)
source§fn pending_count(&self) -> usize
source§fn is_pending(&self, node: NodeId) -> bool
Implementors§
impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/downloader/trait.Dialer.html b/pr/2574/docs/iroh_blobs/downloader/trait.Dialer.html
index 91be9fbea3..6f4034411a 100644
--- a/pr/2574/docs/iroh_blobs/downloader/trait.Dialer.html
+++ b/pr/2574/docs/iroh_blobs/downloader/trait.Dialer.html
@@ -1,13 +1,13 @@
-Dialer in iroh_blobs::downloader - Rust Trait iroh_blobs::downloader::Dialer
source · pub trait Dialer: Stream<Item = (NodeId, Result<Self::Connection>)> + Unpin {
+Dialer in iroh_blobs::downloader - Rust Trait iroh_blobs::downloader::Dialer
source · pub trait Dialer: Stream<Item = (NodeId, Result<Self::Connection>)> + Unpin {
type Connection: Clone;
// Required methods
- fn queue_dial(&mut self, node_id: NodeId);
+ fn queue_dial(&mut self, node_id: NodeId);
fn pending_count(&self) -> usize;
- fn is_pending(&self, node: NodeId) -> bool;
+ fn is_pending(&self, node: NodeId) -> bool;
}
Expand description
Trait modeling a dialer. This allows for IO-less testing.
Required Associated Types§
sourcetype Connection: Clone
Type of connections returned by the Dialer.
-Required Methods§
sourcefn queue_dial(&mut self, node_id: NodeId)
Dial a node.
+Required Methods§
sourcefn queue_dial(&mut self, node_id: NodeId)
Dial a node.
sourcefn pending_count(&self) -> usize
Get the number of dialing nodes.
-sourcefn is_pending(&self, node: NodeId) -> bool
Check if a node is being dialed.
-Implementations on Foreign Types§
source§impl Dialer for Dialer
§type Connection = Connection
source§fn queue_dial(&mut self, node_id: NodeId)
source§fn pending_count(&self) -> usize
source§fn is_pending(&self, node: NodeId) -> bool
Implementors§
\ No newline at end of file
+
sourcefn is_pending(&self, node: NodeId) -> bool
Check if a node is being dialed.
+Implementations on Foreign Types§
source§impl Dialer for Dialer
§type Connection = Connection
source§fn queue_dial(&mut self, node_id: NodeId)
source§fn pending_count(&self) -> usize
source§fn is_pending(&self, node: NodeId) -> bool
Implementors§
Trait iroh_blobs::downloader::Dialer
source · pub trait Dialer: Stream<Item = (NodeId, Result<Self::Connection>)> + Unpin {
+Dialer in iroh_blobs::downloader - Rust Trait iroh_blobs::downloader::Dialer
source · pub trait Dialer: Stream<Item = (NodeId, Result<Self::Connection>)> + Unpin {
type Connection: Clone;
// Required methods
- fn queue_dial(&mut self, node_id: NodeId);
+ fn queue_dial(&mut self, node_id: NodeId);
fn pending_count(&self) -> usize;
- fn is_pending(&self, node: NodeId) -> bool;
+ fn is_pending(&self, node: NodeId) -> bool;
}
Expand description
Trait modeling a dialer. This allows for IO-less testing.
Required Associated Types§
sourcetype Connection: Clone
Type of connections returned by the Dialer.
-Required Methods§
sourcefn queue_dial(&mut self, node_id: NodeId)
Dial a node.
+Required Methods§
sourcefn queue_dial(&mut self, node_id: NodeId)
Dial a node.
sourcefn pending_count(&self) -> usize
Get the number of dialing nodes.
-sourcefn is_pending(&self, node: NodeId) -> bool
Check if a node is being dialed.
-Implementations on Foreign Types§
source§impl Dialer for Dialer
§type Connection = Connection
source§fn queue_dial(&mut self, node_id: NodeId)
source§fn pending_count(&self) -> usize
source§fn is_pending(&self, node: NodeId) -> bool
Implementors§
\ No newline at end of file
+sourcefn is_pending(&self, node: NodeId) -> bool
fn is_pending(&self, node: NodeId) -> bool
Check if a node is being dialed.
+source§impl Dialer for Dialer
impl Dialer for Dialer
type Connection = Connection
fn queue_dial(&mut self, node_id: NodeId)
fn pending_count(&self) -> usize
fn is_pending(&self, node: NodeId) -> bool
Enum iroh_blobs::BlobFormat
pub enum BlobFormat {
+BlobFormat in iroh_blobs - Rust Enum iroh_blobs::BlobFormat
source · pub enum BlobFormat {
Raw,
HashSeq,
}
Expand description
A format identifier
Variants§
Implementations§
§impl BlobFormat
pub const fn is_hash_seq(&self) -> bool
Is hash seq format
-Trait Implementations§
§impl Clone for BlobFormat
§fn clone(&self) -> BlobFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for BlobFormat
§impl Default for BlobFormat
§fn default() -> BlobFormat
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for BlobFormat
§fn deserialize<__D>(
+
Implementations§
source§impl BlobFormat
Trait Implementations§
source§impl Clone for BlobFormat
source§fn clone(&self) -> BlobFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for BlobFormat
source§impl Default for BlobFormat
source§fn default() -> BlobFormat
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for BlobFormat
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<BlobFormat, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for BlobFormat
§impl Hash for BlobFormat
§fn hash<__H>(&self, state: &mut __H)where
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for BlobFormat
source§impl Hash for BlobFormat
§impl MaxSize for BlobFormat
§const POSTCARD_MAX_SIZE: usize = 1usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for BlobFormat
source§impl MaxSize for BlobFormat
source§const POSTCARD_MAX_SIZE: usize = 1usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for BlobFormat
source§fn cmp(&self, other: &BlobFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for BlobFormat
§fn eq(&self, other: &BlobFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for BlobFormat
source§fn eq(&self, other: &BlobFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for BlobFormat
§fn partial_cmp(&self, other: &BlobFormat) -> Option<Ordering>
source§impl PartialOrd for BlobFormat
source§fn partial_cmp(&self, other: &BlobFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for BlobFormat
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for BlobFormat
§impl Eq for BlobFormat
§impl StructuralPartialEq for BlobFormat
Auto Trait Implementations§
§impl Freeze for BlobFormat
§impl RefUnwindSafe for BlobFormat
§impl Send for BlobFormat
§impl Sync for BlobFormat
§impl Unpin for BlobFormat
§impl UnwindSafe for BlobFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Copy for BlobFormat
source§impl Eq for BlobFormat
source§impl StructuralPartialEq for BlobFormat
Auto Trait Implementations§
impl Freeze for BlobFormat
impl RefUnwindSafe for BlobFormat
impl Send for BlobFormat
impl Sync for BlobFormat
impl Unpin for BlobFormat
impl UnwindSafe for BlobFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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/2574/docs/iroh_blobs/export/enum.ExportProgress.html b/pr/2574/docs/iroh_blobs/export/enum.ExportProgress.html
index 2cb16cbc51..75c1926b4e 100644
--- a/pr/2574/docs/iroh_blobs/export/enum.ExportProgress.html
+++ b/pr/2574/docs/iroh_blobs/export/enum.ExportProgress.html
@@ -14,7 +14,7 @@
id: u64,
},
AllDone,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress events for an export operation
Variants§
§Found
The download part is done for this id, we are now exporting the data
to the specified out path.
@@ -30,7 +30,7 @@ to the specified out path.
§Done
We finished exporting a blob
§AllDone
We are done with the whole operation.
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_blobs/export/enum.ExportProgress.html b/pr/2574/docs/iroh_blobs/export/enum.ExportProgress.html
index 2cb16cbc51..75c1926b4e 100644
--- a/pr/2574/docs/iroh_blobs/export/enum.ExportProgress.html
+++ b/pr/2574/docs/iroh_blobs/export/enum.ExportProgress.html
@@ -14,7 +14,7 @@
id: u64,
},
AllDone,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress events for an export operation
Variants§
§Found
The download part is done for this id, we are now exporting the data
to the specified out path.
@@ -30,7 +30,7 @@ to the specified out path.
§Done
We finished exporting a blob
§AllDone
We are done with the whole operation.
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
Expand description
Progress events for an export operation
Variants§
Found
The download part is done for this id, we are now exporting the data to the specified out path.
@@ -30,7 +30,7 @@ to the specified out path.Done
We finished exporting a blob
AllDone
We are done with the whole operation.
-Abort(RpcError)
We got an error and need to abort.
+Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Clone for ExportProgress
impl Clone for ExportProgress
source§fn clone(&self) -> ExportProgress
fn clone(&self) -> ExportProgress
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ExportProgress
impl Debug for ExportProgress
source§impl<'de> Deserialize<'de> for ExportProgress
impl<'de> Deserialize<'de> for ExportProgress
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 ExportProgress
impl RefUnwindSafe for ExportProgress
impl Send for ExportProgress
impl Sync for ExportProgress
impl Unpin for ExportProgress
impl UnwindSafe for ExportProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/get/db/enum.DownloadProgress.html b/pr/2574/docs/iroh_blobs/get/db/enum.DownloadProgress.html
index 0f6566a724..a4017c77d6 100644
--- a/pr/2574/docs/iroh_blobs/get/db/enum.DownloadProgress.html
+++ b/pr/2574/docs/iroh_blobs/get/db/enum.DownloadProgress.html
@@ -25,7 +25,7 @@
id: u64,
},
AllDone(Stats),
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the get operation.
Variants§
§InitialState(TransferState)
Initial state if subscribing to a running or queued transfer.
§FoundLocal
Data was found locally.
@@ -51,7 +51,7 @@ allows to identify the children by their offset in the hashseq.
§AllDone(Stats)
All operations finished.
This will be the last message in the stream.
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
This will be the last message in the stream.
Trait Implementations§
source§impl Clone for DownloadProgress
source§fn clone(&self) -> DownloadProgress
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 DownloadProgress
source§impl<'de> Deserialize<'de> for DownloadProgress
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 DownloadProgress
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2574/docs/iroh_blobs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_blobs/metrics/struct.Metrics.html
index 07018ef507..e20ee637f7 100644
--- a/pr/2574/docs/iroh_blobs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_blobs/metrics/struct.Metrics.html
@@ -1,20 +1,20 @@
Metrics in iroh_blobs::metrics - Rust 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
§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
diff --git a/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html b/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
index 0f1b217f59..efdbfbac83 100644
--- a/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
+++ b/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
@@ -17,7 +17,7 @@
format: BlobFormat,
tag: Tag,
},
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the add operation.
Variants§
§Found
An item was found with name name, from now on referred to via id
Fields
§Abort(RpcError)
We got an error and need to abort.
This will be the last message in the stream.
Trait Implementations§
source§impl Debug for AddProgress
source§impl<'de> Deserialize<'de> for AddProgress
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 AddProgress
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html b/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
index c6c87fc652..fbaced9a62 100644
--- a/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
+++ b/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
@@ -6,7 +6,7 @@
level: ReportLevel,
},
Done,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the validate operation
Variants§
§level: ReportLevelThe level of the message
§Done
Consistency check ended
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Debug for ConsistencyCheckProgress
source§impl<'de> Deserialize<'de> for ConsistencyCheckProgress
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 ConsistencyCheckProgress
§impl RefUnwindSafe for ConsistencyCheckProgress
§impl Send for ConsistencyCheckProgress
§impl Sync for ConsistencyCheckProgress
§impl Unpin for ConsistencyCheckProgress
§impl UnwindSafe for ConsistencyCheckProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html b/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
index 169389ef27..cbf150ca6b 100644
--- a/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
+++ b/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
@@ -31,7 +31,7 @@
ranges: RangeSpec,
},
AllDone,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the validate operation
Variants§
§Starting
started validating
Fields
§total: u64The total number of entries to validate
@@ -62,7 +62,7 @@ Otherwise it might be an url or something else to uniquely identify the entry.
§AllDone
We are done with the whole operation.
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Debug for ValidateProgress
source§impl<'de> Deserialize<'de> for ValidateProgress
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 ValidateProgress
§impl RefUnwindSafe for ValidateProgress
§impl Send for ValidateProgress
§impl Sync for ValidateProgress
§impl Unpin for ValidateProgress
§impl UnwindSafe for ValidateProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/struct.Hash.html b/pr/2574/docs/iroh_blobs/struct.Hash.html
index 8d80843694..13754b0781 100644
--- a/pr/2574/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2574/docs/iroh_blobs/struct.Hash.html
@@ -1,36 +1,36 @@
-Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
-Implementations§
§impl Hash
pub const fn from_bytes(bytes: [u8; 32]) -> Hash
Create a Hash from its raw bytes representation.
-pub fn fmt_short(&self) -> String
Convert to a base32 string limited to the first 10 bytes for a friendly string
+
Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
source · pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
+Implementations§
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hash
source§fn deserialize<D>(
deserializer: D
) -> Result<Hash, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl Hash for Hash
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl MaxSize for Hash
§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
-type can have, in bytes.source§impl MaxSize for Hash
source§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for Hash
source§impl PartialEq for Hash
§impl PartialOrd for Hash
source§impl PartialOrd for Hash
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for Hash
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§impl Copy for Hash
§impl Eq for Hash
§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
source§impl Copy for Hash
source§impl Eq for Hash
source§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
index 8feeded138..56a6e569ef 100644
--- a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
@@ -1,37 +1,37 @@
-HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
pub struct HashAndFormat {
+HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
Fields§
§hash: HashThe hash
§format: BlobFormatThe format
-Implementations§
§impl HashAndFormat
pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
-pub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
-pub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
-Trait Implementations§
§impl Clone for HashAndFormat
§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for HashAndFormat
§impl<'de> Deserialize<'de> for HashAndFormat
§fn deserialize<D>(
+
Implementations§
source§impl HashAndFormat
sourcepub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
+sourcepub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
+sourcepub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
+Trait Implementations§
source§impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
source§fn deserialize<D>(
deserializer: D
) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.§impl FromStr for HashAndFormat
§impl Hash for HashAndFormat
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.source§impl FromStr for HashAndFormat
source§impl Hash for HashAndFormat
§impl MaxSize for HashAndFormat
§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for HashAndFormat
source§impl MaxSize for HashAndFormat
source§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for HashAndFormat
§fn eq(&self, other: &HashAndFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for HashAndFormat
§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
source§impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for HashAndFormat
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable widthsource§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
HashAndFormat: 'a,
Deserializes data
-Implementations may return a view over data, or an owned typesource§fn as_bytes<'a, 'b>(
value: &'a <HashAndFormat as Value>::SelfType<'b>
) -> <HashAndFormat as Value>::AsBytes<'a>where
'b: 'a,
- HashAndFormat: 'a + 'b,
Serialize the value to a slice§impl Copy for HashAndFormat
§impl Eq for HashAndFormat
§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ HashAndFormat: 'a + 'b,
Serialize the value to a slicesource§impl Copy for HashAndFormat
source§impl Eq for HashAndFormat
source§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c5cfbcbcf..201a71e4e6 100644
--- a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()>sourcepub async fn delete_prefix(
&self,
diff --git a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
index 6b3095b674..54663659a1 100644
--- a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 064089c3af..3edb90101c 100644
--- a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/index.html b/pr/2574/docs/iroh_docs/engine/index.html
index 78e6935d96..54c0e74ff7 100644
--- a/pr/2574/docs/iroh_docs/engine/index.html
+++ b/pr/2574/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/struct.Engine.html b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
index 5d21d442bd..5c42772b47 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
index 3c294863e1..39134cf32c 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2574/docs/iroh_docs/index.html b/pr/2574/docs/iroh_docs/index.html
index 8f3ecf4dad..14f362f923 100644
--- a/pr/2574/docs/iroh_docs/index.html
+++ b/pr/2574/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
index 0500b2c33c..360a5b6ff1 100644
--- a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
index 1fbc7ec946..9e5d3848a2 100644
--- a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
index 11716e3947..348ca1a91d 100644
--- a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
index 2b174a9405..8a2dbfcb44 100644
--- a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
index e94f240f10..b615c94578 100644
--- a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 67917f2858..35a2679676 100644
--- a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorId.html b/pr/2574/docs/iroh_docs/struct.AuthorId.html
index d3192b1d83..9f01cf7e5c 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
index e1a05b2ab9..9f1e178d2f 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.DocTicket.html b/pr/2574/docs/iroh_docs/struct.DocTicket.html
index 97a22ba526..60c185fa78 100644
--- a/pr/2574/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2574/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/struct.NamespaceId.html b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
index 3edcc4840a..7caf52a547 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
index e7fbc79a72..3eb316060a 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Entry.html b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
index 1bf24a448d..b520fa4621 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/get/db/enum.DownloadProgress.html b/pr/2574/docs/iroh_blobs/get/db/enum.DownloadProgress.html
index 0f6566a724..a4017c77d6 100644
--- a/pr/2574/docs/iroh_blobs/get/db/enum.DownloadProgress.html
+++ b/pr/2574/docs/iroh_blobs/get/db/enum.DownloadProgress.html
@@ -25,7 +25,7 @@
id: u64,
},
AllDone(Stats),
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the get operation.
Variants§
§InitialState(TransferState)
Initial state if subscribing to a running or queued transfer.
§FoundLocal
Data was found locally.
@@ -51,7 +51,7 @@ allows to identify the children by their offset in the hashseq.
§AllDone(Stats)
All operations finished.
This will be the last message in the stream.
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
This will be the last message in the stream.
Trait Implementations§
source§impl Clone for DownloadProgress
source§fn clone(&self) -> DownloadProgress
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 DownloadProgress
source§impl<'de> Deserialize<'de> for DownloadProgress
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 DownloadProgress
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2574/docs/iroh_blobs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_blobs/metrics/struct.Metrics.html
index 07018ef507..e20ee637f7 100644
--- a/pr/2574/docs/iroh_blobs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_blobs/metrics/struct.Metrics.html
@@ -1,20 +1,20 @@
Metrics in iroh_blobs::metrics - Rust 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
§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
diff --git a/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html b/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
index 0f1b217f59..efdbfbac83 100644
--- a/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
+++ b/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
@@ -17,7 +17,7 @@
format: BlobFormat,
tag: Tag,
},
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the add operation.
Variants§
§Found
An item was found with name name, from now on referred to via id
Fields
§Abort(RpcError)
We got an error and need to abort.
This will be the last message in the stream.
Trait Implementations§
source§impl Debug for AddProgress
source§impl<'de> Deserialize<'de> for AddProgress
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 AddProgress
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html b/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
index c6c87fc652..fbaced9a62 100644
--- a/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
+++ b/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
@@ -6,7 +6,7 @@
level: ReportLevel,
},
Done,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the validate operation
Variants§
§level: ReportLevelThe level of the message
§Done
Consistency check ended
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Debug for ConsistencyCheckProgress
source§impl<'de> Deserialize<'de> for ConsistencyCheckProgress
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 ConsistencyCheckProgress
§impl RefUnwindSafe for ConsistencyCheckProgress
§impl Send for ConsistencyCheckProgress
§impl Sync for ConsistencyCheckProgress
§impl Unpin for ConsistencyCheckProgress
§impl UnwindSafe for ConsistencyCheckProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html b/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
index 169389ef27..cbf150ca6b 100644
--- a/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
+++ b/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
@@ -31,7 +31,7 @@
ranges: RangeSpec,
},
AllDone,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the validate operation
Variants§
§Starting
started validating
Fields
§total: u64The total number of entries to validate
@@ -62,7 +62,7 @@ Otherwise it might be an url or something else to uniquely identify the entry.
§AllDone
We are done with the whole operation.
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Debug for ValidateProgress
source§impl<'de> Deserialize<'de> for ValidateProgress
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 ValidateProgress
§impl RefUnwindSafe for ValidateProgress
§impl Send for ValidateProgress
§impl Sync for ValidateProgress
§impl Unpin for ValidateProgress
§impl UnwindSafe for ValidateProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/struct.Hash.html b/pr/2574/docs/iroh_blobs/struct.Hash.html
index 8d80843694..13754b0781 100644
--- a/pr/2574/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2574/docs/iroh_blobs/struct.Hash.html
@@ -1,36 +1,36 @@
-Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
-Implementations§
§impl Hash
pub const fn from_bytes(bytes: [u8; 32]) -> Hash
Create a Hash from its raw bytes representation.
-pub fn fmt_short(&self) -> String
Convert to a base32 string limited to the first 10 bytes for a friendly string
+
Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
source · pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
+Implementations§
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hash
source§fn deserialize<D>(
deserializer: D
) -> Result<Hash, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl Hash for Hash
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl MaxSize for Hash
§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
-type can have, in bytes.source§impl MaxSize for Hash
source§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for Hash
source§impl PartialEq for Hash
§impl PartialOrd for Hash
source§impl PartialOrd for Hash
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for Hash
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§impl Copy for Hash
§impl Eq for Hash
§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
source§impl Copy for Hash
source§impl Eq for Hash
source§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
index 8feeded138..56a6e569ef 100644
--- a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
@@ -1,37 +1,37 @@
-HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
pub struct HashAndFormat {
+HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
Fields§
§hash: HashThe hash
§format: BlobFormatThe format
-Implementations§
§impl HashAndFormat
pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
-pub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
-pub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
-Trait Implementations§
§impl Clone for HashAndFormat
§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for HashAndFormat
§impl<'de> Deserialize<'de> for HashAndFormat
§fn deserialize<D>(
+
Implementations§
source§impl HashAndFormat
sourcepub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
+sourcepub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
+sourcepub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
+Trait Implementations§
source§impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
source§fn deserialize<D>(
deserializer: D
) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.§impl FromStr for HashAndFormat
§impl Hash for HashAndFormat
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.source§impl FromStr for HashAndFormat
source§impl Hash for HashAndFormat
§impl MaxSize for HashAndFormat
§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for HashAndFormat
source§impl MaxSize for HashAndFormat
source§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for HashAndFormat
§fn eq(&self, other: &HashAndFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for HashAndFormat
§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
source§impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for HashAndFormat
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable widthsource§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
HashAndFormat: 'a,
Deserializes data
-Implementations may return a view over data, or an owned typesource§fn as_bytes<'a, 'b>(
value: &'a <HashAndFormat as Value>::SelfType<'b>
) -> <HashAndFormat as Value>::AsBytes<'a>where
'b: 'a,
- HashAndFormat: 'a + 'b,
Serialize the value to a slice§impl Copy for HashAndFormat
§impl Eq for HashAndFormat
§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ HashAndFormat: 'a + 'b,
Serialize the value to a slicesource§impl Copy for HashAndFormat
source§impl Eq for HashAndFormat
source§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c5cfbcbcf..201a71e4e6 100644
--- a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()>sourcepub async fn delete_prefix(
&self,
diff --git a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
index 6b3095b674..54663659a1 100644
--- a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 064089c3af..3edb90101c 100644
--- a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/index.html b/pr/2574/docs/iroh_docs/engine/index.html
index 78e6935d96..54c0e74ff7 100644
--- a/pr/2574/docs/iroh_docs/engine/index.html
+++ b/pr/2574/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/struct.Engine.html b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
index 5d21d442bd..5c42772b47 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
index 3c294863e1..39134cf32c 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2574/docs/iroh_docs/index.html b/pr/2574/docs/iroh_docs/index.html
index 8f3ecf4dad..14f362f923 100644
--- a/pr/2574/docs/iroh_docs/index.html
+++ b/pr/2574/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
index 0500b2c33c..360a5b6ff1 100644
--- a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
index 1fbc7ec946..9e5d3848a2 100644
--- a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
index 11716e3947..348ca1a91d 100644
--- a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
index 2b174a9405..8a2dbfcb44 100644
--- a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
index e94f240f10..b615c94578 100644
--- a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 67917f2858..35a2679676 100644
--- a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorId.html b/pr/2574/docs/iroh_docs/struct.AuthorId.html
index d3192b1d83..9f01cf7e5c 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
index e1a05b2ab9..9f1e178d2f 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.DocTicket.html b/pr/2574/docs/iroh_docs/struct.DocTicket.html
index 97a22ba526..60c185fa78 100644
--- a/pr/2574/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2574/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/struct.NamespaceId.html b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
index 3edcc4840a..7caf52a547 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
index e7fbc79a72..3eb316060a 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Entry.html b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
index 1bf24a448d..b520fa4621 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
Expand description
Progress updates for the get operation.
Variants§
InitialState(TransferState)
Initial state if subscribing to a running or queued transfer.
FoundLocal
Data was found locally.
@@ -51,7 +51,7 @@ allows to identify the children by their offset in the hashseq.AllDone(Stats)
All operations finished.
This will be the last message in the stream.
-Abort(RpcError)
We got an error and need to abort.
+Abort(RpcError)
We got an error and need to abort.
This will be the last message in the stream.
Trait Implementations§
source§impl Clone for DownloadProgress
impl Clone for DownloadProgress
source§fn clone(&self) -> DownloadProgress
fn clone(&self) -> DownloadProgress
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DownloadProgress
impl Debug for DownloadProgress
source§impl<'de> Deserialize<'de> for DownloadProgress
impl<'de> Deserialize<'de> for DownloadProgress
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 DownloadProgress
impl Serialize for DownloadProgress
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2574/docs/iroh_blobs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_blobs/metrics/struct.Metrics.html
index 07018ef507..e20ee637f7 100644
--- a/pr/2574/docs/iroh_blobs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_blobs/metrics/struct.Metrics.html
@@ -1,20 +1,20 @@
Metrics in iroh_blobs::metrics - Rust 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
§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
diff --git a/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html b/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
index 0f1b217f59..efdbfbac83 100644
--- a/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
+++ b/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
@@ -17,7 +17,7 @@
format: BlobFormat,
tag: Tag,
},
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the add operation.
Variants§
§Found
An item was found with name name, from now on referred to via id
Fields
§Abort(RpcError)
We got an error and need to abort.
This will be the last message in the stream.
Trait Implementations§
source§impl Debug for AddProgress
source§impl<'de> Deserialize<'de> for AddProgress
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 AddProgress
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html b/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
index c6c87fc652..fbaced9a62 100644
--- a/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
+++ b/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
@@ -6,7 +6,7 @@
level: ReportLevel,
},
Done,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the validate operation
Variants§
§level: ReportLevelThe level of the message
§Done
Consistency check ended
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Debug for ConsistencyCheckProgress
source§impl<'de> Deserialize<'de> for ConsistencyCheckProgress
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 ConsistencyCheckProgress
§impl RefUnwindSafe for ConsistencyCheckProgress
§impl Send for ConsistencyCheckProgress
§impl Sync for ConsistencyCheckProgress
§impl Unpin for ConsistencyCheckProgress
§impl UnwindSafe for ConsistencyCheckProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html b/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
index 169389ef27..cbf150ca6b 100644
--- a/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
+++ b/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
@@ -31,7 +31,7 @@
ranges: RangeSpec,
},
AllDone,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the validate operation
Variants§
§Starting
started validating
Fields
§total: u64The total number of entries to validate
@@ -62,7 +62,7 @@ Otherwise it might be an url or something else to uniquely identify the entry.
§AllDone
We are done with the whole operation.
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Debug for ValidateProgress
source§impl<'de> Deserialize<'de> for ValidateProgress
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 ValidateProgress
§impl RefUnwindSafe for ValidateProgress
§impl Send for ValidateProgress
§impl Sync for ValidateProgress
§impl Unpin for ValidateProgress
§impl UnwindSafe for ValidateProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/struct.Hash.html b/pr/2574/docs/iroh_blobs/struct.Hash.html
index 8d80843694..13754b0781 100644
--- a/pr/2574/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2574/docs/iroh_blobs/struct.Hash.html
@@ -1,36 +1,36 @@
-Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
-Implementations§
§impl Hash
pub const fn from_bytes(bytes: [u8; 32]) -> Hash
Create a Hash from its raw bytes representation.
-pub fn fmt_short(&self) -> String
Convert to a base32 string limited to the first 10 bytes for a friendly string
+
Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
source · pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
+Implementations§
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hash
source§fn deserialize<D>(
deserializer: D
) -> Result<Hash, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl Hash for Hash
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl MaxSize for Hash
§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
-type can have, in bytes.source§impl MaxSize for Hash
source§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for Hash
source§impl PartialEq for Hash
§impl PartialOrd for Hash
source§impl PartialOrd for Hash
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for Hash
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§impl Copy for Hash
§impl Eq for Hash
§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
source§impl Copy for Hash
source§impl Eq for Hash
source§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
index 8feeded138..56a6e569ef 100644
--- a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
@@ -1,37 +1,37 @@
-HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
pub struct HashAndFormat {
+HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
Fields§
§hash: HashThe hash
§format: BlobFormatThe format
-Implementations§
§impl HashAndFormat
pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
-pub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
-pub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
-Trait Implementations§
§impl Clone for HashAndFormat
§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for HashAndFormat
§impl<'de> Deserialize<'de> for HashAndFormat
§fn deserialize<D>(
+
Implementations§
source§impl HashAndFormat
sourcepub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
+sourcepub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
+sourcepub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
+Trait Implementations§
source§impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
source§fn deserialize<D>(
deserializer: D
) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.§impl FromStr for HashAndFormat
§impl Hash for HashAndFormat
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.source§impl FromStr for HashAndFormat
source§impl Hash for HashAndFormat
§impl MaxSize for HashAndFormat
§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for HashAndFormat
source§impl MaxSize for HashAndFormat
source§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for HashAndFormat
§fn eq(&self, other: &HashAndFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for HashAndFormat
§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
source§impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for HashAndFormat
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable widthsource§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
HashAndFormat: 'a,
Deserializes data
-Implementations may return a view over data, or an owned typesource§fn as_bytes<'a, 'b>(
value: &'a <HashAndFormat as Value>::SelfType<'b>
) -> <HashAndFormat as Value>::AsBytes<'a>where
'b: 'a,
- HashAndFormat: 'a + 'b,
Serialize the value to a slice§impl Copy for HashAndFormat
§impl Eq for HashAndFormat
§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ HashAndFormat: 'a + 'b,
Serialize the value to a slicesource§impl Copy for HashAndFormat
source§impl Eq for HashAndFormat
source§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c5cfbcbcf..201a71e4e6 100644
--- a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()>sourcepub async fn delete_prefix(
&self,
diff --git a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
index 6b3095b674..54663659a1 100644
--- a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 064089c3af..3edb90101c 100644
--- a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/index.html b/pr/2574/docs/iroh_docs/engine/index.html
index 78e6935d96..54c0e74ff7 100644
--- a/pr/2574/docs/iroh_docs/engine/index.html
+++ b/pr/2574/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/struct.Engine.html b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
index 5d21d442bd..5c42772b47 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
index 3c294863e1..39134cf32c 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2574/docs/iroh_docs/index.html b/pr/2574/docs/iroh_docs/index.html
index 8f3ecf4dad..14f362f923 100644
--- a/pr/2574/docs/iroh_docs/index.html
+++ b/pr/2574/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
index 0500b2c33c..360a5b6ff1 100644
--- a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
index 1fbc7ec946..9e5d3848a2 100644
--- a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
index 11716e3947..348ca1a91d 100644
--- a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
index 2b174a9405..8a2dbfcb44 100644
--- a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
index e94f240f10..b615c94578 100644
--- a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 67917f2858..35a2679676 100644
--- a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorId.html b/pr/2574/docs/iroh_docs/struct.AuthorId.html
index d3192b1d83..9f01cf7e5c 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
index e1a05b2ab9..9f1e178d2f 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.DocTicket.html b/pr/2574/docs/iroh_docs/struct.DocTicket.html
index 97a22ba526..60c185fa78 100644
--- a/pr/2574/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2574/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/struct.NamespaceId.html b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
index 3edcc4840a..7caf52a547 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
index e7fbc79a72..3eb316060a 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Entry.html b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
index 1bf24a448d..b520fa4621 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2574/docs/iroh_blobs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_blobs/metrics/struct.Metrics.html
index 07018ef507..e20ee637f7 100644
--- a/pr/2574/docs/iroh_blobs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_blobs/metrics/struct.Metrics.html
@@ -1,20 +1,20 @@
Metrics in iroh_blobs::metrics - Rust 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
§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
diff --git a/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html b/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
index 0f1b217f59..efdbfbac83 100644
--- a/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
+++ b/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
@@ -17,7 +17,7 @@
format: BlobFormat,
tag: Tag,
},
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the add operation.
Variants§
§Found
An item was found with name name, from now on referred to via id
Fields
§Abort(RpcError)
We got an error and need to abort.
This will be the last message in the stream.
Trait Implementations§
source§impl Debug for AddProgress
source§impl<'de> Deserialize<'de> for AddProgress
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 AddProgress
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html b/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
index c6c87fc652..fbaced9a62 100644
--- a/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
+++ b/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
@@ -6,7 +6,7 @@
level: ReportLevel,
},
Done,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the validate operation
Variants§
§level: ReportLevelThe level of the message
§Done
Consistency check ended
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Debug for ConsistencyCheckProgress
source§impl<'de> Deserialize<'de> for ConsistencyCheckProgress
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 ConsistencyCheckProgress
§impl RefUnwindSafe for ConsistencyCheckProgress
§impl Send for ConsistencyCheckProgress
§impl Sync for ConsistencyCheckProgress
§impl Unpin for ConsistencyCheckProgress
§impl UnwindSafe for ConsistencyCheckProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html b/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
index 169389ef27..cbf150ca6b 100644
--- a/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
+++ b/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
@@ -31,7 +31,7 @@
ranges: RangeSpec,
},
AllDone,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the validate operation
Variants§
§Starting
started validating
Fields
§total: u64The total number of entries to validate
@@ -62,7 +62,7 @@ Otherwise it might be an url or something else to uniquely identify the entry.
§AllDone
We are done with the whole operation.
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Debug for ValidateProgress
source§impl<'de> Deserialize<'de> for ValidateProgress
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 ValidateProgress
§impl RefUnwindSafe for ValidateProgress
§impl Send for ValidateProgress
§impl Sync for ValidateProgress
§impl Unpin for ValidateProgress
§impl UnwindSafe for ValidateProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/struct.Hash.html b/pr/2574/docs/iroh_blobs/struct.Hash.html
index 8d80843694..13754b0781 100644
--- a/pr/2574/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2574/docs/iroh_blobs/struct.Hash.html
@@ -1,36 +1,36 @@
-Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
-Implementations§
§impl Hash
pub const fn from_bytes(bytes: [u8; 32]) -> Hash
Create a Hash from its raw bytes representation.
-pub fn fmt_short(&self) -> String
Convert to a base32 string limited to the first 10 bytes for a friendly string
+
Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
source · pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
+Implementations§
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hash
source§fn deserialize<D>(
deserializer: D
) -> Result<Hash, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl Hash for Hash
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl MaxSize for Hash
§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
-type can have, in bytes.source§impl MaxSize for Hash
source§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for Hash
source§impl PartialEq for Hash
§impl PartialOrd for Hash
source§impl PartialOrd for Hash
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for Hash
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§impl Copy for Hash
§impl Eq for Hash
§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
source§impl Copy for Hash
source§impl Eq for Hash
source§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
index 8feeded138..56a6e569ef 100644
--- a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
@@ -1,37 +1,37 @@
-HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
pub struct HashAndFormat {
+HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
Fields§
§hash: HashThe hash
§format: BlobFormatThe format
-Implementations§
§impl HashAndFormat
pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
-pub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
-pub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
-Trait Implementations§
§impl Clone for HashAndFormat
§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for HashAndFormat
§impl<'de> Deserialize<'de> for HashAndFormat
§fn deserialize<D>(
+
Implementations§
source§impl HashAndFormat
sourcepub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
+sourcepub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
+sourcepub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
+Trait Implementations§
source§impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
source§fn deserialize<D>(
deserializer: D
) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.§impl FromStr for HashAndFormat
§impl Hash for HashAndFormat
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.source§impl FromStr for HashAndFormat
source§impl Hash for HashAndFormat
§impl MaxSize for HashAndFormat
§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for HashAndFormat
source§impl MaxSize for HashAndFormat
source§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for HashAndFormat
§fn eq(&self, other: &HashAndFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for HashAndFormat
§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
source§impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for HashAndFormat
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable widthsource§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
HashAndFormat: 'a,
Deserializes data
-Implementations may return a view over data, or an owned typesource§fn as_bytes<'a, 'b>(
value: &'a <HashAndFormat as Value>::SelfType<'b>
) -> <HashAndFormat as Value>::AsBytes<'a>where
'b: 'a,
- HashAndFormat: 'a + 'b,
Serialize the value to a slice§impl Copy for HashAndFormat
§impl Eq for HashAndFormat
§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ HashAndFormat: 'a + 'b,
Serialize the value to a slicesource§impl Copy for HashAndFormat
source§impl Eq for HashAndFormat
source§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c5cfbcbcf..201a71e4e6 100644
--- a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()>sourcepub async fn delete_prefix(
&self,
diff --git a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
index 6b3095b674..54663659a1 100644
--- a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 064089c3af..3edb90101c 100644
--- a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/index.html b/pr/2574/docs/iroh_docs/engine/index.html
index 78e6935d96..54c0e74ff7 100644
--- a/pr/2574/docs/iroh_docs/engine/index.html
+++ b/pr/2574/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/struct.Engine.html b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
index 5d21d442bd..5c42772b47 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
index 3c294863e1..39134cf32c 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2574/docs/iroh_docs/index.html b/pr/2574/docs/iroh_docs/index.html
index 8f3ecf4dad..14f362f923 100644
--- a/pr/2574/docs/iroh_docs/index.html
+++ b/pr/2574/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
index 0500b2c33c..360a5b6ff1 100644
--- a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
index 1fbc7ec946..9e5d3848a2 100644
--- a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
index 11716e3947..348ca1a91d 100644
--- a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
index 2b174a9405..8a2dbfcb44 100644
--- a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
index e94f240f10..b615c94578 100644
--- a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 67917f2858..35a2679676 100644
--- a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorId.html b/pr/2574/docs/iroh_docs/struct.AuthorId.html
index d3192b1d83..9f01cf7e5c 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
index e1a05b2ab9..9f1e178d2f 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.DocTicket.html b/pr/2574/docs/iroh_docs/struct.DocTicket.html
index 97a22ba526..60c185fa78 100644
--- a/pr/2574/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2574/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/struct.NamespaceId.html b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
index 3edcc4840a..7caf52a547 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
index e7fbc79a72..3eb316060a 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Entry.html b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
index 1bf24a448d..b520fa4621 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
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> 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/2574/docs/iroh_blobs/provider/enum.AddProgress.html b/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
index 0f1b217f59..efdbfbac83 100644
--- a/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
+++ b/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
@@ -17,7 +17,7 @@
format: BlobFormat,
tag: Tag,
},
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the add operation.
Variants§
§Found
An item was found with name name, from now on referred to via id
Fields
§Abort(RpcError)
We got an error and need to abort.
This will be the last message in the stream.
Trait Implementations§
source§impl Debug for AddProgress
source§impl<'de> Deserialize<'de> for AddProgress
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 AddProgress
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html b/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
index c6c87fc652..fbaced9a62 100644
--- a/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
+++ b/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
@@ -6,7 +6,7 @@
level: ReportLevel,
},
Done,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the validate operation
Variants§
§level: ReportLevelThe level of the message
§Done
Consistency check ended
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Debug for ConsistencyCheckProgress
source§impl<'de> Deserialize<'de> for ConsistencyCheckProgress
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 ConsistencyCheckProgress
§impl RefUnwindSafe for ConsistencyCheckProgress
§impl Send for ConsistencyCheckProgress
§impl Sync for ConsistencyCheckProgress
§impl Unpin for ConsistencyCheckProgress
§impl UnwindSafe for ConsistencyCheckProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html b/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
index 169389ef27..cbf150ca6b 100644
--- a/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
+++ b/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
@@ -31,7 +31,7 @@
ranges: RangeSpec,
},
AllDone,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the validate operation
Variants§
§Starting
started validating
Fields
§total: u64The total number of entries to validate
@@ -62,7 +62,7 @@ Otherwise it might be an url or something else to uniquely identify the entry.
§AllDone
We are done with the whole operation.
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Debug for ValidateProgress
source§impl<'de> Deserialize<'de> for ValidateProgress
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 ValidateProgress
§impl RefUnwindSafe for ValidateProgress
§impl Send for ValidateProgress
§impl Sync for ValidateProgress
§impl Unpin for ValidateProgress
§impl UnwindSafe for ValidateProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/struct.Hash.html b/pr/2574/docs/iroh_blobs/struct.Hash.html
index 8d80843694..13754b0781 100644
--- a/pr/2574/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2574/docs/iroh_blobs/struct.Hash.html
@@ -1,36 +1,36 @@
-Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
-Implementations§
§impl Hash
pub const fn from_bytes(bytes: [u8; 32]) -> Hash
Create a Hash from its raw bytes representation.
-pub fn fmt_short(&self) -> String
Convert to a base32 string limited to the first 10 bytes for a friendly string
+
Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
source · pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
+Implementations§
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hash
source§fn deserialize<D>(
deserializer: D
) -> Result<Hash, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl Hash for Hash
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl MaxSize for Hash
§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
-type can have, in bytes.source§impl MaxSize for Hash
source§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for Hash
source§impl PartialEq for Hash
§impl PartialOrd for Hash
source§impl PartialOrd for Hash
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for Hash
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§impl Copy for Hash
§impl Eq for Hash
§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
source§impl Copy for Hash
source§impl Eq for Hash
source§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
index 8feeded138..56a6e569ef 100644
--- a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
@@ -1,37 +1,37 @@
-HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
pub struct HashAndFormat {
+HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
Fields§
§hash: HashThe hash
§format: BlobFormatThe format
-Implementations§
§impl HashAndFormat
pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
-pub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
-pub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
-Trait Implementations§
§impl Clone for HashAndFormat
§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for HashAndFormat
§impl<'de> Deserialize<'de> for HashAndFormat
§fn deserialize<D>(
+
Implementations§
source§impl HashAndFormat
sourcepub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
+sourcepub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
+sourcepub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
+Trait Implementations§
source§impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
source§fn deserialize<D>(
deserializer: D
) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.§impl FromStr for HashAndFormat
§impl Hash for HashAndFormat
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.source§impl FromStr for HashAndFormat
source§impl Hash for HashAndFormat
§impl MaxSize for HashAndFormat
§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for HashAndFormat
source§impl MaxSize for HashAndFormat
source§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for HashAndFormat
§fn eq(&self, other: &HashAndFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for HashAndFormat
§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
source§impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for HashAndFormat
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable widthsource§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
HashAndFormat: 'a,
Deserializes data
-Implementations may return a view over data, or an owned typesource§fn as_bytes<'a, 'b>(
value: &'a <HashAndFormat as Value>::SelfType<'b>
) -> <HashAndFormat as Value>::AsBytes<'a>where
'b: 'a,
- HashAndFormat: 'a + 'b,
Serialize the value to a slice§impl Copy for HashAndFormat
§impl Eq for HashAndFormat
§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ HashAndFormat: 'a + 'b,
Serialize the value to a slicesource§impl Copy for HashAndFormat
source§impl Eq for HashAndFormat
source§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c5cfbcbcf..201a71e4e6 100644
--- a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()>sourcepub async fn delete_prefix(
&self,
diff --git a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
index 6b3095b674..54663659a1 100644
--- a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 064089c3af..3edb90101c 100644
--- a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/index.html b/pr/2574/docs/iroh_docs/engine/index.html
index 78e6935d96..54c0e74ff7 100644
--- a/pr/2574/docs/iroh_docs/engine/index.html
+++ b/pr/2574/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/struct.Engine.html b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
index 5d21d442bd..5c42772b47 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
index 3c294863e1..39134cf32c 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2574/docs/iroh_docs/index.html b/pr/2574/docs/iroh_docs/index.html
index 8f3ecf4dad..14f362f923 100644
--- a/pr/2574/docs/iroh_docs/index.html
+++ b/pr/2574/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
index 0500b2c33c..360a5b6ff1 100644
--- a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
index 1fbc7ec946..9e5d3848a2 100644
--- a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
index 11716e3947..348ca1a91d 100644
--- a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
index 2b174a9405..8a2dbfcb44 100644
--- a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
index e94f240f10..b615c94578 100644
--- a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 67917f2858..35a2679676 100644
--- a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorId.html b/pr/2574/docs/iroh_docs/struct.AuthorId.html
index d3192b1d83..9f01cf7e5c 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
index e1a05b2ab9..9f1e178d2f 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.DocTicket.html b/pr/2574/docs/iroh_docs/struct.DocTicket.html
index 97a22ba526..60c185fa78 100644
--- a/pr/2574/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2574/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/struct.NamespaceId.html b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
index 3edcc4840a..7caf52a547 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
index e7fbc79a72..3eb316060a 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Entry.html b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
index 1bf24a448d..b520fa4621 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html b/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
index 0f1b217f59..efdbfbac83 100644
--- a/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
+++ b/pr/2574/docs/iroh_blobs/provider/enum.AddProgress.html
@@ -17,7 +17,7 @@
format: BlobFormat,
tag: Tag,
},
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the add operation.
Variants§
§Found
An item was found with name name, from now on referred to via id
Fields
§Abort(RpcError)
We got an error and need to abort.
This will be the last message in the stream.
Trait Implementations§
source§impl Debug for AddProgress
source§impl<'de> Deserialize<'de> for AddProgress
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 AddProgress
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html b/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
index c6c87fc652..fbaced9a62 100644
--- a/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
+++ b/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
@@ -6,7 +6,7 @@
level: ReportLevel,
},
Done,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the validate operation
Variants§
§level: ReportLevelThe level of the message
§Done
Consistency check ended
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Debug for ConsistencyCheckProgress
source§impl<'de> Deserialize<'de> for ConsistencyCheckProgress
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 ConsistencyCheckProgress
§impl RefUnwindSafe for ConsistencyCheckProgress
§impl Send for ConsistencyCheckProgress
§impl Sync for ConsistencyCheckProgress
§impl Unpin for ConsistencyCheckProgress
§impl UnwindSafe for ConsistencyCheckProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html b/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
index 169389ef27..cbf150ca6b 100644
--- a/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
+++ b/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
@@ -31,7 +31,7 @@
ranges: RangeSpec,
},
AllDone,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the validate operation
Variants§
§Starting
started validating
Fields
§total: u64The total number of entries to validate
@@ -62,7 +62,7 @@ Otherwise it might be an url or something else to uniquely identify the entry.
§AllDone
We are done with the whole operation.
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Debug for ValidateProgress
source§impl<'de> Deserialize<'de> for ValidateProgress
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 ValidateProgress
§impl RefUnwindSafe for ValidateProgress
§impl Send for ValidateProgress
§impl Sync for ValidateProgress
§impl Unpin for ValidateProgress
§impl UnwindSafe for ValidateProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/struct.Hash.html b/pr/2574/docs/iroh_blobs/struct.Hash.html
index 8d80843694..13754b0781 100644
--- a/pr/2574/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2574/docs/iroh_blobs/struct.Hash.html
@@ -1,36 +1,36 @@
-Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
-Implementations§
§impl Hash
pub const fn from_bytes(bytes: [u8; 32]) -> Hash
Create a Hash from its raw bytes representation.
-pub fn fmt_short(&self) -> String
Convert to a base32 string limited to the first 10 bytes for a friendly string
+
Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
source · pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
+Implementations§
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hash
source§fn deserialize<D>(
deserializer: D
) -> Result<Hash, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl Hash for Hash
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl MaxSize for Hash
§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
-type can have, in bytes.source§impl MaxSize for Hash
source§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for Hash
source§impl PartialEq for Hash
§impl PartialOrd for Hash
source§impl PartialOrd for Hash
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for Hash
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§impl Copy for Hash
§impl Eq for Hash
§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
source§impl Copy for Hash
source§impl Eq for Hash
source§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
index 8feeded138..56a6e569ef 100644
--- a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
@@ -1,37 +1,37 @@
-HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
pub struct HashAndFormat {
+HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
Fields§
§hash: HashThe hash
§format: BlobFormatThe format
-Implementations§
§impl HashAndFormat
pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
-pub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
-pub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
-Trait Implementations§
§impl Clone for HashAndFormat
§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for HashAndFormat
§impl<'de> Deserialize<'de> for HashAndFormat
§fn deserialize<D>(
+
Implementations§
source§impl HashAndFormat
sourcepub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
+sourcepub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
+sourcepub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
+Trait Implementations§
source§impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
source§fn deserialize<D>(
deserializer: D
) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.§impl FromStr for HashAndFormat
§impl Hash for HashAndFormat
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.source§impl FromStr for HashAndFormat
source§impl Hash for HashAndFormat
§impl MaxSize for HashAndFormat
§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for HashAndFormat
source§impl MaxSize for HashAndFormat
source§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for HashAndFormat
§fn eq(&self, other: &HashAndFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for HashAndFormat
§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
source§impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for HashAndFormat
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable widthsource§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
HashAndFormat: 'a,
Deserializes data
-Implementations may return a view over data, or an owned typesource§fn as_bytes<'a, 'b>(
value: &'a <HashAndFormat as Value>::SelfType<'b>
) -> <HashAndFormat as Value>::AsBytes<'a>where
'b: 'a,
- HashAndFormat: 'a + 'b,
Serialize the value to a slice§impl Copy for HashAndFormat
§impl Eq for HashAndFormat
§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ HashAndFormat: 'a + 'b,
Serialize the value to a slicesource§impl Copy for HashAndFormat
source§impl Eq for HashAndFormat
source§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c5cfbcbcf..201a71e4e6 100644
--- a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()>sourcepub async fn delete_prefix(
&self,
diff --git a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
index 6b3095b674..54663659a1 100644
--- a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 064089c3af..3edb90101c 100644
--- a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/index.html b/pr/2574/docs/iroh_docs/engine/index.html
index 78e6935d96..54c0e74ff7 100644
--- a/pr/2574/docs/iroh_docs/engine/index.html
+++ b/pr/2574/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/struct.Engine.html b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
index 5d21d442bd..5c42772b47 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
index 3c294863e1..39134cf32c 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2574/docs/iroh_docs/index.html b/pr/2574/docs/iroh_docs/index.html
index 8f3ecf4dad..14f362f923 100644
--- a/pr/2574/docs/iroh_docs/index.html
+++ b/pr/2574/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
index 0500b2c33c..360a5b6ff1 100644
--- a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
index 1fbc7ec946..9e5d3848a2 100644
--- a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
index 11716e3947..348ca1a91d 100644
--- a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
index 2b174a9405..8a2dbfcb44 100644
--- a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
index e94f240f10..b615c94578 100644
--- a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 67917f2858..35a2679676 100644
--- a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorId.html b/pr/2574/docs/iroh_docs/struct.AuthorId.html
index d3192b1d83..9f01cf7e5c 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
index e1a05b2ab9..9f1e178d2f 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.DocTicket.html b/pr/2574/docs/iroh_docs/struct.DocTicket.html
index 97a22ba526..60c185fa78 100644
--- a/pr/2574/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2574/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/struct.NamespaceId.html b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
index 3edcc4840a..7caf52a547 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
index e7fbc79a72..3eb316060a 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Entry.html b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
index 1bf24a448d..b520fa4621 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
Expand description
Progress updates for the add operation.
Variants§
Found
An item was found with name name, from now on referred to via id
Fields
Abort(RpcError)
We got an error and need to abort.
This will be the last message in the stream.
Trait Implementations§
source§impl Debug for AddProgress
impl Debug for AddProgress
source§impl<'de> Deserialize<'de> for AddProgress
impl<'de> Deserialize<'de> for AddProgress
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 AddProgress
impl Serialize for AddProgress
source§fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html b/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
index c6c87fc652..fbaced9a62 100644
--- a/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
+++ b/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
@@ -6,7 +6,7 @@
level: ReportLevel,
},
Done,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the validate operation
Variants§
§level: ReportLevelThe level of the message
§Done
Consistency check ended
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html b/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
index c6c87fc652..fbaced9a62 100644
--- a/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
+++ b/pr/2574/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
@@ -6,7 +6,7 @@
level: ReportLevel,
},
Done,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the validate operation
Variants§
§level: ReportLevelThe level of the message
§Done
Consistency check ended
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
Expand description
Progress updates for the validate operation
Variants§
level: ReportLevelThe level of the message
Done
Consistency check ended
-Abort(RpcError)
We got an error and need to abort.
+Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Debug for ConsistencyCheckProgress
impl Debug for ConsistencyCheckProgress
source§impl<'de> Deserialize<'de> for ConsistencyCheckProgress
impl<'de> Deserialize<'de> for ConsistencyCheckProgress
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 ConsistencyCheckProgress
impl RefUnwindSafe for ConsistencyCheckProgress
impl Send for ConsistencyCheckProgress
impl Sync for ConsistencyCheckProgress
impl Unpin for ConsistencyCheckProgress
impl UnwindSafe for ConsistencyCheckProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html b/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
index 169389ef27..cbf150ca6b 100644
--- a/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
+++ b/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
@@ -31,7 +31,7 @@
ranges: RangeSpec,
},
AllDone,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the validate operation
Variants§
§Starting
started validating
Fields
§total: u64The total number of entries to validate
@@ -62,7 +62,7 @@ Otherwise it might be an url or something else to uniquely identify the entry.
§AllDone
We are done with the whole operation.
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Debug for ValidateProgress
source§impl<'de> Deserialize<'de> for ValidateProgress
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 ValidateProgress
§impl RefUnwindSafe for ValidateProgress
§impl Send for ValidateProgress
§impl Sync for ValidateProgress
§impl Unpin for ValidateProgress
§impl UnwindSafe for ValidateProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/struct.Hash.html b/pr/2574/docs/iroh_blobs/struct.Hash.html
index 8d80843694..13754b0781 100644
--- a/pr/2574/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2574/docs/iroh_blobs/struct.Hash.html
@@ -1,36 +1,36 @@
-Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
-Implementations§
§impl Hash
pub const fn from_bytes(bytes: [u8; 32]) -> Hash
Create a Hash from its raw bytes representation.
-pub fn fmt_short(&self) -> String
Convert to a base32 string limited to the first 10 bytes for a friendly string
+
Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
source · pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
+Implementations§
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hash
source§fn deserialize<D>(
deserializer: D
) -> Result<Hash, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl Hash for Hash
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl MaxSize for Hash
§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
-type can have, in bytes.source§impl MaxSize for Hash
source§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for Hash
source§impl PartialEq for Hash
§impl PartialOrd for Hash
source§impl PartialOrd for Hash
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for Hash
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§impl Copy for Hash
§impl Eq for Hash
§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
source§impl Copy for Hash
source§impl Eq for Hash
source§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
index 8feeded138..56a6e569ef 100644
--- a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
@@ -1,37 +1,37 @@
-HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
pub struct HashAndFormat {
+HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
Fields§
§hash: HashThe hash
§format: BlobFormatThe format
-Implementations§
§impl HashAndFormat
pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
-pub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
-pub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
-Trait Implementations§
§impl Clone for HashAndFormat
§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for HashAndFormat
§impl<'de> Deserialize<'de> for HashAndFormat
§fn deserialize<D>(
+
Implementations§
source§impl HashAndFormat
sourcepub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
+sourcepub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
+sourcepub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
+Trait Implementations§
source§impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
source§fn deserialize<D>(
deserializer: D
) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.§impl FromStr for HashAndFormat
§impl Hash for HashAndFormat
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.source§impl FromStr for HashAndFormat
source§impl Hash for HashAndFormat
§impl MaxSize for HashAndFormat
§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for HashAndFormat
source§impl MaxSize for HashAndFormat
source§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for HashAndFormat
§fn eq(&self, other: &HashAndFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for HashAndFormat
§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
source§impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for HashAndFormat
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable widthsource§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
HashAndFormat: 'a,
Deserializes data
-Implementations may return a view over data, or an owned typesource§fn as_bytes<'a, 'b>(
value: &'a <HashAndFormat as Value>::SelfType<'b>
) -> <HashAndFormat as Value>::AsBytes<'a>where
'b: 'a,
- HashAndFormat: 'a + 'b,
Serialize the value to a slice§impl Copy for HashAndFormat
§impl Eq for HashAndFormat
§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ HashAndFormat: 'a + 'b,
Serialize the value to a slicesource§impl Copy for HashAndFormat
source§impl Eq for HashAndFormat
source§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c5cfbcbcf..201a71e4e6 100644
--- a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()>sourcepub async fn delete_prefix(
&self,
diff --git a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
index 6b3095b674..54663659a1 100644
--- a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 064089c3af..3edb90101c 100644
--- a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/index.html b/pr/2574/docs/iroh_docs/engine/index.html
index 78e6935d96..54c0e74ff7 100644
--- a/pr/2574/docs/iroh_docs/engine/index.html
+++ b/pr/2574/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/struct.Engine.html b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
index 5d21d442bd..5c42772b47 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
index 3c294863e1..39134cf32c 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2574/docs/iroh_docs/index.html b/pr/2574/docs/iroh_docs/index.html
index 8f3ecf4dad..14f362f923 100644
--- a/pr/2574/docs/iroh_docs/index.html
+++ b/pr/2574/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
index 0500b2c33c..360a5b6ff1 100644
--- a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
index 1fbc7ec946..9e5d3848a2 100644
--- a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
index 11716e3947..348ca1a91d 100644
--- a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
index 2b174a9405..8a2dbfcb44 100644
--- a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
index e94f240f10..b615c94578 100644
--- a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 67917f2858..35a2679676 100644
--- a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorId.html b/pr/2574/docs/iroh_docs/struct.AuthorId.html
index d3192b1d83..9f01cf7e5c 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
index e1a05b2ab9..9f1e178d2f 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.DocTicket.html b/pr/2574/docs/iroh_docs/struct.DocTicket.html
index 97a22ba526..60c185fa78 100644
--- a/pr/2574/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2574/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/struct.NamespaceId.html b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
index 3edcc4840a..7caf52a547 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
index e7fbc79a72..3eb316060a 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Entry.html b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
index 1bf24a448d..b520fa4621 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html b/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
index 169389ef27..cbf150ca6b 100644
--- a/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
+++ b/pr/2574/docs/iroh_blobs/store/enum.ValidateProgress.html
@@ -31,7 +31,7 @@
ranges: RangeSpec,
},
AllDone,
- Abort(RpcError),
+ Abort(RpcError),
}Expand description
Progress updates for the validate operation
Variants§
§Starting
started validating
Fields
§total: u64The total number of entries to validate
@@ -62,7 +62,7 @@ Otherwise it might be an url or something else to uniquely identify the entry.
§AllDone
We are done with the whole operation.
-§Abort(RpcError)
We got an error and need to abort.
+§Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Debug for ValidateProgress
source§impl<'de> Deserialize<'de> for ValidateProgress
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 ValidateProgress
§impl RefUnwindSafe for ValidateProgress
§impl Send for ValidateProgress
§impl Sync for ValidateProgress
§impl Unpin for ValidateProgress
§impl UnwindSafe for ValidateProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/struct.Hash.html b/pr/2574/docs/iroh_blobs/struct.Hash.html
index 8d80843694..13754b0781 100644
--- a/pr/2574/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2574/docs/iroh_blobs/struct.Hash.html
@@ -1,36 +1,36 @@
-Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
-Implementations§
§impl Hash
pub const fn from_bytes(bytes: [u8; 32]) -> Hash
Create a Hash from its raw bytes representation.
-pub fn fmt_short(&self) -> String
Convert to a base32 string limited to the first 10 bytes for a friendly string
+
Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
source · pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
+Implementations§
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hash
source§fn deserialize<D>(
deserializer: D
) -> Result<Hash, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl Hash for Hash
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl MaxSize for Hash
§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
-type can have, in bytes.source§impl MaxSize for Hash
source§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for Hash
source§impl PartialEq for Hash
§impl PartialOrd for Hash
source§impl PartialOrd for Hash
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for Hash
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§impl Copy for Hash
§impl Eq for Hash
§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
source§impl Copy for Hash
source§impl Eq for Hash
source§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
index 8feeded138..56a6e569ef 100644
--- a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
@@ -1,37 +1,37 @@
-HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
pub struct HashAndFormat {
+HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
Fields§
§hash: HashThe hash
§format: BlobFormatThe format
-Implementations§
§impl HashAndFormat
pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
-pub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
-pub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
-Trait Implementations§
§impl Clone for HashAndFormat
§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for HashAndFormat
§impl<'de> Deserialize<'de> for HashAndFormat
§fn deserialize<D>(
+
Implementations§
source§impl HashAndFormat
sourcepub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
+sourcepub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
+sourcepub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
+Trait Implementations§
source§impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
source§fn deserialize<D>(
deserializer: D
) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.§impl FromStr for HashAndFormat
§impl Hash for HashAndFormat
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.source§impl FromStr for HashAndFormat
source§impl Hash for HashAndFormat
§impl MaxSize for HashAndFormat
§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for HashAndFormat
source§impl MaxSize for HashAndFormat
source§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for HashAndFormat
§fn eq(&self, other: &HashAndFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for HashAndFormat
§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
source§impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for HashAndFormat
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable widthsource§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
HashAndFormat: 'a,
Deserializes data
-Implementations may return a view over data, or an owned typesource§fn as_bytes<'a, 'b>(
value: &'a <HashAndFormat as Value>::SelfType<'b>
) -> <HashAndFormat as Value>::AsBytes<'a>where
'b: 'a,
- HashAndFormat: 'a + 'b,
Serialize the value to a slice§impl Copy for HashAndFormat
§impl Eq for HashAndFormat
§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ HashAndFormat: 'a + 'b,
Serialize the value to a slicesource§impl Copy for HashAndFormat
source§impl Eq for HashAndFormat
source§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c5cfbcbcf..201a71e4e6 100644
--- a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()>sourcepub async fn delete_prefix(
&self,
diff --git a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
index 6b3095b674..54663659a1 100644
--- a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 064089c3af..3edb90101c 100644
--- a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/index.html b/pr/2574/docs/iroh_docs/engine/index.html
index 78e6935d96..54c0e74ff7 100644
--- a/pr/2574/docs/iroh_docs/engine/index.html
+++ b/pr/2574/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/struct.Engine.html b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
index 5d21d442bd..5c42772b47 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
index 3c294863e1..39134cf32c 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2574/docs/iroh_docs/index.html b/pr/2574/docs/iroh_docs/index.html
index 8f3ecf4dad..14f362f923 100644
--- a/pr/2574/docs/iroh_docs/index.html
+++ b/pr/2574/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
index 0500b2c33c..360a5b6ff1 100644
--- a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
index 1fbc7ec946..9e5d3848a2 100644
--- a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
index 11716e3947..348ca1a91d 100644
--- a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
index 2b174a9405..8a2dbfcb44 100644
--- a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
index e94f240f10..b615c94578 100644
--- a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 67917f2858..35a2679676 100644
--- a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorId.html b/pr/2574/docs/iroh_docs/struct.AuthorId.html
index d3192b1d83..9f01cf7e5c 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
index e1a05b2ab9..9f1e178d2f 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.DocTicket.html b/pr/2574/docs/iroh_docs/struct.DocTicket.html
index 97a22ba526..60c185fa78 100644
--- a/pr/2574/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2574/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/struct.NamespaceId.html b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
index 3edcc4840a..7caf52a547 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
index e7fbc79a72..3eb316060a 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Entry.html b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
index 1bf24a448d..b520fa4621 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
Expand description
Progress updates for the validate operation
Variants§
Starting
started validating
Fields
total: u64The total number of entries to validate
@@ -62,7 +62,7 @@ Otherwise it might be an url or something else to uniquely identify the entry.AllDone
We are done with the whole operation.
-Abort(RpcError)
We got an error and need to abort.
+Abort(RpcError)
We got an error and need to abort.
Trait Implementations§
source§impl Debug for ValidateProgress
impl Debug for ValidateProgress
source§impl<'de> Deserialize<'de> for ValidateProgress
impl<'de> Deserialize<'de> for ValidateProgress
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 ValidateProgress
impl RefUnwindSafe for ValidateProgress
impl Send for ValidateProgress
impl Sync for ValidateProgress
impl Unpin for ValidateProgress
impl UnwindSafe for ValidateProgress
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/struct.Hash.html b/pr/2574/docs/iroh_blobs/struct.Hash.html
index 8d80843694..13754b0781 100644
--- a/pr/2574/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2574/docs/iroh_blobs/struct.Hash.html
@@ -1,36 +1,36 @@
-Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
-Implementations§
§impl Hash
pub const fn from_bytes(bytes: [u8; 32]) -> Hash
Create a Hash from its raw bytes representation.
-pub fn fmt_short(&self) -> String
Convert to a base32 string limited to the first 10 bytes for a friendly string
+
Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
source · pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
+Implementations§
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hash
source§fn deserialize<D>(
deserializer: D
) -> Result<Hash, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl Hash for Hash
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl MaxSize for Hash
§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
-type can have, in bytes.source§impl MaxSize for Hash
source§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for Hash
source§impl PartialEq for Hash
§impl PartialOrd for Hash
source§impl PartialOrd for Hash
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for Hash
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§impl Copy for Hash
§impl Eq for Hash
§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
source§impl Copy for Hash
source§impl Eq for Hash
source§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
index 8feeded138..56a6e569ef 100644
--- a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
@@ -1,37 +1,37 @@
-HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
pub struct HashAndFormat {
+HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
Fields§
§hash: HashThe hash
§format: BlobFormatThe format
-Implementations§
§impl HashAndFormat
pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
-pub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
-pub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
-Trait Implementations§
§impl Clone for HashAndFormat
§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for HashAndFormat
§impl<'de> Deserialize<'de> for HashAndFormat
§fn deserialize<D>(
+
Implementations§
source§impl HashAndFormat
sourcepub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
+sourcepub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
+sourcepub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
+Trait Implementations§
source§impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
source§fn deserialize<D>(
deserializer: D
) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.§impl FromStr for HashAndFormat
§impl Hash for HashAndFormat
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.source§impl FromStr for HashAndFormat
source§impl Hash for HashAndFormat
§impl MaxSize for HashAndFormat
§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for HashAndFormat
source§impl MaxSize for HashAndFormat
source§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for HashAndFormat
§fn eq(&self, other: &HashAndFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for HashAndFormat
§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
source§impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for HashAndFormat
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable widthsource§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
HashAndFormat: 'a,
Deserializes data
-Implementations may return a view over data, or an owned typesource§fn as_bytes<'a, 'b>(
value: &'a <HashAndFormat as Value>::SelfType<'b>
) -> <HashAndFormat as Value>::AsBytes<'a>where
'b: 'a,
- HashAndFormat: 'a + 'b,
Serialize the value to a slice§impl Copy for HashAndFormat
§impl Eq for HashAndFormat
§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ HashAndFormat: 'a + 'b,
Serialize the value to a slicesource§impl Copy for HashAndFormat
source§impl Eq for HashAndFormat
source§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c5cfbcbcf..201a71e4e6 100644
--- a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()>sourcepub async fn delete_prefix(
&self,
diff --git a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
index 6b3095b674..54663659a1 100644
--- a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 064089c3af..3edb90101c 100644
--- a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/index.html b/pr/2574/docs/iroh_docs/engine/index.html
index 78e6935d96..54c0e74ff7 100644
--- a/pr/2574/docs/iroh_docs/engine/index.html
+++ b/pr/2574/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/struct.Engine.html b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
index 5d21d442bd..5c42772b47 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
index 3c294863e1..39134cf32c 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2574/docs/iroh_docs/index.html b/pr/2574/docs/iroh_docs/index.html
index 8f3ecf4dad..14f362f923 100644
--- a/pr/2574/docs/iroh_docs/index.html
+++ b/pr/2574/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
index 0500b2c33c..360a5b6ff1 100644
--- a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
index 1fbc7ec946..9e5d3848a2 100644
--- a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
index 11716e3947..348ca1a91d 100644
--- a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
index 2b174a9405..8a2dbfcb44 100644
--- a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
index e94f240f10..b615c94578 100644
--- a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 67917f2858..35a2679676 100644
--- a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorId.html b/pr/2574/docs/iroh_docs/struct.AuthorId.html
index d3192b1d83..9f01cf7e5c 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
index e1a05b2ab9..9f1e178d2f 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.DocTicket.html b/pr/2574/docs/iroh_docs/struct.DocTicket.html
index 97a22ba526..60c185fa78 100644
--- a/pr/2574/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2574/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/struct.NamespaceId.html b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
index 3edcc4840a..7caf52a547 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
index e7fbc79a72..3eb316060a 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Entry.html b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
index 1bf24a448d..b520fa4621 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_blobs/struct.Hash.html b/pr/2574/docs/iroh_blobs/struct.Hash.html
index 8d80843694..13754b0781 100644
--- a/pr/2574/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2574/docs/iroh_blobs/struct.Hash.html
@@ -1,36 +1,36 @@
-Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
-Implementations§
§impl Hash
pub const fn from_bytes(bytes: [u8; 32]) -> Hash
Create a Hash from its raw bytes representation.
-pub fn fmt_short(&self) -> String
Convert to a base32 string limited to the first 10 bytes for a friendly string
+
Hash in iroh_blobs - Rust Struct iroh_blobs::Hash
source · pub struct Hash(/* private fields */);
Expand description
Hash type used throughout.
+Implementations§
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hash
source§fn deserialize<D>(
deserializer: D
) -> Result<Hash, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl Hash for Hash
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromIterator<Hash> for HashSeq
§impl MaxSize for Hash
§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
-type can have, in bytes.source§impl MaxSize for Hash
source§const POSTCARD_MAX_SIZE: usize = 32usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for Hash
source§impl PartialEq for Hash
§impl PartialOrd for Hash
source§impl PartialOrd for Hash
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for Hash
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for Hash
§type SelfType<'a> = Hash
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = &'a [u8; 32]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§impl Copy for Hash
§impl Eq for Hash
§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
source§impl Copy for Hash
source§impl Eq for Hash
source§impl StructuralPartialEq for Hash
Auto Trait Implementations§
§impl Freeze for Hash
§impl RefUnwindSafe for Hash
§impl Send for Hash
§impl Sync for Hash
§impl Unpin for Hash
§impl UnwindSafe for Hash
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
index 8feeded138..56a6e569ef 100644
--- a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
@@ -1,37 +1,37 @@
-HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
pub struct HashAndFormat {
+HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
Fields§
§hash: HashThe hash
§format: BlobFormatThe format
-Implementations§
§impl HashAndFormat
pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
-pub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
-pub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
-Trait Implementations§
§impl Clone for HashAndFormat
§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for HashAndFormat
§impl<'de> Deserialize<'de> for HashAndFormat
§fn deserialize<D>(
+
Implementations§
source§impl HashAndFormat
sourcepub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
+sourcepub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
+sourcepub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
+Trait Implementations§
source§impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
source§fn deserialize<D>(
deserializer: D
) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.§impl FromStr for HashAndFormat
§impl Hash for HashAndFormat
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.source§impl FromStr for HashAndFormat
source§impl Hash for HashAndFormat
§impl MaxSize for HashAndFormat
§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for HashAndFormat
source§impl MaxSize for HashAndFormat
source§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for HashAndFormat
§fn eq(&self, other: &HashAndFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for HashAndFormat
§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
source§impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for HashAndFormat
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable widthsource§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
HashAndFormat: 'a,
Deserializes data
-Implementations may return a view over data, or an owned typesource§fn as_bytes<'a, 'b>(
value: &'a <HashAndFormat as Value>::SelfType<'b>
) -> <HashAndFormat as Value>::AsBytes<'a>where
'b: 'a,
- HashAndFormat: 'a + 'b,
Serialize the value to a slice§impl Copy for HashAndFormat
§impl Eq for HashAndFormat
§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ HashAndFormat: 'a + 'b,
Serialize the value to a slicesource§impl Copy for HashAndFormat
source§impl Eq for HashAndFormat
source§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c5cfbcbcf..201a71e4e6 100644
--- a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()>sourcepub async fn delete_prefix(
&self,
diff --git a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
index 6b3095b674..54663659a1 100644
--- a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 064089c3af..3edb90101c 100644
--- a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/index.html b/pr/2574/docs/iroh_docs/engine/index.html
index 78e6935d96..54c0e74ff7 100644
--- a/pr/2574/docs/iroh_docs/engine/index.html
+++ b/pr/2574/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/struct.Engine.html b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
index 5d21d442bd..5c42772b47 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
index 3c294863e1..39134cf32c 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2574/docs/iroh_docs/index.html b/pr/2574/docs/iroh_docs/index.html
index 8f3ecf4dad..14f362f923 100644
--- a/pr/2574/docs/iroh_docs/index.html
+++ b/pr/2574/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
index 0500b2c33c..360a5b6ff1 100644
--- a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
index 1fbc7ec946..9e5d3848a2 100644
--- a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
index 11716e3947..348ca1a91d 100644
--- a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
index 2b174a9405..8a2dbfcb44 100644
--- a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
index e94f240f10..b615c94578 100644
--- a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 67917f2858..35a2679676 100644
--- a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorId.html b/pr/2574/docs/iroh_docs/struct.AuthorId.html
index d3192b1d83..9f01cf7e5c 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
index e1a05b2ab9..9f1e178d2f 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.DocTicket.html b/pr/2574/docs/iroh_docs/struct.DocTicket.html
index 97a22ba526..60c185fa78 100644
--- a/pr/2574/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2574/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/struct.NamespaceId.html b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
index 3edcc4840a..7caf52a547 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
index e7fbc79a72..3eb316060a 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Entry.html b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
index 1bf24a448d..b520fa4621 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
Struct iroh_blobs::Hash
pub struct Hash(/* private fields */);Expand description
Hash type used throughout.
-Implementations§
§impl Hash
impl Hash
pub const fn from_bytes(bytes: [u8; 32]) -> Hash
pub const fn from_bytes(bytes: [u8; 32]) -> Hash
Create a Hash from its raw bytes representation.
pub fn fmt_short(&self) -> String
pub fn fmt_short(&self) -> String
Convert to a base32 string limited to the first 10 bytes for a friendly string +
Struct iroh_blobs::Hash
source · pub struct Hash(/* private fields */);Expand description
Hash type used throughout.
+Implementations§
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Hash
impl<'de> Deserialize<'de> for Hash
source§fn deserialize<D>(
deserializer: D
) -> Result<Hash, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Hash, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
source§impl FromIterator<Hash> for HashSeq
impl FromIterator<Hash> for HashSeq
§impl Hash for Hash
impl Hash for Hash
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
source§impl FromIterator<Hash> for HashSeq
impl FromIterator<Hash> for HashSeq
§impl MaxSize for Hash
impl MaxSize for Hash
§const POSTCARD_MAX_SIZE: usize = 32usize
const POSTCARD_MAX_SIZE: usize = 32usize
source§impl MaxSize for Hash
impl MaxSize for Hash
source§const POSTCARD_MAX_SIZE: usize = 32usize
const POSTCARD_MAX_SIZE: usize = 32usize
source§impl Ord for Hash
impl Ord for Hash
source§impl PartialEq for Hash
impl PartialEq for Hash
§impl PartialOrd for Hash
impl PartialOrd for Hash
source§impl PartialOrd for Hash
impl PartialOrd for Hash
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self and other) and is used by the <=
operator. Read moresource§impl Serialize for Hash
impl Serialize for Hash
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
§impl Value for Hash
impl Value for Hash
§type SelfType<'a> = Hash
type SelfType<'a> = Hash
type AsBytes<'a> = &'a [u8; 32]
§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
§fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>where
+ S: Serializer,
fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>where
+ S: Serializer,
source§impl Value for Hash
impl Value for Hash
§type SelfType<'a> = Hash
type SelfType<'a> = Hash
type AsBytes<'a> = &'a [u8; 32]
source§fn fixed_width() -> Option<usize>
fn fixed_width() -> Option<usize>
impl Copy for Hash
impl Eq for Hash
impl StructuralPartialEq for Hash
Auto Trait Implementations§
impl Freeze for Hash
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnwindSafe for Hash
Blanket Implementations§
impl Copy for Hash
impl Eq for Hash
impl StructuralPartialEq for Hash
Auto Trait Implementations§
impl Freeze for Hash
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnwindSafe for Hash
Blanket Implementations§
§impl<A, T> AsBits<T> for A
impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
index 8feeded138..56a6e569ef 100644
--- a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
@@ -1,37 +1,37 @@
-HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
pub struct HashAndFormat {
+HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
Fields§
§hash: HashThe hash
§format: BlobFormatThe format
-Implementations§
§impl HashAndFormat
pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
-pub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
-pub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
-Trait Implementations§
§impl Clone for HashAndFormat
§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for HashAndFormat
§impl<'de> Deserialize<'de> for HashAndFormat
§fn deserialize<D>(
+
Implementations§
source§impl HashAndFormat
sourcepub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
+sourcepub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
+sourcepub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
+Trait Implementations§
source§impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
source§fn deserialize<D>(
deserializer: D
) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.§impl FromStr for HashAndFormat
§impl Hash for HashAndFormat
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.source§impl FromStr for HashAndFormat
source§impl Hash for HashAndFormat
§impl MaxSize for HashAndFormat
§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for HashAndFormat
source§impl MaxSize for HashAndFormat
source§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for HashAndFormat
§fn eq(&self, other: &HashAndFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for HashAndFormat
§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
source§impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for HashAndFormat
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable widthsource§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
HashAndFormat: 'a,
Deserializes data
-Implementations may return a view over data, or an owned typesource§fn as_bytes<'a, 'b>(
value: &'a <HashAndFormat as Value>::SelfType<'b>
) -> <HashAndFormat as Value>::AsBytes<'a>where
'b: 'a,
- HashAndFormat: 'a + 'b,
Serialize the value to a slice§impl Copy for HashAndFormat
§impl Eq for HashAndFormat
§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ HashAndFormat: 'a + 'b,
Serialize the value to a slicesource§impl Copy for HashAndFormat
source§impl Eq for HashAndFormat
source§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c5cfbcbcf..201a71e4e6 100644
--- a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()>sourcepub async fn delete_prefix(
&self,
diff --git a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
index 6b3095b674..54663659a1 100644
--- a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 064089c3af..3edb90101c 100644
--- a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/index.html b/pr/2574/docs/iroh_docs/engine/index.html
index 78e6935d96..54c0e74ff7 100644
--- a/pr/2574/docs/iroh_docs/engine/index.html
+++ b/pr/2574/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/struct.Engine.html b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
index 5d21d442bd..5c42772b47 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
index 3c294863e1..39134cf32c 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2574/docs/iroh_docs/index.html b/pr/2574/docs/iroh_docs/index.html
index 8f3ecf4dad..14f362f923 100644
--- a/pr/2574/docs/iroh_docs/index.html
+++ b/pr/2574/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
index 0500b2c33c..360a5b6ff1 100644
--- a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
index 1fbc7ec946..9e5d3848a2 100644
--- a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
index 11716e3947..348ca1a91d 100644
--- a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
index 2b174a9405..8a2dbfcb44 100644
--- a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
index e94f240f10..b615c94578 100644
--- a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 67917f2858..35a2679676 100644
--- a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorId.html b/pr/2574/docs/iroh_docs/struct.AuthorId.html
index d3192b1d83..9f01cf7e5c 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
index e1a05b2ab9..9f1e178d2f 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.DocTicket.html b/pr/2574/docs/iroh_docs/struct.DocTicket.html
index 97a22ba526..60c185fa78 100644
--- a/pr/2574/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2574/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/struct.NamespaceId.html b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
index 3edcc4840a..7caf52a547 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
index e7fbc79a72..3eb316060a 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Entry.html b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
index 1bf24a448d..b520fa4621 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
index 8feeded138..56a6e569ef 100644
--- a/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2574/docs/iroh_blobs/struct.HashAndFormat.html
@@ -1,37 +1,37 @@
-HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
pub struct HashAndFormat {
+HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
Fields§
§hash: HashThe hash
§format: BlobFormatThe format
-Implementations§
§impl HashAndFormat
pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
-pub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
-pub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
-Trait Implementations§
§impl Clone for HashAndFormat
§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for HashAndFormat
§impl<'de> Deserialize<'de> for HashAndFormat
§fn deserialize<D>(
+
Implementations§
source§impl HashAndFormat
sourcepub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
+sourcepub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
+sourcepub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
+Trait Implementations§
source§impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
source§fn deserialize<D>(
deserializer: D
) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.§impl FromStr for HashAndFormat
§impl Hash for HashAndFormat
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.source§impl FromStr for HashAndFormat
source§impl Hash for HashAndFormat
§impl MaxSize for HashAndFormat
§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for HashAndFormat
source§impl MaxSize for HashAndFormat
source§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for HashAndFormat
§fn eq(&self, other: &HashAndFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for HashAndFormat
§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
source§impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for HashAndFormat
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable widthsource§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
HashAndFormat: 'a,
Deserializes data
-Implementations may return a view over data, or an owned typesource§fn as_bytes<'a, 'b>(
value: &'a <HashAndFormat as Value>::SelfType<'b>
) -> <HashAndFormat as Value>::AsBytes<'a>where
'b: 'a,
- HashAndFormat: 'a + 'b,
Serialize the value to a slice§impl Copy for HashAndFormat
§impl Eq for HashAndFormat
§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ HashAndFormat: 'a + 'b,
Serialize the value to a slicesource§impl Copy for HashAndFormat
source§impl Eq for HashAndFormat
source§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c5cfbcbcf..201a71e4e6 100644
--- a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()>sourcepub async fn delete_prefix(
&self,
diff --git a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
index 6b3095b674..54663659a1 100644
--- a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 064089c3af..3edb90101c 100644
--- a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/index.html b/pr/2574/docs/iroh_docs/engine/index.html
index 78e6935d96..54c0e74ff7 100644
--- a/pr/2574/docs/iroh_docs/engine/index.html
+++ b/pr/2574/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/struct.Engine.html b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
index 5d21d442bd..5c42772b47 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
index 3c294863e1..39134cf32c 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2574/docs/iroh_docs/index.html b/pr/2574/docs/iroh_docs/index.html
index 8f3ecf4dad..14f362f923 100644
--- a/pr/2574/docs/iroh_docs/index.html
+++ b/pr/2574/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
index 0500b2c33c..360a5b6ff1 100644
--- a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
index 1fbc7ec946..9e5d3848a2 100644
--- a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
index 11716e3947..348ca1a91d 100644
--- a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
index 2b174a9405..8a2dbfcb44 100644
--- a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
index e94f240f10..b615c94578 100644
--- a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 67917f2858..35a2679676 100644
--- a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorId.html b/pr/2574/docs/iroh_docs/struct.AuthorId.html
index d3192b1d83..9f01cf7e5c 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
index e1a05b2ab9..9f1e178d2f 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.DocTicket.html b/pr/2574/docs/iroh_docs/struct.DocTicket.html
index 97a22ba526..60c185fa78 100644
--- a/pr/2574/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2574/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/struct.NamespaceId.html b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
index 3edcc4840a..7caf52a547 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
index e7fbc79a72..3eb316060a 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Entry.html b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
index 1bf24a448d..b520fa4621 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
Struct iroh_blobs::HashAndFormat
pub struct HashAndFormat {
+HashAndFormat in iroh_blobs - Rust Struct iroh_blobs::HashAndFormat
source · pub struct HashAndFormat {
pub hash: Hash,
pub format: BlobFormat,
}
Expand description
A hash and format pair
Fields§
§hash: HashThe hash
§format: BlobFormatThe format
-Implementations§
§impl HashAndFormat
pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
-pub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
-pub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
-Trait Implementations§
§impl Clone for HashAndFormat
§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for HashAndFormat
§impl<'de> Deserialize<'de> for HashAndFormat
§fn deserialize<D>(
+
Implementations§
source§impl HashAndFormat
sourcepub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat
Create a new hash and format pair.
+sourcepub fn raw(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the default (raw) format.
+sourcepub fn hash_seq(hash: Hash) -> HashAndFormat
Create a new hash and format pair, using the collection format.
+Trait Implementations§
source§impl Clone for HashAndFormat
source§fn clone(&self) -> HashAndFormat
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for HashAndFormat
source§impl<'de> Deserialize<'de> for HashAndFormat
source§fn deserialize<D>(
deserializer: D
) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.§impl FromStr for HashAndFormat
§impl Hash for HashAndFormat
§fn hash<__H>(&self, state: &mut __H)where
+ D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for HashAndFormat
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> Self
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> Self
Converts to this type from the input type.source§impl FromStr for HashAndFormat
source§impl Hash for HashAndFormat
§impl MaxSize for HashAndFormat
§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
-type can have, in bytes.§impl Ord for HashAndFormat
source§impl MaxSize for HashAndFormat
source§const POSTCARD_MAX_SIZE: usize = 33usize
The maximum possible size that the serialization of this
+type can have, in bytes.source§impl Ord for HashAndFormat
source§fn cmp(&self, other: &HashAndFormat) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more§impl PartialEq for HashAndFormat
§fn eq(&self, other: &HashAndFormat) -> bool
Restrict a value to a certain interval. Read moresource§impl PartialEq for HashAndFormat
source§fn eq(&self, other: &HashAndFormat) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl PartialOrd for HashAndFormat
§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
source§impl PartialOrd for HashAndFormat
source§fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for HashAndFormat
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable width§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Value for HashAndFormat
§type SelfType<'a> = HashAndFormat
SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a§type AsBytes<'a> = [u8; 33]
source§fn fixed_width() -> Option<usize>
Width of a fixed type, or None for variable widthsource§fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>where
HashAndFormat: 'a,
Deserializes data
-Implementations may return a view over data, or an owned typesource§fn as_bytes<'a, 'b>(
value: &'a <HashAndFormat as Value>::SelfType<'b>
) -> <HashAndFormat as Value>::AsBytes<'a>where
'b: 'a,
- HashAndFormat: 'a + 'b,
Serialize the value to a slice§impl Copy for HashAndFormat
§impl Eq for HashAndFormat
§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
§impl Freeze for HashAndFormat
§impl RefUnwindSafe for HashAndFormat
§impl Send for HashAndFormat
§impl Sync for HashAndFormat
§impl Unpin for HashAndFormat
§impl UnwindSafe for HashAndFormat
Blanket Implementations§
source§impl<T> Any for Twhere
+ HashAndFormat: 'a + 'b,
Serialize the value to a slicesource§impl Copy for HashAndFormat
source§impl Eq for HashAndFormat
source§impl StructuralPartialEq for HashAndFormat
Auto Trait Implementations§
impl Freeze for HashAndFormat
impl RefUnwindSafe for HashAndFormat
impl Send for HashAndFormat
impl Sync for HashAndFormat
impl Unpin for HashAndFormat
impl UnwindSafe for HashAndFormat
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§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/2574/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c5cfbcbcf..201a71e4e6 100644
--- a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()>sourcepub async fn delete_prefix(
&self,
diff --git a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
index 6b3095b674..54663659a1 100644
--- a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 064089c3af..3edb90101c 100644
--- a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/index.html b/pr/2574/docs/iroh_docs/engine/index.html
index 78e6935d96..54c0e74ff7 100644
--- a/pr/2574/docs/iroh_docs/engine/index.html
+++ b/pr/2574/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/struct.Engine.html b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
index 5d21d442bd..5c42772b47 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
index 3c294863e1..39134cf32c 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2574/docs/iroh_docs/index.html b/pr/2574/docs/iroh_docs/index.html
index 8f3ecf4dad..14f362f923 100644
--- a/pr/2574/docs/iroh_docs/index.html
+++ b/pr/2574/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
index 0500b2c33c..360a5b6ff1 100644
--- a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
index 1fbc7ec946..9e5d3848a2 100644
--- a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
index 11716e3947..348ca1a91d 100644
--- a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
index 2b174a9405..8a2dbfcb44 100644
--- a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
index e94f240f10..b615c94578 100644
--- a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 67917f2858..35a2679676 100644
--- a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorId.html b/pr/2574/docs/iroh_docs/struct.AuthorId.html
index d3192b1d83..9f01cf7e5c 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
index e1a05b2ab9..9f1e178d2f 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.DocTicket.html b/pr/2574/docs/iroh_docs/struct.DocTicket.html
index 97a22ba526..60c185fa78 100644
--- a/pr/2574/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2574/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/struct.NamespaceId.html b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
index 3edcc4840a..7caf52a547 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
index e7fbc79a72..3eb316060a 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Entry.html b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
index 1bf24a448d..b520fa4621 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
index 6c5cfbcbcf..201a71e4e6 100644
--- a/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2574/docs/iroh_docs/actor/struct.SyncHandle.html
@@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that
namespace: NamespaceId,
author: AuthorId,
key: Bytes,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<()>sourcepub async fn delete_prefix(
&self,
diff --git a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
index 6b3095b674..54663659a1 100644
--- a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 064089c3af..3edb90101c 100644
--- a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/index.html b/pr/2574/docs/iroh_docs/engine/index.html
index 78e6935d96..54c0e74ff7 100644
--- a/pr/2574/docs/iroh_docs/engine/index.html
+++ b/pr/2574/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/struct.Engine.html b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
index 5d21d442bd..5c42772b47 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
index 3c294863e1..39134cf32c 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2574/docs/iroh_docs/index.html b/pr/2574/docs/iroh_docs/index.html
index 8f3ecf4dad..14f362f923 100644
--- a/pr/2574/docs/iroh_docs/index.html
+++ b/pr/2574/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
index 0500b2c33c..360a5b6ff1 100644
--- a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
index 1fbc7ec946..9e5d3848a2 100644
--- a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
index 11716e3947..348ca1a91d 100644
--- a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
index 2b174a9405..8a2dbfcb44 100644
--- a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
index e94f240f10..b615c94578 100644
--- a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 67917f2858..35a2679676 100644
--- a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorId.html b/pr/2574/docs/iroh_docs/struct.AuthorId.html
index d3192b1d83..9f01cf7e5c 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
index e1a05b2ab9..9f1e178d2f 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.DocTicket.html b/pr/2574/docs/iroh_docs/struct.DocTicket.html
index 97a22ba526..60c185fa78 100644
--- a/pr/2574/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2574/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/struct.NamespaceId.html b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
index 3edcc4840a..7caf52a547 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
index e7fbc79a72..3eb316060a 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Entry.html b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
index 1bf24a448d..b520fa4621 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
pub async fn delete_prefix(
&self,
diff --git a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
index 6b3095b674..54663659a1 100644
--- a/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/enum.LiveEvent.html
@@ -3,34 +3,34 @@
entry: Entry,
},
InsertRemote {
- from: PublicKey,
+ from: PublicKey,
entry: Entry,
content_status: ContentStatus,
},
ContentReady {
- hash: Hash,
+ hash: Hash,
},
PendingContentReady,
- NeighborUp(PublicKey),
- NeighborDown(PublicKey),
+ NeighborUp(PublicKey),
+ NeighborDown(PublicKey),
SyncFinished(SyncEvent),
}Expand description
Events informing about actions of the live sync progress.
Variants§
§InsertLocal
A local insertion.
§InsertRemote
Received a remote insert.
-Fields
§from: PublicKeyThe peer that sent us the entry.
+Fields
§content_status: ContentStatusIf the content is available at the local node
§ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
§hash: HashThe content hash of the newly available entry content
+§PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either
completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If
blobs failed to download, this event will still be emitted after all operations completed.
-§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+§NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+§NeighborDown(PublicKey)
We lost a neighbor in the swarm.
§SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
This method tests for self and other values to be equal, and is used
diff --git a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 064089c3af..3edb90101c 100644
--- a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an [EntryStatus] into a [‘ContentStatus’].
+entry_to_content_status in iroh_docs::engine - Rust Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description
Converts an EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/index.html b/pr/2574/docs/iroh_docs/engine/index.html
index 78e6935d96..54c0e74ff7 100644
--- a/pr/2574/docs/iroh_docs/engine/index.html
+++ b/pr/2574/docs/iroh_docs/engine/index.html
@@ -1,4 +1,4 @@
iroh_docs::engine - Rust Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with
-peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
\ No newline at end of file
+peers and a gossip swarm for each syncing document.Event emitted when a sync operation completes Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatus into a [‘ContentStatus’].
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/engine/struct.Engine.html b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
index 5d21d442bd..5c42772b47 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.Engine.html
@@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.
Fields§
§endpoint: EndpointEndpoint used by the engine.
§sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
Implementations§
source§impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the sourcepub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
Start to sync a document.
If peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.
diff --git a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
index 3c294863e1..39134cf32c 100644
--- a/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2574/docs/iroh_docs/engine/struct.SyncEvent.html
@@ -1,11 +1,11 @@
SyncEvent in iroh_docs::engine - Rust pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}
Expand description
Event emitted when a sync operation completes
-Fields§
§peer: PublicKeyPeer we synced with
+Fields§
§peer: PublicKeyPeer we synced with
§origin: OriginOrigin of the sync exchange
§finished: SystemTimeTimestamp when the sync started
§started: SystemTimeTimestamp when the sync finished
diff --git a/pr/2574/docs/iroh_docs/index.html b/pr/2574/docs/iroh_docs/index.html
index 8f3ecf4dad..14f362f923 100644
--- a/pr/2574/docs/iroh_docs/index.html
+++ b/pr/2574/docs/iroh_docs/index.html
@@ -1,7 +1,7 @@
iroh_docs - Rust Expand description
Multi-dimensional key-value documents with an efficient synchronization protocol
The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica.
All entries in a replica are signed with two keypairs:
diff --git a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
index 0500b2c33c..360a5b6ff1 100644
--- a/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_docs/metrics/struct.Metrics.html
@@ -1,27 +1,27 @@
Metrics in iroh_docs::metrics - Rust pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
}
Expand description
Metrics for iroh-docs
-Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
index 1fbc7ec946..9e5d3848a2 100644
--- a/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2574/docs/iroh_docs/net/enum.AcceptError.html
@@ -3,31 +3,31 @@
error: Error,
},
Open {
- peer: PublicKey,
+ peer: PublicKey,
error: Error,
},
Abort {
- peer: PublicKey,
+ peer: PublicKey,
namespace: NamespaceId,
reason: AbortReason,
},
Sync {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
Close {
- peer: PublicKey,
+ peer: PublicKey,
namespace: Option<NamespaceId>,
error: Error,
},
}Expand description
Errors that may occur on handling incoming sync connections.
Variants§
§Connect
Failed to establish connection
§Open
Failed to open replica
-§Abort
We aborted the sync request.
-§Sync
Failed to run sync
-§Close
Failed to close
-Implementations§
source§impl AcceptError
Implementations§
Trait Implementations§
source§impl Debug for AcceptError
source§impl Display for AcceptError
source§impl Error for AcceptError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl Freeze for AcceptError
§impl RefUnwindSafe for AcceptError
§impl Send for AcceptError
§impl Sync for AcceptError
§impl Unpin for AcceptError
§impl UnwindSafe for AcceptError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
index 11716e3947..348ca1a91d 100644
--- a/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2574/docs/iroh_docs/net/fn.connect_and_sync.html
@@ -2,6 +2,6 @@
endpoint: &Endpoint,
sync: &SyncHandle,
namespace: NamespaceId,
- peer: NodeAddr
+ peer: NodeAddr
) -> Result<SyncFinished, ConnectError>Expand description
Connect to a peer and sync a replica
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
index 2b174a9405..8a2dbfcb44 100644
--- a/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2574/docs/iroh_docs/net/fn.handle_connection.html
@@ -3,6 +3,6 @@
connecting: Connecting,
accept_cb: F
) -> Result<SyncFinished, AcceptError>where
- F: Fn(NamespaceId, PublicKey) -> Fut,
+ F: Fn(NamespaceId, PublicKey) -> Fut,
Fut: Future<Output = AcceptOutcome>,Expand description
Handle an iroh-docs connection and sync all shared documents in the replica store.
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
index e94f240f10..b615c94578 100644
--- a/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2574/docs/iroh_docs/net/struct.SyncFinished.html
@@ -1,11 +1,11 @@
SyncFinished in iroh_docs::net - Rust Struct iroh_docs::net::SyncFinished
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}
Expand description
Details of a finished sync operation.
Fields§
§namespace: NamespaceIdThe namespace that was synced.
-§peer: PublicKeyThe peer we syned with.
+§peer: PublicKeyThe peer we syned with.
§outcome: SyncOutcomeThe outcome of the sync operation
§timings: TimingsThe time this operation took
Trait Implementations§
source§impl Clone for SyncFinished
source§fn clone(&self) -> SyncFinished
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moreAuto Trait Implementations§
§impl Freeze for SyncFinished
§impl RefUnwindSafe for SyncFinished
§impl Send for SyncFinished
§impl Sync for SyncFinished
§impl Unpin for SyncFinished
§impl UnwindSafe for SyncFinished
Blanket Implementations§
source§impl<T> Any for Twhere
diff --git a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 67917f2858..35a2679676 100644
--- a/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2574/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
@@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.
Implementations§
Trait Implementations§
source§impl Debug for ContentHashesIterator
Trait Implementations§
source§impl Debug for ContentHashesIterator
source§impl Iterator for ContentHashesIterator
source§fn next(&mut self) -> Option<Self::Item>
Advances the iterator and returns the next value. Read moresource§fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
🔬This is a nightly-only experimental API. (iter_next_chunk)Advances the iterator and returns an array containing the next N values. Read more1.0.0 · source§fn size_hint(&self) -> (usize, Option<usize>)
Returns the bounds on the remaining length of the iterator. Read more1.0.0 · source§fn count(self) -> usizewhere
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorId.html b/pr/2574/docs/iroh_docs/struct.AuthorId.html
index d3192b1d83..9f01cf7e5c 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
index e1a05b2ab9..9f1e178d2f 100644
--- a/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.AuthorPublicKey.html
@@ -148,6 +148,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.DocTicket.html b/pr/2574/docs/iroh_docs/struct.DocTicket.html
index 97a22ba526..60c185fa78 100644
--- a/pr/2574/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2574/docs/iroh_docs/struct.DocTicket.html
@@ -1,13 +1,13 @@
DocTicket in iroh_docs - Rust pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}
Expand description
Contains both a key (either secret or public) to a document, and a list of peers to join.
Fields§
§capability: Capabilityeither a public or private key
-§nodes: Vec<NodeAddr>A list of nodes to contact.
-Implementations§
source§impl DocTicket
sourcepub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
Create a new doc ticket
+§nodes: Vec<NodeAddr>A list of nodes to contact.
+Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocTicket
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moreAuto Trait Implementations§
§impl Freeze for DocTicket
§impl RefUnwindSafe for DocTicket
§impl Send for DocTicket
§impl Sync for DocTicket
§impl Unpin for DocTicket
§impl UnwindSafe for DocTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_docs/struct.NamespaceId.html b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
index 3edcc4840a..7caf52a547 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespaceId.html
@@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)
Into<Dispatch>, source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
index e7fbc79a72..3eb316060a 100644
--- a/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2574/docs/iroh_docs/struct.NamespacePublicKey.html
@@ -147,6 +147,6 @@ builds.
Into<Dispatch>,source§fn with_current_subscriber(self) -> WithDispatch<Self>
source§impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
§impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
source§impl<T> PeerIdentity for T
source§impl<T> RuleType for T
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Entry.html b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
index 1bf24a448d..b520fa4621 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Entry.html
@@ -1,6 +1,6 @@
Entry in iroh_docs::sync - Rust pub struct Entry { /* private fields */ }
Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
Expand description
Events informing about actions of the live sync progress.
InsertLocal
A local insertion.
InsertRemote
Received a remote insert.
-Fields
from: PublicKeyThe peer that sent us the entry.
+Fields
content_status: ContentStatusIf the content is available at the local node
ContentReady
The content of an entry was downloaded and is now available at the local node
-Fields
hash: HashThe content hash of the newly available entry content
+PendingContentReady
All pending content is now ready.
This event signals that all queued content downloads from the last sync run have either completed or failed.
It will only be emitted after a Self::SyncFinished event, never before.
Receiving this event does not guarantee that all content in the document is available. If blobs failed to download, this event will still be emitted after all operations completed.
-NeighborUp(PublicKey)
We have a new neighbor in the swarm.
-NeighborDown(PublicKey)
We lost a neighbor in the swarm.
+NeighborUp(PublicKey)
We have a new neighbor in the swarm.
+NeighborDown(PublicKey)
We lost a neighbor in the swarm.
SyncFinished(SyncEvent)
A set-reconciliation sync finished.
Trait Implementations§
source§impl<'de> Deserialize<'de> for LiveEvent
impl<'de> Deserialize<'de> for LiveEvent
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 PartialEq for LiveEvent
impl PartialEq for LiveEvent
source§fn eq(&self, other: &LiveEvent) -> bool
fn eq(&self, other: &LiveEvent) -> bool
self and other values to be equal, and is used
diff --git a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 064089c3af..3edb90101c 100644
--- a/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2574/docs/iroh_docs/engine/fn.entry_to_content_status.html
@@ -1,2 +1,2 @@
-Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatusExpand description
Converts an [EntryStatus] into a [‘ContentStatus’].
Function iroh_docs::engine::entry_to_content_status
source · pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatusExpand description
Converts an EntryStatus into a [‘ContentStatus’].
Expand description
Handlers and actors to for live syncing replicas.
crate::Replica is also called documents here.
Structs§
- Persistent default author for a docs engine.
- The sync engine coordinates actors that manage open documents, set-reconciliation syncs with -peers and a gossip swarm for each syncing document.
- Event emitted when a sync operation completes
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an [
EntryStatus] into a [‘ContentStatus’].
Enums§
- Where to persist the default author.
- Events informing about actions of the live sync progress.
- Why we performed a sync exchange
- Why we started a sync request
Functions§
- Converts an
EntryStatusinto a [‘ContentStatus’].
Fields§
§endpoint: EndpointEndpoint used by the engine.
sync: SyncHandleHandle to the actor thread.
The persistent default author for this engine.
-Implementations§
source§impl Engine
impl Engine
Implementations§
source§impl Engine
impl Engine
sourcepub async fn spawn<B: Store>(
endpoint: Endpoint,
- gossip: Gossip,
+ gossip: Gossip,
replica_store: Store,
bao_store: B,
- downloader: Downloader,
+ downloader: Downloader,
default_author_storage: DefaultAuthorStorage
) -> Result<Self>
pub async fn spawn<B: Store>( endpoint: Endpoint, - gossip: Gossip, + gossip: Gossip, replica_store: Store, bao_store: B, - downloader: Downloader, + downloader: Downloader, default_author_storage: DefaultAuthorStorage ) -> Result<Self>
Start the sync engine.
This will spawn two tokio tasks for the live sync coordination and gossip actors, and a
@@ -21,7 +21,7 @@ thread for the Start to sync a document. If Event emitted when a sync operation completes Peer we synced with Peer we synced with Origin of the sync exchange Timestamp when the sync started Timestamp when the sync finished Multi-dimensional key-value documents with an efficient synchronization protocol The crate operates on Replicas. A replica contains an unlimited number of
Entries. Each entry is identified by a key, its author, and the replica’s
-namespace. Its value is the 32-byte BLAKE3 hash
+namespace. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
The content data itself is not stored or transferred through a replica. All entries in a replica are signed with two keypairs: Metrics for iroh-docs Errors that may occur on handling incoming sync connections. Failed to establish connection Failed to open replica We aborted the sync request. Failed to run sync Failed to close Connect to a peer and sync a replica Handle an iroh-docs connection and sync all shared documents in the replica store. Details of a finished sync operation. The namespace that was synced. The peer we syned with. The peer we syned with. The outcome of the sync operation The time this operation took Contains both a key (either secret or public) to a document, and a list of peers to join. either a public or private key A list of nodes to contact. Create a new doc ticket A list of nodes to contact.pub async fn start_sync(
&self,
namespace: NamespaceId,
- peers: Vec<NodeAddr>
+ peers: Vec<NodeAddr>
) -> Result<()>
peers is non-empty, it will both do an initial set-reconciliation sync with each peer,
and join an iroh-gossip swarm with these peers to receive and broadcast document updates.pub struct SyncEvent {
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub origin: Origin,
pub finished: SystemTime,
pub started: SystemTime,
pub result: Result<SyncDetails, String>,
}Expand description
Fields§
§peer: PublicKeyFields§
§peer: PublicKeyorigin: Originfinished: SystemTimestarted: SystemTimeExpand description
pub struct Metrics {Show 19 fields
- pub new_entries_local: Counter,
- pub new_entries_remote: Counter,
- pub new_entries_local_size: Counter,
- pub new_entries_remote_size: Counter,
- pub sync_via_connect_success: Counter,
- pub sync_via_connect_failure: Counter,
- pub sync_via_accept_success: Counter,
- pub sync_via_accept_failure: Counter,
- pub actor_tick_main: Counter,
- pub doc_gossip_tick_main: Counter,
- pub doc_gossip_tick_event: Counter,
- pub doc_gossip_tick_actor: Counter,
- pub doc_gossip_tick_pending_join: Counter,
- pub doc_live_tick_main: Counter,
- pub doc_live_tick_actor: Counter,
- pub doc_live_tick_replica_event: Counter,
- pub doc_live_tick_running_sync_connect: Counter,
- pub doc_live_tick_running_sync_accept: Counter,
- pub doc_live_tick_pending_downloads: Counter,
+ pub new_entries_local: Counter,
+ pub new_entries_remote: Counter,
+ pub new_entries_local_size: Counter,
+ pub new_entries_remote_size: Counter,
+ pub sync_via_connect_success: Counter,
+ pub sync_via_connect_failure: Counter,
+ pub sync_via_accept_success: Counter,
+ pub sync_via_accept_failure: Counter,
+ pub actor_tick_main: Counter,
+ pub doc_gossip_tick_main: Counter,
+ pub doc_gossip_tick_event: Counter,
+ pub doc_gossip_tick_actor: Counter,
+ pub doc_gossip_tick_pending_join: Counter,
+ pub doc_live_tick_main: Counter,
+ pub doc_live_tick_actor: Counter,
+ pub doc_live_tick_replica_event: Counter,
+ pub doc_live_tick_running_sync_connect: Counter,
+ pub doc_live_tick_running_sync_accept: Counter,
+ pub doc_live_tick_pending_downloads: Counter,
Expand description
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
impl Metric for Metrics
fn with_metric<T, F>(f: F)
Fields§
§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: CounterTrait Implementations§
Auto Trait Implementations§
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnwindSafe for Metrics
Blanket Implementations§
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedImplicit<'a, E> for T
Expand description
Variants§
Connect
Open
Abort
Sync
Close
Implementations§
impl AcceptError
Implementations§
Trait Implementations§
impl Debug for AcceptError
impl Display for AcceptError
impl Error for AcceptError
fn source(&self) -> Option<&(dyn Error + 'static)>
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for AcceptError
impl RefUnwindSafe for AcceptError
impl Send for AcceptError
impl Sync for AcceptError
impl Unpin for AcceptError
impl UnwindSafe for AcceptError
Blanket Implementations§
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
Expand description
Expand description
Struct iroh_docs::
source · pub struct SyncFinished {
pub namespace: NamespaceId,
- pub peer: PublicKey,
+ pub peer: PublicKey,
pub outcome: SyncOutcome,
pub timings: Timings,
}Expand description
Fields§
§namespace: NamespaceIdpeer: PublicKeypeer: PublicKeyoutcome: SyncOutcometimings: TimingsTrait Implementations§
impl Clone for SyncFinished
fn clone(&self) -> SyncFinished
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for SyncFinished
impl RefUnwindSafe for SyncFinished
impl Send for SyncFinished
impl Sync for SyncFinished
impl Unpin for SyncFinished
impl UnwindSafe for SyncFinished
Blanket Implementations§
impl<T> Any for T
Implementations§
Trait Implementations§
impl Debug for ContentHashesIterator
Trait Implementations§
impl Debug for ContentHashesIterator
impl Iterator for ContentHashesIterator
fn next(&mut self) -> Option<Self::Item>
fn next_chunk<const N: usize>(
&mut self
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
iter_next_chunk)N values. Read morefn size_hint(&self) -> (usize, Option<usize>)
fn count(self) -> usize
F9B4CA)fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for T
impl<T> PeerIdentity for T
impl<T> PeerIdentity for T
impl<T> RuleType for T
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for T
impl<T> PeerIdentity for T
impl<T> PeerIdentity for T
impl<T> RuleType for T
pub struct DocTicket {
pub capability: Capability,
- pub nodes: Vec<NodeAddr>,
+ pub nodes: Vec<NodeAddr>,
}Expand description
Fields§
§capability: Capabilitynodes: Vec<NodeAddr>Implementations§
impl DocTicket
pub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self
nodes: Vec<NodeAddr>Implementations§
Trait Implementations§
impl<'de> Deserialize<'de> for DocTicket
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
Auto Trait Implementations§
impl Freeze for DocTicket
impl RefUnwindSafe for DocTicket
impl Send for DocTicket
impl Sync for DocTicket
impl Unpin for DocTicket
impl UnwindSafe for DocTicket
Blanket Implementations§
impl<T> Any for T
Auto Trait Implementations§
impl Freeze for DocTicket
impl RefUnwindSafe for DocTicket
impl Send for DocTicket
impl Sync for DocTicket
impl Unpin for DocTicket
impl UnwindSafe for DocTicket
Blanket Implementations§
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedExplicit<'a, E> for T
impl<'a, T, E> AsTaggedImplicit<'a, E> for T
F9B4CA)fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for T
impl<T> PeerIdentity for T
impl<T> PeerIdentity for T
impl<T> RuleType for T
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<T> DeserializeOwned for Twhere
- T: for<'de> Deserialize<'de>,
impl<T> PeerIdentity for Twhere
+ T: for<'de> Deserialize<'de>,
impl<T> PeerIdentity for T
impl<T> RuleType for T
pub struct Entry { /* private fields */ }Expand description
A single entry in a Replica
An entry is identified by a key, its Author, and the Replica’s
-NamespaceSecret. Its value is the 32-byte BLAKE3 hash
+NamespaceSecret. Its value is the 32-byte BLAKE3 hash
of the entry’s content data, the size of this content data, and a timestamp.
Implementations§
source§impl Entry
impl Entry
sourcepub fn new(id: RecordIdentifier, record: Record) -> Self
pub fn new(id: RecordIdentifier, record: Record) -> Self
Create a new entry
sourcepub fn new_empty(id: RecordIdentifier) -> Self
pub fn new_empty(id: RecordIdentifier) -> Self
Create a new empty entry with the current timestamp.
@@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.sourcepub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
pub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry
Sign this entry with a NamespaceSecret and Author.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
pub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
pub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
sourcepub fn content_hash(&self) -> Hash
pub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
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<SignedEntry> for Entry
impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
fn from(value: SignedEntry) -> Self
source§impl Ord for Entry
impl Ord for Entry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Record.html b/pr/2574/docs/iroh_docs/sync/struct.Record.html
index c3bae419a3..cb1d99f9a7 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Record.html
@@ -1,11 +1,11 @@
Record in iroh_docs::sync - Rust pub struct Record { /* private fields */ }
Expand description
The data part of an entry in a Replica.
-Implementations§
source§impl Record
Implementations§
source§impl Record
sourcepub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
+sourcepub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
index 77e48b6e0e..6d1dde19de 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html
@@ -5,7 +5,7 @@
&mut self,
key: impl AsRef<[u8]>,
author: &Author,
- hash: Hash,
+ hash: Hash,
len: u64
) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
key: impl AsRef<[u8]>,
author: &Author,
data: impl AsRef<[u8]>
-) -> Result<Hash, InsertError>Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it.
Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
+sourcepub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
+sourcepub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for SignedEntry
source§impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
Converts to this type from the input type.source§impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
pub struct Record { /* private fields */ }Expand description
The data part of an entry in a Replica.
Implementations§
source§impl Record
impl Record
Implementations§
source§impl Record
impl Record
sourcepub fn empty_current() -> Self
pub fn empty_current() -> Self
Create a tombstone record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
pub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn new_current(hash: Hash, len: u64) -> Self
pub fn new_current(hash: Hash, len: u64) -> Self
Create a new Record with the timestamp set to now.
sourcepub fn content_len(&self) -> u64
pub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
pub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
sourcepub fn content_hash(&self) -> Hash
pub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Record
impl<'de> Deserialize<'de> for Record
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 Record
impl Ord for Record
Ordering for entry values.
diff --git a/pr/2574/docs/iroh_docs/sync/struct.Replica.html b/pr/2574/docs/iroh_docs/sync/struct.Replica.html index 77e48b6e0e..6d1dde19de 100644 --- a/pr/2574/docs/iroh_docs/sync/struct.Replica.html +++ b/pr/2574/docs/iroh_docs/sync/struct.Replica.html @@ -5,7 +5,7 @@ &mut self, key: impl AsRef<[u8]>, author: &Author, - hash: Hash, + hash: Hash, len: u64 ) -> Result<usize, InsertError>Insert a new record at the given key.
The entry will by signed by the provided author.
@@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.
Hashes the given data and inserts it.
+) -> Result<Hash, InsertError>Hashes the given data and inserts it.
This does not store the content, just the record of it. Returns the calculated hash.
sourcepub fn record_id(
diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
index fe1f1a3633..5aa35d0422 100644
--- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
pub fn record_id( diff --git a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html index fe1f1a3633..5aa35d0422 100644 --- a/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html +++ b/pr/2574/docs/iroh_docs/sync/struct.SignedEntry.html @@ -14,7 +14,7 @@
sourcepub fn signature(&self) -> &EntrySignature
pub fn signature(&self) -> &EntrySignature
Get the signature.
sourcepub fn validate_empty(&self) -> Result<(), ValidationFailure>
pub fn validate_empty(&self) -> Result<(), ValidationFailure>
Validate that the entry has the empty hash if the length is 0, or a non-zero length.
sourcepub fn content_hash(&self) -> Hash
pub fn content_hash(&self) -> Hash
Get the content [struct@Hash] of the entry.
sourcepub fn content_hash(&self) -> Hash
pub fn content_hash(&self) -> Hash
Get the content Hash of the entry.
sourcepub fn content_len(&self) -> u64
pub fn content_len(&self) -> u64
Get the content length of the entry.
Get the author bytes of this entry.
Methods from Deref<Target = Record>§
sourcepub fn content_len(&self) -> u64
pub fn content_len(&self) -> u64
Get the length of the data addressed by this record’s content hash.
-sourcepub fn content_hash(&self) -> Hash
pub fn content_hash(&self) -> Hash
Get the [struct@Hash] of the content data of this record.
sourcepub fn content_hash(&self) -> Hash
pub fn content_hash(&self) -> Hash
Get the Hash of the content data of this record.
Trait Implementations§
source§impl Clone for SignedEntry
impl Clone for SignedEntry
source§fn clone(&self) -> SignedEntry
fn clone(&self) -> SignedEntry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for SignedEntry
impl Debug for SignedEntry
source§impl Deref for SignedEntry
impl Deref for SignedEntry
source§impl<'de> Deserialize<'de> for SignedEntry
impl<'de> Deserialize<'de> for SignedEntry
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<SignedEntry> for Entry
impl From<SignedEntry> for Entry
source§fn from(value: SignedEntry) -> Self
fn from(value: SignedEntry) -> Self
source§impl Ord for SignedEntry
impl Ord for SignedEntry
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 4aa60077a0..faa3b5f5b0 100644
--- a/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2574/docs/iroh_docs/sync/type.ContentStatusCallback.html
@@ -1,2 +1,2 @@
-ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+ContentStatusCallback in iroh_docs::sync - Rust Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
index 94acb63969..c9aa906e8f 100644
--- a/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
+++ b/pr/2574/docs/iroh_gossip/metrics/struct.Metrics.html
@@ -1,26 +1,26 @@
Metrics in iroh_gossip::metrics - Rust Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
+Type Alias iroh_docs::sync::ContentStatusCallback
source · pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;Expand description
Callback that may be set on a replica to determine the availability status for a content hash.
Aliased Type§
struct ContentStatusCallback { /* private fields */ }Struct iroh_gossip::metrics::Metrics
source · pub struct Metrics {Show 18 fields
- pub msgs_ctrl_sent: Counter,
- pub msgs_ctrl_recv: Counter,
- pub msgs_data_sent: Counter,
- pub msgs_data_recv: Counter,
- pub msgs_data_sent_size: Counter,
- pub msgs_data_recv_size: Counter,
- pub msgs_ctrl_sent_size: Counter,
- pub msgs_ctrl_recv_size: Counter,
- pub neighbor_up: Counter,
- pub neighbor_down: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_rx: Counter,
- pub actor_tick_endpoint: Counter,
- pub actor_tick_dialer: Counter,
- pub actor_tick_dialer_success: Counter,
- pub actor_tick_dialer_failure: Counter,
- pub actor_tick_in_event_rx: Counter,
- pub actor_tick_timers: Counter,
+ pub msgs_ctrl_sent: Counter,
+ pub msgs_ctrl_recv: Counter,
+ pub msgs_data_sent: Counter,
+ pub msgs_data_recv: Counter,
+ pub msgs_data_sent_size: Counter,
+ pub msgs_data_recv_size: Counter,
+ pub msgs_ctrl_sent_size: Counter,
+ pub msgs_ctrl_recv_size: Counter,
+ pub neighbor_up: Counter,
+ pub neighbor_down: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_rx: Counter,
+ pub actor_tick_endpoint: Counter,
+ pub actor_tick_dialer: Counter,
+ pub actor_tick_dialer_success: Counter,
+ pub actor_tick_dialer_failure: Counter,
+ pub actor_tick_in_event_rx: Counter,
+ pub actor_tick_timers: Counter,
}Expand description
Enum of metrics for the module
-Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
source§impl Metric for Metrics
impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
fn with_metric<T, F>(f: F)where
+
Fields§
§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: CounterTrait Implementations§
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> 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/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
index fd1e32b030..422d51b040 100644
--- a/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
+++ b/pr/2574/docs/iroh_net/discovery/local_swarm_discovery/index.html
@@ -1,4 +1,4 @@
-iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+iroh_net::discovery::local_swarm_discovery - Rust Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
index 553fdc6f06..fabd02af26 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§
Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
+Module iroh_net::discovery::local_swarm_discovery
source · Expand description
A discovery service that uses an mdns-like service to discover local nodes.
This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed.
See the swarm-discovery crate for more details.
Structs§
- Discovery using
swarm-discovery, a variation on mdns
pub struct AddrInfo {
+AddrInfo in iroh_net::endpoint - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§impl AddrInfo
pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+Implementations§
source§impl AddrInfo
sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for AddrInfo
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for AddrInfo
source§impl PartialEq for AddrInfo
§impl PartialOrd for AddrInfo
source§impl PartialOrd for AddrInfo
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for AddrInfo
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for AddrInfo
§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for AddrInfo
source§impl StructuralPartialEq for AddrInfo
Auto Trait Implementations§
§impl Freeze for AddrInfo
§impl RefUnwindSafe for AddrInfo
§impl Send for AddrInfo
§impl Sync for AddrInfo
§impl Unpin for AddrInfo
§impl UnwindSafe for AddrInfo
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
index 6b4e0a6d8a..731d3c6492 100644
--- a/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2574/docs/iroh_net/endpoint/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
+NodeAddr in iroh_net::endpoint - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type
whenever a connection to other nodes needs to be established.
Fields§
§node_id: PublicKeyThe node’s identifier.
§info: AddrInfoAddressing information to connect to Self::node_id.
-Implementations§
§impl NodeAddr
pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
-pub fn with_direct_addresses(
+
Implementations§
source§impl NodeAddr
sourcepub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr
Adds a relay url to the node’s AddrInfo.
+sourcepub fn with_direct_addresses(
self,
addresses: impl IntoIterator<Item = SocketAddr>
) -> NodeAddr
Adds the given direct addresses to the peer’s AddrInfo.
-pub fn from_parts(
+
sourcepub fn from_parts(
node_id: PublicKey,
relay_url: Option<RelayUrl>,
direct_addresses: Vec<SocketAddr>
) -> NodeAddr
Creates a new NodeAddr from its parts.
-pub fn apply_options(&mut self, opts: AddrInfoOptions)
Applies the options to self.
+sourcepub fn apply_options(&mut self, opts: AddrInfoOptions)
pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
-Trait Implementations§
§impl<'de> Deserialize<'de> for NodeAddr
§fn deserialize<__D>(
+
sourcepub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>
Returns the direct addresses of this peer.
+Trait Implementations§
source§impl<'de> Deserialize<'de> for NodeAddr
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Ord for NodeAddr
source§impl PartialEq for NodeAddr
§impl PartialOrd for NodeAddr
source§impl PartialOrd for NodeAddr
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for NodeAddr
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for NodeAddr
§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for NodeAddr
source§impl StructuralPartialEq for NodeAddr
Auto Trait Implementations§
§impl Freeze for NodeAddr
§impl RefUnwindSafe for NodeAddr
§impl Send for NodeAddr
§impl Sync for NodeAddr
§impl Unpin for NodeAddr
§impl UnwindSafe for NodeAddr
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
index 10605546ad..028a8716f1 100644
--- a/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2574/docs/iroh_net/key/enum.KeyParsingError.html
@@ -1,10 +1,10 @@
-KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
pub enum KeyParsingError {
- Base32(HexOrBase32ParseError),
+KeyParsingError in iroh_net::key - Rust Enum iroh_net::key::KeyParsingError
source · pub enum KeyParsingError {
+ Base32(HexOrBase32ParseError),
Key(Error),
}
Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
+Variants§
§Base32(HexOrBase32ParseError)
Error when decoding the base32.
§Key(Error)
Error when decoding the public key.
-Trait Implementations§
§impl Debug for KeyParsingError
§impl Display for KeyParsingError
§impl Error for KeyParsingError
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()§impl From<Error> for KeyParsingError
§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.§impl From<HexOrBase32ParseError> for KeyParsingError
§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
Trait Implementations§
source§impl Debug for KeyParsingError
source§impl Display for KeyParsingError
source§impl Error for KeyParsingError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<Error> for KeyParsingError
source§fn from(source: Error) -> KeyParsingError
Converts to this type from the input type.source§impl From<HexOrBase32ParseError> for KeyParsingError
source§fn from(source: HexOrBase32ParseError) -> KeyParsingError
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for KeyParsingError
§impl !RefUnwindSafe for KeyParsingError
§impl Send for KeyParsingError
§impl Sync for KeyParsingError
§impl Unpin for KeyParsingError
§impl !UnwindSafe for KeyParsingError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/index.html b/pr/2574/docs/iroh_net/key/index.html
index 894679a61b..7d43263556 100644
--- a/pr/2574/docs/iroh_net/key/index.html
+++ b/pr/2574/docs/iroh_net/key/index.html
@@ -1,2 +1,2 @@
-iroh_net::key - Rust Expand description
Cryptographic key handling for iroh-net.
+iroh_net::key - Rust
\ No newline at end of file
diff --git a/pr/2574/docs/iroh_net/key/struct.PublicKey.html b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
index 86eb48063b..d8e59a5672 100644
--- a/pr/2574/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.PublicKey.html
@@ -1,45 +1,45 @@
-PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
+PublicKey in iroh_net::key - Rust pub struct PublicKey(/* private fields */);
Expand description
A public key.
The key itself is just a 32 byte array, but a key has associated crypto
information that is cached for performance reasons.
The cache item will be refreshed every time a crypto operation is performed,
or when a key is deserialised or created from a byte array.
Serialisation or creation from a byte array is cheap if the key is already
in the cache, but expensive if it is not.
-Implementations§
§impl PublicKey
pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
+Implementations§
source§impl PublicKey
sourcepub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>
Construct a PublicKey from a slice of bytes.
§Warning
This will return a [SignatureError] if the bytes passed into this method do not represent
a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.
See [VerifyingKey::from_bytes] for details.
-pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
+sourcepub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>
Verify a signature on a message with this secret key’s public key.
§Return
Returns Ok(()) if the signature is valid, and Err otherwise.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PublicKey
source§fn deserialize<D>(
deserializer: D
) -> Result<PublicKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for PublicKey
§impl Hash for PublicKey
source§impl Ord for PublicKey
source§impl PartialEq for PublicKey
§impl PartialOrd for PublicKey
source§impl PartialOrd for PublicKey
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for PublicKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for PublicKey
§impl Eq for PublicKey
§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
source§impl Copy for PublicKey
source§impl Eq for PublicKey
source§impl StructuralPartialEq for PublicKey
Auto Trait Implementations§
§impl Freeze for PublicKey
§impl RefUnwindSafe for PublicKey
§impl Send for PublicKey
§impl Sync for PublicKey
§impl Unpin for PublicKey
§impl UnwindSafe for PublicKey
Blanket Implementations§
§impl<A, T> AsBits<T> for A
§fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2574/docs/iroh_net/key/struct.SecretKey.html b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
index 663716baab..3a113a463e 100644
--- a/pr/2574/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2574/docs/iroh_net/key/struct.SecretKey.html
@@ -1,24 +1,24 @@
-SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
-Implementations§
§impl SecretKey
pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
+SecretKey in iroh_net::key - Rust pub struct SecretKey { /* private fields */ }
Expand description
A secret key.
+Implementations§
source§impl SecretKey
sourcepub fn generate() -> SecretKey
Generate a new SecretKey with the default randomness generator.
+sourcepub fn generate_with_rng<R>(csprng: &mut R) -> SecretKeywhere
R: CryptoRngCore + ?Sized,
Generate a new SecretKey with a randomness generator.
-pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
-pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>where
+
sourcepub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>
Serialise this key to OpenSSH format.
+sourcepub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
Deserialise this key from OpenSSH format.
-sourcepub fn sign(&self, msg: &[u8]) -> Signature
Sign the given message and return a digital signature
+sourcepub fn to_bytes(&self) -> [u8; 32]
Convert this to the bytes representing the secret part.
The public part can always be recovered.
-pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey
Create a secret key from its byte representation.
-Trait Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for SecretKey
source§fn deserialize<D>(
deserializer: D
) -> Result<SecretKey, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for SecretKey
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
§impl !Freeze for SecretKey
§impl RefUnwindSafe for SecretKey
§impl Send for SecretKey
§impl Sync for SecretKey
§impl Unpin for SecretKey
§impl UnwindSafe for SecretKey
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
index 454a822fdf..e86f2bc884 100644
--- a/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2574/docs/iroh_net/key/struct.SharedSecret.html
@@ -1,7 +1,7 @@
-SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
source§impl<T> Any for Twhere
+SharedSecret in iroh_net::key - Rust Struct iroh_net::key::SharedSecret
source · pub struct SharedSecret(/* private fields */);
Expand description
Shared Secret.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
Blanket Implementations§
§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/2574/docs/iroh_net/key/type.NodeId.html b/pr/2574/docs/iroh_net/key/type.NodeId.html
index 50c5321bfd..c0f10b831c 100644
--- a/pr/2574/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2574/docs/iroh_net/key/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net::key - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
index b4e7e26dd0..38ac8cdc56 100644
--- a/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
+++ b/pr/2574/docs/iroh_net/metrics/struct.MagicsockMetrics.html
@@ -1,53 +1,53 @@
MagicsockMetrics in iroh_net::metrics - Rust Struct iroh_net::metrics::MagicsockMetrics
source · pub struct MagicsockMetrics {Show 40 fields
- pub re_stun_calls: Counter,
- pub update_direct_addrs: Counter,
- pub send_ipv4: Counter,
- pub send_ipv6: Counter,
- pub send_relay: Counter,
- pub send_relay_error: Counter,
- pub send_data: Counter,
- pub send_data_network_down: Counter,
- pub recv_data_relay: Counter,
- pub recv_data_ipv4: Counter,
- pub recv_data_ipv6: Counter,
- pub recv_datagrams: Counter,
- pub send_disco_udp: Counter,
- pub send_disco_relay: Counter,
- pub sent_disco_udp: Counter,
- pub sent_disco_relay: Counter,
- pub sent_disco_ping: Counter,
- pub sent_disco_pong: Counter,
- pub sent_disco_call_me_maybe: Counter,
- pub recv_disco_bad_key: Counter,
- pub recv_disco_bad_parse: Counter,
- pub recv_disco_udp: Counter,
- pub recv_disco_relay: Counter,
- pub recv_disco_ping: Counter,
- pub recv_disco_pong: Counter,
- pub recv_disco_call_me_maybe: Counter,
- pub recv_disco_call_me_maybe_bad_disco: Counter,
- pub relay_home_change: Counter,
- pub num_direct_conns_added: Counter,
- pub num_direct_conns_removed: Counter,
- pub num_relay_conns_added: Counter,
- pub num_relay_conns_removed: Counter,
- pub actor_tick_main: Counter,
- pub actor_tick_msg: Counter,
- pub actor_tick_re_stun: Counter,
- pub actor_tick_portmap_changed: Counter,
- pub actor_tick_direct_addr_heartbeat: Counter,
- pub actor_tick_direct_addr_update_receiver: Counter,
- pub actor_link_change: Counter,
- pub actor_tick_other: Counter,
+ pub re_stun_calls: Counter,
+ pub update_direct_addrs: Counter,
+ pub send_ipv4: Counter,
+ pub send_ipv6: Counter,
+ pub send_relay: Counter,
+ pub send_relay_error: Counter,
+ pub send_data: Counter,
+ pub send_data_network_down: Counter,
+ pub recv_data_relay: Counter,
+ pub recv_data_ipv4: Counter,
+ pub recv_data_ipv6: Counter,
+ pub recv_datagrams: Counter,
+ pub send_disco_udp: Counter,
+ pub send_disco_relay: Counter,
+ pub sent_disco_udp: Counter,
+ pub sent_disco_relay: Counter,
+ pub sent_disco_ping: Counter,
+ pub sent_disco_pong: Counter,
+ pub sent_disco_call_me_maybe: Counter,
+ pub recv_disco_bad_key: Counter,
+ pub recv_disco_bad_parse: Counter,
+ pub recv_disco_udp: Counter,
+ pub recv_disco_relay: Counter,
+ pub recv_disco_ping: Counter,
+ pub recv_disco_pong: Counter,
+ pub recv_disco_call_me_maybe: Counter,
+ pub recv_disco_call_me_maybe_bad_disco: Counter,
+ pub relay_home_change: Counter,
+ pub num_direct_conns_added: Counter,
+ pub num_direct_conns_removed: Counter,
+ pub num_relay_conns_added: Counter,
+ pub num_relay_conns_removed: Counter,
+ pub actor_tick_main: Counter,
+ pub actor_tick_msg: Counter,
+ pub actor_tick_re_stun: Counter,
+ pub actor_tick_portmap_changed: Counter,
+ pub actor_tick_direct_addr_heartbeat: Counter,
+ pub actor_tick_direct_addr_update_receiver: Counter,
+ pub actor_link_change: Counter,
+ pub actor_tick_other: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
-§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
-§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
-§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
-§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
-§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: CounterNumber of QUIC datagrams received.
+§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: CounterThe number of direct connections we have made to peers.
+§num_direct_conns_removed: CounterThe number of direct connections we have lost to peers.
+§num_relay_conns_added: CounterThe number of connections to peers we have added over relay.
+§num_relay_conns_removed: CounterThe number of connections to peers we have removed over relay.
+§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
index 870e592d33..e388aec702 100644
--- a/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/netcheck/struct.Metrics.html
@@ -1,15 +1,15 @@
Metrics in iroh_net::netcheck - Rust pub struct Metrics {
- pub stun_packets_dropped: Counter,
- pub stun_packets_sent_ipv4: Counter,
- pub stun_packets_sent_ipv6: Counter,
- pub stun_packets_recv_ipv4: Counter,
- pub stun_packets_recv_ipv6: Counter,
- pub reports: Counter,
- pub reports_full: Counter,
+ pub stun_packets_dropped: Counter,
+ pub stun_packets_sent_ipv4: Counter,
+ pub stun_packets_sent_ipv6: Counter,
+ pub stun_packets_recv_ipv4: Counter,
+ pub stun_packets_recv_ipv6: Counter,
+ pub reports: Counter,
+ pub reports_full: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
index ef53efe4c1..07d332fb9b 100644
--- a/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/portmapper/struct.Metrics.html
@@ -1,19 +1,19 @@
Metrics in iroh_net::portmapper - Rust Struct iroh_net::portmapper::Metrics
source · pub struct Metrics {
- pub probes_started: Counter,
- pub local_port_updates: Counter,
- pub mapping_attempts: Counter,
- pub mapping_failures: Counter,
- pub external_address_updated: Counter,
- pub upnp_probes: Counter,
- pub upnp_probes_failed: Counter,
- pub upnp_available: Counter,
- pub upnp_gateway_updated: Counter,
- pub pcp_probes: Counter,
- pub pcp_available: Counter,
+ pub probes_started: Counter,
+ pub local_port_updates: Counter,
+ pub mapping_attempts: Counter,
+ pub mapping_failures: Counter,
+ pub external_address_updated: Counter,
+ pub upnp_probes: Counter,
+ pub upnp_probes_failed: Counter,
+ pub upnp_available: Counter,
+ pub upnp_gateway_updated: Counter,
+ pub pcp_probes: Counter,
+ pub pcp_available: Counter,
}
Expand description
Enum of metrics for the module
-Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: CounterTrait Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
Auto Trait Implementations§
§impl Freeze for Metrics
§impl RefUnwindSafe for Metrics
§impl Send for Metrics
§impl Sync for Metrics
§impl Unpin for Metrics
§impl UnwindSafe for Metrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
index f05bb96892..403a88492b 100644
--- a/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
+++ b/pr/2574/docs/iroh_net/relay/server/struct.Metrics.html
@@ -1,46 +1,46 @@
Metrics in iroh_net::relay::server - Rust pub struct Metrics {Show 19 fields
- pub bytes_sent: Counter,
- pub bytes_recv: Counter,
- pub send_packets_sent: Counter,
- pub send_packets_recv: Counter,
- pub send_packets_dropped: Counter,
- pub disco_packets_sent: Counter,
- pub disco_packets_recv: Counter,
- pub disco_packets_dropped: Counter,
- pub other_packets_sent: Counter,
- pub other_packets_recv: Counter,
- pub other_packets_dropped: Counter,
- pub got_ping: Counter,
- pub sent_pong: Counter,
- pub unknown_frames: Counter,
- pub accepts: Counter,
- pub disconnects: Counter,
- pub unique_client_keys: Counter,
- pub websocket_accepts: Counter,
- pub derp_accepts: Counter,
+ pub bytes_sent: Counter,
+ pub bytes_recv: Counter,
+ pub send_packets_sent: Counter,
+ pub send_packets_recv: Counter,
+ pub send_packets_dropped: Counter,
+ pub disco_packets_sent: Counter,
+ pub disco_packets_recv: Counter,
+ pub disco_packets_dropped: Counter,
+ pub other_packets_sent: Counter,
+ pub other_packets_recv: Counter,
+ pub other_packets_dropped: Counter,
+ pub got_ping: Counter,
+ pub sent_pong: Counter,
+ pub unknown_frames: Counter,
+ pub accepts: Counter,
+ pub disconnects: Counter,
+ pub unique_client_keys: Counter,
+ pub websocket_accepts: Counter,
+ pub derp_accepts: Counter,
}
Expand description
Metrics tracked for the relay server
-Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
-§bytes_recv: CounterBytes received from a FrameType::SendPacket
-§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
-§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
-§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
-§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
-§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
-§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
-§other_packets_sent: CounterPackets of other FrameTypes sent
-§other_packets_recv: CounterPackets of other FrameTypes received
-§other_packets_dropped: CounterPackets of other FrameTypes dropped
-§got_ping: CounterNumber of FrameType::Pings received
-§sent_pong: CounterNumber of FrameType::Pongs sent
-§unknown_frames: CounterNumber of FrameType::Unknown received
-§accepts: CounterNumber of connections we have accepted
-§disconnects: CounterNumber of connections we have removed because of an error
-§unique_client_keys: CounterNumber of unique client keys per day
-§websocket_accepts: CounterNumber of accepted websocket connections
-§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
-Trait Implementations§
source§impl Metric for Metrics
§fn with_metric<T, F>(f: F)where
+
Fields§
§bytes_sent: CounterBytes sent from a FrameType::SendPacket
+§bytes_recv: CounterBytes received from a FrameType::SendPacket
+§send_packets_sent: CounterFrameType::SendPacket sent, that are not disco messages
+§send_packets_recv: CounterFrameType::SendPacket received, that are not disco messages
+§send_packets_dropped: CounterFrameType::SendPacket dropped, that are not disco messages
+§disco_packets_sent: CounterFrameType::SendPacket sent that are disco messages
+§disco_packets_recv: CounterFrameType::SendPacket received that are disco messages
+§disco_packets_dropped: CounterFrameType::SendPacket dropped that are disco messages
+§other_packets_sent: CounterPackets of other FrameTypes sent
+§other_packets_recv: CounterPackets of other FrameTypes received
+§other_packets_dropped: CounterPackets of other FrameTypes dropped
+§got_ping: CounterNumber of FrameType::Pings received
+§sent_pong: CounterNumber of FrameType::Pongs sent
+§unknown_frames: CounterNumber of FrameType::Unknown received
+§accepts: CounterNumber of connections we have accepted
+§disconnects: CounterNumber of connections we have removed because of an error
+§unique_client_keys: CounterNumber of unique client keys per day
+§websocket_accepts: CounterNumber of accepted websocket connections
+§derp_accepts: CounterNumber of accepted ‘iroh derp http’ connection upgrades
+Trait Implementations§