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/2612/docs/iroh_blobs/downloader/struct.Downloader.html b/pr/2612/docs/iroh_blobs/downloader/struct.Downloader.html index 88d2e7f7c0..1c6762c576 100644 --- a/pr/2612/docs/iroh_blobs/downloader/struct.Downloader.html +++ b/pr/2612/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/2612/docs/iroh_blobs/downloader/trait.Dialer.html b/pr/2612/docs/iroh_blobs/downloader/trait.Dialer.html
index 2dfc99bd33..d23576a87e 100644
--- a/pr/2612/docs/iroh_blobs/downloader/trait.Dialer.html
+++ b/pr/2612/docs/iroh_blobs/downloader/trait.Dialer.html
@@ -1,15 +1,15 @@
-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 + 'static;
// 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 node_id(&self) -> NodeId;
+ fn is_pending(&self, node: NodeId) -> bool;
+ fn node_id(&self) -> NodeId;
}
Expand description
Trait modeling a dialer. This allows for IO-less testing.
Required Associated Types§
sourcetype Connection: Clone + 'static
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
source§fn node_id(&self) -> NodeId
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
source§fn node_id(&self) -> NodeId
Implementors§
impl<T> Any for Twhere
diff --git a/pr/2612/docs/iroh_blobs/downloader/trait.Dialer.html b/pr/2612/docs/iroh_blobs/downloader/trait.Dialer.html
index 2dfc99bd33..d23576a87e 100644
--- a/pr/2612/docs/iroh_blobs/downloader/trait.Dialer.html
+++ b/pr/2612/docs/iroh_blobs/downloader/trait.Dialer.html
@@ -1,15 +1,15 @@
-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 + 'static;
// 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 node_id(&self) -> NodeId;
+ fn is_pending(&self, node: NodeId) -> bool;
+ fn node_id(&self) -> NodeId;
}
Expand description
Trait modeling a dialer. This allows for IO-less testing.
Required Associated Types§
sourcetype Connection: Clone + 'static
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
source§fn node_id(&self) -> NodeId
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
source§fn node_id(&self) -> NodeId
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 + 'static;
// 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 node_id(&self) -> NodeId;
+ fn is_pending(&self, node: NodeId) -> bool;
+ fn node_id(&self) -> NodeId;
}
Expand description
Trait modeling a dialer. This allows for IO-less testing.
Required Associated Types§
sourcetype Connection: Clone + 'static
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
source§fn node_id(&self) -> NodeId
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
fn node_id(&self) -> NodeId
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/2612/docs/iroh_blobs/export/enum.ExportProgress.html b/pr/2612/docs/iroh_blobs/export/enum.ExportProgress.html
index b7ed98104e..4b75ec988b 100644
--- a/pr/2612/docs/iroh_blobs/export/enum.ExportProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/export/enum.ExportProgress.html b/pr/2612/docs/iroh_blobs/export/enum.ExportProgress.html
index b7ed98104e..4b75ec988b 100644
--- a/pr/2612/docs/iroh_blobs/export/enum.ExportProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/get/db/enum.DownloadProgress.html b/pr/2612/docs/iroh_blobs/get/db/enum.DownloadProgress.html
index 36d0d471ba..ee27dc5703 100644
--- a/pr/2612/docs/iroh_blobs/get/db/enum.DownloadProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_blobs/metrics/struct.Metrics.html
index b0f6a2bbf7..ed6579be27 100644
--- a/pr/2612/docs/iroh_blobs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/provider/enum.AddProgress.html b/pr/2612/docs/iroh_blobs/provider/enum.AddProgress.html
index 4d8bd0e023..b75f639a3e 100644
--- a/pr/2612/docs/iroh_blobs/provider/enum.AddProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html b/pr/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
index a02d787cb8..78120c7523 100644
--- a/pr/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/store/enum.ValidateProgress.html b/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html
index 75baf8d96b..60a86461ff 100644
--- a/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.Hash.html b/pr/2612/docs/iroh_blobs/struct.Hash.html
index c3bab58851..1a1bcaba85 100644
--- a/pr/2612/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
index b46be55fd2..4f72a83723 100644
--- a/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2612/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/2612/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
index cfd29c2ce8..6c70a0ff39 100644
--- a/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
index 5b67512912..bb74b62f4d 100644
--- a/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 459a6719d2..3b39df6428 100644
--- a/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/index.html b/pr/2612/docs/iroh_docs/engine/index.html
index 5f78e23386..622ab4b871 100644
--- a/pr/2612/docs/iroh_docs/engine/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.Engine.html b/pr/2612/docs/iroh_docs/engine/struct.Engine.html
index 1b88a96726..46cd25179e 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
index 5b713133bd..cce39940b5 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/index.html b/pr/2612/docs/iroh_docs/index.html
index a37d30e2a6..41c792c5e5 100644
--- a/pr/2612/docs/iroh_docs/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
index 0adab34807..b3db0e4a8f 100644
--- a/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/enum.AcceptError.html b/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
index 25ddfb4593..a4105f098f 100644
--- a/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
index e4ee4a1d00..055cbf1e3c 100644
--- a/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.handle_connection.html b/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
index c7e5390970..3dc400f949 100644
--- a/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
index 94c5865cd7..761d1cdb9f 100644
--- a/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2612/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/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 8bebf68ec6..df1fc8865f 100644
--- a/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorId.html b/pr/2612/docs/iroh_docs/struct.AuthorId.html
index ea34d595da..41e3b7d0a5 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
index 223f3b3f5d..4cfbe555fd 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.DocTicket.html b/pr/2612/docs/iroh_docs/struct.DocTicket.html
index 221ba0b238..ccecd30225 100644
--- a/pr/2612/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespaceId.html b/pr/2612/docs/iroh_docs/struct.NamespaceId.html
index ca7df463f0..5fcc0bcfaa 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
index 19de258698..ba6ca15cdf 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Entry.html b/pr/2612/docs/iroh_docs/sync/struct.Entry.html
index 06a256d8a3..d1fb1faa87 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
impl<T> Any for Twhere
diff --git a/pr/2612/docs/iroh_blobs/get/db/enum.DownloadProgress.html b/pr/2612/docs/iroh_blobs/get/db/enum.DownloadProgress.html
index 36d0d471ba..ee27dc5703 100644
--- a/pr/2612/docs/iroh_blobs/get/db/enum.DownloadProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_blobs/metrics/struct.Metrics.html
index b0f6a2bbf7..ed6579be27 100644
--- a/pr/2612/docs/iroh_blobs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/provider/enum.AddProgress.html b/pr/2612/docs/iroh_blobs/provider/enum.AddProgress.html
index 4d8bd0e023..b75f639a3e 100644
--- a/pr/2612/docs/iroh_blobs/provider/enum.AddProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html b/pr/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
index a02d787cb8..78120c7523 100644
--- a/pr/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/store/enum.ValidateProgress.html b/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html
index 75baf8d96b..60a86461ff 100644
--- a/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.Hash.html b/pr/2612/docs/iroh_blobs/struct.Hash.html
index c3bab58851..1a1bcaba85 100644
--- a/pr/2612/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
index b46be55fd2..4f72a83723 100644
--- a/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2612/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/2612/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
index cfd29c2ce8..6c70a0ff39 100644
--- a/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
index 5b67512912..bb74b62f4d 100644
--- a/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 459a6719d2..3b39df6428 100644
--- a/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/index.html b/pr/2612/docs/iroh_docs/engine/index.html
index 5f78e23386..622ab4b871 100644
--- a/pr/2612/docs/iroh_docs/engine/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.Engine.html b/pr/2612/docs/iroh_docs/engine/struct.Engine.html
index 1b88a96726..46cd25179e 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
index 5b713133bd..cce39940b5 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/index.html b/pr/2612/docs/iroh_docs/index.html
index a37d30e2a6..41c792c5e5 100644
--- a/pr/2612/docs/iroh_docs/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
index 0adab34807..b3db0e4a8f 100644
--- a/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/enum.AcceptError.html b/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
index 25ddfb4593..a4105f098f 100644
--- a/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
index e4ee4a1d00..055cbf1e3c 100644
--- a/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.handle_connection.html b/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
index c7e5390970..3dc400f949 100644
--- a/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
index 94c5865cd7..761d1cdb9f 100644
--- a/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2612/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/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 8bebf68ec6..df1fc8865f 100644
--- a/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorId.html b/pr/2612/docs/iroh_docs/struct.AuthorId.html
index ea34d595da..41e3b7d0a5 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
index 223f3b3f5d..4cfbe555fd 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.DocTicket.html b/pr/2612/docs/iroh_docs/struct.DocTicket.html
index 221ba0b238..ccecd30225 100644
--- a/pr/2612/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespaceId.html b/pr/2612/docs/iroh_docs/struct.NamespaceId.html
index ca7df463f0..5fcc0bcfaa 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
index 19de258698..ba6ca15cdf 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Entry.html b/pr/2612/docs/iroh_docs/sync/struct.Entry.html
index 06a256d8a3..d1fb1faa87 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
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/2612/docs/iroh_blobs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_blobs/metrics/struct.Metrics.html
index b0f6a2bbf7..ed6579be27 100644
--- a/pr/2612/docs/iroh_blobs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/provider/enum.AddProgress.html b/pr/2612/docs/iroh_blobs/provider/enum.AddProgress.html
index 4d8bd0e023..b75f639a3e 100644
--- a/pr/2612/docs/iroh_blobs/provider/enum.AddProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html b/pr/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
index a02d787cb8..78120c7523 100644
--- a/pr/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/store/enum.ValidateProgress.html b/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html
index 75baf8d96b..60a86461ff 100644
--- a/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.Hash.html b/pr/2612/docs/iroh_blobs/struct.Hash.html
index c3bab58851..1a1bcaba85 100644
--- a/pr/2612/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
index b46be55fd2..4f72a83723 100644
--- a/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2612/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/2612/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
index cfd29c2ce8..6c70a0ff39 100644
--- a/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
index 5b67512912..bb74b62f4d 100644
--- a/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 459a6719d2..3b39df6428 100644
--- a/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/index.html b/pr/2612/docs/iroh_docs/engine/index.html
index 5f78e23386..622ab4b871 100644
--- a/pr/2612/docs/iroh_docs/engine/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.Engine.html b/pr/2612/docs/iroh_docs/engine/struct.Engine.html
index 1b88a96726..46cd25179e 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
index 5b713133bd..cce39940b5 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/index.html b/pr/2612/docs/iroh_docs/index.html
index a37d30e2a6..41c792c5e5 100644
--- a/pr/2612/docs/iroh_docs/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
index 0adab34807..b3db0e4a8f 100644
--- a/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/enum.AcceptError.html b/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
index 25ddfb4593..a4105f098f 100644
--- a/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
index e4ee4a1d00..055cbf1e3c 100644
--- a/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.handle_connection.html b/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
index c7e5390970..3dc400f949 100644
--- a/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
index 94c5865cd7..761d1cdb9f 100644
--- a/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2612/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/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 8bebf68ec6..df1fc8865f 100644
--- a/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorId.html b/pr/2612/docs/iroh_docs/struct.AuthorId.html
index ea34d595da..41e3b7d0a5 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
index 223f3b3f5d..4cfbe555fd 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.DocTicket.html b/pr/2612/docs/iroh_docs/struct.DocTicket.html
index 221ba0b238..ccecd30225 100644
--- a/pr/2612/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespaceId.html b/pr/2612/docs/iroh_docs/struct.NamespaceId.html
index ca7df463f0..5fcc0bcfaa 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
index 19de258698..ba6ca15cdf 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Entry.html b/pr/2612/docs/iroh_docs/sync/struct.Entry.html
index 06a256d8a3..d1fb1faa87 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
diff --git a/pr/2612/docs/iroh_blobs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_blobs/metrics/struct.Metrics.html
index b0f6a2bbf7..ed6579be27 100644
--- a/pr/2612/docs/iroh_blobs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/provider/enum.AddProgress.html b/pr/2612/docs/iroh_blobs/provider/enum.AddProgress.html
index 4d8bd0e023..b75f639a3e 100644
--- a/pr/2612/docs/iroh_blobs/provider/enum.AddProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html b/pr/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
index a02d787cb8..78120c7523 100644
--- a/pr/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/store/enum.ValidateProgress.html b/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html
index 75baf8d96b..60a86461ff 100644
--- a/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.Hash.html b/pr/2612/docs/iroh_blobs/struct.Hash.html
index c3bab58851..1a1bcaba85 100644
--- a/pr/2612/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
index b46be55fd2..4f72a83723 100644
--- a/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2612/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/2612/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
index cfd29c2ce8..6c70a0ff39 100644
--- a/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
index 5b67512912..bb74b62f4d 100644
--- a/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 459a6719d2..3b39df6428 100644
--- a/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/index.html b/pr/2612/docs/iroh_docs/engine/index.html
index 5f78e23386..622ab4b871 100644
--- a/pr/2612/docs/iroh_docs/engine/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.Engine.html b/pr/2612/docs/iroh_docs/engine/struct.Engine.html
index 1b88a96726..46cd25179e 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
index 5b713133bd..cce39940b5 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/index.html b/pr/2612/docs/iroh_docs/index.html
index a37d30e2a6..41c792c5e5 100644
--- a/pr/2612/docs/iroh_docs/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
index 0adab34807..b3db0e4a8f 100644
--- a/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/enum.AcceptError.html b/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
index 25ddfb4593..a4105f098f 100644
--- a/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
index e4ee4a1d00..055cbf1e3c 100644
--- a/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.handle_connection.html b/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
index c7e5390970..3dc400f949 100644
--- a/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
index 94c5865cd7..761d1cdb9f 100644
--- a/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2612/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/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 8bebf68ec6..df1fc8865f 100644
--- a/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorId.html b/pr/2612/docs/iroh_docs/struct.AuthorId.html
index ea34d595da..41e3b7d0a5 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
index 223f3b3f5d..4cfbe555fd 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.DocTicket.html b/pr/2612/docs/iroh_docs/struct.DocTicket.html
index 221ba0b238..ccecd30225 100644
--- a/pr/2612/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespaceId.html b/pr/2612/docs/iroh_docs/struct.NamespaceId.html
index ca7df463f0..5fcc0bcfaa 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
index 19de258698..ba6ca15cdf 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Entry.html b/pr/2612/docs/iroh_docs/sync/struct.Entry.html
index 06a256d8a3..d1fb1faa87 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
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/2612/docs/iroh_blobs/provider/enum.AddProgress.html b/pr/2612/docs/iroh_blobs/provider/enum.AddProgress.html
index 4d8bd0e023..b75f639a3e 100644
--- a/pr/2612/docs/iroh_blobs/provider/enum.AddProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html b/pr/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
index a02d787cb8..78120c7523 100644
--- a/pr/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/store/enum.ValidateProgress.html b/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html
index 75baf8d96b..60a86461ff 100644
--- a/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.Hash.html b/pr/2612/docs/iroh_blobs/struct.Hash.html
index c3bab58851..1a1bcaba85 100644
--- a/pr/2612/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
index b46be55fd2..4f72a83723 100644
--- a/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2612/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/2612/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
index cfd29c2ce8..6c70a0ff39 100644
--- a/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
index 5b67512912..bb74b62f4d 100644
--- a/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 459a6719d2..3b39df6428 100644
--- a/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/index.html b/pr/2612/docs/iroh_docs/engine/index.html
index 5f78e23386..622ab4b871 100644
--- a/pr/2612/docs/iroh_docs/engine/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.Engine.html b/pr/2612/docs/iroh_docs/engine/struct.Engine.html
index 1b88a96726..46cd25179e 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
index 5b713133bd..cce39940b5 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/index.html b/pr/2612/docs/iroh_docs/index.html
index a37d30e2a6..41c792c5e5 100644
--- a/pr/2612/docs/iroh_docs/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
index 0adab34807..b3db0e4a8f 100644
--- a/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/enum.AcceptError.html b/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
index 25ddfb4593..a4105f098f 100644
--- a/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
index e4ee4a1d00..055cbf1e3c 100644
--- a/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.handle_connection.html b/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
index c7e5390970..3dc400f949 100644
--- a/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
index 94c5865cd7..761d1cdb9f 100644
--- a/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2612/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/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 8bebf68ec6..df1fc8865f 100644
--- a/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorId.html b/pr/2612/docs/iroh_docs/struct.AuthorId.html
index ea34d595da..41e3b7d0a5 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
index 223f3b3f5d..4cfbe555fd 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.DocTicket.html b/pr/2612/docs/iroh_docs/struct.DocTicket.html
index 221ba0b238..ccecd30225 100644
--- a/pr/2612/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespaceId.html b/pr/2612/docs/iroh_docs/struct.NamespaceId.html
index ca7df463f0..5fcc0bcfaa 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
index 19de258698..ba6ca15cdf 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Entry.html b/pr/2612/docs/iroh_docs/sync/struct.Entry.html
index 06a256d8a3..d1fb1faa87 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_blobs/provider/enum.AddProgress.html b/pr/2612/docs/iroh_blobs/provider/enum.AddProgress.html
index 4d8bd0e023..b75f639a3e 100644
--- a/pr/2612/docs/iroh_blobs/provider/enum.AddProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html b/pr/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
index a02d787cb8..78120c7523 100644
--- a/pr/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/store/enum.ValidateProgress.html b/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html
index 75baf8d96b..60a86461ff 100644
--- a/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.Hash.html b/pr/2612/docs/iroh_blobs/struct.Hash.html
index c3bab58851..1a1bcaba85 100644
--- a/pr/2612/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
index b46be55fd2..4f72a83723 100644
--- a/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2612/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/2612/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
index cfd29c2ce8..6c70a0ff39 100644
--- a/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
index 5b67512912..bb74b62f4d 100644
--- a/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 459a6719d2..3b39df6428 100644
--- a/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/index.html b/pr/2612/docs/iroh_docs/engine/index.html
index 5f78e23386..622ab4b871 100644
--- a/pr/2612/docs/iroh_docs/engine/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.Engine.html b/pr/2612/docs/iroh_docs/engine/struct.Engine.html
index 1b88a96726..46cd25179e 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
index 5b713133bd..cce39940b5 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/index.html b/pr/2612/docs/iroh_docs/index.html
index a37d30e2a6..41c792c5e5 100644
--- a/pr/2612/docs/iroh_docs/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
index 0adab34807..b3db0e4a8f 100644
--- a/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/enum.AcceptError.html b/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
index 25ddfb4593..a4105f098f 100644
--- a/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
index e4ee4a1d00..055cbf1e3c 100644
--- a/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.handle_connection.html b/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
index c7e5390970..3dc400f949 100644
--- a/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
index 94c5865cd7..761d1cdb9f 100644
--- a/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2612/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/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 8bebf68ec6..df1fc8865f 100644
--- a/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorId.html b/pr/2612/docs/iroh_docs/struct.AuthorId.html
index ea34d595da..41e3b7d0a5 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
index 223f3b3f5d..4cfbe555fd 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.DocTicket.html b/pr/2612/docs/iroh_docs/struct.DocTicket.html
index 221ba0b238..ccecd30225 100644
--- a/pr/2612/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespaceId.html b/pr/2612/docs/iroh_docs/struct.NamespaceId.html
index ca7df463f0..5fcc0bcfaa 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
index 19de258698..ba6ca15cdf 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Entry.html b/pr/2612/docs/iroh_docs/sync/struct.Entry.html
index 06a256d8a3..d1fb1faa87 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
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/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html b/pr/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
index a02d787cb8..78120c7523 100644
--- a/pr/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html b/pr/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
index a02d787cb8..78120c7523 100644
--- a/pr/2612/docs/iroh_blobs/store/enum.ConsistencyCheckProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/store/enum.ValidateProgress.html b/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html
index 75baf8d96b..60a86461ff 100644
--- a/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.Hash.html b/pr/2612/docs/iroh_blobs/struct.Hash.html
index c3bab58851..1a1bcaba85 100644
--- a/pr/2612/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
index b46be55fd2..4f72a83723 100644
--- a/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2612/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/2612/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
index cfd29c2ce8..6c70a0ff39 100644
--- a/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
index 5b67512912..bb74b62f4d 100644
--- a/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 459a6719d2..3b39df6428 100644
--- a/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/index.html b/pr/2612/docs/iroh_docs/engine/index.html
index 5f78e23386..622ab4b871 100644
--- a/pr/2612/docs/iroh_docs/engine/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.Engine.html b/pr/2612/docs/iroh_docs/engine/struct.Engine.html
index 1b88a96726..46cd25179e 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
index 5b713133bd..cce39940b5 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/index.html b/pr/2612/docs/iroh_docs/index.html
index a37d30e2a6..41c792c5e5 100644
--- a/pr/2612/docs/iroh_docs/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
index 0adab34807..b3db0e4a8f 100644
--- a/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/enum.AcceptError.html b/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
index 25ddfb4593..a4105f098f 100644
--- a/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
index e4ee4a1d00..055cbf1e3c 100644
--- a/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.handle_connection.html b/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
index c7e5390970..3dc400f949 100644
--- a/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
index 94c5865cd7..761d1cdb9f 100644
--- a/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2612/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/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 8bebf68ec6..df1fc8865f 100644
--- a/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorId.html b/pr/2612/docs/iroh_docs/struct.AuthorId.html
index ea34d595da..41e3b7d0a5 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
index 223f3b3f5d..4cfbe555fd 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.DocTicket.html b/pr/2612/docs/iroh_docs/struct.DocTicket.html
index 221ba0b238..ccecd30225 100644
--- a/pr/2612/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespaceId.html b/pr/2612/docs/iroh_docs/struct.NamespaceId.html
index ca7df463f0..5fcc0bcfaa 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
index 19de258698..ba6ca15cdf 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Entry.html b/pr/2612/docs/iroh_docs/sync/struct.Entry.html
index 06a256d8a3..d1fb1faa87 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
impl<T> Any for Twhere
diff --git a/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html b/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html
index 75baf8d96b..60a86461ff 100644
--- a/pr/2612/docs/iroh_blobs/store/enum.ValidateProgress.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.Hash.html b/pr/2612/docs/iroh_blobs/struct.Hash.html
index c3bab58851..1a1bcaba85 100644
--- a/pr/2612/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
index b46be55fd2..4f72a83723 100644
--- a/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2612/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/2612/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
index cfd29c2ce8..6c70a0ff39 100644
--- a/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
index 5b67512912..bb74b62f4d 100644
--- a/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 459a6719d2..3b39df6428 100644
--- a/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/index.html b/pr/2612/docs/iroh_docs/engine/index.html
index 5f78e23386..622ab4b871 100644
--- a/pr/2612/docs/iroh_docs/engine/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.Engine.html b/pr/2612/docs/iroh_docs/engine/struct.Engine.html
index 1b88a96726..46cd25179e 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
index 5b713133bd..cce39940b5 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/index.html b/pr/2612/docs/iroh_docs/index.html
index a37d30e2a6..41c792c5e5 100644
--- a/pr/2612/docs/iroh_docs/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
index 0adab34807..b3db0e4a8f 100644
--- a/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/enum.AcceptError.html b/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
index 25ddfb4593..a4105f098f 100644
--- a/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
index e4ee4a1d00..055cbf1e3c 100644
--- a/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.handle_connection.html b/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
index c7e5390970..3dc400f949 100644
--- a/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
index 94c5865cd7..761d1cdb9f 100644
--- a/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2612/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/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 8bebf68ec6..df1fc8865f 100644
--- a/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorId.html b/pr/2612/docs/iroh_docs/struct.AuthorId.html
index ea34d595da..41e3b7d0a5 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
index 223f3b3f5d..4cfbe555fd 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.DocTicket.html b/pr/2612/docs/iroh_docs/struct.DocTicket.html
index 221ba0b238..ccecd30225 100644
--- a/pr/2612/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespaceId.html b/pr/2612/docs/iroh_docs/struct.NamespaceId.html
index ca7df463f0..5fcc0bcfaa 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
index 19de258698..ba6ca15cdf 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Entry.html b/pr/2612/docs/iroh_docs/sync/struct.Entry.html
index 06a256d8a3..d1fb1faa87 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
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/2612/docs/iroh_blobs/struct.Hash.html b/pr/2612/docs/iroh_blobs/struct.Hash.html
index c3bab58851..1a1bcaba85 100644
--- a/pr/2612/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
index b46be55fd2..4f72a83723 100644
--- a/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2612/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/2612/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
index cfd29c2ce8..6c70a0ff39 100644
--- a/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
index 5b67512912..bb74b62f4d 100644
--- a/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 459a6719d2..3b39df6428 100644
--- a/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/index.html b/pr/2612/docs/iroh_docs/engine/index.html
index 5f78e23386..622ab4b871 100644
--- a/pr/2612/docs/iroh_docs/engine/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.Engine.html b/pr/2612/docs/iroh_docs/engine/struct.Engine.html
index 1b88a96726..46cd25179e 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
index 5b713133bd..cce39940b5 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/index.html b/pr/2612/docs/iroh_docs/index.html
index a37d30e2a6..41c792c5e5 100644
--- a/pr/2612/docs/iroh_docs/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
index 0adab34807..b3db0e4a8f 100644
--- a/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/enum.AcceptError.html b/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
index 25ddfb4593..a4105f098f 100644
--- a/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
index e4ee4a1d00..055cbf1e3c 100644
--- a/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.handle_connection.html b/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
index c7e5390970..3dc400f949 100644
--- a/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
index 94c5865cd7..761d1cdb9f 100644
--- a/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2612/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/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 8bebf68ec6..df1fc8865f 100644
--- a/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorId.html b/pr/2612/docs/iroh_docs/struct.AuthorId.html
index ea34d595da..41e3b7d0a5 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
index 223f3b3f5d..4cfbe555fd 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.DocTicket.html b/pr/2612/docs/iroh_docs/struct.DocTicket.html
index 221ba0b238..ccecd30225 100644
--- a/pr/2612/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespaceId.html b/pr/2612/docs/iroh_docs/struct.NamespaceId.html
index ca7df463f0..5fcc0bcfaa 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
index 19de258698..ba6ca15cdf 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Entry.html b/pr/2612/docs/iroh_docs/sync/struct.Entry.html
index 06a256d8a3..d1fb1faa87 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
impl<T> Any for Twhere
diff --git a/pr/2612/docs/iroh_blobs/struct.Hash.html b/pr/2612/docs/iroh_blobs/struct.Hash.html
index c3bab58851..1a1bcaba85 100644
--- a/pr/2612/docs/iroh_blobs/struct.Hash.html
+++ b/pr/2612/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/2612/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
index b46be55fd2..4f72a83723 100644
--- a/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2612/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/2612/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
index cfd29c2ce8..6c70a0ff39 100644
--- a/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
index 5b67512912..bb74b62f4d 100644
--- a/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 459a6719d2..3b39df6428 100644
--- a/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/index.html b/pr/2612/docs/iroh_docs/engine/index.html
index 5f78e23386..622ab4b871 100644
--- a/pr/2612/docs/iroh_docs/engine/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.Engine.html b/pr/2612/docs/iroh_docs/engine/struct.Engine.html
index 1b88a96726..46cd25179e 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
index 5b713133bd..cce39940b5 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/index.html b/pr/2612/docs/iroh_docs/index.html
index a37d30e2a6..41c792c5e5 100644
--- a/pr/2612/docs/iroh_docs/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
index 0adab34807..b3db0e4a8f 100644
--- a/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/enum.AcceptError.html b/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
index 25ddfb4593..a4105f098f 100644
--- a/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
index e4ee4a1d00..055cbf1e3c 100644
--- a/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.handle_connection.html b/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
index c7e5390970..3dc400f949 100644
--- a/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
index 94c5865cd7..761d1cdb9f 100644
--- a/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2612/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/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 8bebf68ec6..df1fc8865f 100644
--- a/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorId.html b/pr/2612/docs/iroh_docs/struct.AuthorId.html
index ea34d595da..41e3b7d0a5 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
index 223f3b3f5d..4cfbe555fd 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.DocTicket.html b/pr/2612/docs/iroh_docs/struct.DocTicket.html
index 221ba0b238..ccecd30225 100644
--- a/pr/2612/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespaceId.html b/pr/2612/docs/iroh_docs/struct.NamespaceId.html
index ca7df463f0..5fcc0bcfaa 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
index 19de258698..ba6ca15cdf 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Entry.html b/pr/2612/docs/iroh_docs/sync/struct.Entry.html
index 06a256d8a3..d1fb1faa87 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
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/2612/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
index b46be55fd2..4f72a83723 100644
--- a/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2612/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/2612/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
index cfd29c2ce8..6c70a0ff39 100644
--- a/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
index 5b67512912..bb74b62f4d 100644
--- a/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 459a6719d2..3b39df6428 100644
--- a/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/index.html b/pr/2612/docs/iroh_docs/engine/index.html
index 5f78e23386..622ab4b871 100644
--- a/pr/2612/docs/iroh_docs/engine/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.Engine.html b/pr/2612/docs/iroh_docs/engine/struct.Engine.html
index 1b88a96726..46cd25179e 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
index 5b713133bd..cce39940b5 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/index.html b/pr/2612/docs/iroh_docs/index.html
index a37d30e2a6..41c792c5e5 100644
--- a/pr/2612/docs/iroh_docs/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
index 0adab34807..b3db0e4a8f 100644
--- a/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/enum.AcceptError.html b/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
index 25ddfb4593..a4105f098f 100644
--- a/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
index e4ee4a1d00..055cbf1e3c 100644
--- a/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.handle_connection.html b/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
index c7e5390970..3dc400f949 100644
--- a/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
index 94c5865cd7..761d1cdb9f 100644
--- a/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2612/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/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 8bebf68ec6..df1fc8865f 100644
--- a/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorId.html b/pr/2612/docs/iroh_docs/struct.AuthorId.html
index ea34d595da..41e3b7d0a5 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
index 223f3b3f5d..4cfbe555fd 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.DocTicket.html b/pr/2612/docs/iroh_docs/struct.DocTicket.html
index 221ba0b238..ccecd30225 100644
--- a/pr/2612/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespaceId.html b/pr/2612/docs/iroh_docs/struct.NamespaceId.html
index ca7df463f0..5fcc0bcfaa 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
index 19de258698..ba6ca15cdf 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Entry.html b/pr/2612/docs/iroh_docs/sync/struct.Entry.html
index 06a256d8a3..d1fb1faa87 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
fn as_bits<O>(&self) -> &BitSlice<T, O>where
diff --git a/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html b/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
index b46be55fd2..4f72a83723 100644
--- a/pr/2612/docs/iroh_blobs/struct.HashAndFormat.html
+++ b/pr/2612/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/2612/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
index cfd29c2ce8..6c70a0ff39 100644
--- a/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
index 5b67512912..bb74b62f4d 100644
--- a/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 459a6719d2..3b39df6428 100644
--- a/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/index.html b/pr/2612/docs/iroh_docs/engine/index.html
index 5f78e23386..622ab4b871 100644
--- a/pr/2612/docs/iroh_docs/engine/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.Engine.html b/pr/2612/docs/iroh_docs/engine/struct.Engine.html
index 1b88a96726..46cd25179e 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
index 5b713133bd..cce39940b5 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/index.html b/pr/2612/docs/iroh_docs/index.html
index a37d30e2a6..41c792c5e5 100644
--- a/pr/2612/docs/iroh_docs/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
index 0adab34807..b3db0e4a8f 100644
--- a/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/enum.AcceptError.html b/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
index 25ddfb4593..a4105f098f 100644
--- a/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
index e4ee4a1d00..055cbf1e3c 100644
--- a/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.handle_connection.html b/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
index c7e5390970..3dc400f949 100644
--- a/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
index 94c5865cd7..761d1cdb9f 100644
--- a/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2612/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/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 8bebf68ec6..df1fc8865f 100644
--- a/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorId.html b/pr/2612/docs/iroh_docs/struct.AuthorId.html
index ea34d595da..41e3b7d0a5 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
index 223f3b3f5d..4cfbe555fd 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.DocTicket.html b/pr/2612/docs/iroh_docs/struct.DocTicket.html
index 221ba0b238..ccecd30225 100644
--- a/pr/2612/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespaceId.html b/pr/2612/docs/iroh_docs/struct.NamespaceId.html
index ca7df463f0..5fcc0bcfaa 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
index 19de258698..ba6ca15cdf 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Entry.html b/pr/2612/docs/iroh_docs/sync/struct.Entry.html
index 06a256d8a3..d1fb1faa87 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
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/2612/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
index cfd29c2ce8..6c70a0ff39 100644
--- a/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
index 5b67512912..bb74b62f4d 100644
--- a/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 459a6719d2..3b39df6428 100644
--- a/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/index.html b/pr/2612/docs/iroh_docs/engine/index.html
index 5f78e23386..622ab4b871 100644
--- a/pr/2612/docs/iroh_docs/engine/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.Engine.html b/pr/2612/docs/iroh_docs/engine/struct.Engine.html
index 1b88a96726..46cd25179e 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
index 5b713133bd..cce39940b5 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/index.html b/pr/2612/docs/iroh_docs/index.html
index a37d30e2a6..41c792c5e5 100644
--- a/pr/2612/docs/iroh_docs/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
index 0adab34807..b3db0e4a8f 100644
--- a/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/enum.AcceptError.html b/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
index 25ddfb4593..a4105f098f 100644
--- a/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
index e4ee4a1d00..055cbf1e3c 100644
--- a/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.handle_connection.html b/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
index c7e5390970..3dc400f949 100644
--- a/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
index 94c5865cd7..761d1cdb9f 100644
--- a/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2612/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/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 8bebf68ec6..df1fc8865f 100644
--- a/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorId.html b/pr/2612/docs/iroh_docs/struct.AuthorId.html
index ea34d595da..41e3b7d0a5 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
index 223f3b3f5d..4cfbe555fd 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.DocTicket.html b/pr/2612/docs/iroh_docs/struct.DocTicket.html
index 221ba0b238..ccecd30225 100644
--- a/pr/2612/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespaceId.html b/pr/2612/docs/iroh_docs/struct.NamespaceId.html
index ca7df463f0..5fcc0bcfaa 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
index 19de258698..ba6ca15cdf 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Entry.html b/pr/2612/docs/iroh_docs/sync/struct.Entry.html
index 06a256d8a3..d1fb1faa87 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
index cfd29c2ce8..6c70a0ff39 100644
--- a/pr/2612/docs/iroh_docs/actor/struct.SyncHandle.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
index 5b67512912..bb74b62f4d 100644
--- a/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 459a6719d2..3b39df6428 100644
--- a/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/index.html b/pr/2612/docs/iroh_docs/engine/index.html
index 5f78e23386..622ab4b871 100644
--- a/pr/2612/docs/iroh_docs/engine/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.Engine.html b/pr/2612/docs/iroh_docs/engine/struct.Engine.html
index 1b88a96726..46cd25179e 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
index 5b713133bd..cce39940b5 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/index.html b/pr/2612/docs/iroh_docs/index.html
index a37d30e2a6..41c792c5e5 100644
--- a/pr/2612/docs/iroh_docs/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
index 0adab34807..b3db0e4a8f 100644
--- a/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/enum.AcceptError.html b/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
index 25ddfb4593..a4105f098f 100644
--- a/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
index e4ee4a1d00..055cbf1e3c 100644
--- a/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.handle_connection.html b/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
index c7e5390970..3dc400f949 100644
--- a/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
index 94c5865cd7..761d1cdb9f 100644
--- a/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2612/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/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 8bebf68ec6..df1fc8865f 100644
--- a/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorId.html b/pr/2612/docs/iroh_docs/struct.AuthorId.html
index ea34d595da..41e3b7d0a5 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
index 223f3b3f5d..4cfbe555fd 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.DocTicket.html b/pr/2612/docs/iroh_docs/struct.DocTicket.html
index 221ba0b238..ccecd30225 100644
--- a/pr/2612/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespaceId.html b/pr/2612/docs/iroh_docs/struct.NamespaceId.html
index ca7df463f0..5fcc0bcfaa 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
index 19de258698..ba6ca15cdf 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Entry.html b/pr/2612/docs/iroh_docs/sync/struct.Entry.html
index 06a256d8a3..d1fb1faa87 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
pub async fn delete_prefix(
&self,
diff --git a/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
index 5b67512912..bb74b62f4d 100644
--- a/pr/2612/docs/iroh_docs/engine/enum.LiveEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 459a6719d2..3b39df6428 100644
--- a/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/index.html b/pr/2612/docs/iroh_docs/engine/index.html
index 5f78e23386..622ab4b871 100644
--- a/pr/2612/docs/iroh_docs/engine/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.Engine.html b/pr/2612/docs/iroh_docs/engine/struct.Engine.html
index 1b88a96726..46cd25179e 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.Engine.html
+++ b/pr/2612/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/2612/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
index 5b713133bd..cce39940b5 100644
--- a/pr/2612/docs/iroh_docs/engine/struct.SyncEvent.html
+++ b/pr/2612/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/2612/docs/iroh_docs/index.html b/pr/2612/docs/iroh_docs/index.html
index a37d30e2a6..41c792c5e5 100644
--- a/pr/2612/docs/iroh_docs/index.html
+++ b/pr/2612/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/2612/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
index 0adab34807..b3db0e4a8f 100644
--- a/pr/2612/docs/iroh_docs/metrics/struct.Metrics.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/enum.AcceptError.html b/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
index 25ddfb4593..a4105f098f 100644
--- a/pr/2612/docs/iroh_docs/net/enum.AcceptError.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
index e4ee4a1d00..055cbf1e3c 100644
--- a/pr/2612/docs/iroh_docs/net/fn.connect_and_sync.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/fn.handle_connection.html b/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
index c7e5390970..3dc400f949 100644
--- a/pr/2612/docs/iroh_docs/net/fn.handle_connection.html
+++ b/pr/2612/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/2612/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
index 94c5865cd7..761d1cdb9f 100644
--- a/pr/2612/docs/iroh_docs/net/struct.SyncFinished.html
+++ b/pr/2612/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/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
index 8bebf68ec6..df1fc8865f 100644
--- a/pr/2612/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorId.html b/pr/2612/docs/iroh_docs/struct.AuthorId.html
index ea34d595da..41e3b7d0a5 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
index 223f3b3f5d..4cfbe555fd 100644
--- a/pr/2612/docs/iroh_docs/struct.AuthorPublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.DocTicket.html b/pr/2612/docs/iroh_docs/struct.DocTicket.html
index 221ba0b238..ccecd30225 100644
--- a/pr/2612/docs/iroh_docs/struct.DocTicket.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespaceId.html b/pr/2612/docs/iroh_docs/struct.NamespaceId.html
index ca7df463f0..5fcc0bcfaa 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespaceId.html
+++ b/pr/2612/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/2612/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
index 19de258698..ba6ca15cdf 100644
--- a/pr/2612/docs/iroh_docs/struct.NamespacePublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Entry.html b/pr/2612/docs/iroh_docs/sync/struct.Entry.html
index 06a256d8a3..d1fb1faa87 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Entry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
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/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
index 459a6719d2..3b39df6428 100644
--- a/pr/2612/docs/iroh_docs/engine/fn.entry_to_content_status.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2612/docs/iroh_docs/sync/struct.Record.html b/pr/2612/docs/iroh_docs/sync/struct.Record.html
index 64887e1d89..9848e9b7d7 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Record.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html
index 23a9798651..c4e161f3c3 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
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/2612/docs/iroh_docs/sync/struct.Replica.html b/pr/2612/docs/iroh_docs/sync/struct.Replica.html index 23a9798651..c4e161f3c3 100644 --- a/pr/2612/docs/iroh_docs/sync/struct.Replica.html +++ b/pr/2612/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/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
index b03a4db008..d588c9a0fd 100644
--- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
+++ b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html
@@ -14,7 +14,7 @@
pub fn record_id( diff --git a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html index b03a4db008..d588c9a0fd 100644 --- a/pr/2612/docs/iroh_docs/sync/struct.SignedEntry.html +++ b/pr/2612/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/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
fn max(self, other: Self) -> Selfwhere
diff --git a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
index 46d5a5a49c..84ffdbe8ee 100644
--- a/pr/2612/docs/iroh_docs/sync/type.ContentStatusCallback.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
index c73cd018d4..c679e7d6c1 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.AddrInfo.html
+++ b/pr/2612/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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::
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 */ }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/2612/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
index 1b15b299dc..4509091d6a 100644
--- a/pr/2612/docs/iroh_net/endpoint/struct.NodeAddr.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
index 5c3418374c..c1bd54a029 100644
--- a/pr/2612/docs/iroh_net/key/enum.KeyParsingError.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/index.html b/pr/2612/docs/iroh_net/key/index.html
index f8a86b539b..fed9e6656d 100644
--- a/pr/2612/docs/iroh_net/key/index.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.PublicKey.html b/pr/2612/docs/iroh_net/key/struct.PublicKey.html
index 633db2c5de..43d6a7b857 100644
--- a/pr/2612/docs/iroh_net/key/struct.PublicKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SecretKey.html b/pr/2612/docs/iroh_net/key/struct.SecretKey.html
index 7cd87e14d3..c36389d208 100644
--- a/pr/2612/docs/iroh_net/key/struct.SecretKey.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/struct.SharedSecret.html b/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
index cb60d9fe11..9bb2286597 100644
--- a/pr/2612/docs/iroh_net/key/struct.SharedSecret.html
+++ b/pr/2612/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/2612/docs/iroh_net/key/type.NodeId.html b/pr/2612/docs/iroh_net/key/type.NodeId.html
index fddfe420b0..2ca36f46fe 100644
--- a/pr/2612/docs/iroh_net/key/type.NodeId.html
+++ b/pr/2612/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/2612/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
index f199af1178..2213e5581b 100644
--- a/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
+++ b/pr/2612/docs/iroh_net/relay/struct.RelayUrl.html
@@ -1,4 +1,4 @@
-RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
+RelayUrl in iroh_net::relay - Rust pub struct RelayUrl(/* private fields */);
Expand description
A URL identifying a relay server.
This is but a wrapper around Url, with a few custom tweaks:
-
@@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi
or if
Path::new_opt() returns None.
(That is, if the percent-decoded path contains a NUL byte or,
for a Windows path, is not UTF-8.)
-
Trait Implementations§
Trait Implementations§
source§impl Deref for RelayUrl
§impl<'de> Deserialize<'de> for RelayUrl
§fn deserialize<__D>(
+
source§impl<'de> Deserialize<'de> for RelayUrl
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl FromStr for RelayUrl
Support for parsing strings directly.
+ __D: Deserializer<'de>,Deserialize this value from the given Serde deserializer. Read moresource§impl FromStr for RelayUrl
Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
-§impl Hash for RelayUrl
source§impl Ord for RelayUrl
source§impl PartialEq for RelayUrl
§impl PartialOrd for RelayUrl
source§impl PartialOrd for RelayUrl
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read moresource§impl Serialize for RelayUrl
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Eq for RelayUrl
§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Eq for RelayUrl
source§impl StructuralPartialEq for RelayUrl
Auto Trait Implementations§
§impl Freeze for RelayUrl
§impl RefUnwindSafe for RelayUrl
§impl Send for RelayUrl
§impl Sync for RelayUrl
§impl Unpin for RelayUrl
§impl UnwindSafe for RelayUrl
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/struct.AddrInfo.html b/pr/2612/docs/iroh_net/struct.AddrInfo.html
index 96dc0c42ac..30e534b815 100644
--- a/pr/2612/docs/iroh_net/struct.AddrInfo.html
+++ b/pr/2612/docs/iroh_net/struct.AddrInfo.html
@@ -1,4 +1,4 @@
-AddrInfo in iroh_net - Rust pub struct AddrInfo {
+AddrInfo in iroh_net - Rust pub struct AddrInfo {
pub relay_url: Option<RelayUrl>,
pub direct_addresses: BTreeSet<SocketAddr>,
}
Expand description
Network paths to contact an iroh-net node.
@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to
other node, see NodeAddr for details.
Fields§
§relay_url: Option<RelayUrl>The node’s home relay url.
§direct_addresses: BTreeSet<SocketAddr>Socket addresses where the peer might be reached directly.
-Implementations§
§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/2612/docs/iroh_net/struct.NodeAddr.html b/pr/2612/docs/iroh_net/struct.NodeAddr.html
index 041135fce3..de0983c6c8 100644
--- a/pr/2612/docs/iroh_net/struct.NodeAddr.html
+++ b/pr/2612/docs/iroh_net/struct.NodeAddr.html
@@ -1,4 +1,4 @@
-NodeAddr in iroh_net - Rust pub struct NodeAddr {
+NodeAddr in iroh_net - Rust pub struct NodeAddr {
pub node_id: PublicKey,
pub info: AddrInfo,
}
Expand description
Network-level addressing information for an iroh-net node.
@@ -25,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/2612/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
index ef1326205f..47b88b4928 100644
--- a/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
+++ b/pr/2612/docs/iroh_net/ticket/struct.NodeTicket.html
@@ -1,17 +1,17 @@
-NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
+NodeTicket in iroh_net::ticket - Rust Struct iroh_net::ticket::NodeTicket
source · pub struct NodeTicket { /* private fields */ }
Expand description
A token containing everything to get a file from the provider.
It is a single item which can be easily serialized and deserialized.
-Implementations§
§impl NodeTicket
Trait Implementations§
§impl Clone for NodeTicket
§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more§impl Debug for NodeTicket
§impl<'de> Deserialize<'de> for NodeTicket
§fn deserialize<D>(
+
Implementations§
Trait Implementations§
source§impl Clone for NodeTicket
source§fn clone(&self) -> NodeTicket
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read moresource§impl Debug for NodeTicket
source§impl<'de> Deserialize<'de> for NodeTicket
source§fn deserialize<D>(
deserializer: D
) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>where
- D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Display for NodeTicket
§impl FromStr for NodeTicket
§impl PartialEq for NodeTicket
§fn eq(&self, other: &NodeTicket) -> bool
Deserialize this value from the given Serde deserializer. Read moresource§impl Display for NodeTicket
source§impl FromStr for NodeTicket
source§impl PartialEq for NodeTicket
source§fn eq(&self, other: &NodeTicket) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for NodeTicket
source§impl Serialize for NodeTicket
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
- S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Ticket for NodeTicket
§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.§fn deserialize(str: &str) -> Result<Self, Error>
Deserialize from a string.§impl Eq for NodeTicket
§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
source§impl<T> Any for Twhere
+ S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Ticket for NodeTicket
source§fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>
Deserialize from the base32 string representation bytes.source§impl Eq for NodeTicket
source§impl StructuralPartialEq for NodeTicket
Auto Trait Implementations§
§impl Freeze for NodeTicket
§impl RefUnwindSafe for NodeTicket
§impl Send for NodeTicket
§impl Sync for NodeTicket
§impl Unpin for NodeTicket
§impl UnwindSafe for NodeTicket
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2612/docs/iroh_net/type.NodeId.html b/pr/2612/docs/iroh_net/type.NodeId.html
index d4cef7e64d..b93dbe8899 100644
--- a/pr/2612/docs/iroh_net/type.NodeId.html
+++ b/pr/2612/docs/iroh_net/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
+NodeId in iroh_net - Rust pub type NodeId = PublicKey;
Expand description
The identifier for a node in the (iroh) network.
Each node in iroh has a unique identifier created as a cryptographic key. This can be
used to globally identify a node. Since it is also a cryptographic key it is also the
mechanism by which all traffic is always encrypted for a specific node only.
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
index 7d3ebeea9d..9476cd27b3 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.client.html
@@ -1,2 +1,2 @@
-client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
+client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::client
source · pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
Expand description
Create and run a client
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
index 989176effa..34a684194f 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.connect_client.html
@@ -1,5 +1,5 @@
connect_client in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::connect_client
source · pub async fn connect_client(
- server_addr: NodeAddr,
+ server_addr: NodeAddr,
opt: Opt
) -> Result<(Endpoint, Connection)>
Expand description
Create a client endpoint and client connection
\ No newline at end of file
diff --git a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
index 162c033071..5a293fecda 100644
--- a/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
+++ b/pr/2612/docs/iroh_net_bench/iroh/fn.server_endpoint.html
@@ -1,2 +1,2 @@
-server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::server_endpoint
source · pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
Expand description
Creates a server endpoint which runs on the given runtime
+server_endpoint in iroh_net_bench::iroh - Rust Function iroh_net_bench::iroh::