Constant iroh::blobs::IROH_BLOCK_SIZE
source · pub const IROH_BLOCK_SIZE: BlockSize;Expand description
Block size used by iroh, 2^4*1024 = 16KiB
+Constant iroh::blobs::IROH_BLOCK_SIZE
pub const IROH_BLOCK_SIZE: BlockSize;Expand description
Block size used by iroh, 2^4*1024 = 16KiB
Enum iroh::blobs::downloader::DownloadError
source · pub enum DownloadError {
+DownloadError in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::DownloadError
pub enum DownloadError {
DownloadFailed,
Cancelled,
NoProviders,
@@ -8,7 +8,7 @@
§Cancelled
The download was cancelled by us
§NoProviders
No provider nodes found
§ActorClosed
Failed to receive response from service.
-Trait Implementations§
source§impl Clone for DownloadError
impl Clone for DownloadError
source§fn clone(&self) -> DownloadError
fn clone(&self) -> DownloadError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DownloadError
impl Debug for DownloadError
source§impl Display for DownloadError
impl Display for DownloadError
source§impl Error for DownloadError
impl Error for DownloadError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for DownloadError
impl RefUnwindSafe for DownloadError
impl Send for DownloadError
impl Sync for DownloadError
impl Unpin for DownloadError
impl UnwindSafe for DownloadError
Blanket Implementations§
Trait Implementations§
§impl Clone for DownloadError
impl Clone for DownloadError
§fn clone(&self) -> DownloadError
fn clone(&self) -> DownloadError
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for DownloadError
impl Debug for DownloadError
§impl Display for DownloadError
impl Display for DownloadError
§impl Error for DownloadError
impl Error for DownloadError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for DownloadError
impl RefUnwindSafe for DownloadError
impl Send for DownloadError
impl Sync for DownloadError
impl Unpin for DownloadError
impl UnwindSafe for DownloadError
Blanket Implementations§
§impl<'a, 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/2610/docs/iroh/blobs/downloader/enum.FailureAction.html b/pr/2610/docs/iroh/blobs/downloader/enum.FailureAction.html
index d2e7041d23..150af610c2 100644
--- a/pr/2610/docs/iroh/blobs/downloader/enum.FailureAction.html
+++ b/pr/2610/docs/iroh/blobs/downloader/enum.FailureAction.html
@@ -1,4 +1,4 @@
-FailureAction in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::FailureAction
source · pub enum FailureAction {
+FailureAction in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::FailureAction
pub enum FailureAction {
AllIntentsDropped,
AbortRequest(Error),
DropPeer(Error),
@@ -8,7 +8,7 @@
§AbortRequest(Error)
An error occurred that prevents the request from being retried at all.
§DropPeer(Error)
An error occurred that suggests the node should not be used in general.
§RetryLater(Error)
An error occurred in which neither the node nor the request are at fault.
-
Trait Implementations§
source§impl Debug for FailureAction
source§impl From<GetError> for FailureAction
source§fn from(e: GetError) -> FailureAction
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for FailureAction
§impl RefUnwindSafe for FailureAction
§impl Send for FailureAction
§impl Sync for FailureAction
§impl Unpin for FailureAction
§impl UnwindSafe for FailureAction
Blanket Implementations§
Trait Implementations§
§impl Debug for FailureAction
§impl From<GetError> for FailureAction
§fn from(e: GetError) -> FailureAction
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for FailureAction
§impl RefUnwindSafe for FailureAction
§impl Send for FailureAction
§impl Sync for FailureAction
§impl Unpin for FailureAction
§impl UnwindSafe for FailureAction
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/enum.GetOutput.html b/pr/2610/docs/iroh/blobs/downloader/enum.GetOutput.html
index f07ab0307f..73bbfaf7f6 100644
--- a/pr/2610/docs/iroh/blobs/downloader/enum.GetOutput.html
+++ b/pr/2610/docs/iroh/blobs/downloader/enum.GetOutput.html
@@ -1,11 +1,11 @@
-GetOutput in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::GetOutput
source · pub enum GetOutput<N> {
+GetOutput in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::GetOutput
pub enum GetOutput<N> {
Complete(Stats),
NeedsConn(N),
}
Expand description
Output returned from Getter::get.
Variants§
§Complete(Stats)
The request is already complete in the local store.
§NeedsConn(N)
The request needs a connection to continue.
-Trait Implementations§
Auto Trait Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl<N> Freeze for GetOutput<N>where
N: Freeze,
§impl<N> RefUnwindSafe for GetOutput<N>where
N: RefUnwindSafe,
§impl<N> Send for GetOutput<N>where
N: Send,
§impl<N> Sync for GetOutput<N>where
diff --git a/pr/2610/docs/iroh/blobs/downloader/index.html b/pr/2610/docs/iroh/blobs/downloader/index.html
index 347ce882f3..1c91431206 100644
--- a/pr/2610/docs/iroh/blobs/downloader/index.html
+++ b/pr/2610/docs/iroh/blobs/downloader/index.html
@@ -1,4 +1,4 @@
-iroh::blobs::downloader - Rust Module iroh::blobs::downloader
source · Expand description
Handle downloading blobs and collections concurrently and from nodes.
+iroh::blobs::downloader - Rust Module iroh::blobs::downloader
Expand description
Handle downloading blobs and collections concurrently and from nodes.
The Downloader interacts with four main components to this end.
Dialer: Used to queue opening connections to nodes we need to perform downloads.
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html b/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
index 807453c381..a64840dc0c 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
@@ -1,4 +1,4 @@
-ConcurrencyLimits in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::ConcurrencyLimits
source · pub struct ConcurrencyLimits {
+ConcurrencyLimits in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::ConcurrencyLimits
pub struct ConcurrencyLimits {
pub max_concurrent_requests: usize,
pub max_concurrent_requests_per_node: usize,
pub max_open_connections: usize,
@@ -8,7 +8,7 @@
§max_concurrent_requests_per_node: usizeMaximum number of requests performed by a single node concurrently.
§max_open_connections: usizeMaximum number of open connections the service maintains.
§max_concurrent_dials_per_hash: usizeMaximum number of nodes to dial concurrently for a single request.
-Trait Implementations§
source§impl Debug for ConcurrencyLimits
source§impl Default for ConcurrencyLimits
source§fn default() -> ConcurrencyLimits
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for ConcurrencyLimits
§impl RefUnwindSafe for ConcurrencyLimits
§impl Send for ConcurrencyLimits
§impl Sync for ConcurrencyLimits
§impl Unpin for ConcurrencyLimits
§impl UnwindSafe for ConcurrencyLimits
Blanket Implementations§
source§impl<T> Any for Twhere
+Trait Implementations§
§impl Debug for ConcurrencyLimits
§impl Default for ConcurrencyLimits
§fn default() -> ConcurrencyLimits
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for ConcurrencyLimits
§impl RefUnwindSafe for ConcurrencyLimits
§impl Send for ConcurrencyLimits
§impl Sync for ConcurrencyLimits
§impl Unpin for ConcurrencyLimits
§impl UnwindSafe for ConcurrencyLimits
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html
index dc6d87f7c3..e1c5d54e32 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html
@@ -1,5 +1,5 @@
-DownloadHandle in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadHandle
source · pub struct DownloadHandle { /* private fields */ }
Expand description
Handle to interact with a download request.
-Trait Implementations§
source§impl Debug for DownloadHandle
source§impl Future for DownloadHandle
§type Output = Result<Stats, DownloadError>
The type of value produced on completion.source§fn poll(
+DownloadHandle in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadHandle
pub struct DownloadHandle { /* private fields */ }
Expand description
Handle to interact with a download request.
+Trait Implementations§
§impl Debug for DownloadHandle
§impl Future for DownloadHandle
§type Output = Result<Stats, DownloadError>
The type of value produced on completion.§fn poll(
self: Pin<&mut DownloadHandle>,
cx: &mut Context<'_>
) -> Poll<<DownloadHandle as Future>::Output>
Attempt to resolve the future to a final value, registering
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html
index 4a70ac75c4..4719a1c98c 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html
@@ -1,13 +1,13 @@
-DownloadKind in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadKind
source · pub struct DownloadKind(/* private fields */);
Expand description
The kind of resource to download.
-Implementations§
source§impl DownloadKind
sourcepub const fn format(&self) -> BlobFormat
Get the format of this download
-sourcepub const fn hash_and_format(&self) -> HashAndFormat
Get the HashAndFormat pair of this download
-Trait Implementations§
source§impl Clone for DownloadKind
source§fn clone(&self) -> DownloadKind
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 DownloadKind
source§impl Display for DownloadKind
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> HashAndFormat
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> DownloadKind
Converts to this type from the input type.source§impl Hash for DownloadKind
source§fn hash<__H>(&self, state: &mut __H)where
+DownloadKind in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadKind
pub struct DownloadKind(/* private fields */);
Expand description
The kind of resource to download.
+Implementations§
§impl DownloadKind
pub const fn format(&self) -> BlobFormat
Get the format of this download
+pub const fn hash_and_format(&self) -> HashAndFormat
Get the HashAndFormat pair of this download
+Trait Implementations§
§impl Clone for DownloadKind
§fn clone(&self) -> DownloadKind
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 DownloadKind
§impl Display for DownloadKind
§impl From<DownloadKind> for HashAndFormat
§fn from(value: DownloadKind) -> HashAndFormat
Converts to this type from the input type.§impl From<HashAndFormat> for DownloadKind
§fn from(value: HashAndFormat) -> DownloadKind
Converts to this type from the input type.§impl Hash for DownloadKind
source§impl PartialEq for DownloadKind
§impl PartialEq for DownloadKind
§fn eq(&self, other: &DownloadKind) -> bool
This method tests for self and other values to be equal, and is used
by ==.source§impl Copy for DownloadKind
source§impl Eq for DownloadKind
source§impl StructuralPartialEq for DownloadKind
Auto Trait Implementations§
§impl Freeze for DownloadKind
§impl RefUnwindSafe for DownloadKind
§impl Send for DownloadKind
§impl Sync for DownloadKind
§impl Unpin for DownloadKind
§impl UnwindSafe for DownloadKind
Blanket Implementations§
§impl Copy for DownloadKind
§impl Eq for DownloadKind
§impl StructuralPartialEq for DownloadKind
Auto Trait Implementations§
§impl Freeze for DownloadKind
§impl RefUnwindSafe for DownloadKind
§impl Send for DownloadKind
§impl Sync for DownloadKind
§impl Unpin for DownloadKind
§impl UnwindSafe for DownloadKind
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html
index 44b625c937..e4ee48bd36 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html
@@ -1,5 +1,5 @@
-DownloadRequest in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadRequest
source · pub struct DownloadRequest { /* private fields */ }
Expand description
A download request.
-Implementations§
source§impl DownloadRequest
sourcepub fn new(
+DownloadRequest in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadRequest
pub struct DownloadRequest { /* private fields */ }
Expand description
A download request.
+Implementations§
§impl DownloadRequest
pub fn new(
resource: impl Into<DownloadKind>,
nodes: impl IntoIterator<Item = impl Into<NodeAddr>>
) -> DownloadRequest
Create a new download request.
@@ -8,11 +8,11 @@ temp tag or with a persistent tag to make sure the data is not garbage collected
the download.
If this is not done, there download will proceed as normal, but there is no guarantee
that the data is still available when the download is complete.
-sourcepub fn progress_sender(
+
pub fn progress_sender(
self,
sender: AsyncChannelProgressSender<DownloadProgress>
) -> DownloadRequest
Pass a progress sender to receive progress updates.
-Trait Implementations§
source§impl Clone for DownloadRequest
source§fn clone(&self) -> DownloadRequest
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 DownloadRequest
§impl RefUnwindSafe for DownloadRequest
§impl Send for DownloadRequest
§impl Sync for DownloadRequest
§impl Unpin for DownloadRequest
§impl UnwindSafe for DownloadRequest
Blanket Implementations§
Trait Implementations§
§impl Clone for DownloadRequest
§fn clone(&self) -> DownloadRequest
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 DownloadRequest
§impl RefUnwindSafe for DownloadRequest
§impl Send for DownloadRequest
§impl Sync for DownloadRequest
§impl Unpin for DownloadRequest
§impl UnwindSafe for DownloadRequest
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html b/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html
index 5b87c99a11..cf3c82e05b 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html
@@ -1,7 +1,7 @@
-Downloader in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::Downloader
source · pub struct Downloader { /* private fields */ }
Expand description
Handle for the download services.
-Implementations§
source§impl Downloader
sourcepub fn new<S>(store: S, endpoint: Endpoint, rt: LocalPoolHandle) -> Downloaderwhere
+Downloader in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::Downloader
pub struct Downloader { /* private fields */ }
Expand description
Handle for the download services.
+Implementations§
§impl Downloader
pub fn new<S>(store: S, endpoint: Endpoint, rt: LocalPoolHandle) -> Downloaderwhere
S: Store,
Create a new Downloader with the default ConcurrencyLimits and RetryConfig.
-sourcepub fn with_config<S>(
+
pub fn with_config<S>(
store: S,
endpoint: Endpoint,
rt: LocalPoolHandle,
@@ -9,12 +9,12 @@
retry_config: RetryConfig
) -> Downloaderwhere
S: Store,
Create a new Downloader with custom ConcurrencyLimits and RetryConfig.
-sourcepub async fn queue(&self, request: DownloadRequest) -> DownloadHandle ⓘ
Queue a download.
-sourcepub async fn cancel(&self, handle: DownloadHandle)
Cancel a download.
-sourcepub async fn nodes_have(&mut self, hash: Hash, nodes: Vec<PublicKey>)
Declare that certains nodes can be used to download a hash.
+pub async fn queue(&self, request: DownloadRequest) -> DownloadHandle ⓘ
Queue a download.
+pub async fn cancel(&self, handle: DownloadHandle)
Cancel a download.
+pub async fn nodes_have(&mut self, hash: Hash, nodes: Vec<PublicKey>)
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
source§fn clone(&self) -> Downloader
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 Downloader
§impl !RefUnwindSafe for Downloader
§impl Send for Downloader
§impl Sync for Downloader
§impl Unpin for Downloader
§impl !UnwindSafe for Downloader
Blanket Implementations§
Trait Implementations§
§impl Clone for Downloader
§fn clone(&self) -> Downloader
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 Downloader
§impl !RefUnwindSafe for Downloader
§impl Send for Downloader
§impl Sync for Downloader
§impl Unpin for Downloader
§impl !UnwindSafe for Downloader
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html b/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html
index 34ef7c1681..7d289c6a22 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html
@@ -1,15 +1,15 @@
-IntentId in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::IntentId
source · pub struct IntentId(pub u64);
Expand description
Identifier for a download intent.
-Tuple Fields§
§0: u64Trait Implementations§
source§impl Hash for IntentId
source§fn hash<__H>(&self, state: &mut __H)where
+IntentId in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::IntentId
pub struct IntentId(pub u64);
Expand description
Identifier for a download intent.
+Tuple Fields§
§0: u64Trait Implementations§
§impl Ord for IntentId
source§impl PartialOrd for IntentId
§impl PartialOrd for IntentId
§fn partial_cmp(&self, other: &IntentId) -> 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 Copy for IntentId
source§impl Eq for IntentId
source§impl StructuralPartialEq for IntentId
Auto Trait Implementations§
§impl Freeze for IntentId
§impl RefUnwindSafe for IntentId
§impl Send for IntentId
§impl Sync for IntentId
§impl Unpin for IntentId
§impl UnwindSafe for IntentId
Blanket Implementations§
§impl Copy for IntentId
§impl Eq for IntentId
§impl StructuralPartialEq for IntentId
Auto Trait Implementations§
§impl Freeze for IntentId
§impl RefUnwindSafe for IntentId
§impl Send for IntentId
§impl Sync for IntentId
§impl Unpin for IntentId
§impl UnwindSafe for IntentId
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html b/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html
index bf5caa0efb..be958f9f15 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html
@@ -1,11 +1,11 @@
-RetryConfig in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::RetryConfig
source · pub struct RetryConfig {
+RetryConfig in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::RetryConfig
pub struct RetryConfig {
pub max_retries_per_node: u32,
pub initial_retry_delay: Duration,
}
Expand description
Configuration for retry behavior of the Downloader.
Fields§
§max_retries_per_node: u32Maximum number of retry attempts for a node that failed to dial or failed with IO errors.
§initial_retry_delay: DurationThe initial delay to wait before retrying a node. On subsequent failures, the retry delay
will be multiplied with the number of failed retries.
-Trait Implementations§
source§impl Debug for RetryConfig
source§impl Default for RetryConfig
source§fn default() -> RetryConfig
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for RetryConfig
§impl RefUnwindSafe for RetryConfig
§impl Send for RetryConfig
§impl Sync for RetryConfig
§impl Unpin for RetryConfig
§impl UnwindSafe for RetryConfig
Blanket Implementations§
source§impl<T> Any for Twhere
+Trait Implementations§
§impl Debug for RetryConfig
§impl Default for RetryConfig
§fn default() -> RetryConfig
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for RetryConfig
§impl RefUnwindSafe for RetryConfig
§impl Send for RetryConfig
§impl Sync for RetryConfig
§impl Unpin for RetryConfig
§impl UnwindSafe for RetryConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html b/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html
index b171e5d50b..bab3e0811b 100644
--- a/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html
+++ b/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html
@@ -1,4 +1,4 @@
-Dialer in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Dialer
source · pub trait Dialer: Stream<Item = (PublicKey, Result<Self::Connection, Error>)> + Unpin {
+Dialer in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Dialer
pub trait Dialer: Stream<Item = (PublicKey, Result<Self::Connection, Error>)> + Unpin {
type Connection: Clone + 'static;
// Required methods
@@ -7,9 +7,9 @@
fn is_pending(&self, node: PublicKey) -> bool;
fn node_id(&self) -> PublicKey;
}
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: PublicKey)
Dial a node.
-sourcefn pending_count(&self) -> usize
Get the number of dialing nodes.
-sourcefn is_pending(&self, node: PublicKey) -> bool
Check if a node is being dialed.
-Implementors§
source§impl Dialer for Dialer
§type Connection = Connection
\ No newline at end of file
+
Required Associated Types§
type Connection: Clone + 'static
Type of connections returned by the Dialer.
+Required Methods§
fn queue_dial(&mut self, node_id: PublicKey)
Dial a node.
+fn pending_count(&self) -> usize
Get the number of dialing nodes.
+fn is_pending(&self, node: PublicKey) -> bool
Check if a node is being dialed.
+Implementors§
§impl Dialer for Dialer
§type Connection = Connection
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html b/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html
index 7db7547404..1433d1ad51 100644
--- a/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html
+++ b/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html
@@ -1,4 +1,4 @@
-Getter in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Getter
source · pub trait Getter {
+Getter in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Getter
pub trait Getter {
type Connection: 'static;
type NeedsConn: NeedsConn<Self::Connection>;
@@ -9,9 +9,9 @@
progress_sender: BroadcastProgressSender
) -> Pin<Box<dyn Future<Output = Result<GetOutput<Self::NeedsConn>, FailureAction>>>>;
}
Expand description
Trait modelling performing a single request over a connection. This allows for IO-less testing.
-Required Associated Types§
sourcetype Connection: 'static
Type of connections the Getter requires to perform a download.
-sourcetype NeedsConn: NeedsConn<Self::Connection>
Type of the intermediary state returned from Self::get if a connection is needed.
-Required Methods§
Required Associated Types§
type Connection: 'static
Type of connections the Getter requires to perform a download.
+type NeedsConn: NeedsConn<Self::Connection>
Type of the intermediary state returned from Self::get if a connection is needed.
+Required Methods§
fn get(
&mut self,
kind: DownloadKind,
progress_sender: BroadcastProgressSender
diff --git a/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html b/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html
index 43b89e6c03..da67052292 100644
--- a/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html
+++ b/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html
@@ -1,12 +1,12 @@
-NeedsConn in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::NeedsConn
source · pub trait NeedsConn<C>: Debug + 'static {
+NeedsConn in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::NeedsConn
pub trait NeedsConn<C>: Debug + 'static {
// Required method
fn proceed(
self,
conn: C
) -> Pin<Box<dyn Future<Output = Result<Stats, FailureAction>>>>;
}
Expand description
Trait modelling the intermediary state when a connection is needed to proceed.
-Required Methods§
Required Methods§
Implementors§
source§impl NeedsConn<Connection> for GetStateNeedsConn
\ No newline at end of file
+
Implementors§
§impl NeedsConn<Connection> for GetStateNeedsConn
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html b/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html
index b2e56959a9..993565e37d 100644
--- a/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html
+++ b/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html
@@ -1,4 +1,4 @@
-ExportProgress in iroh::blobs::export - Rust Enum iroh::blobs::export::ExportProgress
source · pub enum ExportProgress {
+ExportProgress in iroh::blobs::export - Rust Enum iroh::blobs::export::ExportProgress
pub enum ExportProgress {
Found {
id: u64,
hash: Hash,
@@ -31,10 +31,10 @@ to the specified out path.
§AllDone
We are done with the whole operation.
§Abort(RpcError)
We got an error and need to abort.
-
Trait Implementations§
source§impl Clone for ExportProgress
source§fn clone(&self) -> ExportProgress
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 ExportProgress
source§impl<'de> Deserialize<'de> for ExportProgress
source§fn deserialize<__D>(
+
Trait Implementations§
§impl Clone for ExportProgress
§fn clone(&self) -> ExportProgress
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 ExportProgress
§impl<'de> Deserialize<'de> for ExportProgress
§fn deserialize<__D>(
__deserializer: __D
) -> Result<ExportProgress, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for ExportProgress
source§fn serialize<__S>(
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Serialize for ExportProgress
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
diff --git a/pr/2610/docs/iroh/blobs/export/fn.export.html b/pr/2610/docs/iroh/blobs/export/fn.export.html
index 47dcf9dc56..fd30428da6 100644
--- a/pr/2610/docs/iroh/blobs/export/fn.export.html
+++ b/pr/2610/docs/iroh/blobs/export/fn.export.html
@@ -1,4 +1,4 @@
-export in iroh::blobs::export - Rust pub async fn export<D>(
+export in iroh::blobs::export - Rust pub async fn export<D>(
db: &D,
hash: Hash,
outpath: PathBuf,
diff --git a/pr/2610/docs/iroh/blobs/export/fn.export_blob.html b/pr/2610/docs/iroh/blobs/export/fn.export_blob.html
index 5f3b87c1e3..1e8d43f8dd 100644
--- a/pr/2610/docs/iroh/blobs/export/fn.export_blob.html
+++ b/pr/2610/docs/iroh/blobs/export/fn.export_blob.html
@@ -1,4 +1,4 @@
-export_blob in iroh::blobs::export - Rust Function iroh::blobs::export::export_blob
source · pub async fn export_blob<D>(
+export_blob in iroh::blobs::export - Rust Function iroh::blobs::export::export_blob
pub async fn export_blob<D>(
db: &D,
hash: Hash,
outpath: PathBuf,
diff --git a/pr/2610/docs/iroh/blobs/export/fn.export_collection.html b/pr/2610/docs/iroh/blobs/export/fn.export_collection.html
index 3006f090c9..46c48078ce 100644
--- a/pr/2610/docs/iroh/blobs/export/fn.export_collection.html
+++ b/pr/2610/docs/iroh/blobs/export/fn.export_collection.html
@@ -1,4 +1,4 @@
-export_collection in iroh::blobs::export - Rust Function iroh::blobs::export::export_collection
source · pub async fn export_collection<D>(
+export_collection in iroh::blobs::export - Rust Function iroh::blobs::export::export_collection
pub async fn export_collection<D>(
db: &D,
hash: Hash,
outpath: PathBuf,
diff --git a/pr/2610/docs/iroh/blobs/export/index.html b/pr/2610/docs/iroh/blobs/export/index.html
index b5100b73a9..5d603bba61 100644
--- a/pr/2610/docs/iroh/blobs/export/index.html
+++ b/pr/2610/docs/iroh/blobs/export/index.html
@@ -1,2 +1,2 @@
-iroh::blobs::export - Rust Expand description
Functions to export data from a store
+iroh::blobs::export - Rust
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/format/collection/index.html b/pr/2610/docs/iroh/blobs/format/collection/index.html
index 09692a2b2a..934db16299 100644
--- a/pr/2610/docs/iroh/blobs/format/collection/index.html
+++ b/pr/2610/docs/iroh/blobs/format/collection/index.html
@@ -1,2 +1,2 @@
-iroh::blobs::format::collection - Rust Module iroh::blobs::format::collection
source · Expand description
The collection type used by iroh
+iroh::blobs::format::collection - Rust
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html b/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html
index 0495f38015..b946c17b2f 100644
--- a/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html
+++ b/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html
@@ -1,51 +1,51 @@
-Collection in iroh::blobs::format::collection - Rust Struct iroh::blobs::format::collection::Collection
source · pub struct Collection { /* private fields */ }
Expand description
A collection of blobs
+Collection in iroh::blobs::format::collection - Rust Struct iroh::blobs::format::collection::Collection
pub struct Collection { /* private fields */ }
Expand description
A collection of blobs
Note that the format is subject to change.
-Implementations§
source§impl Collection
Implementations§
§impl Collection
pub const HEADER: &'static [u8; 13] = b"CollectionV0."
The header for the collection format.
This is the start of the metadata blob.
-sourcepub fn to_blobs(&self) -> impl DoubleEndedIterator
Convert the collection to an iterator of blobs, with the last being the
+
pub fn to_blobs(&self) -> impl DoubleEndedIterator
Convert the collection to an iterator of blobs, with the last being the
root blob.
To persist the collection, write all the blobs to storage, and use the
hash of the last blob as the collection hash.
-pub async fn read_fsm(
fsm_at_start_root: AtStartRoot
) -> Result<(EndBlobNext, HashSeq, Collection), Error>
Read the collection from a get fsm.
Returns the fsm at the start of the first child blob (if any),
the links array, and the collection.
-sourcepub async fn read_fsm_all(
+
pub async fn read_fsm_all(
fsm_at_start_root: AtStartRoot
) -> Result<(Collection, BTreeMap<u64, Bytes>, Stats), Error>
Read the collection and all it’s children from a get fsm.
Returns the collection, a map from blob offsets to bytes, and the stats.
-pub async fn load(
root: Hash,
store: &impl SimpleStore
) -> Result<Collection, Error>
Create a new collection from a hash sequence and metadata.
-pub async fn load_db<D>(db: &D, root: &Hash) -> Result<Collection, Error>where
D: Map,
Load a collection from a store given a root hash
This assumes that both the links and the metadata of the collection is stored in the store.
It does not require that all child blobs are stored in the store.
-pub async fn store<D>(self, db: &D) -> Result<TempTag, Error>where
D: Store,
Store a collection in a store. returns the root hash of the collection
as a TempTag.
-Trait Implementations§
source§impl Clone for Collection
source§fn clone(&self) -> Collection
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 Collection
source§impl Default for Collection
source§fn default() -> Collection
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for Collection
source§fn deserialize<__D>(
+
Trait Implementations§
§impl Clone for Collection
§fn clone(&self) -> Collection
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 Collection
§impl Default for Collection
§fn default() -> Collection
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for Collection
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Collection, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl<K, V> Extend<(K, V)> for Collectionwhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<K, V> Extend<(K, V)> for Collection
source§fn extend<T>(&mut self, iter: T)where
- T: IntoIterator<Item = (K, V)>,
Extends a collection with the contents of an iterator. Read moresource§fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (extend_one)Extends a collection with exactly one element.source§fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (extend_one)Reserves capacity in a collection for the given number of additional elements. Read moresource§impl<K, V> FromIterator<(K, V)> for Collection
§fn extend<T>(&mut self, iter: T)where
+ T: IntoIterator<Item = (K, V)>,
Extends a collection with the contents of an iterator. Read moresource§fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (extend_one)Extends a collection with exactly one element.source§fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (extend_one)Reserves capacity in a collection for the given number of additional elements. Read more§impl<K, V> FromIterator<(K, V)> for Collection
source§fn from_iter<T>(iter: T) -> Collectionwhere
- T: IntoIterator<Item = (K, V)>,
Creates a value from an iterator. Read moresource§impl Index<usize> for Collection
source§impl IntoIterator for Collection
§type IntoIter = IntoIter<<Collection as IntoIterator>::Item>
Which kind of iterator are we turning this into?source§fn into_iter(self) -> <Collection as IntoIterator>::IntoIter
Creates an iterator from a value. Read moresource§impl PartialEq for Collection
source§fn eq(&self, other: &Collection) -> bool
§fn from_iter<T>(iter: T) -> Collectionwhere
+ T: IntoIterator<Item = (K, V)>,
Creates a value from an iterator. Read more§impl Index<usize> for Collection
§impl IntoIterator for Collection
§type IntoIter = IntoIter<<Collection as IntoIterator>::Item>
Which kind of iterator are we turning this into?§fn into_iter(self) -> <Collection as IntoIterator>::IntoIter
Creates an iterator from a value. Read more§impl PartialEq for Collection
§fn eq(&self, other: &Collection) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for Collection
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl StructuralPartialEq for Collection
Auto Trait Implementations§
§impl Freeze for Collection
§impl RefUnwindSafe for Collection
§impl Send for Collection
§impl Sync for Collection
§impl Unpin for Collection
§impl UnwindSafe for Collection
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for Collection
Auto Trait Implementations§
§impl Freeze for Collection
§impl RefUnwindSafe for Collection
§impl Send for Collection
§impl Sync for Collection
§impl Unpin for Collection
§impl UnwindSafe for Collection
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html b/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html
index 8060225b4a..e645c48a2f 100644
--- a/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html
+++ b/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html
@@ -1,9 +1,9 @@
-SimpleStore in iroh::blobs::format::collection - Rust Trait iroh::blobs::format::collection::SimpleStore
source · pub trait SimpleStore {
+SimpleStore in iroh::blobs::format::collection - Rust Trait iroh::blobs::format::collection::SimpleStore
pub trait SimpleStore {
// Required method
fn load(
&self,
hash: Hash
) -> impl Future<Output = Result<Bytes, Error>> + Send;
}
Expand description
A simple store trait for loading blobs
-Required Methods§
sourcefn load(&self, hash: Hash) -> impl Future<Output = Result<Bytes, Error>> + Send
Load a blob from the store
+Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl SimpleStore for Client
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/format/index.html b/pr/2610/docs/iroh/blobs/format/index.html
index 556b45cc6d..4d957f0c6f 100644
--- a/pr/2610/docs/iroh/blobs/format/index.html
+++ b/pr/2610/docs/iroh/blobs/format/index.html
@@ -1,4 +1,4 @@
-iroh::blobs::format - Rust Expand description
Defines data formats for HashSeq.
+iroh::blobs::format - Rust Expand description
Defines data formats for HashSeq.
The exact details how to use a HashSeq for specific purposes is up to the
user. However, the following approach is used by iroh formats:
The first child blob is a metadata blob. It starts with a header, followed
diff --git a/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html b/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html
index 6206af3f7a..4db2508178 100644
--- a/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html
+++ b/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html
@@ -1,27 +1,27 @@
-
BlobId in iroh::blobs::get::db - Rust pub enum BlobId {
+BlobId in iroh::blobs::get::db - Rust pub enum BlobId {
Root,
Child(NonZero<u64>),
}
Expand description
The id of a blob in a transfer
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for BlobId
source§fn deserialize<__D>(
+
Trait Implementations§
§impl<'de> Deserialize<'de> for BlobId
§fn deserialize<__D>(
__deserializer: __D
) -> Result<BlobId, <__D as Deserializer<'de>>::Error>where
- __D:
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/enum.FailureAction.html b/pr/2610/docs/iroh/blobs/downloader/enum.FailureAction.html
index d2e7041d23..150af610c2 100644
--- a/pr/2610/docs/iroh/blobs/downloader/enum.FailureAction.html
+++ b/pr/2610/docs/iroh/blobs/downloader/enum.FailureAction.html
@@ -1,4 +1,4 @@
-FailureAction in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::FailureAction
source · pub enum FailureAction {
+FailureAction in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::FailureAction
pub enum FailureAction {
AllIntentsDropped,
AbortRequest(Error),
DropPeer(Error),
@@ -8,7 +8,7 @@
§AbortRequest(Error)
An error occurred that prevents the request from being retried at all.
§DropPeer(Error)
An error occurred that suggests the node should not be used in general.
§RetryLater(Error)
An error occurred in which neither the node nor the request are at fault.
-
Trait Implementations§
source§impl Debug for FailureAction
source§impl From<GetError> for FailureAction
source§fn from(e: GetError) -> FailureAction
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for FailureAction
§impl RefUnwindSafe for FailureAction
§impl Send for FailureAction
§impl Sync for FailureAction
§impl Unpin for FailureAction
§impl UnwindSafe for FailureAction
Blanket Implementations§
Trait Implementations§
§impl Debug for FailureAction
§impl From<GetError> for FailureAction
§fn from(e: GetError) -> FailureAction
Converts to this type from the input type.Auto Trait Implementations§
§impl Freeze for FailureAction
§impl RefUnwindSafe for FailureAction
§impl Send for FailureAction
§impl Sync for FailureAction
§impl Unpin for FailureAction
§impl UnwindSafe for FailureAction
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/enum.GetOutput.html b/pr/2610/docs/iroh/blobs/downloader/enum.GetOutput.html
index f07ab0307f..73bbfaf7f6 100644
--- a/pr/2610/docs/iroh/blobs/downloader/enum.GetOutput.html
+++ b/pr/2610/docs/iroh/blobs/downloader/enum.GetOutput.html
@@ -1,11 +1,11 @@
-GetOutput in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::GetOutput
source · pub enum GetOutput<N> {
+GetOutput in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::GetOutput
pub enum GetOutput<N> {
Complete(Stats),
NeedsConn(N),
}
Expand description
Output returned from Getter::get.
Variants§
§Complete(Stats)
The request is already complete in the local store.
§NeedsConn(N)
The request needs a connection to continue.
-Trait Implementations§
Auto Trait Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl<N> Freeze for GetOutput<N>where
N: Freeze,
§impl<N> RefUnwindSafe for GetOutput<N>where
N: RefUnwindSafe,
§impl<N> Send for GetOutput<N>where
N: Send,
§impl<N> Sync for GetOutput<N>where
diff --git a/pr/2610/docs/iroh/blobs/downloader/index.html b/pr/2610/docs/iroh/blobs/downloader/index.html
index 347ce882f3..1c91431206 100644
--- a/pr/2610/docs/iroh/blobs/downloader/index.html
+++ b/pr/2610/docs/iroh/blobs/downloader/index.html
@@ -1,4 +1,4 @@
-iroh::blobs::downloader - Rust Module iroh::blobs::downloader
source · Expand description
Handle downloading blobs and collections concurrently and from nodes.
+iroh::blobs::downloader - Rust Module iroh::blobs::downloader
Expand description
Handle downloading blobs and collections concurrently and from nodes.
The Downloader interacts with four main components to this end.
Dialer: Used to queue opening connections to nodes we need to perform downloads.
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html b/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
index 807453c381..a64840dc0c 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
@@ -1,4 +1,4 @@
-ConcurrencyLimits in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::ConcurrencyLimits
source · pub struct ConcurrencyLimits {
+ConcurrencyLimits in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::ConcurrencyLimits
pub struct ConcurrencyLimits {
pub max_concurrent_requests: usize,
pub max_concurrent_requests_per_node: usize,
pub max_open_connections: usize,
@@ -8,7 +8,7 @@
§max_concurrent_requests_per_node: usizeMaximum number of requests performed by a single node concurrently.
§max_open_connections: usizeMaximum number of open connections the service maintains.
§max_concurrent_dials_per_hash: usizeMaximum number of nodes to dial concurrently for a single request.
-Trait Implementations§
source§impl Debug for ConcurrencyLimits
source§impl Default for ConcurrencyLimits
source§fn default() -> ConcurrencyLimits
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for ConcurrencyLimits
§impl RefUnwindSafe for ConcurrencyLimits
§impl Send for ConcurrencyLimits
§impl Sync for ConcurrencyLimits
§impl Unpin for ConcurrencyLimits
§impl UnwindSafe for ConcurrencyLimits
Blanket Implementations§
source§impl<T> Any for Twhere
+Trait Implementations§
§impl Debug for ConcurrencyLimits
§impl Default for ConcurrencyLimits
§fn default() -> ConcurrencyLimits
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for ConcurrencyLimits
§impl RefUnwindSafe for ConcurrencyLimits
§impl Send for ConcurrencyLimits
§impl Sync for ConcurrencyLimits
§impl Unpin for ConcurrencyLimits
§impl UnwindSafe for ConcurrencyLimits
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html
index dc6d87f7c3..e1c5d54e32 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html
@@ -1,5 +1,5 @@
-DownloadHandle in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadHandle
source · pub struct DownloadHandle { /* private fields */ }
Expand description
Handle to interact with a download request.
-Trait Implementations§
source§impl Debug for DownloadHandle
source§impl Future for DownloadHandle
§type Output = Result<Stats, DownloadError>
The type of value produced on completion.source§fn poll(
+DownloadHandle in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadHandle
pub struct DownloadHandle { /* private fields */ }
Expand description
Handle to interact with a download request.
+Trait Implementations§
§impl Debug for DownloadHandle
§impl Future for DownloadHandle
§type Output = Result<Stats, DownloadError>
The type of value produced on completion.§fn poll(
self: Pin<&mut DownloadHandle>,
cx: &mut Context<'_>
) -> Poll<<DownloadHandle as Future>::Output>
Attempt to resolve the future to a final value, registering
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html
index 4a70ac75c4..4719a1c98c 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html
@@ -1,13 +1,13 @@
-DownloadKind in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadKind
source · pub struct DownloadKind(/* private fields */);
Expand description
The kind of resource to download.
-Implementations§
source§impl DownloadKind
sourcepub const fn format(&self) -> BlobFormat
Get the format of this download
-sourcepub const fn hash_and_format(&self) -> HashAndFormat
Get the HashAndFormat pair of this download
-Trait Implementations§
source§impl Clone for DownloadKind
source§fn clone(&self) -> DownloadKind
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 DownloadKind
source§impl Display for DownloadKind
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> HashAndFormat
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> DownloadKind
Converts to this type from the input type.source§impl Hash for DownloadKind
source§fn hash<__H>(&self, state: &mut __H)where
+DownloadKind in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadKind
pub struct DownloadKind(/* private fields */);
Expand description
The kind of resource to download.
+Implementations§
§impl DownloadKind
pub const fn format(&self) -> BlobFormat
Get the format of this download
+pub const fn hash_and_format(&self) -> HashAndFormat
Get the HashAndFormat pair of this download
+Trait Implementations§
§impl Clone for DownloadKind
§fn clone(&self) -> DownloadKind
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 DownloadKind
§impl Display for DownloadKind
§impl From<DownloadKind> for HashAndFormat
§fn from(value: DownloadKind) -> HashAndFormat
Converts to this type from the input type.§impl From<HashAndFormat> for DownloadKind
§fn from(value: HashAndFormat) -> DownloadKind
Converts to this type from the input type.§impl Hash for DownloadKind
source§impl PartialEq for DownloadKind
§impl PartialEq for DownloadKind
§fn eq(&self, other: &DownloadKind) -> bool
This method tests for self and other values to be equal, and is used
by ==.source§impl Copy for DownloadKind
source§impl Eq for DownloadKind
source§impl StructuralPartialEq for DownloadKind
Auto Trait Implementations§
§impl Freeze for DownloadKind
§impl RefUnwindSafe for DownloadKind
§impl Send for DownloadKind
§impl Sync for DownloadKind
§impl Unpin for DownloadKind
§impl UnwindSafe for DownloadKind
Blanket Implementations§
§impl Copy for DownloadKind
§impl Eq for DownloadKind
§impl StructuralPartialEq for DownloadKind
Auto Trait Implementations§
§impl Freeze for DownloadKind
§impl RefUnwindSafe for DownloadKind
§impl Send for DownloadKind
§impl Sync for DownloadKind
§impl Unpin for DownloadKind
§impl UnwindSafe for DownloadKind
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html
index 44b625c937..e4ee48bd36 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html
@@ -1,5 +1,5 @@
-DownloadRequest in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadRequest
source · pub struct DownloadRequest { /* private fields */ }
Expand description
A download request.
-Implementations§
source§impl DownloadRequest
sourcepub fn new(
+DownloadRequest in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadRequest
pub struct DownloadRequest { /* private fields */ }
Expand description
A download request.
+Implementations§
§impl DownloadRequest
pub fn new(
resource: impl Into<DownloadKind>,
nodes: impl IntoIterator<Item = impl Into<NodeAddr>>
) -> DownloadRequest
Create a new download request.
@@ -8,11 +8,11 @@ temp tag or with a persistent tag to make sure the data is not garbage collected
the download.
If this is not done, there download will proceed as normal, but there is no guarantee
that the data is still available when the download is complete.
-sourcepub fn progress_sender(
+
pub fn progress_sender(
self,
sender: AsyncChannelProgressSender<DownloadProgress>
) -> DownloadRequest
Pass a progress sender to receive progress updates.
-Trait Implementations§
source§impl Clone for DownloadRequest
source§fn clone(&self) -> DownloadRequest
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 DownloadRequest
§impl RefUnwindSafe for DownloadRequest
§impl Send for DownloadRequest
§impl Sync for DownloadRequest
§impl Unpin for DownloadRequest
§impl UnwindSafe for DownloadRequest
Blanket Implementations§
Trait Implementations§
§impl Clone for DownloadRequest
§fn clone(&self) -> DownloadRequest
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 DownloadRequest
§impl RefUnwindSafe for DownloadRequest
§impl Send for DownloadRequest
§impl Sync for DownloadRequest
§impl Unpin for DownloadRequest
§impl UnwindSafe for DownloadRequest
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html b/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html
index 5b87c99a11..cf3c82e05b 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html
@@ -1,7 +1,7 @@
-Downloader in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::Downloader
source · pub struct Downloader { /* private fields */ }
Expand description
Handle for the download services.
-Implementations§
source§impl Downloader
sourcepub fn new<S>(store: S, endpoint: Endpoint, rt: LocalPoolHandle) -> Downloaderwhere
+Downloader in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::Downloader
pub struct Downloader { /* private fields */ }
Expand description
Handle for the download services.
+Implementations§
§impl Downloader
pub fn new<S>(store: S, endpoint: Endpoint, rt: LocalPoolHandle) -> Downloaderwhere
S: Store,
Create a new Downloader with the default ConcurrencyLimits and RetryConfig.
-sourcepub fn with_config<S>(
+
pub fn with_config<S>(
store: S,
endpoint: Endpoint,
rt: LocalPoolHandle,
@@ -9,12 +9,12 @@
retry_config: RetryConfig
) -> Downloaderwhere
S: Store,
Create a new Downloader with custom ConcurrencyLimits and RetryConfig.
-sourcepub async fn queue(&self, request: DownloadRequest) -> DownloadHandle ⓘ
Queue a download.
-sourcepub async fn cancel(&self, handle: DownloadHandle)
Cancel a download.
-sourcepub async fn nodes_have(&mut self, hash: Hash, nodes: Vec<PublicKey>)
Declare that certains nodes can be used to download a hash.
+pub async fn queue(&self, request: DownloadRequest) -> DownloadHandle ⓘ
Queue a download.
+pub async fn cancel(&self, handle: DownloadHandle)
Cancel a download.
+pub async fn nodes_have(&mut self, hash: Hash, nodes: Vec<PublicKey>)
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
source§fn clone(&self) -> Downloader
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 Downloader
§impl !RefUnwindSafe for Downloader
§impl Send for Downloader
§impl Sync for Downloader
§impl Unpin for Downloader
§impl !UnwindSafe for Downloader
Blanket Implementations§
Trait Implementations§
§impl Clone for Downloader
§fn clone(&self) -> Downloader
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 Downloader
§impl !RefUnwindSafe for Downloader
§impl Send for Downloader
§impl Sync for Downloader
§impl Unpin for Downloader
§impl !UnwindSafe for Downloader
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html b/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html
index 34ef7c1681..7d289c6a22 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html
@@ -1,15 +1,15 @@
-IntentId in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::IntentId
source · pub struct IntentId(pub u64);
Expand description
Identifier for a download intent.
-Tuple Fields§
§0: u64Trait Implementations§
source§impl Hash for IntentId
source§fn hash<__H>(&self, state: &mut __H)where
+IntentId in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::IntentId
pub struct IntentId(pub u64);
Expand description
Identifier for a download intent.
+Tuple Fields§
§0: u64Trait Implementations§
§impl Ord for IntentId
source§impl PartialOrd for IntentId
§impl PartialOrd for IntentId
§fn partial_cmp(&self, other: &IntentId) -> 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 Copy for IntentId
source§impl Eq for IntentId
source§impl StructuralPartialEq for IntentId
Auto Trait Implementations§
§impl Freeze for IntentId
§impl RefUnwindSafe for IntentId
§impl Send for IntentId
§impl Sync for IntentId
§impl Unpin for IntentId
§impl UnwindSafe for IntentId
Blanket Implementations§
§impl Copy for IntentId
§impl Eq for IntentId
§impl StructuralPartialEq for IntentId
Auto Trait Implementations§
§impl Freeze for IntentId
§impl RefUnwindSafe for IntentId
§impl Send for IntentId
§impl Sync for IntentId
§impl Unpin for IntentId
§impl UnwindSafe for IntentId
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html b/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html
index bf5caa0efb..be958f9f15 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html
@@ -1,11 +1,11 @@
-RetryConfig in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::RetryConfig
source · pub struct RetryConfig {
+RetryConfig in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::RetryConfig
pub struct RetryConfig {
pub max_retries_per_node: u32,
pub initial_retry_delay: Duration,
}
Expand description
Configuration for retry behavior of the Downloader.
Fields§
§max_retries_per_node: u32Maximum number of retry attempts for a node that failed to dial or failed with IO errors.
§initial_retry_delay: DurationThe initial delay to wait before retrying a node. On subsequent failures, the retry delay
will be multiplied with the number of failed retries.
-Trait Implementations§
source§impl Debug for RetryConfig
source§impl Default for RetryConfig
source§fn default() -> RetryConfig
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for RetryConfig
§impl RefUnwindSafe for RetryConfig
§impl Send for RetryConfig
§impl Sync for RetryConfig
§impl Unpin for RetryConfig
§impl UnwindSafe for RetryConfig
Blanket Implementations§
source§impl<T> Any for Twhere
+Trait Implementations§
§impl Debug for RetryConfig
§impl Default for RetryConfig
§fn default() -> RetryConfig
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for RetryConfig
§impl RefUnwindSafe for RetryConfig
§impl Send for RetryConfig
§impl Sync for RetryConfig
§impl Unpin for RetryConfig
§impl UnwindSafe for RetryConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html b/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html
index b171e5d50b..bab3e0811b 100644
--- a/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html
+++ b/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html
@@ -1,4 +1,4 @@
-Dialer in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Dialer
source · pub trait Dialer: Stream<Item = (PublicKey, Result<Self::Connection, Error>)> + Unpin {
+Dialer in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Dialer
pub trait Dialer: Stream<Item = (PublicKey, Result<Self::Connection, Error>)> + Unpin {
type Connection: Clone + 'static;
// Required methods
@@ -7,9 +7,9 @@
fn is_pending(&self, node: PublicKey) -> bool;
fn node_id(&self) -> PublicKey;
}
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: PublicKey)
Dial a node.
-sourcefn pending_count(&self) -> usize
Get the number of dialing nodes.
-sourcefn is_pending(&self, node: PublicKey) -> bool
Check if a node is being dialed.
-Implementors§
source§impl Dialer for Dialer
§type Connection = Connection
\ No newline at end of file
+
Required Associated Types§
type Connection: Clone + 'static
Type of connections returned by the Dialer.
+Required Methods§
fn queue_dial(&mut self, node_id: PublicKey)
Dial a node.
+fn pending_count(&self) -> usize
Get the number of dialing nodes.
+fn is_pending(&self, node: PublicKey) -> bool
Check if a node is being dialed.
+Implementors§
§impl Dialer for Dialer
§type Connection = Connection
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html b/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html
index 7db7547404..1433d1ad51 100644
--- a/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html
+++ b/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html
@@ -1,4 +1,4 @@
-Getter in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Getter
source · pub trait Getter {
+Getter in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Getter
pub trait Getter {
type Connection: 'static;
type NeedsConn: NeedsConn<Self::Connection>;
@@ -9,9 +9,9 @@
progress_sender: BroadcastProgressSender
) -> Pin<Box<dyn Future<Output = Result<GetOutput<Self::NeedsConn>, FailureAction>>>>;
}
Expand description
Trait modelling performing a single request over a connection. This allows for IO-less testing.
-Required Associated Types§
sourcetype Connection: 'static
Type of connections the Getter requires to perform a download.
-sourcetype NeedsConn: NeedsConn<Self::Connection>
Type of the intermediary state returned from Self::get if a connection is needed.
-Required Methods§
Required Associated Types§
type Connection: 'static
Type of connections the Getter requires to perform a download.
+type NeedsConn: NeedsConn<Self::Connection>
Type of the intermediary state returned from Self::get if a connection is needed.
+Required Methods§
fn get(
&mut self,
kind: DownloadKind,
progress_sender: BroadcastProgressSender
diff --git a/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html b/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html
index 43b89e6c03..da67052292 100644
--- a/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html
+++ b/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html
@@ -1,12 +1,12 @@
-NeedsConn in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::NeedsConn
source · pub trait NeedsConn<C>: Debug + 'static {
+NeedsConn in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::NeedsConn
pub trait NeedsConn<C>: Debug + 'static {
// Required method
fn proceed(
self,
conn: C
) -> Pin<Box<dyn Future<Output = Result<Stats, FailureAction>>>>;
}
Expand description
Trait modelling the intermediary state when a connection is needed to proceed.
-Required Methods§
Required Methods§
Implementors§
source§impl NeedsConn<Connection> for GetStateNeedsConn
\ No newline at end of file
+
Implementors§
§impl NeedsConn<Connection> for GetStateNeedsConn
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html b/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html
index b2e56959a9..993565e37d 100644
--- a/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html
+++ b/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html
@@ -1,4 +1,4 @@
-ExportProgress in iroh::blobs::export - Rust Enum iroh::blobs::export::ExportProgress
source · pub enum ExportProgress {
+ExportProgress in iroh::blobs::export - Rust Enum iroh::blobs::export::ExportProgress
pub enum ExportProgress {
Found {
id: u64,
hash: Hash,
@@ -31,10 +31,10 @@ to the specified out path.
§AllDone
We are done with the whole operation.
§Abort(RpcError)
We got an error and need to abort.
-
Trait Implementations§
source§impl Clone for ExportProgress
source§fn clone(&self) -> ExportProgress
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 ExportProgress
source§impl<'de> Deserialize<'de> for ExportProgress
source§fn deserialize<__D>(
+
Trait Implementations§
§impl Clone for ExportProgress
§fn clone(&self) -> ExportProgress
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 ExportProgress
§impl<'de> Deserialize<'de> for ExportProgress
§fn deserialize<__D>(
__deserializer: __D
) -> Result<ExportProgress, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for ExportProgress
source§fn serialize<__S>(
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Serialize for ExportProgress
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
diff --git a/pr/2610/docs/iroh/blobs/export/fn.export.html b/pr/2610/docs/iroh/blobs/export/fn.export.html
index 47dcf9dc56..fd30428da6 100644
--- a/pr/2610/docs/iroh/blobs/export/fn.export.html
+++ b/pr/2610/docs/iroh/blobs/export/fn.export.html
@@ -1,4 +1,4 @@
-export in iroh::blobs::export - Rust pub async fn export<D>(
+export in iroh::blobs::export - Rust pub async fn export<D>(
db: &D,
hash: Hash,
outpath: PathBuf,
diff --git a/pr/2610/docs/iroh/blobs/export/fn.export_blob.html b/pr/2610/docs/iroh/blobs/export/fn.export_blob.html
index 5f3b87c1e3..1e8d43f8dd 100644
--- a/pr/2610/docs/iroh/blobs/export/fn.export_blob.html
+++ b/pr/2610/docs/iroh/blobs/export/fn.export_blob.html
@@ -1,4 +1,4 @@
-export_blob in iroh::blobs::export - Rust Function iroh::blobs::export::export_blob
source · pub async fn export_blob<D>(
+export_blob in iroh::blobs::export - Rust Function iroh::blobs::export::export_blob
pub async fn export_blob<D>(
db: &D,
hash: Hash,
outpath: PathBuf,
diff --git a/pr/2610/docs/iroh/blobs/export/fn.export_collection.html b/pr/2610/docs/iroh/blobs/export/fn.export_collection.html
index 3006f090c9..46c48078ce 100644
--- a/pr/2610/docs/iroh/blobs/export/fn.export_collection.html
+++ b/pr/2610/docs/iroh/blobs/export/fn.export_collection.html
@@ -1,4 +1,4 @@
-export_collection in iroh::blobs::export - Rust Function iroh::blobs::export::export_collection
source · pub async fn export_collection<D>(
+export_collection in iroh::blobs::export - Rust Function iroh::blobs::export::export_collection
pub async fn export_collection<D>(
db: &D,
hash: Hash,
outpath: PathBuf,
diff --git a/pr/2610/docs/iroh/blobs/export/index.html b/pr/2610/docs/iroh/blobs/export/index.html
index b5100b73a9..5d603bba61 100644
--- a/pr/2610/docs/iroh/blobs/export/index.html
+++ b/pr/2610/docs/iroh/blobs/export/index.html
@@ -1,2 +1,2 @@
-iroh::blobs::export - Rust Expand description
Functions to export data from a store
+iroh::blobs::export - Rust
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/format/collection/index.html b/pr/2610/docs/iroh/blobs/format/collection/index.html
index 09692a2b2a..934db16299 100644
--- a/pr/2610/docs/iroh/blobs/format/collection/index.html
+++ b/pr/2610/docs/iroh/blobs/format/collection/index.html
@@ -1,2 +1,2 @@
-iroh::blobs::format::collection - Rust Module iroh::blobs::format::collection
source · Expand description
The collection type used by iroh
+iroh::blobs::format::collection - Rust
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html b/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html
index 0495f38015..b946c17b2f 100644
--- a/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html
+++ b/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html
@@ -1,51 +1,51 @@
-Collection in iroh::blobs::format::collection - Rust Struct iroh::blobs::format::collection::Collection
source · pub struct Collection { /* private fields */ }
Expand description
A collection of blobs
+Collection in iroh::blobs::format::collection - Rust Struct iroh::blobs::format::collection::Collection
pub struct Collection { /* private fields */ }
Expand description
A collection of blobs
Note that the format is subject to change.
-Implementations§
source§impl Collection
Implementations§
§impl Collection
pub const HEADER: &'static [u8; 13] = b"CollectionV0."
The header for the collection format.
This is the start of the metadata blob.
-sourcepub fn to_blobs(&self) -> impl DoubleEndedIterator
Convert the collection to an iterator of blobs, with the last being the
+
pub fn to_blobs(&self) -> impl DoubleEndedIterator
Convert the collection to an iterator of blobs, with the last being the
root blob.
To persist the collection, write all the blobs to storage, and use the
hash of the last blob as the collection hash.
-pub async fn read_fsm(
fsm_at_start_root: AtStartRoot
) -> Result<(EndBlobNext, HashSeq, Collection), Error>
Read the collection from a get fsm.
Returns the fsm at the start of the first child blob (if any),
the links array, and the collection.
-sourcepub async fn read_fsm_all(
+
pub async fn read_fsm_all(
fsm_at_start_root: AtStartRoot
) -> Result<(Collection, BTreeMap<u64, Bytes>, Stats), Error>
Read the collection and all it’s children from a get fsm.
Returns the collection, a map from blob offsets to bytes, and the stats.
-pub async fn load(
root: Hash,
store: &impl SimpleStore
) -> Result<Collection, Error>
Create a new collection from a hash sequence and metadata.
-pub async fn load_db<D>(db: &D, root: &Hash) -> Result<Collection, Error>where
D: Map,
Load a collection from a store given a root hash
This assumes that both the links and the metadata of the collection is stored in the store.
It does not require that all child blobs are stored in the store.
-pub async fn store<D>(self, db: &D) -> Result<TempTag, Error>where
D: Store,
Store a collection in a store. returns the root hash of the collection
as a TempTag.
-Trait Implementations§
source§impl Clone for Collection
source§fn clone(&self) -> Collection
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 Collection
source§impl Default for Collection
source§fn default() -> Collection
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for Collection
source§fn deserialize<__D>(
+
Trait Implementations§
§impl Clone for Collection
§fn clone(&self) -> Collection
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 Collection
§impl Default for Collection
§fn default() -> Collection
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for Collection
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Collection, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl<K, V> Extend<(K, V)> for Collectionwhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<K, V> Extend<(K, V)> for Collection
source§fn extend<T>(&mut self, iter: T)where
- T: IntoIterator<Item = (K, V)>,
Extends a collection with the contents of an iterator. Read moresource§fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (extend_one)Extends a collection with exactly one element.source§fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (extend_one)Reserves capacity in a collection for the given number of additional elements. Read moresource§impl<K, V> FromIterator<(K, V)> for Collection
§fn extend<T>(&mut self, iter: T)where
+ T: IntoIterator<Item = (K, V)>,
Extends a collection with the contents of an iterator. Read moresource§fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (extend_one)Extends a collection with exactly one element.source§fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (extend_one)Reserves capacity in a collection for the given number of additional elements. Read more§impl<K, V> FromIterator<(K, V)> for Collection
source§fn from_iter<T>(iter: T) -> Collectionwhere
- T: IntoIterator<Item = (K, V)>,
Creates a value from an iterator. Read moresource§impl Index<usize> for Collection
source§impl IntoIterator for Collection
§type IntoIter = IntoIter<<Collection as IntoIterator>::Item>
Which kind of iterator are we turning this into?source§fn into_iter(self) -> <Collection as IntoIterator>::IntoIter
Creates an iterator from a value. Read moresource§impl PartialEq for Collection
source§fn eq(&self, other: &Collection) -> bool
§fn from_iter<T>(iter: T) -> Collectionwhere
+ T: IntoIterator<Item = (K, V)>,
Creates a value from an iterator. Read more§impl Index<usize> for Collection
§impl IntoIterator for Collection
§type IntoIter = IntoIter<<Collection as IntoIterator>::Item>
Which kind of iterator are we turning this into?§fn into_iter(self) -> <Collection as IntoIterator>::IntoIter
Creates an iterator from a value. Read more§impl PartialEq for Collection
§fn eq(&self, other: &Collection) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for Collection
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl StructuralPartialEq for Collection
Auto Trait Implementations§
§impl Freeze for Collection
§impl RefUnwindSafe for Collection
§impl Send for Collection
§impl Sync for Collection
§impl Unpin for Collection
§impl UnwindSafe for Collection
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for Collection
Auto Trait Implementations§
§impl Freeze for Collection
§impl RefUnwindSafe for Collection
§impl Send for Collection
§impl Sync for Collection
§impl Unpin for Collection
§impl UnwindSafe for Collection
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html b/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html
index 8060225b4a..e645c48a2f 100644
--- a/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html
+++ b/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html
@@ -1,9 +1,9 @@
-SimpleStore in iroh::blobs::format::collection - Rust Trait iroh::blobs::format::collection::SimpleStore
source · pub trait SimpleStore {
+SimpleStore in iroh::blobs::format::collection - Rust Trait iroh::blobs::format::collection::SimpleStore
pub trait SimpleStore {
// Required method
fn load(
&self,
hash: Hash
) -> impl Future<Output = Result<Bytes, Error>> + Send;
}
Expand description
A simple store trait for loading blobs
-Required Methods§
sourcefn load(&self, hash: Hash) -> impl Future<Output = Result<Bytes, Error>> + Send
Load a blob from the store
+Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl SimpleStore for Client
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/format/index.html b/pr/2610/docs/iroh/blobs/format/index.html
index 556b45cc6d..4d957f0c6f 100644
--- a/pr/2610/docs/iroh/blobs/format/index.html
+++ b/pr/2610/docs/iroh/blobs/format/index.html
@@ -1,4 +1,4 @@
-iroh::blobs::format - Rust Expand description
Defines data formats for HashSeq.
+iroh::blobs::format - Rust Expand description
Defines data formats for HashSeq.
The exact details how to use a HashSeq for specific purposes is up to the
user. However, the following approach is used by iroh formats:
The first child blob is a metadata blob. It starts with a header, followed
diff --git a/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html b/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html
index 6206af3f7a..4db2508178 100644
--- a/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html
+++ b/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html
@@ -1,27 +1,27 @@
-
BlobId in iroh::blobs::get::db - Rust pub enum BlobId {
+BlobId in iroh::blobs::get::db - Rust pub enum BlobId {
Root,
Child(NonZero<u64>),
}
Expand description
The id of a blob in a transfer
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for BlobId
source§fn deserialize<__D>(
+
Trait Implementations§
§impl<'de> Deserialize<'de> for BlobId
§fn deserialize<__D>(
__deserializer: __D
) -> Result<BlobId, <__D as Deserializer<'de>>::Error>where
- __D:
Enum iroh::blobs::downloader::FailureAction
source · pub enum FailureAction {
+FailureAction in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::FailureAction
pub enum FailureAction {
AllIntentsDropped,
AbortRequest(Error),
DropPeer(Error),
@@ -8,7 +8,7 @@
§AbortRequest(Error)
An error occurred that prevents the request from being retried at all.
§DropPeer(Error)
An error occurred that suggests the node should not be used in general.
§RetryLater(Error)
An error occurred in which neither the node nor the request are at fault.
-Trait Implementations§
source§impl Debug for FailureAction
impl Debug for FailureAction
source§impl From<GetError> for FailureAction
impl From<GetError> for FailureAction
source§fn from(e: GetError) -> FailureAction
fn from(e: GetError) -> FailureAction
Auto Trait Implementations§
impl Freeze for FailureAction
impl RefUnwindSafe for FailureAction
impl Send for FailureAction
impl Sync for FailureAction
impl Unpin for FailureAction
impl UnwindSafe for FailureAction
Blanket Implementations§
Trait Implementations§
§impl Debug for FailureAction
impl Debug for FailureAction
§impl From<GetError> for FailureAction
impl From<GetError> for FailureAction
§fn from(e: GetError) -> FailureAction
fn from(e: GetError) -> FailureAction
Auto Trait Implementations§
impl Freeze for FailureAction
impl RefUnwindSafe for FailureAction
impl Send for FailureAction
impl Sync for FailureAction
impl Unpin for FailureAction
impl UnwindSafe for FailureAction
Blanket Implementations§
§impl<'a, 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/2610/docs/iroh/blobs/downloader/enum.GetOutput.html b/pr/2610/docs/iroh/blobs/downloader/enum.GetOutput.html
index f07ab0307f..73bbfaf7f6 100644
--- a/pr/2610/docs/iroh/blobs/downloader/enum.GetOutput.html
+++ b/pr/2610/docs/iroh/blobs/downloader/enum.GetOutput.html
@@ -1,11 +1,11 @@
-GetOutput in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::GetOutput
source · pub enum GetOutput<N> {
+GetOutput in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::GetOutput
pub enum GetOutput<N> {
Complete(Stats),
NeedsConn(N),
}
Expand description
Output returned from Getter::get.
Variants§
§Complete(Stats)
The request is already complete in the local store.
§NeedsConn(N)
The request needs a connection to continue.
-Trait Implementations§
Auto Trait Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl<N> Freeze for GetOutput<N>where
N: Freeze,
§impl<N> RefUnwindSafe for GetOutput<N>where
N: RefUnwindSafe,
§impl<N> Send for GetOutput<N>where
N: Send,
§impl<N> Sync for GetOutput<N>where
diff --git a/pr/2610/docs/iroh/blobs/downloader/index.html b/pr/2610/docs/iroh/blobs/downloader/index.html
index 347ce882f3..1c91431206 100644
--- a/pr/2610/docs/iroh/blobs/downloader/index.html
+++ b/pr/2610/docs/iroh/blobs/downloader/index.html
@@ -1,4 +1,4 @@
-iroh::blobs::downloader - Rust Module iroh::blobs::downloader
source · Expand description
Handle downloading blobs and collections concurrently and from nodes.
+iroh::blobs::downloader - Rust Module iroh::blobs::downloader
Expand description
Handle downloading blobs and collections concurrently and from nodes.
The Downloader interacts with four main components to this end.
Dialer: Used to queue opening connections to nodes we need to perform downloads.
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html b/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
index 807453c381..a64840dc0c 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
@@ -1,4 +1,4 @@
-ConcurrencyLimits in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::ConcurrencyLimits
source · pub struct ConcurrencyLimits {
+ConcurrencyLimits in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::ConcurrencyLimits
pub struct ConcurrencyLimits {
pub max_concurrent_requests: usize,
pub max_concurrent_requests_per_node: usize,
pub max_open_connections: usize,
@@ -8,7 +8,7 @@
§max_concurrent_requests_per_node: usizeMaximum number of requests performed by a single node concurrently.
§max_open_connections: usizeMaximum number of open connections the service maintains.
§max_concurrent_dials_per_hash: usizeMaximum number of nodes to dial concurrently for a single request.
-Trait Implementations§
source§impl Debug for ConcurrencyLimits
source§impl Default for ConcurrencyLimits
source§fn default() -> ConcurrencyLimits
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for ConcurrencyLimits
§impl RefUnwindSafe for ConcurrencyLimits
§impl Send for ConcurrencyLimits
§impl Sync for ConcurrencyLimits
§impl Unpin for ConcurrencyLimits
§impl UnwindSafe for ConcurrencyLimits
Blanket Implementations§
source§impl<T> Any for Twhere
+Trait Implementations§
§impl Debug for ConcurrencyLimits
§impl Default for ConcurrencyLimits
§fn default() -> ConcurrencyLimits
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for ConcurrencyLimits
§impl RefUnwindSafe for ConcurrencyLimits
§impl Send for ConcurrencyLimits
§impl Sync for ConcurrencyLimits
§impl Unpin for ConcurrencyLimits
§impl UnwindSafe for ConcurrencyLimits
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html
index dc6d87f7c3..e1c5d54e32 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html
@@ -1,5 +1,5 @@
-DownloadHandle in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadHandle
source · pub struct DownloadHandle { /* private fields */ }
Expand description
Handle to interact with a download request.
-Trait Implementations§
source§impl Debug for DownloadHandle
source§impl Future for DownloadHandle
§type Output = Result<Stats, DownloadError>
The type of value produced on completion.source§fn poll(
+DownloadHandle in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadHandle
pub struct DownloadHandle { /* private fields */ }
Expand description
Handle to interact with a download request.
+Trait Implementations§
§impl Debug for DownloadHandle
§impl Future for DownloadHandle
§type Output = Result<Stats, DownloadError>
The type of value produced on completion.§fn poll(
self: Pin<&mut DownloadHandle>,
cx: &mut Context<'_>
) -> Poll<<DownloadHandle as Future>::Output>
Attempt to resolve the future to a final value, registering
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html
index 4a70ac75c4..4719a1c98c 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html
@@ -1,13 +1,13 @@
-DownloadKind in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadKind
source · pub struct DownloadKind(/* private fields */);
Expand description
The kind of resource to download.
-Implementations§
source§impl DownloadKind
sourcepub const fn format(&self) -> BlobFormat
Get the format of this download
-sourcepub const fn hash_and_format(&self) -> HashAndFormat
Get the HashAndFormat pair of this download
-Trait Implementations§
source§impl Clone for DownloadKind
source§fn clone(&self) -> DownloadKind
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 DownloadKind
source§impl Display for DownloadKind
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> HashAndFormat
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> DownloadKind
Converts to this type from the input type.source§impl Hash for DownloadKind
source§fn hash<__H>(&self, state: &mut __H)where
+DownloadKind in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadKind
pub struct DownloadKind(/* private fields */);
Expand description
The kind of resource to download.
+Implementations§
§impl DownloadKind
pub const fn format(&self) -> BlobFormat
Get the format of this download
+pub const fn hash_and_format(&self) -> HashAndFormat
Get the HashAndFormat pair of this download
+Trait Implementations§
§impl Clone for DownloadKind
§fn clone(&self) -> DownloadKind
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 DownloadKind
§impl Display for DownloadKind
§impl From<DownloadKind> for HashAndFormat
§fn from(value: DownloadKind) -> HashAndFormat
Converts to this type from the input type.§impl From<HashAndFormat> for DownloadKind
§fn from(value: HashAndFormat) -> DownloadKind
Converts to this type from the input type.§impl Hash for DownloadKind
source§impl PartialEq for DownloadKind
§impl PartialEq for DownloadKind
§fn eq(&self, other: &DownloadKind) -> bool
This method tests for self and other values to be equal, and is used
by ==.source§impl Copy for DownloadKind
source§impl Eq for DownloadKind
source§impl StructuralPartialEq for DownloadKind
Auto Trait Implementations§
§impl Freeze for DownloadKind
§impl RefUnwindSafe for DownloadKind
§impl Send for DownloadKind
§impl Sync for DownloadKind
§impl Unpin for DownloadKind
§impl UnwindSafe for DownloadKind
Blanket Implementations§
§impl Copy for DownloadKind
§impl Eq for DownloadKind
§impl StructuralPartialEq for DownloadKind
Auto Trait Implementations§
§impl Freeze for DownloadKind
§impl RefUnwindSafe for DownloadKind
§impl Send for DownloadKind
§impl Sync for DownloadKind
§impl Unpin for DownloadKind
§impl UnwindSafe for DownloadKind
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html
index 44b625c937..e4ee48bd36 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html
@@ -1,5 +1,5 @@
-DownloadRequest in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadRequest
source · pub struct DownloadRequest { /* private fields */ }
Expand description
A download request.
-Implementations§
source§impl DownloadRequest
sourcepub fn new(
+DownloadRequest in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadRequest
pub struct DownloadRequest { /* private fields */ }
Expand description
A download request.
+Implementations§
§impl DownloadRequest
pub fn new(
resource: impl Into<DownloadKind>,
nodes: impl IntoIterator<Item = impl Into<NodeAddr>>
) -> DownloadRequest
Create a new download request.
@@ -8,11 +8,11 @@ temp tag or with a persistent tag to make sure the data is not garbage collected
the download.
If this is not done, there download will proceed as normal, but there is no guarantee
that the data is still available when the download is complete.
-sourcepub fn progress_sender(
+
pub fn progress_sender(
self,
sender: AsyncChannelProgressSender<DownloadProgress>
) -> DownloadRequest
Pass a progress sender to receive progress updates.
-Trait Implementations§
source§impl Clone for DownloadRequest
source§fn clone(&self) -> DownloadRequest
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 DownloadRequest
§impl RefUnwindSafe for DownloadRequest
§impl Send for DownloadRequest
§impl Sync for DownloadRequest
§impl Unpin for DownloadRequest
§impl UnwindSafe for DownloadRequest
Blanket Implementations§
Trait Implementations§
§impl Clone for DownloadRequest
§fn clone(&self) -> DownloadRequest
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 DownloadRequest
§impl RefUnwindSafe for DownloadRequest
§impl Send for DownloadRequest
§impl Sync for DownloadRequest
§impl Unpin for DownloadRequest
§impl UnwindSafe for DownloadRequest
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html b/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html
index 5b87c99a11..cf3c82e05b 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html
@@ -1,7 +1,7 @@
-Downloader in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::Downloader
source · pub struct Downloader { /* private fields */ }
Expand description
Handle for the download services.
-Implementations§
source§impl Downloader
sourcepub fn new<S>(store: S, endpoint: Endpoint, rt: LocalPoolHandle) -> Downloaderwhere
+Downloader in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::Downloader
pub struct Downloader { /* private fields */ }
Expand description
Handle for the download services.
+Implementations§
§impl Downloader
pub fn new<S>(store: S, endpoint: Endpoint, rt: LocalPoolHandle) -> Downloaderwhere
S: Store,
Create a new Downloader with the default ConcurrencyLimits and RetryConfig.
-sourcepub fn with_config<S>(
+
pub fn with_config<S>(
store: S,
endpoint: Endpoint,
rt: LocalPoolHandle,
@@ -9,12 +9,12 @@
retry_config: RetryConfig
) -> Downloaderwhere
S: Store,
Create a new Downloader with custom ConcurrencyLimits and RetryConfig.
-sourcepub async fn queue(&self, request: DownloadRequest) -> DownloadHandle ⓘ
Queue a download.
-sourcepub async fn cancel(&self, handle: DownloadHandle)
Cancel a download.
-sourcepub async fn nodes_have(&mut self, hash: Hash, nodes: Vec<PublicKey>)
Declare that certains nodes can be used to download a hash.
+pub async fn queue(&self, request: DownloadRequest) -> DownloadHandle ⓘ
Queue a download.
+pub async fn cancel(&self, handle: DownloadHandle)
Cancel a download.
+pub async fn nodes_have(&mut self, hash: Hash, nodes: Vec<PublicKey>)
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
source§fn clone(&self) -> Downloader
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 Downloader
§impl !RefUnwindSafe for Downloader
§impl Send for Downloader
§impl Sync for Downloader
§impl Unpin for Downloader
§impl !UnwindSafe for Downloader
Blanket Implementations§
Trait Implementations§
§impl Clone for Downloader
§fn clone(&self) -> Downloader
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 Downloader
§impl !RefUnwindSafe for Downloader
§impl Send for Downloader
§impl Sync for Downloader
§impl Unpin for Downloader
§impl !UnwindSafe for Downloader
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html b/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html
index 34ef7c1681..7d289c6a22 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html
@@ -1,15 +1,15 @@
-IntentId in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::IntentId
source · pub struct IntentId(pub u64);
Expand description
Identifier for a download intent.
-Tuple Fields§
§0: u64Trait Implementations§
source§impl Hash for IntentId
source§fn hash<__H>(&self, state: &mut __H)where
+IntentId in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::IntentId
pub struct IntentId(pub u64);
Expand description
Identifier for a download intent.
+Tuple Fields§
§0: u64Trait Implementations§
§impl Ord for IntentId
source§impl PartialOrd for IntentId
§impl PartialOrd for IntentId
§fn partial_cmp(&self, other: &IntentId) -> 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 Copy for IntentId
source§impl Eq for IntentId
source§impl StructuralPartialEq for IntentId
Auto Trait Implementations§
§impl Freeze for IntentId
§impl RefUnwindSafe for IntentId
§impl Send for IntentId
§impl Sync for IntentId
§impl Unpin for IntentId
§impl UnwindSafe for IntentId
Blanket Implementations§
§impl Copy for IntentId
§impl Eq for IntentId
§impl StructuralPartialEq for IntentId
Auto Trait Implementations§
§impl Freeze for IntentId
§impl RefUnwindSafe for IntentId
§impl Send for IntentId
§impl Sync for IntentId
§impl Unpin for IntentId
§impl UnwindSafe for IntentId
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html b/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html
index bf5caa0efb..be958f9f15 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html
@@ -1,11 +1,11 @@
-RetryConfig in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::RetryConfig
source · pub struct RetryConfig {
+RetryConfig in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::RetryConfig
pub struct RetryConfig {
pub max_retries_per_node: u32,
pub initial_retry_delay: Duration,
}
Expand description
Configuration for retry behavior of the Downloader.
Fields§
§max_retries_per_node: u32Maximum number of retry attempts for a node that failed to dial or failed with IO errors.
§initial_retry_delay: DurationThe initial delay to wait before retrying a node. On subsequent failures, the retry delay
will be multiplied with the number of failed retries.
-Trait Implementations§
source§impl Debug for RetryConfig
source§impl Default for RetryConfig
source§fn default() -> RetryConfig
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for RetryConfig
§impl RefUnwindSafe for RetryConfig
§impl Send for RetryConfig
§impl Sync for RetryConfig
§impl Unpin for RetryConfig
§impl UnwindSafe for RetryConfig
Blanket Implementations§
source§impl<T> Any for Twhere
+Trait Implementations§
§impl Debug for RetryConfig
§impl Default for RetryConfig
§fn default() -> RetryConfig
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for RetryConfig
§impl RefUnwindSafe for RetryConfig
§impl Send for RetryConfig
§impl Sync for RetryConfig
§impl Unpin for RetryConfig
§impl UnwindSafe for RetryConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html b/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html
index b171e5d50b..bab3e0811b 100644
--- a/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html
+++ b/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html
@@ -1,4 +1,4 @@
-Dialer in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Dialer
source · pub trait Dialer: Stream<Item = (PublicKey, Result<Self::Connection, Error>)> + Unpin {
+Dialer in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Dialer
pub trait Dialer: Stream<Item = (PublicKey, Result<Self::Connection, Error>)> + Unpin {
type Connection: Clone + 'static;
// Required methods
@@ -7,9 +7,9 @@
fn is_pending(&self, node: PublicKey) -> bool;
fn node_id(&self) -> PublicKey;
}
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: PublicKey)
Dial a node.
-sourcefn pending_count(&self) -> usize
Get the number of dialing nodes.
-sourcefn is_pending(&self, node: PublicKey) -> bool
Check if a node is being dialed.
-Implementors§
source§impl Dialer for Dialer
§type Connection = Connection
\ No newline at end of file
+
Required Associated Types§
type Connection: Clone + 'static
Type of connections returned by the Dialer.
+Required Methods§
fn queue_dial(&mut self, node_id: PublicKey)
Dial a node.
+fn pending_count(&self) -> usize
Get the number of dialing nodes.
+fn is_pending(&self, node: PublicKey) -> bool
Check if a node is being dialed.
+Implementors§
§impl Dialer for Dialer
§type Connection = Connection
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html b/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html
index 7db7547404..1433d1ad51 100644
--- a/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html
+++ b/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html
@@ -1,4 +1,4 @@
-Getter in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Getter
source · pub trait Getter {
+Getter in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Getter
pub trait Getter {
type Connection: 'static;
type NeedsConn: NeedsConn<Self::Connection>;
@@ -9,9 +9,9 @@
progress_sender: BroadcastProgressSender
) -> Pin<Box<dyn Future<Output = Result<GetOutput<Self::NeedsConn>, FailureAction>>>>;
}
Expand description
Trait modelling performing a single request over a connection. This allows for IO-less testing.
-Required Associated Types§
sourcetype Connection: 'static
Type of connections the Getter requires to perform a download.
-sourcetype NeedsConn: NeedsConn<Self::Connection>
Type of the intermediary state returned from Self::get if a connection is needed.
-Required Methods§
Required Associated Types§
type Connection: 'static
Type of connections the Getter requires to perform a download.
+type NeedsConn: NeedsConn<Self::Connection>
Type of the intermediary state returned from Self::get if a connection is needed.
+Required Methods§
fn get(
&mut self,
kind: DownloadKind,
progress_sender: BroadcastProgressSender
diff --git a/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html b/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html
index 43b89e6c03..da67052292 100644
--- a/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html
+++ b/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html
@@ -1,12 +1,12 @@
-NeedsConn in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::NeedsConn
source · pub trait NeedsConn<C>: Debug + 'static {
+NeedsConn in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::NeedsConn
pub trait NeedsConn<C>: Debug + 'static {
// Required method
fn proceed(
self,
conn: C
) -> Pin<Box<dyn Future<Output = Result<Stats, FailureAction>>>>;
}
Expand description
Trait modelling the intermediary state when a connection is needed to proceed.
-Required Methods§
Required Methods§
Implementors§
source§impl NeedsConn<Connection> for GetStateNeedsConn
\ No newline at end of file
+
Implementors§
§impl NeedsConn<Connection> for GetStateNeedsConn
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html b/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html
index b2e56959a9..993565e37d 100644
--- a/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html
+++ b/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html
@@ -1,4 +1,4 @@
-ExportProgress in iroh::blobs::export - Rust Enum iroh::blobs::export::ExportProgress
source · pub enum ExportProgress {
+ExportProgress in iroh::blobs::export - Rust Enum iroh::blobs::export::ExportProgress
pub enum ExportProgress {
Found {
id: u64,
hash: Hash,
@@ -31,10 +31,10 @@ to the specified out path.
§AllDone
We are done with the whole operation.
§Abort(RpcError)
We got an error and need to abort.
-
Trait Implementations§
source§impl Clone for ExportProgress
source§fn clone(&self) -> ExportProgress
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 ExportProgress
source§impl<'de> Deserialize<'de> for ExportProgress
source§fn deserialize<__D>(
+
Trait Implementations§
§impl Clone for ExportProgress
§fn clone(&self) -> ExportProgress
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 ExportProgress
§impl<'de> Deserialize<'de> for ExportProgress
§fn deserialize<__D>(
__deserializer: __D
) -> Result<ExportProgress, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for ExportProgress
source§fn serialize<__S>(
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Serialize for ExportProgress
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
diff --git a/pr/2610/docs/iroh/blobs/export/fn.export.html b/pr/2610/docs/iroh/blobs/export/fn.export.html
index 47dcf9dc56..fd30428da6 100644
--- a/pr/2610/docs/iroh/blobs/export/fn.export.html
+++ b/pr/2610/docs/iroh/blobs/export/fn.export.html
@@ -1,4 +1,4 @@
-export in iroh::blobs::export - Rust pub async fn export<D>(
+export in iroh::blobs::export - Rust pub async fn export<D>(
db: &D,
hash: Hash,
outpath: PathBuf,
diff --git a/pr/2610/docs/iroh/blobs/export/fn.export_blob.html b/pr/2610/docs/iroh/blobs/export/fn.export_blob.html
index 5f3b87c1e3..1e8d43f8dd 100644
--- a/pr/2610/docs/iroh/blobs/export/fn.export_blob.html
+++ b/pr/2610/docs/iroh/blobs/export/fn.export_blob.html
@@ -1,4 +1,4 @@
-export_blob in iroh::blobs::export - Rust Function iroh::blobs::export::export_blob
source · pub async fn export_blob<D>(
+export_blob in iroh::blobs::export - Rust Function iroh::blobs::export::export_blob
pub async fn export_blob<D>(
db: &D,
hash: Hash,
outpath: PathBuf,
diff --git a/pr/2610/docs/iroh/blobs/export/fn.export_collection.html b/pr/2610/docs/iroh/blobs/export/fn.export_collection.html
index 3006f090c9..46c48078ce 100644
--- a/pr/2610/docs/iroh/blobs/export/fn.export_collection.html
+++ b/pr/2610/docs/iroh/blobs/export/fn.export_collection.html
@@ -1,4 +1,4 @@
-export_collection in iroh::blobs::export - Rust Function iroh::blobs::export::export_collection
source · pub async fn export_collection<D>(
+export_collection in iroh::blobs::export - Rust Function iroh::blobs::export::export_collection
pub async fn export_collection<D>(
db: &D,
hash: Hash,
outpath: PathBuf,
diff --git a/pr/2610/docs/iroh/blobs/export/index.html b/pr/2610/docs/iroh/blobs/export/index.html
index b5100b73a9..5d603bba61 100644
--- a/pr/2610/docs/iroh/blobs/export/index.html
+++ b/pr/2610/docs/iroh/blobs/export/index.html
@@ -1,2 +1,2 @@
-iroh::blobs::export - Rust Expand description
Functions to export data from a store
+iroh::blobs::export - Rust
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/format/collection/index.html b/pr/2610/docs/iroh/blobs/format/collection/index.html
index 09692a2b2a..934db16299 100644
--- a/pr/2610/docs/iroh/blobs/format/collection/index.html
+++ b/pr/2610/docs/iroh/blobs/format/collection/index.html
@@ -1,2 +1,2 @@
-iroh::blobs::format::collection - Rust Module iroh::blobs::format::collection
source · Expand description
The collection type used by iroh
+iroh::blobs::format::collection - Rust
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html b/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html
index 0495f38015..b946c17b2f 100644
--- a/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html
+++ b/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html
@@ -1,51 +1,51 @@
-Collection in iroh::blobs::format::collection - Rust Struct iroh::blobs::format::collection::Collection
source · pub struct Collection { /* private fields */ }
Expand description
A collection of blobs
+Collection in iroh::blobs::format::collection - Rust Struct iroh::blobs::format::collection::Collection
pub struct Collection { /* private fields */ }
Expand description
A collection of blobs
Note that the format is subject to change.
-Implementations§
source§impl Collection
Implementations§
§impl Collection
pub const HEADER: &'static [u8; 13] = b"CollectionV0."
The header for the collection format.
This is the start of the metadata blob.
-sourcepub fn to_blobs(&self) -> impl DoubleEndedIterator
Convert the collection to an iterator of blobs, with the last being the
+
pub fn to_blobs(&self) -> impl DoubleEndedIterator
Convert the collection to an iterator of blobs, with the last being the
root blob.
To persist the collection, write all the blobs to storage, and use the
hash of the last blob as the collection hash.
-pub async fn read_fsm(
fsm_at_start_root: AtStartRoot
) -> Result<(EndBlobNext, HashSeq, Collection), Error>
Read the collection from a get fsm.
Returns the fsm at the start of the first child blob (if any),
the links array, and the collection.
-sourcepub async fn read_fsm_all(
+
pub async fn read_fsm_all(
fsm_at_start_root: AtStartRoot
) -> Result<(Collection, BTreeMap<u64, Bytes>, Stats), Error>
Read the collection and all it’s children from a get fsm.
Returns the collection, a map from blob offsets to bytes, and the stats.
-pub async fn load(
root: Hash,
store: &impl SimpleStore
) -> Result<Collection, Error>
Create a new collection from a hash sequence and metadata.
-pub async fn load_db<D>(db: &D, root: &Hash) -> Result<Collection, Error>where
D: Map,
Load a collection from a store given a root hash
This assumes that both the links and the metadata of the collection is stored in the store.
It does not require that all child blobs are stored in the store.
-pub async fn store<D>(self, db: &D) -> Result<TempTag, Error>where
D: Store,
Store a collection in a store. returns the root hash of the collection
as a TempTag.
-Trait Implementations§
source§impl Clone for Collection
source§fn clone(&self) -> Collection
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 Collection
source§impl Default for Collection
source§fn default() -> Collection
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for Collection
source§fn deserialize<__D>(
+
Trait Implementations§
§impl Clone for Collection
§fn clone(&self) -> Collection
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 Collection
§impl Default for Collection
§fn default() -> Collection
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for Collection
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Collection, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl<K, V> Extend<(K, V)> for Collectionwhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<K, V> Extend<(K, V)> for Collection
source§fn extend<T>(&mut self, iter: T)where
- T: IntoIterator<Item = (K, V)>,
Extends a collection with the contents of an iterator. Read moresource§fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (extend_one)Extends a collection with exactly one element.source§fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (extend_one)Reserves capacity in a collection for the given number of additional elements. Read moresource§impl<K, V> FromIterator<(K, V)> for Collection
§fn extend<T>(&mut self, iter: T)where
+ T: IntoIterator<Item = (K, V)>,
Extends a collection with the contents of an iterator. Read moresource§fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (extend_one)Extends a collection with exactly one element.source§fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (extend_one)Reserves capacity in a collection for the given number of additional elements. Read more§impl<K, V> FromIterator<(K, V)> for Collection
source§fn from_iter<T>(iter: T) -> Collectionwhere
- T: IntoIterator<Item = (K, V)>,
Creates a value from an iterator. Read moresource§impl Index<usize> for Collection
source§impl IntoIterator for Collection
§type IntoIter = IntoIter<<Collection as IntoIterator>::Item>
Which kind of iterator are we turning this into?source§fn into_iter(self) -> <Collection as IntoIterator>::IntoIter
Creates an iterator from a value. Read moresource§impl PartialEq for Collection
source§fn eq(&self, other: &Collection) -> bool
§fn from_iter<T>(iter: T) -> Collectionwhere
+ T: IntoIterator<Item = (K, V)>,
Creates a value from an iterator. Read more§impl Index<usize> for Collection
§impl IntoIterator for Collection
§type IntoIter = IntoIter<<Collection as IntoIterator>::Item>
Which kind of iterator are we turning this into?§fn into_iter(self) -> <Collection as IntoIterator>::IntoIter
Creates an iterator from a value. Read more§impl PartialEq for Collection
§fn eq(&self, other: &Collection) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for Collection
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl StructuralPartialEq for Collection
Auto Trait Implementations§
§impl Freeze for Collection
§impl RefUnwindSafe for Collection
§impl Send for Collection
§impl Sync for Collection
§impl Unpin for Collection
§impl UnwindSafe for Collection
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for Collection
Auto Trait Implementations§
§impl Freeze for Collection
§impl RefUnwindSafe for Collection
§impl Send for Collection
§impl Sync for Collection
§impl Unpin for Collection
§impl UnwindSafe for Collection
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html b/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html
index 8060225b4a..e645c48a2f 100644
--- a/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html
+++ b/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html
@@ -1,9 +1,9 @@
-SimpleStore in iroh::blobs::format::collection - Rust Trait iroh::blobs::format::collection::SimpleStore
source · pub trait SimpleStore {
+SimpleStore in iroh::blobs::format::collection - Rust Trait iroh::blobs::format::collection::SimpleStore
pub trait SimpleStore {
// Required method
fn load(
&self,
hash: Hash
) -> impl Future<Output = Result<Bytes, Error>> + Send;
}
Expand description
A simple store trait for loading blobs
-Required Methods§
sourcefn load(&self, hash: Hash) -> impl Future<Output = Result<Bytes, Error>> + Send
Load a blob from the store
+Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl SimpleStore for Client
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/format/index.html b/pr/2610/docs/iroh/blobs/format/index.html
index 556b45cc6d..4d957f0c6f 100644
--- a/pr/2610/docs/iroh/blobs/format/index.html
+++ b/pr/2610/docs/iroh/blobs/format/index.html
@@ -1,4 +1,4 @@
-iroh::blobs::format - Rust Expand description
Defines data formats for HashSeq.
+iroh::blobs::format - Rust Expand description
Defines data formats for HashSeq.
The exact details how to use a HashSeq for specific purposes is up to the
user. However, the following approach is used by iroh formats:
The first child blob is a metadata blob. It starts with a header, followed
diff --git a/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html b/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html
index 6206af3f7a..4db2508178 100644
--- a/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html
+++ b/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html
@@ -1,27 +1,27 @@
-
BlobId in iroh::blobs::get::db - Rust pub enum BlobId {
+BlobId in iroh::blobs::get::db - Rust pub enum BlobId {
Root,
Child(NonZero<u64>),
}
Expand description
The id of a blob in a transfer
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for BlobId
source§fn deserialize<__D>(
+
Trait Implementations§
§impl<'de> Deserialize<'de> for BlobId
§fn deserialize<__D>(
__deserializer: __D
) -> Result<BlobId, <__D as Deserializer<'de>>::Error>where
- __D:
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/enum.GetOutput.html b/pr/2610/docs/iroh/blobs/downloader/enum.GetOutput.html
index f07ab0307f..73bbfaf7f6 100644
--- a/pr/2610/docs/iroh/blobs/downloader/enum.GetOutput.html
+++ b/pr/2610/docs/iroh/blobs/downloader/enum.GetOutput.html
@@ -1,11 +1,11 @@
-GetOutput in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::GetOutput
source · pub enum GetOutput<N> {
+GetOutput in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::GetOutput
pub enum GetOutput<N> {
Complete(Stats),
NeedsConn(N),
}
Expand description
Output returned from Getter::get.
Variants§
§Complete(Stats)
The request is already complete in the local store.
§NeedsConn(N)
The request needs a connection to continue.
-Trait Implementations§
Auto Trait Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl<N> Freeze for GetOutput<N>where
N: Freeze,
§impl<N> RefUnwindSafe for GetOutput<N>where
N: RefUnwindSafe,
§impl<N> Send for GetOutput<N>where
N: Send,
§impl<N> Sync for GetOutput<N>where
diff --git a/pr/2610/docs/iroh/blobs/downloader/index.html b/pr/2610/docs/iroh/blobs/downloader/index.html
index 347ce882f3..1c91431206 100644
--- a/pr/2610/docs/iroh/blobs/downloader/index.html
+++ b/pr/2610/docs/iroh/blobs/downloader/index.html
@@ -1,4 +1,4 @@
-iroh::blobs::downloader - Rust Module iroh::blobs::downloader
source · Expand description
Handle downloading blobs and collections concurrently and from nodes.
+iroh::blobs::downloader - Rust Module iroh::blobs::downloader
Expand description
Handle downloading blobs and collections concurrently and from nodes.
The Downloader interacts with four main components to this end.
Dialer: Used to queue opening connections to nodes we need to perform downloads.
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html b/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
index 807453c381..a64840dc0c 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
@@ -1,4 +1,4 @@
-ConcurrencyLimits in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::ConcurrencyLimits
source · pub struct ConcurrencyLimits {
+ConcurrencyLimits in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::ConcurrencyLimits
pub struct ConcurrencyLimits {
pub max_concurrent_requests: usize,
pub max_concurrent_requests_per_node: usize,
pub max_open_connections: usize,
@@ -8,7 +8,7 @@
§max_concurrent_requests_per_node: usizeMaximum number of requests performed by a single node concurrently.
§max_open_connections: usizeMaximum number of open connections the service maintains.
§max_concurrent_dials_per_hash: usizeMaximum number of nodes to dial concurrently for a single request.
-Trait Implementations§
source§impl Debug for ConcurrencyLimits
source§impl Default for ConcurrencyLimits
source§fn default() -> ConcurrencyLimits
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for ConcurrencyLimits
§impl RefUnwindSafe for ConcurrencyLimits
§impl Send for ConcurrencyLimits
§impl Sync for ConcurrencyLimits
§impl Unpin for ConcurrencyLimits
§impl UnwindSafe for ConcurrencyLimits
Blanket Implementations§
source§impl<T> Any for Twhere
+Trait Implementations§
§impl Debug for ConcurrencyLimits
§impl Default for ConcurrencyLimits
§fn default() -> ConcurrencyLimits
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for ConcurrencyLimits
§impl RefUnwindSafe for ConcurrencyLimits
§impl Send for ConcurrencyLimits
§impl Sync for ConcurrencyLimits
§impl Unpin for ConcurrencyLimits
§impl UnwindSafe for ConcurrencyLimits
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html
index dc6d87f7c3..e1c5d54e32 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html
@@ -1,5 +1,5 @@
-DownloadHandle in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadHandle
source · pub struct DownloadHandle { /* private fields */ }
Expand description
Handle to interact with a download request.
-Trait Implementations§
source§impl Debug for DownloadHandle
source§impl Future for DownloadHandle
§type Output = Result<Stats, DownloadError>
The type of value produced on completion.source§fn poll(
+DownloadHandle in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadHandle
pub struct DownloadHandle { /* private fields */ }
Expand description
Handle to interact with a download request.
+Trait Implementations§
§impl Debug for DownloadHandle
§impl Future for DownloadHandle
§type Output = Result<Stats, DownloadError>
The type of value produced on completion.§fn poll(
self: Pin<&mut DownloadHandle>,
cx: &mut Context<'_>
) -> Poll<<DownloadHandle as Future>::Output>
Attempt to resolve the future to a final value, registering
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html
index 4a70ac75c4..4719a1c98c 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html
@@ -1,13 +1,13 @@
-DownloadKind in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadKind
source · pub struct DownloadKind(/* private fields */);
Expand description
The kind of resource to download.
-Implementations§
source§impl DownloadKind
sourcepub const fn format(&self) -> BlobFormat
Get the format of this download
-sourcepub const fn hash_and_format(&self) -> HashAndFormat
Get the HashAndFormat pair of this download
-Trait Implementations§
source§impl Clone for DownloadKind
source§fn clone(&self) -> DownloadKind
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 DownloadKind
source§impl Display for DownloadKind
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> HashAndFormat
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> DownloadKind
Converts to this type from the input type.source§impl Hash for DownloadKind
source§fn hash<__H>(&self, state: &mut __H)where
+DownloadKind in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadKind
pub struct DownloadKind(/* private fields */);
Expand description
The kind of resource to download.
+Implementations§
§impl DownloadKind
pub const fn format(&self) -> BlobFormat
Get the format of this download
+pub const fn hash_and_format(&self) -> HashAndFormat
Get the HashAndFormat pair of this download
+Trait Implementations§
§impl Clone for DownloadKind
§fn clone(&self) -> DownloadKind
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 DownloadKind
§impl Display for DownloadKind
§impl From<DownloadKind> for HashAndFormat
§fn from(value: DownloadKind) -> HashAndFormat
Converts to this type from the input type.§impl From<HashAndFormat> for DownloadKind
§fn from(value: HashAndFormat) -> DownloadKind
Converts to this type from the input type.§impl Hash for DownloadKind
source§impl PartialEq for DownloadKind
§impl PartialEq for DownloadKind
§fn eq(&self, other: &DownloadKind) -> bool
This method tests for self and other values to be equal, and is used
by ==.source§impl Copy for DownloadKind
source§impl Eq for DownloadKind
source§impl StructuralPartialEq for DownloadKind
Auto Trait Implementations§
§impl Freeze for DownloadKind
§impl RefUnwindSafe for DownloadKind
§impl Send for DownloadKind
§impl Sync for DownloadKind
§impl Unpin for DownloadKind
§impl UnwindSafe for DownloadKind
Blanket Implementations§
§impl Copy for DownloadKind
§impl Eq for DownloadKind
§impl StructuralPartialEq for DownloadKind
Auto Trait Implementations§
§impl Freeze for DownloadKind
§impl RefUnwindSafe for DownloadKind
§impl Send for DownloadKind
§impl Sync for DownloadKind
§impl Unpin for DownloadKind
§impl UnwindSafe for DownloadKind
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html
index 44b625c937..e4ee48bd36 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html
@@ -1,5 +1,5 @@
-DownloadRequest in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadRequest
source · pub struct DownloadRequest { /* private fields */ }
Expand description
A download request.
-Implementations§
source§impl DownloadRequest
sourcepub fn new(
+DownloadRequest in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadRequest
pub struct DownloadRequest { /* private fields */ }
Expand description
A download request.
+Implementations§
§impl DownloadRequest
pub fn new(
resource: impl Into<DownloadKind>,
nodes: impl IntoIterator<Item = impl Into<NodeAddr>>
) -> DownloadRequest
Create a new download request.
@@ -8,11 +8,11 @@ temp tag or with a persistent tag to make sure the data is not garbage collected
the download.
If this is not done, there download will proceed as normal, but there is no guarantee
that the data is still available when the download is complete.
-sourcepub fn progress_sender(
+
pub fn progress_sender(
self,
sender: AsyncChannelProgressSender<DownloadProgress>
) -> DownloadRequest
Pass a progress sender to receive progress updates.
-Trait Implementations§
source§impl Clone for DownloadRequest
source§fn clone(&self) -> DownloadRequest
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 DownloadRequest
§impl RefUnwindSafe for DownloadRequest
§impl Send for DownloadRequest
§impl Sync for DownloadRequest
§impl Unpin for DownloadRequest
§impl UnwindSafe for DownloadRequest
Blanket Implementations§
Trait Implementations§
§impl Clone for DownloadRequest
§fn clone(&self) -> DownloadRequest
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 DownloadRequest
§impl RefUnwindSafe for DownloadRequest
§impl Send for DownloadRequest
§impl Sync for DownloadRequest
§impl Unpin for DownloadRequest
§impl UnwindSafe for DownloadRequest
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html b/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html
index 5b87c99a11..cf3c82e05b 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html
@@ -1,7 +1,7 @@
-Downloader in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::Downloader
source · pub struct Downloader { /* private fields */ }
Expand description
Handle for the download services.
-Implementations§
source§impl Downloader
sourcepub fn new<S>(store: S, endpoint: Endpoint, rt: LocalPoolHandle) -> Downloaderwhere
+Downloader in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::Downloader
pub struct Downloader { /* private fields */ }
Expand description
Handle for the download services.
+Implementations§
§impl Downloader
pub fn new<S>(store: S, endpoint: Endpoint, rt: LocalPoolHandle) -> Downloaderwhere
S: Store,
Create a new Downloader with the default ConcurrencyLimits and RetryConfig.
-sourcepub fn with_config<S>(
+
pub fn with_config<S>(
store: S,
endpoint: Endpoint,
rt: LocalPoolHandle,
@@ -9,12 +9,12 @@
retry_config: RetryConfig
) -> Downloaderwhere
S: Store,
Create a new Downloader with custom ConcurrencyLimits and RetryConfig.
-sourcepub async fn queue(&self, request: DownloadRequest) -> DownloadHandle ⓘ
Queue a download.
-sourcepub async fn cancel(&self, handle: DownloadHandle)
Cancel a download.
-sourcepub async fn nodes_have(&mut self, hash: Hash, nodes: Vec<PublicKey>)
Declare that certains nodes can be used to download a hash.
+pub async fn queue(&self, request: DownloadRequest) -> DownloadHandle ⓘ
Queue a download.
+pub async fn cancel(&self, handle: DownloadHandle)
Cancel a download.
+pub async fn nodes_have(&mut self, hash: Hash, nodes: Vec<PublicKey>)
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
source§fn clone(&self) -> Downloader
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 Downloader
§impl !RefUnwindSafe for Downloader
§impl Send for Downloader
§impl Sync for Downloader
§impl Unpin for Downloader
§impl !UnwindSafe for Downloader
Blanket Implementations§
Trait Implementations§
§impl Clone for Downloader
§fn clone(&self) -> Downloader
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 Downloader
§impl !RefUnwindSafe for Downloader
§impl Send for Downloader
§impl Sync for Downloader
§impl Unpin for Downloader
§impl !UnwindSafe for Downloader
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html b/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html
index 34ef7c1681..7d289c6a22 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html
@@ -1,15 +1,15 @@
-IntentId in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::IntentId
source · pub struct IntentId(pub u64);
Expand description
Identifier for a download intent.
-Tuple Fields§
§0: u64Trait Implementations§
source§impl Hash for IntentId
source§fn hash<__H>(&self, state: &mut __H)where
+IntentId in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::IntentId
pub struct IntentId(pub u64);
Expand description
Identifier for a download intent.
+Tuple Fields§
§0: u64Trait Implementations§
§impl Ord for IntentId
source§impl PartialOrd for IntentId
§impl PartialOrd for IntentId
§fn partial_cmp(&self, other: &IntentId) -> 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 Copy for IntentId
source§impl Eq for IntentId
source§impl StructuralPartialEq for IntentId
Auto Trait Implementations§
§impl Freeze for IntentId
§impl RefUnwindSafe for IntentId
§impl Send for IntentId
§impl Sync for IntentId
§impl Unpin for IntentId
§impl UnwindSafe for IntentId
Blanket Implementations§
§impl Copy for IntentId
§impl Eq for IntentId
§impl StructuralPartialEq for IntentId
Auto Trait Implementations§
§impl Freeze for IntentId
§impl RefUnwindSafe for IntentId
§impl Send for IntentId
§impl Sync for IntentId
§impl Unpin for IntentId
§impl UnwindSafe for IntentId
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html b/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html
index bf5caa0efb..be958f9f15 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html
@@ -1,11 +1,11 @@
-RetryConfig in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::RetryConfig
source · pub struct RetryConfig {
+RetryConfig in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::RetryConfig
pub struct RetryConfig {
pub max_retries_per_node: u32,
pub initial_retry_delay: Duration,
}
Expand description
Configuration for retry behavior of the Downloader.
Fields§
§max_retries_per_node: u32Maximum number of retry attempts for a node that failed to dial or failed with IO errors.
§initial_retry_delay: DurationThe initial delay to wait before retrying a node. On subsequent failures, the retry delay
will be multiplied with the number of failed retries.
-Trait Implementations§
source§impl Debug for RetryConfig
source§impl Default for RetryConfig
source§fn default() -> RetryConfig
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for RetryConfig
§impl RefUnwindSafe for RetryConfig
§impl Send for RetryConfig
§impl Sync for RetryConfig
§impl Unpin for RetryConfig
§impl UnwindSafe for RetryConfig
Blanket Implementations§
source§impl<T> Any for Twhere
+Trait Implementations§
§impl Debug for RetryConfig
§impl Default for RetryConfig
§fn default() -> RetryConfig
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for RetryConfig
§impl RefUnwindSafe for RetryConfig
§impl Send for RetryConfig
§impl Sync for RetryConfig
§impl Unpin for RetryConfig
§impl UnwindSafe for RetryConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html b/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html
index b171e5d50b..bab3e0811b 100644
--- a/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html
+++ b/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html
@@ -1,4 +1,4 @@
-Dialer in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Dialer
source · pub trait Dialer: Stream<Item = (PublicKey, Result<Self::Connection, Error>)> + Unpin {
+Dialer in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Dialer
pub trait Dialer: Stream<Item = (PublicKey, Result<Self::Connection, Error>)> + Unpin {
type Connection: Clone + 'static;
// Required methods
@@ -7,9 +7,9 @@
fn is_pending(&self, node: PublicKey) -> bool;
fn node_id(&self) -> PublicKey;
}
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: PublicKey)
Dial a node.
-sourcefn pending_count(&self) -> usize
Get the number of dialing nodes.
-sourcefn is_pending(&self, node: PublicKey) -> bool
Check if a node is being dialed.
-Implementors§
source§impl Dialer for Dialer
§type Connection = Connection
\ No newline at end of file
+
Required Associated Types§
type Connection: Clone + 'static
Type of connections returned by the Dialer.
+Required Methods§
fn queue_dial(&mut self, node_id: PublicKey)
Dial a node.
+fn pending_count(&self) -> usize
Get the number of dialing nodes.
+fn is_pending(&self, node: PublicKey) -> bool
Check if a node is being dialed.
+Implementors§
§impl Dialer for Dialer
§type Connection = Connection
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html b/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html
index 7db7547404..1433d1ad51 100644
--- a/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html
+++ b/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html
@@ -1,4 +1,4 @@
-Getter in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Getter
source · pub trait Getter {
+Getter in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Getter
pub trait Getter {
type Connection: 'static;
type NeedsConn: NeedsConn<Self::Connection>;
@@ -9,9 +9,9 @@
progress_sender: BroadcastProgressSender
) -> Pin<Box<dyn Future<Output = Result<GetOutput<Self::NeedsConn>, FailureAction>>>>;
}
Expand description
Trait modelling performing a single request over a connection. This allows for IO-less testing.
-Required Associated Types§
sourcetype Connection: 'static
Type of connections the Getter requires to perform a download.
-sourcetype NeedsConn: NeedsConn<Self::Connection>
Type of the intermediary state returned from Self::get if a connection is needed.
-Required Methods§
Required Associated Types§
type Connection: 'static
Type of connections the Getter requires to perform a download.
+type NeedsConn: NeedsConn<Self::Connection>
Type of the intermediary state returned from Self::get if a connection is needed.
+Required Methods§
fn get(
&mut self,
kind: DownloadKind,
progress_sender: BroadcastProgressSender
diff --git a/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html b/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html
index 43b89e6c03..da67052292 100644
--- a/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html
+++ b/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html
@@ -1,12 +1,12 @@
-NeedsConn in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::NeedsConn
source · pub trait NeedsConn<C>: Debug + 'static {
+NeedsConn in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::NeedsConn
pub trait NeedsConn<C>: Debug + 'static {
// Required method
fn proceed(
self,
conn: C
) -> Pin<Box<dyn Future<Output = Result<Stats, FailureAction>>>>;
}
Expand description
Trait modelling the intermediary state when a connection is needed to proceed.
-Required Methods§
Required Methods§
Implementors§
source§impl NeedsConn<Connection> for GetStateNeedsConn
\ No newline at end of file
+
Implementors§
§impl NeedsConn<Connection> for GetStateNeedsConn
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html b/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html
index b2e56959a9..993565e37d 100644
--- a/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html
+++ b/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html
@@ -1,4 +1,4 @@
-ExportProgress in iroh::blobs::export - Rust Enum iroh::blobs::export::ExportProgress
source · pub enum ExportProgress {
+ExportProgress in iroh::blobs::export - Rust Enum iroh::blobs::export::ExportProgress
pub enum ExportProgress {
Found {
id: u64,
hash: Hash,
@@ -31,10 +31,10 @@ to the specified out path.
§AllDone
We are done with the whole operation.
§Abort(RpcError)
We got an error and need to abort.
-
Trait Implementations§
source§impl Clone for ExportProgress
source§fn clone(&self) -> ExportProgress
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 ExportProgress
source§impl<'de> Deserialize<'de> for ExportProgress
source§fn deserialize<__D>(
+
Trait Implementations§
§impl Clone for ExportProgress
§fn clone(&self) -> ExportProgress
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 ExportProgress
§impl<'de> Deserialize<'de> for ExportProgress
§fn deserialize<__D>(
__deserializer: __D
) -> Result<ExportProgress, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for ExportProgress
source§fn serialize<__S>(
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Serialize for ExportProgress
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
diff --git a/pr/2610/docs/iroh/blobs/export/fn.export.html b/pr/2610/docs/iroh/blobs/export/fn.export.html
index 47dcf9dc56..fd30428da6 100644
--- a/pr/2610/docs/iroh/blobs/export/fn.export.html
+++ b/pr/2610/docs/iroh/blobs/export/fn.export.html
@@ -1,4 +1,4 @@
-export in iroh::blobs::export - Rust pub async fn export<D>(
+export in iroh::blobs::export - Rust pub async fn export<D>(
db: &D,
hash: Hash,
outpath: PathBuf,
diff --git a/pr/2610/docs/iroh/blobs/export/fn.export_blob.html b/pr/2610/docs/iroh/blobs/export/fn.export_blob.html
index 5f3b87c1e3..1e8d43f8dd 100644
--- a/pr/2610/docs/iroh/blobs/export/fn.export_blob.html
+++ b/pr/2610/docs/iroh/blobs/export/fn.export_blob.html
@@ -1,4 +1,4 @@
-export_blob in iroh::blobs::export - Rust Function iroh::blobs::export::export_blob
source · pub async fn export_blob<D>(
+export_blob in iroh::blobs::export - Rust Function iroh::blobs::export::export_blob
pub async fn export_blob<D>(
db: &D,
hash: Hash,
outpath: PathBuf,
diff --git a/pr/2610/docs/iroh/blobs/export/fn.export_collection.html b/pr/2610/docs/iroh/blobs/export/fn.export_collection.html
index 3006f090c9..46c48078ce 100644
--- a/pr/2610/docs/iroh/blobs/export/fn.export_collection.html
+++ b/pr/2610/docs/iroh/blobs/export/fn.export_collection.html
@@ -1,4 +1,4 @@
-export_collection in iroh::blobs::export - Rust Function iroh::blobs::export::export_collection
source · pub async fn export_collection<D>(
+export_collection in iroh::blobs::export - Rust Function iroh::blobs::export::export_collection
pub async fn export_collection<D>(
db: &D,
hash: Hash,
outpath: PathBuf,
diff --git a/pr/2610/docs/iroh/blobs/export/index.html b/pr/2610/docs/iroh/blobs/export/index.html
index b5100b73a9..5d603bba61 100644
--- a/pr/2610/docs/iroh/blobs/export/index.html
+++ b/pr/2610/docs/iroh/blobs/export/index.html
@@ -1,2 +1,2 @@
-iroh::blobs::export - Rust Expand description
Functions to export data from a store
+iroh::blobs::export - Rust
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/format/collection/index.html b/pr/2610/docs/iroh/blobs/format/collection/index.html
index 09692a2b2a..934db16299 100644
--- a/pr/2610/docs/iroh/blobs/format/collection/index.html
+++ b/pr/2610/docs/iroh/blobs/format/collection/index.html
@@ -1,2 +1,2 @@
-iroh::blobs::format::collection - Rust Module iroh::blobs::format::collection
source · Expand description
The collection type used by iroh
+iroh::blobs::format::collection - Rust
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html b/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html
index 0495f38015..b946c17b2f 100644
--- a/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html
+++ b/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html
@@ -1,51 +1,51 @@
-Collection in iroh::blobs::format::collection - Rust Struct iroh::blobs::format::collection::Collection
source · pub struct Collection { /* private fields */ }
Expand description
A collection of blobs
+Collection in iroh::blobs::format::collection - Rust Struct iroh::blobs::format::collection::Collection
pub struct Collection { /* private fields */ }
Expand description
A collection of blobs
Note that the format is subject to change.
-Implementations§
source§impl Collection
Implementations§
§impl Collection
pub const HEADER: &'static [u8; 13] = b"CollectionV0."
The header for the collection format.
This is the start of the metadata blob.
-sourcepub fn to_blobs(&self) -> impl DoubleEndedIterator
Convert the collection to an iterator of blobs, with the last being the
+
pub fn to_blobs(&self) -> impl DoubleEndedIterator
Convert the collection to an iterator of blobs, with the last being the
root blob.
To persist the collection, write all the blobs to storage, and use the
hash of the last blob as the collection hash.
-pub async fn read_fsm(
fsm_at_start_root: AtStartRoot
) -> Result<(EndBlobNext, HashSeq, Collection), Error>
Read the collection from a get fsm.
Returns the fsm at the start of the first child blob (if any),
the links array, and the collection.
-sourcepub async fn read_fsm_all(
+
pub async fn read_fsm_all(
fsm_at_start_root: AtStartRoot
) -> Result<(Collection, BTreeMap<u64, Bytes>, Stats), Error>
Read the collection and all it’s children from a get fsm.
Returns the collection, a map from blob offsets to bytes, and the stats.
-pub async fn load(
root: Hash,
store: &impl SimpleStore
) -> Result<Collection, Error>
Create a new collection from a hash sequence and metadata.
-pub async fn load_db<D>(db: &D, root: &Hash) -> Result<Collection, Error>where
D: Map,
Load a collection from a store given a root hash
This assumes that both the links and the metadata of the collection is stored in the store.
It does not require that all child blobs are stored in the store.
-pub async fn store<D>(self, db: &D) -> Result<TempTag, Error>where
D: Store,
Store a collection in a store. returns the root hash of the collection
as a TempTag.
-Trait Implementations§
source§impl Clone for Collection
source§fn clone(&self) -> Collection
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 Collection
source§impl Default for Collection
source§fn default() -> Collection
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for Collection
source§fn deserialize<__D>(
+
Trait Implementations§
§impl Clone for Collection
§fn clone(&self) -> Collection
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 Collection
§impl Default for Collection
§fn default() -> Collection
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for Collection
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Collection, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl<K, V> Extend<(K, V)> for Collectionwhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<K, V> Extend<(K, V)> for Collection
source§fn extend<T>(&mut self, iter: T)where
- T: IntoIterator<Item = (K, V)>,
Extends a collection with the contents of an iterator. Read moresource§fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (extend_one)Extends a collection with exactly one element.source§fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (extend_one)Reserves capacity in a collection for the given number of additional elements. Read moresource§impl<K, V> FromIterator<(K, V)> for Collection
§fn extend<T>(&mut self, iter: T)where
+ T: IntoIterator<Item = (K, V)>,
Extends a collection with the contents of an iterator. Read moresource§fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (extend_one)Extends a collection with exactly one element.source§fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (extend_one)Reserves capacity in a collection for the given number of additional elements. Read more§impl<K, V> FromIterator<(K, V)> for Collection
source§fn from_iter<T>(iter: T) -> Collectionwhere
- T: IntoIterator<Item = (K, V)>,
Creates a value from an iterator. Read moresource§impl Index<usize> for Collection
source§impl IntoIterator for Collection
§type IntoIter = IntoIter<<Collection as IntoIterator>::Item>
Which kind of iterator are we turning this into?source§fn into_iter(self) -> <Collection as IntoIterator>::IntoIter
Creates an iterator from a value. Read moresource§impl PartialEq for Collection
source§fn eq(&self, other: &Collection) -> bool
§fn from_iter<T>(iter: T) -> Collectionwhere
+ T: IntoIterator<Item = (K, V)>,
Creates a value from an iterator. Read more§impl Index<usize> for Collection
§impl IntoIterator for Collection
§type IntoIter = IntoIter<<Collection as IntoIterator>::Item>
Which kind of iterator are we turning this into?§fn into_iter(self) -> <Collection as IntoIterator>::IntoIter
Creates an iterator from a value. Read more§impl PartialEq for Collection
§fn eq(&self, other: &Collection) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for Collection
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl StructuralPartialEq for Collection
Auto Trait Implementations§
§impl Freeze for Collection
§impl RefUnwindSafe for Collection
§impl Send for Collection
§impl Sync for Collection
§impl Unpin for Collection
§impl UnwindSafe for Collection
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for Collection
Auto Trait Implementations§
§impl Freeze for Collection
§impl RefUnwindSafe for Collection
§impl Send for Collection
§impl Sync for Collection
§impl Unpin for Collection
§impl UnwindSafe for Collection
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html b/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html
index 8060225b4a..e645c48a2f 100644
--- a/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html
+++ b/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html
@@ -1,9 +1,9 @@
-SimpleStore in iroh::blobs::format::collection - Rust Trait iroh::blobs::format::collection::SimpleStore
source · pub trait SimpleStore {
+SimpleStore in iroh::blobs::format::collection - Rust Trait iroh::blobs::format::collection::SimpleStore
pub trait SimpleStore {
// Required method
fn load(
&self,
hash: Hash
) -> impl Future<Output = Result<Bytes, Error>> + Send;
}
Expand description
A simple store trait for loading blobs
-Required Methods§
sourcefn load(&self, hash: Hash) -> impl Future<Output = Result<Bytes, Error>> + Send
Load a blob from the store
+Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl SimpleStore for Client
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/format/index.html b/pr/2610/docs/iroh/blobs/format/index.html
index 556b45cc6d..4d957f0c6f 100644
--- a/pr/2610/docs/iroh/blobs/format/index.html
+++ b/pr/2610/docs/iroh/blobs/format/index.html
@@ -1,4 +1,4 @@
-iroh::blobs::format - Rust Expand description
Defines data formats for HashSeq.
+iroh::blobs::format - Rust Expand description
Defines data formats for HashSeq.
The exact details how to use a HashSeq for specific purposes is up to the
user. However, the following approach is used by iroh formats:
The first child blob is a metadata blob. It starts with a header, followed
diff --git a/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html b/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html
index 6206af3f7a..4db2508178 100644
--- a/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html
+++ b/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html
@@ -1,27 +1,27 @@
-
BlobId in iroh::blobs::get::db - Rust pub enum BlobId {
+BlobId in iroh::blobs::get::db - Rust pub enum BlobId {
Root,
Child(NonZero<u64>),
}
Expand description
The id of a blob in a transfer
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for BlobId
source§fn deserialize<__D>(
+
Trait Implementations§
§impl<'de> Deserialize<'de> for BlobId
§fn deserialize<__D>(
__deserializer: __D
) -> Result<BlobId, <__D as Deserializer<'de>>::Error>where
- __D:
Enum iroh::blobs::downloader::GetOutput
source · pub enum GetOutput<N> {
+GetOutput in iroh::blobs::downloader - Rust Enum iroh::blobs::downloader::GetOutput
pub enum GetOutput<N> {
Complete(Stats),
NeedsConn(N),
}
Expand description
Output returned from Getter::get.
Variants§
§Complete(Stats)
The request is already complete in the local store.
§NeedsConn(N)
The request needs a connection to continue.
-Trait Implementations§
Auto Trait Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl<N> Freeze for GetOutput<N>where
N: Freeze,
§impl<N> RefUnwindSafe for GetOutput<N>where
N: RefUnwindSafe,
§impl<N> Send for GetOutput<N>where
N: Send,
§impl<N> Sync for GetOutput<N>where
diff --git a/pr/2610/docs/iroh/blobs/downloader/index.html b/pr/2610/docs/iroh/blobs/downloader/index.html
index 347ce882f3..1c91431206 100644
--- a/pr/2610/docs/iroh/blobs/downloader/index.html
+++ b/pr/2610/docs/iroh/blobs/downloader/index.html
@@ -1,4 +1,4 @@
-iroh::blobs::downloader - Rust Module iroh::blobs::downloader
source · Expand description
Handle downloading blobs and collections concurrently and from nodes.
+iroh::blobs::downloader - Rust Module iroh::blobs::downloader
Expand description
Handle downloading blobs and collections concurrently and from nodes.
The Downloader interacts with four main components to this end.
Dialer: Used to queue opening connections to nodes we need to perform downloads.
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html b/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
index 807453c381..a64840dc0c 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.ConcurrencyLimits.html
@@ -1,4 +1,4 @@
-ConcurrencyLimits in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::ConcurrencyLimits
source · pub struct ConcurrencyLimits {
+ConcurrencyLimits in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::ConcurrencyLimits
pub struct ConcurrencyLimits {
pub max_concurrent_requests: usize,
pub max_concurrent_requests_per_node: usize,
pub max_open_connections: usize,
@@ -8,7 +8,7 @@
§max_concurrent_requests_per_node: usizeMaximum number of requests performed by a single node concurrently.
§max_open_connections: usizeMaximum number of open connections the service maintains.
§max_concurrent_dials_per_hash: usizeMaximum number of nodes to dial concurrently for a single request.
-Trait Implementations§
source§impl Debug for ConcurrencyLimits
source§impl Default for ConcurrencyLimits
source§fn default() -> ConcurrencyLimits
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for ConcurrencyLimits
§impl RefUnwindSafe for ConcurrencyLimits
§impl Send for ConcurrencyLimits
§impl Sync for ConcurrencyLimits
§impl Unpin for ConcurrencyLimits
§impl UnwindSafe for ConcurrencyLimits
Blanket Implementations§
source§impl<T> Any for Twhere
+Trait Implementations§
§impl Debug for ConcurrencyLimits
§impl Default for ConcurrencyLimits
§fn default() -> ConcurrencyLimits
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for ConcurrencyLimits
§impl RefUnwindSafe for ConcurrencyLimits
§impl Send for ConcurrencyLimits
§impl Sync for ConcurrencyLimits
§impl Unpin for ConcurrencyLimits
§impl UnwindSafe for ConcurrencyLimits
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html
index dc6d87f7c3..e1c5d54e32 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadHandle.html
@@ -1,5 +1,5 @@
-DownloadHandle in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadHandle
source · pub struct DownloadHandle { /* private fields */ }
Expand description
Handle to interact with a download request.
-Trait Implementations§
source§impl Debug for DownloadHandle
source§impl Future for DownloadHandle
§type Output = Result<Stats, DownloadError>
The type of value produced on completion.source§fn poll(
+DownloadHandle in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadHandle
pub struct DownloadHandle { /* private fields */ }
Expand description
Handle to interact with a download request.
+Trait Implementations§
§impl Debug for DownloadHandle
§impl Future for DownloadHandle
§type Output = Result<Stats, DownloadError>
The type of value produced on completion.§fn poll(
self: Pin<&mut DownloadHandle>,
cx: &mut Context<'_>
) -> Poll<<DownloadHandle as Future>::Output>
Attempt to resolve the future to a final value, registering
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html
index 4a70ac75c4..4719a1c98c 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadKind.html
@@ -1,13 +1,13 @@
-DownloadKind in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadKind
source · pub struct DownloadKind(/* private fields */);
Expand description
The kind of resource to download.
-Implementations§
source§impl DownloadKind
sourcepub const fn format(&self) -> BlobFormat
Get the format of this download
-sourcepub const fn hash_and_format(&self) -> HashAndFormat
Get the HashAndFormat pair of this download
-Trait Implementations§
source§impl Clone for DownloadKind
source§fn clone(&self) -> DownloadKind
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 DownloadKind
source§impl Display for DownloadKind
source§impl From<DownloadKind> for HashAndFormat
source§fn from(value: DownloadKind) -> HashAndFormat
Converts to this type from the input type.source§impl From<HashAndFormat> for DownloadKind
source§fn from(value: HashAndFormat) -> DownloadKind
Converts to this type from the input type.source§impl Hash for DownloadKind
source§fn hash<__H>(&self, state: &mut __H)where
+DownloadKind in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadKind
pub struct DownloadKind(/* private fields */);
Expand description
The kind of resource to download.
+Implementations§
§impl DownloadKind
pub const fn format(&self) -> BlobFormat
Get the format of this download
+pub const fn hash_and_format(&self) -> HashAndFormat
Get the HashAndFormat pair of this download
+Trait Implementations§
§impl Clone for DownloadKind
§fn clone(&self) -> DownloadKind
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 DownloadKind
§impl Display for DownloadKind
§impl From<DownloadKind> for HashAndFormat
§fn from(value: DownloadKind) -> HashAndFormat
Converts to this type from the input type.§impl From<HashAndFormat> for DownloadKind
§fn from(value: HashAndFormat) -> DownloadKind
Converts to this type from the input type.§impl Hash for DownloadKind
source§impl PartialEq for DownloadKind
§impl PartialEq for DownloadKind
§fn eq(&self, other: &DownloadKind) -> bool
This method tests for self and other values to be equal, and is used
by ==.source§impl Copy for DownloadKind
source§impl Eq for DownloadKind
source§impl StructuralPartialEq for DownloadKind
Auto Trait Implementations§
§impl Freeze for DownloadKind
§impl RefUnwindSafe for DownloadKind
§impl Send for DownloadKind
§impl Sync for DownloadKind
§impl Unpin for DownloadKind
§impl UnwindSafe for DownloadKind
Blanket Implementations§
§impl Copy for DownloadKind
§impl Eq for DownloadKind
§impl StructuralPartialEq for DownloadKind
Auto Trait Implementations§
§impl Freeze for DownloadKind
§impl RefUnwindSafe for DownloadKind
§impl Send for DownloadKind
§impl Sync for DownloadKind
§impl Unpin for DownloadKind
§impl UnwindSafe for DownloadKind
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html
index 44b625c937..e4ee48bd36 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.DownloadRequest.html
@@ -1,5 +1,5 @@
-DownloadRequest in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadRequest
source · pub struct DownloadRequest { /* private fields */ }
Expand description
A download request.
-Implementations§
source§impl DownloadRequest
sourcepub fn new(
+DownloadRequest in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::DownloadRequest
pub struct DownloadRequest { /* private fields */ }
Expand description
A download request.
+Implementations§
§impl DownloadRequest
pub fn new(
resource: impl Into<DownloadKind>,
nodes: impl IntoIterator<Item = impl Into<NodeAddr>>
) -> DownloadRequest
Create a new download request.
@@ -8,11 +8,11 @@ temp tag or with a persistent tag to make sure the data is not garbage collected
the download.
If this is not done, there download will proceed as normal, but there is no guarantee
that the data is still available when the download is complete.
-sourcepub fn progress_sender(
+
pub fn progress_sender(
self,
sender: AsyncChannelProgressSender<DownloadProgress>
) -> DownloadRequest
Pass a progress sender to receive progress updates.
-Trait Implementations§
source§impl Clone for DownloadRequest
source§fn clone(&self) -> DownloadRequest
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 DownloadRequest
§impl RefUnwindSafe for DownloadRequest
§impl Send for DownloadRequest
§impl Sync for DownloadRequest
§impl Unpin for DownloadRequest
§impl UnwindSafe for DownloadRequest
Blanket Implementations§
Trait Implementations§
§impl Clone for DownloadRequest
§fn clone(&self) -> DownloadRequest
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 DownloadRequest
§impl RefUnwindSafe for DownloadRequest
§impl Send for DownloadRequest
§impl Sync for DownloadRequest
§impl Unpin for DownloadRequest
§impl UnwindSafe for DownloadRequest
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html b/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html
index 5b87c99a11..cf3c82e05b 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.Downloader.html
@@ -1,7 +1,7 @@
-Downloader in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::Downloader
source · pub struct Downloader { /* private fields */ }
Expand description
Handle for the download services.
-Implementations§
source§impl Downloader
sourcepub fn new<S>(store: S, endpoint: Endpoint, rt: LocalPoolHandle) -> Downloaderwhere
+Downloader in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::Downloader
pub struct Downloader { /* private fields */ }
Expand description
Handle for the download services.
+Implementations§
§impl Downloader
pub fn new<S>(store: S, endpoint: Endpoint, rt: LocalPoolHandle) -> Downloaderwhere
S: Store,
Create a new Downloader with the default ConcurrencyLimits and RetryConfig.
-sourcepub fn with_config<S>(
+
pub fn with_config<S>(
store: S,
endpoint: Endpoint,
rt: LocalPoolHandle,
@@ -9,12 +9,12 @@
retry_config: RetryConfig
) -> Downloaderwhere
S: Store,
Create a new Downloader with custom ConcurrencyLimits and RetryConfig.
-sourcepub async fn queue(&self, request: DownloadRequest) -> DownloadHandle ⓘ
Queue a download.
-sourcepub async fn cancel(&self, handle: DownloadHandle)
Cancel a download.
-sourcepub async fn nodes_have(&mut self, hash: Hash, nodes: Vec<PublicKey>)
Declare that certains nodes can be used to download a hash.
+pub async fn queue(&self, request: DownloadRequest) -> DownloadHandle ⓘ
Queue a download.
+pub async fn cancel(&self, handle: DownloadHandle)
Cancel a download.
+pub async fn nodes_have(&mut self, hash: Hash, nodes: Vec<PublicKey>)
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
source§fn clone(&self) -> Downloader
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 Downloader
§impl !RefUnwindSafe for Downloader
§impl Send for Downloader
§impl Sync for Downloader
§impl Unpin for Downloader
§impl !UnwindSafe for Downloader
Blanket Implementations§
Trait Implementations§
§impl Clone for Downloader
§fn clone(&self) -> Downloader
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 Downloader
§impl !RefUnwindSafe for Downloader
§impl Send for Downloader
§impl Sync for Downloader
§impl Unpin for Downloader
§impl !UnwindSafe for Downloader
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html b/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html
index 34ef7c1681..7d289c6a22 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.IntentId.html
@@ -1,15 +1,15 @@
-IntentId in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::IntentId
source · pub struct IntentId(pub u64);
Expand description
Identifier for a download intent.
-Tuple Fields§
§0: u64Trait Implementations§
source§impl Hash for IntentId
source§fn hash<__H>(&self, state: &mut __H)where
+IntentId in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::IntentId
pub struct IntentId(pub u64);
Expand description
Identifier for a download intent.
+Tuple Fields§
§0: u64Trait Implementations§
§impl Ord for IntentId
source§impl PartialOrd for IntentId
§impl PartialOrd for IntentId
§fn partial_cmp(&self, other: &IntentId) -> 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 Copy for IntentId
source§impl Eq for IntentId
source§impl StructuralPartialEq for IntentId
Auto Trait Implementations§
§impl Freeze for IntentId
§impl RefUnwindSafe for IntentId
§impl Send for IntentId
§impl Sync for IntentId
§impl Unpin for IntentId
§impl UnwindSafe for IntentId
Blanket Implementations§
§impl Copy for IntentId
§impl Eq for IntentId
§impl StructuralPartialEq for IntentId
Auto Trait Implementations§
§impl Freeze for IntentId
§impl RefUnwindSafe for IntentId
§impl Send for IntentId
§impl Sync for IntentId
§impl Unpin for IntentId
§impl UnwindSafe for IntentId
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html b/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html
index bf5caa0efb..be958f9f15 100644
--- a/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html
+++ b/pr/2610/docs/iroh/blobs/downloader/struct.RetryConfig.html
@@ -1,11 +1,11 @@
-RetryConfig in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::RetryConfig
source · pub struct RetryConfig {
+RetryConfig in iroh::blobs::downloader - Rust Struct iroh::blobs::downloader::RetryConfig
pub struct RetryConfig {
pub max_retries_per_node: u32,
pub initial_retry_delay: Duration,
}
Expand description
Configuration for retry behavior of the Downloader.
Fields§
§max_retries_per_node: u32Maximum number of retry attempts for a node that failed to dial or failed with IO errors.
§initial_retry_delay: DurationThe initial delay to wait before retrying a node. On subsequent failures, the retry delay
will be multiplied with the number of failed retries.
-Trait Implementations§
source§impl Debug for RetryConfig
source§impl Default for RetryConfig
source§fn default() -> RetryConfig
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for RetryConfig
§impl RefUnwindSafe for RetryConfig
§impl Send for RetryConfig
§impl Sync for RetryConfig
§impl Unpin for RetryConfig
§impl UnwindSafe for RetryConfig
Blanket Implementations§
source§impl<T> Any for Twhere
+Trait Implementations§
§impl Debug for RetryConfig
§impl Default for RetryConfig
§fn default() -> RetryConfig
Returns the “default value” for a type. Read moreAuto Trait Implementations§
§impl Freeze for RetryConfig
§impl RefUnwindSafe for RetryConfig
§impl Send for RetryConfig
§impl Sync for RetryConfig
§impl Unpin for RetryConfig
§impl UnwindSafe for RetryConfig
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html b/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html
index b171e5d50b..bab3e0811b 100644
--- a/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html
+++ b/pr/2610/docs/iroh/blobs/downloader/trait.Dialer.html
@@ -1,4 +1,4 @@
-Dialer in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Dialer
source · pub trait Dialer: Stream<Item = (PublicKey, Result<Self::Connection, Error>)> + Unpin {
+Dialer in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Dialer
pub trait Dialer: Stream<Item = (PublicKey, Result<Self::Connection, Error>)> + Unpin {
type Connection: Clone + 'static;
// Required methods
@@ -7,9 +7,9 @@
fn is_pending(&self, node: PublicKey) -> bool;
fn node_id(&self) -> PublicKey;
}
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: PublicKey)
Dial a node.
-sourcefn pending_count(&self) -> usize
Get the number of dialing nodes.
-sourcefn is_pending(&self, node: PublicKey) -> bool
Check if a node is being dialed.
-Implementors§
source§impl Dialer for Dialer
§type Connection = Connection
\ No newline at end of file
+
Required Associated Types§
type Connection: Clone + 'static
Type of connections returned by the Dialer.
+Required Methods§
fn queue_dial(&mut self, node_id: PublicKey)
Dial a node.
+fn pending_count(&self) -> usize
Get the number of dialing nodes.
+fn is_pending(&self, node: PublicKey) -> bool
Check if a node is being dialed.
+Implementors§
§impl Dialer for Dialer
§type Connection = Connection
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html b/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html
index 7db7547404..1433d1ad51 100644
--- a/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html
+++ b/pr/2610/docs/iroh/blobs/downloader/trait.Getter.html
@@ -1,4 +1,4 @@
-Getter in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Getter
source · pub trait Getter {
+Getter in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::Getter
pub trait Getter {
type Connection: 'static;
type NeedsConn: NeedsConn<Self::Connection>;
@@ -9,9 +9,9 @@
progress_sender: BroadcastProgressSender
) -> Pin<Box<dyn Future<Output = Result<GetOutput<Self::NeedsConn>, FailureAction>>>>;
}
Expand description
Trait modelling performing a single request over a connection. This allows for IO-less testing.
-Required Associated Types§
sourcetype Connection: 'static
Type of connections the Getter requires to perform a download.
-sourcetype NeedsConn: NeedsConn<Self::Connection>
Type of the intermediary state returned from Self::get if a connection is needed.
-Required Methods§
Required Associated Types§
type Connection: 'static
Type of connections the Getter requires to perform a download.
+type NeedsConn: NeedsConn<Self::Connection>
Type of the intermediary state returned from Self::get if a connection is needed.
+Required Methods§
fn get(
&mut self,
kind: DownloadKind,
progress_sender: BroadcastProgressSender
diff --git a/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html b/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html
index 43b89e6c03..da67052292 100644
--- a/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html
+++ b/pr/2610/docs/iroh/blobs/downloader/trait.NeedsConn.html
@@ -1,12 +1,12 @@
-NeedsConn in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::NeedsConn
source · pub trait NeedsConn<C>: Debug + 'static {
+NeedsConn in iroh::blobs::downloader - Rust Trait iroh::blobs::downloader::NeedsConn
pub trait NeedsConn<C>: Debug + 'static {
// Required method
fn proceed(
self,
conn: C
) -> Pin<Box<dyn Future<Output = Result<Stats, FailureAction>>>>;
}
Expand description
Trait modelling the intermediary state when a connection is needed to proceed.
-Required Methods§
Required Methods§
Implementors§
source§impl NeedsConn<Connection> for GetStateNeedsConn
\ No newline at end of file
+
Implementors§
§impl NeedsConn<Connection> for GetStateNeedsConn
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html b/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html
index b2e56959a9..993565e37d 100644
--- a/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html
+++ b/pr/2610/docs/iroh/blobs/export/enum.ExportProgress.html
@@ -1,4 +1,4 @@
-ExportProgress in iroh::blobs::export - Rust Enum iroh::blobs::export::ExportProgress
source · pub enum ExportProgress {
+ExportProgress in iroh::blobs::export - Rust Enum iroh::blobs::export::ExportProgress
pub enum ExportProgress {
Found {
id: u64,
hash: Hash,
@@ -31,10 +31,10 @@ to the specified out path.
§AllDone
We are done with the whole operation.
§Abort(RpcError)
We got an error and need to abort.
-
Trait Implementations§
source§impl Clone for ExportProgress
source§fn clone(&self) -> ExportProgress
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 ExportProgress
source§impl<'de> Deserialize<'de> for ExportProgress
source§fn deserialize<__D>(
+
Trait Implementations§
§impl Clone for ExportProgress
§fn clone(&self) -> ExportProgress
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 ExportProgress
§impl<'de> Deserialize<'de> for ExportProgress
§fn deserialize<__D>(
__deserializer: __D
) -> Result<ExportProgress, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for ExportProgress
source§fn serialize<__S>(
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Serialize for ExportProgress
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
diff --git a/pr/2610/docs/iroh/blobs/export/fn.export.html b/pr/2610/docs/iroh/blobs/export/fn.export.html
index 47dcf9dc56..fd30428da6 100644
--- a/pr/2610/docs/iroh/blobs/export/fn.export.html
+++ b/pr/2610/docs/iroh/blobs/export/fn.export.html
@@ -1,4 +1,4 @@
-export in iroh::blobs::export - Rust pub async fn export<D>(
+export in iroh::blobs::export - Rust pub async fn export<D>(
db: &D,
hash: Hash,
outpath: PathBuf,
diff --git a/pr/2610/docs/iroh/blobs/export/fn.export_blob.html b/pr/2610/docs/iroh/blobs/export/fn.export_blob.html
index 5f3b87c1e3..1e8d43f8dd 100644
--- a/pr/2610/docs/iroh/blobs/export/fn.export_blob.html
+++ b/pr/2610/docs/iroh/blobs/export/fn.export_blob.html
@@ -1,4 +1,4 @@
-export_blob in iroh::blobs::export - Rust Function iroh::blobs::export::export_blob
source · pub async fn export_blob<D>(
+export_blob in iroh::blobs::export - Rust Function iroh::blobs::export::export_blob
pub async fn export_blob<D>(
db: &D,
hash: Hash,
outpath: PathBuf,
diff --git a/pr/2610/docs/iroh/blobs/export/fn.export_collection.html b/pr/2610/docs/iroh/blobs/export/fn.export_collection.html
index 3006f090c9..46c48078ce 100644
--- a/pr/2610/docs/iroh/blobs/export/fn.export_collection.html
+++ b/pr/2610/docs/iroh/blobs/export/fn.export_collection.html
@@ -1,4 +1,4 @@
-export_collection in iroh::blobs::export - Rust Function iroh::blobs::export::export_collection
source · pub async fn export_collection<D>(
+export_collection in iroh::blobs::export - Rust Function iroh::blobs::export::export_collection
pub async fn export_collection<D>(
db: &D,
hash: Hash,
outpath: PathBuf,
diff --git a/pr/2610/docs/iroh/blobs/export/index.html b/pr/2610/docs/iroh/blobs/export/index.html
index b5100b73a9..5d603bba61 100644
--- a/pr/2610/docs/iroh/blobs/export/index.html
+++ b/pr/2610/docs/iroh/blobs/export/index.html
@@ -1,2 +1,2 @@
-iroh::blobs::export - Rust Expand description
Functions to export data from a store
+iroh::blobs::export - Rust
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/format/collection/index.html b/pr/2610/docs/iroh/blobs/format/collection/index.html
index 09692a2b2a..934db16299 100644
--- a/pr/2610/docs/iroh/blobs/format/collection/index.html
+++ b/pr/2610/docs/iroh/blobs/format/collection/index.html
@@ -1,2 +1,2 @@
-iroh::blobs::format::collection - Rust Module iroh::blobs::format::collection
source · Expand description
The collection type used by iroh
+iroh::blobs::format::collection - Rust
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html b/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html
index 0495f38015..b946c17b2f 100644
--- a/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html
+++ b/pr/2610/docs/iroh/blobs/format/collection/struct.Collection.html
@@ -1,51 +1,51 @@
-Collection in iroh::blobs::format::collection - Rust Struct iroh::blobs::format::collection::Collection
source · pub struct Collection { /* private fields */ }
Expand description
A collection of blobs
+Collection in iroh::blobs::format::collection - Rust Struct iroh::blobs::format::collection::Collection
pub struct Collection { /* private fields */ }
Expand description
A collection of blobs
Note that the format is subject to change.
-Implementations§
source§impl Collection
Implementations§
§impl Collection
pub const HEADER: &'static [u8; 13] = b"CollectionV0."
The header for the collection format.
This is the start of the metadata blob.
-sourcepub fn to_blobs(&self) -> impl DoubleEndedIterator
Convert the collection to an iterator of blobs, with the last being the
+
pub fn to_blobs(&self) -> impl DoubleEndedIterator
Convert the collection to an iterator of blobs, with the last being the
root blob.
To persist the collection, write all the blobs to storage, and use the
hash of the last blob as the collection hash.
-pub async fn read_fsm(
fsm_at_start_root: AtStartRoot
) -> Result<(EndBlobNext, HashSeq, Collection), Error>
Read the collection from a get fsm.
Returns the fsm at the start of the first child blob (if any),
the links array, and the collection.
-sourcepub async fn read_fsm_all(
+
pub async fn read_fsm_all(
fsm_at_start_root: AtStartRoot
) -> Result<(Collection, BTreeMap<u64, Bytes>, Stats), Error>
Read the collection and all it’s children from a get fsm.
Returns the collection, a map from blob offsets to bytes, and the stats.
-pub async fn load(
root: Hash,
store: &impl SimpleStore
) -> Result<Collection, Error>
Create a new collection from a hash sequence and metadata.
-pub async fn load_db<D>(db: &D, root: &Hash) -> Result<Collection, Error>where
D: Map,
Load a collection from a store given a root hash
This assumes that both the links and the metadata of the collection is stored in the store.
It does not require that all child blobs are stored in the store.
-pub async fn store<D>(self, db: &D) -> Result<TempTag, Error>where
D: Store,
Store a collection in a store. returns the root hash of the collection
as a TempTag.
-Trait Implementations§
source§impl Clone for Collection
source§fn clone(&self) -> Collection
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 Collection
source§impl Default for Collection
source§fn default() -> Collection
Returns the “default value” for a type. Read moresource§impl<'de> Deserialize<'de> for Collection
source§fn deserialize<__D>(
+
Trait Implementations§
§impl Clone for Collection
§fn clone(&self) -> Collection
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 Collection
§impl Default for Collection
§fn default() -> Collection
Returns the “default value” for a type. Read more§impl<'de> Deserialize<'de> for Collection
§fn deserialize<__D>(
__deserializer: __D
) -> Result<Collection, <__D as Deserializer<'de>>::Error>where
- __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl<K, V> Extend<(K, V)> for Collectionwhere
+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl<K, V> Extend<(K, V)> for Collection
source§fn extend<T>(&mut self, iter: T)where
- T: IntoIterator<Item = (K, V)>,
Extends a collection with the contents of an iterator. Read moresource§fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (extend_one)Extends a collection with exactly one element.source§fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (extend_one)Reserves capacity in a collection for the given number of additional elements. Read moresource§impl<K, V> FromIterator<(K, V)> for Collection
§fn extend<T>(&mut self, iter: T)where
+ T: IntoIterator<Item = (K, V)>,
Extends a collection with the contents of an iterator. Read moresource§fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (extend_one)Extends a collection with exactly one element.source§fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (extend_one)Reserves capacity in a collection for the given number of additional elements. Read more§impl<K, V> FromIterator<(K, V)> for Collection
source§fn from_iter<T>(iter: T) -> Collectionwhere
- T: IntoIterator<Item = (K, V)>,
Creates a value from an iterator. Read moresource§impl Index<usize> for Collection
source§impl IntoIterator for Collection
§type IntoIter = IntoIter<<Collection as IntoIterator>::Item>
Which kind of iterator are we turning this into?source§fn into_iter(self) -> <Collection as IntoIterator>::IntoIter
Creates an iterator from a value. Read moresource§impl PartialEq for Collection
source§fn eq(&self, other: &Collection) -> bool
§fn from_iter<T>(iter: T) -> Collectionwhere
+ T: IntoIterator<Item = (K, V)>,
Creates a value from an iterator. Read more§impl Index<usize> for Collection
§impl IntoIterator for Collection
§type IntoIter = IntoIter<<Collection as IntoIterator>::Item>
Which kind of iterator are we turning this into?§fn into_iter(self) -> <Collection as IntoIterator>::IntoIter
Creates an iterator from a value. Read more§impl PartialEq for Collection
§fn eq(&self, other: &Collection) -> bool
This method tests for self and other values to be equal, and is used
by ==.§impl Serialize for Collection
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl StructuralPartialEq for Collection
Auto Trait Implementations§
§impl Freeze for Collection
§impl RefUnwindSafe for Collection
§impl Send for Collection
§impl Sync for Collection
§impl Unpin for Collection
§impl UnwindSafe for Collection
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl StructuralPartialEq for Collection
Auto Trait Implementations§
§impl Freeze for Collection
§impl RefUnwindSafe for Collection
§impl Send for Collection
§impl Sync for Collection
§impl Unpin for Collection
§impl UnwindSafe for Collection
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html b/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html
index 8060225b4a..e645c48a2f 100644
--- a/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html
+++ b/pr/2610/docs/iroh/blobs/format/collection/trait.SimpleStore.html
@@ -1,9 +1,9 @@
-SimpleStore in iroh::blobs::format::collection - Rust Trait iroh::blobs::format::collection::SimpleStore
source · pub trait SimpleStore {
+SimpleStore in iroh::blobs::format::collection - Rust Trait iroh::blobs::format::collection::SimpleStore
pub trait SimpleStore {
// Required method
fn load(
&self,
hash: Hash
) -> impl Future<Output = Result<Bytes, Error>> + Send;
}
Expand description
A simple store trait for loading blobs
-Required Methods§
sourcefn load(&self, hash: Hash) -> impl Future<Output = Result<Bytes, Error>> + Send
Load a blob from the store
+Required Methods§
Object Safety§
This trait is not object safe.Implementors§
source§impl SimpleStore for Client
\ No newline at end of file
diff --git a/pr/2610/docs/iroh/blobs/format/index.html b/pr/2610/docs/iroh/blobs/format/index.html
index 556b45cc6d..4d957f0c6f 100644
--- a/pr/2610/docs/iroh/blobs/format/index.html
+++ b/pr/2610/docs/iroh/blobs/format/index.html
@@ -1,4 +1,4 @@
-iroh::blobs::format - Rust Expand description
Defines data formats for HashSeq.
+iroh::blobs::format - Rust Expand description
Defines data formats for HashSeq.
The exact details how to use a HashSeq for specific purposes is up to the
user. However, the following approach is used by iroh formats:
The first child blob is a metadata blob. It starts with a header, followed
diff --git a/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html b/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html
index 6206af3f7a..4db2508178 100644
--- a/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html
+++ b/pr/2610/docs/iroh/blobs/get/db/enum.BlobId.html
@@ -1,27 +1,27 @@
-
BlobId in iroh::blobs::get::db - Rust pub enum BlobId {
+BlobId in iroh::blobs::get::db - Rust pub enum BlobId {
Root,
Child(NonZero<u64>),
}
Expand description
The id of a blob in a transfer
Variants§
Trait Implementations§
source§impl<'de> Deserialize<'de> for BlobId
source§fn deserialize<__D>(
+
Trait Implementations§
§impl<'de> Deserialize<'de> for BlobId
§fn deserialize<__D>(
__deserializer: __D
) -> Result<BlobId, <__D as Deserializer<'de>>::Error>where
- __D: