diff --git a/pr/2574/docs/help.html b/pr/2574/docs/help.html index 49d451041f..522384bdd1 100644 --- a/pr/2574/docs/help.html +++ b/pr/2574/docs/help.html @@ -1 +1 @@ -
Convert the hash to a hex string.
Convert to a base32 string limited to the first 10 bytes for a friendly string representation of the hash.
-source. Read moreError when decoding the base32.
Error when decoding the public key.
-Support for parsing strings directly.
If you need more control over the error first create a Url and use RelayUrl::from
instead.
This looks like a ticket, but postcard deserialization failed.
This looks like a ticket, but base32 decoding failed.
Verification of the deserialized bytes failed.
-pub const IROH_BLOCK_SIZE: BlockSize;Block size used by iroh, 2^4*1024 = 16KiB
+pub const IROH_BLOCK_SIZE: BlockSize;Block size used by iroh, 2^4*1024 = 16KiB
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.
-source. Read moresource. Read morepub 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.
-Handle downloading blobs and collections concurrently and from nodes.
+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.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/2574/docs/iroh/blobs/downloader/struct.DownloadHandle.html b/pr/2574/docs/iroh/blobs/downloader/struct.DownloadHandle.html
index fee880ee72..49af822cb6 100644
--- a/pr/2574/docs/iroh/blobs/downloader/struct.DownloadHandle.html
+++ b/pr/2574/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/2574/docs/iroh/blobs/downloader/struct.DownloadKind.html b/pr/2574/docs/iroh/blobs/downloader/struct.DownloadKind.html
index 265347c854..45ae08918b 100644
--- a/pr/2574/docs/iroh/blobs/downloader/struct.DownloadKind.html
+++ b/pr/2574/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/2574/docs/iroh/blobs/downloader/struct.DownloadRequest.html b/pr/2574/docs/iroh/blobs/downloader/struct.DownloadRequest.html
index 33ce5d0fdd..b6a89242c9 100644
--- a/pr/2574/docs/iroh/blobs/downloader/struct.DownloadRequest.html
+++ b/pr/2574/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: FlumeProgressSender<DownloadProgress>
+ 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/2574/docs/iroh/blobs/downloader/struct.Downloader.html b/pr/2574/docs/iroh/blobs/downloader/struct.Downloader.html
index 7616ffe4bd..eee94711b8 100644
--- a/pr/2574/docs/iroh/blobs/downloader/struct.Downloader.html
+++ b/pr/2574/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/2574/docs/iroh/blobs/downloader/struct.IntentId.html b/pr/2574/docs/iroh/blobs/downloader/struct.IntentId.html
index 85a646c784..0d4351895a 100644
--- a/pr/2574/docs/iroh/blobs/downloader/struct.IntentId.html
+++ b/pr/2574/docs/iroh/blobs/downloader/struct.IntentId.html
@@ -1,16 +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/2574/docs/iroh/blobs/downloader/struct.RetryConfig.html b/pr/2574/docs/iroh/blobs/downloader/struct.RetryConfig.html
index 827ebdd12e..be8660c9e1 100644
--- a/pr/2574/docs/iroh/blobs/downloader/struct.RetryConfig.html
+++ b/pr/2574/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/2574/docs/iroh/blobs/downloader/trait.Dialer.html b/pr/2574/docs/iroh/blobs/downloader/trait.Dialer.html
index 3564e47a8e..d2c0d996e3 100644
--- a/pr/2574/docs/iroh/blobs/downloader/trait.Dialer.html
+++ b/pr/2574/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;
// Required methods
@@ -6,8 +6,8 @@
fn pending_count(&self) -> usize;
fn is_pending(&self, node: PublicKey) -> bool;
}
Expand description
Trait modeling a dialer. This allows for IO-less testing.
-Required Associated Types§
sourcetype Connection: Clone
Type of connections returned by the Dialer.
-Required Methods§
sourcefn queue_dial(&mut self, node_id: 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
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/2574/docs/iroh/blobs/downloader/trait.Getter.html b/pr/2574/docs/iroh/blobs/downloader/trait.Getter.html
index f7093e411a..6a7aa94a18 100644
--- a/pr/2574/docs/iroh/blobs/downloader/trait.Getter.html
+++ b/pr/2574/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;
// Required method
@@ -9,8 +9,8 @@
progress_sender: BroadcastProgressSender
) -> Pin<Box<dyn Future<Output = Result<Stats, FailureAction>>>>;
}
Expand description
Trait modelling performing a single request over a connection. This allows for IO-less testing.
-Required Associated Types§
sourcetype Connection
Type of connections the Getter requires to perform a download.
-Required Methods§
Required Associated Types§
type Connection
Type of connections the Getter requires to perform a download.
+Required Methods§
fn get(
&mut self,
kind: DownloadKind,
conn: Self::Connection,
diff --git a/pr/2574/docs/iroh/blobs/export/enum.ExportProgress.html b/pr/2574/docs/iroh/blobs/export/enum.ExportProgress.html
index 98f3525817..dc56e135b5 100644
--- a/pr/2574/docs/iroh/blobs/export/enum.ExportProgress.html
+++ b/pr/2574/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/2574/docs/iroh/blobs/export/fn.export.html b/pr/2574/docs/iroh/blobs/export/fn.export.html
index e8512e151b..1b14d043c6 100644
--- a/pr/2574/docs/iroh/blobs/export/fn.export.html
+++ b/pr/2574/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/2574/docs/iroh/blobs/export/fn.export_blob.html b/pr/2574/docs/iroh/blobs/export/fn.export_blob.html
index a4c85daa2f..374845fd62 100644
--- a/pr/2574/docs/iroh/blobs/export/fn.export_blob.html
+++ b/pr/2574/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/2574/docs/iroh/blobs/export/fn.export_collection.html b/pr/2574/docs/iroh/blobs/export/fn.export_collection.html
index 1deafbfffa..ecdf4e8137 100644
--- a/pr/2574/docs/iroh/blobs/export/fn.export_collection.html
+++ b/pr/2574/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/2574/docs/iroh/blobs/export/index.html b/pr/2574/docs/iroh/blobs/export/index.html
index 4a978da594..46b7f53754 100644
--- a/pr/2574/docs/iroh/blobs/export/index.html
+++ b/pr/2574/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/2574/docs/iroh/blobs/format/collection/index.html b/pr/2574/docs/iroh/blobs/format/collection/index.html
index a48119c9e1..22a9f8bb27 100644
--- a/pr/2574/docs/iroh/blobs/format/collection/index.html
+++ b/pr/2574/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/2574/docs/iroh/blobs/format/collection/struct.Collection.html b/pr/2574/docs/iroh/blobs/format/collection/struct.Collection.html
index ad0771f5f3..0147ddced9 100644
--- a/pr/2574/docs/iroh/blobs/format/collection/struct.Collection.html
+++ b/pr/2574/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/2574/docs/iroh/blobs/format/collection/trait.SimpleStore.html b/pr/2574/docs/iroh/blobs/format/collection/trait.SimpleStore.html
index b47058796a..e8bd0245ca 100644
--- a/pr/2574/docs/iroh/blobs/format/collection/trait.SimpleStore.html
+++ b/pr/2574/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/2574/docs/iroh/blobs/format/index.html b/pr/2574/docs/iroh/blobs/format/index.html
index 79827f867a..90181f6efb 100644
--- a/pr/2574/docs/iroh/blobs/format/index.html
+++ b/pr/2574/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/2574/docs/iroh/blobs/get/db/enum.BlobId.html b/pr/2574/docs/iroh/blobs/get/db/enum.BlobId.html
index 9676f2a857..3a170a8131 100644
--- a/pr/2574/docs/iroh/blobs/get/db/enum.BlobId.html
+++ b/pr/2574/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: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Ord for BlobId
source§impl PartialOrd for BlobId
§impl PartialOrd for BlobId
§fn partial_cmp(&self, other: &BlobId) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more§impl Serialize for BlobId
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
- __S: Serializer,
Serialize this value into the given Serde serializer. Read moresource§impl Copy for BlobId
source§impl Eq for BlobId
source§impl StructuralPartialEq for BlobId
Auto Trait Implementations§
§impl Freeze for BlobId
§impl RefUnwindSafe for BlobId
§impl Send for BlobId
§impl Sync for BlobId
§impl Unpin for BlobId
§impl UnwindSafe for BlobId
Blanket Implementations§
source§impl<T> Any for Twhere
+ __S: Serializer,
Serialize this value into the given Serde serializer. Read more§impl Copy for BlobId
§impl Eq for BlobId
§impl StructuralPartialEq for BlobId
Auto Trait Implementations§
§impl Freeze for BlobId
§impl RefUnwindSafe for BlobId
§impl Send for BlobId
§impl Sync for BlobId
§impl Unpin for BlobId
§impl UnwindSafe for BlobId
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
diff --git a/pr/2574/docs/iroh/blobs/get/db/enum.BlobInfo.html b/pr/2574/docs/iroh/blobs/get/db/enum.BlobInfo.html
index 29bc222241..9fee6b9c35 100644
--- a/pr/2574/docs/iroh/blobs/get/db/enum.BlobInfo.html
+++ b/pr/2574/docs/iroh/blobs/get/db/enum.BlobInfo.html
@@ -1,4 +1,4 @@
-BlobInfo in iroh::blobs::get::db - Rust