From 96dbb4e83fa2dc64f49eacb26509b03a6dc8ebc7 Mon Sep 17 00:00:00 2001 From: flub Date: Tue, 13 Aug 2024 16:29:12 +0000 Subject: [PATCH] deploy: 2374b971f1dcc20d39be3774bb77b271fe1e4ce2 --- pr/2610/docs/iroh/base/hash/struct.Hash.html | 2 +- .../iroh/base/hash/struct.HashAndFormat.html | 2 +- .../iroh/blobs/constant.IROH_BLOCK_SIZE.html | 2 +- .../blobs/downloader/enum.DownloadError.html | 4 +- .../blobs/downloader/enum.FailureAction.html | 4 +- .../iroh/blobs/downloader/enum.GetOutput.html | 6 +-- pr/2610/docs/iroh/blobs/downloader/index.html | 2 +- .../downloader/struct.ConcurrencyLimits.html | 4 +- .../downloader/struct.DownloadHandle.html | 4 +- .../blobs/downloader/struct.DownloadKind.html | 14 ++--- .../downloader/struct.DownloadRequest.html | 8 +-- .../blobs/downloader/struct.Downloader.html | 14 ++--- .../blobs/downloader/struct.IntentId.html | 12 ++--- .../blobs/downloader/struct.RetryConfig.html | 4 +- .../iroh/blobs/downloader/trait.Dialer.html | 14 ++--- .../iroh/blobs/downloader/trait.Getter.html | 8 +-- .../blobs/downloader/trait.NeedsConn.html | 6 +-- .../blobs/export/enum.ExportProgress.html | 6 +-- pr/2610/docs/iroh/blobs/export/fn.export.html | 2 +- .../iroh/blobs/export/fn.export_blob.html | 2 +- .../blobs/export/fn.export_collection.html | 2 +- pr/2610/docs/iroh/blobs/export/index.html | 2 +- .../iroh/blobs/format/collection/index.html | 2 +- .../format/collection/struct.Collection.html | 40 +++++++------- .../format/collection/trait.SimpleStore.html | 4 +- pr/2610/docs/iroh/blobs/format/index.html | 2 +- .../docs/iroh/blobs/get/db/enum.BlobId.html | 16 +++--- .../docs/iroh/blobs/get/db/enum.BlobInfo.html | 16 +++--- .../blobs/get/db/enum.DownloadProgress.html | 6 +-- .../docs/iroh/blobs/get/db/enum.GetState.html | 4 +- .../docs/iroh/blobs/get/db/fn.blob_info.html | 2 +- .../docs/iroh/blobs/get/db/fn.get_to_db.html | 2 +- .../blobs/get/db/fn.get_to_db_in_steps.html | 2 +- .../iroh/blobs/get/db/fn.valid_ranges.html | 2 +- pr/2610/docs/iroh/blobs/get/db/index.html | 2 +- .../get/db/struct.GetStateNeedsConn.html | 6 +-- .../iroh/blobs/get/enum.GetResponseError.html | 4 +- .../iroh/blobs/get/error/enum.GetError.html | 4 +- pr/2610/docs/iroh/blobs/get/error/index.html | 2 +- .../get/fsm/enum.AtBlobHeaderNextError.html | 4 +- .../blobs/get/fsm/enum.BlobContentNext.html | 6 +-- .../blobs/get/fsm/enum.ConnectedNext.html | 4 +- .../get/fsm/enum.ConnectedNextError.html | 4 +- .../iroh/blobs/get/fsm/enum.DecodeError.html | 4 +- .../iroh/blobs/get/fsm/enum.EndBlobNext.html | 4 +- pr/2610/docs/iroh/blobs/get/fsm/fn.start.html | 2 +- pr/2610/docs/iroh/blobs/get/fsm/index.html | 2 +- .../blobs/get/fsm/struct.AtBlobContent.html | 24 ++++----- .../blobs/get/fsm/struct.AtBlobHeader.html | 22 ++++---- .../iroh/blobs/get/fsm/struct.AtClosing.html | 6 +-- .../blobs/get/fsm/struct.AtConnected.html | 6 +-- .../iroh/blobs/get/fsm/struct.AtEndBlob.html | 6 +-- .../iroh/blobs/get/fsm/struct.AtInitial.html | 8 +-- .../blobs/get/fsm/struct.AtStartChild.html | 12 ++--- .../blobs/get/fsm/struct.AtStartRoot.html | 12 ++--- pr/2610/docs/iroh/blobs/get/index.html | 2 +- .../blobs/get/progress/enum.BlobProgress.html | 10 ++-- .../docs/iroh/blobs/get/progress/index.html | 2 +- .../blobs/get/progress/struct.BlobState.html | 12 ++--- .../get/progress/struct.TransferState.html | 20 +++---- .../blobs/get/progress/type.ProgressId.html | 2 +- .../blobs/get/request/fn.get_chunk_probe.html | 2 +- .../request/fn.get_hash_seq_and_sizes.html | 2 +- .../get/request/fn.get_unverified_size.html | 2 +- .../get/request/fn.get_verified_size.html | 2 +- .../request/fn.random_hash_seq_ranges.html | 2 +- .../docs/iroh/blobs/get/request/index.html | 2 +- pr/2610/docs/iroh/blobs/get/struct.Stats.html | 12 ++--- .../iroh/blobs/hashseq/fn.parse_hash_seq.html | 2 +- pr/2610/docs/iroh/blobs/hashseq/index.html | 2 +- .../iroh/blobs/hashseq/struct.HashSeq.html | 20 +++---- .../blobs/hashseq/struct.HashSeqIter.html | 4 +- .../blobs/hashseq/struct.HashSeqStream.html | 8 +-- pr/2610/docs/iroh/blobs/index.html | 2 +- pr/2610/docs/iroh/blobs/metrics/index.html | 2 +- .../iroh/blobs/metrics/struct.Metrics.html | 4 +- .../iroh/blobs/protocol/constant.ALPN.html | 2 +- .../protocol/constant.MAX_MESSAGE_SIZE.html | 2 +- .../docs/iroh/blobs/protocol/enum.Closed.html | 10 ++-- .../iroh/blobs/protocol/enum.Request.html | 10 ++-- pr/2610/docs/iroh/blobs/protocol/index.html | 2 +- .../blobs/protocol/struct.GetRequest.html | 20 +++---- .../struct.NonEmptyRequestRangeSpecIter.html | 4 +- .../iroh/blobs/protocol/struct.RangeSpec.html | 24 ++++----- .../blobs/protocol/struct.RangeSpecSeq.html | 28 +++++----- .../protocol/struct.UnknownErrorCode.html | 4 +- .../iroh/blobs/provider/enum.AddProgress.html | 6 +-- .../docs/iroh/blobs/provider/enum.Event.html | 4 +- .../iroh/blobs/provider/enum.SentStatus.html | 6 +-- .../blobs/provider/fn.handle_connection.html | 2 +- .../iroh/blobs/provider/fn.handle_get.html | 2 +- .../iroh/blobs/provider/fn.read_request.html | 2 +- .../iroh/blobs/provider/fn.send_blob.html | 2 +- .../provider/fn.transfer_collection.html | 2 +- pr/2610/docs/iroh/blobs/provider/index.html | 2 +- .../blobs/provider/struct.EventSender.html | 12 ++--- .../blobs/provider/struct.ResponseWriter.html | 4 +- .../blobs/provider/struct.TransferStats.html | 4 +- .../provider/trait.CustomEventSender.html | 6 +-- .../store/bao_tree/io/enum.DecodeError.html | 2 +- .../io/fsm/trait.AsyncSliceWriter.html | 4 +- .../store/bao_tree/io/sync/trait.ReadAt.html | 2 +- .../store/bao_tree/io/sync/trait.Size.html | 2 +- .../store/bao_tree/io/sync/trait.WriteAt.html | 2 +- .../iroh/blobs/store/enum.BaoBlobSize.html | 14 ++--- .../store/enum.ConsistencyCheckProgress.html | 6 +-- .../iroh/blobs/store/enum.EntryStatus.html | 6 +-- pr/2610/docs/iroh/blobs/store/enum.Event.html | 6 +-- .../iroh/blobs/store/enum.ExportFormat.html | 6 +-- .../iroh/blobs/store/enum.ExportMode.html | 10 ++-- .../iroh/blobs/store/enum.ExportProgress.html | 4 +- .../iroh/blobs/store/enum.GcMarkEvent.html | 4 +- .../iroh/blobs/store/enum.GcSweepEvent.html | 4 +- .../iroh/blobs/store/enum.ImportMode.html | 6 +-- .../iroh/blobs/store/enum.ImportProgress.html | 4 +- .../iroh/blobs/store/enum.ReportLevel.html | 14 ++--- .../blobs/store/enum.ValidateProgress.html | 6 +-- pr/2610/docs/iroh/blobs/store/fs/index.html | 2 +- .../blobs/store/fs/struct.BatchOptions.html | 4 +- .../blobs/store/fs/struct.FlatStorePaths.html | 4 +- .../blobs/store/fs/struct.InlineOptions.html | 8 +-- .../iroh/blobs/store/fs/struct.Options.html | 4 +- .../blobs/store/fs/struct.PathOptions.html | 4 +- .../iroh/blobs/store/fs/struct.Store.html | 54 +++++++++---------- .../docs/iroh/blobs/store/fs/type.Entry.html | 2 +- pr/2610/docs/iroh/blobs/store/index.html | 2 +- pr/2610/docs/iroh/blobs/store/mem/index.html | 2 +- .../iroh/blobs/store/mem/struct.Entry.html | 4 +- .../iroh/blobs/store/mem/struct.Store.html | 34 ++++++------ .../iroh/blobs/store/readonly_mem/index.html | 2 +- .../store/readonly_mem/struct.Entry.html | 4 +- .../store/readonly_mem/struct.Store.html | 44 +++++++-------- .../blobs/store/trait.BaoBatchWriter.html | 12 ++--- pr/2610/docs/iroh/blobs/store/trait.Map.html | 8 +-- .../docs/iroh/blobs/store/trait.MapEntry.html | 14 ++--- .../iroh/blobs/store/trait.MapEntryMut.html | 6 +-- .../docs/iroh/blobs/store/trait.MapMut.html | 16 +++--- .../iroh/blobs/store/trait.ReadableStore.html | 16 +++--- .../docs/iroh/blobs/store/trait.Store.html | 30 +++++------ .../docs/iroh/blobs/store/type.DbIter.html | 2 +- .../blobs/store/type.ExportProgressCb.html | 2 +- pr/2610/docs/iroh/blobs/struct.Hash.html | 2 +- .../docs/iroh/blobs/struct.HashAndFormat.html | 2 +- pr/2610/docs/iroh/blobs/struct.Tag.html | 24 ++++----- pr/2610/docs/iroh/blobs/struct.TempTag.html | 14 ++--- .../docs/iroh/blobs/util/enum.MemOrFile.html | 26 ++++----- .../iroh/blobs/util/enum.SetTagOption.html | 14 ++--- .../docs/iroh/blobs/util/fn.total_bytes.html | 2 +- pr/2610/docs/iroh/blobs/util/index.html | 2 +- pr/2610/docs/iroh/blobs/util/io/index.html | 2 +- .../blobs/util/io/struct.TrackingReader.html | 14 ++--- .../blobs/util/io/struct.TrackingWriter.html | 20 +++---- .../blobs/util/local_pool/enum.PanicMode.html | 6 +-- .../util/local_pool/enum.SpawnError.html | 4 +- .../iroh/blobs/util/local_pool/index.html | 2 +- .../blobs/util/local_pool/struct.Config.html | 4 +- .../util/local_pool/struct.LocalPool.html | 28 +++++----- .../local_pool/struct.LocalPoolHandle.html | 16 +++--- .../blobs/util/local_pool/struct.Run.html | 8 +-- .../util/progress/enum.ProgressSendError.html | 4 +- .../docs/iroh/blobs/util/progress/index.html | 2 +- .../struct.AsyncChannelProgressSender.html | 20 +++---- .../progress/struct.BoxedProgressSender.html | 12 ++--- .../struct.FallibleProgressSliceWriter.html | 16 +++--- .../progress/struct.FlumeProgressSender.html | 20 +++---- .../progress/struct.IgnoreProgressSender.html | 10 ++-- .../progress/struct.ProgressSliceWriter.html | 16 +++--- .../util/progress/struct.WithFilterMap.html | 14 ++--- .../blobs/util/progress/struct.WithMap.html | 14 ++--- .../util/progress/trait.IdGenerator.html | 14 ++--- .../util/progress/trait.ProgressSender.html | 40 +++++++------- .../progress/type.ProgressSendResult.html | 2 +- .../iroh/blobs/util/struct.SparseMemFile.html | 14 ++--- pr/2610/docs/iroh/blobs/util/struct.Tag.html | 24 ++++----- .../docs/iroh/blobs/util/struct.TempTag.html | 14 ++--- .../iroh/blobs/util/trait.TagCounter.html | 10 ++-- .../docs/iroh/blobs/util/trait.TagDrop.html | 6 +-- .../docs/iroh/net/dialer/struct.Dialer.html | 2 +- .../net/endpoint/enum.ConnectionError.html | 2 +- .../iroh/net/endpoint/enum.ReadError.html | 2 +- .../iroh/net/endpoint/enum.WriteError.html | 2 +- .../iroh/net/endpoint/struct.Connection.html | 2 +- .../iroh/net/endpoint/struct.NodeInfo.html | 2 +- .../docs/iroh/net/endpoint/struct.VarInt.html | 4 +- .../iroh_blobs/metrics/struct.Metrics.html | 28 +++++----- .../docs/iroh_docs/engine/struct.Engine.html | 2 +- pr/2610/docs/iroh_docs/struct.AuthorId.html | 2 +- .../iroh_docs/struct.AuthorPublicKey.html | 2 +- .../docs/iroh_docs/struct.NamespaceId.html | 2 +- .../iroh_docs/struct.NamespacePublicKey.html | 2 +- .../docs/iroh_gossip/net/enum.Command.html | 4 +- .../iroh_gossip/net/enum.GossipEvent.html | 14 ++--- .../docs/iroh_gossip/net/struct.Gossip.html | 6 +-- .../net/struct.GossipReceiver.html | 2 +- .../iroh_gossip/net/struct.GossipSender.html | 2 +- .../iroh_gossip/net/struct.JoinOptions.html | 6 +-- .../docs/iroh_gossip/net/struct.Message.html | 4 +- .../iroh_gossip/net/type.ProtoCommand.html | 6 +-- .../docs/iroh_gossip/net/type.ProtoEvent.html | 14 ++--- .../iroh_gossip/net/util/fn.read_message.html | 2 +- .../net/util/fn.write_message.html | 2 +- .../iroh_gossip/proto/topic/enum.Event.html | 2 +- .../iroh_net/endpoint/struct.NodeInfo.html | 2 +- .../docs/src/iroh/rpc_protocol/node.rs.html | 2 +- .../magicsock/node_map/node_state.rs.html | 2 +- .../trait.impl/core/convert/trait.From.js | 2 +- .../iroh_metrics/core/trait.Metric.js | 2 +- 207 files changed, 797 insertions(+), 797 deletions(-) diff --git a/pr/2610/docs/iroh/base/hash/struct.Hash.html b/pr/2610/docs/iroh/base/hash/struct.Hash.html index db26a282ee..945f0c95ad 100644 --- a/pr/2610/docs/iroh/base/hash/struct.Hash.html +++ b/pr/2610/docs/iroh/base/hash/struct.Hash.html @@ -9,7 +9,7 @@ representation of the hash.

Trait Implementations§

source§

impl AsRef<[u8]> for Hash

source§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<[u8]> for Hash

source§

fn borrow(&self) -> &[u8] ⓘ

Immutably borrows from an owned value. Read more
source§

impl Borrow<[u8; 32]> for Hash

source§

fn borrow(&self) -> &[u8; 32]

Immutably borrows from an owned value. Read more
source§

impl Clone for Hash

source§

fn clone(&self) -> Hash

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Hash

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Hash

source§

fn deserialize<D>( deserializer: D ) -> Result<Hash, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Hash

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<&[u8; 32]> for Hash

source§

fn from(value: &[u8; 32]) -> Hash

Converts to this type from the input type.
source§

impl From<[u8; 32]> for Hash

source§

fn from(value: [u8; 32]) -> Hash

Converts to this type from the input type.
source§

impl From<Hash> for [u8; 32]

source§

fn from(value: Hash) -> [u8; 32]

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
source§

impl FromIterator<Hash> for HashSeq

source§

fn from_iter<T>(iter: T) -> HashSeq
where + D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Hash

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<&[u8; 32]> for Hash

source§

fn from(value: &[u8; 32]) -> Hash

Converts to this type from the input type.
source§

impl From<[u8; 32]> for Hash

source§

fn from(value: [u8; 32]) -> Hash

Converts to this type from the input type.
source§

impl From<Hash> for [u8; 32]

source§

fn from(value: Hash) -> [u8; 32]

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
§

impl From<Hash> for Hash

§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
§

impl FromIterator<Hash> for HashSeq

§

fn from_iter<T>(iter: T) -> HashSeq
where T: IntoIterator<Item = Hash>,

Creates a value from an iterator. Read more
source§

impl FromStr for Hash

§

type Err = HexOrBase32ParseError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Hash, <Hash as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Hash

source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, diff --git a/pr/2610/docs/iroh/base/hash/struct.HashAndFormat.html b/pr/2610/docs/iroh/base/hash/struct.HashAndFormat.html index ade91cafd1..586d81cbaa 100644 --- a/pr/2610/docs/iroh/base/hash/struct.HashAndFormat.html +++ b/pr/2610/docs/iroh/base/hash/struct.HashAndFormat.html @@ -10,7 +10,7 @@

Trait Implementations§

source§

impl Clone for HashAndFormat

source§

fn clone(&self) -> HashAndFormat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for HashAndFormat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for HashAndFormat

source§

fn deserialize<D>( deserializer: D ) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for HashAndFormat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
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 From<HashAndFormat> for HashAndFormat

source§

fn from(value: HashAndFormat) -> HashAndFormat

Converts to this type from the input type.
source§

impl FromStr for HashAndFormat

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<HashAndFormat, <HashAndFormat as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for HashAndFormat

source§

fn hash<__H>(&self, state: &mut __H)
where + D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for HashAndFormat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

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 From<HashAndFormat> for HashAndFormat

§

fn from(value: HashAndFormat) -> HashAndFormat

Converts to this type from the input type.
source§

impl FromStr for HashAndFormat

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<HashAndFormat, <HashAndFormat as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for HashAndFormat

source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl MaxSize for HashAndFormat

source§

const POSTCARD_MAX_SIZE: usize = 33usize

The maximum possible size that the serialization of this diff --git a/pr/2610/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html b/pr/2610/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html index 4e0567ca36..f6de841885 100644 --- a/pr/2610/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html +++ b/pr/2610/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html @@ -1,2 +1,2 @@ -IROH_BLOCK_SIZE in iroh::blobs - Rust

Constant iroh::blobs::IROH_BLOCK_SIZE

source ·
pub const IROH_BLOCK_SIZE: BlockSize;
Expand description

Block size used by iroh, 2^4*1024 = 16KiB

+IROH_BLOCK_SIZE in iroh::blobs - Rust

Constant iroh::blobs::IROH_BLOCK_SIZE

pub const IROH_BLOCK_SIZE: BlockSize;
Expand description

Block size used by iroh, 2^4*1024 = 16KiB

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/downloader/enum.DownloadError.html b/pr/2610/docs/iroh/blobs/downloader/enum.DownloadError.html index 888cf3d1db..e54ca331f6 100644 --- a/pr/2610/docs/iroh/blobs/downloader/enum.DownloadError.html +++ b/pr/2610/docs/iroh/blobs/downloader/enum.DownloadError.html @@ -1,4 +1,4 @@ -DownloadError in iroh::blobs::downloader - Rust

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

source§

fn clone(&self) -> DownloadError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DownloadError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for DownloadError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for DownloadError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for DownloadError

§

fn clone(&self) -> DownloadError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for DownloadError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for DownloadError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for DownloadError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where 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§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<GetError> for FailureAction

source§

fn from(e: GetError) -> FailureAction

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for FailureAction

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<GetError> for FailureAction

§

fn from(e: GetError) -> FailureAction

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where 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§

source§

impl<N> Debug for GetOutput<N>
where - N: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<N> Freeze for GetOutput<N>
where +

Trait Implementations§

§

impl<N> Debug for GetOutput<N>
where + N: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

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.

§

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 more
source§

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 T
where + __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§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/db/enum.BlobInfo.html b/pr/2610/docs/iroh/blobs/get/db/enum.BlobInfo.html index 014144a368..a659f263b6 100644 --- a/pr/2610/docs/iroh/blobs/get/db/enum.BlobInfo.html +++ b/pr/2610/docs/iroh/blobs/get/db/enum.BlobInfo.html @@ -1,4 +1,4 @@ -BlobInfo in iroh::blobs::get::db - Rust

Enum iroh::blobs::get::db::BlobInfo

source ·
pub enum BlobInfo<D>
where +BlobInfo in iroh::blobs::get::db - Rust

Enum iroh::blobs::get::db::BlobInfo

pub enum BlobInfo<D>
where D: Store,
{ Complete { size: u64, @@ -15,19 +15,19 @@

Fields

§entry: <D as MapMut>::EntryMut

The partial entry.

§valid_ranges: RangeSet<[ChunkNum; 2]>

The ranges that are available locally.

§

Missing

we don’t have the blob at all

-

Implementations§

source§

impl<D> BlobInfo<D>
where - D: Store,

source

pub fn size(&self) -> Option<BaoBlobSize>

The size of the blob, if known.

-
source

pub fn valid_ranges(&self) -> RangeSet<[ChunkNum; 2]>

Ranges that are valid locally.

+

Implementations§

§

impl<D> BlobInfo<D>
where + D: Store,

pub fn size(&self) -> Option<BaoBlobSize>

The size of the blob, if known.

+

pub fn valid_ranges(&self) -> RangeSet<[ChunkNum; 2]>

Ranges that are valid locally.

This will be all for complete blobs, empty for missing blobs, and a set with possibly open last range for partial blobs.

-
source

pub fn missing_ranges(&self) -> RangeSet<[ChunkNum; 2]>

Ranges that are missing locally and need to be requested.

+

pub fn missing_ranges(&self) -> RangeSet<[ChunkNum; 2]>

Ranges that are missing locally and need to be requested.

This will be empty for complete blobs, all for missing blobs, and a set with possibly open last range for partial blobs.

-

Trait Implementations§

source§

impl<D> Clone for BlobInfo<D>
where +

Trait Implementations§

§

impl<D> Clone for BlobInfo<D>
where D: Clone + Store, - <D as MapMut>::EntryMut: Clone,

source§

fn clone(&self) -> BlobInfo<D>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<D> Debug for BlobInfo<D>
where + <D as MapMut>::EntryMut: Clone,

§

fn clone(&self) -> BlobInfo<D>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<D> Debug for BlobInfo<D>
where D: Debug + Store, - <D as MapMut>::EntryMut: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<D> Freeze for BlobInfo<D>
where + <D as MapMut>::EntryMut: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<D> Freeze for BlobInfo<D>
where <D as MapMut>::EntryMut: Freeze,

§

impl<D> RefUnwindSafe for BlobInfo<D>
where <D as MapMut>::EntryMut: RefUnwindSafe,

§

impl<D> Send for BlobInfo<D>

§

impl<D> Sync for BlobInfo<D>

§

impl<D> Unpin for BlobInfo<D>
where <D as MapMut>::EntryMut: Unpin,

§

impl<D> UnwindSafe for BlobInfo<D>
where diff --git a/pr/2610/docs/iroh/blobs/get/db/enum.DownloadProgress.html b/pr/2610/docs/iroh/blobs/get/db/enum.DownloadProgress.html index bc5aa66a8e..c96cf74d0b 100644 --- a/pr/2610/docs/iroh/blobs/get/db/enum.DownloadProgress.html +++ b/pr/2610/docs/iroh/blobs/get/db/enum.DownloadProgress.html @@ -1,4 +1,4 @@ -DownloadProgress in iroh::blobs::get::db - Rust

Enum iroh::blobs::get::db::DownloadProgress

source ·
pub enum DownloadProgress {
+DownloadProgress in iroh::blobs::get::db - Rust

Enum iroh::blobs::get::db::DownloadProgress

pub enum DownloadProgress {
     InitialState(TransferState),
     FoundLocal {
         child: BlobId,
@@ -53,10 +53,10 @@ allows to identify the children by their offset in the hashseq.

This will be the last message in the stream.

§

Abort(RpcError)

We got an error and need to abort.

This will be the last message in the stream.

-

Trait Implementations§

source§

impl Clone for DownloadProgress

source§

fn clone(&self) -> DownloadProgress

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DownloadProgress

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for DownloadProgress

Trait Implementations§

§

impl Clone for DownloadProgress

§

fn clone(&self) -> DownloadProgress

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for DownloadProgress

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for DownloadProgress

§

fn deserialize<__D>( __deserializer: __D ) -> Result<DownloadProgress, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for DownloadProgress

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl Serialize for DownloadProgress

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2610/docs/iroh/blobs/get/db/enum.GetState.html b/pr/2610/docs/iroh/blobs/get/db/enum.GetState.html index 72d38f51a5..788e0cce25 100644 --- a/pr/2610/docs/iroh/blobs/get/db/enum.GetState.html +++ b/pr/2610/docs/iroh/blobs/get/db/enum.GetState.html @@ -1,4 +1,4 @@ -GetState in iroh::blobs::get::db - Rust

Enum iroh::blobs::get::db::GetState

source ·
pub enum GetState {
+GetState in iroh::blobs::get::db - Rust

Enum iroh::blobs::get::db::GetState

pub enum GetState {
     Complete(Stats),
     NeedsConn(GetStateNeedsConn),
 }
Expand description

Output of get_to_db_in_steps.

@@ -7,7 +7,7 @@ needed.

§

NeedsConn(GetStateNeedsConn)

The requested data is not fully available in the local store, we need a connection to proceed.

Once a connection is available, call GetStateNeedsConn::proceed to continue.

-

Trait Implementations§

source§

impl Debug for GetState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for GetState

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/db/fn.blob_info.html b/pr/2610/docs/iroh/blobs/get/db/fn.blob_info.html index 6bffb74c11..472c31a78e 100644 --- a/pr/2610/docs/iroh/blobs/get/db/fn.blob_info.html +++ b/pr/2610/docs/iroh/blobs/get/db/fn.blob_info.html @@ -1,4 +1,4 @@ -blob_info in iroh::blobs::get::db - Rust

Function iroh::blobs::get::db::blob_info

source ·
pub async fn blob_info<D>(db: &D, hash: &Hash) -> Result<BlobInfo<D>, Error>
where +blob_info in iroh::blobs::get::db - Rust

Function iroh::blobs::get::db::blob_info

pub async fn blob_info<D>(db: &D, hash: &Hash) -> Result<BlobInfo<D>, Error>
where D: Store,
Expand description

Get information about a blob in a store.

This will compute the valid ranges for partial blobs, so it is somewhat expensive for those.

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/get/db/fn.get_to_db.html b/pr/2610/docs/iroh/blobs/get/db/fn.get_to_db.html index 7ff6ebf269..a8c3305757 100644 --- a/pr/2610/docs/iroh/blobs/get/db/fn.get_to_db.html +++ b/pr/2610/docs/iroh/blobs/get/db/fn.get_to_db.html @@ -1,4 +1,4 @@ -get_to_db in iroh::blobs::get::db - Rust

Function iroh::blobs::get::db::get_to_db

source ·
pub async fn get_to_db<D, C, F>(
+get_to_db in iroh::blobs::get::db - Rust

Function iroh::blobs::get::db::get_to_db

pub async fn get_to_db<D, C, F>(
     db: &D,
     get_conn: C,
     hash_and_format: &HashAndFormat,
diff --git a/pr/2610/docs/iroh/blobs/get/db/fn.get_to_db_in_steps.html b/pr/2610/docs/iroh/blobs/get/db/fn.get_to_db_in_steps.html
index ea797599ba..fa3a70a2b5 100644
--- a/pr/2610/docs/iroh/blobs/get/db/fn.get_to_db_in_steps.html
+++ b/pr/2610/docs/iroh/blobs/get/db/fn.get_to_db_in_steps.html
@@ -1,4 +1,4 @@
-get_to_db_in_steps in iroh::blobs::get::db - Rust

Function iroh::blobs::get::db::get_to_db_in_steps

source ·
pub async fn get_to_db_in_steps<D, P>(
+get_to_db_in_steps in iroh::blobs::get::db - Rust

Function iroh::blobs::get::db::get_to_db_in_steps

pub async fn get_to_db_in_steps<D, P>(
     db: D,
     hash_and_format: HashAndFormat,
     progress_sender: P
diff --git a/pr/2610/docs/iroh/blobs/get/db/fn.valid_ranges.html b/pr/2610/docs/iroh/blobs/get/db/fn.valid_ranges.html
index fd9073dd3e..7f679466c3 100644
--- a/pr/2610/docs/iroh/blobs/get/db/fn.valid_ranges.html
+++ b/pr/2610/docs/iroh/blobs/get/db/fn.valid_ranges.html
@@ -1,4 +1,4 @@
-valid_ranges in iroh::blobs::get::db - Rust

Function iroh::blobs::get::db::valid_ranges

source ·
pub async fn valid_ranges<D>(
+valid_ranges in iroh::blobs::get::db - Rust

Function iroh::blobs::get::db::valid_ranges

pub async fn valid_ranges<D>(
     entry: &<D as MapMut>::EntryMut
 ) -> Result<RangeSet<[ChunkNum; 2]>, Error>
where D: MapMut,
Expand description

Given a partial entry, get the valid ranges.

diff --git a/pr/2610/docs/iroh/blobs/get/db/index.html b/pr/2610/docs/iroh/blobs/get/db/index.html index cf366d46ba..627b7625eb 100644 --- a/pr/2610/docs/iroh/blobs/get/db/index.html +++ b/pr/2610/docs/iroh/blobs/get/db/index.html @@ -1,3 +1,3 @@ -iroh::blobs::get::db - Rust

Module iroh::blobs::get::db

source ·
Expand description

Functions that use the iroh-blobs protocol in conjunction with a bao store.

+iroh::blobs::get::db - Rust

Module iroh::blobs::get::db

Expand description

Functions that use the iroh-blobs protocol in conjunction with a bao store.

Structs§

Enums§

Functions§

  • Get information about a blob in a store.
  • Get a blob or collection into a store.
  • Get a blob or collection into a store, yielding if a connection is needed.
  • Given a partial entry, get the valid ranges.
\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/get/db/struct.GetStateNeedsConn.html b/pr/2610/docs/iroh/blobs/get/db/struct.GetStateNeedsConn.html index f06da27b85..df41791125 100644 --- a/pr/2610/docs/iroh/blobs/get/db/struct.GetStateNeedsConn.html +++ b/pr/2610/docs/iroh/blobs/get/db/struct.GetStateNeedsConn.html @@ -1,7 +1,7 @@ -GetStateNeedsConn in iroh::blobs::get::db - Rust

Struct iroh::blobs::get::db::GetStateNeedsConn

source ·
pub struct GetStateNeedsConn(/* private fields */);
Expand description

Intermediary state returned from get_to_db_in_steps for a download request that needs a +GetStateNeedsConn in iroh::blobs::get::db - Rust

Struct iroh::blobs::get::db::GetStateNeedsConn

pub struct GetStateNeedsConn(/* private fields */);
Expand description

Intermediary state returned from get_to_db_in_steps for a download request that needs a connection to proceed.

-

Implementations§

source§

impl GetStateNeedsConn

source

pub async fn proceed(self, conn: Connection) -> Result<Stats, GetError>

Proceed with the download by providing a connection to a provider.

-

Trait Implementations§

source§

impl Debug for GetStateNeedsConn

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl NeedsConn<Connection> for GetStateNeedsConn

Implementations§

§

impl GetStateNeedsConn

pub async fn proceed(self, conn: Connection) -> Result<Stats, GetError>

Proceed with the download by providing a connection to a provider.

+

Trait Implementations§

§

impl Debug for GetStateNeedsConn

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl NeedsConn<Connection> for GetStateNeedsConn

§

fn proceed( self, conn: Connection ) -> Pin<Box<dyn Future<Output = Result<Stats, FailureAction>>>>

Proceeds the download with the given connection.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/pr/2610/docs/iroh/blobs/get/enum.GetResponseError.html b/pr/2610/docs/iroh/blobs/get/enum.GetResponseError.html index ccd7d26432..727ff50f46 100644 --- a/pr/2610/docs/iroh/blobs/get/enum.GetResponseError.html +++ b/pr/2610/docs/iroh/blobs/get/enum.GetResponseError.html @@ -1,4 +1,4 @@ -GetResponseError in iroh::blobs::get - Rust

Enum iroh::blobs::get::GetResponseError

source ·
pub enum GetResponseError {
+GetResponseError in iroh::blobs::get - Rust

Enum iroh::blobs::get::GetResponseError

pub enum GetResponseError {
     Connection(ConnectionError),
     Write(WriteError),
     Read(ReadError),
@@ -10,7 +10,7 @@
 
§

Read(ReadError)

Error when reading from the stream

§

Decode(DecodeError)

Error when decoding, e.g. hash mismatch

§

Generic(Error)

A generic error

-

Trait Implementations§

source§

impl Debug for GetResponseError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for GetResponseError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for GetResponseError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<ConnectionError> for GetResponseError

source§

fn from(source: ConnectionError) -> GetResponseError

Converts to this type from the input type.
source§

impl From<DecodeError> for GetResponseError

source§

fn from(cause: DecodeError) -> GetResponseError

Converts to this type from the input type.
source§

impl From<Error> for GetResponseError

source§

fn from(cause: Error) -> GetResponseError

Converts to this type from the input type.
source§

impl From<Error> for GetResponseError

source§

fn from(cause: Error) -> GetResponseError

Converts to this type from the input type.
source§

impl From<ReadError> for GetResponseError

source§

fn from(source: ReadError) -> GetResponseError

Converts to this type from the input type.
source§

impl From<WriteError> for GetResponseError

source§

fn from(source: WriteError) -> GetResponseError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for GetResponseError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for GetResponseError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for GetResponseError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<ConnectionError> for GetResponseError

§

fn from(source: ConnectionError) -> GetResponseError

Converts to this type from the input type.
§

impl From<DecodeError> for GetResponseError

§

fn from(cause: DecodeError) -> GetResponseError

Converts to this type from the input type.
§

impl From<Error> for GetResponseError

§

fn from(cause: Error) -> GetResponseError

Converts to this type from the input type.
§

impl From<Error> for GetResponseError

§

fn from(cause: Error) -> GetResponseError

Converts to this type from the input type.
§

impl From<ReadError> for GetResponseError

§

fn from(source: ReadError) -> GetResponseError

Converts to this type from the input type.
§

impl From<WriteError> for GetResponseError

§

fn from(source: WriteError) -> GetResponseError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/error/enum.GetError.html b/pr/2610/docs/iroh/blobs/get/error/enum.GetError.html index 944364e730..eec7a8fa54 100644 --- a/pr/2610/docs/iroh/blobs/get/error/enum.GetError.html +++ b/pr/2610/docs/iroh/blobs/get/error/enum.GetError.html @@ -1,4 +1,4 @@ -GetError in iroh::blobs::get::error - Rust

Enum iroh::blobs::get::error::GetError

source ·
pub enum GetError {
+GetError in iroh::blobs::get::error - Rust

Enum iroh::blobs::get::error::GetError

pub enum GetError {
     NotFound(Error),
     RemoteReset(Error),
     NoncompliantNode(Error),
@@ -12,7 +12,7 @@
 
§

Io(Error)

Network or IO operation failed.

§

BadRequest(Error)

Our download request is invalid.

§

LocalFailure(Error)

Operation failed on the local node.

-

Trait Implementations§

source§

impl Debug for GetError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for GetError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for GetError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<AtBlobHeaderNextError> for GetError

source§

fn from(value: AtBlobHeaderNextError) -> GetError

Converts to this type from the input type.
source§

impl From<ConnectedNextError> for GetError

source§

fn from(value: ConnectedNextError) -> GetError

Converts to this type from the input type.
source§

impl From<ConnectionError> for GetError

source§

fn from(value: ConnectionError) -> GetError

Converts to this type from the input type.
source§

impl From<DecodeError> for GetError

source§

fn from(value: DecodeError) -> GetError

Converts to this type from the input type.
source§

impl From<Error> for GetError

source§

fn from(value: Error) -> GetError

Converts to this type from the input type.
source§

impl From<GetError> for FailureAction

source§

fn from(e: GetError) -> FailureAction

Converts to this type from the input type.
source§

impl From<ProgressSendError> for GetError

source§

fn from(value: ProgressSendError) -> GetError

Converts to this type from the input type.
source§

impl From<ReadError> for GetError

source§

fn from(value: ReadError) -> GetError

Converts to this type from the input type.
source§

impl From<WriteError> for GetError

source§

fn from(value: WriteError) -> GetError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for GetError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for GetError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for GetError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<AtBlobHeaderNextError> for GetError

§

fn from(value: AtBlobHeaderNextError) -> GetError

Converts to this type from the input type.
§

impl From<ConnectedNextError> for GetError

§

fn from(value: ConnectedNextError) -> GetError

Converts to this type from the input type.
§

impl From<ConnectionError> for GetError

§

fn from(value: ConnectionError) -> GetError

Converts to this type from the input type.
§

impl From<DecodeError> for GetError

§

fn from(value: DecodeError) -> GetError

Converts to this type from the input type.
§

impl From<Error> for GetError

§

fn from(value: Error) -> GetError

Converts to this type from the input type.
§

impl From<GetError> for FailureAction

§

fn from(e: GetError) -> FailureAction

Converts to this type from the input type.
§

impl From<ProgressSendError> for GetError

§

fn from(value: ProgressSendError) -> GetError

Converts to this type from the input type.
§

impl From<ReadError> for GetError

§

fn from(value: ReadError) -> GetError

Converts to this type from the input type.
§

impl From<WriteError> for GetError

§

fn from(value: WriteError) -> GetError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/error/index.html b/pr/2610/docs/iroh/blobs/get/error/index.html index 107318af40..d3e5c98952 100644 --- a/pr/2610/docs/iroh/blobs/get/error/index.html +++ b/pr/2610/docs/iroh/blobs/get/error/index.html @@ -1,2 +1,2 @@ -iroh::blobs::get::error - Rust

Module iroh::blobs::get::error

source ·
Expand description

Error returned from get operations

+iroh::blobs::get::error - Rust

Module iroh::blobs::get::error

Expand description

Error returned from get operations

Enums§

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/get/fsm/enum.AtBlobHeaderNextError.html b/pr/2610/docs/iroh/blobs/get/fsm/enum.AtBlobHeaderNextError.html index d79ed8c8f9..672074677f 100644 --- a/pr/2610/docs/iroh/blobs/get/fsm/enum.AtBlobHeaderNextError.html +++ b/pr/2610/docs/iroh/blobs/get/fsm/enum.AtBlobHeaderNextError.html @@ -1,4 +1,4 @@ -AtBlobHeaderNextError in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::AtBlobHeaderNextError

source ·
pub enum AtBlobHeaderNextError {
+AtBlobHeaderNextError in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::AtBlobHeaderNextError

pub enum AtBlobHeaderNextError {
     NotFound,
     Read(ReadError),
     Io(Error),
@@ -7,7 +7,7 @@
 

This indicates that the provider does not have the requested data.

§

Read(ReadError)

Quinn read error when reading the size header

§

Io(Error)

Generic io error

-

Trait Implementations§

source§

impl Debug for AtBlobHeaderNextError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for AtBlobHeaderNextError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for AtBlobHeaderNextError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<AtBlobHeaderNextError> for DecodeError

source§

fn from(cause: AtBlobHeaderNextError) -> DecodeError

Converts to this type from the input type.
source§

impl From<AtBlobHeaderNextError> for GetError

source§

fn from(value: AtBlobHeaderNextError) -> GetError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for AtBlobHeaderNextError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for AtBlobHeaderNextError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for AtBlobHeaderNextError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<AtBlobHeaderNextError> for DecodeError

§

fn from(cause: AtBlobHeaderNextError) -> DecodeError

Converts to this type from the input type.
§

impl From<AtBlobHeaderNextError> for GetError

§

fn from(value: AtBlobHeaderNextError) -> GetError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/fsm/enum.BlobContentNext.html b/pr/2610/docs/iroh/blobs/get/fsm/enum.BlobContentNext.html index 3503bc2b26..bab8a4b209 100644 --- a/pr/2610/docs/iroh/blobs/get/fsm/enum.BlobContentNext.html +++ b/pr/2610/docs/iroh/blobs/get/fsm/enum.BlobContentNext.html @@ -1,12 +1,12 @@ -BlobContentNext in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::BlobContentNext

source ·
pub enum BlobContentNext {
+BlobContentNext in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::BlobContentNext

pub enum BlobContentNext {
     More((AtBlobContent, Result<BaoContentItem, DecodeError>)),
     Done(AtEndBlob),
 }
Expand description

The next state after reading a content item

Variants§

§

More((AtBlobContent, Result<BaoContentItem, DecodeError>))

We expect more content

§

Done(AtEndBlob)

We are done with this blob

-

Trait Implementations§

source§

impl Debug for BlobContentNext

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext

Trait Implementations§

§

impl Debug for BlobContentNext

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext

§

fn from( value: (AtBlobContent, Result<BaoContentItem, DecodeError>) -) -> BlobContentNext

Converts to this type from the input type.
source§

impl From<AtEndBlob> for BlobContentNext

source§

fn from(value: AtEndBlob) -> BlobContentNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +) -> BlobContentNext

Converts to this type from the input type.

§

impl From<AtEndBlob> for BlobContentNext

§

fn from(value: AtEndBlob) -> BlobContentNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/fsm/enum.ConnectedNext.html b/pr/2610/docs/iroh/blobs/get/fsm/enum.ConnectedNext.html index 2dcd9d7a72..b095285021 100644 --- a/pr/2610/docs/iroh/blobs/get/fsm/enum.ConnectedNext.html +++ b/pr/2610/docs/iroh/blobs/get/fsm/enum.ConnectedNext.html @@ -1,4 +1,4 @@ -ConnectedNext in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::ConnectedNext

source ·
pub enum ConnectedNext {
+ConnectedNext in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::ConnectedNext

pub enum ConnectedNext {
     StartRoot(AtStartRoot),
     StartChild(AtStartChild),
     Closing(AtClosing),
@@ -6,7 +6,7 @@
 

Variants§

§

StartRoot(AtStartRoot)

First response is either a collection or a single blob

§

StartChild(AtStartChild)

First response is a child

§

Closing(AtClosing)

Request is empty

-

Trait Implementations§

source§

impl Debug for ConnectedNext

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<AtClosing> for ConnectedNext

source§

fn from(value: AtClosing) -> ConnectedNext

Converts to this type from the input type.
source§

impl From<AtStartChild> for ConnectedNext

source§

fn from(value: AtStartChild) -> ConnectedNext

Converts to this type from the input type.
source§

impl From<AtStartRoot> for ConnectedNext

source§

fn from(value: AtStartRoot) -> ConnectedNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for ConnectedNext

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<AtClosing> for ConnectedNext

§

fn from(value: AtClosing) -> ConnectedNext

Converts to this type from the input type.
§

impl From<AtStartChild> for ConnectedNext

§

fn from(value: AtStartChild) -> ConnectedNext

Converts to this type from the input type.
§

impl From<AtStartRoot> for ConnectedNext

§

fn from(value: AtStartRoot) -> ConnectedNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/fsm/enum.ConnectedNextError.html b/pr/2610/docs/iroh/blobs/get/fsm/enum.ConnectedNextError.html index be07f83173..43336a8380 100644 --- a/pr/2610/docs/iroh/blobs/get/fsm/enum.ConnectedNextError.html +++ b/pr/2610/docs/iroh/blobs/get/fsm/enum.ConnectedNextError.html @@ -1,4 +1,4 @@ -ConnectedNextError in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::ConnectedNextError

source ·
pub enum ConnectedNextError {
+ConnectedNextError in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::ConnectedNextError

pub enum ConnectedNextError {
     PostcardSer(Error),
     RequestTooBig,
     Write(WriteError),
@@ -8,7 +8,7 @@
 
§

RequestTooBig

The serialized request is too long to be sent

§

Write(WriteError)

Error when writing the request to the SendStream.

§

Io(Error)

A generic io error

-

Trait Implementations§

source§

impl Debug for ConnectedNextError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for ConnectedNextError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for ConnectedNextError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<ConnectedNextError> for GetError

source§

fn from(value: ConnectedNextError) -> GetError

Converts to this type from the input type.
source§

impl From<WriteError> for ConnectedNextError

source§

fn from(source: WriteError) -> ConnectedNextError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for ConnectedNextError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ConnectedNextError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ConnectedNextError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<ConnectedNextError> for GetError

§

fn from(value: ConnectedNextError) -> GetError

Converts to this type from the input type.
§

impl From<WriteError> for ConnectedNextError

§

fn from(source: WriteError) -> ConnectedNextError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/fsm/enum.DecodeError.html b/pr/2610/docs/iroh/blobs/get/fsm/enum.DecodeError.html index 0dc2d3a69b..ee95073cce 100644 --- a/pr/2610/docs/iroh/blobs/get/fsm/enum.DecodeError.html +++ b/pr/2610/docs/iroh/blobs/get/fsm/enum.DecodeError.html @@ -1,4 +1,4 @@ -DecodeError in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::DecodeError

source ·
pub enum DecodeError {
+DecodeError in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::DecodeError

pub enum DecodeError {
     NotFound,
     ParentNotFound(TreeNode),
     LeafNotFound(ChunkNum),
@@ -30,7 +30,7 @@ is not actually a §

LeafHashMismatch(ChunkNum)

The hash of a leaf did not match the expected hash

§

Read(ReadError)

Error when reading from the stream

§

Io(Error)

A generic io error

-

Trait Implementations§

source§

impl Debug for DecodeError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for DecodeError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for DecodeError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<AtBlobHeaderNextError> for DecodeError

source§

fn from(cause: AtBlobHeaderNextError) -> DecodeError

Converts to this type from the input type.
source§

impl From<DecodeError> for DecodeError

source§

fn from(value: DecodeError) -> DecodeError

Converts to this type from the input type.
source§

impl From<DecodeError> for GetError

source§

fn from(value: DecodeError) -> GetError

Converts to this type from the input type.
source§

impl From<Error> for DecodeError

source§

fn from(source: Error) -> DecodeError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for DecodeError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for DecodeError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for DecodeError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<AtBlobHeaderNextError> for DecodeError

§

fn from(cause: AtBlobHeaderNextError) -> DecodeError

Converts to this type from the input type.
§

impl From<DecodeError> for DecodeError

§

fn from(value: DecodeError) -> DecodeError

Converts to this type from the input type.
§

impl From<DecodeError> for GetError

§

fn from(value: DecodeError) -> GetError

Converts to this type from the input type.
§

impl From<Error> for DecodeError

§

fn from(source: Error) -> DecodeError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/fsm/enum.EndBlobNext.html b/pr/2610/docs/iroh/blobs/get/fsm/enum.EndBlobNext.html index d41ad62678..75f3eca449 100644 --- a/pr/2610/docs/iroh/blobs/get/fsm/enum.EndBlobNext.html +++ b/pr/2610/docs/iroh/blobs/get/fsm/enum.EndBlobNext.html @@ -1,10 +1,10 @@ -EndBlobNext in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::EndBlobNext

source ·
pub enum EndBlobNext {
+EndBlobNext in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::EndBlobNext

pub enum EndBlobNext {
     MoreChildren(AtStartChild),
     Closing(AtClosing),
 }
Expand description

The next state after the end of a blob

Variants§

§

MoreChildren(AtStartChild)

Response is expected to have more children

§

Closing(AtClosing)

No more children expected

-

Trait Implementations§

source§

impl Debug for EndBlobNext

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<AtClosing> for EndBlobNext

source§

fn from(value: AtClosing) -> EndBlobNext

Converts to this type from the input type.
source§

impl From<AtStartChild> for EndBlobNext

source§

fn from(value: AtStartChild) -> EndBlobNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for EndBlobNext

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<AtClosing> for EndBlobNext

§

fn from(value: AtClosing) -> EndBlobNext

Converts to this type from the input type.
§

impl From<AtStartChild> for EndBlobNext

§

fn from(value: AtStartChild) -> EndBlobNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/fsm/fn.start.html b/pr/2610/docs/iroh/blobs/get/fsm/fn.start.html index 38fa58c4d6..04d1e9fbcb 100644 --- a/pr/2610/docs/iroh/blobs/get/fsm/fn.start.html +++ b/pr/2610/docs/iroh/blobs/get/fsm/fn.start.html @@ -1,2 +1,2 @@ -start in iroh::blobs::get::fsm - Rust

Function iroh::blobs::get::fsm::start

source ·
pub fn start(connection: Connection, request: GetRequest) -> AtInitial
Expand description

The entry point of the get response machine

+start in iroh::blobs::get::fsm - Rust

Function iroh::blobs::get::fsm::start

pub fn start(connection: Connection, request: GetRequest) -> AtInitial
Expand description

The entry point of the get response machine

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/get/fsm/index.html b/pr/2610/docs/iroh/blobs/get/fsm/index.html index b33f3d85ff..57f9043a65 100644 --- a/pr/2610/docs/iroh/blobs/get/fsm/index.html +++ b/pr/2610/docs/iroh/blobs/get/fsm/index.html @@ -1,4 +1,4 @@ -iroh::blobs::get::fsm - Rust

Module iroh::blobs::get::fsm

source ·
Expand description

Finite state machine for get responses.

+iroh::blobs::get::fsm - Rust

Module iroh::blobs::get::fsm

Expand description

Finite state machine for get responses.

This is the low level API for getting data from a peer.

diff --git a/pr/2610/docs/iroh/blobs/get/fsm/struct.AtBlobContent.html b/pr/2610/docs/iroh/blobs/get/fsm/struct.AtBlobContent.html index ea60d1db26..4eb6a3dd37 100644 --- a/pr/2610/docs/iroh/blobs/get/fsm/struct.AtBlobContent.html +++ b/pr/2610/docs/iroh/blobs/get/fsm/struct.AtBlobContent.html @@ -1,18 +1,18 @@ -AtBlobContent in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtBlobContent

source ·
pub struct AtBlobContent { /* private fields */ }
Expand description

State while we are reading content

-

Implementations§

source§

impl AtBlobContent

source

pub async fn next(self) -> BlobContentNext

Read the next item, either content, an error, or the end of the blob

-
source

pub fn tree(&self) -> BaoTree

The geometry of the tree we are currently reading.

-
source

pub fn hash(&self) -> Hash

The hash of the blob we are reading.

-
source

pub fn offset(&self) -> u64

The current offset of the blob we are reading.

-
source

pub async fn drain(self) -> Result<AtEndBlob, DecodeError>

Drain the response and throw away the result

-
source

pub async fn concatenate_into_vec( +AtBlobContent in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtBlobContent

pub struct AtBlobContent { /* private fields */ }
Expand description

State while we are reading content

+

Implementations§

§

impl AtBlobContent

pub async fn next(self) -> BlobContentNext

Read the next item, either content, an error, or the end of the blob

+

pub fn tree(&self) -> BaoTree

The geometry of the tree we are currently reading.

+

pub fn hash(&self) -> Hash

The hash of the blob we are reading.

+

pub fn offset(&self) -> u64

The current offset of the blob we are reading.

+

pub async fn drain(self) -> Result<AtEndBlob, DecodeError>

Drain the response and throw away the result

+

pub async fn concatenate_into_vec( self ) -> Result<(AtEndBlob, Vec<u8>), DecodeError>

Concatenate the entire response into a vec

-
source

pub async fn write_all_batch<B>( +

pub async fn write_all_batch<B>( self, writer: B ) -> Result<AtEndBlob, DecodeError>
where B: BaoBatchWriter,

Write the entire stream for this blob to a batch writer.

-
source

pub async fn write_all_with_outboard<D, O>( +

pub async fn write_all_with_outboard<D, O>( self, outboard: Option<O>, data: D @@ -21,10 +21,10 @@ O: OutboardMut,

Write the entire blob to a slice writer and to an optional outboard.

The outboard is only written to if the blob is larger than a single chunk group.

-
source

pub async fn write_all<D>(self, data: D) -> Result<AtEndBlob, DecodeError>
where +

pub async fn write_all<D>(self, data: D) -> Result<AtEndBlob, DecodeError>

Write the entire blob to a slice writer.

-
source

pub fn finish(self) -> AtClosing

Immediately finish the get response without reading further

-

Trait Implementations§

source§

impl Debug for AtBlobContent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

pub fn finish(self) -> AtClosing

Immediately finish the get response without reading further

+

Trait Implementations§

§

impl Debug for AtBlobContent

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/fsm/struct.AtBlobHeader.html b/pr/2610/docs/iroh/blobs/get/fsm/struct.AtBlobHeader.html index 60e57e5de7..450871fb0e 100644 --- a/pr/2610/docs/iroh/blobs/get/fsm/struct.AtBlobHeader.html +++ b/pr/2610/docs/iroh/blobs/get/fsm/struct.AtBlobHeader.html @@ -1,14 +1,14 @@ -AtBlobHeader in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtBlobHeader

source ·
pub struct AtBlobHeader { /* private fields */ }
Expand description

State before reading a size header

-

Implementations§

source§

impl AtBlobHeader

source

pub async fn next(self) -> Result<(AtBlobContent, u64), AtBlobHeaderNextError>

Read the size header, returning it and going into the Content state.

-
source

pub async fn drain(self) -> Result<AtEndBlob, DecodeError>

Drain the response and throw away the result

-
source

pub async fn concatenate_into_vec( +AtBlobHeader in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtBlobHeader

pub struct AtBlobHeader { /* private fields */ }
Expand description

State before reading a size header

+

Implementations§

§

impl AtBlobHeader

pub async fn next(self) -> Result<(AtBlobContent, u64), AtBlobHeaderNextError>

Read the size header, returning it and going into the Content state.

+

pub async fn drain(self) -> Result<AtEndBlob, DecodeError>

Drain the response and throw away the result

+

pub async fn concatenate_into_vec( self ) -> Result<(AtEndBlob, Vec<u8>), DecodeError>

Concatenate the entire response into a vec

For a request that does not request the complete blob, this will just concatenate the ranges that were requested.

-
source

pub async fn write_all<D>(self, data: D) -> Result<AtEndBlob, DecodeError>
where +

pub async fn write_all<D>(self, data: D) -> Result<AtEndBlob, DecodeError>

Write the entire blob to a slice writer.

-
source

pub async fn write_all_with_outboard<D, O>( +

pub async fn write_all_with_outboard<D, O>( self, outboard: Option<O>, data: D @@ -17,15 +17,15 @@ concatenate the ranges that were requested.

O: OutboardMut,

Write the entire blob to a slice writer and to an optional outboard.

The outboard is only written to if the blob is larger than a single chunk group.

-
source

pub async fn write_all_batch<B>( +

pub async fn write_all_batch<B>( self, batch: B ) -> Result<AtEndBlob, DecodeError>
where B: BaoBatchWriter,

Write the entire stream for this blob to a batch writer.

-
source

pub fn hash(&self) -> Hash

The hash of the blob we are reading.

-
source

pub fn ranges(&self) -> &RangeSet<[ChunkNum; 2]>

The ranges we have requested for the current hash.

-
source

pub fn offset(&self) -> u64

The current offset of the blob we are reading.

-

Trait Implementations§

source§

impl Debug for AtBlobHeader

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

pub fn hash(&self) -> Hash

The hash of the blob we are reading.

+

pub fn ranges(&self) -> &RangeSet<[ChunkNum; 2]>

The ranges we have requested for the current hash.

+

pub fn offset(&self) -> u64

The current offset of the blob we are reading.

+

Trait Implementations§

§

impl Debug for AtBlobHeader

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/fsm/struct.AtClosing.html b/pr/2610/docs/iroh/blobs/get/fsm/struct.AtClosing.html index 199fabbeac..1953f04baf 100644 --- a/pr/2610/docs/iroh/blobs/get/fsm/struct.AtClosing.html +++ b/pr/2610/docs/iroh/blobs/get/fsm/struct.AtClosing.html @@ -1,6 +1,6 @@ -AtClosing in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtClosing

source ·
pub struct AtClosing { /* private fields */ }
Expand description

State when finishing the get response

-

Implementations§

source§

impl AtClosing

source

pub async fn next(self) -> Result<Stats, ReadError>

Finish the get response, returning statistics

-

Trait Implementations§

source§

impl Debug for AtClosing

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<AtClosing> for ConnectedNext

source§

fn from(value: AtClosing) -> ConnectedNext

Converts to this type from the input type.
source§

impl From<AtClosing> for EndBlobNext

source§

fn from(value: AtClosing) -> EndBlobNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +AtClosing in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtClosing

pub struct AtClosing { /* private fields */ }
Expand description

State when finishing the get response

+

Implementations§

§

impl AtClosing

pub async fn next(self) -> Result<Stats, ReadError>

Finish the get response, returning statistics

+

Trait Implementations§

§

impl Debug for AtClosing

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<AtClosing> for ConnectedNext

§

fn from(value: AtClosing) -> ConnectedNext

Converts to this type from the input type.
§

impl From<AtClosing> for EndBlobNext

§

fn from(value: AtClosing) -> EndBlobNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/fsm/struct.AtConnected.html b/pr/2610/docs/iroh/blobs/get/fsm/struct.AtConnected.html index 8252422a08..2239de8916 100644 --- a/pr/2610/docs/iroh/blobs/get/fsm/struct.AtConnected.html +++ b/pr/2610/docs/iroh/blobs/get/fsm/struct.AtConnected.html @@ -1,9 +1,9 @@ -AtConnected in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtConnected

source ·
pub struct AtConnected { /* private fields */ }
Expand description

State of the get response machine after the handshake has been sent

-

Implementations§

source§

impl AtConnected

source

pub async fn next(self) -> Result<ConnectedNext, ConnectedNextError>

Send the request and move to the next state

+AtConnected in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtConnected

pub struct AtConnected { /* private fields */ }
Expand description

State of the get response machine after the handshake has been sent

+

Implementations§

§

impl AtConnected

pub async fn next(self) -> Result<ConnectedNext, ConnectedNextError>

Send the request and move to the next state

The next state will be either StartRoot or StartChild depending on whether the request requests part of the collection or not.

If the request is empty, this can also move directly to Finished.

-

Trait Implementations§

source§

impl Debug for AtConnected

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for AtConnected

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/fsm/struct.AtEndBlob.html b/pr/2610/docs/iroh/blobs/get/fsm/struct.AtEndBlob.html index 885f76623e..3679d3696a 100644 --- a/pr/2610/docs/iroh/blobs/get/fsm/struct.AtEndBlob.html +++ b/pr/2610/docs/iroh/blobs/get/fsm/struct.AtEndBlob.html @@ -1,6 +1,6 @@ -AtEndBlob in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtEndBlob

source ·
pub struct AtEndBlob { /* private fields */ }
Expand description

State after we have read all the content for a blob

-

Implementations§

source§

impl AtEndBlob

source

pub fn next(self) -> EndBlobNext

Read the next child, or finish

-

Trait Implementations§

source§

impl Debug for AtEndBlob

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<AtEndBlob> for BlobContentNext

source§

fn from(value: AtEndBlob) -> BlobContentNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +AtEndBlob in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtEndBlob

pub struct AtEndBlob { /* private fields */ }
Expand description

State after we have read all the content for a blob

+

Implementations§

§

impl AtEndBlob

pub fn next(self) -> EndBlobNext

Read the next child, or finish

+

Trait Implementations§

§

impl Debug for AtEndBlob

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<AtEndBlob> for BlobContentNext

§

fn from(value: AtEndBlob) -> BlobContentNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/fsm/struct.AtInitial.html b/pr/2610/docs/iroh/blobs/get/fsm/struct.AtInitial.html index 54945f8c6b..ac91c8151e 100644 --- a/pr/2610/docs/iroh/blobs/get/fsm/struct.AtInitial.html +++ b/pr/2610/docs/iroh/blobs/get/fsm/struct.AtInitial.html @@ -1,9 +1,9 @@ -AtInitial in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtInitial

source ·
pub struct AtInitial { /* private fields */ }
Expand description

Initial state of the get response machine

-

Implementations§

source§

impl AtInitial

source

pub fn new(connection: Connection, request: GetRequest) -> AtInitial

Create a new get response

+AtInitial in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtInitial

pub struct AtInitial { /* private fields */ }
Expand description

Initial state of the get response machine

+

Implementations§

§

impl AtInitial

pub fn new(connection: Connection, request: GetRequest) -> AtInitial

Create a new get response

connection is an existing connection request is the request to be sent

-
source

pub async fn next(self) -> Result<AtConnected, ConnectionError>

Initiate a new bidi stream to use for the get response

-

Trait Implementations§

source§

impl Debug for AtInitial

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

pub async fn next(self) -> Result<AtConnected, ConnectionError>

Initiate a new bidi stream to use for the get response

+

Trait Implementations§

§

impl Debug for AtInitial

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/fsm/struct.AtStartChild.html b/pr/2610/docs/iroh/blobs/get/fsm/struct.AtStartChild.html index 5f358b509d..d480205498 100644 --- a/pr/2610/docs/iroh/blobs/get/fsm/struct.AtStartChild.html +++ b/pr/2610/docs/iroh/blobs/get/fsm/struct.AtStartChild.html @@ -1,16 +1,16 @@ -AtStartChild in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtStartChild

source ·
pub struct AtStartChild { /* private fields */ }
Expand description

State of the get response when we start reading a child

-

Implementations§

source§

impl AtStartChild

source

pub fn child_offset(&self) -> u64

The offset of the child we are currently reading

+AtStartChild in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtStartChild

pub struct AtStartChild { /* private fields */ }
Expand description

State of the get response when we start reading a child

+

Implementations§

§

impl AtStartChild

pub fn child_offset(&self) -> u64

The offset of the child we are currently reading

This must be used to determine the hash needed to call next. If this is larger than the number of children in the collection, you can call finish to stop reading the response.

-
source

pub fn ranges(&self) -> &RangeSet<[ChunkNum; 2]>

The ranges we have requested for the child

-
source

pub fn next(self, hash: Hash) -> AtBlobHeader

Go into the next state, reading the header

+

pub fn ranges(&self) -> &RangeSet<[ChunkNum; 2]>

The ranges we have requested for the child

+

pub fn next(self, hash: Hash) -> AtBlobHeader

Go into the next state, reading the header

This requires passing in the hash of the child for validation

-
source

pub fn finish(self) -> AtClosing

Finish the get response without reading further

+

pub fn finish(self) -> AtClosing

Finish the get response without reading further

This is used if you know that there are no more children from having read the collection, or when you want to stop reading the response early.

-

Trait Implementations§

source§

impl Debug for AtStartChild

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<AtStartChild> for ConnectedNext

source§

fn from(value: AtStartChild) -> ConnectedNext

Converts to this type from the input type.
source§

impl From<AtStartChild> for EndBlobNext

source§

fn from(value: AtStartChild) -> EndBlobNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for AtStartChild

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<AtStartChild> for ConnectedNext

§

fn from(value: AtStartChild) -> ConnectedNext

Converts to this type from the input type.
§

impl From<AtStartChild> for EndBlobNext

§

fn from(value: AtStartChild) -> EndBlobNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/fsm/struct.AtStartRoot.html b/pr/2610/docs/iroh/blobs/get/fsm/struct.AtStartRoot.html index 5b19c4136a..1d6359f944 100644 --- a/pr/2610/docs/iroh/blobs/get/fsm/struct.AtStartRoot.html +++ b/pr/2610/docs/iroh/blobs/get/fsm/struct.AtStartRoot.html @@ -1,10 +1,10 @@ -AtStartRoot in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtStartRoot

source ·
pub struct AtStartRoot { /* private fields */ }
Expand description

State of the get response when we start reading a collection

-

Implementations§

source§

impl AtStartRoot

source

pub fn ranges(&self) -> &RangeSet<[ChunkNum; 2]>

The ranges we have requested for the child

-
source

pub fn hash(&self) -> Hash

Hash of the root blob

-
source

pub fn next(self) -> AtBlobHeader

Go into the next state, reading the header

+AtStartRoot in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtStartRoot

pub struct AtStartRoot { /* private fields */ }
Expand description

State of the get response when we start reading a collection

+

Implementations§

§

impl AtStartRoot

pub fn ranges(&self) -> &RangeSet<[ChunkNum; 2]>

The ranges we have requested for the child

+

pub fn hash(&self) -> Hash

Hash of the root blob

+

pub fn next(self) -> AtBlobHeader

Go into the next state, reading the header

For the collection we already know the hash, since it was part of the request

-
source

pub fn finish(self) -> AtClosing

Finish the get response without reading further

-

Trait Implementations§

source§

impl Debug for AtStartRoot

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<AtStartRoot> for ConnectedNext

source§

fn from(value: AtStartRoot) -> ConnectedNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

pub fn finish(self) -> AtClosing

Finish the get response without reading further

+

Trait Implementations§

§

impl Debug for AtStartRoot

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<AtStartRoot> for ConnectedNext

§

fn from(value: AtStartRoot) -> ConnectedNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/index.html b/pr/2610/docs/iroh/blobs/get/index.html index 459ccccc86..befb5d147b 100644 --- a/pr/2610/docs/iroh/blobs/get/index.html +++ b/pr/2610/docs/iroh/blobs/get/index.html @@ -1,4 +1,4 @@ -iroh::blobs::get - Rust

Module iroh::blobs::get

source ·
Expand description

The client side API

+iroh::blobs::get - Rust

Module iroh::blobs::get

Expand description

The client side API

To get data, create a connection using iroh-net or use any quinn connection that was obtained in another way.

Create a request describing the data you want to get.

diff --git a/pr/2610/docs/iroh/blobs/get/progress/enum.BlobProgress.html b/pr/2610/docs/iroh/blobs/get/progress/enum.BlobProgress.html index dd9d22f745..28dea99346 100644 --- a/pr/2610/docs/iroh/blobs/get/progress/enum.BlobProgress.html +++ b/pr/2610/docs/iroh/blobs/get/progress/enum.BlobProgress.html @@ -1,4 +1,4 @@ -BlobProgress in iroh::blobs::get::progress - Rust

Enum iroh::blobs::get::progress::BlobProgress

source ·
pub enum BlobProgress {
+BlobProgress in iroh::blobs::get::progress - Rust

Enum iroh::blobs::get::progress::BlobProgress

pub enum BlobProgress {
     Pending,
     Progressing(u64),
     Done,
@@ -6,16 +6,16 @@
 

Variants§

§

Pending

Download is pending

§

Progressing(u64)

Download is in progress

§

Done

Download has finished

-

Trait Implementations§

source§

impl Clone for BlobProgress

source§

fn clone(&self) -> BlobProgress

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BlobProgress

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for BlobProgress

source§

fn default() -> BlobProgress

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for BlobProgress

Trait Implementations§

§

impl Clone for BlobProgress

§

fn clone(&self) -> BlobProgress

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for BlobProgress

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for BlobProgress

§

fn default() -> BlobProgress

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for BlobProgress

§

fn deserialize<__D>( __deserializer: __D ) -> Result<BlobProgress, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for BlobProgress

source§

fn eq(&self, other: &BlobProgress) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for BlobProgress

§

fn eq(&self, other: &BlobProgress) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for BlobProgress

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for BlobProgress

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for BlobProgress

source§

impl StructuralPartialEq for BlobProgress

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for BlobProgress

§

impl StructuralPartialEq for BlobProgress

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/progress/index.html b/pr/2610/docs/iroh/blobs/get/progress/index.html index 886396f59c..247908b5de 100644 --- a/pr/2610/docs/iroh/blobs/get/progress/index.html +++ b/pr/2610/docs/iroh/blobs/get/progress/index.html @@ -1,2 +1,2 @@ -iroh::blobs::get::progress - Rust

Module iroh::blobs::get::progress

source ·
Expand description

Types for get progress state management.

+iroh::blobs::get::progress - Rust

Module iroh::blobs::get::progress

Expand description

Types for get progress state management.

Structs§

Enums§

Type Aliases§

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/get/progress/struct.BlobState.html b/pr/2610/docs/iroh/blobs/get/progress/struct.BlobState.html index 54893b76d1..d8367147ae 100644 --- a/pr/2610/docs/iroh/blobs/get/progress/struct.BlobState.html +++ b/pr/2610/docs/iroh/blobs/get/progress/struct.BlobState.html @@ -1,4 +1,4 @@ -BlobState in iroh::blobs::get::progress - Rust

Struct iroh::blobs::get::progress::BlobState

source ·
pub struct BlobState {
+BlobState in iroh::blobs::get::progress - Rust

Struct iroh::blobs::get::progress::BlobState

pub struct BlobState {
     pub hash: Hash,
     pub size: Option<BaoBlobSize>,
     pub progress: BlobProgress,
@@ -11,17 +11,17 @@ received the size from the remote.

§progress: BlobProgress

The current state of the blob transfer.

§local_ranges: Option<RangeSpec>

Ranges already available locally at the time of starting the transfer.

§child_count: Option<u64>

Number of children (only applies to hashseqs, None for raw blobs).

-

Implementations§

source§

impl BlobState

source

pub fn new(hash: Hash) -> BlobState

Create a new BlobState.

-

Trait Implementations§

source§

impl Clone for BlobState

source§

fn clone(&self) -> BlobState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BlobState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for BlobState

Implementations§

§

impl BlobState

pub fn new(hash: Hash) -> BlobState

Create a new BlobState.

+

Trait Implementations§

§

impl Clone for BlobState

§

fn clone(&self) -> BlobState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for BlobState

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for BlobState

§

fn deserialize<__D>( __deserializer: __D ) -> Result<BlobState, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for BlobState

source§

fn eq(&self, other: &BlobState) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl PartialEq for BlobState

§

fn eq(&self, other: &BlobState) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for BlobState

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for BlobState

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for BlobState

source§

impl StructuralPartialEq for BlobState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

§

impl Eq for BlobState

§

impl StructuralPartialEq for BlobState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/progress/struct.TransferState.html b/pr/2610/docs/iroh/blobs/get/progress/struct.TransferState.html index 75027f2a8e..bdda532fb8 100644 --- a/pr/2610/docs/iroh/blobs/get/progress/struct.TransferState.html +++ b/pr/2610/docs/iroh/blobs/get/progress/struct.TransferState.html @@ -1,4 +1,4 @@ -TransferState in iroh::blobs::get::progress - Rust

Struct iroh::blobs::get::progress::TransferState

source ·
pub struct TransferState {
+TransferState in iroh::blobs::get::progress - Rust

Struct iroh::blobs::get::progress::TransferState

pub struct TransferState {
     pub root: BlobState,
     pub connected: bool,
     pub children: HashMap<NonZero<u64>, BlobState>,
@@ -10,21 +10,21 @@
 
§children: HashMap<NonZero<u64>, BlobState>

Children if the root blob is a hash seq, empty for raw blobs

§current: Option<BlobId>

Child being transferred at the moment.

§progress_id_to_blob: HashMap<u64, BlobId>

Progress ids for individual blobs.

-

Implementations§

source§

impl TransferState

source

pub fn new(root_hash: Hash) -> TransferState

Create a new, empty transfer state.

-
source§

impl TransferState

source

pub fn root(&self) -> &BlobState

Get state of the root blob of this transfer.

-
source

pub fn get_blob(&self, blob_id: &BlobId) -> Option<&BlobState>

Get a blob state by its BlobId in this transfer.

-
source

pub fn get_current(&self) -> Option<&BlobState>

Get the blob state currently being transferred.

-
source

pub fn on_progress(&mut self, event: DownloadProgress)

Update the state with a new DownloadProgress event for this transfer.

-

Trait Implementations§

source§

impl Clone for TransferState

source§

fn clone(&self) -> TransferState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TransferState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for TransferState

Implementations§

§

impl TransferState

pub fn new(root_hash: Hash) -> TransferState

Create a new, empty transfer state.

+
§

impl TransferState

pub fn root(&self) -> &BlobState

Get state of the root blob of this transfer.

+

pub fn get_blob(&self, blob_id: &BlobId) -> Option<&BlobState>

Get a blob state by its BlobId in this transfer.

+

pub fn get_current(&self) -> Option<&BlobState>

Get the blob state currently being transferred.

+

pub fn on_progress(&mut self, event: DownloadProgress)

Update the state with a new DownloadProgress event for this transfer.

+

Trait Implementations§

§

impl Clone for TransferState

§

fn clone(&self) -> TransferState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for TransferState

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for TransferState

§

fn deserialize<__D>( __deserializer: __D ) -> Result<TransferState, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for TransferState

source§

fn eq(&self, other: &TransferState) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl PartialEq for TransferState

§

fn eq(&self, other: &TransferState) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for TransferState

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for TransferState

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for TransferState

source§

impl StructuralPartialEq for TransferState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for TransferState

§

impl StructuralPartialEq for TransferState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/get/progress/type.ProgressId.html b/pr/2610/docs/iroh/blobs/get/progress/type.ProgressId.html index 27f7a051d0..48225a0887 100644 --- a/pr/2610/docs/iroh/blobs/get/progress/type.ProgressId.html +++ b/pr/2610/docs/iroh/blobs/get/progress/type.ProgressId.html @@ -1,2 +1,2 @@ -ProgressId in iroh::blobs::get::progress - Rust

Type Alias iroh::blobs::get::progress::ProgressId

source ·
pub type ProgressId = u64;
Expand description

The identifier for progress events.

+ProgressId in iroh::blobs::get::progress - Rust

Type Alias iroh::blobs::get::progress::ProgressId

pub type ProgressId = u64;
Expand description

The identifier for progress events.

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/get/request/fn.get_chunk_probe.html b/pr/2610/docs/iroh/blobs/get/request/fn.get_chunk_probe.html index bc4c26590d..a4da640ed4 100644 --- a/pr/2610/docs/iroh/blobs/get/request/fn.get_chunk_probe.html +++ b/pr/2610/docs/iroh/blobs/get/request/fn.get_chunk_probe.html @@ -1,4 +1,4 @@ -get_chunk_probe in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::get_chunk_probe

source ·
pub async fn get_chunk_probe(
+get_chunk_probe in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::get_chunk_probe

pub async fn get_chunk_probe(
     connection: &Connection,
     hash: &Hash,
     chunk: ChunkNum
diff --git a/pr/2610/docs/iroh/blobs/get/request/fn.get_hash_seq_and_sizes.html b/pr/2610/docs/iroh/blobs/get/request/fn.get_hash_seq_and_sizes.html
index a75fa7f439..f50788bf93 100644
--- a/pr/2610/docs/iroh/blobs/get/request/fn.get_hash_seq_and_sizes.html
+++ b/pr/2610/docs/iroh/blobs/get/request/fn.get_hash_seq_and_sizes.html
@@ -1,4 +1,4 @@
-get_hash_seq_and_sizes in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::get_hash_seq_and_sizes

source ·
pub async fn get_hash_seq_and_sizes(
+get_hash_seq_and_sizes in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::get_hash_seq_and_sizes

pub async fn get_hash_seq_and_sizes(
     connection: &Connection,
     hash: &Hash,
     max_size: u64
diff --git a/pr/2610/docs/iroh/blobs/get/request/fn.get_unverified_size.html b/pr/2610/docs/iroh/blobs/get/request/fn.get_unverified_size.html
index d949bf553b..2fdfafb2ac 100644
--- a/pr/2610/docs/iroh/blobs/get/request/fn.get_unverified_size.html
+++ b/pr/2610/docs/iroh/blobs/get/request/fn.get_unverified_size.html
@@ -1,4 +1,4 @@
-get_unverified_size in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::get_unverified_size

source ·
pub async fn get_unverified_size(
+get_unverified_size in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::get_unverified_size

pub async fn get_unverified_size(
     connection: &Connection,
     hash: &Hash
 ) -> Result<(u64, Stats), Error>
Expand description

Get the claimed size of a blob from a peer.

diff --git a/pr/2610/docs/iroh/blobs/get/request/fn.get_verified_size.html b/pr/2610/docs/iroh/blobs/get/request/fn.get_verified_size.html index dd11092bab..e70bbc088b 100644 --- a/pr/2610/docs/iroh/blobs/get/request/fn.get_verified_size.html +++ b/pr/2610/docs/iroh/blobs/get/request/fn.get_verified_size.html @@ -1,4 +1,4 @@ -get_verified_size in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::get_verified_size

source ·
pub async fn get_verified_size(
+get_verified_size in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::get_verified_size

pub async fn get_verified_size(
     connection: &Connection,
     hash: &Hash
 ) -> Result<(u64, Stats), Error>
Expand description

Get the verified size of a blob from a peer.

diff --git a/pr/2610/docs/iroh/blobs/get/request/fn.random_hash_seq_ranges.html b/pr/2610/docs/iroh/blobs/get/request/fn.random_hash_seq_ranges.html index 92cb2b4de5..76f9253f40 100644 --- a/pr/2610/docs/iroh/blobs/get/request/fn.random_hash_seq_ranges.html +++ b/pr/2610/docs/iroh/blobs/get/request/fn.random_hash_seq_ranges.html @@ -1,4 +1,4 @@ -random_hash_seq_ranges in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::random_hash_seq_ranges

source ·
pub fn random_hash_seq_ranges(sizes: &[u64], rng: impl Rng) -> RangeSpecSeq
Expand description

Given a sequence of sizes of children, generate a range spec that selects a +random_hash_seq_ranges in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::random_hash_seq_ranges

pub fn random_hash_seq_ranges(sizes: &[u64], rng: impl Rng) -> RangeSpecSeq
Expand description

Given a sequence of sizes of children, generate a range spec that selects a random chunk of a random child.

The random chunk is chosen uniformly from the chunks of the children, so larger children are more likely to be selected.

diff --git a/pr/2610/docs/iroh/blobs/get/request/index.html b/pr/2610/docs/iroh/blobs/get/request/index.html index 8effc3b76a..a28298696a 100644 --- a/pr/2610/docs/iroh/blobs/get/request/index.html +++ b/pr/2610/docs/iroh/blobs/get/request/index.html @@ -1,4 +1,4 @@ -iroh::blobs::get::request - Rust

Module iroh::blobs::get::request

source ·
Expand description

Utilities for complex get requests.

+iroh::blobs::get::request - Rust

Module iroh::blobs::get::request

Expand description

Utilities for complex get requests.

Functions§

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/get/struct.Stats.html b/pr/2610/docs/iroh/blobs/get/struct.Stats.html index 16fb6c3196..107a2fdbcd 100644 --- a/pr/2610/docs/iroh/blobs/get/struct.Stats.html +++ b/pr/2610/docs/iroh/blobs/get/struct.Stats.html @@ -1,4 +1,4 @@ -Stats in iroh::blobs::get - Rust

Struct iroh::blobs::get::Stats

source ·
pub struct Stats {
+Stats in iroh::blobs::get - Rust

Struct iroh::blobs::get::Stats

pub struct Stats {
     pub bytes_written: u64,
     pub bytes_read: u64,
     pub elapsed: Duration,
@@ -6,17 +6,17 @@
 

Fields§

§bytes_written: u64

The number of bytes written

§bytes_read: u64

The number of bytes read

§elapsed: Duration

The time it took to transfer the data

-

Implementations§

source§

impl Stats

source

pub fn mbits(&self) -> f64

Transfer rate in megabits per second

-

Trait Implementations§

source§

impl Clone for Stats

source§

fn clone(&self) -> Stats

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Stats

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Stats

source§

fn default() -> Stats

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Stats

Implementations§

§

impl Stats

pub fn mbits(&self) -> f64

Transfer rate in megabits per second

+

Trait Implementations§

§

impl Clone for Stats

§

fn clone(&self) -> Stats

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Stats

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Stats

§

fn default() -> Stats

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Stats

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Stats, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for Stats

source§

fn eq(&self, other: &Stats) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl PartialEq for Stats

§

fn eq(&self, other: &Stats) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Stats

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for Stats

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for Stats

source§

impl StructuralPartialEq for Stats

Auto Trait Implementations§

§

impl Freeze for Stats

§

impl RefUnwindSafe for Stats

§

impl Send for Stats

§

impl Sync for Stats

§

impl Unpin for Stats

§

impl UnwindSafe for Stats

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

§

impl Eq for Stats

§

impl StructuralPartialEq for Stats

Auto Trait Implementations§

§

impl Freeze for Stats

§

impl RefUnwindSafe for Stats

§

impl Send for Stats

§

impl Sync for Stats

§

impl Unpin for Stats

§

impl UnwindSafe for Stats

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/hashseq/fn.parse_hash_seq.html b/pr/2610/docs/iroh/blobs/hashseq/fn.parse_hash_seq.html index 66cab3363f..bd2cf9444b 100644 --- a/pr/2610/docs/iroh/blobs/hashseq/fn.parse_hash_seq.html +++ b/pr/2610/docs/iroh/blobs/hashseq/fn.parse_hash_seq.html @@ -1,4 +1,4 @@ -parse_hash_seq in iroh::blobs::hashseq - Rust

Function iroh::blobs::hashseq::parse_hash_seq

source ·
pub async fn parse_hash_seq<'a, R>(
+parse_hash_seq in iroh::blobs::hashseq - Rust

Function iroh::blobs::hashseq::parse_hash_seq

pub async fn parse_hash_seq<'a, R>(
     reader: R
 ) -> Result<(HashSeqStream, u64), Error>
where R: AsyncSliceReader + 'a,
Expand description

Parse a sequence of hashes.

diff --git a/pr/2610/docs/iroh/blobs/hashseq/index.html b/pr/2610/docs/iroh/blobs/hashseq/index.html index 65d8dda668..0ab1a4606d 100644 --- a/pr/2610/docs/iroh/blobs/hashseq/index.html +++ b/pr/2610/docs/iroh/blobs/hashseq/index.html @@ -1,2 +1,2 @@ -iroh::blobs::hashseq - Rust

Module iroh::blobs::hashseq

source ·
Expand description

traits related to collections of blobs

+iroh::blobs::hashseq - Rust

Module iroh::blobs::hashseq

Expand description

traits related to collections of blobs

Structs§

Functions§

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/hashseq/struct.HashSeq.html b/pr/2610/docs/iroh/blobs/hashseq/struct.HashSeq.html index 3f6419a23b..347d4acd0c 100644 --- a/pr/2610/docs/iroh/blobs/hashseq/struct.HashSeq.html +++ b/pr/2610/docs/iroh/blobs/hashseq/struct.HashSeq.html @@ -1,13 +1,13 @@ -HashSeq in iroh::blobs::hashseq - Rust

Struct iroh::blobs::hashseq::HashSeq

source ·
pub struct HashSeq(/* private fields */);
Expand description

A sequence of links, backed by a [Bytes] object.

-

Implementations§

source§

impl HashSeq

source

pub fn new(bytes: Bytes) -> Option<HashSeq>

Create a new sequence of hashes.

-
source

pub fn iter(&self) -> impl Iterator<Item = Hash>

Iterate over the hashes in this sequence.

-
source

pub fn len(&self) -> usize

Get the number of hashes in this sequence.

-
source

pub fn is_empty(&self) -> bool

Check if this sequence is empty.

-
source

pub fn get(&self, index: usize) -> Option<Hash>

Get the hash at the given index.

-
source

pub fn pop_front(&mut self) -> Option<Hash>

Get and remove the first hash in this sequence.

-
source

pub fn into_inner(self) -> Bytes

Get the underlying bytes.

-

Trait Implementations§

source§

impl Clone for HashSeq

source§

fn clone(&self) -> HashSeq

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for HashSeq

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl FromIterator<Hash> for HashSeq

source§

fn from_iter<T>(iter: T) -> HashSeq
where - T: IntoIterator<Item = Hash>,

Creates a value from an iterator. Read more
source§

impl IntoIterator for HashSeq

§

type Item = Hash

The type of the elements being iterated over.
§

type IntoIter = HashSeqIter

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> <HashSeq as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
source§

impl TryFrom<Bytes> for HashSeq

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(bytes: Bytes) -> Result<HashSeq, <HashSeq as TryFrom<Bytes>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +HashSeq in iroh::blobs::hashseq - Rust

Struct iroh::blobs::hashseq::HashSeq

pub struct HashSeq(/* private fields */);
Expand description

A sequence of links, backed by a [Bytes] object.

+

Implementations§

§

impl HashSeq

pub fn new(bytes: Bytes) -> Option<HashSeq>

Create a new sequence of hashes.

+

pub fn iter(&self) -> impl Iterator<Item = Hash>

Iterate over the hashes in this sequence.

+

pub fn len(&self) -> usize

Get the number of hashes in this sequence.

+

pub fn is_empty(&self) -> bool

Check if this sequence is empty.

+

pub fn get(&self, index: usize) -> Option<Hash>

Get the hash at the given index.

+

pub fn pop_front(&mut self) -> Option<Hash>

Get and remove the first hash in this sequence.

+

pub fn into_inner(self) -> Bytes

Get the underlying bytes.

+

Trait Implementations§

§

impl Clone for HashSeq

§

fn clone(&self) -> HashSeq

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for HashSeq

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl FromIterator<Hash> for HashSeq

§

fn from_iter<T>(iter: T) -> HashSeq
where + T: IntoIterator<Item = Hash>,

Creates a value from an iterator. Read more
§

impl IntoIterator for HashSeq

§

type Item = Hash

The type of the elements being iterated over.
§

type IntoIter = HashSeqIter

Which kind of iterator are we turning this into?
§

fn into_iter(self) -> <HashSeq as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
§

impl TryFrom<Bytes> for HashSeq

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(bytes: Bytes) -> Result<HashSeq, <HashSeq as TryFrom<Bytes>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/hashseq/struct.HashSeqIter.html b/pr/2610/docs/iroh/blobs/hashseq/struct.HashSeqIter.html index 0fa221f8bb..51a6f007ee 100644 --- a/pr/2610/docs/iroh/blobs/hashseq/struct.HashSeqIter.html +++ b/pr/2610/docs/iroh/blobs/hashseq/struct.HashSeqIter.html @@ -1,5 +1,5 @@ -HashSeqIter in iroh::blobs::hashseq - Rust

Struct iroh::blobs::hashseq::HashSeqIter

source ·
pub struct HashSeqIter(/* private fields */);
Expand description

Iterator over the hashes in a HashSeq.

-

Trait Implementations§

source§

impl Clone for HashSeqIter

source§

fn clone(&self) -> HashSeqIter ⓘ

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for HashSeqIter

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Iterator for HashSeqIter

§

type Item = Hash

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<HashSeqIter as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( +HashSeqIter in iroh::blobs::hashseq - Rust

Struct iroh::blobs::hashseq::HashSeqIter

pub struct HashSeqIter(/* private fields */);
Expand description

Iterator over the hashes in a HashSeq.

+

Trait Implementations§

§

impl Clone for HashSeqIter

§

fn clone(&self) -> HashSeqIter ⓘ

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for HashSeqIter

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Iterator for HashSeqIter

§

type Item = Hash

The type of the elements being iterated over.
§

fn next(&mut self) -> Option<<HashSeqIter as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( &mut self ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
1.0.0 · source§

fn count(self) -> usize
where diff --git a/pr/2610/docs/iroh/blobs/hashseq/struct.HashSeqStream.html b/pr/2610/docs/iroh/blobs/hashseq/struct.HashSeqStream.html index 7fd78c049d..5e369ab96a 100644 --- a/pr/2610/docs/iroh/blobs/hashseq/struct.HashSeqStream.html +++ b/pr/2610/docs/iroh/blobs/hashseq/struct.HashSeqStream.html @@ -1,8 +1,8 @@ -HashSeqStream in iroh::blobs::hashseq - Rust

Struct iroh::blobs::hashseq::HashSeqStream

source ·
pub struct HashSeqStream(/* private fields */);
Expand description

Stream over the hashes in a HashSeq.

+HashSeqStream in iroh::blobs::hashseq - Rust

Struct iroh::blobs::hashseq::HashSeqStream

pub struct HashSeqStream(/* private fields */);
Expand description

Stream over the hashes in a HashSeq.

todo: make this wrap a reader instead of a HashSeq.

-

Implementations§

source§

impl HashSeqStream

source

pub async fn next(&mut self) -> Result<Option<Hash>, Error>

Get the next hash in the sequence.

-
source

pub async fn skip(&mut self, n: u64) -> Result<(), Error>

Skip a number of hashes in the sequence.

-

Trait Implementations§

source§

impl Clone for HashSeqStream

source§

fn clone(&self) -> HashSeqStream

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for HashSeqStream

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Implementations§

§

impl HashSeqStream

pub async fn next(&mut self) -> Result<Option<Hash>, Error>

Get the next hash in the sequence.

+

pub async fn skip(&mut self, n: u64) -> Result<(), Error>

Skip a number of hashes in the sequence.

+

Trait Implementations§

§

impl Clone for HashSeqStream

§

fn clone(&self) -> HashSeqStream

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for HashSeqStream

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/index.html b/pr/2610/docs/iroh/blobs/index.html index 88a4ad27aa..aeae4eebd4 100644 --- a/pr/2610/docs/iroh/blobs/index.html +++ b/pr/2610/docs/iroh/blobs/index.html @@ -1,4 +1,4 @@ -iroh::blobs - Rust

Crate iroh::blobs

source ·
Expand description

Blobs layer for iroh.

+iroh::blobs - Rust

Crate iroh::blobs

Expand description

Blobs layer for iroh.

Modules§

§

impl From<GetRequest> for Request

§

fn from(value: GetRequest) -> Request

Converts to this type from the input type.
§

impl PartialEq for Request

§

fn eq(&self, other: &Request) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Request

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for Request

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for Request

source§

impl StructuralPartialEq for Request

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for Request

§

impl StructuralPartialEq for Request

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/protocol/index.html b/pr/2610/docs/iroh/blobs/protocol/index.html index 526f42e4f1..356a1c2053 100644 --- a/pr/2610/docs/iroh/blobs/protocol/index.html +++ b/pr/2610/docs/iroh/blobs/protocol/index.html @@ -1,4 +1,4 @@ -iroh::blobs::protocol - Rust

Module iroh::blobs::protocol

source ·
Expand description

Protocol for transferring content-addressed blobs and collections over quic +iroh::blobs::protocol - Rust

Module iroh::blobs::protocol

Expand description

Protocol for transferring content-addressed blobs and collections over quic connections. This can be used either with normal quic connections when using the quinn crate or with magicsock connections when using the iroh-net crate.

diff --git a/pr/2610/docs/iroh/blobs/protocol/struct.GetRequest.html b/pr/2610/docs/iroh/blobs/protocol/struct.GetRequest.html index de54ff0362..c512078196 100644 --- a/pr/2610/docs/iroh/blobs/protocol/struct.GetRequest.html +++ b/pr/2610/docs/iroh/blobs/protocol/struct.GetRequest.html @@ -1,27 +1,27 @@ -GetRequest in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::GetRequest

source ·
pub struct GetRequest {
+GetRequest in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::GetRequest

pub struct GetRequest {
     pub hash: Hash,
     pub ranges: RangeSpecSeq,
 }
Expand description

A request

Fields§

§hash: Hash

blake3 hash

§ranges: RangeSpecSeq

The range of data to request

The first element is the parent, all subsequent elements are children.

-

Implementations§

source§

impl GetRequest

source

pub fn new(hash: Hash, ranges: RangeSpecSeq) -> GetRequest

Request a blob or collection with specified ranges

-
source

pub fn all(hash: Hash) -> GetRequest

Request a collection and all its children

-
source

pub fn single(hash: Hash) -> GetRequest

Request just a single blob

-
source

pub fn last_chunk(hash: Hash) -> GetRequest

Request the last chunk of a single blob

+

Implementations§

§

impl GetRequest

pub fn new(hash: Hash, ranges: RangeSpecSeq) -> GetRequest

Request a blob or collection with specified ranges

+

pub fn all(hash: Hash) -> GetRequest

Request a collection and all its children

+

pub fn single(hash: Hash) -> GetRequest

Request just a single blob

+

pub fn last_chunk(hash: Hash) -> GetRequest

Request the last chunk of a single blob

This can be used to get the verified size of a blob.

-
source

pub fn last_chunks(hash: Hash) -> GetRequest

Request the last chunk for all children

+

pub fn last_chunks(hash: Hash) -> GetRequest

Request the last chunk for all children

This can be used to get the verified size of all children.

-

Trait Implementations§

source§

impl Clone for GetRequest

source§

fn clone(&self) -> GetRequest

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GetRequest

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for GetRequest

Trait Implementations§

§

impl Clone for GetRequest

§

fn clone(&self) -> GetRequest

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for GetRequest

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for GetRequest

§

fn deserialize<__D>( __deserializer: __D ) -> Result<GetRequest, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<GetRequest> for Request

source§

fn from(value: GetRequest) -> Request

Converts to this type from the input type.
source§

impl PartialEq for GetRequest

source§

fn eq(&self, other: &GetRequest) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl From<GetRequest> for Request

§

fn from(value: GetRequest) -> Request

Converts to this type from the input type.
§

impl PartialEq for GetRequest

§

fn eq(&self, other: &GetRequest) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for GetRequest

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for GetRequest

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for GetRequest

source§

impl StructuralPartialEq for GetRequest

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

§

impl Eq for GetRequest

§

impl StructuralPartialEq for GetRequest

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/protocol/struct.NonEmptyRequestRangeSpecIter.html b/pr/2610/docs/iroh/blobs/protocol/struct.NonEmptyRequestRangeSpecIter.html index eb300d4cea..1de76375c1 100644 --- a/pr/2610/docs/iroh/blobs/protocol/struct.NonEmptyRequestRangeSpecIter.html +++ b/pr/2610/docs/iroh/blobs/protocol/struct.NonEmptyRequestRangeSpecIter.html @@ -1,6 +1,6 @@ -NonEmptyRequestRangeSpecIter in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::NonEmptyRequestRangeSpecIter

source ·
pub struct NonEmptyRequestRangeSpecIter<'a> { /* private fields */ }
Expand description

An iterator over blobs in the sequence with a non-empty range specs.

+NonEmptyRequestRangeSpecIter in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::NonEmptyRequestRangeSpecIter

pub struct NonEmptyRequestRangeSpecIter<'a> { /* private fields */ }
Expand description

An iterator over blobs in the sequence with a non-empty range specs.

default is what to use if the children of this RequestRangeSpec are empty.

-

Trait Implementations§

source§

impl<'a> Debug for NonEmptyRequestRangeSpecIter<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a> Iterator for NonEmptyRequestRangeSpecIter<'a>

§

type Item = (u64, &'a RangeSpec)

The type of the elements being iterated over.
source§

fn next( +

Trait Implementations§

§

impl<'a> Debug for NonEmptyRequestRangeSpecIter<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a> Iterator for NonEmptyRequestRangeSpecIter<'a>

§

type Item = (u64, &'a RangeSpec)

The type of the elements being iterated over.
§

fn next( &mut self ) -> Option<<NonEmptyRequestRangeSpecIter<'a> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( &mut self diff --git a/pr/2610/docs/iroh/blobs/protocol/struct.RangeSpec.html b/pr/2610/docs/iroh/blobs/protocol/struct.RangeSpec.html index f1f135bad0..91d48f6d86 100644 --- a/pr/2610/docs/iroh/blobs/protocol/struct.RangeSpec.html +++ b/pr/2610/docs/iroh/blobs/protocol/struct.RangeSpec.html @@ -1,4 +1,4 @@ -RangeSpec in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::RangeSpec

source ·
pub struct RangeSpec(/* private fields */);
Expand description

A chunk range specification as a sequence of chunk offsets.

+RangeSpec in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::RangeSpec

pub struct RangeSpec(/* private fields */);
Expand description

A chunk range specification as a sequence of chunk offsets.

Offsets encode alternating spans starting on 0, where the first span is always deselected.

§Examples:

@@ -29,26 +29,26 @@ selected.

This is a SmallVec so we can avoid allocations for the very common case of a single chunk range.

-

Implementations§

source§

impl RangeSpec

source

pub fn new(ranges: impl AsRef<RangeSetRef<ChunkNum>>) -> RangeSpec

Creates a new RangeSpec from a range set.

-
source

pub const EMPTY: RangeSpec = _

A RangeSpec selecting nothing from the blob.

+

Implementations§

§

impl RangeSpec

pub fn new(ranges: impl AsRef<RangeSetRef<ChunkNum>>) -> RangeSpec

Creates a new RangeSpec from a range set.

+

pub const EMPTY: RangeSpec = _

A RangeSpec selecting nothing from the blob.

This is called “empty” because the representation is an empty set.

-
source

pub fn all() -> RangeSpec

Creates a RangeSpec selecting the entire blob.

-
source

pub fn is_empty(&self) -> bool

Checks if this RangeSpec does not select any chunks in the blob.

-
source

pub fn is_all(&self) -> bool

Checks if this RangeSpec selects all chunks in the blob.

-
source

pub fn to_chunk_ranges(&self) -> RangeSet<[ChunkNum; 2]>

Creates a ChunkRanges from this RangeSpec.

-

Trait Implementations§

source§

impl Clone for RangeSpec

source§

fn clone(&self) -> RangeSpec

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RangeSpec

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for RangeSpec

pub fn all() -> RangeSpec

Creates a RangeSpec selecting the entire blob.

+

pub fn is_empty(&self) -> bool

Checks if this RangeSpec does not select any chunks in the blob.

+

pub fn is_all(&self) -> bool

Checks if this RangeSpec selects all chunks in the blob.

+

pub fn to_chunk_ranges(&self) -> RangeSet<[ChunkNum; 2]>

Creates a ChunkRanges from this RangeSpec.

+

Trait Implementations§

§

impl Clone for RangeSpec

§

fn clone(&self) -> RangeSpec

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for RangeSpec

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for RangeSpec

§

fn deserialize<__D>( __deserializer: __D ) -> Result<RangeSpec, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Hash for RangeSpec

source§

fn hash<__H>(&self, state: &mut __H)
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Hash for RangeSpec

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for RangeSpec

source§

fn eq(&self, other: &RangeSpec) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl PartialEq for RangeSpec

§

fn eq(&self, other: &RangeSpec) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for RangeSpec

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for RangeSpec

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for RangeSpec

source§

impl StructuralPartialEq for RangeSpec

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

§

impl Eq for RangeSpec

§

impl StructuralPartialEq for RangeSpec

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/protocol/struct.RangeSpecSeq.html b/pr/2610/docs/iroh/blobs/protocol/struct.RangeSpecSeq.html index 4ca9f1bbee..09f6724b4e 100644 --- a/pr/2610/docs/iroh/blobs/protocol/struct.RangeSpecSeq.html +++ b/pr/2610/docs/iroh/blobs/protocol/struct.RangeSpecSeq.html @@ -1,4 +1,4 @@ -RangeSpecSeq in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::RangeSpecSeq

source ·
pub struct RangeSpecSeq(/* private fields */);
Expand description

A chunk range specification for a sequence of blobs.

+RangeSpecSeq in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::RangeSpecSeq

pub struct RangeSpecSeq(/* private fields */);
Expand description

A chunk range specification for a sequence of blobs.

To select chunks in a sequence of blobs this is encoded as a sequence of (blob_offset, range_spec) tuples. Offsets are interpreted in an accumulating fashion.

§Example:

Suppose two RangeSpecs range_a and range_b.

@@ -31,45 +31,45 @@ previous range appears.

This is a smallvec so that we can avoid allocations in the common case of a single child range.

-

Implementations§

source§

impl RangeSpecSeq

source

pub const fn empty() -> RangeSpecSeq

A RangeSpecSeq containing no chunks from any blobs in the sequence.

+

Implementations§

§

impl RangeSpecSeq

pub const fn empty() -> RangeSpecSeq

A RangeSpecSeq containing no chunks from any blobs in the sequence.

RangeSpecSeq::iter, will return an empty range forever.

-
source

pub fn as_single(&self) -> Option<(u64, &RangeSpec)>

If this range seq describes a range for a single item, returns the offset +

pub fn as_single(&self) -> Option<(u64, &RangeSpec)>

If this range seq describes a range for a single item, returns the offset and range spec for that item

-
source

pub fn all() -> RangeSpecSeq

A RangeSpecSeq containing all chunks from all blobs.

+

pub fn all() -> RangeSpecSeq

A RangeSpecSeq containing all chunks from all blobs.

RangeSpecSeq::iter, will return a full range forever.

-
source

pub fn from_ranges( +

pub fn from_ranges( ranges: impl IntoIterator<Item = impl AsRef<RangeSetRef<ChunkNum>>> ) -> RangeSpecSeq

Convenience function to create a RangeSpecSeq from a finite sequence of range sets.

-
source

pub fn from_ranges_infinite( +

pub fn from_ranges_infinite( ranges: impl IntoIterator<Item = impl AsRef<RangeSetRef<ChunkNum>>> ) -> RangeSpecSeq

Convenience function to create a RangeSpecSeq from a sequence of range sets.

Compared to RangeSpecSeq::from_ranges, this will not add an empty range spec at the end, so the final range spec will repeat forever.

-
source

pub fn new(children: impl IntoIterator<Item = RangeSpec>) -> RangeSpecSeq

Creates a new range spec sequence from a sequence of range specs.

+

pub fn new(children: impl IntoIterator<Item = RangeSpec>) -> RangeSpecSeq

Creates a new range spec sequence from a sequence of range specs.

This will merge adjacent range specs with the same value and thus make sure that the resulting sequence is as compact as possible.

-
source

pub fn iter(&self) -> RequestRangeSpecIter<'_>

An infinite iterator of range specs for blobs in the sequence.

+

pub fn iter(&self) -> RequestRangeSpecIter<'_>

An infinite iterator of range specs for blobs in the sequence.

Each item yielded by the iterator is the RangeSpec for a blob in the sequence. Thus the first call to .next() returns the range spec for the first blob, the next call returns the range spec of the second blob, etc.

-
source

pub fn iter_non_empty(&self) -> NonEmptyRequestRangeSpecIter<'_> ⓘ

An iterator over blobs in the sequence with a non-empty range spec.

+

pub fn iter_non_empty(&self) -> NonEmptyRequestRangeSpecIter<'_> ⓘ

An iterator over blobs in the sequence with a non-empty range spec.

This iterator will only yield items for blobs which have at least one chunk selected.

This iterator is infinite if the RangeSpecSeq ends on a non-empty RangeSpec, that is all further blobs have selected chunks spans.

-

Trait Implementations§

source§

impl Clone for RangeSpecSeq

source§

fn clone(&self) -> RangeSpecSeq

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RangeSpecSeq

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for RangeSpecSeq

Trait Implementations§

§

impl Clone for RangeSpecSeq

§

fn clone(&self) -> RangeSpecSeq

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for RangeSpecSeq

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for RangeSpecSeq

§

fn deserialize<__D>( __deserializer: __D ) -> Result<RangeSpecSeq, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Hash for RangeSpecSeq

source§

fn hash<__H>(&self, state: &mut __H)
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Hash for RangeSpecSeq

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for RangeSpecSeq

source§

fn eq(&self, other: &RangeSpecSeq) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more

§

impl PartialEq for RangeSpecSeq

§

fn eq(&self, other: &RangeSpecSeq) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for RangeSpecSeq

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for RangeSpecSeq

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for RangeSpecSeq

source§

impl StructuralPartialEq for RangeSpecSeq

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for RangeSpecSeq

§

impl StructuralPartialEq for RangeSpecSeq

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/protocol/struct.UnknownErrorCode.html b/pr/2610/docs/iroh/blobs/protocol/struct.UnknownErrorCode.html index 5557f0643b..2ca6aa47af 100644 --- a/pr/2610/docs/iroh/blobs/protocol/struct.UnknownErrorCode.html +++ b/pr/2610/docs/iroh/blobs/protocol/struct.UnknownErrorCode.html @@ -1,5 +1,5 @@ -UnknownErrorCode in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::UnknownErrorCode

source ·
pub struct UnknownErrorCode(/* private fields */);
Expand description

Unknown error_code, can not be converted into Closed.

-

Trait Implementations§

source§

impl Debug for UnknownErrorCode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for UnknownErrorCode

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for UnknownErrorCode

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +UnknownErrorCode in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::UnknownErrorCode

pub struct UnknownErrorCode(/* private fields */);
Expand description

Unknown error_code, can not be converted into Closed.

+

Trait Implementations§

§

impl Debug for UnknownErrorCode

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for UnknownErrorCode

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for UnknownErrorCode

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/provider/enum.AddProgress.html b/pr/2610/docs/iroh/blobs/provider/enum.AddProgress.html index 028acbff6c..5084d39c6a 100644 --- a/pr/2610/docs/iroh/blobs/provider/enum.AddProgress.html +++ b/pr/2610/docs/iroh/blobs/provider/enum.AddProgress.html @@ -1,4 +1,4 @@ -AddProgress in iroh::blobs::provider - Rust

Enum iroh::blobs::provider::AddProgress

source ·
pub enum AddProgress {
+AddProgress in iroh::blobs::provider - Rust

Enum iroh::blobs::provider::AddProgress

pub enum AddProgress {
     Found {
         id: u64,
         name: String,
@@ -35,10 +35,10 @@
 
§tag: Tag

The tag of the added data.

§

Abort(RpcError)

We got an error and need to abort.

This will be the last message in the stream.

-

Trait Implementations§

source§

impl Debug for AddProgress

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for AddProgress

Trait Implementations§

§

impl Debug for AddProgress

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for AddProgress

§

fn deserialize<__D>( __deserializer: __D ) -> Result<AddProgress, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for AddProgress

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl Serialize for AddProgress

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2610/docs/iroh/blobs/provider/enum.Event.html b/pr/2610/docs/iroh/blobs/provider/enum.Event.html index 69f80c5281..0dc460a48e 100644 --- a/pr/2610/docs/iroh/blobs/provider/enum.Event.html +++ b/pr/2610/docs/iroh/blobs/provider/enum.Event.html @@ -1,4 +1,4 @@ -Event in iroh::blobs::provider - Rust

Enum iroh::blobs::provider::Event

source ·
pub enum Event {
+Event in iroh::blobs::provider - Rust

Enum iroh::blobs::provider::Event

pub enum Event {
     TaggedBlobAdded {
         hash: Hash,
         format: BlobFormat,
@@ -77,7 +77,7 @@ will receive all of them.

§request_id: u64

An identifier uniquely identifying this request.

§stats: Option<Box<TransferStats>>

statistics about the transfer. This is None if the transfer was aborted before any data was sent.

-

Trait Implementations§

source§

impl Clone for Event

source§

fn clone(&self) -> Event

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Event

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for Event

§

fn clone(&self) -> Event

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Event

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/provider/enum.SentStatus.html b/pr/2610/docs/iroh/blobs/provider/enum.SentStatus.html index f56cf12aa9..bbf4b995b3 100644 --- a/pr/2610/docs/iroh/blobs/provider/enum.SentStatus.html +++ b/pr/2610/docs/iroh/blobs/provider/enum.SentStatus.html @@ -1,12 +1,12 @@ -SentStatus in iroh::blobs::provider - Rust

Enum iroh::blobs::provider::SentStatus

source ·
pub enum SentStatus {
+SentStatus in iroh::blobs::provider - Rust

Enum iroh::blobs::provider::SentStatus

pub enum SentStatus {
     Sent,
     NotFound,
 }
Expand description

Status of a send operation

Variants§

§

Sent

The requested data was sent

§

NotFound

The requested data was not found

-

Trait Implementations§

source§

impl Clone for SentStatus

source§

fn clone(&self) -> SentStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SentStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq for SentStatus

source§

fn eq(&self, other: &SentStatus) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for SentStatus

§

fn clone(&self) -> SentStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for SentStatus

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq for SentStatus

§

fn eq(&self, other: &SentStatus) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Eq for SentStatus

source§

impl StructuralPartialEq for SentStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

§

impl Eq for SentStatus

§

impl StructuralPartialEq for SentStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/provider/fn.handle_connection.html b/pr/2610/docs/iroh/blobs/provider/fn.handle_connection.html index 29d2f4f6ed..7633ae6340 100644 --- a/pr/2610/docs/iroh/blobs/provider/fn.handle_connection.html +++ b/pr/2610/docs/iroh/blobs/provider/fn.handle_connection.html @@ -1,4 +1,4 @@ -handle_connection in iroh::blobs::provider - Rust

Function iroh::blobs::provider::handle_connection

source ·
pub async fn handle_connection<D>(
+handle_connection in iroh::blobs::provider - Rust

Function iroh::blobs::provider::handle_connection

pub async fn handle_connection<D>(
     connection: Connection,
     db: D,
     events: EventSender,
diff --git a/pr/2610/docs/iroh/blobs/provider/fn.handle_get.html b/pr/2610/docs/iroh/blobs/provider/fn.handle_get.html
index e0730d47d2..b2cf1c028f 100644
--- a/pr/2610/docs/iroh/blobs/provider/fn.handle_get.html
+++ b/pr/2610/docs/iroh/blobs/provider/fn.handle_get.html
@@ -1,4 +1,4 @@
-handle_get in iroh::blobs::provider - Rust

Function iroh::blobs::provider::handle_get

source ·
pub async fn handle_get<D>(
+handle_get in iroh::blobs::provider - Rust

Function iroh::blobs::provider::handle_get

pub async fn handle_get<D>(
     db: D,
     request: GetRequest,
     writer: ResponseWriter
diff --git a/pr/2610/docs/iroh/blobs/provider/fn.read_request.html b/pr/2610/docs/iroh/blobs/provider/fn.read_request.html
index 1539eb7e1c..cbf21ac508 100644
--- a/pr/2610/docs/iroh/blobs/provider/fn.read_request.html
+++ b/pr/2610/docs/iroh/blobs/provider/fn.read_request.html
@@ -1,4 +1,4 @@
-read_request in iroh::blobs::provider - Rust

Function iroh::blobs::provider::read_request

source ·
pub async fn read_request(reader: RecvStream) -> Result<Request, Error>
Expand description

Read the request from the getter.

+read_request in iroh::blobs::provider - Rust

Function iroh::blobs::provider::read_request

pub async fn read_request(reader: RecvStream) -> Result<Request, Error>
Expand description

Read the request from the getter.

Will fail if there is an error while reading, if the reader contains more data than the Request, or if no valid request is sent.

When successful, the buffer is empty after this function call.

diff --git a/pr/2610/docs/iroh/blobs/provider/fn.send_blob.html b/pr/2610/docs/iroh/blobs/provider/fn.send_blob.html index 8d4279f53e..858cba393a 100644 --- a/pr/2610/docs/iroh/blobs/provider/fn.send_blob.html +++ b/pr/2610/docs/iroh/blobs/provider/fn.send_blob.html @@ -1,4 +1,4 @@ -send_blob in iroh::blobs::provider - Rust

Function iroh::blobs::provider::send_blob

source ·
pub async fn send_blob<D, W>(
+send_blob in iroh::blobs::provider - Rust

Function iroh::blobs::provider::send_blob

pub async fn send_blob<D, W>(
     db: &D,
     hash: Hash,
     ranges: &RangeSpec,
diff --git a/pr/2610/docs/iroh/blobs/provider/fn.transfer_collection.html b/pr/2610/docs/iroh/blobs/provider/fn.transfer_collection.html
index af5fdafb3a..ffe63ff3ce 100644
--- a/pr/2610/docs/iroh/blobs/provider/fn.transfer_collection.html
+++ b/pr/2610/docs/iroh/blobs/provider/fn.transfer_collection.html
@@ -1,4 +1,4 @@
-transfer_collection in iroh::blobs::provider - Rust

Function iroh::blobs::provider::transfer_collection

source ·
pub async fn transfer_collection<D>(
+transfer_collection in iroh::blobs::provider - Rust

Function iroh::blobs::provider::transfer_collection

pub async fn transfer_collection<D>(
     request: GetRequest,
     db: &D,
     writer: &mut ResponseWriter,
diff --git a/pr/2610/docs/iroh/blobs/provider/index.html b/pr/2610/docs/iroh/blobs/provider/index.html
index da06ae1348..94e7fb4a71 100644
--- a/pr/2610/docs/iroh/blobs/provider/index.html
+++ b/pr/2610/docs/iroh/blobs/provider/index.html
@@ -1,2 +1,2 @@
-iroh::blobs::provider - Rust

Module iroh::blobs::provider

source ·
Expand description

The server side API

+iroh::blobs::provider - Rust

Module iroh::blobs::provider

Expand description

The server side API

Structs§

  • A possibly disabled sender for events.
  • A helper struct that combines a quinn::SendStream with auxiliary information
  • The stats for a transfer of a collection or blob.

Enums§

  • Progress updates for the add operation.
  • Events emitted by the provider informing about the current status.
  • Status of a send operation

Traits§

Functions§

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/provider/struct.EventSender.html b/pr/2610/docs/iroh/blobs/provider/struct.EventSender.html index f4485f23d9..714ab5213b 100644 --- a/pr/2610/docs/iroh/blobs/provider/struct.EventSender.html +++ b/pr/2610/docs/iroh/blobs/provider/struct.EventSender.html @@ -1,15 +1,15 @@ -EventSender in iroh::blobs::provider - Rust

Struct iroh::blobs::provider::EventSender

source ·
pub struct EventSender { /* private fields */ }
Expand description

A possibly disabled sender for events.

-

Implementations§

source§

impl EventSender

source

pub fn new(inner: Option<Arc<dyn CustomEventSender>>) -> EventSender

Create a new event sender.

-
source

pub async fn send(&self, event: impl FnOnce() -> Event)

Send an event.

+EventSender in iroh::blobs::provider - Rust

Struct iroh::blobs::provider::EventSender

pub struct EventSender { /* private fields */ }
Expand description

A possibly disabled sender for events.

+

Implementations§

§

impl EventSender

pub fn new(inner: Option<Arc<dyn CustomEventSender>>) -> EventSender

Create a new event sender.

+

pub async fn send(&self, event: impl FnOnce() -> Event)

Send an event.

If the inner sender is not set, the function to produce the event will not be called. So any cost associated with gathering information for the event will not be incurred.

-
source

pub fn try_send(&self, event: impl FnOnce() -> Event)

Try to send an event.

+

pub fn try_send(&self, event: impl FnOnce() -> Event)

Try to send an event.

This will just drop the event if it can not be sent immediately. So it is only appropriate for events that are not critical, such as self-contained progress updates.

-

Trait Implementations§

source§

impl Clone for EventSender

source§

fn clone(&self) -> EventSender

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for EventSender

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for EventSender

source§

fn default() -> EventSender

Returns the “default value” for a type. Read more
source§

impl<T> From<T> for EventSender
where - T: CustomEventSender,

source§

fn from(inner: T) -> EventSender

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for EventSender

§

fn clone(&self) -> EventSender

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for EventSender

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for EventSender

§

fn default() -> EventSender

Returns the “default value” for a type. Read more
§

impl<T> From<T> for EventSender
where + T: CustomEventSender,

§

fn from(inner: T) -> EventSender

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/provider/struct.ResponseWriter.html b/pr/2610/docs/iroh/blobs/provider/struct.ResponseWriter.html index d254450278..a19e3c625e 100644 --- a/pr/2610/docs/iroh/blobs/provider/struct.ResponseWriter.html +++ b/pr/2610/docs/iroh/blobs/provider/struct.ResponseWriter.html @@ -1,5 +1,5 @@ -ResponseWriter in iroh::blobs::provider - Rust

Struct iroh::blobs::provider::ResponseWriter

source ·
pub struct ResponseWriter { /* private fields */ }
Expand description

A helper struct that combines a quinn::SendStream with auxiliary information

-

Trait Implementations§

source§

impl Debug for ResponseWriter

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +ResponseWriter in iroh::blobs::provider - Rust

Struct iroh::blobs::provider::ResponseWriter

pub struct ResponseWriter { /* private fields */ }
Expand description

A helper struct that combines a quinn::SendStream with auxiliary information

+

Trait Implementations§

§

impl Debug for ResponseWriter

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/provider/struct.TransferStats.html b/pr/2610/docs/iroh/blobs/provider/struct.TransferStats.html index b9a8bf5c06..2e06ab7e5c 100644 --- a/pr/2610/docs/iroh/blobs/provider/struct.TransferStats.html +++ b/pr/2610/docs/iroh/blobs/provider/struct.TransferStats.html @@ -1,4 +1,4 @@ -TransferStats in iroh::blobs::provider - Rust

Struct iroh::blobs::provider::TransferStats

source ·
pub struct TransferStats {
+TransferStats in iroh::blobs::provider - Rust

Struct iroh::blobs::provider::TransferStats

pub struct TransferStats {
     pub send: StreamWriterStats,
     pub read: SliceReaderStats,
     pub duration: Duration,
@@ -6,7 +6,7 @@
 

Fields§

§send: StreamWriterStats

Stats for sending to the client.

§read: SliceReaderStats

Stats for reading from disk.

§duration: Duration

The total duration of the transfer.

-

Trait Implementations§

source§

impl Clone for TransferStats

source§

fn clone(&self) -> TransferStats

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TransferStats

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for TransferStats

source§

fn default() -> TransferStats

Returns the “default value” for a type. Read more
source§

impl Copy for TransferStats

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for TransferStats

§

fn clone(&self) -> TransferStats

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for TransferStats

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for TransferStats

§

fn default() -> TransferStats

Returns the “default value” for a type. Read more
§

impl Copy for TransferStats

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/provider/trait.CustomEventSender.html b/pr/2610/docs/iroh/blobs/provider/trait.CustomEventSender.html index 678681bae1..a823613537 100644 --- a/pr/2610/docs/iroh/blobs/provider/trait.CustomEventSender.html +++ b/pr/2610/docs/iroh/blobs/provider/trait.CustomEventSender.html @@ -1,8 +1,8 @@ -CustomEventSender in iroh::blobs::provider - Rust

Trait iroh::blobs::provider::CustomEventSender

source ·
pub trait CustomEventSender: Debug + Sync + Send + 'static {
+CustomEventSender in iroh::blobs::provider - Rust

Trait iroh::blobs::provider::CustomEventSender

pub trait CustomEventSender: Debug + Sync + Send + 'static {
     // Required methods
     fn send(&self, event: Event) -> Pin<Box<dyn Future<Output = ()> + Send>>;
     fn try_send(&self, event: Event);
 }
Expand description

Trait for sending blob events.

-

Required Methods§

source

fn send(&self, event: Event) -> Pin<Box<dyn Future<Output = ()> + Send>>

Send an event and wait for it to be sent.

-
source

fn try_send(&self, event: Event)

Try to send an event.

+

Required Methods§

fn send(&self, event: Event) -> Pin<Box<dyn Future<Output = ()> + Send>>

Send an event and wait for it to be sent.

+

fn try_send(&self, event: Event)

Try to send an event.

Implementors§

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/bao_tree/io/enum.DecodeError.html b/pr/2610/docs/iroh/blobs/store/bao_tree/io/enum.DecodeError.html index 35d8fc8921..6e3c57adbb 100644 --- a/pr/2610/docs/iroh/blobs/store/bao_tree/io/enum.DecodeError.html +++ b/pr/2610/docs/iroh/blobs/store/bao_tree/io/enum.DecodeError.html @@ -10,7 +10,7 @@
§

ParentHashMismatch(TreeNode)

The hash of a parent did not match the expected hash

§

LeafHashMismatch(ChunkNum)

The hash of a leaf did not match the expected hash

§

Io(Error)

There was an error reading from the underlying io

-

Trait Implementations§

§

impl Debug for DecodeError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for DecodeError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for DecodeError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<DecodeError> for DecodeError

source§

fn from(value: DecodeError) -> DecodeError

Converts to this type from the input type.
source§

impl From<DecodeError> for GetResponseError

source§

fn from(cause: DecodeError) -> GetResponseError

Converts to this type from the input type.
§

impl From<Error> for DecodeError

§

fn from(e: Error) -> DecodeError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for DecodeError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for DecodeError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for DecodeError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<DecodeError> for DecodeError

§

fn from(value: DecodeError) -> DecodeError

Converts to this type from the input type.
§

impl From<DecodeError> for GetResponseError

§

fn from(cause: DecodeError) -> GetResponseError

Converts to this type from the input type.
§

impl From<Error> for DecodeError

§

fn from(e: Error) -> DecodeError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceWriter.html b/pr/2610/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceWriter.html index 31cde98cbc..3419b5d4cc 100644 --- a/pr/2610/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceWriter.html +++ b/pr/2610/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceWriter.html @@ -55,8 +55,8 @@ Other than that it is equivalent to Result<(), Error>

§

async fn set_len(&mut self, len: u64) -> Result<(), Error>

§

async fn sync(&mut self) -> Result<(), Error>

Implementors§

§

impl AsyncSliceWriter for File

§

impl<W> AsyncSliceWriter for ConcatenateSliceWriter<W>
where W: AsyncWrite + Unpin + 'static,

§

impl<W> AsyncSliceWriter for TrackingSliceWriter<W>
where - W: AsyncSliceWriter,

source§

impl<W, F> AsyncSliceWriter for FallibleProgressSliceWriter<W, F>
where + W: AsyncSliceWriter,

§

impl<W, F> AsyncSliceWriter for FallibleProgressSliceWriter<W, F>
where W: AsyncSliceWriter + 'static, - F: Fn(u64, usize) -> Result<(), Error> + 'static,

source§

impl<W, F> AsyncSliceWriter for ProgressSliceWriter<W, F>
where + F: Fn(u64, usize) -> Result<(), Error> + 'static,

§

impl<W, F> AsyncSliceWriter for ProgressSliceWriter<W, F>
where W: AsyncSliceWriter + 'static, F: FnMut(u64, usize) + 'static,

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/bao_tree/io/sync/trait.ReadAt.html b/pr/2610/docs/iroh/blobs/store/bao_tree/io/sync/trait.ReadAt.html index 6d8de9b993..d49e13f497 100644 --- a/pr/2610/docs/iroh/blobs/store/bao_tree/io/sync/trait.ReadAt.html +++ b/pr/2610/docs/iroh/blobs/store/bao_tree/io/sync/trait.ReadAt.html @@ -35,5 +35,5 @@ for details.

R: ReadAt,

source§

fn read_at(&self, pos: u64, buf: &mut [u8]) -> Result<usize, Error>

source§

impl<'a, R> ReadAt for &'a R
where R: ReadAt + ?Sized,

source§

fn read_at(&self, pos: u64, buf: &mut [u8]) -> Result<usize, Error>

source§

impl<'a, R> ReadAt for &'a mut R
where R: ReadAt + ?Sized,

source§

fn read_at(&self, pos: u64, buf: &mut [u8]) -> Result<usize, Error>

source§

impl<R> ReadAt for Box<R>
where - R: ReadAt + ?Sized,

source§

fn read_at(&self, pos: u64, buf: &mut [u8]) -> Result<usize, Error>

Implementors§

source§

fn read_at(&self, pos: u64, buf: &mut [u8]) -> Result<usize, Error>

Implementors§

§

impl ReadAt for MemOrFile<Bytes, File>

§

impl ReadAt for SparseMemFile

source§

impl ReadAt for RandomAccessFile

source§

impl<I> ReadAt for Slice<I>
where I: ReadAt,

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/bao_tree/io/sync/trait.Size.html b/pr/2610/docs/iroh/blobs/store/bao_tree/io/sync/trait.Size.html index dd27e3d4a2..9e31f4ff4c 100644 --- a/pr/2610/docs/iroh/blobs/store/bao_tree/io/sync/trait.Size.html +++ b/pr/2610/docs/iroh/blobs/store/bao_tree/io/sync/trait.Size.html @@ -25,4 +25,4 @@ for pipes.

S: Size,

source§

impl<'a, S> Size for &'a S
where S: Size + ?Sized,

source§

impl<'a, S> Size for &'a mut S
where S: Size + ?Sized,

source§

impl<S> Size for Box<S>
where - S: Size + ?Sized,

Implementors§

\ No newline at end of file + S: Size + ?Sized,

Implementors§

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/bao_tree/io/sync/trait.WriteAt.html b/pr/2610/docs/iroh/blobs/store/bao_tree/io/sync/trait.WriteAt.html index e5a064cdaf..2e4442220a 100644 --- a/pr/2610/docs/iroh/blobs/store/bao_tree/io/sync/trait.WriteAt.html +++ b/pr/2610/docs/iroh/blobs/store/bao_tree/io/sync/trait.WriteAt.html @@ -41,5 +41,5 @@ for details.

Implementations on Foreign Types§

source§

impl WriteAt for Vec<u8>

source§

fn write_at(&mut self, pos: u64, buf: &[u8]) -> Result<usize, Error>

source§

fn flush(&mut self) -> Result<(), Error>

source§

impl WriteAt for File

source§

fn write_at(&mut self, pos: u64, buf: &[u8]) -> Result<usize, Error>

source§

fn flush(&mut self) -> Result<(), Error>

source§

impl<'a> WriteAt for &'a mut [u8]

source§

fn write_at(&mut self, pos: u64, buf: &[u8]) -> Result<usize, Error>

source§

fn flush(&mut self) -> Result<(), Error>

source§

impl<'a, W> WriteAt for &'a RefCell<W>
where W: WriteAt,

source§

fn write_at(&mut self, pos: u64, buf: &[u8]) -> Result<usize, Error>

source§

fn flush(&mut self) -> Result<(), Error>

source§

impl<'a, W> WriteAt for &'a mut W
where W: WriteAt + ?Sized,

source§

fn write_at(&mut self, pos: u64, buf: &[u8]) -> Result<usize, Error>

source§

fn flush(&mut self) -> Result<(), Error>

source§

impl<R> WriteAt for Box<R>
where - R: WriteAt + ?Sized,

source§

fn write_at(&mut self, pos: u64, buf: &[u8]) -> Result<usize, Error>

source§

fn flush(&mut self) -> Result<(), Error>

Implementors§

source§

fn write_at(&mut self, pos: u64, buf: &[u8]) -> Result<usize, Error>

source§

fn flush(&mut self) -> Result<(), Error>

Implementors§

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/enum.BaoBlobSize.html b/pr/2610/docs/iroh/blobs/store/enum.BaoBlobSize.html index a457fcaa2b..f82e754558 100644 --- a/pr/2610/docs/iroh/blobs/store/enum.BaoBlobSize.html +++ b/pr/2610/docs/iroh/blobs/store/enum.BaoBlobSize.html @@ -1,21 +1,21 @@ -BaoBlobSize in iroh::blobs::store - Rust

Enum iroh::blobs::store::BaoBlobSize

source ·
pub enum BaoBlobSize {
+BaoBlobSize in iroh::blobs::store - Rust

Enum iroh::blobs::store::BaoBlobSize

pub enum BaoBlobSize {
     Unverified(u64),
     Verified(u64),
 }
Expand description

The size of a bao file

Variants§

§

Unverified(u64)

A remote side told us the size, but we have insufficient data to verify it.

§

Verified(u64)

We have verified the size.

-

Implementations§

source§

impl BaoBlobSize

source

pub fn new(size: u64, verified: bool) -> BaoBlobSize

Create a new BaoFileSize with the given size and verification status.

-
source

pub fn value(&self) -> u64

Get just the value, no matter if it is verified or not.

-

Trait Implementations§

source§

impl Clone for BaoBlobSize

source§

fn clone(&self) -> BaoBlobSize

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BaoBlobSize

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for BaoBlobSize

Implementations§

§

impl BaoBlobSize

pub fn new(size: u64, verified: bool) -> BaoBlobSize

Create a new BaoFileSize with the given size and verification status.

+

pub fn value(&self) -> u64

Get just the value, no matter if it is verified or not.

+

Trait Implementations§

§

impl Clone for BaoBlobSize

§

fn clone(&self) -> BaoBlobSize

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for BaoBlobSize

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for BaoBlobSize

§

fn deserialize<__D>( __deserializer: __D ) -> Result<BaoBlobSize, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for BaoBlobSize

source§

fn eq(&self, other: &BaoBlobSize) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for BaoBlobSize

§

fn eq(&self, other: &BaoBlobSize) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for BaoBlobSize

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for BaoBlobSize

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for BaoBlobSize

source§

impl Eq for BaoBlobSize

source§

impl StructuralPartialEq for BaoBlobSize

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for BaoBlobSize

§

impl Eq for BaoBlobSize

§

impl StructuralPartialEq for BaoBlobSize

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/store/enum.ConsistencyCheckProgress.html b/pr/2610/docs/iroh/blobs/store/enum.ConsistencyCheckProgress.html index 3a286991c2..382d88ae63 100644 --- a/pr/2610/docs/iroh/blobs/store/enum.ConsistencyCheckProgress.html +++ b/pr/2610/docs/iroh/blobs/store/enum.ConsistencyCheckProgress.html @@ -1,4 +1,4 @@ -ConsistencyCheckProgress in iroh::blobs::store - Rust

Enum iroh::blobs::store::ConsistencyCheckProgress

source ·
pub enum ConsistencyCheckProgress {
+ConsistencyCheckProgress in iroh::blobs::store - Rust

Enum iroh::blobs::store::ConsistencyCheckProgress

pub enum ConsistencyCheckProgress {
     Start,
     Update {
         message: String,
@@ -15,10 +15,10 @@
 
§level: ReportLevel

The level of the message

§

Done

Consistency check ended

§

Abort(RpcError)

We got an error and need to abort.

-

Trait Implementations§

source§

impl Debug for ConsistencyCheckProgress

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ConsistencyCheckProgress

Trait Implementations§

§

impl Debug for ConsistencyCheckProgress

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for ConsistencyCheckProgress

§

fn deserialize<__D>( __deserializer: __D ) -> Result<ConsistencyCheckProgress, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for ConsistencyCheckProgress

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl Serialize for ConsistencyCheckProgress

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2610/docs/iroh/blobs/store/enum.EntryStatus.html b/pr/2610/docs/iroh/blobs/store/enum.EntryStatus.html index 1706aa8b68..4ef885fe2d 100644 --- a/pr/2610/docs/iroh/blobs/store/enum.EntryStatus.html +++ b/pr/2610/docs/iroh/blobs/store/enum.EntryStatus.html @@ -1,4 +1,4 @@ -EntryStatus in iroh::blobs::store - Rust

Enum iroh::blobs::store::EntryStatus

source ·
pub enum EntryStatus {
+EntryStatus in iroh::blobs::store - Rust

Enum iroh::blobs::store::EntryStatus

pub enum EntryStatus {
     Complete,
     Partial,
     NotFound,
@@ -6,9 +6,9 @@
 

Variants§

§

Complete

The entry is completely available.

§

Partial

The entry is partially available.

§

NotFound

The entry is not in the store.

-

Trait Implementations§

source§

impl Clone for EntryStatus

source§

fn clone(&self) -> EntryStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for EntryStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq for EntryStatus

source§

fn eq(&self, other: &EntryStatus) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for EntryStatus

§

fn clone(&self) -> EntryStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for EntryStatus

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq for EntryStatus

§

fn eq(&self, other: &EntryStatus) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Eq for EntryStatus

source§

impl StructuralPartialEq for EntryStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

§

impl Eq for EntryStatus

§

impl StructuralPartialEq for EntryStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/store/enum.Event.html b/pr/2610/docs/iroh/blobs/store/enum.Event.html index 8e8a039c46..1c6257d5a2 100644 --- a/pr/2610/docs/iroh/blobs/store/enum.Event.html +++ b/pr/2610/docs/iroh/blobs/store/enum.Event.html @@ -1,12 +1,12 @@ -Event in iroh::blobs::store - Rust

Enum iroh::blobs::store::Event

source ·
pub enum Event {
+Event in iroh::blobs::store - Rust

Enum iroh::blobs::store::Event

pub enum Event {
     GcStarted,
     GcCompleted,
 }
Expand description

Database events

Variants§

§

GcStarted

A GC was started

§

GcCompleted

A GC was completed

-

Trait Implementations§

source§

impl Clone for Event

source§

fn clone(&self) -> Event

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Event

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq for Event

source§

fn eq(&self, other: &Event) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for Event

§

fn clone(&self) -> Event

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Event

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq for Event

§

fn eq(&self, other: &Event) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Eq for Event

source§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

§

impl Eq for Event

§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/store/enum.ExportFormat.html b/pr/2610/docs/iroh/blobs/store/enum.ExportFormat.html index a4fec3ade2..8a5f002432 100644 --- a/pr/2610/docs/iroh/blobs/store/enum.ExportFormat.html +++ b/pr/2610/docs/iroh/blobs/store/enum.ExportFormat.html @@ -1,4 +1,4 @@ -ExportFormat in iroh::blobs::store - Rust

Enum iroh::blobs::store::ExportFormat

source ·
pub enum ExportFormat {
+ExportFormat in iroh::blobs::store - Rust

Enum iroh::blobs::store::ExportFormat

pub enum ExportFormat {
     Blob,
     Collection,
 }
Expand description

The expected format of a hash being exported.

@@ -10,10 +10,10 @@ collection metadata, all other children of the collection will be exported to a file each, with their collection name treated as a relative path to the export destination path.

If the blob cannot be parsed as a collection, the operation will fail.

-

Trait Implementations§

source§

impl Clone for ExportFormat

source§

fn clone(&self) -> ExportFormat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ExportFormat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for ExportFormat

source§

fn default() -> ExportFormat

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ExportFormat

Trait Implementations§

§

impl Clone for ExportFormat

§

fn clone(&self) -> ExportFormat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ExportFormat

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for ExportFormat

§

fn default() -> ExportFormat

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for ExportFormat

§

fn deserialize<__D>( __deserializer: __D ) -> Result<ExportFormat, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for ExportFormat

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl Serialize for ExportFormat

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2610/docs/iroh/blobs/store/enum.ExportMode.html b/pr/2610/docs/iroh/blobs/store/enum.ExportMode.html index 8f38bd24c9..6fc9723f19 100644 --- a/pr/2610/docs/iroh/blobs/store/enum.ExportMode.html +++ b/pr/2610/docs/iroh/blobs/store/enum.ExportMode.html @@ -1,4 +1,4 @@ -ExportMode in iroh::blobs::store - Rust

Enum iroh::blobs::store::ExportMode

source ·
pub enum ExportMode {
+ExportMode in iroh::blobs::store - Rust

Enum iroh::blobs::store::ExportMode

pub enum ExportMode {
     Copy,
     TryReference,
 }
Expand description

The import mode describes how files will be imported.

@@ -15,16 +15,16 @@ the database.

the file might be modified in the target directory after it has been exported.

Stores are allowed to ignore this mode and always copy the file, e.g. if the file is very small or if the store does not support referencing files.

-

Trait Implementations§

source§

impl Clone for ExportMode

source§

fn clone(&self) -> ExportMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ExportMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for ExportMode

source§

fn default() -> ExportMode

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ExportMode

Trait Implementations§

§

impl Clone for ExportMode

§

fn clone(&self) -> ExportMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ExportMode

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for ExportMode

§

fn default() -> ExportMode

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for ExportMode

§

fn deserialize<__D>( __deserializer: __D ) -> Result<ExportMode, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for ExportMode

source§

fn eq(&self, other: &ExportMode) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for ExportMode

§

fn eq(&self, other: &ExportMode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for ExportMode

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for ExportMode

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for ExportMode

source§

impl Eq for ExportMode

source§

impl StructuralPartialEq for ExportMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for ExportMode

§

impl Eq for ExportMode

§

impl StructuralPartialEq for ExportMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/store/enum.ExportProgress.html b/pr/2610/docs/iroh/blobs/store/enum.ExportProgress.html index 4ad4e408cd..365ecf0c70 100644 --- a/pr/2610/docs/iroh/blobs/store/enum.ExportProgress.html +++ b/pr/2610/docs/iroh/blobs/store/enum.ExportProgress.html @@ -1,4 +1,4 @@ -ExportProgress in iroh::blobs::store - Rust

Enum iroh::blobs::store::ExportProgress

source ·
pub enum ExportProgress {
+ExportProgress in iroh::blobs::store - Rust

Enum iroh::blobs::store::ExportProgress

pub enum ExportProgress {
     Start {
         id: u64,
         hash: Hash,
@@ -18,7 +18,7 @@
 

This will be omitted if the store can move the file or use copy on write

There will be multiple of these messages for an id

Fields

§id: u64
§offset: u64
§

Done

Done exporting

-

Fields

§id: u64

Trait Implementations§

source§

impl Debug for ExportProgress

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Fields

§id: u64

Trait Implementations§

§

impl Debug for ExportProgress

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/store/enum.GcMarkEvent.html b/pr/2610/docs/iroh/blobs/store/enum.GcMarkEvent.html index 9f9c59fc90..29529b16f2 100644 --- a/pr/2610/docs/iroh/blobs/store/enum.GcMarkEvent.html +++ b/pr/2610/docs/iroh/blobs/store/enum.GcMarkEvent.html @@ -1,4 +1,4 @@ -GcMarkEvent in iroh::blobs::store - Rust

Enum iroh::blobs::store::GcMarkEvent

source ·
pub enum GcMarkEvent {
+GcMarkEvent in iroh::blobs::store - Rust

Enum iroh::blobs::store::GcMarkEvent

pub enum GcMarkEvent {
     CustomDebug(String),
     CustomWarning(String, Option<Error>),
     Error(Error),
@@ -6,7 +6,7 @@
 

Variants§

§

CustomDebug(String)

A custom event (info)

§

CustomWarning(String, Option<Error>)

A custom non critical error

§

Error(Error)

An unrecoverable error during GC

-

Trait Implementations§

source§

impl Debug for GcMarkEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for GcMarkEvent

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/store/enum.GcSweepEvent.html b/pr/2610/docs/iroh/blobs/store/enum.GcSweepEvent.html index 0a29e11467..039e855ae6 100644 --- a/pr/2610/docs/iroh/blobs/store/enum.GcSweepEvent.html +++ b/pr/2610/docs/iroh/blobs/store/enum.GcSweepEvent.html @@ -1,4 +1,4 @@ -GcSweepEvent in iroh::blobs::store - Rust

Enum iroh::blobs::store::GcSweepEvent

source ·
pub enum GcSweepEvent {
+GcSweepEvent in iroh::blobs::store - Rust

Enum iroh::blobs::store::GcSweepEvent

pub enum GcSweepEvent {
     CustomDebug(String),
     CustomWarning(String, Option<Error>),
     Error(Error),
@@ -6,7 +6,7 @@
 

Variants§

§

CustomDebug(String)

A custom event (debug)

§

CustomWarning(String, Option<Error>)

A custom non critical error

§

Error(Error)

An unrecoverable error during GC

-

Trait Implementations§

source§

impl Debug for GcSweepEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for GcSweepEvent

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/store/enum.ImportMode.html b/pr/2610/docs/iroh/blobs/store/enum.ImportMode.html index f3deea6532..0d53353506 100644 --- a/pr/2610/docs/iroh/blobs/store/enum.ImportMode.html +++ b/pr/2610/docs/iroh/blobs/store/enum.ImportMode.html @@ -1,4 +1,4 @@ -ImportMode in iroh::blobs::store - Rust

Enum iroh::blobs::store::ImportMode

source ·
pub enum ImportMode {
+ImportMode in iroh::blobs::store - Rust

Enum iroh::blobs::store::ImportMode

pub enum ImportMode {
     Copy,
     TryReference,
 }
Expand description

The import mode describes how files will be imported.

@@ -14,9 +14,9 @@ after it has been imported.

the file might be modified after it has been imported.

Stores are allowed to ignore this mode and always copy the file, e.g. if the file is very small or if the store does not support referencing files.

-

Trait Implementations§

source§

impl Clone for ImportMode

source§

fn clone(&self) -> ImportMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ImportMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for ImportMode

source§

fn default() -> ImportMode

Returns the “default value” for a type. Read more
source§

impl PartialEq for ImportMode

source§

fn eq(&self, other: &ImportMode) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for ImportMode

§

fn clone(&self) -> ImportMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ImportMode

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for ImportMode

§

fn default() -> ImportMode

Returns the “default value” for a type. Read more
§

impl PartialEq for ImportMode

§

fn eq(&self, other: &ImportMode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for ImportMode

source§

impl Eq for ImportMode

source§

impl StructuralPartialEq for ImportMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

§

impl Copy for ImportMode

§

impl Eq for ImportMode

§

impl StructuralPartialEq for ImportMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/store/enum.ImportProgress.html b/pr/2610/docs/iroh/blobs/store/enum.ImportProgress.html index bfa3a527a7..952d7fe253 100644 --- a/pr/2610/docs/iroh/blobs/store/enum.ImportProgress.html +++ b/pr/2610/docs/iroh/blobs/store/enum.ImportProgress.html @@ -1,4 +1,4 @@ -ImportProgress in iroh::blobs::store - Rust

Enum iroh::blobs::store::ImportProgress

source ·
pub enum ImportProgress {
+ImportProgress in iroh::blobs::store - Rust

Enum iroh::blobs::store::ImportProgress

pub enum ImportProgress {
     Found {
         id: u64,
         name: String,
@@ -35,7 +35,7 @@ is fully copied.

There will be multiple of these messages for an id

Fields

§id: u64
§offset: u64
§

OutboardDone

Done computing the outboard

This comes after Size and zero or more OutboardProgress messages

-

Fields

§id: u64
§hash: Hash

Trait Implementations§

source§

impl Debug for ImportProgress

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Fields

§id: u64
§hash: Hash

Trait Implementations§

§

impl Debug for ImportProgress

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/store/enum.ReportLevel.html b/pr/2610/docs/iroh/blobs/store/enum.ReportLevel.html index 16864aeb6b..c8f79b4141 100644 --- a/pr/2610/docs/iroh/blobs/store/enum.ReportLevel.html +++ b/pr/2610/docs/iroh/blobs/store/enum.ReportLevel.html @@ -1,4 +1,4 @@ -ReportLevel in iroh::blobs::store - Rust

Enum iroh::blobs::store::ReportLevel

source ·
pub enum ReportLevel {
+ReportLevel in iroh::blobs::store - Rust

Enum iroh::blobs::store::ReportLevel

pub enum ReportLevel {
     Trace,
     Info,
     Warn,
@@ -8,21 +8,21 @@
 
§

Info

Info messages

§

Warn

Warnings, something is not quite right

§

Error

Errors, something is very wrong

-

Trait Implementations§

source§

impl Clone for ReportLevel

source§

fn clone(&self) -> ReportLevel

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ReportLevel

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ReportLevel

Trait Implementations§

§

impl Clone for ReportLevel

§

fn clone(&self) -> ReportLevel

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ReportLevel

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for ReportLevel

§

fn deserialize<__D>( __deserializer: __D ) -> Result<ReportLevel, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for ReportLevel

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Ord for ReportLevel

source§

fn cmp(&self, other: &ReportLevel) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for ReportLevel

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Ord for ReportLevel

§

fn cmp(&self, other: &ReportLevel) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for ReportLevel

source§

fn eq(&self, other: &ReportLevel) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more

§

impl PartialEq for ReportLevel

§

fn eq(&self, other: &ReportLevel) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for ReportLevel

source§

fn partial_cmp(&self, other: &ReportLevel) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
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 <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for ReportLevel

§

fn partial_cmp(&self, other: &ReportLevel) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for ReportLevel

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for ReportLevel

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for ReportLevel

source§

impl Eq for ReportLevel

source§

impl StructuralPartialEq for ReportLevel

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

§

impl Copy for ReportLevel

§

impl Eq for ReportLevel

§

impl StructuralPartialEq for ReportLevel

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/store/enum.ValidateProgress.html b/pr/2610/docs/iroh/blobs/store/enum.ValidateProgress.html index e84ff69809..2eec47c7cf 100644 --- a/pr/2610/docs/iroh/blobs/store/enum.ValidateProgress.html +++ b/pr/2610/docs/iroh/blobs/store/enum.ValidateProgress.html @@ -1,4 +1,4 @@ -ValidateProgress in iroh::blobs::store - Rust

Enum iroh::blobs::store::ValidateProgress

source ·
pub enum ValidateProgress {
+ValidateProgress in iroh::blobs::store - Rust

Enum iroh::blobs::store::ValidateProgress

pub enum ValidateProgress {
     Starting {
         total: u64,
     },
@@ -63,10 +63,10 @@ Otherwise it might be an url or something else to uniquely identify the entry.
§ranges: RangeSpec

Available ranges.

§

AllDone

We are done with the whole operation.

§

Abort(RpcError)

We got an error and need to abort.

-

Trait Implementations§

source§

impl Debug for ValidateProgress

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ValidateProgress

Trait Implementations§

§

impl Debug for ValidateProgress

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for ValidateProgress

§

fn deserialize<__D>( __deserializer: __D ) -> Result<ValidateProgress, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for ValidateProgress

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Serialize for ValidateProgress

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2610/docs/iroh/blobs/store/fs/index.html b/pr/2610/docs/iroh/blobs/store/fs/index.html index 1f593df23e..4829ce9255 100644 --- a/pr/2610/docs/iroh/blobs/store/fs/index.html +++ b/pr/2610/docs/iroh/blobs/store/fs/index.html @@ -1,4 +1,4 @@ -iroh::blobs::store::fs - Rust

Module iroh::blobs::store::fs

source ·
Expand description

redb backed storage

+iroh::blobs::store::fs - Rust

Module iroh::blobs::store::fs

Expand description

redb backed storage

Data can get into the store in two ways:

  1. import from local data
  2. diff --git a/pr/2610/docs/iroh/blobs/store/fs/struct.BatchOptions.html b/pr/2610/docs/iroh/blobs/store/fs/struct.BatchOptions.html index 96a07709ac..d8c86f611b 100644 --- a/pr/2610/docs/iroh/blobs/store/fs/struct.BatchOptions.html +++ b/pr/2610/docs/iroh/blobs/store/fs/struct.BatchOptions.html @@ -1,4 +1,4 @@ -BatchOptions in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::BatchOptions

    source ·
    pub struct BatchOptions {
    +BatchOptions in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::BatchOptions

    pub struct BatchOptions {
         pub max_read_batch: usize,
         pub max_read_duration: Duration,
         pub max_write_batch: usize,
    @@ -8,7 +8,7 @@
     
    §max_read_duration: Duration

    Maximum duration to wait before committing a read transaction.

    §max_write_batch: usize

    Maximum number of actor messages to batch before committing write transaction.

    §max_write_duration: Duration

    Maximum duration to wait before committing a write transaction.

    -

    Trait Implementations§

    source§

    impl Clone for BatchOptions

    source§

    fn clone(&self) -> BatchOptions

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for BatchOptions

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for BatchOptions

    source§

    fn default() -> BatchOptions

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Clone for BatchOptions

    §

    fn clone(&self) -> BatchOptions

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for BatchOptions

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for BatchOptions

    §

    fn default() -> BatchOptions

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2610/docs/iroh/blobs/store/fs/struct.FlatStorePaths.html b/pr/2610/docs/iroh/blobs/store/fs/struct.FlatStorePaths.html index b8a18f05c0..87fc6484f2 100644 --- a/pr/2610/docs/iroh/blobs/store/fs/struct.FlatStorePaths.html +++ b/pr/2610/docs/iroh/blobs/store/fs/struct.FlatStorePaths.html @@ -1,4 +1,4 @@ -FlatStorePaths in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::FlatStorePaths

    source ·
    pub struct FlatStorePaths {
    +FlatStorePaths in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::FlatStorePaths

    pub struct FlatStorePaths {
         pub complete: PathBuf,
         pub partial: PathBuf,
         pub meta: PathBuf,
    @@ -6,7 +6,7 @@
     

    Fields§

    §complete: PathBuf

    Complete data files

    §partial: PathBuf

    Partial data files

    §meta: PathBuf

    Metadata files such as the tags table

    -

    Trait Implementations§

    source§

    impl Debug for FlatStorePaths

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Debug for FlatStorePaths

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2610/docs/iroh/blobs/store/fs/struct.InlineOptions.html b/pr/2610/docs/iroh/blobs/store/fs/struct.InlineOptions.html index e700075476..54d25dbc7c 100644 --- a/pr/2610/docs/iroh/blobs/store/fs/struct.InlineOptions.html +++ b/pr/2610/docs/iroh/blobs/store/fs/struct.InlineOptions.html @@ -1,12 +1,12 @@ -InlineOptions in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::InlineOptions

    source ·
    pub struct InlineOptions {
    +InlineOptions in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::InlineOptions

    pub struct InlineOptions {
         pub max_data_inlined: u64,
         pub max_outboard_inlined: u64,
     }
    Expand description

    Options for inlining small complete data or outboards.

    Fields§

    §max_data_inlined: u64

    Maximum data size to inline.

    §max_outboard_inlined: u64

    Maximum outboard size to inline.

    -

    Implementations§

    source§

    impl InlineOptions

    source

    pub const NO_INLINE: InlineOptions = _

    Do not inline anything, ever.

    -
    source

    pub const ALWAYS_INLINE: InlineOptions = _

    Always inline everything

    -

    Trait Implementations§

    source§

    impl Clone for InlineOptions

    source§

    fn clone(&self) -> InlineOptions

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for InlineOptions

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for InlineOptions

    source§

    fn default() -> InlineOptions

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Implementations§

    §

    impl InlineOptions

    pub const NO_INLINE: InlineOptions = _

    Do not inline anything, ever.

    +

    pub const ALWAYS_INLINE: InlineOptions = _

    Always inline everything

    +

    Trait Implementations§

    §

    impl Clone for InlineOptions

    §

    fn clone(&self) -> InlineOptions

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for InlineOptions

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for InlineOptions

    §

    fn default() -> InlineOptions

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2610/docs/iroh/blobs/store/fs/struct.Options.html b/pr/2610/docs/iroh/blobs/store/fs/struct.Options.html index 931bbeede3..17fd8215fc 100644 --- a/pr/2610/docs/iroh/blobs/store/fs/struct.Options.html +++ b/pr/2610/docs/iroh/blobs/store/fs/struct.Options.html @@ -1,4 +1,4 @@ -Options in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::Options

    source ·
    pub struct Options {
    +Options in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::Options

    pub struct Options {
         pub path: PathOptions,
         pub inline: InlineOptions,
         pub batch: BatchOptions,
    @@ -6,7 +6,7 @@
     

    Fields§

    §path: PathOptions

    Path options.

    §inline: InlineOptions

    Inline storage options.

    §batch: BatchOptions

    Transaction batching options.

    -

    Trait Implementations§

    source§

    impl Clone for Options

    source§

    fn clone(&self) -> Options

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Options

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Clone for Options

    §

    fn clone(&self) -> Options

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Options

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2610/docs/iroh/blobs/store/fs/struct.PathOptions.html b/pr/2610/docs/iroh/blobs/store/fs/struct.PathOptions.html index 10b38de740..b37d7c6a5f 100644 --- a/pr/2610/docs/iroh/blobs/store/fs/struct.PathOptions.html +++ b/pr/2610/docs/iroh/blobs/store/fs/struct.PathOptions.html @@ -1,4 +1,4 @@ -PathOptions in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::PathOptions

    source ·
    pub struct PathOptions {
    +PathOptions in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::PathOptions

    pub struct PathOptions {
         pub data_path: PathBuf,
         pub temp_path: PathBuf,
     }
    Expand description

    Options for directories used by the file store.

    @@ -6,7 +6,7 @@
    §temp_path: PathBuf

    Path to the directory where temp files are stored. This must be on the same device as data_path, since we need to atomically move temp files into place.

    -

    Trait Implementations§

    source§

    impl Clone for PathOptions

    source§

    fn clone(&self) -> PathOptions

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for PathOptions

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Clone for PathOptions

    §

    fn clone(&self) -> PathOptions

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for PathOptions

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2610/docs/iroh/blobs/store/fs/struct.Store.html b/pr/2610/docs/iroh/blobs/store/fs/struct.Store.html index 75a01ada69..9c92e0c8b3 100644 --- a/pr/2610/docs/iroh/blobs/store/fs/struct.Store.html +++ b/pr/2610/docs/iroh/blobs/store/fs/struct.Store.html @@ -1,87 +1,87 @@ -Store in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::Store

    source ·
    pub struct Store(/* private fields */);
    Expand description

    Storage that is using a redb database for small files and files for +Store in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::Store

    pub struct Store(/* private fields */);
    Expand description

    Storage that is using a redb database for small files and files for large files.

    -

    Implementations§

    source§

    impl Store

    source

    pub async fn transform_entries( +

    Implementations§

    §

    impl Store

    pub async fn transform_entries( &self, transform: impl Fn(Hash, EntryData) -> Option<EntryData> + Send + Sync ) -> Result<(), Error>

    Transform all entries in the store. This is for testing and can be used to get the store in a wrong state.

    -
    source

    pub fn owned_data_path(&self, hash: &Hash) -> PathBuf

    Owned data path

    -
    source

    pub fn owned_outboard_path(&self, hash: &Hash) -> PathBuf

    Owned outboard path

    -
    source§

    impl Store

    source

    pub async fn load(root: impl AsRef<Path>) -> Result<Store, Error>

    Load or create a new store.

    -
    source

    pub async fn new(path: PathBuf, options: Options) -> Result<Store, Error>

    Create a new store with custom options.

    -
    source

    pub async fn update_inline_options( +

    pub fn owned_data_path(&self, hash: &Hash) -> PathBuf

    Owned data path

    +

    pub fn owned_outboard_path(&self, hash: &Hash) -> PathBuf

    Owned outboard path

    +
    §

    impl Store

    pub async fn load(root: impl AsRef<Path>) -> Result<Store, Error>

    Load or create a new store.

    +

    pub async fn new(path: PathBuf, options: Options) -> Result<Store, Error>

    Create a new store with custom options.

    +

    pub async fn update_inline_options( &self, inline_options: InlineOptions, reapply: bool ) -> Result<(), Error>

    Update the inline options.

    When reapply is true, the new options will be applied to all existing entries.

    -
    source

    pub async fn dump(&self) -> Result<(), Error>

    Dump the entire content of the database to stdout.

    -
    source

    pub async fn sync(&self) -> Result<(), Error>

    Ensure that all operations before the sync are processed and persisted.

    +

    pub async fn dump(&self) -> Result<(), Error>

    Dump the entire content of the database to stdout.

    +

    pub async fn sync(&self) -> Result<(), Error>

    Ensure that all operations before the sync are processed and persisted.

    This is done by closing any open write transaction.

    -
    source

    pub async fn import_flat_store( +

    pub async fn import_flat_store( &self, paths: FlatStorePaths ) -> Result<bool, Error>

    Import from a v0 or v1 flat store, for backwards compatibility.

    -

    Trait Implementations§

    source§

    impl Clone for Store

    source§

    fn clone(&self) -> Store

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Store

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Map for Store

    §

    type Entry = BaoFileHandle

    The entry type. An entry is a cheaply cloneable handle that can be used -to open readers for both the data and the outboard
    source§

    async fn get(&self, hash: &Hash) -> Result<Option<<Store as Map>::Entry>, Error>

    Get an entry for a hash. Read more
    source§

    impl MapMut for Store

    §

    type EntryMut = BaoFileHandle

    An entry that is possibly writable
    source§

    async fn get_or_create( +

    Trait Implementations§

    §

    impl Clone for Store

    §

    fn clone(&self) -> Store

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Store

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Map for Store

    §

    type Entry = BaoFileHandle

    The entry type. An entry is a cheaply cloneable handle that can be used +to open readers for both the data and the outboard
    §

    async fn get(&self, hash: &Hash) -> Result<Option<<Store as Map>::Entry>, Error>

    Get an entry for a hash. Read more
    §

    impl MapMut for Store

    §

    type EntryMut = BaoFileHandle

    An entry that is possibly writable
    §

    async fn get_or_create( &self, hash: Hash, _size: u64 -) -> Result<<Store as MapMut>::EntryMut, Error>

    Get an existing partial entry, or create a new one. Read more
    source§

    async fn entry_status(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Find out if the data behind a hash is complete, partial, or not present. Read more
    source§

    async fn get_mut( +) -> Result<<Store as MapMut>::EntryMut, Error>

    Get an existing partial entry, or create a new one. Read more
    §

    async fn entry_status(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Find out if the data behind a hash is complete, partial, or not present. Read more
    §

    async fn get_mut( &self, hash: &Hash -) -> Result<Option<<Store as MapMut>::EntryMut>, Error>

    Get an existing entry as an EntryMut. Read more
    source§

    async fn insert_complete( +) -> Result<Option<<Store as MapMut>::EntryMut>, Error>

    Get an existing entry as an EntryMut. Read more
    §

    async fn insert_complete( &self, entry: <Store as MapMut>::EntryMut -) -> Result<(), Error>

    Upgrade a partial entry to a complete entry.
    source§

    fn entry_status_sync(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Sync version of entry_status, for the doc sync engine until we can get rid of it. Read more
    source§

    impl ReadableStore for Store

    source§

    async fn blobs( +) -> Result<(), Error>

    Upgrade a partial entry to a complete entry.
    §

    fn entry_status_sync(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Sync version of entry_status, for the doc sync engine until we can get rid of it. Read more
    §

    impl ReadableStore for Store

    §

    async fn blobs( &self ) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list all blobs in the database. This includes both raw blobs that have -been imported, and hash sequences that have been created internally.
    source§

    async fn partial_blobs( +been imported, and hash sequences that have been created internally.

    §

    async fn partial_blobs( &self -) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list partial blobs in the database
    source§

    async fn tags( +) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list partial blobs in the database
    §

    async fn tags( &self -) -> Result<Box<dyn Iterator<Item = Result<(Tag, HashAndFormat), Error>> + Send + Sync>, Error>

    list all tags (collections or other explicitly added things) in the database
    source§

    fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

    Temp tags
    source§

    async fn consistency_check( +) -> Result<Box<dyn Iterator<Item = Result<(Tag, HashAndFormat), Error>> + Send + Sync>, Error>

    list all tags (collections or other explicitly added things) in the database
    §

    fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

    Temp tags
    §

    async fn consistency_check( &self, repair: bool, tx: BoxedProgressSender<ConsistencyCheckProgress> -) -> Result<(), Error>

    Perform a consistency check on the database
    source§

    async fn export( +) -> Result<(), Error>

    Perform a consistency check on the database
    §

    async fn export( &self, hash: Hash, target: PathBuf, mode: ExportMode, progress: Box<dyn Fn(u64) -> Result<(), Error> + Send + Sync> -) -> Result<(), Error>

    This trait method extracts a file to a local path. Read more
    source§

    impl Store for Store

    source§

    async fn import_file( +) -> Result<(), Error>

    This trait method extracts a file to a local path. Read more
    §

    impl Store for Store

    §

    async fn import_file( &self, path: PathBuf, mode: ImportMode, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> Result<(TempTag, u64), Error>

    This trait method imports a file from a local path. Read more
    source§

    async fn import_bytes( +) -> Result<(TempTag, u64), Error>

    This trait method imports a file from a local path. Read more
    §

    async fn import_bytes( &self, data: Bytes, format: BlobFormat -) -> Result<TempTag, Error>

    Import data from memory. Read more
    source§

    async fn import_stream( +) -> Result<TempTag, Error>

    Import data from memory. Read more
    §

    async fn import_stream( &self, data: impl Stream<Item = Result<Bytes, Error>> + Unpin + Send + 'static, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> Result<(TempTag, u64), Error>

    Import data from a stream of bytes.
    source§

    async fn set_tag( +) -> Result<(TempTag, u64), Error>

    Import data from a stream of bytes.
    §

    async fn set_tag( &self, name: Tag, hash: Option<HashAndFormat> -) -> Result<(), Error>

    Set a tag
    source§

    async fn create_tag(&self, hash: HashAndFormat) -> Result<Tag, Error>

    Create a new tag
    source§

    async fn delete(&self, hashes: Vec<Hash>) -> Result<(), Error>

    physically delete the given hashes from the store.
    source§

    async fn gc_start(&self) -> Result<(), Error>

    Notify the store that a new gc phase is about to start. Read more
    source§

    fn temp_tag(&self, value: HashAndFormat) -> TempTag

    Create a temporary pin for this store
    source§

    async fn shutdown(&self)

    Shutdown the store.
    source§

    fn import_reader( +) -> Result<(), Error>

    Set a tag
    §

    async fn create_tag(&self, hash: HashAndFormat) -> Result<Tag, Error>

    Create a new tag
    §

    async fn delete(&self, hashes: Vec<Hash>) -> Result<(), Error>

    physically delete the given hashes from the store.
    §

    async fn gc_start(&self) -> Result<(), Error>

    Notify the store that a new gc phase is about to start. Read more
    §

    fn temp_tag(&self, value: HashAndFormat) -> TempTag

    Create a temporary pin for this store
    §

    async fn shutdown(&self)

    Shutdown the store.
    §

    fn import_reader( &self, data: impl AsyncRead + Send + Unpin + 'static, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> impl Future<Output = Result<(TempTag, u64), Error>> + Send

    Import data from an async byte reader.
    source§

    fn gc_mark( +) -> impl Future<Output = Result<(TempTag, u64), Error>> + Send

    Import data from an async byte reader.
    §

    fn gc_mark( &self, live: &mut BTreeSet<Hash> -) -> impl Stream<Item = GcMarkEvent> + Unpin

    Traverse all roots recursively and mark them as live. Read more
    source§

    fn gc_sweep( +) -> impl Stream<Item = GcMarkEvent> + Unpin

    Traverse all roots recursively and mark them as live. Read more
    §

    fn gc_sweep( &self, live: &BTreeSet<Hash> -) -> impl Stream<Item = GcSweepEvent> + Unpin

    Remove all blobs that are not marked as live. Read more
    source§

    fn validate( +) -> impl Stream<Item = GcSweepEvent> + Unpin

    Remove all blobs that are not marked as live. Read more
    §

    fn validate( &self, repair: bool, tx: BoxedProgressSender<ValidateProgress> diff --git a/pr/2610/docs/iroh/blobs/store/fs/type.Entry.html b/pr/2610/docs/iroh/blobs/store/fs/type.Entry.html index 7c6d7ebd76..15a2df9b0a 100644 --- a/pr/2610/docs/iroh/blobs/store/fs/type.Entry.html +++ b/pr/2610/docs/iroh/blobs/store/fs/type.Entry.html @@ -1,2 +1,2 @@ -Entry in iroh::blobs::store::fs - Rust

    Type Alias iroh::blobs::store::fs::Entry

    source ·
    pub type Entry = BaoFileHandle;
    Expand description

    Use BaoFileHandle as the entry type for the map.

    +Entry in iroh::blobs::store::fs - Rust

    Type Alias iroh::blobs::store::fs::Entry

    pub type Entry = BaoFileHandle;
    Expand description

    Use BaoFileHandle as the entry type for the map.

    Aliased Type§

    struct Entry(/* private fields */);
    \ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/index.html b/pr/2610/docs/iroh/blobs/store/index.html index 156678122c..67dbe8bcd2 100644 --- a/pr/2610/docs/iroh/blobs/store/index.html +++ b/pr/2610/docs/iroh/blobs/store/index.html @@ -1,3 +1,3 @@ -iroh::blobs::store - Rust

    Module iroh::blobs::store

    source ·
    Expand description

    Implementations of blob stores

    +iroh::blobs::store - Rust

    Module iroh::blobs::store

    Expand description

    Implementations of blob stores

    Modules§

    • Efficient BLAKE3 based verified streaming
    • redb backed storage
    • A full in memory database for iroh-blobs
    • A set of non-overlapping ranges, backed by SmallVec<T>
    • A readonly in memory database for iroh-blobs, usable for testing and sharing static data.

    Enums§

    Traits§

    • An async batch interface for writing bao content items to a pair of data and outboard.
    • A generic map from hashes to bao blobs (blobs with bao outboards).
    • An entry for one hash in a bao map
    • A partial entry
    • A mutable bao map.
    • Extension of Map to add misc methods used by the rpc calls.
    • The mutable part of a Bao store.

    Type Aliases§

    \ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/mem/index.html b/pr/2610/docs/iroh/blobs/store/mem/index.html index bcd270341e..cf4dd31a4c 100644 --- a/pr/2610/docs/iroh/blobs/store/mem/index.html +++ b/pr/2610/docs/iroh/blobs/store/mem/index.html @@ -1,4 +1,4 @@ -iroh::blobs::store::mem - Rust

    Module iroh::blobs::store::mem

    source ·
    Expand description

    A full in memory database for iroh-blobs

    +iroh::blobs::store::mem - Rust

    Module iroh::blobs::store::mem

    Expand description

    A full in memory database for iroh-blobs

    Main entry point is Store.

    Structs§

    • An in memory entry
    • A fully featured in memory database for iroh-blobs, including support for partial blobs.
    \ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/mem/struct.Entry.html b/pr/2610/docs/iroh/blobs/store/mem/struct.Entry.html index 41606dbd73..4c1c7f55f4 100644 --- a/pr/2610/docs/iroh/blobs/store/mem/struct.Entry.html +++ b/pr/2610/docs/iroh/blobs/store/mem/struct.Entry.html @@ -1,5 +1,5 @@ -Entry in iroh::blobs::store::mem - Rust

    Struct iroh::blobs::store::mem::Entry

    source ·
    pub struct Entry { /* private fields */ }
    Expand description

    An in memory entry

    -

    Trait Implementations§

    source§

    impl Clone for Entry

    source§

    fn clone(&self) -> Entry

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Entry

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl MapEntry for Entry

    source§

    fn hash(&self) -> Hash

    The hash of the entry.
    source§

    fn size(&self) -> BaoBlobSize

    The size of the entry.
    source§

    fn is_complete(&self) -> bool

    Returns true if the entry is complete. Read more
    source§

    async fn outboard(&self) -> Result<impl Outboard, Error>

    A future that resolves to a reader that can be used to read the outboard
    source§

    async fn data_reader(&self) -> Result<impl AsyncSliceReader, Error>

    A future that resolves to a reader that can be used to read the data
    source§

    impl MapEntryMut for Entry

    source§

    async fn batch_writer(&self) -> Result<impl BaoBatchWriter, Error>

    Get a batch writer

    Auto Trait Implementations§

    §

    impl Freeze for Entry

    §

    impl RefUnwindSafe for Entry

    §

    impl Send for Entry

    §

    impl Sync for Entry

    §

    impl Unpin for Entry

    §

    impl UnwindSafe for Entry

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +Entry in iroh::blobs::store::mem - Rust

    Struct iroh::blobs::store::mem::Entry

    pub struct Entry { /* private fields */ }
    Expand description

    An in memory entry

    +

    Trait Implementations§

    §

    impl Clone for Entry

    §

    fn clone(&self) -> Entry

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Entry

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl MapEntry for Entry

    §

    fn hash(&self) -> Hash

    The hash of the entry.
    §

    fn size(&self) -> BaoBlobSize

    The size of the entry.
    §

    fn is_complete(&self) -> bool

    Returns true if the entry is complete. Read more
    §

    async fn outboard(&self) -> Result<impl Outboard, Error>

    A future that resolves to a reader that can be used to read the outboard
    §

    async fn data_reader(&self) -> Result<impl AsyncSliceReader, Error>

    A future that resolves to a reader that can be used to read the data
    §

    impl MapEntryMut for Entry

    §

    async fn batch_writer(&self) -> Result<impl BaoBatchWriter, Error>

    Get a batch writer

    Auto Trait Implementations§

    §

    impl Freeze for Entry

    §

    impl RefUnwindSafe for Entry

    §

    impl Send for Entry

    §

    impl Sync for Entry

    §

    impl Unpin for Entry

    §

    impl UnwindSafe for Entry

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2610/docs/iroh/blobs/store/mem/struct.Store.html b/pr/2610/docs/iroh/blobs/store/mem/struct.Store.html index d330fe00d1..a98ff77e3d 100644 --- a/pr/2610/docs/iroh/blobs/store/mem/struct.Store.html +++ b/pr/2610/docs/iroh/blobs/store/mem/struct.Store.html @@ -1,58 +1,58 @@ -Store in iroh::blobs::store::mem - Rust

    Struct iroh::blobs::store::mem::Store

    source ·
    pub struct Store { /* private fields */ }
    Expand description

    A fully featured in memory database for iroh-blobs, including support for +Store in iroh::blobs::store::mem - Rust

    Struct iroh::blobs::store::mem::Store

    pub struct Store { /* private fields */ }
    Expand description

    A fully featured in memory database for iroh-blobs, including support for partial blobs.

    -

    Implementations§

    source§

    impl Store

    source

    pub fn new() -> Store

    Create a new in memory store

    -

    Trait Implementations§

    source§

    impl Clone for Store

    source§

    fn clone(&self) -> Store

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Store

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Store

    source§

    fn default() -> Store

    Returns the “default value” for a type. Read more
    source§

    impl Map for Store

    §

    type Entry = Entry

    The entry type. An entry is a cheaply cloneable handle that can be used -to open readers for both the data and the outboard
    source§

    async fn get(&self, hash: &Hash) -> Result<Option<<Store as Map>::Entry>, Error>

    Get an entry for a hash. Read more
    source§

    impl MapMut for Store

    §

    type EntryMut = Entry

    An entry that is possibly writable
    source§

    async fn get_mut( +

    Implementations§

    §

    impl Store

    pub fn new() -> Store

    Create a new in memory store

    +

    Trait Implementations§

    §

    impl Clone for Store

    §

    fn clone(&self) -> Store

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Store

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for Store

    §

    fn default() -> Store

    Returns the “default value” for a type. Read more
    §

    impl Map for Store

    §

    type Entry = Entry

    The entry type. An entry is a cheaply cloneable handle that can be used +to open readers for both the data and the outboard
    §

    async fn get(&self, hash: &Hash) -> Result<Option<<Store as Map>::Entry>, Error>

    Get an entry for a hash. Read more
    §

    impl MapMut for Store

    §

    type EntryMut = Entry

    An entry that is possibly writable
    §

    async fn get_mut( &self, hash: &Hash -) -> Result<Option<<Store as MapMut>::EntryMut>, Error>

    Get an existing entry as an EntryMut. Read more
    source§

    async fn get_or_create(&self, hash: Hash, _size: u64) -> Result<Entry, Error>

    Get an existing partial entry, or create a new one. Read more
    source§

    async fn entry_status(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Find out if the data behind a hash is complete, partial, or not present. Read more
    source§

    fn entry_status_sync(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Sync version of entry_status, for the doc sync engine until we can get rid of it. Read more
    source§

    async fn insert_complete(&self, entry: Entry) -> Result<(), Error>

    Upgrade a partial entry to a complete entry.
    source§

    impl ReadableStore for Store

    source§

    async fn blobs( +) -> Result<Option<<Store as MapMut>::EntryMut>, Error>

    Get an existing entry as an EntryMut. Read more
    §

    async fn get_or_create(&self, hash: Hash, _size: u64) -> Result<Entry, Error>

    Get an existing partial entry, or create a new one. Read more
    §

    async fn entry_status(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Find out if the data behind a hash is complete, partial, or not present. Read more
    §

    fn entry_status_sync(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Sync version of entry_status, for the doc sync engine until we can get rid of it. Read more
    §

    async fn insert_complete(&self, entry: Entry) -> Result<(), Error>

    Upgrade a partial entry to a complete entry.
    §

    impl ReadableStore for Store

    §

    async fn blobs( &self ) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list all blobs in the database. This includes both raw blobs that have -been imported, and hash sequences that have been created internally.
    source§

    async fn partial_blobs( +been imported, and hash sequences that have been created internally.

    §

    async fn partial_blobs( &self -) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list partial blobs in the database
    source§

    async fn tags( +) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list partial blobs in the database
    §

    async fn tags( &self -) -> Result<Box<dyn Iterator<Item = Result<(Tag, HashAndFormat), Error>> + Send + Sync>, Error>

    list all tags (collections or other explicitly added things) in the database
    source§

    fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

    Temp tags
    source§

    async fn consistency_check( +) -> Result<Box<dyn Iterator<Item = Result<(Tag, HashAndFormat), Error>> + Send + Sync>, Error>

    list all tags (collections or other explicitly added things) in the database
    §

    fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

    Temp tags
    §

    async fn consistency_check( &self, _repair: bool, _tx: BoxedProgressSender<ConsistencyCheckProgress> -) -> Result<(), Error>

    Perform a consistency check on the database
    source§

    async fn export( +) -> Result<(), Error>

    Perform a consistency check on the database
    §

    async fn export( &self, hash: Hash, target: PathBuf, mode: ExportMode, progress: Box<dyn Fn(u64) -> Result<(), Error> + Send + Sync> -) -> Result<(), Error>

    This trait method extracts a file to a local path. Read more
    source§

    impl Store for Store

    source§

    async fn import_file( +) -> Result<(), Error>

    This trait method extracts a file to a local path. Read more
    §

    impl Store for Store

    §

    async fn import_file( &self, path: PathBuf, _mode: ImportMode, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> Result<(TempTag, u64), Error>

    This trait method imports a file from a local path. Read more
    source§

    async fn import_stream( +) -> Result<(TempTag, u64), Error>

    This trait method imports a file from a local path. Read more
    §

    async fn import_stream( &self, data: impl Stream<Item = Result<Bytes, Error>> + Unpin + Send + 'static, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> Result<(TempTag, u64), Error>

    Import data from a stream of bytes.
    source§

    async fn import_bytes( +) -> Result<(TempTag, u64), Error>

    Import data from a stream of bytes.
    §

    async fn import_bytes( &self, bytes: Bytes, format: BlobFormat -) -> Result<TempTag, Error>

    Import data from memory. Read more
    source§

    async fn set_tag( +) -> Result<TempTag, Error>

    Import data from memory. Read more
    §

    async fn set_tag( &self, name: Tag, value: Option<HashAndFormat> -) -> Result<(), Error>

    Set a tag
    source§

    async fn create_tag(&self, hash: HashAndFormat) -> Result<Tag, Error>

    Create a new tag
    source§

    fn temp_tag(&self, tag: HashAndFormat) -> TempTag

    Create a temporary pin for this store
    source§

    async fn gc_start(&self) -> Result<(), Error>

    Notify the store that a new gc phase is about to start. Read more
    source§

    async fn delete(&self, hashes: Vec<Hash>) -> Result<(), Error>

    physically delete the given hashes from the store.
    source§

    async fn shutdown(&self)

    Shutdown the store.
    source§

    fn import_reader( +) -> Result<(), Error>

    Set a tag
    §

    async fn create_tag(&self, hash: HashAndFormat) -> Result<Tag, Error>

    Create a new tag
    §

    fn temp_tag(&self, tag: HashAndFormat) -> TempTag

    Create a temporary pin for this store
    §

    async fn gc_start(&self) -> Result<(), Error>

    Notify the store that a new gc phase is about to start. Read more
    §

    async fn delete(&self, hashes: Vec<Hash>) -> Result<(), Error>

    physically delete the given hashes from the store.
    §

    async fn shutdown(&self)

    Shutdown the store.
    §

    fn import_reader( &self, data: impl AsyncRead + Send + Unpin + 'static, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> impl Future<Output = Result<(TempTag, u64), Error>> + Send

    Import data from an async byte reader.
    source§

    fn gc_mark( +) -> impl Future<Output = Result<(TempTag, u64), Error>> + Send

    Import data from an async byte reader.
    §

    fn gc_mark( &self, live: &mut BTreeSet<Hash> -) -> impl Stream<Item = GcMarkEvent> + Unpin

    Traverse all roots recursively and mark them as live. Read more
    source§

    fn gc_sweep( +) -> impl Stream<Item = GcMarkEvent> + Unpin

    Traverse all roots recursively and mark them as live. Read more
    §

    fn gc_sweep( &self, live: &BTreeSet<Hash> -) -> impl Stream<Item = GcSweepEvent> + Unpin

    Remove all blobs that are not marked as live. Read more
    source§

    fn validate( +) -> impl Stream<Item = GcSweepEvent> + Unpin

    Remove all blobs that are not marked as live. Read more
    §

    fn validate( &self, repair: bool, tx: BoxedProgressSender<ValidateProgress> diff --git a/pr/2610/docs/iroh/blobs/store/readonly_mem/index.html b/pr/2610/docs/iroh/blobs/store/readonly_mem/index.html index 97e3ce5b10..a32a4a44ba 100644 --- a/pr/2610/docs/iroh/blobs/store/readonly_mem/index.html +++ b/pr/2610/docs/iroh/blobs/store/readonly_mem/index.html @@ -1,3 +1,3 @@ -iroh::blobs::store::readonly_mem - Rust

    Module iroh::blobs::store::readonly_mem

    source ·
    Expand description

    A readonly in memory database for iroh-blobs, usable for testing and sharing static data.

    +iroh::blobs::store::readonly_mem - Rust

    Module iroh::blobs::store::readonly_mem

    Expand description

    A readonly in memory database for iroh-blobs, usable for testing and sharing static data.

    Main entry point is Store.

    Structs§

    \ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/readonly_mem/struct.Entry.html b/pr/2610/docs/iroh/blobs/store/readonly_mem/struct.Entry.html index 16fae98cef..04b4f24d7b 100644 --- a/pr/2610/docs/iroh/blobs/store/readonly_mem/struct.Entry.html +++ b/pr/2610/docs/iroh/blobs/store/readonly_mem/struct.Entry.html @@ -1,5 +1,5 @@ -Entry in iroh::blobs::store::readonly_mem - Rust

    Struct iroh::blobs::store::readonly_mem::Entry

    source ·
    pub struct Entry { /* private fields */ }
    Expand description

    The MapEntry implementation for Store.

    -

    Trait Implementations§

    source§

    impl Clone for Entry

    source§

    fn clone(&self) -> Entry

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Entry

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl MapEntry for Entry

    source§

    fn hash(&self) -> Hash

    The hash of the entry.
    source§

    fn size(&self) -> BaoBlobSize

    The size of the entry.
    source§

    async fn outboard(&self) -> Result<impl Outboard, Error>

    A future that resolves to a reader that can be used to read the outboard
    source§

    async fn data_reader(&self) -> Result<impl AsyncSliceReader, Error>

    A future that resolves to a reader that can be used to read the data
    source§

    fn is_complete(&self) -> bool

    Returns true if the entry is complete. Read more
    source§

    impl MapEntryMut for Entry

    source§

    async fn batch_writer(&self) -> Result<impl BaoBatchWriter, Error>

    Get a batch writer

    Auto Trait Implementations§

    §

    impl !Freeze for Entry

    §

    impl RefUnwindSafe for Entry

    §

    impl Send for Entry

    §

    impl Sync for Entry

    §

    impl Unpin for Entry

    §

    impl UnwindSafe for Entry

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +Entry in iroh::blobs::store::readonly_mem - Rust

    Struct iroh::blobs::store::readonly_mem::Entry

    pub struct Entry { /* private fields */ }
    Expand description

    The MapEntry implementation for Store.

    +

    Trait Implementations§

    §

    impl Clone for Entry

    §

    fn clone(&self) -> Entry

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Entry

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl MapEntry for Entry

    §

    fn hash(&self) -> Hash

    The hash of the entry.
    §

    fn size(&self) -> BaoBlobSize

    The size of the entry.
    §

    async fn outboard(&self) -> Result<impl Outboard, Error>

    A future that resolves to a reader that can be used to read the outboard
    §

    async fn data_reader(&self) -> Result<impl AsyncSliceReader, Error>

    A future that resolves to a reader that can be used to read the data
    §

    fn is_complete(&self) -> bool

    Returns true if the entry is complete. Read more
    §

    impl MapEntryMut for Entry

    §

    async fn batch_writer(&self) -> Result<impl BaoBatchWriter, Error>

    Get a batch writer

    Auto Trait Implementations§

    §

    impl !Freeze for Entry

    §

    impl RefUnwindSafe for Entry

    §

    impl Send for Entry

    §

    impl Sync for Entry

    §

    impl Unpin for Entry

    §

    impl UnwindSafe for Entry

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2610/docs/iroh/blobs/store/readonly_mem/struct.Store.html b/pr/2610/docs/iroh/blobs/store/readonly_mem/struct.Store.html index 8ee33a6feb..b3be806718 100644 --- a/pr/2610/docs/iroh/blobs/store/readonly_mem/struct.Store.html +++ b/pr/2610/docs/iroh/blobs/store/readonly_mem/struct.Store.html @@ -1,75 +1,75 @@ -Store in iroh::blobs::store::readonly_mem - Rust

    Struct iroh::blobs::store::readonly_mem::Store

    source ·
    pub struct Store(/* private fields */);
    Expand description

    A readonly in memory database for iroh-blobs.

    +Store in iroh::blobs::store::readonly_mem - Rust

    Struct iroh::blobs::store::readonly_mem::Store

    pub struct Store(/* private fields */);
    Expand description

    A readonly in memory database for iroh-blobs.

    This is basically just a HashMap, so it does not allow for any modifications unless you have a mutable reference to it.

    It is therefore useful mostly for testing and sharing static data.

    -

    Implementations§

    source§

    impl Store

    source

    pub fn new( +

    Implementations§

    §

    impl Store

    pub fn new( entries: impl IntoIterator<Item = (impl Into<String>, impl AsRef<[u8]>)> ) -> (Store, BTreeMap<String, Hash>)

    Create a new Store from a sequence of entries.

    Returns the database and a map of names to computed blake3 hashes. In case of duplicate names, the last entry is used.

    -
    source

    pub fn insert(&mut self, data: impl AsRef<[u8]>) -> Hash

    Insert a new entry into the database, and return the hash of the entry.

    +

    pub fn insert(&mut self, data: impl AsRef<[u8]>) -> Hash

    Insert a new entry into the database, and return the hash of the entry.

    If the database was shared before, this will make a copy.

    -
    source

    pub fn insert_many( +

    pub fn insert_many( &mut self, items: impl IntoIterator<Item = impl AsRef<[u8]>> ) -> Option<Hash>

    Insert multiple entries into the database, and return the hash of the last entry.

    -
    source

    pub fn get_content(&self, hash: &Hash) -> Option<Bytes>

    Get the bytes associated with a hash, if they exist.

    -

    Trait Implementations§

    source§

    impl Clone for Store

    source§

    fn clone(&self) -> Store

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Store

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Store

    source§

    fn default() -> Store

    Returns the “default value” for a type. Read more
    source§

    impl<K, V> FromIterator<(K, V)> for Store
    where +

    pub fn get_content(&self, hash: &Hash) -> Option<Bytes>

    Get the bytes associated with a hash, if they exist.

    +

    Trait Implementations§

    §

    impl Clone for Store

    §

    fn clone(&self) -> Store

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Store

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for Store

    §

    fn default() -> Store

    Returns the “default value” for a type. Read more
    §

    impl<K, V> FromIterator<(K, V)> for Store
    where K: Into<String>, - V: AsRef<[u8]>,

    source§

    fn from_iter<T>(iter: T) -> Store
    where - T: IntoIterator<Item = (K, V)>,

    Creates a value from an iterator. Read more
    source§

    impl Map for Store

    §

    type Entry = Entry

    The entry type. An entry is a cheaply cloneable handle that can be used -to open readers for both the data and the outboard
    source§

    async fn get(&self, hash: &Hash) -> Result<Option<<Store as Map>::Entry>, Error>

    Get an entry for a hash. Read more
    source§

    impl MapMut for Store

    §

    type EntryMut = Entry

    An entry that is possibly writable
    source§

    async fn get_mut( + V: AsRef<[u8]>,

    §

    fn from_iter<T>(iter: T) -> Store
    where + T: IntoIterator<Item = (K, V)>,

    Creates a value from an iterator. Read more
    §

    impl Map for Store

    §

    type Entry = Entry

    The entry type. An entry is a cheaply cloneable handle that can be used +to open readers for both the data and the outboard
    §

    async fn get(&self, hash: &Hash) -> Result<Option<<Store as Map>::Entry>, Error>

    Get an entry for a hash. Read more
    §

    impl MapMut for Store

    §

    type EntryMut = Entry

    An entry that is possibly writable
    §

    async fn get_mut( &self, hash: &Hash -) -> Result<Option<<Store as MapMut>::EntryMut>, Error>

    Get an existing entry as an EntryMut. Read more
    source§

    async fn get_or_create(&self, _hash: Hash, _size: u64) -> Result<Entry, Error>

    Get an existing partial entry, or create a new one. Read more
    source§

    fn entry_status_sync(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Sync version of entry_status, for the doc sync engine until we can get rid of it. Read more
    source§

    async fn entry_status(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Find out if the data behind a hash is complete, partial, or not present. Read more
    source§

    async fn insert_complete(&self, _entry: Entry) -> Result<(), Error>

    Upgrade a partial entry to a complete entry.
    source§

    impl ReadableStore for Store

    source§

    async fn blobs( +) -> Result<Option<<Store as MapMut>::EntryMut>, Error>

    Get an existing entry as an EntryMut. Read more
    §

    async fn get_or_create(&self, _hash: Hash, _size: u64) -> Result<Entry, Error>

    Get an existing partial entry, or create a new one. Read more
    §

    fn entry_status_sync(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Sync version of entry_status, for the doc sync engine until we can get rid of it. Read more
    §

    async fn entry_status(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Find out if the data behind a hash is complete, partial, or not present. Read more
    §

    async fn insert_complete(&self, _entry: Entry) -> Result<(), Error>

    Upgrade a partial entry to a complete entry.
    §

    impl ReadableStore for Store

    §

    async fn blobs( &self ) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list all blobs in the database. This includes both raw blobs that have -been imported, and hash sequences that have been created internally.
    source§

    async fn tags( +been imported, and hash sequences that have been created internally.

    §

    async fn tags( &self -) -> Result<Box<dyn Iterator<Item = Result<(Tag, HashAndFormat), Error>> + Send + Sync>, Error>

    list all tags (collections or other explicitly added things) in the database
    source§

    fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

    Temp tags
    source§

    async fn consistency_check( +) -> Result<Box<dyn Iterator<Item = Result<(Tag, HashAndFormat), Error>> + Send + Sync>, Error>

    list all tags (collections or other explicitly added things) in the database
    §

    fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

    Temp tags
    §

    async fn consistency_check( &self, _repair: bool, _tx: BoxedProgressSender<ConsistencyCheckProgress> -) -> Result<(), Error>

    Perform a consistency check on the database
    source§

    async fn export( +) -> Result<(), Error>

    Perform a consistency check on the database
    §

    async fn export( &self, hash: Hash, target: PathBuf, mode: ExportMode, progress: Box<dyn Fn(u64) -> Result<(), Error> + Send + Sync> -) -> Result<(), Error>

    This trait method extracts a file to a local path. Read more
    source§

    async fn partial_blobs( +) -> Result<(), Error>

    This trait method extracts a file to a local path. Read more
    §

    async fn partial_blobs( &self -) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list partial blobs in the database
    source§

    impl Store for Store

    source§

    async fn import_bytes( +) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list partial blobs in the database
    §

    impl Store for Store

    §

    async fn import_bytes( &self, bytes: Bytes, format: BlobFormat ) -> Result<TempTag, Error>

    import a byte slice

    -
    source§

    async fn import_file( +

    §

    async fn import_file( &self, data: PathBuf, mode: ImportMode, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> Result<(TempTag, u64), Error>

    This trait method imports a file from a local path. Read more
    source§

    async fn import_stream( +) -> Result<(TempTag, u64), Error>

    This trait method imports a file from a local path. Read more
    §

    async fn import_stream( &self, data: impl Stream<Item = Result<Bytes, Error>> + Unpin + Send, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> Result<(TempTag, u64), Error>

    Import data from a stream of bytes.
    source§

    async fn set_tag( +) -> Result<(TempTag, u64), Error>

    Import data from a stream of bytes.
    §

    async fn set_tag( &self, _name: Tag, _hash: Option<HashAndFormat> -) -> Result<(), Error>

    Set a tag
    source§

    async fn create_tag(&self, _hash: HashAndFormat) -> Result<Tag, Error>

    Create a new tag
    source§

    fn temp_tag(&self, inner: HashAndFormat) -> TempTag

    Create a temporary pin for this store
    source§

    async fn gc_start(&self) -> Result<(), Error>

    Notify the store that a new gc phase is about to start. Read more
    source§

    async fn delete(&self, _hashes: Vec<Hash>) -> Result<(), Error>

    physically delete the given hashes from the store.
    source§

    async fn shutdown(&self)

    Shutdown the store.
    source§

    fn import_reader( +) -> Result<(), Error>

    Set a tag
    §

    async fn create_tag(&self, _hash: HashAndFormat) -> Result<Tag, Error>

    Create a new tag
    §

    fn temp_tag(&self, inner: HashAndFormat) -> TempTag

    Create a temporary pin for this store
    §

    async fn gc_start(&self) -> Result<(), Error>

    Notify the store that a new gc phase is about to start. Read more
    §

    async fn delete(&self, _hashes: Vec<Hash>) -> Result<(), Error>

    physically delete the given hashes from the store.
    §

    async fn shutdown(&self)

    Shutdown the store.
    §

    fn import_reader( &self, data: impl AsyncRead + Send + Unpin + 'static, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> impl Future<Output = Result<(TempTag, u64), Error>> + Send

    Import data from an async byte reader.
    source§

    fn gc_mark( +) -> impl Future<Output = Result<(TempTag, u64), Error>> + Send

    Import data from an async byte reader.
    §

    fn gc_mark( &self, live: &mut BTreeSet<Hash> -) -> impl Stream<Item = GcMarkEvent> + Unpin

    Traverse all roots recursively and mark them as live. Read more
    source§

    fn gc_sweep( +) -> impl Stream<Item = GcMarkEvent> + Unpin

    Traverse all roots recursively and mark them as live. Read more
    §

    fn gc_sweep( &self, live: &BTreeSet<Hash> -) -> impl Stream<Item = GcSweepEvent> + Unpin

    Remove all blobs that are not marked as live. Read more
    source§

    fn validate( +) -> impl Stream<Item = GcSweepEvent> + Unpin

    Remove all blobs that are not marked as live. Read more
    §

    fn validate( &self, repair: bool, tx: BoxedProgressSender<ValidateProgress> diff --git a/pr/2610/docs/iroh/blobs/store/trait.BaoBatchWriter.html b/pr/2610/docs/iroh/blobs/store/trait.BaoBatchWriter.html index f1317a0511..5effbd1452 100644 --- a/pr/2610/docs/iroh/blobs/store/trait.BaoBatchWriter.html +++ b/pr/2610/docs/iroh/blobs/store/trait.BaoBatchWriter.html @@ -1,4 +1,4 @@ -BaoBatchWriter in iroh::blobs::store - Rust

    Trait iroh::blobs::store::BaoBatchWriter

    source ·
    pub trait BaoBatchWriter {
    +BaoBatchWriter in iroh::blobs::store - Rust

    Trait iroh::blobs::store::BaoBatchWriter

    pub trait BaoBatchWriter {
         // Required methods
         fn write_batch(
             &mut self,
    @@ -10,7 +10,7 @@
     outboard.

    Details like the chunk group size and the actual storage location are left to the implementation.

    -

    Required Methods§

    Required Methods§

    fn write_batch( &mut self, size: u64, batch: Vec<BaoContentItem> @@ -29,13 +29,13 @@ leaf items in the batch.

    parent nodes and a leaf.

    Batch is a vec so it can be moved into a task, which is unfortunately necessary in typical io code.

    -

    source

    fn sync(&mut self) -> impl Future<Output = Result<(), Error>>

    Sync the written data to permanent storage, if applicable. +

    fn sync(&mut self) -> impl Future<Output = Result<(), Error>>

    Sync the written data to permanent storage, if applicable. E.g. for a file based implementation, this would call sync_data on all files.

    -

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl<W> BaoBatchWriter for &mut W
    where +

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    §

    impl<W> BaoBatchWriter for &mut W
    where W: BaoBatchWriter,

    Implement BaoBatchWriter for mutable references

    -
    §

    async fn write_batch( &mut self, size: u64, batch: Vec<BaoContentItem> -) -> Result<(), Error>

    source§

    async fn sync(&mut self) -> Result<(), Error>

    Implementors§

    \ No newline at end of file +) -> Result<(), Error>

    §

    async fn sync(&mut self) -> Result<(), Error>

    Implementors§

    \ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/trait.Map.html b/pr/2610/docs/iroh/blobs/store/trait.Map.html index c90c0ba8db..806983eabf 100644 --- a/pr/2610/docs/iroh/blobs/store/trait.Map.html +++ b/pr/2610/docs/iroh/blobs/store/trait.Map.html @@ -1,4 +1,4 @@ -Map in iroh::blobs::store - Rust

    Trait iroh::blobs::store::Map

    source ·
    pub trait Map: Clone + Send + Sync + 'static {
    +Map in iroh::blobs::store - Rust

    Trait iroh::blobs::store::Map

    pub trait Map: Clone + Send + Sync + 'static {
         type Entry: MapEntry;
     
         // Required method
    @@ -12,9 +12,9 @@ also implement Required Associated Types§

    source

    type Entry: MapEntry

    The entry type. An entry is a cheaply cloneable handle that can be used +

    Required Associated Types§

    type Entry: MapEntry

    The entry type. An entry is a cheaply cloneable handle that can be used to open readers for both the data and the outboard

    -

    Required Methods§

    source

    fn get( +

    Required Methods§

    fn get( &self, hash: &Hash ) -> impl Future<Output = Result<Option<Self::Entry>, Error>> + Send

    Get an entry for a hash.

    @@ -22,4 +22,4 @@ to open readers for both the data and the outboard

    is an entry. Creating an entry should be cheap, any expensive ops should be deferred to the creation of the actual readers.

    It is not guaranteed that the entry is complete.

    -

    Object Safety§

    This trait is not object safe.

    Implementors§

    source§

    impl Map for iroh::blobs::store::fs::Store

    §

    type Entry = BaoFileHandle

    source§

    impl Map for iroh::blobs::store::mem::Store

    §

    type Entry = Entry

    source§

    impl Map for iroh::blobs::store::readonly_mem::Store

    §

    type Entry = Entry

    \ No newline at end of file +

    Object Safety§

    This trait is not object safe.

    Implementors§

    §

    impl Map for iroh::blobs::store::fs::Store

    §

    type Entry = BaoFileHandle

    §

    impl Map for iroh::blobs::store::mem::Store

    §

    type Entry = Entry

    §

    impl Map for iroh::blobs::store::readonly_mem::Store

    §

    type Entry = Entry

    \ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/trait.MapEntry.html b/pr/2610/docs/iroh/blobs/store/trait.MapEntry.html index a6be832a6c..c06d43e576 100644 --- a/pr/2610/docs/iroh/blobs/store/trait.MapEntry.html +++ b/pr/2610/docs/iroh/blobs/store/trait.MapEntry.html @@ -1,4 +1,4 @@ -MapEntry in iroh::blobs::store - Rust

    Trait iroh::blobs::store::MapEntry

    source ·
    pub trait MapEntry: Debug + Clone + Send + Sync + 'static {
    +MapEntry in iroh::blobs::store - Rust

    Trait iroh::blobs::store::MapEntry

    pub trait MapEntry: Debug + Clone + Send + Sync + 'static {
         // Required methods
         fn hash(&self) -> Hash;
         fn size(&self) -> BaoBlobSize;
    @@ -14,13 +14,13 @@
     reader pair. Creating the reader is async and may fail. The futures that
     create the readers must be Send, but the readers themselves don’t have to
     be.

    -

    Required Methods§

    source

    fn hash(&self) -> Hash

    The hash of the entry.

    -
    source

    fn size(&self) -> BaoBlobSize

    The size of the entry.

    -
    source

    fn is_complete(&self) -> bool

    Returns true if the entry is complete.

    +

    Required Methods§

    fn hash(&self) -> Hash

    The hash of the entry.

    +

    fn size(&self) -> BaoBlobSize

    The size of the entry.

    +

    fn is_complete(&self) -> bool

    Returns true if the entry is complete.

    Note that this does not actually verify if the bytes on disk are complete, it only checks if the entry was marked as complete in the store.

    -
    source

    fn outboard(&self) -> impl Future<Output = Result<impl Outboard, Error>> + Send

    A future that resolves to a reader that can be used to read the outboard

    -
    source

    fn data_reader( +

    fn outboard(&self) -> impl Future<Output = Result<impl Outboard, Error>> + Send

    A future that resolves to a reader that can be used to read the outboard

    +

    fn data_reader( &self ) -> impl Future<Output = Result<impl AsyncSliceReader, Error>> + Send

    A future that resolves to a reader that can be used to read the data

    -

    Object Safety§

    This trait is not object safe.

    Implementors§

    source§

    impl MapEntry for iroh::blobs::store::mem::Entry

    source§

    impl MapEntry for iroh::blobs::store::readonly_mem::Entry

    \ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementors§

§

impl MapEntry for iroh::blobs::store::mem::Entry

§

impl MapEntry for iroh::blobs::store::readonly_mem::Entry

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/trait.MapEntryMut.html b/pr/2610/docs/iroh/blobs/store/trait.MapEntryMut.html index e1d5d67b3a..f9cc966ca4 100644 --- a/pr/2610/docs/iroh/blobs/store/trait.MapEntryMut.html +++ b/pr/2610/docs/iroh/blobs/store/trait.MapEntryMut.html @@ -1,10 +1,10 @@ -MapEntryMut in iroh::blobs::store - Rust

Trait iroh::blobs::store::MapEntryMut

source ·
pub trait MapEntryMut: MapEntry {
+MapEntryMut in iroh::blobs::store - Rust

Trait iroh::blobs::store::MapEntryMut

pub trait MapEntryMut: MapEntry {
     // Required method
     fn batch_writer(
         &self
     ) -> impl Future<Output = Result<impl BaoBatchWriter, Error>> + Send;
 }
Expand description

A partial entry

-

Required Methods§

Required Methods§

fn batch_writer( &self ) -> impl Future<Output = Result<impl BaoBatchWriter, Error>> + Send

Get a batch writer

-

Object Safety§

This trait is not object safe.

Implementors§

source§

impl MapEntryMut for iroh::blobs::store::mem::Entry

source§

impl MapEntryMut for iroh::blobs::store::readonly_mem::Entry

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementors§

§

impl MapEntryMut for iroh::blobs::store::mem::Entry

§

impl MapEntryMut for iroh::blobs::store::readonly_mem::Entry

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/trait.MapMut.html b/pr/2610/docs/iroh/blobs/store/trait.MapMut.html index 106bb7d65e..1d18b429f9 100644 --- a/pr/2610/docs/iroh/blobs/store/trait.MapMut.html +++ b/pr/2610/docs/iroh/blobs/store/trait.MapMut.html @@ -1,4 +1,4 @@ -MapMut in iroh::blobs::store - Rust

Trait iroh::blobs::store::MapMut

source ·
pub trait MapMut: Map {
+MapMut in iroh::blobs::store - Rust

Trait iroh::blobs::store::MapMut

pub trait MapMut: Map {
     type EntryMut: MapEntryMut;
 
     // Required methods
@@ -22,30 +22,30 @@
     ) -> impl Future<Output = Result<(), Error>> + Send;
 }
Expand description

A mutable bao map.

This extends the readonly Map trait with methods to create and modify entries.

-

Required Associated Types§

source

type EntryMut: MapEntryMut

An entry that is possibly writable

-

Required Methods§

Required Associated Types§

type EntryMut: MapEntryMut

An entry that is possibly writable

+

Required Methods§

fn get_mut( &self, hash: &Hash ) -> impl Future<Output = Result<Option<Self::EntryMut>, Error>> + Send

Get an existing entry as an EntryMut.

For implementations where EntryMut and Entry are the same type, this is just an alias for get.

-
source

fn get_or_create( +

fn get_or_create( &self, hash: Hash, size: u64 ) -> impl Future<Output = Result<Self::EntryMut, Error>> + Send

Get an existing partial entry, or create a new one.

We need to know the size of the partial entry. This might produce an error e.g. if there is not enough space on disk.

-
source

fn entry_status( +

fn entry_status( &self, hash: &Hash ) -> impl Future<Output = Result<EntryStatus, Error>> + Send

Find out if the data behind a hash is complete, partial, or not present.

Note that this does not actually verify the on-disc data, but only checks in which section of the store the entry is present.

-
source

fn entry_status_sync(&self, hash: &Hash) -> Result<EntryStatus, Error>

Sync version of entry_status, for the doc sync engine until we can get rid of it.

+

fn entry_status_sync(&self, hash: &Hash) -> Result<EntryStatus, Error>

Sync version of entry_status, for the doc sync engine until we can get rid of it.

Don’t count on this to be efficient.

-
source

fn insert_complete( +

fn insert_complete( &self, entry: Self::EntryMut ) -> impl Future<Output = Result<(), Error>> + Send

Upgrade a partial entry to a complete entry.

-

Object Safety§

This trait is not object safe.

Implementors§

source§

impl MapMut for iroh::blobs::store::fs::Store

§

type EntryMut = BaoFileHandle

source§

impl MapMut for iroh::blobs::store::mem::Store

source§

impl MapMut for iroh::blobs::store::readonly_mem::Store

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementors§

§

impl MapMut for iroh::blobs::store::fs::Store

§

type EntryMut = BaoFileHandle

§

impl MapMut for iroh::blobs::store::mem::Store

§

impl MapMut for iroh::blobs::store::readonly_mem::Store

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/trait.ReadableStore.html b/pr/2610/docs/iroh/blobs/store/trait.ReadableStore.html index 17fd0a24d6..a2eeaba375 100644 --- a/pr/2610/docs/iroh/blobs/store/trait.ReadableStore.html +++ b/pr/2610/docs/iroh/blobs/store/trait.ReadableStore.html @@ -1,4 +1,4 @@ -ReadableStore in iroh::blobs::store - Rust

Trait iroh::blobs::store::ReadableStore

source ·
pub trait ReadableStore: Map {
+ReadableStore in iroh::blobs::store - Rust

Trait iroh::blobs::store::ReadableStore

pub trait ReadableStore: Map {
     // Required methods
     fn blobs(
         &self
@@ -23,23 +23,23 @@
         progress: Box<dyn Fn(u64) -> Result<(), Error> + Send + Sync>
     ) -> impl Future<Output = Result<(), Error>> + Send;
 }
Expand description

Extension of Map to add misc methods used by the rpc calls.

-

Required Methods§

Required Methods§

fn blobs( &self ) -> impl Future<Output = Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>> + Send

list all blobs in the database. This includes both raw blobs that have been imported, and hash sequences that have been created internally.

-
source

fn tags( +

fn tags( &self ) -> impl Future<Output = Result<Box<dyn Iterator<Item = Result<(Tag, HashAndFormat), Error>> + Send + Sync>, Error>> + Send

list all tags (collections or other explicitly added things) in the database

-
source

fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

Temp tags

-
source

fn consistency_check( +

fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

Temp tags

+

fn consistency_check( &self, repair: bool, tx: BoxedProgressSender<ConsistencyCheckProgress> ) -> impl Future<Output = Result<(), Error>> + Send

Perform a consistency check on the database

-
source

fn partial_blobs( +

fn partial_blobs( &self ) -> impl Future<Output = Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>> + Send

list partial blobs in the database

-
source

fn export( +

fn export( &self, hash: Hash, target: PathBuf, @@ -50,4 +50,4 @@ been imported, and hash sequences that have been created internally.

target is the path to the target file mode is a hint how the file should be exported. progress is a callback that is called with the total number of bytes that have been written

-

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ReadableStore for iroh::blobs::store::fs::Store

source§

impl ReadableStore for iroh::blobs::store::mem::Store

source§

impl ReadableStore for iroh::blobs::store::readonly_mem::Store

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementors§

§

impl ReadableStore for iroh::blobs::store::fs::Store

§

impl ReadableStore for iroh::blobs::store::mem::Store

§

impl ReadableStore for iroh::blobs::store::readonly_mem::Store

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/trait.Store.html b/pr/2610/docs/iroh/blobs/store/trait.Store.html index f3dc830eb0..ea79e5847a 100644 --- a/pr/2610/docs/iroh/blobs/store/trait.Store.html +++ b/pr/2610/docs/iroh/blobs/store/trait.Store.html @@ -1,4 +1,4 @@ -Store in iroh::blobs::store - Rust

Trait iroh::blobs::store::Store

source ·
pub trait Store: ReadableStore + MapMut + Debug {
+Store in iroh::blobs::store - Rust

Trait iroh::blobs::store::Store

pub trait Store: ReadableStore + MapMut + Debug {
 
Show 13 methods // Required methods fn import_file( &self, @@ -56,7 +56,7 @@ tx: BoxedProgressSender<ValidateProgress> ) -> impl Future<Output = Result<(), Error>> + Send { ... }
}
Expand description

The mutable part of a Bao store.

-

Required Methods§

Required Methods§

fn import_file( &self, data: PathBuf, mode: ImportMode, @@ -71,43 +71,43 @@ consumer of the progress messages is dropped, subsequent attempts to send progre will fail.

Returns the hash of the imported file. The reason to have this method is that some database implementations might be able to import a file without copying it.

-

source

fn import_bytes( +

fn import_bytes( &self, bytes: Bytes, format: BlobFormat ) -> impl Future<Output = Result<TempTag, Error>> + Send

Import data from memory.

It is a special case of import that does not use the file system.

-
source

fn import_stream( +

fn import_stream( &self, data: impl Stream<Item = Result<Bytes, Error>> + Send + Unpin + 'static, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator ) -> impl Future<Output = Result<(TempTag, u64), Error>> + Send

Import data from a stream of bytes.

-
source

fn set_tag( +

fn set_tag( &self, name: Tag, hash: Option<HashAndFormat> ) -> impl Future<Output = Result<(), Error>> + Send

Set a tag

-
source

fn create_tag( +

fn create_tag( &self, hash: HashAndFormat ) -> impl Future<Output = Result<Tag, Error>> + Send

Create a new tag

-
source

fn temp_tag(&self, value: HashAndFormat) -> TempTag

Create a temporary pin for this store

-
source

fn gc_start(&self) -> impl Future<Output = Result<(), Error>> + Send

Notify the store that a new gc phase is about to start.

+

fn temp_tag(&self, value: HashAndFormat) -> TempTag

Create a temporary pin for this store

+

fn gc_start(&self) -> impl Future<Output = Result<(), Error>> + Send

Notify the store that a new gc phase is about to start.

This should not fail unless the store is shut down or otherwise in a bad state. The gc task will shut itself down if this fails.

-
source

fn delete( +

fn delete( &self, hashes: Vec<Hash> ) -> impl Future<Output = Result<(), Error>> + Send

physically delete the given hashes from the store.

-
source

fn shutdown(&self) -> impl Future<Output = ()> + Send

Shutdown the store.

-

Provided Methods§

fn shutdown(&self) -> impl Future<Output = ()> + Send

Shutdown the store.

+

Provided Methods§

fn import_reader( &self, data: impl AsyncRead + Send + Unpin + 'static, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator ) -> impl Future<Output = Result<(TempTag, u64), Error>> + Send

Import data from an async byte reader.

-
source

fn gc_mark( +

fn gc_mark( &self, live: &mut BTreeSet<Hash> ) -> impl Stream<Item = GcMarkEvent> + Unpin

Traverse all roots recursively and mark them as live.

@@ -117,14 +117,14 @@ to some live data being missed.

The implementation of this method should do the minimum amount of work to determine the live set. Actual deletion of garbage should be done in the gc_sweep phase.

-
source

fn gc_sweep( +

fn gc_sweep( &self, live: &BTreeSet<Hash> ) -> impl Stream<Item = GcSweepEvent> + Unpin

Remove all blobs that are not marked as live.

Poll this stream to completion to perform a full gc sweep. Not polling this stream to completion just means that some garbage will remain in the database.

Sweeping might take long, but it can safely be done in the background.

-
source

fn validate( +

fn validate( &self, repair: bool, tx: BoxedProgressSender<ValidateProgress> @@ -132,4 +132,4 @@ to completion just means that some garbage will remain in the database.

This will check that the file and outboard content is correct for all complete entries, and output valid ranges for all partial entries.

It will not check the internal consistency of the database.

-

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Store for iroh::blobs::store::fs::Store

source§

impl Store for iroh::blobs::store::mem::Store

source§

impl Store for iroh::blobs::store::readonly_mem::Store

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementors§

§

impl Store for iroh::blobs::store::fs::Store

§

impl Store for iroh::blobs::store::mem::Store

§

impl Store for iroh::blobs::store::readonly_mem::Store

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/type.DbIter.html b/pr/2610/docs/iroh/blobs/store/type.DbIter.html index 6ac50984e8..5fd044e48f 100644 --- a/pr/2610/docs/iroh/blobs/store/type.DbIter.html +++ b/pr/2610/docs/iroh/blobs/store/type.DbIter.html @@ -1,2 +1,2 @@ -DbIter in iroh::blobs::store - Rust

Type Alias iroh::blobs::store::DbIter

source ·
pub type DbIter<T> = Box<dyn Iterator<Item = Result<T, Error>> + Send + Sync>;
Expand description

A fallible but owned iterator over the entries in a store.

+DbIter in iroh::blobs::store - Rust

Type Alias iroh::blobs::store::DbIter

pub type DbIter<T> = Box<dyn Iterator<Item = Result<T, Error>> + Send + Sync>;
Expand description

A fallible but owned iterator over the entries in a store.

Aliased Type§

struct DbIter<T>(/* private fields */);
\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/store/type.ExportProgressCb.html b/pr/2610/docs/iroh/blobs/store/type.ExportProgressCb.html index b460becf1f..ea8755f106 100644 --- a/pr/2610/docs/iroh/blobs/store/type.ExportProgressCb.html +++ b/pr/2610/docs/iroh/blobs/store/type.ExportProgressCb.html @@ -1,2 +1,2 @@ -ExportProgressCb in iroh::blobs::store - Rust

Type Alias iroh::blobs::store::ExportProgressCb

source ·
pub type ExportProgressCb = Box<dyn Fn(u64) -> Result<(), Error> + Send + Sync>;
Expand description

Export trogress callback

+ExportProgressCb in iroh::blobs::store - Rust

Type Alias iroh::blobs::store::ExportProgressCb

pub type ExportProgressCb = Box<dyn Fn(u64) -> Result<(), Error> + Send + Sync>;
Expand description

Export trogress callback

Aliased Type§

struct ExportProgressCb(/* private fields */);
\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/struct.Hash.html b/pr/2610/docs/iroh/blobs/struct.Hash.html index 3c893013b1..c27bd95f5b 100644 --- a/pr/2610/docs/iroh/blobs/struct.Hash.html +++ b/pr/2610/docs/iroh/blobs/struct.Hash.html @@ -9,7 +9,7 @@ representation of the hash.

Trait Implementations§

source§

impl AsRef<[u8]> for Hash

source§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Borrow<[u8]> for Hash

source§

fn borrow(&self) -> &[u8] ⓘ

Immutably borrows from an owned value. Read more
source§

impl Borrow<[u8; 32]> for Hash

source§

fn borrow(&self) -> &[u8; 32]

Immutably borrows from an owned value. Read more
source§

impl Clone for Hash

source§

fn clone(&self) -> Hash

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Hash

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Hash

source§

fn deserialize<D>( deserializer: D ) -> Result<Hash, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Hash

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<&[u8; 32]> for Hash

source§

fn from(value: &[u8; 32]) -> Hash

Converts to this type from the input type.
source§

impl From<[u8; 32]> for Hash

source§

fn from(value: [u8; 32]) -> Hash

Converts to this type from the input type.
source§

impl From<Hash> for [u8; 32]

source§

fn from(value: Hash) -> [u8; 32]

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
source§

impl FromIterator<Hash> for HashSeq

source§

fn from_iter<T>(iter: T) -> HashSeq
where + D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Hash

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<&[u8; 32]> for Hash

source§

fn from(value: &[u8; 32]) -> Hash

Converts to this type from the input type.
source§

impl From<[u8; 32]> for Hash

source§

fn from(value: [u8; 32]) -> Hash

Converts to this type from the input type.
source§

impl From<Hash> for [u8; 32]

source§

fn from(value: Hash) -> [u8; 32]

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
§

impl From<Hash> for Hash

§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
§

impl FromIterator<Hash> for HashSeq

§

fn from_iter<T>(iter: T) -> HashSeq
where T: IntoIterator<Item = Hash>,

Creates a value from an iterator. Read more
source§

impl FromStr for Hash

§

type Err = HexOrBase32ParseError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<Hash, <Hash as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for Hash

source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, diff --git a/pr/2610/docs/iroh/blobs/struct.HashAndFormat.html b/pr/2610/docs/iroh/blobs/struct.HashAndFormat.html index 7b590b5dcd..e7e22d2d91 100644 --- a/pr/2610/docs/iroh/blobs/struct.HashAndFormat.html +++ b/pr/2610/docs/iroh/blobs/struct.HashAndFormat.html @@ -10,7 +10,7 @@

Trait Implementations§

source§

impl Clone for HashAndFormat

source§

fn clone(&self) -> HashAndFormat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for HashAndFormat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for HashAndFormat

source§

fn deserialize<D>( deserializer: D ) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for HashAndFormat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
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 From<HashAndFormat> for HashAndFormat

source§

fn from(value: HashAndFormat) -> HashAndFormat

Converts to this type from the input type.
source§

impl FromStr for HashAndFormat

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<HashAndFormat, <HashAndFormat as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for HashAndFormat

source§

fn hash<__H>(&self, state: &mut __H)
where + D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for HashAndFormat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

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 From<HashAndFormat> for HashAndFormat

§

fn from(value: HashAndFormat) -> HashAndFormat

Converts to this type from the input type.
source§

impl FromStr for HashAndFormat

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<HashAndFormat, <HashAndFormat as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for HashAndFormat

source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl MaxSize for HashAndFormat

source§

const POSTCARD_MAX_SIZE: usize = 33usize

The maximum possible size that the serialization of this diff --git a/pr/2610/docs/iroh/blobs/struct.Tag.html b/pr/2610/docs/iroh/blobs/struct.Tag.html index 4819d2118e..e8b42fdfcd 100644 --- a/pr/2610/docs/iroh/blobs/struct.Tag.html +++ b/pr/2610/docs/iroh/blobs/struct.Tag.html @@ -1,32 +1,32 @@ -Tag in iroh::blobs - Rust

Struct iroh::blobs::Tag

source ·
pub struct Tag(pub Bytes);
Expand description

A tag

-

Tuple Fields§

§0: Bytes

Implementations§

source§

impl Tag

source

pub fn auto(time: SystemTime, exists: impl Fn(&[u8]) -> bool) -> Tag

Create a new tag that does not exist yet.

-

Trait Implementations§

source§

impl Borrow<[u8]> for Tag

source§

fn borrow(&self) -> &[u8] ⓘ

Immutably borrows from an owned value. Read more
source§

impl Clone for Tag

source§

fn clone(&self) -> Tag

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Tag

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Tag

source§

fn deserialize<__D>( +Tag in iroh::blobs - Rust

Struct iroh::blobs::Tag

pub struct Tag(pub Bytes);
Expand description

A tag

+

Tuple Fields§

§0: Bytes

Implementations§

§

impl Tag

pub fn auto(time: SystemTime, exists: impl Fn(&[u8]) -> bool) -> Tag

Create a new tag that does not exist yet.

+

Trait Implementations§

§

impl Borrow<[u8]> for Tag

§

fn borrow(&self) -> &[u8] ⓘ

Immutably borrows from an owned value. Read more
§

impl Clone for Tag

§

fn clone(&self) -> Tag

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Tag

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Tag

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Tag, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Tag

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<&str> for Tag

source§

fn from(value: &str) -> Tag

Converts to this type from the input type.
source§

impl From<Bytes> for Tag

source§

fn from(value: Bytes) -> Tag

Converts to this type from the input type.
source§

impl From<String> for Tag

source§

fn from(value: String) -> Tag

Converts to this type from the input type.
source§

impl Key for Tag

source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
source§

impl Ord for Tag

source§

fn cmp(&self, other: &Tag) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for Tag

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<&str> for Tag

§

fn from(value: &str) -> Tag

Converts to this type from the input type.
§

impl From<Bytes> for Tag

§

fn from(value: Bytes) -> Tag

Converts to this type from the input type.
§

impl From<String> for Tag

§

fn from(value: String) -> Tag

Converts to this type from the input type.
§

impl Key for Tag

§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
§

impl Ord for Tag

§

fn cmp(&self, other: &Tag) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Tag

source§

fn eq(&self, other: &Tag) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for Tag

§

fn eq(&self, other: &Tag) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Tag

source§

fn partial_cmp(&self, other: &Tag) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
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 <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for Tag

§

fn partial_cmp(&self, other: &Tag) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl RedbKey for Tag

source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
source§

impl RedbValue for Tag

§

type SelfType<'a> = Tag

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = Bytes

source§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
source§

fn from_bytes<'a>(data: &'a [u8]) -> <Tag as RedbValue>::SelfType<'a>
where +operator. Read more

§

impl RedbKey for Tag

§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
§

impl RedbValue for Tag

§

type SelfType<'a> = Tag

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = Bytes

§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
§

fn from_bytes<'a>(data: &'a [u8]) -> <Tag as RedbValue>::SelfType<'a>
where Tag: 'a,

Deserializes data -Implementations may return a view over data, or an owned type
source§

fn as_bytes<'a, 'b>( +Implementations may return a view over data, or an owned type

§

fn as_bytes<'a, 'b>( value: &'a <Tag as RedbValue>::SelfType<'b> ) -> <Tag as RedbValue>::AsBytes<'a>
where 'b: 'a, - Tag: 'a + 'b,

Serialize the value to a slice
source§

fn type_name() -> TypeName

Globally unique identifier for this type
source§

impl Serialize for Tag

source§

fn serialize<__S>( + Tag: 'a + 'b,

Serialize the value to a slice
§

fn type_name() -> TypeName

Globally unique identifier for this type
§

impl Serialize for Tag

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Value for Tag

§

type SelfType<'a> = Tag

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = Bytes

source§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
source§

fn from_bytes<'a>(data: &'a [u8]) -> <Tag as Value>::SelfType<'a>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Value for Tag

§

type SelfType<'a> = Tag

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = Bytes

§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
§

fn from_bytes<'a>(data: &'a [u8]) -> <Tag as Value>::SelfType<'a>
where Tag: 'a,

Deserializes data -Implementations may return a view over data, or an owned type
source§

fn as_bytes<'a, 'b>( +Implementations may return a view over data, or an owned type

§

fn as_bytes<'a, 'b>( value: &'a <Tag as Value>::SelfType<'b> ) -> <Tag as Value>::AsBytes<'a>
where 'b: 'a, - Tag: 'a + 'b,

Serialize the value to a slice
source§

fn type_name() -> TypeName

Globally unique identifier for this type
source§

impl Eq for Tag

source§

impl StructuralPartialEq for Tag

Auto Trait Implementations§

§

impl !Freeze for Tag

§

impl RefUnwindSafe for Tag

§

impl Send for Tag

§

impl Sync for Tag

§

impl Unpin for Tag

§

impl UnwindSafe for Tag

Blanket Implementations§

source§

impl<T> Any for T
where + Tag: 'a + 'b,

Serialize the value to a slice
§

fn type_name() -> TypeName

Globally unique identifier for this type
§

impl Eq for Tag

§

impl StructuralPartialEq for Tag

Auto Trait Implementations§

§

impl !Freeze for Tag

§

impl RefUnwindSafe for Tag

§

impl Send for Tag

§

impl Sync for Tag

§

impl Unpin for Tag

§

impl UnwindSafe for Tag

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/struct.TempTag.html b/pr/2610/docs/iroh/blobs/struct.TempTag.html index cf712addb2..efbd3fc836 100644 --- a/pr/2610/docs/iroh/blobs/struct.TempTag.html +++ b/pr/2610/docs/iroh/blobs/struct.TempTag.html @@ -1,16 +1,16 @@ -TempTag in iroh::blobs - Rust

Struct iroh::blobs::TempTag

source ·
pub struct TempTag { /* private fields */ }
Expand description

A hash and format pair that is protected from garbage collection.

+TempTag in iroh::blobs - Rust

Struct iroh::blobs::TempTag

pub struct TempTag { /* private fields */ }
Expand description

A hash and format pair that is protected from garbage collection.

If format is raw, this will protect just the blob If format is collection, this will protect the collection and all blobs in it

-

Implementations§

source§

impl TempTag

source

pub fn new(inner: HashAndFormat, on_drop: Option<Weak<dyn TagDrop>>) -> TempTag

Create a new temp tag for the given hash and format

+

Implementations§

§

impl TempTag

pub fn new(inner: HashAndFormat, on_drop: Option<Weak<dyn TagDrop>>) -> TempTag

Create a new temp tag for the given hash and format

This should only be used by store implementations.

The caller is responsible for increasing the refcount on creation and to make sure that temp tags that are created between a mark phase and a sweep phase are protected.

-
source

pub fn inner(&self) -> &HashAndFormat

The hash of the pinned item

-
source

pub fn hash(&self) -> &Hash

The hash of the pinned item

-
source

pub fn format(&self) -> BlobFormat

The format of the pinned item

-
source

pub fn leak(self)

Keep the item alive until the end of the process

-

Trait Implementations§

source§

impl Debug for TempTag

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Drop for TempTag

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

pub fn inner(&self) -> &HashAndFormat

The hash of the pinned item

+

pub fn hash(&self) -> &Hash

The hash of the pinned item

+

pub fn format(&self) -> BlobFormat

The format of the pinned item

+

pub fn leak(self)

Keep the item alive until the end of the process

+

Trait Implementations§

§

impl Debug for TempTag

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Drop for TempTag

§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/util/enum.MemOrFile.html b/pr/2610/docs/iroh/blobs/util/enum.MemOrFile.html index a52dd441d4..60e66a428a 100644 --- a/pr/2610/docs/iroh/blobs/util/enum.MemOrFile.html +++ b/pr/2610/docs/iroh/blobs/util/enum.MemOrFile.html @@ -1,4 +1,4 @@ -MemOrFile in iroh::blobs::util - Rust

Enum iroh::blobs::util::MemOrFile

source ·
pub enum MemOrFile<M, F> {
+MemOrFile in iroh::blobs::util - Rust

Enum iroh::blobs::util::MemOrFile

pub enum MemOrFile<M, F> {
     Mem(M),
     File(F),
 }
Expand description

This is a general purpose Either, just like Result, except that the two cases @@ -6,24 +6,24 @@ are Mem for something that is in memory, and File for something that is somewher external and only available via io.

Variants§

§

Mem(M)

We got it all in memory

§

File(F)

A file

-

Implementations§

source§

impl<M, F> MemOrFile<M, (F, u64)>
where +

Implementations§

§

impl<M, F> MemOrFile<M, (F, u64)>
where M: AsRef<[u8]>,

Helper methods for a common way to use MemOrFile, where the memory part is something like a slice, and the file part is a tuple consisiting of path or file and size.

-
source

pub fn size(&self) -> u64

Get the size of the MemOrFile

-
source§

impl<M, F> MemOrFile<M, F>

source

pub fn as_ref(&self) -> MemOrFile<&M, &F>

Turn a reference to a MemOrFile into a MemOrFile of references

-
source

pub fn is_mem(&self) -> bool

True if this is a Mem

-
source

pub fn mem(&self) -> Option<&M>

Get the mem part

-
source

pub fn map_file<F2>(self, f: impl FnOnce(F) -> F2) -> MemOrFile<M, F2>

Map the file part of this MemOrFile

-
source

pub fn try_map_file<F2, E>( +

pub fn size(&self) -> u64

Get the size of the MemOrFile

+
§

impl<M, F> MemOrFile<M, F>

pub fn as_ref(&self) -> MemOrFile<&M, &F>

Turn a reference to a MemOrFile into a MemOrFile of references

+

pub fn is_mem(&self) -> bool

True if this is a Mem

+

pub fn mem(&self) -> Option<&M>

Get the mem part

+

pub fn map_file<F2>(self, f: impl FnOnce(F) -> F2) -> MemOrFile<M, F2>

Map the file part of this MemOrFile

+

pub fn try_map_file<F2, E>( self, f: impl FnOnce(F) -> Result<F2, E> ) -> Result<MemOrFile<M, F2>, E>

Try to map the file part of this MemOrFile

-
source

pub fn map_mem<M2>(self, f: impl FnOnce(M) -> M2) -> MemOrFile<M2, F>

Map the memory part of this MemOrFile

-

Trait Implementations§

source§

impl<M, F> Debug for MemOrFile<M, F>
where +

pub fn map_mem<M2>(self, f: impl FnOnce(M) -> M2) -> MemOrFile<M2, F>

Map the memory part of this MemOrFile

+

Trait Implementations§

§

impl<M, F> Debug for MemOrFile<M, F>
where M: Debug, - F: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<M, F> Default for MemOrFile<M, F>
where - M: Default,

source§

fn default() -> MemOrFile<M, F>

Returns the “default value” for a type. Read more
source§

impl ReadAt for MemOrFile<Bytes, File>

source§

fn read_at(&self, offset: u64, buf: &mut [u8]) -> Result<usize, Error>

Reads bytes from an offset in this source into a buffer, returning how -many bytes were read. Read more
source§

fn read_exact_at(&self, pos: u64, buf: &mut [u8]) -> Result<(), Error>

Reads the exact number of bytes required to fill buf from an offset. Read more
source§

impl Size for MemOrFile<Bytes, File>

source§

fn size(&self) -> Result<Option<u64>, Error>

Get the size of this object, in bytes. Read more

Auto Trait Implementations§

§

impl<M, F> Freeze for MemOrFile<M, F>
where + F: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<M, F> Default for MemOrFile<M, F>
where + M: Default,

§

fn default() -> MemOrFile<M, F>

Returns the “default value” for a type. Read more
§

impl ReadAt for MemOrFile<Bytes, File>

§

fn read_at(&self, offset: u64, buf: &mut [u8]) -> Result<usize, Error>

Reads bytes from an offset in this source into a buffer, returning how +many bytes were read. Read more
source§

fn read_exact_at(&self, pos: u64, buf: &mut [u8]) -> Result<(), Error>

Reads the exact number of bytes required to fill buf from an offset. Read more
§

impl Size for MemOrFile<Bytes, File>

§

fn size(&self) -> Result<Option<u64>, Error>

Get the size of this object, in bytes. Read more

Auto Trait Implementations§

§

impl<M, F> Freeze for MemOrFile<M, F>
where M: Freeze, F: Freeze,

§

impl<M, F> RefUnwindSafe for MemOrFile<M, F>
where M: RefUnwindSafe, diff --git a/pr/2610/docs/iroh/blobs/util/enum.SetTagOption.html b/pr/2610/docs/iroh/blobs/util/enum.SetTagOption.html index 52ffb207b0..ab48a5e71c 100644 --- a/pr/2610/docs/iroh/blobs/util/enum.SetTagOption.html +++ b/pr/2610/docs/iroh/blobs/util/enum.SetTagOption.html @@ -1,24 +1,24 @@ -SetTagOption in iroh::blobs::util - Rust

Enum iroh::blobs::util::SetTagOption

source ·
pub enum SetTagOption {
+SetTagOption in iroh::blobs::util - Rust

Enum iroh::blobs::util::SetTagOption

pub enum SetTagOption {
     Auto,
     Named(Tag),
 }
Expand description

Option for commands that allow setting a tag

Variants§

§

Auto

A tag will be automatically generated

§

Named(Tag)

The tag is explicitly named

-

Trait Implementations§

source§

impl Clone for SetTagOption

source§

fn clone(&self) -> SetTagOption

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SetTagOption

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SetTagOption

Trait Implementations§

§

impl Clone for SetTagOption

§

fn clone(&self) -> SetTagOption

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for SetTagOption

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for SetTagOption

§

fn deserialize<__D>( __deserializer: __D ) -> Result<SetTagOption, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Ord for SetTagOption

source§

fn cmp(&self, other: &SetTagOption) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Ord for SetTagOption

§

fn cmp(&self, other: &SetTagOption) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for SetTagOption

source§

fn eq(&self, other: &SetTagOption) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for SetTagOption

§

fn eq(&self, other: &SetTagOption) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for SetTagOption

source§

fn partial_cmp(&self, other: &SetTagOption) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
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 <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for SetTagOption

§

fn partial_cmp(&self, other: &SetTagOption) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for SetTagOption

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for SetTagOption

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for SetTagOption

source§

impl StructuralPartialEq for SetTagOption

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for SetTagOption

§

impl StructuralPartialEq for SetTagOption

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/util/fn.total_bytes.html b/pr/2610/docs/iroh/blobs/util/fn.total_bytes.html index c999317b77..ccb70e1c17 100644 --- a/pr/2610/docs/iroh/blobs/util/fn.total_bytes.html +++ b/pr/2610/docs/iroh/blobs/util/fn.total_bytes.html @@ -1,3 +1,3 @@ -total_bytes in iroh::blobs::util - Rust

Function iroh::blobs::util::total_bytes

source ·
pub fn total_bytes(ranges: RangeSet<[ChunkNum; 2]>, size: u64) -> u64
Expand description

Get the number of bytes given a set of chunk ranges and the total size.

+total_bytes in iroh::blobs::util - Rust

Function iroh::blobs::util::total_bytes

pub fn total_bytes(ranges: RangeSet<[ChunkNum; 2]>, size: u64) -> u64
Expand description

Get the number of bytes given a set of chunk ranges and the total size.

If some ranges are out of bounds, they will be clamped to the size.

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/util/index.html b/pr/2610/docs/iroh/blobs/util/index.html index 69d4744de0..fd88c747d7 100644 --- a/pr/2610/docs/iroh/blobs/util/index.html +++ b/pr/2610/docs/iroh/blobs/util/index.html @@ -1,4 +1,4 @@ -iroh::blobs::util - Rust

Module iroh::blobs::util

source ·
Expand description

Utility functions and types.

+iroh::blobs::util - Rust

Module iroh::blobs::util

Expand description

Utility functions and types.

Modules§

  • Utilities for working with tokio io
  • A local task pool with proper shutdown
  • Utilities for reporting progress.

Structs§

  • A file that is sparse in memory
  • A tag
  • A hash and format pair that is protected from garbage collection.

Enums§

  • This is a general purpose Either, just like Result, except that the two cases are Mem for something that is in memory, and File for something that is somewhere external and only available via io.
  • Option for commands that allow setting a tag

Traits§

§

impl<W> Debug for TrackingWriter<W>
where + W: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<W> Freeze for TrackingWriter<W>
where W: Freeze,

§

impl<W> RefUnwindSafe for TrackingWriter<W>
where W: RefUnwindSafe,

§

impl<W> Send for TrackingWriter<W>
where W: Send,

§

impl<W> Sync for TrackingWriter<W>
where diff --git a/pr/2610/docs/iroh/blobs/util/local_pool/enum.PanicMode.html b/pr/2610/docs/iroh/blobs/util/local_pool/enum.PanicMode.html index 749a2a889c..be094033c8 100644 --- a/pr/2610/docs/iroh/blobs/util/local_pool/enum.PanicMode.html +++ b/pr/2610/docs/iroh/blobs/util/local_pool/enum.PanicMode.html @@ -1,4 +1,4 @@ -PanicMode in iroh::blobs::util::local_pool - Rust

Enum iroh::blobs::util::local_pool::PanicMode

source ·
pub enum PanicMode {
+PanicMode in iroh::blobs::util::local_pool - Rust

Enum iroh::blobs::util::local_pool::PanicMode

pub enum PanicMode {
     LogAndContinue,
     Shutdown,
 }
Expand description

What to do when a panic occurs in a pool thread

@@ -6,9 +6,9 @@

The panic will be re-thrown when the pool is dropped.

§

Shutdown

Log the panic and immediately shut down the pool.

The panic will be re-thrown when the pool is dropped.

-

Trait Implementations§

source§

impl Clone for PanicMode

source§

fn clone(&self) -> PanicMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PanicMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq for PanicMode

source§

fn eq(&self, other: &PanicMode) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for PanicMode

§

fn clone(&self) -> PanicMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for PanicMode

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq for PanicMode

§

fn eq(&self, other: &PanicMode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for PanicMode

source§

impl Eq for PanicMode

source§

impl StructuralPartialEq for PanicMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

§

impl Copy for PanicMode

§

impl Eq for PanicMode

§

impl StructuralPartialEq for PanicMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/util/local_pool/enum.SpawnError.html b/pr/2610/docs/iroh/blobs/util/local_pool/enum.SpawnError.html index a29dbe4f79..0a6739b4fd 100644 --- a/pr/2610/docs/iroh/blobs/util/local_pool/enum.SpawnError.html +++ b/pr/2610/docs/iroh/blobs/util/local_pool/enum.SpawnError.html @@ -1,8 +1,8 @@ -SpawnError in iroh::blobs::util::local_pool - Rust

Enum iroh::blobs::util::local_pool::SpawnError

source ·
pub enum SpawnError {
+SpawnError in iroh::blobs::util::local_pool - Rust

Enum iroh::blobs::util::local_pool::SpawnError

pub enum SpawnError {
     Cancelled,
 }
Expand description

Errors for spawn failures

Variants§

§

Cancelled

Task was dropped, either due to a panic or because the pool was shut down.

-

Trait Implementations§

source§

impl Debug for SpawnError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for SpawnError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for SpawnError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for SpawnError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for SpawnError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for SpawnError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/util/local_pool/index.html b/pr/2610/docs/iroh/blobs/util/local_pool/index.html index 7026793052..e8b0828214 100644 --- a/pr/2610/docs/iroh/blobs/util/local_pool/index.html +++ b/pr/2610/docs/iroh/blobs/util/local_pool/index.html @@ -1,2 +1,2 @@ -iroh::blobs::util::local_pool - Rust

Module iroh::blobs::util::local_pool

source ·
Expand description

A local task pool with proper shutdown

+iroh::blobs::util::local_pool - Rust

Module iroh::blobs::util::local_pool

Expand description

A local task pool with proper shutdown

Structs§

Enums§

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/util/local_pool/struct.Config.html b/pr/2610/docs/iroh/blobs/util/local_pool/struct.Config.html index 6df5ba1b61..2b09967678 100644 --- a/pr/2610/docs/iroh/blobs/util/local_pool/struct.Config.html +++ b/pr/2610/docs/iroh/blobs/util/local_pool/struct.Config.html @@ -1,4 +1,4 @@ -Config in iroh::blobs::util::local_pool - Rust

Struct iroh::blobs::util::local_pool::Config

source ·
pub struct Config {
+Config in iroh::blobs::util::local_pool - Rust

Struct iroh::blobs::util::local_pool::Config

pub struct Config {
     pub threads: usize,
     pub thread_name_prefix: &'static str,
     pub panic_mode: PanicMode,
@@ -6,7 +6,7 @@
 

Fields§

§threads: usize

Number of threads in the pool

§thread_name_prefix: &'static str

Prefix for thread names

§panic_mode: PanicMode

Ignore panics in pool threads

-

Trait Implementations§

source§

impl Clone for Config

source§

fn clone(&self) -> Config

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Config

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Config

source§

fn default() -> Config

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for Config

§

fn clone(&self) -> Config

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Config

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Config

§

fn default() -> Config

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/util/local_pool/struct.LocalPool.html b/pr/2610/docs/iroh/blobs/util/local_pool/struct.LocalPool.html index 4c61122702..899d2a623d 100644 --- a/pr/2610/docs/iroh/blobs/util/local_pool/struct.LocalPool.html +++ b/pr/2610/docs/iroh/blobs/util/local_pool/struct.LocalPool.html @@ -1,4 +1,4 @@ -LocalPool in iroh::blobs::util::local_pool - Rust

Struct iroh::blobs::util::local_pool::LocalPool

source ·
pub struct LocalPool { /* private fields */ }
Expand description

A local task pool with proper shutdown

+LocalPool in iroh::blobs::util::local_pool - Rust

Struct iroh::blobs::util::local_pool::LocalPool

pub struct LocalPool { /* private fields */ }
Expand description

A local task pool with proper shutdown

Unlike LocalPoolHandle, this pool will join all its threads when dropped, ensuring that all Drop @@ -11,58 +11,58 @@ able to run to completion before drop exits.

and then wait for all threads to finish executing their loops before returning. This means that all currently executing tasks will be allowed to run to completion.

-

Implementations§

source§

impl LocalPool

source

pub fn single() -> LocalPool

Create a new local pool with a single std thread.

-
source

pub fn new(config: Config) -> LocalPool

Create a new local pool with the given config.

+

Implementations§

§

impl LocalPool

pub fn single() -> LocalPool

Create a new local pool with a single std thread.

+

pub fn new(config: Config) -> LocalPool

Create a new local pool with the given config.

This will use the current tokio runtime handle, so it must be called from within a tokio runtime.

-
source

pub fn handle(&self) -> &LocalPoolHandle

Get a cheaply cloneable handle to the pool

+

pub fn handle(&self) -> &LocalPoolHandle

Get a cheaply cloneable handle to the pool

This is not strictly necessary since we implement deref for LocalPoolHandle, but makes getting a handle more explicit.

-
source

pub async fn cancelled(&self)

A future that resolves when the pool is cancelled

-
source

pub async fn shutdown(self)

Immediately stop polling all tasks and wait for all threads to finish.

+

pub async fn cancelled(&self)

A future that resolves when the pool is cancelled

+

pub async fn shutdown(self)

Immediately stop polling all tasks and wait for all threads to finish.

This is like drop, but waits for thread completion asynchronously.

If there was a panic on any of the threads, it will be re-thrown here.

-
source

pub async fn finish(self)

Gently shut down the pool

+

pub async fn finish(self)

Gently shut down the pool

Notifies all the pool threads to shut down and waits for them to finish.

If you just want to drop the pool without giving the threads a chance to process their remaining tasks, just use Self::shutdown.

If you want to wait for only a limited time for the tasks to finish, you can race this function with a timeout.

-

Methods from Deref<Target = LocalPoolHandle>§

source

pub fn waiting_tasks(&self) -> usize

Get the number of tasks in the queue

+

Methods from Deref<Target = LocalPoolHandle>§

pub fn waiting_tasks(&self) -> usize

Get the number of tasks in the queue

This is not the number of tasks being executed, but the number of tasks waiting to be scheduled for execution. If this number is high, it indicates that the pool is very busy.

You might want to use this to throttle or reject requests.

-
source

pub fn try_spawn<T, F, Fut>(&self, gen: F) -> Result<Run<T>, SpawnError>
where +

pub fn try_spawn<T, F, Fut>(&self, gen: F) -> Result<Run<T>, SpawnError>
where F: FnOnce() -> Fut + Send + 'static, Fut: Future<Output = T> + 'static, T: Send + 'static,

Spawn a task in the pool and return a future that resolves when the task is done.

If you don’t care about the result, prefer LocalPoolHandle::spawn_detached since it is more efficient.

-
source

pub fn try_spawn_detached<F, Fut>(&self, gen: F) -> Result<(), SpawnError>
where +

pub fn try_spawn_detached<F, Fut>(&self, gen: F) -> Result<(), SpawnError>
where F: FnOnce() -> Fut + Send + 'static, Fut: Future<Output = ()> + 'static,

Spawn a task in the pool.

The task will run to completion unless the pool is shut down or the task panics. In case of panic, the pool will either log the panic and continue or immediately shut down, depending on the PanicMode.

-
source

pub fn spawn<T, F, Fut>(&self, gen: F) -> Run<T> ⓘ
where +

pub fn spawn<T, F, Fut>(&self, gen: F) -> Run<T> ⓘ
where F: FnOnce() -> Fut + Send + 'static, Fut: Future<Output = T> + 'static, T: Send + 'static,

Spawn a task in the pool and await the result.

Like LocalPoolHandle::try_spawn, but panics if the pool is shut down.

-
source

pub fn spawn_detached<F, Fut>(&self, gen: F)
where +

pub fn spawn_detached<F, Fut>(&self, gen: F)
where F: FnOnce() -> Fut + Send + 'static, Fut: Future<Output = ()> + 'static,

Spawn a task in the pool.

Like LocalPoolHandle::try_spawn_detached, but panics if the pool is shut down.

-
source

pub fn try_spawn_detached_boxed( +

pub fn try_spawn_detached_boxed( &self, gen: Box<dyn FnOnce() -> Pin<Box<dyn Future<Output = ()>>> + Send> ) -> Result<(), SpawnError>

Spawn a task in the pool.

This is like LocalPoolHandle::try_spawn_detached, but assuming that the generator function is already boxed. This is the lowest overhead way to spawn a task in the pool.

-

Trait Implementations§

source§

impl Debug for LocalPool

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for LocalPool

source§

fn default() -> LocalPool

Returns the “default value” for a type. Read more
source§

impl Deref for LocalPool

§

type Target = LocalPoolHandle

The resulting type after dereferencing.
source§

fn deref(&self) -> &<LocalPool as Deref>::Target

Dereferences the value.
source§

impl Drop for LocalPool

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for LocalPool

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for LocalPool

§

fn default() -> LocalPool

Returns the “default value” for a type. Read more
§

impl Deref for LocalPool

§

type Target = LocalPoolHandle

The resulting type after dereferencing.
§

fn deref(&self) -> &<LocalPool as Deref>::Target

Dereferences the value.
§

impl Drop for LocalPool

§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/util/local_pool/struct.LocalPoolHandle.html b/pr/2610/docs/iroh/blobs/util/local_pool/struct.LocalPoolHandle.html index b28f54646b..d6d0e8cfa3 100644 --- a/pr/2610/docs/iroh/blobs/util/local_pool/struct.LocalPoolHandle.html +++ b/pr/2610/docs/iroh/blobs/util/local_pool/struct.LocalPoolHandle.html @@ -1,39 +1,39 @@ -LocalPoolHandle in iroh::blobs::util::local_pool - Rust

Struct iroh::blobs::util::local_pool::LocalPoolHandle

source ·
pub struct LocalPoolHandle { /* private fields */ }
Expand description

A handle to a LocalPool

-

Implementations§

source§

impl LocalPoolHandle

source

pub fn waiting_tasks(&self) -> usize

Get the number of tasks in the queue

+LocalPoolHandle in iroh::blobs::util::local_pool - Rust

Struct iroh::blobs::util::local_pool::LocalPoolHandle

pub struct LocalPoolHandle { /* private fields */ }
Expand description

A handle to a LocalPool

+

Implementations§

§

impl LocalPoolHandle

pub fn waiting_tasks(&self) -> usize

Get the number of tasks in the queue

This is not the number of tasks being executed, but the number of tasks waiting to be scheduled for execution. If this number is high, it indicates that the pool is very busy.

You might want to use this to throttle or reject requests.

-
source

pub fn try_spawn<T, F, Fut>(&self, gen: F) -> Result<Run<T>, SpawnError>
where +

pub fn try_spawn<T, F, Fut>(&self, gen: F) -> Result<Run<T>, SpawnError>
where F: FnOnce() -> Fut + Send + 'static, Fut: Future<Output = T> + 'static, T: Send + 'static,

Spawn a task in the pool and return a future that resolves when the task is done.

If you don’t care about the result, prefer LocalPoolHandle::spawn_detached since it is more efficient.

-
source

pub fn try_spawn_detached<F, Fut>(&self, gen: F) -> Result<(), SpawnError>
where +

pub fn try_spawn_detached<F, Fut>(&self, gen: F) -> Result<(), SpawnError>
where F: FnOnce() -> Fut + Send + 'static, Fut: Future<Output = ()> + 'static,

Spawn a task in the pool.

The task will run to completion unless the pool is shut down or the task panics. In case of panic, the pool will either log the panic and continue or immediately shut down, depending on the PanicMode.

-
source

pub fn spawn<T, F, Fut>(&self, gen: F) -> Run<T> ⓘ
where +

pub fn spawn<T, F, Fut>(&self, gen: F) -> Run<T> ⓘ
where F: FnOnce() -> Fut + Send + 'static, Fut: Future<Output = T> + 'static, T: Send + 'static,

Spawn a task in the pool and await the result.

Like LocalPoolHandle::try_spawn, but panics if the pool is shut down.

-
source

pub fn spawn_detached<F, Fut>(&self, gen: F)
where +

pub fn spawn_detached<F, Fut>(&self, gen: F)
where F: FnOnce() -> Fut + Send + 'static, Fut: Future<Output = ()> + 'static,

Spawn a task in the pool.

Like LocalPoolHandle::try_spawn_detached, but panics if the pool is shut down.

-
source

pub fn try_spawn_detached_boxed( +

pub fn try_spawn_detached_boxed( &self, gen: Box<dyn FnOnce() -> Pin<Box<dyn Future<Output = ()>>> + Send> ) -> Result<(), SpawnError>

Spawn a task in the pool.

This is like LocalPoolHandle::try_spawn_detached, but assuming that the generator function is already boxed. This is the lowest overhead way to spawn a task in the pool.

-

Trait Implementations§

source§

impl Clone for LocalPoolHandle

source§

fn clone(&self) -> LocalPoolHandle

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LocalPoolHandle

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for LocalPoolHandle

§

fn clone(&self) -> LocalPoolHandle

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for LocalPoolHandle

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/util/local_pool/struct.Run.html b/pr/2610/docs/iroh/blobs/util/local_pool/struct.Run.html index 51989353ef..be0f178242 100644 --- a/pr/2610/docs/iroh/blobs/util/local_pool/struct.Run.html +++ b/pr/2610/docs/iroh/blobs/util/local_pool/struct.Run.html @@ -1,11 +1,11 @@ -Run in iroh::blobs::util::local_pool - Rust

Struct iroh::blobs::util::local_pool::Run

source ·
pub struct Run<T>(/* private fields */);
Expand description

Future returned by LocalPoolHandle::spawn and LocalPoolHandle::try_spawn.

+Run in iroh::blobs::util::local_pool - Rust

Struct iroh::blobs::util::local_pool::Run

pub struct Run<T>(/* private fields */);
Expand description

Future returned by LocalPoolHandle::spawn and LocalPoolHandle::try_spawn.

Dropping this future will immediately cancel the task. The task can fail if the pool is shut down or if the task panics. In both cases the future will resolve to SpawnError::Cancelled.

-

Implementations§

source§

impl<T> Run<T>

source

pub fn abort(&mut self)

Abort the task

+

Implementations§

§

impl<T> Run<T>

pub fn abort(&mut self)

Abort the task

Dropping the future will also abort the task.

-

Trait Implementations§

source§

impl<T> Debug for Run<T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Future for Run<T>

§

type Output = Result<T, SpawnError>

The type of value produced on completion.
source§

fn poll( +

Trait Implementations§

§

impl<T> Debug for Run<T>
where + T: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> Future for Run<T>

§

type Output = Result<T, SpawnError>

The type of value produced on completion.
§

fn poll( self: Pin<&mut Run<T>>, cx: &mut Context<'_> ) -> Poll<<Run<T> as Future>::Output>

Attempt to resolve the future to a final value, registering diff --git a/pr/2610/docs/iroh/blobs/util/progress/enum.ProgressSendError.html b/pr/2610/docs/iroh/blobs/util/progress/enum.ProgressSendError.html index 290852faf5..7cfeb943d1 100644 --- a/pr/2610/docs/iroh/blobs/util/progress/enum.ProgressSendError.html +++ b/pr/2610/docs/iroh/blobs/util/progress/enum.ProgressSendError.html @@ -1,9 +1,9 @@ -ProgressSendError in iroh::blobs::util::progress - Rust

Enum iroh::blobs::util::progress::ProgressSendError

source ·
pub enum ProgressSendError {
+ProgressSendError in iroh::blobs::util::progress - Rust

Enum iroh::blobs::util::progress::ProgressSendError

pub enum ProgressSendError {
     ReceiverDropped,
 }
Expand description

An error that can occur when sending progress messages.

Really the only error that can occur is if the receiver is dropped.

Variants§

§

ReceiverDropped

The receiver was dropped.

-

Trait Implementations§

source§

impl Clone for ProgressSendError

source§

fn clone(&self) -> ProgressSendError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ProgressSendError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for ProgressSendError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for ProgressSendError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<ProgressSendError> for GetError

source§

fn from(value: ProgressSendError) -> GetError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for ProgressSendError

§

fn clone(&self) -> ProgressSendError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ProgressSendError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ProgressSendError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ProgressSendError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<ProgressSendError> for GetError

§

fn from(value: ProgressSendError) -> GetError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/util/progress/index.html b/pr/2610/docs/iroh/blobs/util/progress/index.html index f5dc34ad4c..f7ae337210 100644 --- a/pr/2610/docs/iroh/blobs/util/progress/index.html +++ b/pr/2610/docs/iroh/blobs/util/progress/index.html @@ -1,4 +1,4 @@ -iroh::blobs::util::progress - Rust

Module iroh::blobs::util::progress

source ·
Expand description

Utilities for reporting progress.

+iroh::blobs::util::progress - Rust

Module iroh::blobs::util::progress

Expand description

Utilities for reporting progress.

The main entry point is the ProgressSender trait.

Structs§

Enums§

Traits§

  • An id generator, to be combined with a progress sender.
  • A general purpose progress sender. This should be usable for reporting progress from both blocking and non-blocking contexts.

Type Aliases§

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/util/progress/struct.AsyncChannelProgressSender.html b/pr/2610/docs/iroh/blobs/util/progress/struct.AsyncChannelProgressSender.html index c5d2ea58bb..b99ebcfdab 100644 --- a/pr/2610/docs/iroh/blobs/util/progress/struct.AsyncChannelProgressSender.html +++ b/pr/2610/docs/iroh/blobs/util/progress/struct.AsyncChannelProgressSender.html @@ -1,21 +1,21 @@ -AsyncChannelProgressSender in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::AsyncChannelProgressSender

source ·
pub struct AsyncChannelProgressSender<T> { /* private fields */ }
Expand description

A progress sender that uses an async channel.

-

Implementations§

source§

impl<T> AsyncChannelProgressSender<T>

source

pub fn new(sender: Sender<T>) -> AsyncChannelProgressSender<T>

Create a new progress sender from an async channel sender.

-
source

pub fn same_channel(&self, other: &AsyncChannelProgressSender<T>) -> bool

Returns true if other sends on the same async_channel channel as self.

-

Trait Implementations§

source§

impl<T> Clone for AsyncChannelProgressSender<T>

source§

fn clone(&self) -> AsyncChannelProgressSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for AsyncChannelProgressSender<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> IdGenerator for AsyncChannelProgressSender<T>

source§

fn new_id(&self) -> u64

Get a new unique id
source§

impl<T> ProgressSender for AsyncChannelProgressSender<T>
where - T: Send + Sync + 'static,

§

type Msg = T

The message being sent.
source§

async fn send( +AsyncChannelProgressSender in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::AsyncChannelProgressSender

pub struct AsyncChannelProgressSender<T> { /* private fields */ }
Expand description

A progress sender that uses an async channel.

+

Implementations§

§

impl<T> AsyncChannelProgressSender<T>

pub fn new(sender: Sender<T>) -> AsyncChannelProgressSender<T>

Create a new progress sender from an async channel sender.

+

pub fn same_channel(&self, other: &AsyncChannelProgressSender<T>) -> bool

Returns true if other sends on the same async_channel channel as self.

+

Trait Implementations§

§

impl<T> Clone for AsyncChannelProgressSender<T>

§

fn clone(&self) -> AsyncChannelProgressSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<T> Debug for AsyncChannelProgressSender<T>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> IdGenerator for AsyncChannelProgressSender<T>

§

fn new_id(&self) -> u64

Get a new unique id
§

impl<T> ProgressSender for AsyncChannelProgressSender<T>
where + T: Send + Sync + 'static,

§

type Msg = T

The message being sent.
§

async fn send( &self, msg: <AsyncChannelProgressSender<T> as ProgressSender>::Msg -) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
source§

fn try_send( +) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
§

fn try_send( &self, msg: <AsyncChannelProgressSender<T> as ProgressSender>::Msg -) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
source§

fn blocking_send( +) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
§

fn blocking_send( &self, msg: <AsyncChannelProgressSender<T> as ProgressSender>::Msg -) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
source§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>

Send a message and block if the receiver is full. Read more
§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
source§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where + F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.
source§

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where + F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.
§

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where Self: IdGenerator,

Create a boxed progress sender to get rid of the concrete type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/pr/2610/docs/iroh/blobs/util/progress/struct.BoxedProgressSender.html b/pr/2610/docs/iroh/blobs/util/progress/struct.BoxedProgressSender.html index b039a165fb..93c83fbc6e 100644 --- a/pr/2610/docs/iroh/blobs/util/progress/struct.BoxedProgressSender.html +++ b/pr/2610/docs/iroh/blobs/util/progress/struct.BoxedProgressSender.html @@ -1,11 +1,11 @@ -BoxedProgressSender in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::BoxedProgressSender

source ·
pub struct BoxedProgressSender<T>(/* private fields */);
Expand description

A boxed progress sender

-

Trait Implementations§

source§

impl<T> Clone for BoxedProgressSender<T>

source§

fn clone(&self) -> BoxedProgressSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for BoxedProgressSender<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> IdGenerator for BoxedProgressSender<T>
where - T: Send + Sync + 'static,

source§

fn new_id(&self) -> u64

Get a new unique id
source§

impl<T> ProgressSender for BoxedProgressSender<T>
where - T: Send + Sync + 'static,

§

type Msg = T

The message being sent.
source§

async fn send(&self, msg: T) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
source§

fn try_send(&self, msg: T) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
source§

fn blocking_send(&self, msg: T) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
source§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where +BoxedProgressSender in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::BoxedProgressSender

pub struct BoxedProgressSender<T>(/* private fields */);
Expand description

A boxed progress sender

+

Trait Implementations§

§

impl<T> Clone for BoxedProgressSender<T>

§

fn clone(&self) -> BoxedProgressSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<T> Debug for BoxedProgressSender<T>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> IdGenerator for BoxedProgressSender<T>
where + T: Send + Sync + 'static,

§

fn new_id(&self) -> u64

Get a new unique id
§

impl<T> ProgressSender for BoxedProgressSender<T>
where + T: Send + Sync + 'static,

§

type Msg = T

The message being sent.
§

async fn send(&self, msg: T) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
§

fn try_send(&self, msg: T) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
§

fn blocking_send(&self, msg: T) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
source§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where + F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.
source§

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where + F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.
§

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where Self: IdGenerator,

Create a boxed progress sender to get rid of the concrete type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/util/progress/struct.FallibleProgressSliceWriter.html b/pr/2610/docs/iroh/blobs/util/progress/struct.FallibleProgressSliceWriter.html index 7247f050b1..18b9a36652 100644 --- a/pr/2610/docs/iroh/blobs/util/progress/struct.FallibleProgressSliceWriter.html +++ b/pr/2610/docs/iroh/blobs/util/progress/struct.FallibleProgressSliceWriter.html @@ -1,23 +1,23 @@ -FallibleProgressSliceWriter in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::FallibleProgressSliceWriter

source ·
pub struct FallibleProgressSliceWriter<W, F>(/* private fields */);
Expand description

A slice writer that adds a fallible progress callback.

+FallibleProgressSliceWriter in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::FallibleProgressSliceWriter

pub struct FallibleProgressSliceWriter<W, F>(/* private fields */);
Expand description

A slice writer that adds a fallible progress callback.

This wraps any AsyncSliceWriter, passes through all operations to the inner writer, and calls the passed on_write callback whenever data is written. on_write must return an io::Result, and can abort the download by returning an error.

-

Implementations§

source§

impl<W, F> FallibleProgressSliceWriter<W, F>
where +

Implementations§

§

impl<W, F> FallibleProgressSliceWriter<W, F>
where W: AsyncSliceWriter, - F: Fn(u64, usize) -> Result<(), Error> + 'static,

source

pub fn new(inner: W, on_write: F) -> FallibleProgressSliceWriter<W, F>

Create a new ProgressSliceWriter from an inner writer and a progress callback

+ F: Fn(u64, usize) -> Result<(), Error> + 'static,

pub fn new(inner: W, on_write: F) -> FallibleProgressSliceWriter<W, F>

Create a new ProgressSliceWriter from an inner writer and a progress callback

The on_write function is called for each write, with the offset as the first and the length of the data as the second param. on_write must return a future which resolves to an io::Result. If on_write returns an error, the download is aborted.

-
source

pub fn into_inner(self) -> W

Return the inner writer.

-

Trait Implementations§

source§

impl<W, F> AsyncSliceWriter for FallibleProgressSliceWriter<W, F>
where +

pub fn into_inner(self) -> W

Return the inner writer.

+

Trait Implementations§

§

impl<W, F> AsyncSliceWriter for FallibleProgressSliceWriter<W, F>
where W: AsyncSliceWriter + 'static, - F: Fn(u64, usize) -> Result<(), Error> + 'static,

source§

async fn write_bytes_at( + F: Fn(u64, usize) -> Result<(), Error> + 'static,

§

async fn write_bytes_at( &mut self, offset: u64, data: Bytes -) -> Result<(), Error>

Write the entire Bytes at the given position. Read more
source§

async fn write_at(&mut self, offset: u64, data: &[u8]) -> Result<(), Error>

Write the entire slice at the given position. Read more
source§

async fn sync(&mut self) -> Result<(), Error>

Sync any buffers to the underlying storage.
source§

async fn set_len(&mut self, size: u64) -> Result<(), Error>

Set the length of the underlying storage.
source§

impl<W, F> Debug for FallibleProgressSliceWriter<W, F>
where +) -> Result<(), Error>

Write the entire Bytes at the given position. Read more
§

async fn write_at(&mut self, offset: u64, data: &[u8]) -> Result<(), Error>

Write the entire slice at the given position. Read more
§

async fn sync(&mut self) -> Result<(), Error>

Sync any buffers to the underlying storage.
§

async fn set_len(&mut self, size: u64) -> Result<(), Error>

Set the length of the underlying storage.

§

impl<W, F> Debug for FallibleProgressSliceWriter<W, F>
where W: Debug, - F: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<W, F> Freeze for FallibleProgressSliceWriter<W, F>
where + F: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<W, F> Freeze for FallibleProgressSliceWriter<W, F>
where W: Freeze, F: Freeze,

§

impl<W, F> RefUnwindSafe for FallibleProgressSliceWriter<W, F>
where W: RefUnwindSafe, diff --git a/pr/2610/docs/iroh/blobs/util/progress/struct.FlumeProgressSender.html b/pr/2610/docs/iroh/blobs/util/progress/struct.FlumeProgressSender.html index b2747ca8ef..1f8e7af8c6 100644 --- a/pr/2610/docs/iroh/blobs/util/progress/struct.FlumeProgressSender.html +++ b/pr/2610/docs/iroh/blobs/util/progress/struct.FlumeProgressSender.html @@ -1,21 +1,21 @@ -FlumeProgressSender in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::FlumeProgressSender

source ·
pub struct FlumeProgressSender<T> { /* private fields */ }
Expand description

A progress sender that uses a flume channel.

-

Implementations§

source§

impl<T> FlumeProgressSender<T>

source

pub fn new(sender: Sender<T>) -> FlumeProgressSender<T>

Create a new progress sender from a flume sender.

-
source

pub fn same_channel(&self, other: &FlumeProgressSender<T>) -> bool

Returns true if other sends on the same flume channel as self.

-

Trait Implementations§

source§

impl<T> Clone for FlumeProgressSender<T>

source§

fn clone(&self) -> FlumeProgressSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for FlumeProgressSender<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> IdGenerator for FlumeProgressSender<T>

source§

fn new_id(&self) -> u64

Get a new unique id
source§

impl<T> ProgressSender for FlumeProgressSender<T>
where - T: Send + Sync + 'static,

§

type Msg = T

The message being sent.
source§

async fn send( +FlumeProgressSender in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::FlumeProgressSender

pub struct FlumeProgressSender<T> { /* private fields */ }
Expand description

A progress sender that uses a flume channel.

+

Implementations§

§

impl<T> FlumeProgressSender<T>

pub fn new(sender: Sender<T>) -> FlumeProgressSender<T>

Create a new progress sender from a flume sender.

+

pub fn same_channel(&self, other: &FlumeProgressSender<T>) -> bool

Returns true if other sends on the same flume channel as self.

+

Trait Implementations§

§

impl<T> Clone for FlumeProgressSender<T>

§

fn clone(&self) -> FlumeProgressSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<T> Debug for FlumeProgressSender<T>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> IdGenerator for FlumeProgressSender<T>

§

fn new_id(&self) -> u64

Get a new unique id
§

impl<T> ProgressSender for FlumeProgressSender<T>
where + T: Send + Sync + 'static,

§

type Msg = T

The message being sent.
§

async fn send( &self, msg: <FlumeProgressSender<T> as ProgressSender>::Msg -) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
source§

fn try_send( +) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
§

fn try_send( &self, msg: <FlumeProgressSender<T> as ProgressSender>::Msg -) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
source§

fn blocking_send( +) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
§

fn blocking_send( &self, msg: <FlumeProgressSender<T> as ProgressSender>::Msg -) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
source§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>

Send a message and block if the receiver is full. Read more
§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
source§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where + F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.
source§

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where + F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.
§

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where Self: IdGenerator,

Create a boxed progress sender to get rid of the concrete type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/pr/2610/docs/iroh/blobs/util/progress/struct.IgnoreProgressSender.html b/pr/2610/docs/iroh/blobs/util/progress/struct.IgnoreProgressSender.html index d2ebf9bb42..ee38a58a87 100644 --- a/pr/2610/docs/iroh/blobs/util/progress/struct.IgnoreProgressSender.html +++ b/pr/2610/docs/iroh/blobs/util/progress/struct.IgnoreProgressSender.html @@ -1,10 +1,10 @@ -IgnoreProgressSender in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::IgnoreProgressSender

source ·
pub struct IgnoreProgressSender<T>(/* private fields */);
Expand description

A no-op progress sender.

-

Trait Implementations§

source§

impl<T> Clone for IgnoreProgressSender<T>

source§

fn clone(&self) -> IgnoreProgressSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for IgnoreProgressSender<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Default for IgnoreProgressSender<T>

source§

fn default() -> IgnoreProgressSender<T>

Returns the “default value” for a type. Read more
source§

impl<T> IdGenerator for IgnoreProgressSender<T>

source§

fn new_id(&self) -> u64

Get a new unique id
source§

impl<T> ProgressSender for IgnoreProgressSender<T>
where - T: Send + Sync + 'static,

§

type Msg = T

The message being sent.
source§

async fn send(&self, _msg: T) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
source§

fn try_send(&self, _msg: T) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
source§

fn blocking_send(&self, _msg: T) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
source§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where +IgnoreProgressSender in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::IgnoreProgressSender

pub struct IgnoreProgressSender<T>(/* private fields */);
Expand description

A no-op progress sender.

+

Trait Implementations§

§

impl<T> Clone for IgnoreProgressSender<T>

§

fn clone(&self) -> IgnoreProgressSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<T> Debug for IgnoreProgressSender<T>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> Default for IgnoreProgressSender<T>

§

fn default() -> IgnoreProgressSender<T>

Returns the “default value” for a type. Read more
§

impl<T> IdGenerator for IgnoreProgressSender<T>

§

fn new_id(&self) -> u64

Get a new unique id
§

impl<T> ProgressSender for IgnoreProgressSender<T>
where + T: Send + Sync + 'static,

§

type Msg = T

The message being sent.
§

async fn send(&self, _msg: T) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
§

fn try_send(&self, _msg: T) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
§

fn blocking_send(&self, _msg: T) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
source§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where + F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.
source§

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where + F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.
§

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where Self: IdGenerator,

Create a boxed progress sender to get rid of the concrete type.

Auto Trait Implementations§

§

impl<T> Freeze for IgnoreProgressSender<T>

§

impl<T> RefUnwindSafe for IgnoreProgressSender<T>
where T: RefUnwindSafe,

§

impl<T> Send for IgnoreProgressSender<T>
where T: Send,

§

impl<T> Sync for IgnoreProgressSender<T>
where diff --git a/pr/2610/docs/iroh/blobs/util/progress/struct.ProgressSliceWriter.html b/pr/2610/docs/iroh/blobs/util/progress/struct.ProgressSliceWriter.html index 1f8cd86af8..575ff381f4 100644 --- a/pr/2610/docs/iroh/blobs/util/progress/struct.ProgressSliceWriter.html +++ b/pr/2610/docs/iroh/blobs/util/progress/struct.ProgressSliceWriter.html @@ -1,21 +1,21 @@ -ProgressSliceWriter in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::ProgressSliceWriter

source ·
pub struct ProgressSliceWriter<W, F>(/* private fields */);
Expand description

A slice writer that adds a synchronous progress callback.

+ProgressSliceWriter in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::ProgressSliceWriter

pub struct ProgressSliceWriter<W, F>(/* private fields */);
Expand description

A slice writer that adds a synchronous progress callback.

This wraps any AsyncSliceWriter, passes through all operations to the inner writer, and calls the passed on_write callback whenever data is written.

-

Implementations§

source§

impl<W, F> ProgressSliceWriter<W, F>
where +

Implementations§

§

impl<W, F> ProgressSliceWriter<W, F>
where W: AsyncSliceWriter, - F: FnMut(u64),

source

pub fn new(inner: W, on_write: F) -> ProgressSliceWriter<W, F>

Create a new ProgressSliceWriter from an inner writer and a progress callback

+ F: FnMut(u64),

pub fn new(inner: W, on_write: F) -> ProgressSliceWriter<W, F>

Create a new ProgressSliceWriter from an inner writer and a progress callback

The on_write function is called for each write, with the offset as the first and the length of the data as the second param.

-
source

pub fn into_inner(self) -> W

Return the inner writer

-

Trait Implementations§

source§

impl<W, F> AsyncSliceWriter for ProgressSliceWriter<W, F>
where +

pub fn into_inner(self) -> W

Return the inner writer

+

Trait Implementations§

§

impl<W, F> AsyncSliceWriter for ProgressSliceWriter<W, F>
where W: AsyncSliceWriter + 'static, - F: FnMut(u64, usize) + 'static,

source§

async fn write_bytes_at( + F: FnMut(u64, usize) + 'static,

§

async fn write_bytes_at( &mut self, offset: u64, data: Bytes -) -> Result<(), Error>

Write the entire Bytes at the given position. Read more
source§

async fn write_at(&mut self, offset: u64, data: &[u8]) -> Result<(), Error>

Write the entire slice at the given position. Read more
source§

async fn sync(&mut self) -> Result<(), Error>

Sync any buffers to the underlying storage.
source§

async fn set_len(&mut self, size: u64) -> Result<(), Error>

Set the length of the underlying storage.
source§

impl<W, F> Debug for ProgressSliceWriter<W, F>
where +) -> Result<(), Error>

Write the entire Bytes at the given position. Read more
§

async fn write_at(&mut self, offset: u64, data: &[u8]) -> Result<(), Error>

Write the entire slice at the given position. Read more
§

async fn sync(&mut self) -> Result<(), Error>

Sync any buffers to the underlying storage.
§

async fn set_len(&mut self, size: u64) -> Result<(), Error>

Set the length of the underlying storage.

§

impl<W, F> Debug for ProgressSliceWriter<W, F>
where W: Debug, - F: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<W, F> Freeze for ProgressSliceWriter<W, F>
where + F: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<W, F> Freeze for ProgressSliceWriter<W, F>
where W: Freeze, F: Freeze,

§

impl<W, F> RefUnwindSafe for ProgressSliceWriter<W, F>
where W: RefUnwindSafe, diff --git a/pr/2610/docs/iroh/blobs/util/progress/struct.WithFilterMap.html b/pr/2610/docs/iroh/blobs/util/progress/struct.WithFilterMap.html index be3e9c0b6a..c64fc6f4c0 100644 --- a/pr/2610/docs/iroh/blobs/util/progress/struct.WithFilterMap.html +++ b/pr/2610/docs/iroh/blobs/util/progress/struct.WithFilterMap.html @@ -1,18 +1,18 @@ -WithFilterMap in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::WithFilterMap

source ·
pub struct WithFilterMap<I, U, F>(/* private fields */);
Expand description

Transform the message type by filter-mapping to the type of this sender.

+WithFilterMap in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::WithFilterMap

pub struct WithFilterMap<I, U, F>(/* private fields */);
Expand description

Transform the message type by filter-mapping to the type of this sender.

See ProgressSender::with_filter_map.

-

Trait Implementations§

source§

impl<I, U, F> Clone for WithFilterMap<I, U, F>
where +

Trait Implementations§

§

impl<I, U, F> Clone for WithFilterMap<I, U, F>
where I: ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> Option<<I as ProgressSender>::Msg> + Clone + Send + Sync + 'static,

source§

fn clone(&self) -> WithFilterMap<I, U, F>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<I, U, F> Debug for WithFilterMap<I, U, F>
where + F: Fn(U) -> Option<<I as ProgressSender>::Msg> + Clone + Send + Sync + 'static,

§

fn clone(&self) -> WithFilterMap<I, U, F>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<I, U, F> Debug for WithFilterMap<I, U, F>
where I: ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> Option<<I as ProgressSender>::Msg> + Clone + Send + Sync + 'static,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<I, U, F> IdGenerator for WithFilterMap<I, U, F>
where - I: IdGenerator,

source§

fn new_id(&self) -> u64

Get a new unique id
source§

impl<I, U, F> ProgressSender for WithFilterMap<I, U, F>
where + F: Fn(U) -> Option<<I as ProgressSender>::Msg> + Clone + Send + Sync + 'static,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<I, U, F> IdGenerator for WithFilterMap<I, U, F>
where + I: IdGenerator,

§

fn new_id(&self) -> u64

Get a new unique id
§

impl<I, U, F> ProgressSender for WithFilterMap<I, U, F>
where I: ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> Option<<I as ProgressSender>::Msg> + Clone + Send + Sync + 'static,

§

type Msg = U

The message being sent.
source§

async fn send(&self, msg: U) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
source§

fn try_send(&self, msg: U) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
source§

fn blocking_send(&self, msg: U) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
source§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where + F: Fn(U) -> Option<<I as ProgressSender>::Msg> + Clone + Send + Sync + 'static,

§

type Msg = U

The message being sent.
§

async fn send(&self, msg: U) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
§

fn try_send(&self, msg: U) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
§

fn blocking_send(&self, msg: U) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
source§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where + F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where U: Send + Sync + 'static, F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.

Auto Trait Implementations§

§

impl<I, U, F> Freeze for WithFilterMap<I, U, F>
where I: Freeze, diff --git a/pr/2610/docs/iroh/blobs/util/progress/struct.WithMap.html b/pr/2610/docs/iroh/blobs/util/progress/struct.WithMap.html index ec7321213f..42573c0692 100644 --- a/pr/2610/docs/iroh/blobs/util/progress/struct.WithMap.html +++ b/pr/2610/docs/iroh/blobs/util/progress/struct.WithMap.html @@ -1,24 +1,24 @@ -WithMap in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::WithMap

source ·
pub struct WithMap<I, U, F>(/* private fields */)
+WithMap in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::WithMap

pub struct WithMap<I, U, F>(/* private fields */)
 where
     I: ProgressSender,
     U: Send + Sync + 'static,
     F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static;
Expand description

Transform the message type by mapping to the type of this sender.

See ProgressSender::with_map.

-

Trait Implementations§

source§

impl<I, U, F> Clone for WithMap<I, U, F>
where +

Trait Implementations§

§

impl<I, U, F> Clone for WithMap<I, U, F>
where I: ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

source§

fn clone(&self) -> WithMap<I, U, F>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<I, U, F> Debug for WithMap<I, U, F>
where + F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

§

fn clone(&self) -> WithMap<I, U, F>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<I, U, F> Debug for WithMap<I, U, F>
where I: ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<I, U, F> IdGenerator for WithMap<I, U, F>
where + F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<I, U, F> IdGenerator for WithMap<I, U, F>
where I: IdGenerator + ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

source§

fn new_id(&self) -> u64

Get a new unique id
source§

impl<I, U, F> ProgressSender for WithMap<I, U, F>
where + F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

§

fn new_id(&self) -> u64

Get a new unique id
§

impl<I, U, F> ProgressSender for WithMap<I, U, F>
where I: ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

§

type Msg = U

The message being sent.
source§

async fn send(&self, msg: U) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
source§

fn try_send(&self, msg: U) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
source§

fn blocking_send(&self, msg: U) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
source§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where + F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

§

type Msg = U

The message being sent.
§

async fn send(&self, msg: U) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
§

fn try_send(&self, msg: U) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
§

fn blocking_send(&self, msg: U) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
source§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where + F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where U: Send + Sync + 'static, F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.

Auto Trait Implementations§

§

impl<I, U, F> Freeze for WithMap<I, U, F>
where I: Freeze, diff --git a/pr/2610/docs/iroh/blobs/util/progress/trait.IdGenerator.html b/pr/2610/docs/iroh/blobs/util/progress/trait.IdGenerator.html index f980561436..a04c029f6c 100644 --- a/pr/2610/docs/iroh/blobs/util/progress/trait.IdGenerator.html +++ b/pr/2610/docs/iroh/blobs/util/progress/trait.IdGenerator.html @@ -1,12 +1,12 @@ -IdGenerator in iroh::blobs::util::progress - Rust

Trait iroh::blobs::util::progress::IdGenerator

source ·
pub trait IdGenerator {
+IdGenerator in iroh::blobs::util::progress - Rust

Trait iroh::blobs::util::progress::IdGenerator

pub trait IdGenerator {
     // Required method
     fn new_id(&self) -> u64;
 }
Expand description

An id generator, to be combined with a progress sender.

-

Required Methods§

source

fn new_id(&self) -> u64

Get a new unique id

-

Implementations on Foreign Types§

source§

impl<T> IdGenerator for Arc<dyn BoxableProgressSender<T>>
where - T: Send + Sync + 'static,

source§

fn new_id(&self) -> u64

Implementors§

source§

impl<I, U, F> IdGenerator for WithFilterMap<I, U, F>
where - I: IdGenerator,

source§

impl<I, U, F> IdGenerator for WithMap<I, U, F>
where +

Required Methods§

fn new_id(&self) -> u64

Get a new unique id

+

Implementations on Foreign Types§

§

impl<T> IdGenerator for Arc<dyn BoxableProgressSender<T>>
where + T: Send + Sync + 'static,

§

fn new_id(&self) -> u64

Implementors§

§

impl<I, U, F> IdGenerator for WithFilterMap<I, U, F>
where + I: IdGenerator,

§

impl<I, U, F> IdGenerator for WithMap<I, U, F>
where I: IdGenerator + ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

source§

impl<T> IdGenerator for AsyncChannelProgressSender<T>

source§

impl<T> IdGenerator for BoxedProgressSender<T>
where - T: Send + Sync + 'static,

source§

impl<T> IdGenerator for FlumeProgressSender<T>

source§

impl<T> IdGenerator for IgnoreProgressSender<T>

\ No newline at end of file + F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

§

impl<T> IdGenerator for AsyncChannelProgressSender<T>

§

impl<T> IdGenerator for BoxedProgressSender<T>
where + T: Send + Sync + 'static,

§

impl<T> IdGenerator for FlumeProgressSender<T>

§

impl<T> IdGenerator for IgnoreProgressSender<T>

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/util/progress/trait.ProgressSender.html b/pr/2610/docs/iroh/blobs/util/progress/trait.ProgressSender.html index 973176fb3b..fac66f16a0 100644 --- a/pr/2610/docs/iroh/blobs/util/progress/trait.ProgressSender.html +++ b/pr/2610/docs/iroh/blobs/util/progress/trait.ProgressSender.html @@ -1,4 +1,4 @@ -ProgressSender in iroh::blobs::util::progress - Rust

Trait iroh::blobs::util::progress::ProgressSender

source ·
pub trait ProgressSender: Debug + Clone + Send + Sync + 'static {
+ProgressSender in iroh::blobs::util::progress - Rust

Trait iroh::blobs::util::progress::ProgressSender

pub trait ProgressSender: Debug + Clone + Send + Sync + 'static {
     type Msg: Send + Sync + 'static;
 
     // Required methods
@@ -69,46 +69,46 @@ method to filter and transform the message.

They must also be thread safe, which is ensured by the Send and Sync bounds. They must also be unencumbered by lifetimes, which is ensured by the 'static bound.

A typical implementation will wrap the sender part of a channel and an id generator.

-

Required Associated Types§

source

type Msg: Send + Sync + 'static

The message being sent.

-

Required Methods§

Required Associated Types§

type Msg: Send + Sync + 'static

The message being sent.

+

Required Methods§

fn send( &self, msg: Self::Msg ) -> impl Future<Output = Result<(), ProgressSendError>> + Send

Send a message and wait if the receiver is full.

Use this to send important progress messages where delivery must be guaranteed.

-
source

fn try_send(&self, msg: Self::Msg) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full.

+

fn try_send(&self, msg: Self::Msg) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full.

Use this to send progress messages where delivery is not important, e.g. a self contained progress message.

-
source

fn blocking_send(&self, msg: Self::Msg) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full.

+

fn blocking_send(&self, msg: Self::Msg) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full.

Use this to send important progress messages where delivery must be guaranteed.

-

Provided Methods§

source

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where +

Provided Methods§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where U: Send + Sync + 'static, F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.

-
source

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where +

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where U: Send + Sync + 'static, F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.

-
source

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where +

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where Self: IdGenerator,

Create a boxed progress sender to get rid of the concrete type.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> ProgressSender for Option<T>
where - T: ProgressSender,

§

type Msg = <T as ProgressSender>::Msg

source§

async fn send( +

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<T> ProgressSender for Option<T>
where + T: ProgressSender,

source§

impl<T> ProgressSender for Arc<dyn BoxableProgressSender<T>>
where - T: Send + Sync + 'static,

§

impl<T> ProgressSender for Arc<dyn BoxableProgressSender<T>>
where + T: Send + Sync + 'static,

§

type Msg = T

§

fn send( &self, msg: T -) -> impl Future<Output = Result<(), ProgressSendError>> + Send

source§

fn try_send(&self, msg: T) -> Result<(), ProgressSendError>

source§

fn blocking_send(&self, msg: T) -> Result<(), ProgressSendError>

Implementors§

source§

impl<I, U, F> ProgressSender for WithFilterMap<I, U, F>
where +) -> impl Future<Output = Result<(), ProgressSendError>> + Send

§

fn try_send(&self, msg: T) -> Result<(), ProgressSendError>

§

fn blocking_send(&self, msg: T) -> Result<(), ProgressSendError>

Implementors§

§

impl<I, U, F> ProgressSender for WithFilterMap<I, U, F>
where I: ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> Option<<I as ProgressSender>::Msg> + Clone + Send + Sync + 'static,

§

type Msg = U

source§

impl<I, U, F> ProgressSender for WithMap<I, U, F>
where + F: Fn(U) -> Option<<I as ProgressSender>::Msg> + Clone + Send + Sync + 'static,

§

type Msg = U

§

impl<I, U, F> ProgressSender for WithMap<I, U, F>
where I: ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

§

type Msg = U

source§

impl<T> ProgressSender for AsyncChannelProgressSender<T>
where - T: Send + Sync + 'static,

§

type Msg = T

source§

impl<T> ProgressSender for BoxedProgressSender<T>
where - T: Send + Sync + 'static,

§

type Msg = T

source§

impl<T> ProgressSender for FlumeProgressSender<T>
where - T: Send + Sync + 'static,

§

type Msg = T

source§

impl<T> ProgressSender for IgnoreProgressSender<T>
where + F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

§

type Msg = U

§

impl<T> ProgressSender for AsyncChannelProgressSender<T>
where + T: Send + Sync + 'static,

§

type Msg = T

§

impl<T> ProgressSender for BoxedProgressSender<T>
where + T: Send + Sync + 'static,

§

type Msg = T

§

impl<T> ProgressSender for FlumeProgressSender<T>
where + T: Send + Sync + 'static,

§

type Msg = T

§

impl<T> ProgressSender for IgnoreProgressSender<T>
where T: Send + Sync + 'static,

§

type Msg = T

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/util/progress/type.ProgressSendResult.html b/pr/2610/docs/iroh/blobs/util/progress/type.ProgressSendResult.html index 46d0d424df..03a1985b40 100644 --- a/pr/2610/docs/iroh/blobs/util/progress/type.ProgressSendResult.html +++ b/pr/2610/docs/iroh/blobs/util/progress/type.ProgressSendResult.html @@ -1,4 +1,4 @@ -ProgressSendResult in iroh::blobs::util::progress - Rust

Type Alias iroh::blobs::util::progress::ProgressSendResult

source ·
pub type ProgressSendResult<T> = Result<T, ProgressSendError>;
Expand description

A result type for progress sending.

+ProgressSendResult in iroh::blobs::util::progress - Rust

Type Alias iroh::blobs::util::progress::ProgressSendResult

pub type ProgressSendResult<T> = Result<T, ProgressSendError>;
Expand description

A result type for progress sending.

Aliased Type§

enum ProgressSendResult<T> {
     Ok(T),
     Err(ProgressSendError),
diff --git a/pr/2610/docs/iroh/blobs/util/struct.SparseMemFile.html b/pr/2610/docs/iroh/blobs/util/struct.SparseMemFile.html
index 10ee638236..8a71526fbb 100644
--- a/pr/2610/docs/iroh/blobs/util/struct.SparseMemFile.html
+++ b/pr/2610/docs/iroh/blobs/util/struct.SparseMemFile.html
@@ -1,10 +1,10 @@
-SparseMemFile in iroh::blobs::util - Rust

Struct iroh::blobs::util::SparseMemFile

source ·
pub struct SparseMemFile { /* private fields */ }
Expand description

A file that is sparse in memory

+SparseMemFile in iroh::blobs::util - Rust

Struct iroh::blobs::util::SparseMemFile

pub struct SparseMemFile { /* private fields */ }
Expand description

A file that is sparse in memory

It is not actually using sparse storage to make reading faster, so it will not conserve memory. It is just a way to remember the gaps so we can write it to a file in a sparse way later.

-

Implementations§

source§

impl SparseMemFile

source

pub fn new() -> SparseMemFile

Create a new, empty SparseMemFile

-
source

pub fn into_parts(self) -> (Vec<u8>, RangeSet<[usize; 2]>)

Get the data and the valid ranges

-
source

pub fn persist(&self, target: impl WriteAt) -> Result<(), Error>

Persist the SparseMemFile to a WriteAt

+

Implementations§

§

impl SparseMemFile

pub fn new() -> SparseMemFile

Create a new, empty SparseMemFile

+

pub fn into_parts(self) -> (Vec<u8>, RangeSet<[usize; 2]>)

Get the data and the valid ranges

+

pub fn persist(&self, target: impl WriteAt) -> Result<(), Error>

Persist the SparseMemFile to a WriteAt

This will not persist the gaps, only the data that was written.

Methods from Deref<Target = [u8]>§

source

pub fn as_str(&self) -> &str

🔬This is a nightly-only experimental API. (ascii_char)

Views this slice of ASCII characters as a UTF-8 str.

source

pub fn as_bytes(&self) -> &[u8] ⓘ

🔬This is a nightly-only experimental API. (ascii_char)

Views this slice of ASCII characters as a slice of u8 bytes.

@@ -1110,9 +1110,9 @@ given separator between each.

§Examples
assert_eq!(["hello", "world"].connect(" "), "hello world");
 assert_eq!([[1, 2], [3, 4]].connect(&0), [1, 2, 0, 3, 4]);
-

Trait Implementations§

source§

impl AsRef<[u8]> for SparseMemFile

source§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Debug for SparseMemFile

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for SparseMemFile

source§

fn default() -> SparseMemFile

Returns the “default value” for a type. Read more
source§

impl Deref for SparseMemFile

§

type Target = [u8]

The resulting type after dereferencing.
source§

fn deref(&self) -> &<SparseMemFile as Deref>::Target

Dereferences the value.
source§

impl From<Vec<u8>> for SparseMemFile

source§

fn from(data: Vec<u8>) -> SparseMemFile

Converts to this type from the input type.
source§

impl ReadAt for SparseMemFile

source§

fn read_at(&self, offset: u64, buf: &mut [u8]) -> Result<usize, Error>

Reads bytes from an offset in this source into a buffer, returning how -many bytes were read. Read more
source§

fn read_exact_at(&self, pos: u64, buf: &mut [u8]) -> Result<(), Error>

Reads the exact number of bytes required to fill buf from an offset. Read more
source§

impl Size for SparseMemFile

source§

fn size(&self) -> Result<Option<u64>, Error>

Get the size of this object, in bytes. Read more
source§

impl TryInto<Vec<u8>> for SparseMemFile

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Vec<u8>, <SparseMemFile as TryInto<Vec<u8>>>::Error>

Performs the conversion.
source§

impl WriteAt for SparseMemFile

source§

fn write_at(&mut self, offset: u64, buf: &[u8]) -> Result<usize, Error>

Writes bytes from a buffer to an offset, returning the number of bytes -written. Read more
source§

fn flush(&mut self) -> Result<(), Error>

Flush this writer, ensuring that any intermediately buffered data +

Trait Implementations§

§

impl AsRef<[u8]> for SparseMemFile

§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Debug for SparseMemFile

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for SparseMemFile

§

fn default() -> SparseMemFile

Returns the “default value” for a type. Read more
§

impl Deref for SparseMemFile

§

type Target = [u8]

The resulting type after dereferencing.
§

fn deref(&self) -> &<SparseMemFile as Deref>::Target

Dereferences the value.
§

impl From<Vec<u8>> for SparseMemFile

§

fn from(data: Vec<u8>) -> SparseMemFile

Converts to this type from the input type.
§

impl ReadAt for SparseMemFile

§

fn read_at(&self, offset: u64, buf: &mut [u8]) -> Result<usize, Error>

Reads bytes from an offset in this source into a buffer, returning how +many bytes were read. Read more
source§

fn read_exact_at(&self, pos: u64, buf: &mut [u8]) -> Result<(), Error>

Reads the exact number of bytes required to fill buf from an offset. Read more
§

impl Size for SparseMemFile

§

fn size(&self) -> Result<Option<u64>, Error>

Get the size of this object, in bytes. Read more
§

impl TryInto<Vec<u8>> for SparseMemFile

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<Vec<u8>, <SparseMemFile as TryInto<Vec<u8>>>::Error>

Performs the conversion.
§

impl WriteAt for SparseMemFile

§

fn write_at(&mut self, offset: u64, buf: &[u8]) -> Result<usize, Error>

Writes bytes from a buffer to an offset, returning the number of bytes +written. Read more
§

fn flush(&mut self) -> Result<(), Error>

Flush this writer, ensuring that any intermediately buffered data reaches its destination. Read more
source§

fn write_all_at(&mut self, pos: u64, buf: &[u8]) -> Result<(), Error>

Writes a complete buffer at an offset. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<A, T> AsBits<T> for A
where A: AsRef<[T]>, diff --git a/pr/2610/docs/iroh/blobs/util/struct.Tag.html b/pr/2610/docs/iroh/blobs/util/struct.Tag.html index 471b744f31..42a8a10e42 100644 --- a/pr/2610/docs/iroh/blobs/util/struct.Tag.html +++ b/pr/2610/docs/iroh/blobs/util/struct.Tag.html @@ -1,32 +1,32 @@ -Tag in iroh::blobs::util - Rust

Struct iroh::blobs::util::Tag

source ·
pub struct Tag(pub Bytes);
Expand description

A tag

-

Tuple Fields§

§0: Bytes

Implementations§

source§

impl Tag

source

pub fn auto(time: SystemTime, exists: impl Fn(&[u8]) -> bool) -> Tag

Create a new tag that does not exist yet.

-

Trait Implementations§

source§

impl Borrow<[u8]> for Tag

source§

fn borrow(&self) -> &[u8] ⓘ

Immutably borrows from an owned value. Read more
source§

impl Clone for Tag

source§

fn clone(&self) -> Tag

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Tag

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Tag

source§

fn deserialize<__D>( +Tag in iroh::blobs::util - Rust

Struct iroh::blobs::util::Tag

pub struct Tag(pub Bytes);
Expand description

A tag

+

Tuple Fields§

§0: Bytes

Implementations§

§

impl Tag

pub fn auto(time: SystemTime, exists: impl Fn(&[u8]) -> bool) -> Tag

Create a new tag that does not exist yet.

+

Trait Implementations§

§

impl Borrow<[u8]> for Tag

§

fn borrow(&self) -> &[u8] ⓘ

Immutably borrows from an owned value. Read more
§

impl Clone for Tag

§

fn clone(&self) -> Tag

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Tag

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Tag

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Tag, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Tag

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<&str> for Tag

source§

fn from(value: &str) -> Tag

Converts to this type from the input type.
source§

impl From<Bytes> for Tag

source§

fn from(value: Bytes) -> Tag

Converts to this type from the input type.
source§

impl From<String> for Tag

source§

fn from(value: String) -> Tag

Converts to this type from the input type.
source§

impl Key for Tag

source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
source§

impl Ord for Tag

source§

fn cmp(&self, other: &Tag) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for Tag

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<&str> for Tag

§

fn from(value: &str) -> Tag

Converts to this type from the input type.
§

impl From<Bytes> for Tag

§

fn from(value: Bytes) -> Tag

Converts to this type from the input type.
§

impl From<String> for Tag

§

fn from(value: String) -> Tag

Converts to this type from the input type.
§

impl Key for Tag

§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
§

impl Ord for Tag

§

fn cmp(&self, other: &Tag) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Tag

source§

fn eq(&self, other: &Tag) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for Tag

§

fn eq(&self, other: &Tag) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Tag

source§

fn partial_cmp(&self, other: &Tag) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
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 <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for Tag

§

fn partial_cmp(&self, other: &Tag) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl RedbKey for Tag

source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
source§

impl RedbValue for Tag

§

type SelfType<'a> = Tag

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = Bytes

source§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
source§

fn from_bytes<'a>(data: &'a [u8]) -> <Tag as RedbValue>::SelfType<'a>
where +operator. Read more

§

impl RedbKey for Tag

§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
§

impl RedbValue for Tag

§

type SelfType<'a> = Tag

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = Bytes

§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
§

fn from_bytes<'a>(data: &'a [u8]) -> <Tag as RedbValue>::SelfType<'a>
where Tag: 'a,

Deserializes data -Implementations may return a view over data, or an owned type
source§

fn as_bytes<'a, 'b>( +Implementations may return a view over data, or an owned type

§

fn as_bytes<'a, 'b>( value: &'a <Tag as RedbValue>::SelfType<'b> ) -> <Tag as RedbValue>::AsBytes<'a>
where 'b: 'a, - Tag: 'a + 'b,

Serialize the value to a slice
source§

fn type_name() -> TypeName

Globally unique identifier for this type

source§

impl Serialize for Tag

source§

fn serialize<__S>( + Tag: 'a + 'b,

Serialize the value to a slice
§

fn type_name() -> TypeName

Globally unique identifier for this type

§

impl Serialize for Tag

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Value for Tag

§

type SelfType<'a> = Tag

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = Bytes

source§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
source§

fn from_bytes<'a>(data: &'a [u8]) -> <Tag as Value>::SelfType<'a>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Value for Tag

§

type SelfType<'a> = Tag

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = Bytes

§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
§

fn from_bytes<'a>(data: &'a [u8]) -> <Tag as Value>::SelfType<'a>
where Tag: 'a,

Deserializes data -Implementations may return a view over data, or an owned type
source§

fn as_bytes<'a, 'b>( +Implementations may return a view over data, or an owned type

§

fn as_bytes<'a, 'b>( value: &'a <Tag as Value>::SelfType<'b> ) -> <Tag as Value>::AsBytes<'a>
where 'b: 'a, - Tag: 'a + 'b,

Serialize the value to a slice
source§

fn type_name() -> TypeName

Globally unique identifier for this type

source§

impl Eq for Tag

source§

impl StructuralPartialEq for Tag

Auto Trait Implementations§

§

impl !Freeze for Tag

§

impl RefUnwindSafe for Tag

§

impl Send for Tag

§

impl Sync for Tag

§

impl Unpin for Tag

§

impl UnwindSafe for Tag

Blanket Implementations§

source§

impl<T> Any for T
where + Tag: 'a + 'b,

Serialize the value to a slice
§

fn type_name() -> TypeName

Globally unique identifier for this type

§

impl Eq for Tag

§

impl StructuralPartialEq for Tag

Auto Trait Implementations§

§

impl !Freeze for Tag

§

impl RefUnwindSafe for Tag

§

impl Send for Tag

§

impl Sync for Tag

§

impl Unpin for Tag

§

impl UnwindSafe for Tag

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/util/struct.TempTag.html b/pr/2610/docs/iroh/blobs/util/struct.TempTag.html index 1ca9615bcd..a5baafd4fd 100644 --- a/pr/2610/docs/iroh/blobs/util/struct.TempTag.html +++ b/pr/2610/docs/iroh/blobs/util/struct.TempTag.html @@ -1,16 +1,16 @@ -TempTag in iroh::blobs::util - Rust

Struct iroh::blobs::util::TempTag

source ·
pub struct TempTag { /* private fields */ }
Expand description

A hash and format pair that is protected from garbage collection.

+TempTag in iroh::blobs::util - Rust

Struct iroh::blobs::util::TempTag

pub struct TempTag { /* private fields */ }
Expand description

A hash and format pair that is protected from garbage collection.

If format is raw, this will protect just the blob If format is collection, this will protect the collection and all blobs in it

-

Implementations§

source§

impl TempTag

source

pub fn new(inner: HashAndFormat, on_drop: Option<Weak<dyn TagDrop>>) -> TempTag

Create a new temp tag for the given hash and format

+

Implementations§

§

impl TempTag

pub fn new(inner: HashAndFormat, on_drop: Option<Weak<dyn TagDrop>>) -> TempTag

Create a new temp tag for the given hash and format

This should only be used by store implementations.

The caller is responsible for increasing the refcount on creation and to make sure that temp tags that are created between a mark phase and a sweep phase are protected.

-
source

pub fn inner(&self) -> &HashAndFormat

The hash of the pinned item

-
source

pub fn hash(&self) -> &Hash

The hash of the pinned item

-
source

pub fn format(&self) -> BlobFormat

The format of the pinned item

-
source

pub fn leak(self)

Keep the item alive until the end of the process

-

Trait Implementations§

source§

impl Debug for TempTag

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Drop for TempTag

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

pub fn inner(&self) -> &HashAndFormat

The hash of the pinned item

+

pub fn hash(&self) -> &Hash

The hash of the pinned item

+

pub fn format(&self) -> BlobFormat

The format of the pinned item

+

pub fn leak(self)

Keep the item alive until the end of the process

+

Trait Implementations§

§

impl Debug for TempTag

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Drop for TempTag

§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/blobs/util/trait.TagCounter.html b/pr/2610/docs/iroh/blobs/util/trait.TagCounter.html index 604024ec59..ce3fa2f89c 100644 --- a/pr/2610/docs/iroh/blobs/util/trait.TagCounter.html +++ b/pr/2610/docs/iroh/blobs/util/trait.TagCounter.html @@ -1,4 +1,4 @@ -TagCounter in iroh::blobs::util - Rust

Trait iroh::blobs::util::TagCounter

source ·
pub trait TagCounter: Sized + TagDrop {
+TagCounter in iroh::blobs::util - Rust

Trait iroh::blobs::util::TagCounter

pub trait TagCounter: Sized + TagDrop {
     // Required method
     fn on_create(&self, inner: &HashAndFormat);
 
@@ -11,7 +11,7 @@ blob or collection.

It is important to include the format in the liveness tracking, since protecting a collection means protecting the blob and all its children, whereas protecting a raw blob only protects the blob itself.

-

Required Methods§

source

fn on_create(&self, inner: &HashAndFormat)

Called on creation of a temp tag

-

Provided Methods§

source

fn as_weak(self: &Arc<Self>) -> Weak<dyn TagDrop>

Get this as a weak reference for use in temp tags

-
source

fn temp_tag(self: &Arc<Self>, inner: HashAndFormat) -> TempTag

Create a new temp tag for the given hash and format

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TagCounter for RwLock<TempCounterMap>

source§

fn on_create(&self, content: &HashAndFormat)

Implementors§

\ No newline at end of file +

Required Methods§

fn on_create(&self, inner: &HashAndFormat)

Called on creation of a temp tag

+

Provided Methods§

fn as_weak(self: &Arc<Self>) -> Weak<dyn TagDrop>

Get this as a weak reference for use in temp tags

+

fn temp_tag(self: &Arc<Self>, inner: HashAndFormat) -> TempTag

Create a new temp tag for the given hash and format

+

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl TagCounter for RwLock<TempCounterMap>

§

fn on_create(&self, content: &HashAndFormat)

Implementors§

\ No newline at end of file diff --git a/pr/2610/docs/iroh/blobs/util/trait.TagDrop.html b/pr/2610/docs/iroh/blobs/util/trait.TagDrop.html index 2a5b24f93e..b072d9c638 100644 --- a/pr/2610/docs/iroh/blobs/util/trait.TagDrop.html +++ b/pr/2610/docs/iroh/blobs/util/trait.TagDrop.html @@ -1,7 +1,7 @@ -TagDrop in iroh::blobs::util - Rust

Trait iroh::blobs::util::TagDrop

source ·
pub trait TagDrop: Debug + Send + Sync + 'static {
+TagDrop in iroh::blobs::util - Rust

Trait iroh::blobs::util::TagDrop

pub trait TagDrop: Debug + Send + Sync + 'static {
     // Required method
     fn on_drop(&self, inner: &HashAndFormat);
 }
Expand description

Trait used from temp tags to notify an abstract store that a temp tag is being dropped.

-

Required Methods§

source

fn on_drop(&self, inner: &HashAndFormat)

Called on drop

-

Implementations on Foreign Types§

source§

impl TagDrop for RwLock<TempCounterMap>

source§

fn on_drop(&self, content: &HashAndFormat)

Implementors§

\ No newline at end of file +

Required Methods§

fn on_drop(&self, inner: &HashAndFormat)

Called on drop

+

Implementations on Foreign Types§

§

impl TagDrop for RwLock<TempCounterMap>

§

fn on_drop(&self, content: &HashAndFormat)

Implementors§

\ No newline at end of file diff --git a/pr/2610/docs/iroh/net/dialer/struct.Dialer.html b/pr/2610/docs/iroh/net/dialer/struct.Dialer.html index c0dc32d230..708d7d3f18 100644 --- a/pr/2610/docs/iroh/net/dialer/struct.Dialer.html +++ b/pr/2610/docs/iroh/net/dialer/struct.Dialer.html @@ -12,7 +12,7 @@ pending connect futures and emits finished connect results.

source

pub async fn next_conn(&mut self) -> (PublicKey, Result<Connection, Error>)

Waits for the next dial operation to complete.

source

pub fn pending_count(&self) -> usize

Number of pending connections to be opened.

source

pub fn endpoint(&self) -> &Endpoint

Returns a reference to the endpoint used in this dialer.

-

Trait Implementations§

source§

impl Debug for Dialer

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Dialer for Dialer

§

type Connection = Connection

Type of connections returned by the Dialer.
source§

fn queue_dial(&mut self, node_id: PublicKey)

Dial a node.
source§

fn pending_count(&self) -> usize

Get the number of dialing nodes.
source§

fn is_pending(&self, node: PublicKey) -> bool

Check if a node is being dialed.
source§

fn node_id(&self) -> PublicKey

Get the node id of our node.
source§

impl Stream for Dialer

§

type Item = (PublicKey, Result<Connection, Error>)

Values yielded by the stream.
source§

fn poll_next( +

Trait Implementations§

source§

impl Debug for Dialer

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Dialer for Dialer

§

type Connection = Connection

Type of connections returned by the Dialer.
§

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.
§

fn node_id(&self) -> PublicKey

Get the node id of our node.
source§

impl Stream for Dialer

§

type Item = (PublicKey, Result<Connection, Error>)

Values yielded by the stream.
source§

fn poll_next( self: Pin<&mut Dialer>, cx: &mut Context<'_> ) -> Poll<Option<<Dialer as Stream>::Item>>

Attempt to pull out the next value of this stream, registering the diff --git a/pr/2610/docs/iroh/net/endpoint/enum.ConnectionError.html b/pr/2610/docs/iroh/net/endpoint/enum.ConnectionError.html index c7c47fe412..c76494de90 100644 --- a/pr/2610/docs/iroh/net/endpoint/enum.ConnectionError.html +++ b/pr/2610/docs/iroh/net/endpoint/enum.ConnectionError.html @@ -17,7 +17,7 @@ period even if the peer is still reachable. See also TransportConfig::max_idle_timeout() and TransportConfig::keep_alive_interval().

§

LocallyClosed

The local application closed the connection

-

Trait Implementations§

§

impl Clone for ConnectionError

§

fn clone(&self) -> ConnectionError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ConnectionError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ConnectionError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ConnectionError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<Close> for ConnectionError

§

fn from(x: Close) -> ConnectionError

Converts to this type from the input type.
source§

impl From<ConnectionError> for GetError

source§

fn from(value: ConnectionError) -> GetError

Converts to this type from the input type.
source§

impl From<ConnectionError> for GetResponseError

source§

fn from(source: ConnectionError) -> GetResponseError

Converts to this type from the input type.
§

impl From<ConnectionError> for ReadError

§

fn from(source: ConnectionError) -> ReadError

Converts to this type from the input type.
§

impl From<ConnectionError> for WriteError

§

fn from(source: ConnectionError) -> WriteError

Converts to this type from the input type.
§

impl From<Error> for ConnectionError

§

fn from(source: Error) -> ConnectionError

Converts to this type from the input type.
§

impl PartialEq for ConnectionError

§

fn eq(&self, other: &ConnectionError) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for ConnectionError

§

fn clone(&self) -> ConnectionError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ConnectionError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ConnectionError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ConnectionError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<Close> for ConnectionError

§

fn from(x: Close) -> ConnectionError

Converts to this type from the input type.
§

impl From<ConnectionError> for GetError

§

fn from(value: ConnectionError) -> GetError

Converts to this type from the input type.
§

impl From<ConnectionError> for GetResponseError

§

fn from(source: ConnectionError) -> GetResponseError

Converts to this type from the input type.
§

impl From<ConnectionError> for ReadError

§

fn from(source: ConnectionError) -> ReadError

Converts to this type from the input type.
§

impl From<ConnectionError> for WriteError

§

fn from(source: ConnectionError) -> WriteError

Converts to this type from the input type.
§

impl From<Error> for ConnectionError

§

fn from(source: Error) -> ConnectionError

Converts to this type from the input type.
§

impl PartialEq for ConnectionError

§

fn eq(&self, other: &ConnectionError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for ConnectionError

§

impl StructuralPartialEq for ConnectionError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/net/endpoint/enum.ReadError.html b/pr/2610/docs/iroh/net/endpoint/enum.ReadError.html index 1791c20785..fc0aabd4e1 100644 --- a/pr/2610/docs/iroh/net/endpoint/enum.ReadError.html +++ b/pr/2610/docs/iroh/net/endpoint/enum.ReadError.html @@ -15,7 +15,7 @@ stream which cannot be recovered, making further ordered reads impossible.

§

ZeroRttRejected

This was a 0-RTT stream and the server rejected it

Can only occur on clients for 0-RTT streams, which can be opened using Connecting::into_0rtt().

-

Trait Implementations§

§

impl Clone for ReadError

§

fn clone(&self) -> ReadError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ReadError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ReadError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ReadError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<ConnectionError> for ReadError

§

fn from(source: ConnectionError) -> ReadError

Converts to this type from the input type.
source§

impl From<ReadError> for GetError

source§

fn from(value: ReadError) -> GetError

Converts to this type from the input type.
source§

impl From<ReadError> for GetResponseError

source§

fn from(source: ReadError) -> GetResponseError

Converts to this type from the input type.
§

impl From<ReadableError> for ReadError

§

fn from(e: ReadableError) -> ReadError

Converts to this type from the input type.
§

impl PartialEq for ReadError

§

fn eq(&self, other: &ReadError) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for ReadError

§

fn clone(&self) -> ReadError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ReadError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ReadError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ReadError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<ConnectionError> for ReadError

§

fn from(source: ConnectionError) -> ReadError

Converts to this type from the input type.
§

impl From<ReadError> for GetError

§

fn from(value: ReadError) -> GetError

Converts to this type from the input type.
§

impl From<ReadError> for GetResponseError

§

fn from(source: ReadError) -> GetResponseError

Converts to this type from the input type.
§

impl From<ReadableError> for ReadError

§

fn from(e: ReadableError) -> ReadError

Converts to this type from the input type.
§

impl PartialEq for ReadError

§

fn eq(&self, other: &ReadError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for ReadError

§

impl StructuralPartialEq for ReadError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/net/endpoint/enum.WriteError.html b/pr/2610/docs/iroh/net/endpoint/enum.WriteError.html index b43e4cfb28..d25b6d1927 100644 --- a/pr/2610/docs/iroh/net/endpoint/enum.WriteError.html +++ b/pr/2610/docs/iroh/net/endpoint/enum.WriteError.html @@ -11,7 +11,7 @@
§

ZeroRttRejected

This was a 0-RTT stream and the server rejected it

Can only occur on clients for 0-RTT streams, which can be opened using Connecting::into_0rtt().

-

Trait Implementations§

§

impl Clone for WriteError

§

fn clone(&self) -> WriteError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for WriteError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for WriteError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for WriteError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<ConnectionError> for WriteError

§

fn from(source: ConnectionError) -> WriteError

Converts to this type from the input type.
source§

impl From<WriteError> for ConnectedNextError

source§

fn from(source: WriteError) -> ConnectedNextError

Converts to this type from the input type.
source§

impl From<WriteError> for GetError

source§

fn from(value: WriteError) -> GetError

Converts to this type from the input type.
source§

impl From<WriteError> for GetResponseError

source§

fn from(source: WriteError) -> GetResponseError

Converts to this type from the input type.
§

impl PartialEq for WriteError

§

fn eq(&self, other: &WriteError) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for WriteError

§

fn clone(&self) -> WriteError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for WriteError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for WriteError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for WriteError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<ConnectionError> for WriteError

§

fn from(source: ConnectionError) -> WriteError

Converts to this type from the input type.
§

impl From<WriteError> for ConnectedNextError

§

fn from(source: WriteError) -> ConnectedNextError

Converts to this type from the input type.
§

impl From<WriteError> for GetError

§

fn from(value: WriteError) -> GetError

Converts to this type from the input type.
§

impl From<WriteError> for GetResponseError

§

fn from(source: WriteError) -> GetResponseError

Converts to this type from the input type.
§

impl PartialEq for WriteError

§

fn eq(&self, other: &WriteError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for WriteError

§

impl StructuralPartialEq for WriteError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh/net/endpoint/struct.Connection.html b/pr/2610/docs/iroh/net/endpoint/struct.Connection.html index 1ab58de5b8..bf05884c89 100644 --- a/pr/2610/docs/iroh/net/endpoint/struct.Connection.html +++ b/pr/2610/docs/iroh/net/endpoint/struct.Connection.html @@ -90,7 +90,7 @@ strong and pseudorandom, and are suitable for use as keying material.

pub fn set_max_concurrent_bi_streams(&self, count: VarInt)

Modify the number of remotely initiated bidirectional streams that may be concurrently open

No streams may be opened by the peer unless fewer than count are already open. Large counts increase both minimum and worst-case memory consumption.

-

Trait Implementations§

§

impl Clone for Connection

§

fn clone(&self) -> Connection

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Connection

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl NeedsConn<Connection> for GetStateNeedsConn

Trait Implementations§

§

impl Clone for Connection

§

fn clone(&self) -> Connection

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Connection

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl NeedsConn<Connection> for GetStateNeedsConn

§

fn proceed( self, conn: Connection ) -> Pin<Box<dyn Future<Output = Result<Stats, FailureAction>>>>

Proceeds the download with the given connection.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/pr/2610/docs/iroh/net/endpoint/struct.NodeInfo.html b/pr/2610/docs/iroh/net/endpoint/struct.NodeInfo.html index 53dc751ece..acbabc06ad 100644 --- a/pr/2610/docs/iroh/net/endpoint/struct.NodeInfo.html +++ b/pr/2610/docs/iroh/net/endpoint/struct.NodeInfo.html @@ -19,7 +19,7 @@ remote node might be.

§latency: Option<Duration>

The latency of the current network path to the remote node.

§last_used: Option<Duration>

Time elapsed time since last sending to, or received from the node.

This is the duration since any data was sent or receive from the remote node, -payload or control messsages. Note that sending to the remote node does not imply +payload or control messages. Note that sending to the remote node does not imply the remote node received anything.

Implementations§

source§

impl NodeInfo

source

pub fn last_received(&self) -> Option<Duration>

👎Deprecated since 0.23.0: this is broken

Get the duration since the last activity we received from this endpoint on any of its direct addresses.

diff --git a/pr/2610/docs/iroh/net/endpoint/struct.VarInt.html b/pr/2610/docs/iroh/net/endpoint/struct.VarInt.html index 225b6b1a0e..101e5d41e4 100644 --- a/pr/2610/docs/iroh/net/endpoint/struct.VarInt.html +++ b/pr/2610/docs/iroh/net/endpoint/struct.VarInt.html @@ -8,7 +8,7 @@
§Safety

x must be less than 2^62.

pub const fn into_inner(self) -> u64

Extract the integer value

-

Trait Implementations§

§

impl Clone for VarInt

§

fn clone(&self) -> VarInt

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for VarInt

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for VarInt

§

fn default() -> VarInt

Returns the “default value” for a type. Read more
§

impl Display for VarInt

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<Closed> for VarInt

source§

fn from(source: Closed) -> VarInt

Converts to this type from the input type.
§

impl From<StreamId> for VarInt

§

fn from(x: StreamId) -> VarInt

Converts to this type from the input type.
§

impl From<u16> for VarInt

§

fn from(x: u16) -> VarInt

Converts to this type from the input type.
§

impl From<u32> for VarInt

§

fn from(x: u32) -> VarInt

Converts to this type from the input type.
§

impl From<u8> for VarInt

§

fn from(x: u8) -> VarInt

Converts to this type from the input type.
§

impl Hash for VarInt

§

fn hash<__H>(&self, state: &mut __H)
where +

Trait Implementations§

§

impl Clone for VarInt

§

fn clone(&self) -> VarInt

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for VarInt

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for VarInt

§

fn default() -> VarInt

Returns the “default value” for a type. Read more
§

impl Display for VarInt

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<Closed> for VarInt

§

fn from(source: Closed) -> VarInt

Converts to this type from the input type.
§

impl From<StreamId> for VarInt

§

fn from(x: StreamId) -> VarInt

Converts to this type from the input type.
§

impl From<u16> for VarInt

§

fn from(x: u16) -> VarInt

Converts to this type from the input type.
§

impl From<u32> for VarInt

§

fn from(x: u32) -> VarInt

Converts to this type from the input type.
§

impl From<u8> for VarInt

§

fn from(x: u8) -> VarInt

Converts to this type from the input type.
§

impl Hash for VarInt

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for VarInt

§

fn cmp(&self, other: &VarInt) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where @@ -18,7 +18,7 @@ by ==.

1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for VarInt

§

fn partial_cmp(&self, other: &VarInt) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
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
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl TryFrom<VarInt> for Closed

§

type Error = UnknownErrorCode

The type returned in the event of a conversion error.
source§

fn try_from(value: VarInt) -> Result<Closed, <Closed as TryFrom<VarInt>>::Error>

Performs the conversion.
§

impl TryFrom<u128> for VarInt

§

fn try_from(x: u128) -> Result<VarInt, VarIntBoundsExceeded>

Succeeds iff x < 2^62

+operator. Read more
§

impl TryFrom<VarInt> for Closed

§

type Error = UnknownErrorCode

The type returned in the event of a conversion error.
§

fn try_from(value: VarInt) -> Result<Closed, <Closed as TryFrom<VarInt>>::Error>

Performs the conversion.
§

impl TryFrom<u128> for VarInt

§

fn try_from(x: u128) -> Result<VarInt, VarIntBoundsExceeded>

Succeeds iff x < 2^62

§

type Error = VarIntBoundsExceeded

The type returned in the event of a conversion error.
§

impl TryFrom<u64> for VarInt

§

fn try_from(x: u64) -> Result<VarInt, VarIntBoundsExceeded>

Succeeds iff x < 2^62

§

type Error = VarIntBoundsExceeded

The type returned in the event of a conversion error.
§

impl TryFrom<usize> for VarInt

§

fn try_from(x: usize) -> Result<VarInt, VarIntBoundsExceeded>

Succeeds iff x < 2^62

§

type Error = VarIntBoundsExceeded

The type returned in the event of a conversion error.
§

impl Copy for VarInt

§

impl Eq for VarInt

§

impl StructuralPartialEq for VarInt

Auto Trait Implementations§

§

impl Freeze for VarInt

§

impl RefUnwindSafe for VarInt

§

impl Send for VarInt

§

impl Sync for VarInt

§

impl Unpin for VarInt

§

impl UnwindSafe for VarInt

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/pr/2610/docs/iroh_blobs/metrics/struct.Metrics.html b/pr/2610/docs/iroh_blobs/metrics/struct.Metrics.html index b0f6a2bbf7..ed6579be27 100644 --- a/pr/2610/docs/iroh_blobs/metrics/struct.Metrics.html +++ b/pr/2610/docs/iroh_blobs/metrics/struct.Metrics.html @@ -1,20 +1,20 @@ Metrics in iroh_blobs::metrics - Rust

Struct iroh_blobs::metrics::Metrics

source ·
pub struct Metrics {
-    pub download_bytes_total: Counter,
-    pub download_time_total: Counter,
-    pub downloads_success: Counter,
-    pub downloads_error: Counter,
-    pub downloads_notfound: Counter,
-    pub downloader_tick_main: Counter,
-    pub downloader_tick_connection_ready: Counter,
-    pub downloader_tick_message_received: Counter,
-    pub downloader_tick_transfer_completed: Counter,
-    pub downloader_tick_transfer_failed: Counter,
-    pub downloader_tick_retry_node: Counter,
-    pub downloader_tick_goodbye_node: Counter,
+    pub download_bytes_total: Counter,
+    pub download_time_total: Counter,
+    pub downloads_success: Counter,
+    pub downloads_error: Counter,
+    pub downloads_notfound: Counter,
+    pub downloader_tick_main: Counter,
+    pub downloader_tick_connection_ready: Counter,
+    pub downloader_tick_message_received: Counter,
+    pub downloader_tick_transfer_completed: Counter,
+    pub downloader_tick_transfer_failed: Counter,
+    pub downloader_tick_retry_node: Counter,
+    pub downloader_tick_goodbye_node: Counter,
 }
Expand description

Enum of metrics for the module

-

Fields§

§download_bytes_total: Counter§download_time_total: Counter§downloads_success: Counter§downloads_error: Counter§downloads_notfound: Counter§downloader_tick_main: Counter§downloader_tick_connection_ready: Counter§downloader_tick_message_received: Counter§downloader_tick_transfer_completed: Counter§downloader_tick_transfer_failed: Counter§downloader_tick_retry_node: Counter§downloader_tick_goodbye_node: Counter

Trait Implementations§

source§

impl Clone for Metrics

source§

fn clone(&self) -> Metrics

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Metrics

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Metrics

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Iterable for Metrics

source§

fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

Returns an iterator over the struct’s fields as tuples. Read more
source§

impl Metric for Metrics

source§

fn name() -> &'static str

The name of this metric group.
§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
§

fn with_metric<T, F>(f: F)
where +

Fields§

§download_bytes_total: Counter§download_time_total: Counter§downloads_success: Counter§downloads_error: Counter§downloads_notfound: Counter§downloader_tick_main: Counter§downloader_tick_connection_ready: Counter§downloader_tick_message_received: Counter§downloader_tick_transfer_completed: Counter§downloader_tick_transfer_failed: Counter§downloader_tick_retry_node: Counter§downloader_tick_goodbye_node: Counter

Trait Implementations§

source§

impl Clone for Metrics

source§

fn clone(&self) -> Metrics

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Metrics

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Metrics

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Iterable for Metrics

source§

fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

Returns an iterator over the struct’s fields as tuples. Read more
source§

impl Metric for Metrics

source§

fn name() -> &'static str

The name of this metric group.
source§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
source§

fn with_metric<T, F>(f: F)
where F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +Only records if this metric is registered in the global registry.

source§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh_docs/engine/struct.Engine.html b/pr/2610/docs/iroh_docs/engine/struct.Engine.html index 1b88a96726..2b08feba18 100644 --- a/pr/2610/docs/iroh_docs/engine/struct.Engine.html +++ b/pr/2610/docs/iroh_docs/engine/struct.Engine.html @@ -10,7 +10,7 @@ peers and a gossip swarm for each syncing document.

§default_author: Arc<DefaultAuthor>

The persistent default author for this engine.

Implementations§

source§

impl Engine

source

pub async fn spawn<B: Store>( endpoint: Endpoint, - gossip: Gossip, + gossip: Gossip, replica_store: Store, bao_store: B, downloader: Downloader, diff --git a/pr/2610/docs/iroh_docs/struct.AuthorId.html b/pr/2610/docs/iroh_docs/struct.AuthorId.html index ea34d595da..41e3b7d0a5 100644 --- a/pr/2610/docs/iroh_docs/struct.AuthorId.html +++ b/pr/2610/docs/iroh_docs/struct.AuthorId.html @@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)

Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T

source§

impl<T> RuleType for T
where T: Copy + Debug + Eq + Hash + Ord,

\ No newline at end of file diff --git a/pr/2610/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2610/docs/iroh_docs/struct.AuthorPublicKey.html index 223f3b3f5d..4cfbe555fd 100644 --- a/pr/2610/docs/iroh_docs/struct.AuthorPublicKey.html +++ b/pr/2610/docs/iroh_docs/struct.AuthorPublicKey.html @@ -148,6 +148,6 @@ builds.
Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T

source§

impl<T> RuleType for T
where T: Copy + Debug + Eq + Hash + Ord,

\ No newline at end of file diff --git a/pr/2610/docs/iroh_docs/struct.NamespaceId.html b/pr/2610/docs/iroh_docs/struct.NamespaceId.html index ca7df463f0..5fcc0bcfaa 100644 --- a/pr/2610/docs/iroh_docs/struct.NamespaceId.html +++ b/pr/2610/docs/iroh_docs/struct.NamespaceId.html @@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T

source§

impl<T> RuleType for T
where T: Copy + Debug + Eq + Hash + Ord,

\ No newline at end of file diff --git a/pr/2610/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2610/docs/iroh_docs/struct.NamespacePublicKey.html index 19de258698..ba6ca15cdf 100644 --- a/pr/2610/docs/iroh_docs/struct.NamespacePublicKey.html +++ b/pr/2610/docs/iroh_docs/struct.NamespacePublicKey.html @@ -147,6 +147,6 @@ builds.
Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T

source§

impl<T> RuleType for T
where T: Copy + Debug + Eq + Hash + Ord,

\ No newline at end of file diff --git a/pr/2610/docs/iroh_gossip/net/enum.Command.html b/pr/2610/docs/iroh_gossip/net/enum.Command.html index 600c610824..6c35c606e2 100644 --- a/pr/2610/docs/iroh_gossip/net/enum.Command.html +++ b/pr/2610/docs/iroh_gossip/net/enum.Command.html @@ -1,11 +1,11 @@ Command in iroh_gossip::net - Rust

Enum iroh_gossip::net::Command

source ·
pub enum Command {
     Broadcast(Bytes),
     BroadcastNeighbors(Bytes),
-    JoinPeers(Vec<NodeId>),
+    JoinPeers(Vec<NodeId>),
 }
Expand description

Send a gossip message

Variants§

§

Broadcast(Bytes)

Broadcast a message to all nodes in the swarm

§

BroadcastNeighbors(Bytes)

Broadcast a message to all direct neighbors

-
§

JoinPeers(Vec<NodeId>)

Connect to a set of peers

+
§

JoinPeers(Vec<NodeId>)

Connect to a set of peers

Trait Implementations§

source§

impl Debug for Command

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Command

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Command

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/pr/2610/docs/iroh_gossip/net/enum.GossipEvent.html b/pr/2610/docs/iroh_gossip/net/enum.GossipEvent.html index c63d0f1288..b8690ded0e 100644 --- a/pr/2610/docs/iroh_gossip/net/enum.GossipEvent.html +++ b/pr/2610/docs/iroh_gossip/net/enum.GossipEvent.html @@ -1,17 +1,17 @@ GossipEvent in iroh_gossip::net - Rust

Enum iroh_gossip::net::GossipEvent

source ·
pub enum GossipEvent {
-    Joined(Vec<NodeId>),
-    NeighborUp(NodeId),
-    NeighborDown(NodeId),
+    Joined(Vec<NodeId>),
+    NeighborUp(NodeId),
+    NeighborDown(NodeId),
     Received(Message),
 }
Expand description

Events emitted from a gossip topic.

These are the events emitted from a GossipReceiver, wrapped in Event::Gossip.

-

Variants§

§

Joined(Vec<NodeId>)

We joined the topic with at least one peer.

+

Variants§

§

Joined(Vec<NodeId>)

We joined the topic with at least one peer.

This is the first event on a GossipReceiver and will only be emitted once.

-
§

NeighborUp(NodeId)

We have a new, direct neighbor in the swarm membership layer for this topic.

-
§

NeighborDown(NodeId)

We dropped direct neighbor in the swarm membership layer for this topic.

+
§

NeighborUp(NodeId)

We have a new, direct neighbor in the swarm membership layer for this topic.

+
§

NeighborDown(NodeId)

We dropped direct neighbor in the swarm membership layer for this topic.

§

Received(Message)

We received a gossip message for this topic.

Trait Implementations§

source§

impl Clone for GossipEvent

source§

fn clone(&self) -> GossipEvent

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GossipEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for GossipEvent

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<Event<PublicKey>> for GossipEvent

source§

fn from(event: Event<NodeId>) -> Self

Converts to this type from the input type.
source§

impl Ord for GossipEvent

source§

fn cmp(&self, other: &GossipEvent) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<Event<PublicKey>> for GossipEvent

source§

fn from(event: Event<NodeId>) -> Self

Converts to this type from the input type.
source§

impl Ord for GossipEvent

source§

fn cmp(&self, other: &GossipEvent) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for GossipEvent

source§

fn eq(&self, other: &GossipEvent) -> bool

This method tests for self and other values to be equal, and is used diff --git a/pr/2610/docs/iroh_gossip/net/struct.Gossip.html b/pr/2610/docs/iroh_gossip/net/struct.Gossip.html index 04fd185aac..9e5a2918cc 100644 --- a/pr/2610/docs/iroh_gossip/net/struct.Gossip.html +++ b/pr/2610/docs/iroh_gossip/net/struct.Gossip.html @@ -1,7 +1,7 @@ Gossip in iroh_gossip::net - Rust

Struct iroh_gossip::net::Gossip

source ·
pub struct Gossip { /* private fields */ }
Expand description

Publish and subscribe on gossiping topics.

Each topic is a separate broadcast tree with separate memberships.

A topic has to be joined before you can publish or subscribe on the topic. -To join the swarm for a topic, you have to know the PublicKey of at least one peer that also joined the topic.

+To join the swarm for a topic, you have to know the [PublicKey] of at least one peer that also joined the topic.

Messages published on the swarm will be delivered to all peers that joined the swarm for that topic. You will also be relaying (gossiping) messages published by other peers.

With the default settings, the protocol will maintain up to 5 peer connections per topic.

@@ -13,7 +13,7 @@ gossip actor through

Implementations§

source§

impl Gossip

source

pub fn from_endpoint( endpoint: Endpoint, config: Config, - my_addr: &AddrInfo + my_addr: &AddrInfo ) -> Self

Spawn a gossip actor and get a handle for it

source

pub fn max_message_size(&self) -> usize

Get the maximum message size configured for this gossip actor.

source

pub async fn handle_connection(&self, conn: Connection) -> Result<()>

Handle an incoming [Connection].

@@ -21,7 +21,7 @@ gossip actor through
source

pub async fn join( &self, topic_id: TopicId, - bootstrap: Vec<NodeId> + bootstrap: Vec<NodeId> ) -> Result<GossipTopic>

Join a gossip topic with the default options and wait for at least one active connection.

source

pub fn join_with_opts( &self, diff --git a/pr/2610/docs/iroh_gossip/net/struct.GossipReceiver.html b/pr/2610/docs/iroh_gossip/net/struct.GossipReceiver.html index d672d0664f..81ba9d6add 100644 --- a/pr/2610/docs/iroh_gossip/net/struct.GossipReceiver.html +++ b/pr/2610/docs/iroh_gossip/net/struct.GossipReceiver.html @@ -1,6 +1,6 @@ GossipReceiver in iroh_gossip::net - Rust

Struct iroh_gossip::net::GossipReceiver

source ·
pub struct GossipReceiver { /* private fields */ }
Expand description

Receiver for gossip events on a topic.

This is a [Stream] of Events emitted from the topic.

-

Implementations§

source§

impl GossipReceiver

source

pub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_

Lists our current direct neighbors.

+

Implementations§

source§

impl GossipReceiver

source

pub fn neighbors(&self) -> impl Iterator<Item = NodeId> + '_

Lists our current direct neighbors.

source

pub async fn joined(&mut self) -> Result<()>

Waits until we are connected to at least one node.

This progresses the stream until we received GossipEvent::Joined, which is the first item emitted on the stream.

diff --git a/pr/2610/docs/iroh_gossip/net/struct.GossipSender.html b/pr/2610/docs/iroh_gossip/net/struct.GossipSender.html index 2f1f00e31d..805a9d514f 100644 --- a/pr/2610/docs/iroh_gossip/net/struct.GossipSender.html +++ b/pr/2610/docs/iroh_gossip/net/struct.GossipSender.html @@ -1,7 +1,7 @@ GossipSender in iroh_gossip::net - Rust

Struct iroh_gossip::net::GossipSender

source ·
pub struct GossipSender(/* private fields */);
Expand description

Sender for a gossip topic.

Implementations§

source§

impl GossipSender

source

pub async fn broadcast(&self, message: Bytes) -> Result<()>

Broadcast a message to all nodes.

source

pub async fn broadcast_neighbors(&self, message: Bytes) -> Result<()>

Broadcast a message to our direct neighbors.

-
source

pub async fn join_peers(&self, peers: Vec<NodeId>) -> Result<()>

Join a set of peers.

+
source

pub async fn join_peers(&self, peers: Vec<NodeId>) -> Result<()>

Join a set of peers.

Trait Implementations§

source§

impl Debug for GossipSender

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where diff --git a/pr/2610/docs/iroh_gossip/net/struct.JoinOptions.html b/pr/2610/docs/iroh_gossip/net/struct.JoinOptions.html index a1d436f18e..fc9bce32ef 100644 --- a/pr/2610/docs/iroh_gossip/net/struct.JoinOptions.html +++ b/pr/2610/docs/iroh_gossip/net/struct.JoinOptions.html @@ -1,14 +1,14 @@ JoinOptions in iroh_gossip::net - Rust

Struct iroh_gossip::net::JoinOptions

source ·
pub struct JoinOptions {
-    pub bootstrap: BTreeSet<NodeId>,
+    pub bootstrap: BTreeSet<NodeId>,
     pub subscription_capacity: usize,
 }
Expand description

Options for joining a gossip topic.

-

Fields§

§bootstrap: BTreeSet<NodeId>

The initial bootstrap nodes

+

Fields§

§bootstrap: BTreeSet<NodeId>

The initial bootstrap nodes

§subscription_capacity: usize

The maximum number of messages that can be buffered in a subscription.

If this limit is reached, the subscriber will receive a Lagged response, the message will be dropped, and the subscriber will be closed.

This is to prevent a single slow subscriber from blocking the dispatch loop. If a subscriber is lagging, it should be closed and re-opened.

-

Implementations§

source§

impl JoinOptions

source

pub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self

Creates JoinOptions with the provided bootstrap nodes and the default subscription +

Implementations§

source§

impl JoinOptions

source

pub fn with_bootstrap(nodes: impl IntoIterator<Item = NodeId>) -> Self

Creates JoinOptions with the provided bootstrap nodes and the default subscription capacity.

Trait Implementations§

source§

impl Debug for JoinOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for JoinOptions

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for JoinOptions

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where diff --git a/pr/2610/docs/iroh_gossip/net/struct.Message.html b/pr/2610/docs/iroh_gossip/net/struct.Message.html index 148d3dd789..cec746fafc 100644 --- a/pr/2610/docs/iroh_gossip/net/struct.Message.html +++ b/pr/2610/docs/iroh_gossip/net/struct.Message.html @@ -1,12 +1,12 @@ Message in iroh_gossip::net - Rust

Struct iroh_gossip::net::Message

source ·
pub struct Message {
     pub content: Bytes,
     pub scope: DeliveryScope,
-    pub delivered_from: NodeId,
+    pub delivered_from: NodeId,
 }
Expand description

A gossip message

Fields§

§content: Bytes

The content of the message

§scope: DeliveryScope

The scope of the message. This tells us if the message is from a direct neighbor or actual gossip.

-
§delivered_from: NodeId

The node that delivered the message. This is not the same as the original author.

+
§delivered_from: NodeId

The node that delivered the message. This is not the same as the original author.

Trait Implementations§

source§

impl Clone for Message

source§

fn clone(&self) -> Message

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Message

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Message

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Ord for Message

source§

fn cmp(&self, other: &Message) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where diff --git a/pr/2610/docs/iroh_gossip/net/type.ProtoCommand.html b/pr/2610/docs/iroh_gossip/net/type.ProtoCommand.html index bb3b32a214..83257af5b2 100644 --- a/pr/2610/docs/iroh_gossip/net/type.ProtoCommand.html +++ b/pr/2610/docs/iroh_gossip/net/type.ProtoCommand.html @@ -1,9 +1,9 @@ -ProtoCommand in iroh_gossip::net - Rust

Type Alias iroh_gossip::net::ProtoCommand

source ·
pub type ProtoCommand = Command<PublicKey>;
Expand description

Commands for the gossip protocol

+ProtoCommand in iroh_gossip::net - Rust

Type Alias iroh_gossip::net::ProtoCommand

source ·
pub type ProtoCommand = Command<PublicKey>;
Expand description

Commands for the gossip protocol

Aliased Type§

enum ProtoCommand {
-    Join(Vec<PublicKey>),
+    Join(Vec<PublicKey>),
     Broadcast(Bytes, Scope),
     Quit,
-}

Variants§

§

Join(Vec<PublicKey>)

Join this topic and connect to peers.

+}

Variants§

§

Join(Vec<PublicKey>)

Join this topic and connect to peers.

If the list of peers is empty, will prepare the state and accept incoming join requests, but only become operational after the first join request by another peer.

§

Broadcast(Bytes, Scope)

Broadcast a message for this topic.

diff --git a/pr/2610/docs/iroh_gossip/net/type.ProtoEvent.html b/pr/2610/docs/iroh_gossip/net/type.ProtoEvent.html index 37a9e75a6c..f72d41e07d 100644 --- a/pr/2610/docs/iroh_gossip/net/type.ProtoEvent.html +++ b/pr/2610/docs/iroh_gossip/net/type.ProtoEvent.html @@ -1,9 +1,9 @@ -ProtoEvent in iroh_gossip::net - Rust

Type Alias iroh_gossip::net::ProtoEvent

source ·
pub type ProtoEvent = Event<PublicKey>;
Expand description

Events emitted from the gossip protocol

+ProtoEvent in iroh_gossip::net - Rust

Type Alias iroh_gossip::net::ProtoEvent

source ·
pub type ProtoEvent = Event<PublicKey>;
Expand description

Events emitted from the gossip protocol

Aliased Type§

enum ProtoEvent {
-    NeighborUp(PublicKey),
-    NeighborDown(PublicKey),
-    Received(GossipEvent<PublicKey>),
-}

Variants§

§

NeighborUp(PublicKey)

We have a new, direct neighbor in the swarm membership layer for this topic

-
§

NeighborDown(PublicKey)

We dropped direct neighbor in the swarm membership layer for this topic

-
§

Received(GossipEvent<PublicKey>)

A gossip message was received for this topic

+ NeighborUp(PublicKey), + NeighborDown(PublicKey), + Received(GossipEvent<PublicKey>), +}

Variants§

§

NeighborUp(PublicKey)

We have a new, direct neighbor in the swarm membership layer for this topic

+
§

NeighborDown(PublicKey)

We dropped direct neighbor in the swarm membership layer for this topic

+
§

Received(GossipEvent<PublicKey>)

A gossip message was received for this topic

\ No newline at end of file diff --git a/pr/2610/docs/iroh_gossip/net/util/fn.read_message.html b/pr/2610/docs/iroh_gossip/net/util/fn.read_message.html index e08ae9651c..b24a6cb2ba 100644 --- a/pr/2610/docs/iroh_gossip/net/util/fn.read_message.html +++ b/pr/2610/docs/iroh_gossip/net/util/fn.read_message.html @@ -2,5 +2,5 @@ reader: impl AsyncRead + Unpin, buffer: &mut BytesMut, max_message_size: usize -) -> Result<Option<Message<PublicKey>>>
Expand description

Read a length-prefixed message and decode as ProtoMessage;

+) -> Result<Option<Message<PublicKey>>>
Expand description

Read a length-prefixed message and decode as ProtoMessage;

\ No newline at end of file diff --git a/pr/2610/docs/iroh_gossip/net/util/fn.write_message.html b/pr/2610/docs/iroh_gossip/net/util/fn.write_message.html index 8e9c5dcd1c..8fd0f02670 100644 --- a/pr/2610/docs/iroh_gossip/net/util/fn.write_message.html +++ b/pr/2610/docs/iroh_gossip/net/util/fn.write_message.html @@ -1,7 +1,7 @@ write_message in iroh_gossip::net::util - Rust

Function iroh_gossip::net::util::write_message

source ·
pub async fn write_message<W: AsyncWrite + Unpin>(
     writer: &mut W,
     buffer: &mut BytesMut,
-    frame: &Message<PublicKey>,
+    frame: &Message<PublicKey>,
     max_message_size: usize
 ) -> Result<()>
Expand description

Write a ProtoMessage as a length-prefixed, postcard-encoded message.

\ No newline at end of file diff --git a/pr/2610/docs/iroh_gossip/proto/topic/enum.Event.html b/pr/2610/docs/iroh_gossip/proto/topic/enum.Event.html index 715a58ee6a..f41b8e8ff7 100644 --- a/pr/2610/docs/iroh_gossip/proto/topic/enum.Event.html +++ b/pr/2610/docs/iroh_gossip/proto/topic/enum.Event.html @@ -8,7 +8,7 @@
§

Received(GossipEvent<PI>)

A gossip message was received for this topic

Trait Implementations§

source§

impl<PI: Clone> Clone for Event<PI>

source§

fn clone(&self) -> Event<PI>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<PI: Debug> Debug for Event<PI>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de, PI> Deserialize<'de> for Event<PI>
where PI: Deserialize<'de>,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<Event<PublicKey>> for GossipEvent

source§

fn from(event: Event<NodeId>) -> Self

Converts to this type from the input type.
source§

impl<PI: Ord> Ord for Event<PI>

source§

fn cmp(&self, other: &Event<PI>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<Event<PublicKey>> for GossipEvent

source§

fn from(event: Event<NodeId>) -> Self

Converts to this type from the input type.
source§

impl<PI: Ord> Ord for Event<PI>

source§

fn cmp(&self, other: &Event<PI>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl<PI: PartialEq> PartialEq for Event<PI>

source§

fn eq(&self, other: &Event<PI>) -> bool

This method tests for self and other values to be equal, and is used diff --git a/pr/2610/docs/iroh_net/endpoint/struct.NodeInfo.html b/pr/2610/docs/iroh_net/endpoint/struct.NodeInfo.html index 2c2e76893f..0b5c5f1590 100644 --- a/pr/2610/docs/iroh_net/endpoint/struct.NodeInfo.html +++ b/pr/2610/docs/iroh_net/endpoint/struct.NodeInfo.html @@ -19,7 +19,7 @@ remote node might be.

§latency: Option<Duration>

The latency of the current network path to the remote node.

§last_used: Option<Duration>

Time elapsed time since last sending to, or received from the node.

This is the duration since any data was sent or receive from the remote node, -payload or control messsages. Note that sending to the remote node does not imply +payload or control messages. Note that sending to the remote node does not imply the remote node received anything.

Implementations§

source§

impl NodeInfo

source

pub fn last_received(&self) -> Option<Duration>

👎Deprecated since 0.23.0: this is broken

Get the duration since the last activity we received from this endpoint on any of its direct addresses.

diff --git a/pr/2610/docs/src/iroh/rpc_protocol/node.rs.html b/pr/2610/docs/src/iroh/rpc_protocol/node.rs.html index b5526f5ce0..b8e8430c8b 100644 --- a/pr/2610/docs/src/iroh/rpc_protocol/node.rs.html +++ b/pr/2610/docs/src/iroh/rpc_protocol/node.rs.html @@ -201,7 +201,7 @@ /// List network path information about all the remote nodes know by this node. /// /// There may never have been connections to these nodes, and connections may not even be -/// possible. As well due to connections nodes can become known due to discovery mechanims +/// possible. As well due to connections nodes can become known due to discovery mechanisms /// or be added manually. #[derive(Debug, Serialize, Deserialize)] pub struct AllNodeInfoRequest; diff --git a/pr/2610/docs/src/iroh_net/magicsock/node_map/node_state.rs.html b/pr/2610/docs/src/iroh_net/magicsock/node_map/node_state.rs.html index 9fe6561d4f..f725040809 100644 --- a/pr/2610/docs/src/iroh_net/magicsock/node_map/node_state.rs.html +++ b/pr/2610/docs/src/iroh_net/magicsock/node_map/node_state.rs.html @@ -2938,7 +2938,7 @@ /// Time elapsed time since last sending to, or received from the node. /// /// This is the duration since *any* data was sent or receive from the remote node, - /// payload or control messsages. Note that sending to the remote node does not imply + /// payload or control messages. Note that sending to the remote node does not imply /// the remote node received anything. pub last_used: Option<Duration>, } diff --git a/pr/2610/docs/trait.impl/core/convert/trait.From.js b/pr/2610/docs/trait.impl/core/convert/trait.From.js index 9aa1a013e6..499600da0c 100644 --- a/pr/2610/docs/trait.impl/core/convert/trait.From.js +++ b/pr/2610/docs/trait.impl/core/convert/trait.From.js @@ -3,6 +3,6 @@ "iroh_base":[["impl From<&[u8; 32]> for Hash"],["impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr"],["impl From<FromHexError> for HexOrBase32ParseError"],["impl From<HexOrBase32ParseError> for KeyParsingError"],["impl From<BlobFormat> for u64"],["impl From<Error> for RpcError"],["impl From<Error> for RpcError"],["impl From<Url> for RelayUrl"],["impl From<DecodeError> for HexOrBase32ParseError"],["impl From<DecodeError> for Error"],["impl From<Hash> for Hash"],["impl From<Hash> for [u8; 32]"],["impl From<PublicKey> for NodeAddr"],["impl From<RelayUrl> for Url"],["impl From<Error> for KeyParsingError"],["impl From<Error> for Error"],["impl From<Hash> for Hash"],["impl From<SigningKey> for SecretKey"],["impl From<VerifyingKey> for PublicKey"],["impl From<[u8; 32]> for Hash"],["impl From<[u8; 32]> for SecretKey"]], "iroh_blobs":[["impl From<&str> for Tag"],["impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext"],["impl From<BlobId> for u64"],["impl From<GetResponseError> for Error"],["impl From<GetError> for FailureAction"],["impl From<AtBlobHeaderNextError> for GetError"],["impl From<AtBlobHeaderNextError> for DecodeError"],["impl From<AtBlobHeaderNextError> for Error"],["impl From<ConnectedNextError> for GetError"],["impl From<ConnectedNextError> for Error"],["impl From<DecodeError> for GetError"],["impl From<DecodeError> for Error"],["impl From<Closed> for VarInt"],["impl From<SpawnError> for Error"],["impl From<ProgressSendError> for GetError"],["impl From<ProgressSendError> for Error"],["impl From<String> for Tag"],["impl From<Vec<u8>> for SparseMemFile"],["impl From<Error> for GetError"],["impl From<Error> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<DownloadKind> for HashAndFormat"],["impl From<AtClosing> for ConnectedNext"],["impl From<AtClosing> for EndBlobNext"],["impl From<AtEndBlob> for BlobContentNext"],["impl From<AtStartChild> for ConnectedNext"],["impl From<AtStartChild> for EndBlobNext"],["impl From<AtStartRoot> for ConnectedNext"],["impl From<HashSeq> for Bytes"],["impl From<GetRequest> for Request"],["impl From<HashAndFormat> for DownloadKind"],["impl From<Tag> for Bytes"],["impl From<Bytes> for Tag"],["impl From<ConnectionError> for GetResponseError"],["impl From<ConnectionError> for GetError"],["impl From<DecodeError> for GetResponseError"],["impl From<DecodeError> for DecodeError"],["impl From<Error> for GetResponseError"],["impl From<ReadError> for GetResponseError"],["impl From<ReadError> for GetError"],["impl From<WriteError> for GetResponseError"],["impl From<WriteError> for GetError"],["impl From<WriteError> for ConnectedNextError"],["impl<T: CustomEventSender> From<T> for EventSender"]], "iroh_docs":[["impl From<&Author> for AuthorPublicKey"],["impl From<&AuthorPublicKey> for AuthorId"],["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecret> for NamespacePublicKey"],["impl From<&[u8; 32]> for AuthorId"],["impl From<&[u8; 32]> for NamespaceId"],["impl From<CapabilityKind> for u8"],["impl From<ValidationFailure> for InsertError"],["impl From<Error> for OpenError"],["impl From<QueryBuilder<FlatQuery>> for Query"],["impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query"],["impl From<Author> for AuthorId"],["impl From<Author> for AuthorPublicKey"],["impl From<AuthorId> for AuthorFilter"],["impl From<AuthorId> for [u8; 32]"],["impl From<AuthorPublicKey> for AuthorId"],["impl From<NamespaceId> for Capability"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecret> for Capability"],["impl From<NamespaceSecret> for NamespaceId"],["impl From<NamespaceSecret> for NamespacePublicKey"],["impl From<ReadOnly> for InsertError"],["impl From<SignedEntry> for Entry"],["impl From<SigningKey> for Author"],["impl From<SigningKey> for NamespaceSecret"],["impl From<VerifyingKey> for AuthorPublicKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<[u8; 32]> for AuthorId"],["impl From<[u8; 32]> for NamespaceId"],["impl<T: AsRef<[u8]>> From<T> for KeyFilter"]], -"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]], +"iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]], "iroh_net":[["impl From<&NodeInfo> for TxtAttrs<IrohAttr>"],["impl From<&TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<&Peer> for DiscoveryItem"],["impl From<IpAddr> for IpFamily"],["impl From<IpFamily> for Domain"],["impl From<Error> for ClientError"],["impl From<Error> for PingError"],["impl From<NodeInfo> for AddrInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<ParseError> for Error"],["impl From<VerificationError> for Error"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for GenError"],["impl From<Error> for ParseError"],["impl From<Error> for VerificationError"],["impl From<JoinError> for ClientError"],["impl From<SurgeError> for PingError"],["impl From<UdpSocket> for UdpSocket"],["impl<T> From<JoinHandle<T>> for AbortingJoinHandle<T>"],["impl<T> From<T> for ConcurrentDiscovery
where\n T: IntoIterator<Item = Box<dyn Discovery>>,
"],["impl<T: Clone + Send + 'static> From<JoinHandle<T>> for SharedAbortingJoinHandle<T>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/pr/2610/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2610/docs/trait.impl/iroh_metrics/core/trait.Metric.js index 8902586109..d96c0fcf7e 100644 --- a/pr/2610/docs/trait.impl/iroh_metrics/core/trait.Metric.js +++ b/pr/2610/docs/trait.impl/iroh_metrics/core/trait.Metric.js @@ -1,6 +1,6 @@ (function() {var implementors = { "iroh":[["impl Metric for Metrics"]], -"iroh_blobs":[["impl Metric for Metrics"]], +"iroh_blobs":[["impl Metric for Metrics"]], "iroh_dns_server":[["impl Metric for Metrics"]], "iroh_docs":[["impl Metric for Metrics"]], "iroh_gossip":[["impl Metric for Metrics"]],