From b2dff432548bf16a6418246debdc7dd7dcc2f890 Mon Sep 17 00:00:00 2001 From: ramfox Date: Mon, 5 Aug 2024 16:29:22 +0000 Subject: [PATCH] deploy: f35c4afda8eff372d5bcad772f2a86c7ab77e611 --- pr/2582/docs/iroh/base/hash/struct.Hash.html | 2 +- .../iroh/base/hash/struct.HashAndFormat.html | 2 +- .../iroh/base/node_addr/struct.NodeAddr.html | 2 +- .../iroh/base/node_addr/struct.RelayUrl.html | 2 +- .../iroh/blobs/constant.IROH_BLOCK_SIZE.html | 2 +- .../blobs/downloader/enum.DownloadError.html | 4 +- .../blobs/downloader/enum.FailureAction.html | 4 +- pr/2582/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 | 12 +- .../iroh/blobs/downloader/trait.Getter.html | 6 +- .../blobs/export/enum.ExportProgress.html | 6 +- pr/2582/docs/iroh/blobs/export/fn.export.html | 2 +- .../iroh/blobs/export/fn.export_blob.html | 2 +- .../blobs/export/fn.export_collection.html | 2 +- pr/2582/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/2582/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/fn.blob_info.html | 2 +- .../docs/iroh/blobs/get/db/fn.get_to_db.html | 2 +- .../iroh/blobs/get/db/fn.valid_ranges.html | 2 +- pr/2582/docs/iroh/blobs/get/db/index.html | 2 +- .../iroh/blobs/get/enum.GetResponseError.html | 4 +- .../iroh/blobs/get/error/enum.GetError.html | 4 +- pr/2582/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/2582/docs/iroh/blobs/get/fsm/fn.start.html | 2 +- pr/2582/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/2582/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/2582/docs/iroh/blobs/get/struct.Stats.html | 12 +- .../iroh/blobs/hashseq/fn.parse_hash_seq.html | 2 +- pr/2582/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/2582/docs/iroh/blobs/index.html | 2 +- pr/2582/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/2582/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/2582/docs/iroh/blobs/provider/index.html | 2 +- .../blobs/provider/struct.ResponseWriter.html | 6 +- .../blobs/provider/struct.TransferStats.html | 4 +- .../blobs/provider/trait.EventSender.html | 4 +- .../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/2582/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/2582/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/2582/docs/iroh/blobs/store/index.html | 2 +- pr/2582/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/2582/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/2582/docs/iroh/blobs/struct.Hash.html | 2 +- .../docs/iroh/blobs/struct.HashAndFormat.html | 2 +- pr/2582/docs/iroh/blobs/struct.Tag.html | 24 +- pr/2582/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/2582/docs/iroh/blobs/util/index.html | 2 +- pr/2582/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/2582/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/client/node/struct.Client.html | 4 +- .../docs/iroh/net/dialer/struct.Dialer.html | 2 +- .../net/endpoint/enum.ConnectionError.html | 2 +- .../net/endpoint/enum.ConnectionType.html | 10 +- .../iroh/net/endpoint/enum.ControlMsg.html | 10 +- .../net/endpoint/enum.DirectAddrType.html | 12 +- .../iroh/net/endpoint/enum.ReadError.html | 2 +- .../iroh/net/endpoint/enum.WriteError.html | 2 +- .../net/endpoint/struct.ConnectionInfo.html | 16 +- .../endpoint/struct.ConnectionTypeStream.html | 4 +- .../iroh/net/endpoint/struct.DirectAddr.html | 12 +- .../net/endpoint/struct.DirectAddrInfo.html | 10 +- .../endpoint/struct.DirectAddrsStream.html | 4 +- .../iroh/net/endpoint/struct.NodeAddr.html | 2 +- .../docs/iroh/net/endpoint/struct.VarInt.html | 4 +- .../docs/iroh/net/relay/struct.RelayUrl.html | 2 +- pr/2582/docs/iroh/net/struct.NodeAddr.html | 2 +- .../iroh_blobs/metrics/struct.Metrics.html | 28 +- .../iroh_docs/actor/struct.SyncHandle.html | 2 +- .../docs/iroh_docs/engine/enum.LiveEvent.html | 16 +- .../engine/fn.entry_to_content_status.html | 2 +- pr/2582/docs/iroh_docs/engine/index.html | 2 +- .../docs/iroh_docs/engine/struct.Engine.html | 6 +- .../iroh_docs/engine/struct.SyncEvent.html | 4 +- pr/2582/docs/iroh_docs/index.html | 2 +- .../iroh_docs/metrics/struct.Metrics.html | 42 +- .../docs/iroh_docs/net/enum.AcceptError.html | 16 +- .../iroh_docs/net/fn.connect_and_sync.html | 2 +- .../iroh_docs/net/fn.handle_connection.html | 2 +- .../iroh_docs/net/struct.SyncFinished.html | 4 +- .../fs/struct.ContentHashesIterator.html | 2 +- pr/2582/docs/iroh_docs/struct.DocTicket.html | 10 +- pr/2582/docs/iroh_docs/sync/struct.Entry.html | 4 +- .../docs/iroh_docs/sync/struct.Record.html | 6 +- .../docs/iroh_docs/sync/struct.Replica.html | 4 +- .../iroh_docs/sync/struct.SignedEntry.html | 4 +- .../sync/type.ContentStatusCallback.html | 2 +- .../dispatcher/enum.GossipEvent.html | 10 +- .../dispatcher/struct.GossipDispatcher.html | 2 +- .../dispatcher/struct.Message.html | 4 +- .../dispatcher/struct.SubscribeOptions.html | 4 +- .../docs/iroh_gossip/net/struct.Gossip.html | 8 +- .../docs/iroh_gossip/net/type.Command.html | 6 +- pr/2582/docs/iroh_gossip/net/type.Event.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 +- .../endpoint/enum.ConnectionType.html | 10 +- .../iroh_net/endpoint/enum.ControlMsg.html | 10 +- .../endpoint/enum.DirectAddrType.html | 12 +- .../iroh_net/endpoint/struct.AddrInfo.html | 18 +- .../endpoint/struct.ConnectionInfo.html | 16 +- .../endpoint/struct.ConnectionTypeStream.html | 4 +- .../iroh_net/endpoint/struct.DirectAddr.html | 12 +- .../endpoint/struct.DirectAddrInfo.html | 10 +- .../endpoint/struct.DirectAddrsStream.html | 4 +- .../iroh_net/endpoint/struct.NodeAddr.html | 28 +- .../iroh_net/key/enum.KeyParsingError.html | 8 +- pr/2582/docs/iroh_net/key/index.html | 2 +- .../docs/iroh_net/key/struct.PublicKey.html | 30 +- .../docs/iroh_net/key/struct.SecretKey.html | 26 +- .../iroh_net/key/struct.SharedSecret.html | 8 +- pr/2582/docs/iroh_net/key/type.NodeId.html | 2 +- .../docs/iroh_net/relay/struct.RelayUrl.html | 20 +- pr/2582/docs/iroh_net/struct.AddrInfo.html | 18 +- pr/2582/docs/iroh_net/struct.NodeAddr.html | 28 +- .../iroh_net/ticket/struct.NodeTicket.html | 14 +- pr/2582/docs/iroh_net/type.NodeId.html | 2 +- .../iroh_net_bench/enum.EndpointSelector.html | 4 +- .../docs/iroh_net_bench/iroh/fn.client.html | 2 +- .../iroh/fn.connect_client.html | 4 +- .../docs/iroh_net_bench/iroh/fn.server.html | 2 +- .../iroh/fn.server_endpoint.html | 2 +- pr/2582/docs/iroh_relay/struct.Config.html | 4 +- pr/2582/docs/search-index.js | 2 +- pr/2582/docs/src-files.js | 2 +- pr/2582/docs/src/iroh/client/node.rs.html | 4 +- pr/2582/docs/src/iroh_net/magicsock.rs.html | 8 +- .../src/iroh_net/magicsock/node_map.rs.html | 6 +- .../magicsock/node_map/node_state.rs.html | 358 +++++++---------- .../magicsock/node_map/udp_paths.rs.html | 359 ++++++++++++++++++ .../trait.impl/core/convert/trait.From.js | 2 +- .../iroh_base/ticket/trait.Ticket.js | 2 +- .../iroh_metrics/core/trait.Metric.js | 4 +- .../iroh_net/key/struct.PublicKey.js | 2 +- pr/2582/docs/type.impl/std/primitive.array.js | 2 +- 259 files changed, 1533 insertions(+), 1262 deletions(-) create mode 100644 pr/2582/docs/src/iroh_net/magicsock/node_map/udp_paths.rs.html diff --git a/pr/2582/docs/iroh/base/hash/struct.Hash.html b/pr/2582/docs/iroh/base/hash/struct.Hash.html index 7ebbfc1866..3d1d4f78f7 100644 --- a/pr/2582/docs/iroh/base/hash/struct.Hash.html +++ b/pr/2582/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/2582/docs/iroh/base/hash/struct.HashAndFormat.html b/pr/2582/docs/iroh/base/hash/struct.HashAndFormat.html index c9f931ba2a..4a0c7aac76 100644 --- a/pr/2582/docs/iroh/base/hash/struct.HashAndFormat.html +++ b/pr/2582/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/2582/docs/iroh/base/node_addr/struct.NodeAddr.html b/pr/2582/docs/iroh/base/node_addr/struct.NodeAddr.html index 64b4ca92c6..ea39cdb347 100644 --- a/pr/2582/docs/iroh/base/node_addr/struct.NodeAddr.html +++ b/pr/2582/docs/iroh/base/node_addr/struct.NodeAddr.html @@ -45,7 +45,7 @@ received from another API. E.g. to ensure a Trait Implementations§
source§

impl Clone for NodeAddr

source§

fn clone(&self) -> NodeAddr

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 NodeAddr

source§

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

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

impl<'de> Deserialize<'de> for NodeAddr

source§

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

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

impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

source§

fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(info: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<PublicKey> for NodeAddr

source§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
source§

impl Ord for NodeAddr

source§

fn cmp(&self, other: &NodeAddr) -> 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<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

source§

fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(info: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<PublicKey> for NodeAddr

source§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
source§

impl Ord for NodeAddr

source§

fn cmp(&self, other: &NodeAddr) -> 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 NodeAddr

source§

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

This method tests for self and other values to be equal, and is used diff --git a/pr/2582/docs/iroh/base/node_addr/struct.RelayUrl.html b/pr/2582/docs/iroh/base/node_addr/struct.RelayUrl.html index ad92fac12a..ce98e2ea8c 100644 --- a/pr/2582/docs/iroh/base/node_addr/struct.RelayUrl.html +++ b/pr/2582/docs/iroh/base/node_addr/struct.RelayUrl.html @@ -447,7 +447,7 @@ to change the inner later.

§

type Target = Url

The resulting type after dereferencing.
source§

fn deref(&self) -> &<RelayUrl as Deref>::Target

Dereferences the value.
source§

impl<'de> Deserialize<'de> for RelayUrl

source§

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

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

impl Display for RelayUrl

source§

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

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

impl From<RelayUrl> for Url

source§

fn from(value: RelayUrl) -> Url

Converts to this type from the input type.
source§

impl From<RelayUrlInfo> for RelayUrl

source§

fn from(value: RelayUrlInfo) -> RelayUrl

Converts to this type from the input type.
source§

impl From<Url> for RelayUrl

source§

fn from(url: Url) -> RelayUrl

Converts to this type from the input type.
source§

impl FromStr for RelayUrl

Support for parsing strings directly.

+ __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for RelayUrl

source§

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

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

impl From<RelayUrl> for Url

source§

fn from(value: RelayUrl) -> Url

Converts to this type from the input type.
source§

impl From<RelayUrlInfo> for RelayUrl

source§

fn from(value: RelayUrlInfo) -> RelayUrl

Converts to this type from the input type.
source§

impl From<Url> for RelayUrl

source§

fn from(url: Url) -> RelayUrl

Converts to this type from the input type.
source§

impl FromStr for RelayUrl

Support for parsing strings directly.

If you need more control over the error first create a Url and use RelayUrl::from instead.

§

type Err = Error

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

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

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

impl Hash for RelayUrl

source§

fn hash<__H>(&self, state: &mut __H)
where diff --git a/pr/2582/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html b/pr/2582/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html index b7f819f1a5..b6590ef567 100644 --- a/pr/2582/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html +++ b/pr/2582/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/2582/docs/iroh/blobs/downloader/enum.DownloadError.html b/pr/2582/docs/iroh/blobs/downloader/enum.DownloadError.html index 5de1a166e2..adcd46da6c 100644 --- a/pr/2582/docs/iroh/blobs/downloader/enum.DownloadError.html +++ b/pr/2582/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/2582/docs/iroh/blobs/downloader/enum.FailureAction.html b/pr/2582/docs/iroh/blobs/downloader/enum.FailureAction.html index 80d6dd9974..2df383757f 100644 --- a/pr/2582/docs/iroh/blobs/downloader/enum.FailureAction.html +++ b/pr/2582/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/2582/docs/iroh/blobs/downloader/index.html b/pr/2582/docs/iroh/blobs/downloader/index.html index 201bd3c29a..ca061a1e26 100644 --- a/pr/2582/docs/iroh/blobs/downloader/index.html +++ b/pr/2582/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.

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/2582/docs/iroh/blobs/get/db/fn.blob_info.html b/pr/2582/docs/iroh/blobs/get/db/fn.blob_info.html index 83719aede8..33df248b76 100644 --- a/pr/2582/docs/iroh/blobs/get/db/fn.blob_info.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/db/fn.get_to_db.html b/pr/2582/docs/iroh/blobs/get/db/fn.get_to_db.html index f70f1cf732..fa946b75d9 100644 --- a/pr/2582/docs/iroh/blobs/get/db/fn.get_to_db.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/db/fn.valid_ranges.html b/pr/2582/docs/iroh/blobs/get/db/fn.valid_ranges.html
index 935f12ae44..3035a1767b 100644
--- a/pr/2582/docs/iroh/blobs/get/db/fn.valid_ranges.html
+++ b/pr/2582/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/2582/docs/iroh/blobs/get/db/index.html b/pr/2582/docs/iroh/blobs/get/db/index.html index 44dce23ba5..a7b6be44bf 100644 --- a/pr/2582/docs/iroh/blobs/get/db/index.html +++ b/pr/2582/docs/iroh/blobs/get/db/index.html @@ -1,2 +1,2 @@ -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.

Enums§

  • The id of a blob in a transfer
  • Information about a the status of a blob in a store.
  • Progress updates for the get operation.

Functions§

  • Get information about a blob in a store.
  • Get a blob or collection into a store.
  • Given a partial entry, get the valid ranges.
\ No newline at end of file diff --git a/pr/2582/docs/iroh/blobs/get/enum.GetResponseError.html b/pr/2582/docs/iroh/blobs/get/enum.GetResponseError.html index 438ede7393..00b4f58955 100644 --- a/pr/2582/docs/iroh/blobs/get/enum.GetResponseError.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/error/enum.GetError.html b/pr/2582/docs/iroh/blobs/get/error/enum.GetError.html index 84d1696645..17659c2db2 100644 --- a/pr/2582/docs/iroh/blobs/get/error/enum.GetError.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/error/index.html b/pr/2582/docs/iroh/blobs/get/error/index.html index 4a3adf9186..1585987ff9 100644 --- a/pr/2582/docs/iroh/blobs/get/error/index.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/fsm/enum.AtBlobHeaderNextError.html b/pr/2582/docs/iroh/blobs/get/fsm/enum.AtBlobHeaderNextError.html index aad5c22d05..de5828ab7e 100644 --- a/pr/2582/docs/iroh/blobs/get/fsm/enum.AtBlobHeaderNextError.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/fsm/enum.BlobContentNext.html b/pr/2582/docs/iroh/blobs/get/fsm/enum.BlobContentNext.html index 64e3d44d45..beffb5fbb3 100644 --- a/pr/2582/docs/iroh/blobs/get/fsm/enum.BlobContentNext.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/fsm/enum.ConnectedNext.html b/pr/2582/docs/iroh/blobs/get/fsm/enum.ConnectedNext.html index eacdb70748..d88cadfec7 100644 --- a/pr/2582/docs/iroh/blobs/get/fsm/enum.ConnectedNext.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/fsm/enum.ConnectedNextError.html b/pr/2582/docs/iroh/blobs/get/fsm/enum.ConnectedNextError.html index a18fdc5c9b..879dd5d98f 100644 --- a/pr/2582/docs/iroh/blobs/get/fsm/enum.ConnectedNextError.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/fsm/enum.DecodeError.html b/pr/2582/docs/iroh/blobs/get/fsm/enum.DecodeError.html index 4656c7447a..c17ad15b37 100644 --- a/pr/2582/docs/iroh/blobs/get/fsm/enum.DecodeError.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/fsm/enum.EndBlobNext.html b/pr/2582/docs/iroh/blobs/get/fsm/enum.EndBlobNext.html index ed3783ceff..7bf8565dbd 100644 --- a/pr/2582/docs/iroh/blobs/get/fsm/enum.EndBlobNext.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/fsm/fn.start.html b/pr/2582/docs/iroh/blobs/get/fsm/fn.start.html index 8a76011fc9..54fbc2c087 100644 --- a/pr/2582/docs/iroh/blobs/get/fsm/fn.start.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/fsm/index.html b/pr/2582/docs/iroh/blobs/get/fsm/index.html index 658bc38bb5..2314e5dfad 100644 --- a/pr/2582/docs/iroh/blobs/get/fsm/index.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/fsm/struct.AtBlobContent.html b/pr/2582/docs/iroh/blobs/get/fsm/struct.AtBlobContent.html index aee4c61679..ec02397938 100644 --- a/pr/2582/docs/iroh/blobs/get/fsm/struct.AtBlobContent.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/fsm/struct.AtBlobHeader.html b/pr/2582/docs/iroh/blobs/get/fsm/struct.AtBlobHeader.html index c9dc0f6914..3237f79cae 100644 --- a/pr/2582/docs/iroh/blobs/get/fsm/struct.AtBlobHeader.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/fsm/struct.AtClosing.html b/pr/2582/docs/iroh/blobs/get/fsm/struct.AtClosing.html index abe2f73ef7..88bc8ebc35 100644 --- a/pr/2582/docs/iroh/blobs/get/fsm/struct.AtClosing.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/fsm/struct.AtConnected.html b/pr/2582/docs/iroh/blobs/get/fsm/struct.AtConnected.html index 457eb031ae..e3b4400d8d 100644 --- a/pr/2582/docs/iroh/blobs/get/fsm/struct.AtConnected.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/fsm/struct.AtEndBlob.html b/pr/2582/docs/iroh/blobs/get/fsm/struct.AtEndBlob.html index 1162da6d52..0bc882492e 100644 --- a/pr/2582/docs/iroh/blobs/get/fsm/struct.AtEndBlob.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/fsm/struct.AtInitial.html b/pr/2582/docs/iroh/blobs/get/fsm/struct.AtInitial.html index 2d338ad716..faa8d7d687 100644 --- a/pr/2582/docs/iroh/blobs/get/fsm/struct.AtInitial.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/fsm/struct.AtStartChild.html b/pr/2582/docs/iroh/blobs/get/fsm/struct.AtStartChild.html index 07823e439e..3ba42b77e2 100644 --- a/pr/2582/docs/iroh/blobs/get/fsm/struct.AtStartChild.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/fsm/struct.AtStartRoot.html b/pr/2582/docs/iroh/blobs/get/fsm/struct.AtStartRoot.html index b91cef45f1..0ef658b54c 100644 --- a/pr/2582/docs/iroh/blobs/get/fsm/struct.AtStartRoot.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/index.html b/pr/2582/docs/iroh/blobs/get/index.html index a43f71a4a4..7d9411aa6d 100644 --- a/pr/2582/docs/iroh/blobs/get/index.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/progress/enum.BlobProgress.html b/pr/2582/docs/iroh/blobs/get/progress/enum.BlobProgress.html index d241ab64c8..d14faf5c37 100644 --- a/pr/2582/docs/iroh/blobs/get/progress/enum.BlobProgress.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/progress/index.html b/pr/2582/docs/iroh/blobs/get/progress/index.html index efcdbe2576..7b36545503 100644 --- a/pr/2582/docs/iroh/blobs/get/progress/index.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/progress/struct.BlobState.html b/pr/2582/docs/iroh/blobs/get/progress/struct.BlobState.html index 0f082f4224..40e77b3ec5 100644 --- a/pr/2582/docs/iroh/blobs/get/progress/struct.BlobState.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/progress/struct.TransferState.html b/pr/2582/docs/iroh/blobs/get/progress/struct.TransferState.html index 1eaa8dfaa4..8e498806fc 100644 --- a/pr/2582/docs/iroh/blobs/get/progress/struct.TransferState.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/progress/type.ProgressId.html b/pr/2582/docs/iroh/blobs/get/progress/type.ProgressId.html index 3c077d5943..1ae2862f1e 100644 --- a/pr/2582/docs/iroh/blobs/get/progress/type.ProgressId.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/request/fn.get_chunk_probe.html b/pr/2582/docs/iroh/blobs/get/request/fn.get_chunk_probe.html index 24b3a4537c..fd8856e211 100644 --- a/pr/2582/docs/iroh/blobs/get/request/fn.get_chunk_probe.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/request/fn.get_hash_seq_and_sizes.html b/pr/2582/docs/iroh/blobs/get/request/fn.get_hash_seq_and_sizes.html
index 2360e5f611..8fb1f9c1db 100644
--- a/pr/2582/docs/iroh/blobs/get/request/fn.get_hash_seq_and_sizes.html
+++ b/pr/2582/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/2582/docs/iroh/blobs/get/request/fn.get_unverified_size.html b/pr/2582/docs/iroh/blobs/get/request/fn.get_unverified_size.html
index aa5e8da332..c8f08b5702 100644
--- a/pr/2582/docs/iroh/blobs/get/request/fn.get_unverified_size.html
+++ b/pr/2582/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/2582/docs/iroh/blobs/get/request/fn.get_verified_size.html b/pr/2582/docs/iroh/blobs/get/request/fn.get_verified_size.html index 23d8385ea5..efd7e623b6 100644 --- a/pr/2582/docs/iroh/blobs/get/request/fn.get_verified_size.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/request/fn.random_hash_seq_ranges.html b/pr/2582/docs/iroh/blobs/get/request/fn.random_hash_seq_ranges.html index e062f2bedf..4f01ebcfeb 100644 --- a/pr/2582/docs/iroh/blobs/get/request/fn.random_hash_seq_ranges.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/request/index.html b/pr/2582/docs/iroh/blobs/get/request/index.html index 850a52df1b..a3794a9b7a 100644 --- a/pr/2582/docs/iroh/blobs/get/request/index.html +++ b/pr/2582/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/2582/docs/iroh/blobs/get/struct.Stats.html b/pr/2582/docs/iroh/blobs/get/struct.Stats.html index bbd58ca23c..4e12cf5337 100644 --- a/pr/2582/docs/iroh/blobs/get/struct.Stats.html +++ b/pr/2582/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/2582/docs/iroh/blobs/hashseq/fn.parse_hash_seq.html b/pr/2582/docs/iroh/blobs/hashseq/fn.parse_hash_seq.html index 177b8f7e49..1d61f99f9a 100644 --- a/pr/2582/docs/iroh/blobs/hashseq/fn.parse_hash_seq.html +++ b/pr/2582/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/2582/docs/iroh/blobs/hashseq/index.html b/pr/2582/docs/iroh/blobs/hashseq/index.html index 1aefdbd210..cf53ed2ad2 100644 --- a/pr/2582/docs/iroh/blobs/hashseq/index.html +++ b/pr/2582/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/2582/docs/iroh/blobs/hashseq/struct.HashSeq.html b/pr/2582/docs/iroh/blobs/hashseq/struct.HashSeq.html index 7b7ad0123a..ada4f1d990 100644 --- a/pr/2582/docs/iroh/blobs/hashseq/struct.HashSeq.html +++ b/pr/2582/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/2582/docs/iroh/blobs/hashseq/struct.HashSeqIter.html b/pr/2582/docs/iroh/blobs/hashseq/struct.HashSeqIter.html index be45f52079..93f111ecf1 100644 --- a/pr/2582/docs/iroh/blobs/hashseq/struct.HashSeqIter.html +++ b/pr/2582/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/2582/docs/iroh/blobs/hashseq/struct.HashSeqStream.html b/pr/2582/docs/iroh/blobs/hashseq/struct.HashSeqStream.html index b6c94a43ea..ad26365606 100644 --- a/pr/2582/docs/iroh/blobs/hashseq/struct.HashSeqStream.html +++ b/pr/2582/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/2582/docs/iroh/blobs/index.html b/pr/2582/docs/iroh/blobs/index.html index 3f82274bf4..af1da66c15 100644 --- a/pr/2582/docs/iroh/blobs/index.html +++ b/pr/2582/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/2582/docs/iroh/blobs/protocol/index.html b/pr/2582/docs/iroh/blobs/protocol/index.html index e8858fcab0..b493a1dae3 100644 --- a/pr/2582/docs/iroh/blobs/protocol/index.html +++ b/pr/2582/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/2582/docs/iroh/blobs/protocol/struct.GetRequest.html b/pr/2582/docs/iroh/blobs/protocol/struct.GetRequest.html index 62e454ca0a..1f7877202f 100644 --- a/pr/2582/docs/iroh/blobs/protocol/struct.GetRequest.html +++ b/pr/2582/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/2582/docs/iroh/blobs/protocol/struct.NonEmptyRequestRangeSpecIter.html b/pr/2582/docs/iroh/blobs/protocol/struct.NonEmptyRequestRangeSpecIter.html index 6b559eddff..133402a508 100644 --- a/pr/2582/docs/iroh/blobs/protocol/struct.NonEmptyRequestRangeSpecIter.html +++ b/pr/2582/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/2582/docs/iroh/blobs/protocol/struct.RangeSpec.html b/pr/2582/docs/iroh/blobs/protocol/struct.RangeSpec.html index e7422e73fc..8a6736aad7 100644 --- a/pr/2582/docs/iroh/blobs/protocol/struct.RangeSpec.html +++ b/pr/2582/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/2582/docs/iroh/blobs/protocol/struct.RangeSpecSeq.html b/pr/2582/docs/iroh/blobs/protocol/struct.RangeSpecSeq.html index 22371884de..9d27ef44f8 100644 --- a/pr/2582/docs/iroh/blobs/protocol/struct.RangeSpecSeq.html +++ b/pr/2582/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/2582/docs/iroh/blobs/protocol/struct.UnknownErrorCode.html b/pr/2582/docs/iroh/blobs/protocol/struct.UnknownErrorCode.html index e0b459aeb1..5bfd63f34a 100644 --- a/pr/2582/docs/iroh/blobs/protocol/struct.UnknownErrorCode.html +++ b/pr/2582/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/2582/docs/iroh/blobs/provider/enum.AddProgress.html b/pr/2582/docs/iroh/blobs/provider/enum.AddProgress.html index e0b5b5361c..068b935f9a 100644 --- a/pr/2582/docs/iroh/blobs/provider/enum.AddProgress.html +++ b/pr/2582/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/2582/docs/iroh/blobs/provider/enum.Event.html b/pr/2582/docs/iroh/blobs/provider/enum.Event.html index 147621d4a1..81e32d5bc3 100644 --- a/pr/2582/docs/iroh/blobs/provider/enum.Event.html +++ b/pr/2582/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,
@@ -73,7 +73,7 @@
 
§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/2582/docs/iroh/blobs/provider/enum.SentStatus.html b/pr/2582/docs/iroh/blobs/provider/enum.SentStatus.html index 5bb624d02c..75d59f399e 100644 --- a/pr/2582/docs/iroh/blobs/provider/enum.SentStatus.html +++ b/pr/2582/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/2582/docs/iroh/blobs/provider/fn.handle_connection.html b/pr/2582/docs/iroh/blobs/provider/fn.handle_connection.html index ce4bc07961..cfa2cfe5e6 100644 --- a/pr/2582/docs/iroh/blobs/provider/fn.handle_connection.html +++ b/pr/2582/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, E>(
+handle_connection in iroh::blobs::provider - Rust

Function iroh::blobs::provider::handle_connection

pub async fn handle_connection<D, E>(
     connection: Connection,
     db: D,
     events: E,
diff --git a/pr/2582/docs/iroh/blobs/provider/fn.handle_get.html b/pr/2582/docs/iroh/blobs/provider/fn.handle_get.html
index 6bcad90766..7b4ca616a5 100644
--- a/pr/2582/docs/iroh/blobs/provider/fn.handle_get.html
+++ b/pr/2582/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, E>(
+handle_get in iroh::blobs::provider - Rust

Function iroh::blobs::provider::handle_get

pub async fn handle_get<D, E>(
     db: D,
     request: GetRequest,
     writer: ResponseWriter<E>
diff --git a/pr/2582/docs/iroh/blobs/provider/fn.read_request.html b/pr/2582/docs/iroh/blobs/provider/fn.read_request.html
index 4d33cfec0c..9cdd713008 100644
--- a/pr/2582/docs/iroh/blobs/provider/fn.read_request.html
+++ b/pr/2582/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/2582/docs/iroh/blobs/provider/fn.send_blob.html b/pr/2582/docs/iroh/blobs/provider/fn.send_blob.html index 2ed7949a3c..a5c8ac4e3d 100644 --- a/pr/2582/docs/iroh/blobs/provider/fn.send_blob.html +++ b/pr/2582/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/2582/docs/iroh/blobs/provider/fn.transfer_collection.html b/pr/2582/docs/iroh/blobs/provider/fn.transfer_collection.html
index 75867664cf..b54b337b6b 100644
--- a/pr/2582/docs/iroh/blobs/provider/fn.transfer_collection.html
+++ b/pr/2582/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, E>(
+transfer_collection in iroh::blobs::provider - Rust

Function iroh::blobs::provider::transfer_collection

pub async fn transfer_collection<D, E>(
     request: GetRequest,
     db: &D,
     writer: &mut ResponseWriter<E>,
diff --git a/pr/2582/docs/iroh/blobs/provider/index.html b/pr/2582/docs/iroh/blobs/provider/index.html
index 1a1a4a2b5f..cf284696a6 100644
--- a/pr/2582/docs/iroh/blobs/provider/index.html
+++ b/pr/2582/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 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/2582/docs/iroh/blobs/provider/struct.ResponseWriter.html b/pr/2582/docs/iroh/blobs/provider/struct.ResponseWriter.html index c31d8e09f6..2c412e83d9 100644 --- a/pr/2582/docs/iroh/blobs/provider/struct.ResponseWriter.html +++ b/pr/2582/docs/iroh/blobs/provider/struct.ResponseWriter.html @@ -1,6 +1,6 @@ -ResponseWriter in iroh::blobs::provider - Rust

Struct iroh::blobs::provider::ResponseWriter

source ·
pub struct ResponseWriter<E> { /* private fields */ }
Expand description

A helper struct that combines a quinn::SendStream with auxiliary information

-

Trait Implementations§

source§

impl<E> Debug for ResponseWriter<E>
where - E: Debug,

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<E> Freeze for ResponseWriter<E>
where +ResponseWriter in iroh::blobs::provider - Rust

Struct iroh::blobs::provider::ResponseWriter

pub struct ResponseWriter<E> { /* private fields */ }
Expand description

A helper struct that combines a quinn::SendStream with auxiliary information

+

Trait Implementations§

§

impl<E> Debug for ResponseWriter<E>
where + E: Debug,

§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<E> Freeze for ResponseWriter<E>
where E: Freeze,

§

impl<E> !RefUnwindSafe for ResponseWriter<E>

§

impl<E> Send for ResponseWriter<E>
where E: Send,

§

impl<E> Sync for ResponseWriter<E>
where E: Sync,

§

impl<E> Unpin for ResponseWriter<E>
where diff --git a/pr/2582/docs/iroh/blobs/provider/struct.TransferStats.html b/pr/2582/docs/iroh/blobs/provider/struct.TransferStats.html index 17757c21e6..5f5158e90e 100644 --- a/pr/2582/docs/iroh/blobs/provider/struct.TransferStats.html +++ b/pr/2582/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/2582/docs/iroh/blobs/provider/trait.EventSender.html b/pr/2582/docs/iroh/blobs/provider/trait.EventSender.html index f916cf9888..8993edb145 100644 --- a/pr/2582/docs/iroh/blobs/provider/trait.EventSender.html +++ b/pr/2582/docs/iroh/blobs/provider/trait.EventSender.html @@ -1,6 +1,6 @@ -EventSender in iroh::blobs::provider - Rust

Trait iroh::blobs::provider::EventSender

source ·
pub trait EventSender: Clone + Sync + Send + 'static {
+EventSender in iroh::blobs::provider - Rust

Trait iroh::blobs::provider::EventSender

pub trait EventSender: Clone + Sync + Send + 'static {
     // Required method
     fn send(&self, event: Event) -> Pin<Box<dyn Future<Output = ()> + Send>>;
 }
Expand description

Trait for sending events.

-

Required Methods§

source

fn send(&self, event: Event) -> Pin<Box<dyn Future<Output = ()> + Send>>

Send an event.

+

Required Methods§

fn send(&self, event: Event) -> Pin<Box<dyn Future<Output = ()> + Send>>

Send an event.

Object Safety§

This trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/pr/2582/docs/iroh/blobs/store/bao_tree/io/enum.DecodeError.html b/pr/2582/docs/iroh/blobs/store/bao_tree/io/enum.DecodeError.html index 678597ac3f..189b232005 100644 --- a/pr/2582/docs/iroh/blobs/store/bao_tree/io/enum.DecodeError.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceWriter.html b/pr/2582/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceWriter.html index 2690283825..b9b4109b6f 100644 --- a/pr/2582/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceWriter.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/bao_tree/io/sync/trait.ReadAt.html b/pr/2582/docs/iroh/blobs/store/bao_tree/io/sync/trait.ReadAt.html index b5cd11db11..ada0f6ed79 100644 --- a/pr/2582/docs/iroh/blobs/store/bao_tree/io/sync/trait.ReadAt.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/bao_tree/io/sync/trait.Size.html b/pr/2582/docs/iroh/blobs/store/bao_tree/io/sync/trait.Size.html index e1421e235b..4159ebe6d3 100644 --- a/pr/2582/docs/iroh/blobs/store/bao_tree/io/sync/trait.Size.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/bao_tree/io/sync/trait.WriteAt.html b/pr/2582/docs/iroh/blobs/store/bao_tree/io/sync/trait.WriteAt.html index 1392fefd88..6aa1759865 100644 --- a/pr/2582/docs/iroh/blobs/store/bao_tree/io/sync/trait.WriteAt.html +++ b/pr/2582/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§

impl WriteAt for &RandomAccessFile

source§

impl WriteAt for SparseMemFile

source§

impl WriteAt for RandomAccessFile

source§

impl<I> WriteAt for Slice<I>
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§

\ No newline at end of file diff --git a/pr/2582/docs/iroh/blobs/store/enum.BaoBlobSize.html b/pr/2582/docs/iroh/blobs/store/enum.BaoBlobSize.html index ce25379032..a0b4675f46 100644 --- a/pr/2582/docs/iroh/blobs/store/enum.BaoBlobSize.html +++ b/pr/2582/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§

§

impl Freeze for BaoBlobSize

§

impl RefUnwindSafe for BaoBlobSize

§

impl Send for BaoBlobSize

§

impl Sync for BaoBlobSize

§

impl Unpin for BaoBlobSize

§

impl UnwindSafe for BaoBlobSize

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§

§

impl Freeze for BaoBlobSize

§

impl RefUnwindSafe for BaoBlobSize

§

impl Send for BaoBlobSize

§

impl Sync for BaoBlobSize

§

impl Unpin for BaoBlobSize

§

impl UnwindSafe for BaoBlobSize

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/2582/docs/iroh/blobs/store/enum.ConsistencyCheckProgress.html b/pr/2582/docs/iroh/blobs/store/enum.ConsistencyCheckProgress.html index 06716dea26..2e059a5183 100644 --- a/pr/2582/docs/iroh/blobs/store/enum.ConsistencyCheckProgress.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/enum.EntryStatus.html b/pr/2582/docs/iroh/blobs/store/enum.EntryStatus.html index 96de747c9a..3550aa4df0 100644 --- a/pr/2582/docs/iroh/blobs/store/enum.EntryStatus.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/enum.Event.html b/pr/2582/docs/iroh/blobs/store/enum.Event.html index 7e72e09c08..fbb86911d6 100644 --- a/pr/2582/docs/iroh/blobs/store/enum.Event.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/enum.ExportFormat.html b/pr/2582/docs/iroh/blobs/store/enum.ExportFormat.html index cd96e47215..e3a99a118d 100644 --- a/pr/2582/docs/iroh/blobs/store/enum.ExportFormat.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/enum.ExportMode.html b/pr/2582/docs/iroh/blobs/store/enum.ExportMode.html index 188a33af76..e237b724aa 100644 --- a/pr/2582/docs/iroh/blobs/store/enum.ExportMode.html +++ b/pr/2582/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§

§

impl Freeze for ExportMode

§

impl RefUnwindSafe for ExportMode

§

impl Send for ExportMode

§

impl Sync for ExportMode

§

impl Unpin for ExportMode

§

impl UnwindSafe for ExportMode

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§

§

impl Freeze for ExportMode

§

impl RefUnwindSafe for ExportMode

§

impl Send for ExportMode

§

impl Sync for ExportMode

§

impl Unpin for ExportMode

§

impl UnwindSafe for ExportMode

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/2582/docs/iroh/blobs/store/enum.ExportProgress.html b/pr/2582/docs/iroh/blobs/store/enum.ExportProgress.html index abbfe52349..020f15edc3 100644 --- a/pr/2582/docs/iroh/blobs/store/enum.ExportProgress.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/enum.GcMarkEvent.html b/pr/2582/docs/iroh/blobs/store/enum.GcMarkEvent.html index 85850ae5df..10b49d5638 100644 --- a/pr/2582/docs/iroh/blobs/store/enum.GcMarkEvent.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/enum.GcSweepEvent.html b/pr/2582/docs/iroh/blobs/store/enum.GcSweepEvent.html index 3c9dafc970..f50dd12b64 100644 --- a/pr/2582/docs/iroh/blobs/store/enum.GcSweepEvent.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/enum.ImportMode.html b/pr/2582/docs/iroh/blobs/store/enum.ImportMode.html index 9d194a6ac4..832e9f1f46 100644 --- a/pr/2582/docs/iroh/blobs/store/enum.ImportMode.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/enum.ImportProgress.html b/pr/2582/docs/iroh/blobs/store/enum.ImportProgress.html index 6d2f5183cf..2f48e870d6 100644 --- a/pr/2582/docs/iroh/blobs/store/enum.ImportProgress.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/enum.ReportLevel.html b/pr/2582/docs/iroh/blobs/store/enum.ReportLevel.html index 4fcd535210..2a7a235eed 100644 --- a/pr/2582/docs/iroh/blobs/store/enum.ReportLevel.html +++ b/pr/2582/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§

§

impl Freeze for ReportLevel

§

impl RefUnwindSafe for ReportLevel

§

impl Send for ReportLevel

§

impl Sync for ReportLevel

§

impl Unpin for ReportLevel

§

impl UnwindSafe for ReportLevel

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/2582/docs/iroh/blobs/store/enum.ValidateProgress.html b/pr/2582/docs/iroh/blobs/store/enum.ValidateProgress.html index 8b2a925b12..70945d2685 100644 --- a/pr/2582/docs/iroh/blobs/store/enum.ValidateProgress.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/fs/index.html b/pr/2582/docs/iroh/blobs/store/fs/index.html index 0576e9709f..ff8d4807f1 100644 --- a/pr/2582/docs/iroh/blobs/store/fs/index.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/fs/struct.BatchOptions.html b/pr/2582/docs/iroh/blobs/store/fs/struct.BatchOptions.html index 5da84478c3..ee8f6c0666 100644 --- a/pr/2582/docs/iroh/blobs/store/fs/struct.BatchOptions.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/fs/struct.FlatStorePaths.html b/pr/2582/docs/iroh/blobs/store/fs/struct.FlatStorePaths.html index b6e5401f94..d387763e4e 100644 --- a/pr/2582/docs/iroh/blobs/store/fs/struct.FlatStorePaths.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/fs/struct.InlineOptions.html b/pr/2582/docs/iroh/blobs/store/fs/struct.InlineOptions.html index 8df767f66d..1cda1f2c98 100644 --- a/pr/2582/docs/iroh/blobs/store/fs/struct.InlineOptions.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/fs/struct.Options.html b/pr/2582/docs/iroh/blobs/store/fs/struct.Options.html index e12510104b..5bf6b716e0 100644 --- a/pr/2582/docs/iroh/blobs/store/fs/struct.Options.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/fs/struct.PathOptions.html b/pr/2582/docs/iroh/blobs/store/fs/struct.PathOptions.html index 4aa16aa48a..dae85e0907 100644 --- a/pr/2582/docs/iroh/blobs/store/fs/struct.PathOptions.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/fs/struct.Store.html b/pr/2582/docs/iroh/blobs/store/fs/struct.Store.html index 8e0ac7f0a7..889d37a6bd 100644 --- a/pr/2582/docs/iroh/blobs/store/fs/struct.Store.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/fs/type.Entry.html b/pr/2582/docs/iroh/blobs/store/fs/type.Entry.html index 192637bb60..002d29dd86 100644 --- a/pr/2582/docs/iroh/blobs/store/fs/type.Entry.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/index.html b/pr/2582/docs/iroh/blobs/store/index.html index 02b5f95b3a..6fa2ca7672 100644 --- a/pr/2582/docs/iroh/blobs/store/index.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/mem/index.html b/pr/2582/docs/iroh/blobs/store/mem/index.html index c9df53dd11..4888f5351d 100644 --- a/pr/2582/docs/iroh/blobs/store/mem/index.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/mem/struct.Entry.html b/pr/2582/docs/iroh/blobs/store/mem/struct.Entry.html index a8e995ab35..a04f76f3e7 100644 --- a/pr/2582/docs/iroh/blobs/store/mem/struct.Entry.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/mem/struct.Store.html b/pr/2582/docs/iroh/blobs/store/mem/struct.Store.html index 3634fcc4cd..620fc9281d 100644 --- a/pr/2582/docs/iroh/blobs/store/mem/struct.Store.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/readonly_mem/index.html b/pr/2582/docs/iroh/blobs/store/readonly_mem/index.html index 05f768b8ab..287a99c51a 100644 --- a/pr/2582/docs/iroh/blobs/store/readonly_mem/index.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/readonly_mem/struct.Entry.html b/pr/2582/docs/iroh/blobs/store/readonly_mem/struct.Entry.html index c8eebb2d0a..ce0141a26e 100644 --- a/pr/2582/docs/iroh/blobs/store/readonly_mem/struct.Entry.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/readonly_mem/struct.Store.html b/pr/2582/docs/iroh/blobs/store/readonly_mem/struct.Store.html index 72bd9396d7..154481283a 100644 --- a/pr/2582/docs/iroh/blobs/store/readonly_mem/struct.Store.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/trait.BaoBatchWriter.html b/pr/2582/docs/iroh/blobs/store/trait.BaoBatchWriter.html index 7875f57141..cb68929d77 100644 --- a/pr/2582/docs/iroh/blobs/store/trait.BaoBatchWriter.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/trait.Map.html b/pr/2582/docs/iroh/blobs/store/trait.Map.html index 06eb16157c..f4538ed7f8 100644 --- a/pr/2582/docs/iroh/blobs/store/trait.Map.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/trait.MapEntry.html b/pr/2582/docs/iroh/blobs/store/trait.MapEntry.html index cd9aa4d5e1..53e29ab248 100644 --- a/pr/2582/docs/iroh/blobs/store/trait.MapEntry.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/trait.MapEntryMut.html b/pr/2582/docs/iroh/blobs/store/trait.MapEntryMut.html index 8c54a6516a..fe7bd80da1 100644 --- a/pr/2582/docs/iroh/blobs/store/trait.MapEntryMut.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/trait.MapMut.html b/pr/2582/docs/iroh/blobs/store/trait.MapMut.html index 2f8c60454c..301a4b740a 100644 --- a/pr/2582/docs/iroh/blobs/store/trait.MapMut.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/trait.ReadableStore.html b/pr/2582/docs/iroh/blobs/store/trait.ReadableStore.html index 053d12b5bb..7bcbcf2429 100644 --- a/pr/2582/docs/iroh/blobs/store/trait.ReadableStore.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/trait.Store.html b/pr/2582/docs/iroh/blobs/store/trait.Store.html index 59b988d633..156e45f408 100644 --- a/pr/2582/docs/iroh/blobs/store/trait.Store.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/type.DbIter.html b/pr/2582/docs/iroh/blobs/store/type.DbIter.html index 7443442d3f..eef343dd41 100644 --- a/pr/2582/docs/iroh/blobs/store/type.DbIter.html +++ b/pr/2582/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/2582/docs/iroh/blobs/store/type.ExportProgressCb.html b/pr/2582/docs/iroh/blobs/store/type.ExportProgressCb.html index 80fee16e23..ec8f6b1338 100644 --- a/pr/2582/docs/iroh/blobs/store/type.ExportProgressCb.html +++ b/pr/2582/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/2582/docs/iroh/blobs/struct.Hash.html b/pr/2582/docs/iroh/blobs/struct.Hash.html index 708c699cf8..92d677fb3c 100644 --- a/pr/2582/docs/iroh/blobs/struct.Hash.html +++ b/pr/2582/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/2582/docs/iroh/blobs/struct.HashAndFormat.html b/pr/2582/docs/iroh/blobs/struct.HashAndFormat.html index 94a65a0f48..8bd32306d1 100644 --- a/pr/2582/docs/iroh/blobs/struct.HashAndFormat.html +++ b/pr/2582/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/2582/docs/iroh/blobs/struct.Tag.html b/pr/2582/docs/iroh/blobs/struct.Tag.html index 1a329c5665..a6e5e7a80f 100644 --- a/pr/2582/docs/iroh/blobs/struct.Tag.html +++ b/pr/2582/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/2582/docs/iroh/blobs/struct.TempTag.html b/pr/2582/docs/iroh/blobs/struct.TempTag.html index fe918db004..3f870ea734 100644 --- a/pr/2582/docs/iroh/blobs/struct.TempTag.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/enum.MemOrFile.html b/pr/2582/docs/iroh/blobs/util/enum.MemOrFile.html index f4bd19825b..922f1eda52 100644 --- a/pr/2582/docs/iroh/blobs/util/enum.MemOrFile.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/enum.SetTagOption.html b/pr/2582/docs/iroh/blobs/util/enum.SetTagOption.html index 1f1c39dae5..cdb0a2d49b 100644 --- a/pr/2582/docs/iroh/blobs/util/enum.SetTagOption.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/fn.total_bytes.html b/pr/2582/docs/iroh/blobs/util/fn.total_bytes.html index dce87a14cc..11bf67c270 100644 --- a/pr/2582/docs/iroh/blobs/util/fn.total_bytes.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/index.html b/pr/2582/docs/iroh/blobs/util/index.html index c6d58d34b1..063895b6c1 100644 --- a/pr/2582/docs/iroh/blobs/util/index.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/local_pool/enum.PanicMode.html b/pr/2582/docs/iroh/blobs/util/local_pool/enum.PanicMode.html index 41203570e3..06227d6f9e 100644 --- a/pr/2582/docs/iroh/blobs/util/local_pool/enum.PanicMode.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/local_pool/enum.SpawnError.html b/pr/2582/docs/iroh/blobs/util/local_pool/enum.SpawnError.html index 0a6776ffda..17986ae626 100644 --- a/pr/2582/docs/iroh/blobs/util/local_pool/enum.SpawnError.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/local_pool/index.html b/pr/2582/docs/iroh/blobs/util/local_pool/index.html index c40fcc1bd9..8c499191ef 100644 --- a/pr/2582/docs/iroh/blobs/util/local_pool/index.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/local_pool/struct.Config.html b/pr/2582/docs/iroh/blobs/util/local_pool/struct.Config.html index 32d6c9045d..6e1a3afc3a 100644 --- a/pr/2582/docs/iroh/blobs/util/local_pool/struct.Config.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/local_pool/struct.LocalPool.html b/pr/2582/docs/iroh/blobs/util/local_pool/struct.LocalPool.html index 159e37d08c..bd1dd35dad 100644 --- a/pr/2582/docs/iroh/blobs/util/local_pool/struct.LocalPool.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/local_pool/struct.LocalPoolHandle.html b/pr/2582/docs/iroh/blobs/util/local_pool/struct.LocalPoolHandle.html index 9a941322d2..e6c0d13a1c 100644 --- a/pr/2582/docs/iroh/blobs/util/local_pool/struct.LocalPoolHandle.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/local_pool/struct.Run.html b/pr/2582/docs/iroh/blobs/util/local_pool/struct.Run.html index 99b0f655fd..41aeaceed0 100644 --- a/pr/2582/docs/iroh/blobs/util/local_pool/struct.Run.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/progress/enum.ProgressSendError.html b/pr/2582/docs/iroh/blobs/util/progress/enum.ProgressSendError.html index 397fbec519..9c44769396 100644 --- a/pr/2582/docs/iroh/blobs/util/progress/enum.ProgressSendError.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/progress/index.html b/pr/2582/docs/iroh/blobs/util/progress/index.html index f2e0edb805..3b4699e7ee 100644 --- a/pr/2582/docs/iroh/blobs/util/progress/index.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/progress/struct.AsyncChannelProgressSender.html b/pr/2582/docs/iroh/blobs/util/progress/struct.AsyncChannelProgressSender.html index 1a3967e6db..f90ee6b3b4 100644 --- a/pr/2582/docs/iroh/blobs/util/progress/struct.AsyncChannelProgressSender.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/progress/struct.BoxedProgressSender.html b/pr/2582/docs/iroh/blobs/util/progress/struct.BoxedProgressSender.html index 064ff6658b..4874c00f34 100644 --- a/pr/2582/docs/iroh/blobs/util/progress/struct.BoxedProgressSender.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/progress/struct.FallibleProgressSliceWriter.html b/pr/2582/docs/iroh/blobs/util/progress/struct.FallibleProgressSliceWriter.html index 3a8b801ac5..999a6f8b74 100644 --- a/pr/2582/docs/iroh/blobs/util/progress/struct.FallibleProgressSliceWriter.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/progress/struct.FlumeProgressSender.html b/pr/2582/docs/iroh/blobs/util/progress/struct.FlumeProgressSender.html index 9c1ade2897..da6559fe09 100644 --- a/pr/2582/docs/iroh/blobs/util/progress/struct.FlumeProgressSender.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/progress/struct.IgnoreProgressSender.html b/pr/2582/docs/iroh/blobs/util/progress/struct.IgnoreProgressSender.html index 5d7565ed35..211e70d1f5 100644 --- a/pr/2582/docs/iroh/blobs/util/progress/struct.IgnoreProgressSender.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/progress/struct.ProgressSliceWriter.html b/pr/2582/docs/iroh/blobs/util/progress/struct.ProgressSliceWriter.html index c63b17a18d..cf92ea5ce7 100644 --- a/pr/2582/docs/iroh/blobs/util/progress/struct.ProgressSliceWriter.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/progress/struct.WithFilterMap.html b/pr/2582/docs/iroh/blobs/util/progress/struct.WithFilterMap.html index e28b8485b8..081c41a5b9 100644 --- a/pr/2582/docs/iroh/blobs/util/progress/struct.WithFilterMap.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/progress/struct.WithMap.html b/pr/2582/docs/iroh/blobs/util/progress/struct.WithMap.html index 0a10604766..d8c259d74b 100644 --- a/pr/2582/docs/iroh/blobs/util/progress/struct.WithMap.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/progress/trait.IdGenerator.html b/pr/2582/docs/iroh/blobs/util/progress/trait.IdGenerator.html index 83128aa12c..7061156f64 100644 --- a/pr/2582/docs/iroh/blobs/util/progress/trait.IdGenerator.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/progress/trait.ProgressSender.html b/pr/2582/docs/iroh/blobs/util/progress/trait.ProgressSender.html index c0991fb053..aebc831d36 100644 --- a/pr/2582/docs/iroh/blobs/util/progress/trait.ProgressSender.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/progress/type.ProgressSendResult.html b/pr/2582/docs/iroh/blobs/util/progress/type.ProgressSendResult.html index b8c108c4e0..17facae9b3 100644 --- a/pr/2582/docs/iroh/blobs/util/progress/type.ProgressSendResult.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/struct.SparseMemFile.html b/pr/2582/docs/iroh/blobs/util/struct.SparseMemFile.html
index 11a2205e09..57afc3567c 100644
--- a/pr/2582/docs/iroh/blobs/util/struct.SparseMemFile.html
+++ b/pr/2582/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/2582/docs/iroh/blobs/util/struct.Tag.html b/pr/2582/docs/iroh/blobs/util/struct.Tag.html index 17061bad7e..c6f3490e15 100644 --- a/pr/2582/docs/iroh/blobs/util/struct.Tag.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/struct.TempTag.html b/pr/2582/docs/iroh/blobs/util/struct.TempTag.html index 1f5a076032..eca85b258b 100644 --- a/pr/2582/docs/iroh/blobs/util/struct.TempTag.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/trait.TagCounter.html b/pr/2582/docs/iroh/blobs/util/trait.TagCounter.html index f26d9f7288..ebdaef7adb 100644 --- a/pr/2582/docs/iroh/blobs/util/trait.TagCounter.html +++ b/pr/2582/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/2582/docs/iroh/blobs/util/trait.TagDrop.html b/pr/2582/docs/iroh/blobs/util/trait.TagDrop.html index 452e85f902..c417b6bb3f 100644 --- a/pr/2582/docs/iroh/blobs/util/trait.TagDrop.html +++ b/pr/2582/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/2582/docs/iroh/client/node/struct.Client.html b/pr/2582/docs/iroh/client/node/struct.Client.html index d5c10ca8dd..4c2dce6f7e 100644 --- a/pr/2582/docs/iroh/client/node/struct.Client.html +++ b/pr/2582/docs/iroh/client/node/struct.Client.html @@ -16,7 +16,7 @@ provide address information about other nodes to your node.

// Create an iroh node: let iroh = iroh::node::Node::memory().spawn().await?; // Create a node client, a client that gives you access to `node` subsystem -let node_client = node.client().node(); +let node_client = iroh.client().node(); // Get the node status, including its node id, addresses, the version of iroh // it is running, and more. let status = node_client.status().await?; @@ -44,7 +44,7 @@ node_client.add_node_addr(addr).await// Create an iroh node: let iroh = iroh::node::Node::memory().spawn().await?; // Create a client: -let client = node.client(); +let client = iroh.client(); // Get the node status, including its node id, addresses, the version of iroh // it is running, and more. let status = client.status().await?; diff --git a/pr/2582/docs/iroh/net/dialer/struct.Dialer.html b/pr/2582/docs/iroh/net/dialer/struct.Dialer.html index 0a052627d3..1473c40558 100644 --- a/pr/2582/docs/iroh/net/dialer/struct.Dialer.html +++ b/pr/2582/docs/iroh/net/dialer/struct.Dialer.html @@ -11,7 +11,7 @@ pending connect futures and emits finished connect results.

source

pub fn is_pending(&self, node: PublicKey) -> bool

Checks if a node is currently being dialed.

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.

-

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§

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.
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/2582/docs/iroh/net/endpoint/enum.ConnectionError.html b/pr/2582/docs/iroh/net/endpoint/enum.ConnectionError.html index f3ad39b8ca..634e883594 100644 --- a/pr/2582/docs/iroh/net/endpoint/enum.ConnectionError.html +++ b/pr/2582/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/2582/docs/iroh/net/endpoint/enum.ConnectionType.html b/pr/2582/docs/iroh/net/endpoint/enum.ConnectionType.html index dec52efa66..7ca5b1d366 100644 --- a/pr/2582/docs/iroh/net/endpoint/enum.ConnectionType.html +++ b/pr/2582/docs/iroh/net/endpoint/enum.ConnectionType.html @@ -1,4 +1,4 @@ -ConnectionType in iroh::net::endpoint - Rust

Enum iroh::net::endpoint::ConnectionType

source ·
pub enum ConnectionType {
+ConnectionType in iroh::net::endpoint - Rust

Enum iroh::net::endpoint::ConnectionType

source ·
pub enum ConnectionType {
     Direct(SocketAddr),
     Relay(RelayUrl),
     Mixed(SocketAddr, RelayUrl),
@@ -10,16 +10,16 @@
 

This is the case if we do have a UDP address, but are missing a recent confirmation that the address works.

§

None

We have no verified connection to this PublicKey

-

Trait Implementations§

source§

impl Clone for ConnectionType

source§

fn clone(&self) -> ConnectionType

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 ConnectionType

source§

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

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

impl<'de> Deserialize<'de> for ConnectionType

Trait Implementations§

source§

impl Clone for ConnectionType

source§

fn clone(&self) -> ConnectionType

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 ConnectionType

source§

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

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

impl<'de> Deserialize<'de> for ConnectionType

source§

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

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

impl Display for ConnectionType

source§

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

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

impl PartialEq for ConnectionType

source§

fn eq(&self, other: &ConnectionType) -> 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
source§

impl Display for ConnectionType

source§

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

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

impl PartialEq for ConnectionType

source§

fn eq(&self, other: &ConnectionType) -> 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 ConnectionType

source§

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

source§

impl Serialize for ConnectionType

source§

fn serialize<__S>( &self, __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 ConnectionType

source§

impl StructuralPartialEq for ConnectionType

Auto Trait Implementations§

Blanket Implementations§

source§

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

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

impl Eq for ConnectionType

source§

impl StructuralPartialEq for ConnectionType

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/2582/docs/iroh/net/endpoint/enum.ControlMsg.html b/pr/2582/docs/iroh/net/endpoint/enum.ControlMsg.html index 35b0d4b911..f38ffa7446 100644 --- a/pr/2582/docs/iroh/net/endpoint/enum.ControlMsg.html +++ b/pr/2582/docs/iroh/net/endpoint/enum.ControlMsg.html @@ -1,4 +1,4 @@ -ControlMsg in iroh::net::endpoint - Rust

Enum iroh::net::endpoint::ControlMsg

source ·
pub enum ControlMsg {
+ControlMsg in iroh::net::endpoint - Rust

Enum iroh::net::endpoint::ControlMsg

source ·
pub enum ControlMsg {
     Ping,
     Pong,
     CallMeMaybe,
@@ -6,16 +6,16 @@
 

Variants§

§

Ping

We received a Ping from the node.

§

Pong

We received a Pong from the node.

§

CallMeMaybe

We received a CallMeMaybe.

-

Trait Implementations§

source§

impl Clone for ControlMsg

source§

fn clone(&self) -> ControlMsg

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 ControlMsg

source§

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

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

impl<'de> Deserialize<'de> for ControlMsg

Trait Implementations§

source§

impl Clone for ControlMsg

source§

fn clone(&self) -> ControlMsg

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 ControlMsg

source§

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

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

impl<'de> Deserialize<'de> for ControlMsg

source§

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

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

impl Display for ControlMsg

source§

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

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

impl PartialEq for ControlMsg

source§

fn eq(&self, other: &ControlMsg) -> 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
source§

impl Display for ControlMsg

source§

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

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

impl PartialEq for ControlMsg

source§

fn eq(&self, other: &ControlMsg) -> 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 ControlMsg

source§

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

source§

impl Serialize for ControlMsg

source§

fn serialize<__S>( &self, __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 ControlMsg

source§

impl Eq for ControlMsg

source§

impl StructuralPartialEq for ControlMsg

Auto Trait Implementations§

Blanket Implementations§

source§

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

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

impl Copy for ControlMsg

source§

impl Eq for ControlMsg

source§

impl StructuralPartialEq for ControlMsg

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/2582/docs/iroh/net/endpoint/enum.DirectAddrType.html b/pr/2582/docs/iroh/net/endpoint/enum.DirectAddrType.html index b69a8d95d4..b0c765ba9a 100644 --- a/pr/2582/docs/iroh/net/endpoint/enum.DirectAddrType.html +++ b/pr/2582/docs/iroh/net/endpoint/enum.DirectAddrType.html @@ -1,4 +1,4 @@ -DirectAddrType in iroh::net::endpoint - Rust

Enum iroh::net::endpoint::DirectAddrType

source ·
pub enum DirectAddrType {
+DirectAddrType in iroh::net::endpoint - Rust

Enum iroh::net::endpoint::DirectAddrType

source ·
pub enum DirectAddrType {
     Unknown,
     Local,
     Stun,
@@ -20,17 +20,17 @@ get a publicly routable direct address.

It is possible to configure iroh-net to bound to a specific port and independently configure the router to forward this port to the iroh-net node. This indicates a situation like this, which still uses STUN to discover the public address.

-

Trait Implementations§

source§

impl Clone for DirectAddrType

source§

fn clone(&self) -> DirectAddrType

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 DirectAddrType

source§

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

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

impl Display for DirectAddrType

source§

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

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

impl Hash for DirectAddrType

source§

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

Trait Implementations§

source§

impl Clone for DirectAddrType

source§

fn clone(&self) -> DirectAddrType

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 DirectAddrType

source§

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

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

impl Display for DirectAddrType

source§

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

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

impl Hash for DirectAddrType

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 Ord for DirectAddrType

source§

fn cmp(&self, other: &DirectAddrType) -> 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,

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

impl Ord for DirectAddrType

source§

fn cmp(&self, other: &DirectAddrType) -> 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 DirectAddrType

source§

fn eq(&self, other: &DirectAddrType) -> 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
source§

impl PartialEq for DirectAddrType

source§

fn eq(&self, other: &DirectAddrType) -> 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 DirectAddrType

source§

fn partial_cmp(&self, other: &DirectAddrType) -> 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.
source§

impl PartialOrd for DirectAddrType

source§

fn partial_cmp(&self, other: &DirectAddrType) -> 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 Copy for DirectAddrType

source§

impl Eq for DirectAddrType

source§

impl StructuralPartialEq for DirectAddrType

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +operator. Read more

source§

impl Copy for DirectAddrType

source§

impl Eq for DirectAddrType

source§

impl StructuralPartialEq for DirectAddrType

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/2582/docs/iroh/net/endpoint/enum.ReadError.html b/pr/2582/docs/iroh/net/endpoint/enum.ReadError.html index c127f54b04..b5ad5db8c9 100644 --- a/pr/2582/docs/iroh/net/endpoint/enum.ReadError.html +++ b/pr/2582/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/2582/docs/iroh/net/endpoint/enum.WriteError.html b/pr/2582/docs/iroh/net/endpoint/enum.WriteError.html index 576a46a134..8600c2b8e1 100644 --- a/pr/2582/docs/iroh/net/endpoint/enum.WriteError.html +++ b/pr/2582/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/2582/docs/iroh/net/endpoint/struct.ConnectionInfo.html b/pr/2582/docs/iroh/net/endpoint/struct.ConnectionInfo.html index 5f9c6d9819..dddb5eea76 100644 --- a/pr/2582/docs/iroh/net/endpoint/struct.ConnectionInfo.html +++ b/pr/2582/docs/iroh/net/endpoint/struct.ConnectionInfo.html @@ -1,4 +1,4 @@ -ConnectionInfo in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::ConnectionInfo

source ·
pub struct ConnectionInfo {
+ConnectionInfo in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::ConnectionInfo

source ·
pub struct ConnectionInfo {
     pub id: usize,
     pub node_id: PublicKey,
     pub relay_url: Option<RelayUrlInfo>,
@@ -15,21 +15,21 @@ have about that address and the last time the address was used.

§conn_type: ConnectionType

The type of connection we have to the node, either direct or over relay.

§latency: Option<Duration>

The latency of the conn_type.

§last_used: Option<Duration>

Duration since the last time this node was used.

-

Implementations§

source§

impl NodeInfo

source

pub fn last_received(&self) -> Option<Duration>

Get the duration since the last activity we received from this endpoint +

Implementations§

source§

impl NodeInfo

source

pub fn last_received(&self) -> Option<Duration>

Get the duration since the last activity we received from this endpoint on any of its direct addresses.

-
source

pub fn last_alive_relay(&self) -> Option<Duration>

Get the duration since the last activity we received from this endpoint +

source

pub fn last_alive_relay(&self) -> Option<Duration>

Get the duration since the last activity we received from this endpoint on the relay url.

-
source

pub fn has_send_address(&self) -> bool

Returns true if this info contains either a relay URL or at least one direct address.

-

Trait Implementations§

source§

impl Clone for NodeInfo

source§

fn clone(&self) -> NodeInfo

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 NodeInfo

source§

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

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

impl<'de> Deserialize<'de> for NodeInfo

source

pub fn has_send_address(&self) -> bool

Returns true if this info contains either a relay URL or at least one direct address.

+

Trait Implementations§

source§

impl Clone for NodeInfo

source§

fn clone(&self) -> NodeInfo

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 NodeInfo

source§

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

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

impl<'de> Deserialize<'de> for NodeInfo

source§

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

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

impl From<NodeInfo> for NodeAddr

source§

fn from(info: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl PartialEq for NodeInfo

source§

fn eq(&self, other: &NodeInfo) -> 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
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(info: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl PartialEq for NodeInfo

source§

fn eq(&self, other: &NodeInfo) -> 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 NodeInfo

source§

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

source§

impl Serialize for NodeInfo

source§

fn serialize<__S>( &self, __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 NodeInfo

source§

impl StructuralPartialEq for NodeInfo

Auto Trait Implementations§

Blanket Implementations§

source§

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

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

impl Eq for NodeInfo

source§

impl StructuralPartialEq for NodeInfo

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/2582/docs/iroh/net/endpoint/struct.ConnectionTypeStream.html b/pr/2582/docs/iroh/net/endpoint/struct.ConnectionTypeStream.html index 28630586ab..6d4ef36122 100644 --- a/pr/2582/docs/iroh/net/endpoint/struct.ConnectionTypeStream.html +++ b/pr/2582/docs/iroh/net/endpoint/struct.ConnectionTypeStream.html @@ -1,5 +1,5 @@ -ConnectionTypeStream in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::ConnectionTypeStream

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

Stream returning ConnectionTypes

-

Trait Implementations§

source§

impl Debug for ConnectionTypeStream

source§

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

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

impl Stream for ConnectionTypeStream

§

type Item = ConnectionType

Values yielded by the stream.
source§

fn poll_next( +ConnectionTypeStream in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::ConnectionTypeStream

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

Stream returning ConnectionTypes

+

Trait Implementations§

source§

impl Debug for ConnectionTypeStream

source§

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

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

impl Stream for ConnectionTypeStream

§

type Item = ConnectionType

Values yielded by the stream.
source§

fn poll_next( self: Pin<&mut ConnectionTypeStream>, cx: &mut Context<'_> ) -> Poll<Option<<ConnectionTypeStream as Stream>::Item>>

Attempt to pull out the next value of this stream, registering the diff --git a/pr/2582/docs/iroh/net/endpoint/struct.DirectAddr.html b/pr/2582/docs/iroh/net/endpoint/struct.DirectAddr.html index fa4842da09..6a138944c5 100644 --- a/pr/2582/docs/iroh/net/endpoint/struct.DirectAddr.html +++ b/pr/2582/docs/iroh/net/endpoint/struct.DirectAddr.html @@ -1,4 +1,4 @@ -DirectAddr in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::DirectAddr

source ·
pub struct DirectAddr {
+DirectAddr in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::DirectAddr

source ·
pub struct DirectAddr {
     pub addr: SocketAddr,
     pub typ: DirectAddrType,
 }
Expand description

A direct address on which an iroh-node might be contactable.

@@ -7,17 +7,17 @@ contacted. These can come from various sources depending on the network topolog iroh-net node, see DirectAddrType for the several kinds of sources.

Fields§

§addr: SocketAddr

The address.

§typ: DirectAddrType

The origin of this direct address.

-

Trait Implementations§

source§

impl Clone for DirectAddr

source§

fn clone(&self) -> DirectAddr

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 DirectAddr

source§

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

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

impl Hash for DirectAddr

source§

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

Trait Implementations§

source§

impl Clone for DirectAddr

source§

fn clone(&self) -> DirectAddr

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 DirectAddr

source§

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

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

impl Hash for DirectAddr

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 Ord for DirectAddr

source§

fn cmp(&self, other: &DirectAddr) -> 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,

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

impl Ord for DirectAddr

source§

fn cmp(&self, other: &DirectAddr) -> 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 DirectAddr

source§

fn eq(&self, other: &DirectAddr) -> 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
source§

impl PartialEq for DirectAddr

source§

fn eq(&self, other: &DirectAddr) -> 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 DirectAddr

source§

fn partial_cmp(&self, other: &DirectAddr) -> 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.
source§

impl PartialOrd for DirectAddr

source§

fn partial_cmp(&self, other: &DirectAddr) -> 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 Eq for DirectAddr

source§

impl StructuralPartialEq for DirectAddr

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +operator. Read more

source§

impl Eq for DirectAddr

source§

impl StructuralPartialEq for DirectAddr

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/2582/docs/iroh/net/endpoint/struct.DirectAddrInfo.html b/pr/2582/docs/iroh/net/endpoint/struct.DirectAddrInfo.html index 50e11fc653..a295fd5b4c 100644 --- a/pr/2582/docs/iroh/net/endpoint/struct.DirectAddrInfo.html +++ b/pr/2582/docs/iroh/net/endpoint/struct.DirectAddrInfo.html @@ -1,4 +1,4 @@ -DirectAddrInfo in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::DirectAddrInfo

source ·
pub struct DirectAddrInfo {
+DirectAddrInfo in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::DirectAddrInfo

source ·
pub struct DirectAddrInfo {
     pub addr: SocketAddr,
     pub latency: Option<Duration>,
     pub last_control: Option<(Duration, ControlMsg)>,
@@ -10,16 +10,16 @@
 
§last_control: Option<(Duration, ControlMsg)>

Last control message received by this node.

§last_payload: Option<Duration>

How long ago was the last payload message for this node.

§last_alive: Option<Duration>

When was this connection last alive, if ever.

-

Trait Implementations§

source§

impl Clone for DirectAddrInfo

source§

fn clone(&self) -> DirectAddrInfo

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 DirectAddrInfo

source§

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

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

impl<'de> Deserialize<'de> for DirectAddrInfo

Trait Implementations§

source§

impl Clone for DirectAddrInfo

source§

fn clone(&self) -> DirectAddrInfo

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 DirectAddrInfo

source§

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

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

impl<'de> Deserialize<'de> for DirectAddrInfo

source§

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

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

impl PartialEq for DirectAddrInfo

source§

fn eq(&self, other: &DirectAddrInfo) -> 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
source§

impl PartialEq for DirectAddrInfo

source§

fn eq(&self, other: &DirectAddrInfo) -> 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 DirectAddrInfo

source§

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

source§

impl Serialize for DirectAddrInfo

source§

fn serialize<__S>( &self, __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 DirectAddrInfo

source§

impl StructuralPartialEq for DirectAddrInfo

Auto Trait Implementations§

Blanket Implementations§

source§

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

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

impl Eq for DirectAddrInfo

source§

impl StructuralPartialEq for DirectAddrInfo

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/2582/docs/iroh/net/endpoint/struct.DirectAddrsStream.html b/pr/2582/docs/iroh/net/endpoint/struct.DirectAddrsStream.html index 5badbb638b..9eb3dc6bc6 100644 --- a/pr/2582/docs/iroh/net/endpoint/struct.DirectAddrsStream.html +++ b/pr/2582/docs/iroh/net/endpoint/struct.DirectAddrsStream.html @@ -1,5 +1,5 @@ -DirectAddrsStream in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::DirectAddrsStream

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

Stream returning local endpoints as they change.

-

Trait Implementations§

source§

impl Debug for DirectAddrsStream

source§

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

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

impl Stream for DirectAddrsStream

§

type Item = Vec<DirectAddr>

Values yielded by the stream.
source§

fn poll_next( +DirectAddrsStream in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::DirectAddrsStream

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

Stream returning local endpoints as they change.

+

Trait Implementations§

source§

impl Debug for DirectAddrsStream

source§

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

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

impl Stream for DirectAddrsStream

§

type Item = Vec<DirectAddr>

Values yielded by the stream.
source§

fn poll_next( self: Pin<&mut DirectAddrsStream>, cx: &mut Context<'_> ) -> Poll<Option<<DirectAddrsStream as Stream>::Item>>

Attempt to pull out the next value of this stream, registering the diff --git a/pr/2582/docs/iroh/net/endpoint/struct.NodeAddr.html b/pr/2582/docs/iroh/net/endpoint/struct.NodeAddr.html index ac6502ef2d..75e7900463 100644 --- a/pr/2582/docs/iroh/net/endpoint/struct.NodeAddr.html +++ b/pr/2582/docs/iroh/net/endpoint/struct.NodeAddr.html @@ -45,7 +45,7 @@ received from another API. E.g. to ensure a Trait Implementations§

source§

impl Clone for NodeAddr

source§

fn clone(&self) -> NodeAddr

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 NodeAddr

source§

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

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

impl<'de> Deserialize<'de> for NodeAddr

source§

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

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

impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

source§

fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(info: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<PublicKey> for NodeAddr

source§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
source§

impl Ord for NodeAddr

source§

fn cmp(&self, other: &NodeAddr) -> 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<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

source§

fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(info: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<PublicKey> for NodeAddr

source§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
source§

impl Ord for NodeAddr

source§

fn cmp(&self, other: &NodeAddr) -> 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 NodeAddr

source§

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

This method tests for self and other values to be equal, and is used diff --git a/pr/2582/docs/iroh/net/endpoint/struct.VarInt.html b/pr/2582/docs/iroh/net/endpoint/struct.VarInt.html index 3dc7cbfbea..b5d2ab4cf5 100644 --- a/pr/2582/docs/iroh/net/endpoint/struct.VarInt.html +++ b/pr/2582/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/2582/docs/iroh/net/relay/struct.RelayUrl.html b/pr/2582/docs/iroh/net/relay/struct.RelayUrl.html index 0c6438a0b4..8570d299c1 100644 --- a/pr/2582/docs/iroh/net/relay/struct.RelayUrl.html +++ b/pr/2582/docs/iroh/net/relay/struct.RelayUrl.html @@ -447,7 +447,7 @@ to change the inner later.

§

type Target = Url

The resulting type after dereferencing.
source§

fn deref(&self) -> &<RelayUrl as Deref>::Target

Dereferences the value.

source§

impl<'de> Deserialize<'de> for RelayUrl

source§

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

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

impl Display for RelayUrl

source§

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

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

impl From<RelayUrl> for Url

source§

fn from(value: RelayUrl) -> Url

Converts to this type from the input type.
source§

impl From<RelayUrlInfo> for RelayUrl

source§

fn from(value: RelayUrlInfo) -> RelayUrl

Converts to this type from the input type.
source§

impl From<Url> for RelayUrl

source§

fn from(url: Url) -> RelayUrl

Converts to this type from the input type.
source§

impl FromStr for RelayUrl

Support for parsing strings directly.

+ __D: Deserializer<'de>,

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

impl Display for RelayUrl

source§

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

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

impl From<RelayUrl> for Url

source§

fn from(value: RelayUrl) -> Url

Converts to this type from the input type.
source§

impl From<RelayUrlInfo> for RelayUrl

source§

fn from(value: RelayUrlInfo) -> RelayUrl

Converts to this type from the input type.
source§

impl From<Url> for RelayUrl

source§

fn from(url: Url) -> RelayUrl

Converts to this type from the input type.
source§

impl FromStr for RelayUrl

Support for parsing strings directly.

If you need more control over the error first create a Url and use RelayUrl::from instead.

§

type Err = Error

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

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

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

impl Hash for RelayUrl

source§

fn hash<__H>(&self, state: &mut __H)
where diff --git a/pr/2582/docs/iroh/net/struct.NodeAddr.html b/pr/2582/docs/iroh/net/struct.NodeAddr.html index 67755432d7..dbccb7b5cb 100644 --- a/pr/2582/docs/iroh/net/struct.NodeAddr.html +++ b/pr/2582/docs/iroh/net/struct.NodeAddr.html @@ -45,7 +45,7 @@ received from another API. E.g. to ensure a Trait Implementations§

source§

impl Clone for NodeAddr

source§

fn clone(&self) -> NodeAddr

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 NodeAddr

source§

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

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

impl<'de> Deserialize<'de> for NodeAddr

source§

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

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

impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

source§

fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(info: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<PublicKey> for NodeAddr

source§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
source§

impl Ord for NodeAddr

source§

fn cmp(&self, other: &NodeAddr) -> 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<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

source§

fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(info: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<PublicKey> for NodeAddr

source§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
source§

impl Ord for NodeAddr

source§

fn cmp(&self, other: &NodeAddr) -> 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 NodeAddr

source§

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

This method tests for self and other values to be equal, and is used diff --git a/pr/2582/docs/iroh_blobs/metrics/struct.Metrics.html b/pr/2582/docs/iroh_blobs/metrics/struct.Metrics.html index 07018ef507..e20ee637f7 100644 --- a/pr/2582/docs/iroh_blobs/metrics/struct.Metrics.html +++ b/pr/2582/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/2582/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2582/docs/iroh_docs/actor/struct.SyncHandle.html index 201a71e4e6..6c5cfbcbcf 100644 --- a/pr/2582/docs/iroh_docs/actor/struct.SyncHandle.html +++ b/pr/2582/docs/iroh_docs/actor/struct.SyncHandle.html @@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that namespace: NamespaceId, author: AuthorId, key: Bytes, - hash: Hash, + hash: Hash, len: u64 ) -> Result<()>

source

pub async fn delete_prefix( &self, diff --git a/pr/2582/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2582/docs/iroh_docs/engine/enum.LiveEvent.html index 54663659a1..6b3095b674 100644 --- a/pr/2582/docs/iroh_docs/engine/enum.LiveEvent.html +++ b/pr/2582/docs/iroh_docs/engine/enum.LiveEvent.html @@ -3,34 +3,34 @@ entry: Entry, }, InsertRemote { - from: PublicKey, + from: PublicKey, entry: Entry, content_status: ContentStatus, }, ContentReady { - hash: Hash, + hash: Hash, }, PendingContentReady, - NeighborUp(PublicKey), - NeighborDown(PublicKey), + NeighborUp(PublicKey), + NeighborDown(PublicKey), SyncFinished(SyncEvent), }
Expand description

Events informing about actions of the live sync progress.

Variants§

§

InsertLocal

A local insertion.

Fields

§entry: Entry

The inserted entry.

§

InsertRemote

Received a remote insert.

-

Fields

§from: PublicKey

The peer that sent us the entry.

+

Fields

§from: PublicKey

The peer that sent us the entry.

§entry: Entry

The inserted entry.

§content_status: ContentStatus

If the content is available at the local node

§

ContentReady

The content of an entry was downloaded and is now available at the local node

-

Fields

§hash: Hash

The content hash of the newly available entry content

+

Fields

§hash: Hash

The content hash of the newly available entry content

§

PendingContentReady

All pending content is now ready.

This event signals that all queued content downloads from the last sync run have either completed or failed.

It will only be emitted after a Self::SyncFinished event, never before.

Receiving this event does not guarantee that all content in the document is available. If blobs failed to download, this event will still be emitted after all operations completed.

-
§

NeighborUp(PublicKey)

We have a new neighbor in the swarm.

-
§

NeighborDown(PublicKey)

We lost a neighbor in the swarm.

+
§

NeighborUp(PublicKey)

We have a new neighbor in the swarm.

+
§

NeighborDown(PublicKey)

We lost a neighbor in the swarm.

§

SyncFinished(SyncEvent)

A set-reconciliation sync finished.

Trait Implementations§

source§

impl Clone for LiveEvent

source§

fn clone(&self) -> LiveEvent

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 LiveEvent

source§

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

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

impl<'de> Deserialize<'de> for LiveEvent

source§

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

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

impl Display for LiveEvent

source§

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

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

impl PartialEq for LiveEvent

source§

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

This method tests for self and other values to be equal, and is used diff --git a/pr/2582/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2582/docs/iroh_docs/engine/fn.entry_to_content_status.html index 3edb90101c..064089c3af 100644 --- a/pr/2582/docs/iroh_docs/engine/fn.entry_to_content_status.html +++ b/pr/2582/docs/iroh_docs/engine/fn.entry_to_content_status.html @@ -1,2 +1,2 @@ -entry_to_content_status in iroh_docs::engine - Rust

Function iroh_docs::engine::entry_to_content_status

source ·
pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description

Converts an EntryStatus into a [‘ContentStatus’].

+entry_to_content_status in iroh_docs::engine - Rust

Function iroh_docs::engine::entry_to_content_status

source ·
pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description

Converts an [EntryStatus] into a [‘ContentStatus’].

\ No newline at end of file diff --git a/pr/2582/docs/iroh_docs/engine/index.html b/pr/2582/docs/iroh_docs/engine/index.html index 54c0e74ff7..78e6935d96 100644 --- a/pr/2582/docs/iroh_docs/engine/index.html +++ b/pr/2582/docs/iroh_docs/engine/index.html @@ -1,4 +1,4 @@ iroh_docs::engine - Rust

Module iroh_docs::engine

source ·
Expand description

Handlers and actors to for live syncing replicas.

crate::Replica is also called documents here.

Structs§

  • Persistent default author for a docs engine.
  • The sync engine coordinates actors that manage open documents, set-reconciliation syncs with -peers and a gossip swarm for each syncing document.
  • Event emitted when a sync operation completes

Enums§

Functions§

\ No newline at end of file +peers and a gossip swarm for each syncing document.
  • Event emitted when a sync operation completes
  • Enums§

    Functions§

    \ No newline at end of file diff --git a/pr/2582/docs/iroh_docs/engine/struct.Engine.html b/pr/2582/docs/iroh_docs/engine/struct.Engine.html index 535688e328..871ca8a7ce 100644 --- a/pr/2582/docs/iroh_docs/engine/struct.Engine.html +++ b/pr/2582/docs/iroh_docs/engine/struct.Engine.html @@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.

    Fields§

    §endpoint: Endpoint

    Endpoint used by the engine.

    §sync: SyncHandle

    Handle to the actor thread.

    §default_author: Arc<DefaultAuthor>

    The persistent default author for this engine.

    -

    Implementations§

    source§

    impl Engine

    source

    pub async fn spawn<B: Store>( +

    Implementations§

    source§

    impl Engine

    source

    pub async fn spawn<B: Store>( endpoint: Endpoint, gossip: Gossip, replica_store: Store, bao_store: B, - downloader: Downloader, + downloader: Downloader, default_author_storage: DefaultAuthorStorage ) -> Result<Self>

    Start the sync engine.

    This will spawn two tokio tasks for the live sync coordination and gossip actors, and a @@ -21,7 +21,7 @@ thread for the

    source

    pub async fn start_sync( &self, namespace: NamespaceId, - peers: Vec<NodeAddr> + peers: Vec<NodeAddr> ) -> Result<()>

    Start to sync a document.

    If peers is non-empty, it will both do an initial set-reconciliation sync with each peer, and join an iroh-gossip swarm with these peers to receive and broadcast document updates.

    diff --git a/pr/2582/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2582/docs/iroh_docs/engine/struct.SyncEvent.html index 39134cf32c..3c294863e1 100644 --- a/pr/2582/docs/iroh_docs/engine/struct.SyncEvent.html +++ b/pr/2582/docs/iroh_docs/engine/struct.SyncEvent.html @@ -1,11 +1,11 @@ SyncEvent in iroh_docs::engine - Rust

    Struct iroh_docs::engine::SyncEvent

    source ·
    pub struct SyncEvent {
    -    pub peer: PublicKey,
    +    pub peer: PublicKey,
         pub origin: Origin,
         pub finished: SystemTime,
         pub started: SystemTime,
         pub result: Result<SyncDetails, String>,
     }
    Expand description

    Event emitted when a sync operation completes

    -

    Fields§

    §peer: PublicKey

    Peer we synced with

    +

    Fields§

    §peer: PublicKey

    Peer we synced with

    §origin: Origin

    Origin of the sync exchange

    §finished: SystemTime

    Timestamp when the sync started

    §started: SystemTime

    Timestamp when the sync finished

    diff --git a/pr/2582/docs/iroh_docs/index.html b/pr/2582/docs/iroh_docs/index.html index 14f362f923..8f3ecf4dad 100644 --- a/pr/2582/docs/iroh_docs/index.html +++ b/pr/2582/docs/iroh_docs/index.html @@ -1,7 +1,7 @@ iroh_docs - Rust

    Crate iroh_docs

    source ·
    Expand description

    Multi-dimensional key-value documents with an efficient synchronization protocol

    The crate operates on Replicas. A replica contains an unlimited number of Entries. Each entry is identified by a key, its author, and the replica’s -namespace. Its value is the 32-byte BLAKE3 hash +namespace. Its value is the 32-byte BLAKE3 hash of the entry’s content data, the size of this content data, and a timestamp. The content data itself is not stored or transferred through a replica.

    All entries in a replica are signed with two keypairs:

    diff --git a/pr/2582/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2582/docs/iroh_docs/metrics/struct.Metrics.html index 360a5b6ff1..0500b2c33c 100644 --- a/pr/2582/docs/iroh_docs/metrics/struct.Metrics.html +++ b/pr/2582/docs/iroh_docs/metrics/struct.Metrics.html @@ -1,27 +1,27 @@ Metrics in iroh_docs::metrics - Rust

    Struct iroh_docs::metrics::Metrics

    source ·
    pub struct Metrics {
    Show 19 fields - pub new_entries_local: Counter, - pub new_entries_remote: Counter, - pub new_entries_local_size: Counter, - pub new_entries_remote_size: Counter, - pub sync_via_connect_success: Counter, - pub sync_via_connect_failure: Counter, - pub sync_via_accept_success: Counter, - pub sync_via_accept_failure: Counter, - pub actor_tick_main: Counter, - pub doc_gossip_tick_main: Counter, - pub doc_gossip_tick_event: Counter, - pub doc_gossip_tick_actor: Counter, - pub doc_gossip_tick_pending_join: Counter, - pub doc_live_tick_main: Counter, - pub doc_live_tick_actor: Counter, - pub doc_live_tick_replica_event: Counter, - pub doc_live_tick_running_sync_connect: Counter, - pub doc_live_tick_running_sync_accept: Counter, - pub doc_live_tick_pending_downloads: Counter, + pub new_entries_local: Counter, + pub new_entries_remote: Counter, + pub new_entries_local_size: Counter, + pub new_entries_remote_size: Counter, + pub sync_via_connect_success: Counter, + pub sync_via_connect_failure: Counter, + pub sync_via_accept_success: Counter, + pub sync_via_accept_failure: Counter, + pub actor_tick_main: Counter, + pub doc_gossip_tick_main: Counter, + pub doc_gossip_tick_event: Counter, + pub doc_gossip_tick_actor: Counter, + pub doc_gossip_tick_pending_join: Counter, + pub doc_live_tick_main: Counter, + pub doc_live_tick_actor: Counter, + pub doc_live_tick_replica_event: Counter, + pub doc_live_tick_running_sync_connect: Counter, + pub doc_live_tick_running_sync_accept: Counter, + pub doc_live_tick_pending_downloads: Counter,
    }
    Expand description

    Metrics for iroh-docs

    -

    Fields§

    §new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: 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 +

    Fields§

    §new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: 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 F: FnOnce(&Self) -> T,

    Access to this metrics group to record a metric. -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 +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 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/2582/docs/iroh_docs/net/enum.AcceptError.html b/pr/2582/docs/iroh_docs/net/enum.AcceptError.html index 352496c738..6825a4b84d 100644 --- a/pr/2582/docs/iroh_docs/net/enum.AcceptError.html +++ b/pr/2582/docs/iroh_docs/net/enum.AcceptError.html @@ -3,31 +3,31 @@ error: Error, }, Open { - peer: PublicKey, + peer: PublicKey, error: Error, }, Abort { - peer: PublicKey, + peer: PublicKey, namespace: NamespaceId, reason: AbortReason, }, Sync { - peer: PublicKey, + peer: PublicKey, namespace: Option<NamespaceId>, error: Error, }, Close { - peer: PublicKey, + peer: PublicKey, namespace: Option<NamespaceId>, error: Error, }, }
    Expand description

    Errors that may occur on handling incoming sync connections.

    Variants§

    §

    Connect

    Failed to establish connection

    Fields

    §error: Error
    §

    Open

    Failed to open replica

    -

    Fields

    §error: Error
    §

    Abort

    We aborted the sync request.

    -

    Fields

    §namespace: NamespaceId
    §

    Sync

    Failed to run sync

    -

    Fields

    §namespace: Option<NamespaceId>
    §error: Error
    §

    Close

    Failed to close

    -

    Fields

    §namespace: Option<NamespaceId>
    §error: Error

    Implementations§

    source§

    impl AcceptError

    source

    pub fn peer(&self) -> Option<PublicKey>

    Get the peer’s node ID (if available)

    +

    Fields

    §peer: PublicKey
    §error: Error
    §

    Abort

    We aborted the sync request.

    +

    Fields

    §peer: PublicKey
    §namespace: NamespaceId
    §

    Sync

    Failed to run sync

    +

    Fields

    §peer: PublicKey
    §namespace: Option<NamespaceId>
    §error: Error
    §

    Close

    Failed to close

    +

    Fields

    §peer: PublicKey
    §namespace: Option<NamespaceId>
    §error: Error

    Implementations§

    source§

    impl AcceptError

    source

    pub fn peer(&self) -> Option<PublicKey>

    Get the peer’s node ID (if available)

    source

    pub fn namespace(&self) -> Option<NamespaceId>

    Get the namespace (if available)

    Trait Implementations§

    source§

    impl Debug for AcceptError

    source§

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

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

    impl Display for AcceptError

    source§

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

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

    impl Error for AcceptError

    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 diff --git a/pr/2582/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2582/docs/iroh_docs/net/fn.connect_and_sync.html index 348ca1a91d..11716e3947 100644 --- a/pr/2582/docs/iroh_docs/net/fn.connect_and_sync.html +++ b/pr/2582/docs/iroh_docs/net/fn.connect_and_sync.html @@ -2,6 +2,6 @@ endpoint: &Endpoint, sync: &SyncHandle, namespace: NamespaceId, - peer: NodeAddr + peer: NodeAddr ) -> Result<SyncFinished, ConnectError>
    Expand description

    Connect to a peer and sync a replica

    \ No newline at end of file diff --git a/pr/2582/docs/iroh_docs/net/fn.handle_connection.html b/pr/2582/docs/iroh_docs/net/fn.handle_connection.html index 8a2dbfcb44..2b174a9405 100644 --- a/pr/2582/docs/iroh_docs/net/fn.handle_connection.html +++ b/pr/2582/docs/iroh_docs/net/fn.handle_connection.html @@ -3,6 +3,6 @@ connecting: Connecting, accept_cb: F ) -> Result<SyncFinished, AcceptError>
    where - F: Fn(NamespaceId, PublicKey) -> Fut, + F: Fn(NamespaceId, PublicKey) -> Fut, Fut: Future<Output = AcceptOutcome>,
    Expand description

    Handle an iroh-docs connection and sync all shared documents in the replica store.

    \ No newline at end of file diff --git a/pr/2582/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2582/docs/iroh_docs/net/struct.SyncFinished.html index b615c94578..e94f240f10 100644 --- a/pr/2582/docs/iroh_docs/net/struct.SyncFinished.html +++ b/pr/2582/docs/iroh_docs/net/struct.SyncFinished.html @@ -1,11 +1,11 @@ SyncFinished in iroh_docs::net - Rust

    Struct iroh_docs::net::SyncFinished

    source ·
    pub struct SyncFinished {
         pub namespace: NamespaceId,
    -    pub peer: PublicKey,
    +    pub peer: PublicKey,
         pub outcome: SyncOutcome,
         pub timings: Timings,
     }
    Expand description

    Details of a finished sync operation.

    Fields§

    §namespace: NamespaceId

    The namespace that was synced.

    -
    §peer: PublicKey

    The peer we syned with.

    +
    §peer: PublicKey

    The peer we syned with.

    §outcome: SyncOutcome

    The outcome of the sync operation

    §timings: Timings

    The time this operation took

    Trait Implementations§

    source§

    impl Clone for SyncFinished

    source§

    fn clone(&self) -> SyncFinished

    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 SyncFinished

    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 diff --git a/pr/2582/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2582/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html index 35a2679676..67917f2858 100644 --- a/pr/2582/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html +++ b/pr/2582/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html @@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.

    Implementations§

    source§

    impl ContentHashesIterator

    source

    pub fn all( table: &ReadOnlyTable<(&'static [u8; 32], &'static [u8; 32], &'static [u8]), (u64, &'static [u8; 64], &'static [u8; 64], u64, &'static [u8; 32])> ) -> Result<Self>

    Create a new iterator over all content hashes.

    -

    Trait Implementations§

    source§

    impl Debug for ContentHashesIterator

    source§

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

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

    impl Iterator for ContentHashesIterator

    §

    type Item = Result<Hash, Error>

    The type of the elements being iterated over.
    source§

    fn next(&mut self) -> Option<Self::Item>

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

    fn next_chunk<const N: usize>( +

    Trait Implementations§

    source§

    impl Debug for ContentHashesIterator

    source§

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

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

    impl Iterator for ContentHashesIterator

    §

    type Item = Result<Hash, Error>

    The type of the elements being iterated over.
    source§

    fn next(&mut self) -> Option<Self::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/2582/docs/iroh_docs/struct.DocTicket.html b/pr/2582/docs/iroh_docs/struct.DocTicket.html index afdeb818ac..9bbcd67ef8 100644 --- a/pr/2582/docs/iroh_docs/struct.DocTicket.html +++ b/pr/2582/docs/iroh_docs/struct.DocTicket.html @@ -1,13 +1,13 @@ DocTicket in iroh_docs - Rust

    Struct iroh_docs::DocTicket

    source ·
    pub struct DocTicket {
         pub capability: Capability,
    -    pub nodes: Vec<NodeAddr>,
    +    pub nodes: Vec<NodeAddr>,
     }
    Expand description

    Contains both a key (either secret or public) to a document, and a list of peers to join.

    Fields§

    §capability: Capability

    either a public or private key

    -
    §nodes: Vec<NodeAddr>

    A list of nodes to contact.

    -

    Implementations§

    source§

    impl DocTicket

    source

    pub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self

    Create a new doc ticket

    +
    §nodes: Vec<NodeAddr>

    A list of nodes to contact.

    +

    Implementations§

    source§

    impl DocTicket

    source

    pub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self

    Create a new doc ticket

    Trait Implementations§

    source§

    impl Clone for DocTicket

    source§

    fn clone(&self) -> DocTicket

    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 DocTicket

    source§

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

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

    impl<'de> Deserialize<'de> for DocTicket

    source§

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

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

    impl Display for DocTicket

    source§

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

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

    impl FromStr for DocTicket

    §

    type Err = Error

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

    fn from_str(s: &str) -> Result<Self, Self::Err>

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

    impl Serialize for DocTicket

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

    impl Ticket for DocTicket

    source§

    const KIND: &'static str = "doc"

    String prefix describing the kind of iroh ticket. Read more
    source§

    fn to_bytes(&self) -> Vec<u8> ⓘ

    Serialize to bytes used in the base32 string representation.
    source§

    fn from_bytes(bytes: &[u8]) -> Result<Self, Error>

    Deserialize from the base32 string representation bytes.
    source§

    fn serialize(&self) -> String

    Serialize to string.
    source§

    fn deserialize(str: &str) -> Result<Self, Error>

    Deserialize from a string.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + __D: Deserializer<'de>,

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

    impl Display for DocTicket

    source§

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

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

    impl FromStr for DocTicket

    §

    type Err = Error

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

    fn from_str(s: &str) -> Result<Self, Self::Err>

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

    impl Serialize for DocTicket

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

    impl Ticket for DocTicket

    source§

    const KIND: &'static str = "doc"

    String prefix describing the kind of iroh ticket. Read more
    source§

    fn to_bytes(&self) -> Vec<u8> ⓘ

    Serialize to bytes used in the base32 string representation.
    source§

    fn from_bytes(bytes: &[u8]) -> Result<Self, Error>

    Deserialize from the base32 string representation bytes.
    §

    fn serialize(&self) -> String

    Serialize to string.
    §

    fn deserialize(str: &str) -> Result<Self, Error>

    Deserialize from a string.

    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/2582/docs/iroh_docs/sync/struct.Entry.html b/pr/2582/docs/iroh_docs/sync/struct.Entry.html index b520fa4621..1bf24a448d 100644 --- a/pr/2582/docs/iroh_docs/sync/struct.Entry.html +++ b/pr/2582/docs/iroh_docs/sync/struct.Entry.html @@ -1,6 +1,6 @@ Entry in iroh_docs::sync - Rust

    Struct iroh_docs::sync::Entry

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

    A single entry in a Replica

    An entry is identified by a key, its Author, and the Replica’s -NamespaceSecret. Its value is the 32-byte BLAKE3 hash +NamespaceSecret. Its value is the 32-byte BLAKE3 hash of the entry’s content data, the size of this content data, and a timestamp.

    Implementations§

    source§

    impl Entry

    source

    pub fn new(id: RecordIdentifier, record: Record) -> Self

    Create a new entry

    source

    pub fn new_empty(id: RecordIdentifier) -> Self

    Create a new empty entry with the current timestamp.

    @@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
    source

    pub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry

    Sign this entry with a NamespaceSecret and Author.

    Methods from Deref<Target = Record>§

    source

    pub fn is_empty(&self) -> bool

    Return true if the entry is empty.

    source

    pub fn content_len(&self) -> u64

    Get the length of the data addressed by this record’s content hash.

    -
    source

    pub fn content_hash(&self) -> Hash

    Get the Hash of the content data of this record.

    +
    source

    pub fn content_hash(&self) -> Hash

    Get the [struct@Hash] of the content data of this record.

    source

    pub fn timestamp(&self) -> u64

    Get the timestamp of this record.

    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

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

    impl Deref for Entry

    §

    type Target = Record

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for Entry

    source§

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

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

    impl From<SignedEntry> for Entry

    source§

    fn from(value: SignedEntry) -> Self

    Converts to this type from the input type.
    source§

    impl Ord for Entry

    source§

    fn cmp(&self, other: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where diff --git a/pr/2582/docs/iroh_docs/sync/struct.Record.html b/pr/2582/docs/iroh_docs/sync/struct.Record.html index cb1d99f9a7..c3bae419a3 100644 --- a/pr/2582/docs/iroh_docs/sync/struct.Record.html +++ b/pr/2582/docs/iroh_docs/sync/struct.Record.html @@ -1,11 +1,11 @@ Record in iroh_docs::sync - Rust

    Struct iroh_docs::sync::Record

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

    The data part of an entry in a Replica.

    -

    Implementations§

    source§

    impl Record

    source

    pub fn new(hash: Hash, len: u64, timestamp: u64) -> Self

    Create a new record.

    +

    Implementations§

    source§

    impl Record

    source

    pub fn new(hash: Hash, len: u64, timestamp: u64) -> Self

    Create a new record.

    source

    pub fn empty(timestamp: u64) -> Self

    Create a tombstone record (empty content)

    source

    pub fn empty_current() -> Self

    Create a tombstone record with the timestamp set to now.

    source

    pub fn is_empty(&self) -> bool

    Return true if the entry is empty.

    -
    source

    pub fn new_current(hash: Hash, len: u64) -> Self

    Create a new Record with the timestamp set to now.

    +
    source

    pub fn new_current(hash: Hash, len: u64) -> Self

    Create a new Record with the timestamp set to now.

    source

    pub fn content_len(&self) -> u64

    Get the length of the data addressed by this record’s content hash.

    -
    source

    pub fn content_hash(&self) -> Hash

    Get the Hash of the content data of this record.

    +
    source

    pub fn content_hash(&self) -> Hash

    Get the [struct@Hash] of the content data of this record.

    source

    pub fn timestamp(&self) -> u64

    Get the timestamp of this record.

    Trait Implementations§

    source§

    impl Clone for Record

    source§

    fn clone(&self) -> Record

    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 Record

    source§

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

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

    impl<'de> Deserialize<'de> for Record

    source§

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

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

    impl Ord for Record

    Ordering for entry values.

    diff --git a/pr/2582/docs/iroh_docs/sync/struct.Replica.html b/pr/2582/docs/iroh_docs/sync/struct.Replica.html index ab8900f1e2..1cc3c5c27f 100644 --- a/pr/2582/docs/iroh_docs/sync/struct.Replica.html +++ b/pr/2582/docs/iroh_docs/sync/struct.Replica.html @@ -5,7 +5,7 @@ &mut self, key: impl AsRef<[u8]>, author: &Author, - hash: Hash, + hash: Hash, len: u64 ) -> Result<usize, InsertError>

    Insert a new record at the given key.

    The entry will by signed by the provided author. @@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.

    key: impl AsRef<[u8]>, author: &Author, data: impl AsRef<[u8]> -) -> Result<Hash, InsertError>

    Hashes the given data and inserts it.

    +) -> Result<Hash, InsertError>

    Hashes the given data and inserts it.

    This does not store the content, just the record of it. Returns the calculated hash.

    source

    pub fn record_id( diff --git a/pr/2582/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2582/docs/iroh_docs/sync/struct.SignedEntry.html index 5aa35d0422..fe1f1a3633 100644 --- a/pr/2582/docs/iroh_docs/sync/struct.SignedEntry.html +++ b/pr/2582/docs/iroh_docs/sync/struct.SignedEntry.html @@ -14,7 +14,7 @@

    source

    pub fn signature(&self) -> &EntrySignature

    Get the signature.

    source

    pub fn validate_empty(&self) -> Result<(), ValidationFailure>

    Validate that the entry has the empty hash if the length is 0, or a non-zero length.

    source

    pub fn entry(&self) -> &Entry

    Get the Entry.

    -
    source

    pub fn content_hash(&self) -> Hash

    Get the content Hash of the entry.

    +
    source

    pub fn content_hash(&self) -> Hash

    Get the content [struct@Hash] of the entry.

    source

    pub fn content_len(&self) -> u64

    Get the content length of the entry.

    source

    pub fn author_bytes(&self) -> AuthorId

    Get the author bytes of this entry.

    source

    pub fn key(&self) -> &[u8] ⓘ

    Get the key of the entry.

    @@ -29,7 +29,7 @@
    source

    pub fn to_vec(&self) -> Vec<u8> ⓘ

    Serialize this entry into a new vector with its canonical byte representation.

    Methods from Deref<Target = Record>§

    source

    pub fn is_empty(&self) -> bool

    Return true if the entry is empty.

    source

    pub fn content_len(&self) -> u64

    Get the length of the data addressed by this record’s content hash.

    -
    source

    pub fn content_hash(&self) -> Hash

    Get the Hash of the content data of this record.

    +
    source

    pub fn content_hash(&self) -> Hash

    Get the [struct@Hash] of the content data of this record.

    source

    pub fn timestamp(&self) -> u64

    Get the timestamp of this record.

    Trait Implementations§

    source§

    impl Clone for SignedEntry

    source§

    fn clone(&self) -> SignedEntry

    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 SignedEntry

    source§

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

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

    impl Deref for SignedEntry

    §

    type Target = Entry

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for SignedEntry

    source§

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

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

    impl From<SignedEntry> for Entry

    source§

    fn from(value: SignedEntry) -> Self

    Converts to this type from the input type.
    source§

    impl Ord for SignedEntry

    source§

    fn cmp(&self, other: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where diff --git a/pr/2582/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2582/docs/iroh_docs/sync/type.ContentStatusCallback.html index faa3b5f5b0..4aa60077a0 100644 --- a/pr/2582/docs/iroh_docs/sync/type.ContentStatusCallback.html +++ b/pr/2582/docs/iroh_docs/sync/type.ContentStatusCallback.html @@ -1,2 +1,2 @@ -ContentStatusCallback in iroh_docs::sync - Rust

    Type Alias iroh_docs::sync::ContentStatusCallback

    source ·
    pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
    Expand description

    Callback that may be set on a replica to determine the availability status for a content hash.

    +ContentStatusCallback in iroh_docs::sync - Rust

    Type Alias iroh_docs::sync::ContentStatusCallback

    source ·
    pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
    Expand description

    Callback that may be set on a replica to determine the availability status for a content hash.

    Aliased Type§

    struct ContentStatusCallback { /* private fields */ }
    \ No newline at end of file diff --git a/pr/2582/docs/iroh_gossip/dispatcher/enum.GossipEvent.html b/pr/2582/docs/iroh_gossip/dispatcher/enum.GossipEvent.html index aa8d1350a5..cced7fb316 100644 --- a/pr/2582/docs/iroh_gossip/dispatcher/enum.GossipEvent.html +++ b/pr/2582/docs/iroh_gossip/dispatcher/enum.GossipEvent.html @@ -1,14 +1,14 @@ GossipEvent in iroh_gossip::dispatcher - Rust

    Enum iroh_gossip::dispatcher::GossipEvent

    source ·
    pub enum GossipEvent {
    -    NeighborUp(NodeId),
    -    NeighborDown(NodeId),
    +    NeighborUp(NodeId),
    +    NeighborDown(NodeId),
         Received(Message),
     }
    Expand description

    Gossip event An event to be emitted to the application for a particular topic.

    -

    Variants§

    §

    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

    +

    Variants§

    §

    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)

    A gossip message was received 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/2582/docs/iroh_gossip/dispatcher/struct.GossipDispatcher.html b/pr/2582/docs/iroh_gossip/dispatcher/struct.GossipDispatcher.html index d790fb8da4..e1abc9f4fa 100644 --- a/pr/2582/docs/iroh_gossip/dispatcher/struct.GossipDispatcher.html +++ b/pr/2582/docs/iroh_gossip/dispatcher/struct.GossipDispatcher.html @@ -5,7 +5,7 @@ topic: TopicId, options: SubscribeOptions, updates: Box<dyn Stream<Item = Command> + Send + Sync + Unpin + 'static> -) -> impl Stream<Item = RpcResult<Event>> + Unpin

    Subscribe to a gossip topic.

    +) -> impl Stream<Item = RpcResult<Event>> + Unpin

    Subscribe to a gossip topic.

    Trait Implementations§

    source§

    impl Clone for GossipDispatcher

    source§

    fn clone(&self) -> GossipDispatcher

    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 GossipDispatcher

    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/2582/docs/iroh_gossip/dispatcher/struct.Message.html b/pr/2582/docs/iroh_gossip/dispatcher/struct.Message.html index e95a99dda9..6cbd3d761d 100644 --- a/pr/2582/docs/iroh_gossip/dispatcher/struct.Message.html +++ b/pr/2582/docs/iroh_gossip/dispatcher/struct.Message.html @@ -1,12 +1,12 @@ Message in iroh_gossip::dispatcher - Rust

    Struct iroh_gossip::dispatcher::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, 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/2582/docs/iroh_gossip/dispatcher/struct.SubscribeOptions.html b/pr/2582/docs/iroh_gossip/dispatcher/struct.SubscribeOptions.html index c866f9cbf7..98bace3120 100644 --- a/pr/2582/docs/iroh_gossip/dispatcher/struct.SubscribeOptions.html +++ b/pr/2582/docs/iroh_gossip/dispatcher/struct.SubscribeOptions.html @@ -1,8 +1,8 @@ SubscribeOptions in iroh_gossip::dispatcher - Rust

    Struct iroh_gossip::dispatcher::SubscribeOptions

    source ·
    pub struct SubscribeOptions {
    -    pub bootstrap: BTreeSet<PublicKey>,
    +    pub bootstrap: BTreeSet<PublicKey>,
         pub subscription_capacity: usize,
     }
    Expand description

    Join a gossip topic

    -

    Fields§

    §bootstrap: BTreeSet<PublicKey>

    The initial bootstrap nodes

    +

    Fields§

    §bootstrap: BTreeSet<PublicKey>

    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.

    diff --git a/pr/2582/docs/iroh_gossip/net/struct.Gossip.html b/pr/2582/docs/iroh_gossip/net/struct.Gossip.html index ec4771984d..0e13977df3 100644 --- a/pr/2582/docs/iroh_gossip/net/struct.Gossip.html +++ b/pr/2582/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,15 +13,15 @@ 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 join( &self, topic: TopicId, - peers: Vec<PublicKey> + peers: Vec<PublicKey> ) -> Result<JoinTopicFut>

    Join a topic and connect to peers.

    -

    This method only asks for PublicKeys. You must supply information on how to +

    This method only asks for [PublicKey]s. You must supply information on how to connect to these peers manually before, by calling Endpoint::add_node_addr on the underlying Endpoint.

    This method returns a future that completes once the request reached the local actor. diff --git a/pr/2582/docs/iroh_gossip/net/type.Command.html b/pr/2582/docs/iroh_gossip/net/type.Command.html index bd9c43971c..032815b95d 100644 --- a/pr/2582/docs/iroh_gossip/net/type.Command.html +++ b/pr/2582/docs/iroh_gossip/net/type.Command.html @@ -1,9 +1,9 @@ -Command in iroh_gossip::net - Rust

    Type Alias iroh_gossip::net::Command

    source ·
    pub type Command = Command<PublicKey>;
    Expand description

    Commands for the gossip protocol

    +Command in iroh_gossip::net - Rust

    Type Alias iroh_gossip::net::Command

    source ·
    pub type Command = Command<PublicKey>;
    Expand description

    Commands for the gossip protocol

    Aliased Type§

    enum Command {
    -    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/2582/docs/iroh_gossip/net/type.Event.html b/pr/2582/docs/iroh_gossip/net/type.Event.html index de0132fadd..3583896dda 100644 --- a/pr/2582/docs/iroh_gossip/net/type.Event.html +++ b/pr/2582/docs/iroh_gossip/net/type.Event.html @@ -1,9 +1,9 @@ -Event in iroh_gossip::net - Rust

    Type Alias iroh_gossip::net::Event

    source ·
    pub type Event = Event<PublicKey>;
    Expand description

    Events emitted from the gossip protocol

    +Event in iroh_gossip::net - Rust

    Type Alias iroh_gossip::net::Event

    source ·
    pub type Event = Event<PublicKey>;
    Expand description

    Events emitted from the gossip protocol

    Aliased Type§

    enum Event {
    -    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/2582/docs/iroh_gossip/net/util/fn.read_message.html b/pr/2582/docs/iroh_gossip/net/util/fn.read_message.html index 1c2a409a5d..8d91262840 100644 --- a/pr/2582/docs/iroh_gossip/net/util/fn.read_message.html +++ b/pr/2582/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/2582/docs/iroh_gossip/net/util/fn.write_message.html b/pr/2582/docs/iroh_gossip/net/util/fn.write_message.html index 949973b850..850419e0c0 100644 --- a/pr/2582/docs/iroh_gossip/net/util/fn.write_message.html +++ b/pr/2582/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/2582/docs/iroh_gossip/proto/topic/enum.Event.html b/pr/2582/docs/iroh_gossip/proto/topic/enum.Event.html index 725eab41fb..442877097b 100644 --- a/pr/2582/docs/iroh_gossip/proto/topic/enum.Event.html +++ b/pr/2582/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/2582/docs/iroh_net/endpoint/enum.ConnectionType.html b/pr/2582/docs/iroh_net/endpoint/enum.ConnectionType.html index 9242f84066..734ba6fd83 100644 --- a/pr/2582/docs/iroh_net/endpoint/enum.ConnectionType.html +++ b/pr/2582/docs/iroh_net/endpoint/enum.ConnectionType.html @@ -1,4 +1,4 @@ -ConnectionType in iroh_net::endpoint - Rust

    Enum iroh_net::endpoint::ConnectionType

    source ·
    pub enum ConnectionType {
    +ConnectionType in iroh_net::endpoint - Rust

    Enum iroh_net::endpoint::ConnectionType

    source ·
    pub enum ConnectionType {
         Direct(SocketAddr),
         Relay(RelayUrl),
         Mixed(SocketAddr, RelayUrl),
    @@ -10,11 +10,11 @@
     

    This is the case if we do have a UDP address, but are missing a recent confirmation that the address works.

    §

    None

    We have no verified connection to this PublicKey

    -

    Trait Implementations§

    source§

    impl Clone for ConnectionType

    source§

    fn clone(&self) -> ConnectionType

    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 ConnectionType

    source§

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

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

    impl<'de> Deserialize<'de> for ConnectionType

    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 Display for ConnectionType

    source§

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

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

    impl PartialEq for ConnectionType

    source§

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

    This method tests for self and other values to be equal, and is used +

    Trait Implementations§

    source§

    impl Clone for ConnectionType

    source§

    fn clone(&self) -> ConnectionType

    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 ConnectionType

    source§

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

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

    impl<'de> Deserialize<'de> for ConnectionType

    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 Display for ConnectionType

    source§

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

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

    impl PartialEq for ConnectionType

    source§

    fn eq(&self, other: &ConnectionType) -> 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 ConnectionType

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

    impl Eq for ConnectionType

    source§

    impl StructuralPartialEq for ConnectionType

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +sufficient, and should not be overridden without very good reason.

    source§

    impl Serialize for ConnectionType

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

    impl Eq for ConnectionType

    source§

    impl StructuralPartialEq for ConnectionType

    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/2582/docs/iroh_net/endpoint/enum.ControlMsg.html b/pr/2582/docs/iroh_net/endpoint/enum.ControlMsg.html index a5951f60db..b30f9fcc36 100644 --- a/pr/2582/docs/iroh_net/endpoint/enum.ControlMsg.html +++ b/pr/2582/docs/iroh_net/endpoint/enum.ControlMsg.html @@ -1,4 +1,4 @@ -ControlMsg in iroh_net::endpoint - Rust

    Enum iroh_net::endpoint::ControlMsg

    source ·
    pub enum ControlMsg {
    +ControlMsg in iroh_net::endpoint - Rust

    Enum iroh_net::endpoint::ControlMsg

    source ·
    pub enum ControlMsg {
         Ping,
         Pong,
         CallMeMaybe,
    @@ -6,11 +6,11 @@
     

    Variants§

    §

    Ping

    We received a Ping from the node.

    §

    Pong

    We received a Pong from the node.

    §

    CallMeMaybe

    We received a CallMeMaybe.

    -

    Trait Implementations§

    source§

    impl Clone for ControlMsg

    source§

    fn clone(&self) -> ControlMsg

    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 ControlMsg

    source§

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

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

    impl<'de> Deserialize<'de> for ControlMsg

    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 Display for ControlMsg

    source§

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

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

    impl PartialEq for ControlMsg

    source§

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

    This method tests for self and other values to be equal, and is used +

    Trait Implementations§

    source§

    impl Clone for ControlMsg

    source§

    fn clone(&self) -> ControlMsg

    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 ControlMsg

    source§

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

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

    impl<'de> Deserialize<'de> for ControlMsg

    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 Display for ControlMsg

    source§

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

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

    impl PartialEq for ControlMsg

    source§

    fn eq(&self, other: &ControlMsg) -> 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 ControlMsg

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

    impl Copy for ControlMsg

    source§

    impl Eq for ControlMsg

    source§

    impl StructuralPartialEq for ControlMsg

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +sufficient, and should not be overridden without very good reason.

    source§

    impl Serialize for ControlMsg

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

    impl Copy for ControlMsg

    source§

    impl Eq for ControlMsg

    source§

    impl StructuralPartialEq for ControlMsg

    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/2582/docs/iroh_net/endpoint/enum.DirectAddrType.html b/pr/2582/docs/iroh_net/endpoint/enum.DirectAddrType.html index ceab28046b..f58d3773cb 100644 --- a/pr/2582/docs/iroh_net/endpoint/enum.DirectAddrType.html +++ b/pr/2582/docs/iroh_net/endpoint/enum.DirectAddrType.html @@ -1,4 +1,4 @@ -DirectAddrType in iroh_net::endpoint - Rust

    Enum iroh_net::endpoint::DirectAddrType

    source ·
    pub enum DirectAddrType {
    +DirectAddrType in iroh_net::endpoint - Rust

    Enum iroh_net::endpoint::DirectAddrType

    source ·
    pub enum DirectAddrType {
         Unknown,
         Local,
         Stun,
    @@ -20,16 +20,16 @@ get a publicly routable direct address.

    It is possible to configure iroh-net to bound to a specific port and independently configure the router to forward this port to the iroh-net node. This indicates a situation like this, which still uses STUN to discover the public address.

    -

    Trait Implementations§

    source§

    impl Clone for DirectAddrType

    source§

    fn clone(&self) -> DirectAddrType

    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 DirectAddrType

    source§

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

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

    impl Display for DirectAddrType

    source§

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

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

    impl Hash for DirectAddrType

    source§

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

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

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

    Trait Implementations§

    source§

    impl Clone for DirectAddrType

    source§

    fn clone(&self) -> DirectAddrType

    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 DirectAddrType

    source§

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

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

    impl Display for DirectAddrType

    source§

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

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

    impl Hash for DirectAddrType

    source§

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

    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 Ord for DirectAddrType

    source§

    fn cmp(&self, other: &DirectAddrType) -> 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,

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

    impl Ord for DirectAddrType

    source§

    fn cmp(&self, other: &DirectAddrType) -> 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 DirectAddrType

    source§

    fn eq(&self, other: &DirectAddrType) -> 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
    source§

    impl PartialEq for DirectAddrType

    source§

    fn eq(&self, other: &DirectAddrType) -> 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 DirectAddrType

    source§

    fn partial_cmp(&self, other: &DirectAddrType) -> 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.
    source§

    impl PartialOrd for DirectAddrType

    source§

    fn partial_cmp(&self, other: &DirectAddrType) -> 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 Copy for DirectAddrType

    source§

    impl Eq for DirectAddrType

    source§

    impl StructuralPartialEq for DirectAddrType

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +operator. Read more

    source§

    impl Copy for DirectAddrType

    source§

    impl Eq for DirectAddrType

    source§

    impl StructuralPartialEq for DirectAddrType

    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/2582/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2582/docs/iroh_net/endpoint/struct.AddrInfo.html index fabd02af26..553fdc6f06 100644 --- a/pr/2582/docs/iroh_net/endpoint/struct.AddrInfo.html +++ b/pr/2582/docs/iroh_net/endpoint/struct.AddrInfo.html @@ -1,4 +1,4 @@ -AddrInfo in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::AddrInfo

    source ·
    pub struct AddrInfo {
    +AddrInfo in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::AddrInfo

    pub struct AddrInfo {
         pub relay_url: Option<RelayUrl>,
         pub direct_addresses: BTreeSet<SocketAddr>,
     }
    Expand description

    Network paths to contact an iroh-net node.

    @@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to other node, see NodeAddr for details.

    Fields§

    §relay_url: Option<RelayUrl>

    The node’s home relay url.

    §direct_addresses: BTreeSet<SocketAddr>

    Socket addresses where the peer might be reached directly.

    -

    Implementations§

    source§

    impl AddrInfo

    source

    pub fn is_empty(&self) -> bool

    Returns whether this addressing information is empty.

    -
    source

    pub fn apply_options(&mut self, opts: AddrInfoOptions)

    Applies the options to self.

    +

    Implementations§

    §

    impl AddrInfo

    pub fn is_empty(&self) -> bool

    Returns whether this addressing information is empty.

    +

    pub fn apply_options(&mut self, opts: AddrInfoOptions)

    Applies the options to self.

    This is used to more tightly control the information stored in ab AddrInfo received from another API. E.g. to ensure a discovery service is used the AddrInfoOptions::Id] option could be used to remove all other addressing details.

    -

    Trait Implementations§

    source§

    impl Clone for AddrInfo

    source§

    fn clone(&self) -> AddrInfo

    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 AddrInfo

    source§

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

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

    impl Default for AddrInfo

    source§

    fn default() -> AddrInfo

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

    impl<'de> Deserialize<'de> for AddrInfo

    Trait Implementations§

    §

    impl Clone for AddrInfo

    §

    fn clone(&self) -> AddrInfo

    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 AddrInfo

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Default for AddrInfo

    §

    fn default() -> AddrInfo

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

    impl<'de> Deserialize<'de> for AddrInfo

    §

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

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

    impl From<NodeInfo> for AddrInfo

    source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl Ord for AddrInfo

    source§

    fn cmp(&self, other: &AddrInfo) -> 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<NodeInfo> for AddrInfo

    source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    §

    impl Ord for AddrInfo

    §

    fn cmp(&self, other: &AddrInfo) -> 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 AddrInfo

    source§

    fn eq(&self, other: &AddrInfo) -> 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 AddrInfo

    §

    fn eq(&self, other: &AddrInfo) -> 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 AddrInfo

    source§

    fn partial_cmp(&self, other: &AddrInfo) -> 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 AddrInfo

    §

    fn partial_cmp(&self, other: &AddrInfo) -> 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 AddrInfo

    source§

    fn serialize<__S>( +operator. Read more

    §

    impl Serialize for AddrInfo

    §

    fn serialize<__S>( &self, __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 AddrInfo

    source§

    impl StructuralPartialEq for AddrInfo

    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 AddrInfo

    §

    impl StructuralPartialEq for AddrInfo

    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/2582/docs/iroh_net/endpoint/struct.ConnectionInfo.html b/pr/2582/docs/iroh_net/endpoint/struct.ConnectionInfo.html index ead6e87303..e694b1f40a 100644 --- a/pr/2582/docs/iroh_net/endpoint/struct.ConnectionInfo.html +++ b/pr/2582/docs/iroh_net/endpoint/struct.ConnectionInfo.html @@ -1,4 +1,4 @@ -ConnectionInfo in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::ConnectionInfo

    source ·
    pub struct ConnectionInfo {
    +ConnectionInfo in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::ConnectionInfo

    source ·
    pub struct ConnectionInfo {
         pub id: usize,
         pub node_id: NodeId,
         pub relay_url: Option<RelayUrlInfo>,
    @@ -15,16 +15,16 @@ have about that address and the last time the address was used.

    §conn_type: ConnectionType

    The type of connection we have to the node, either direct or over relay.

    §latency: Option<Duration>

    The latency of the conn_type.

    §last_used: Option<Duration>

    Duration since the last time this node was used.

    -

    Implementations§

    source§

    impl NodeInfo

    source

    pub fn last_received(&self) -> Option<Duration>

    Get the duration since the last activity we received from this endpoint +

    Implementations§

    source§

    impl NodeInfo

    source

    pub fn last_received(&self) -> Option<Duration>

    Get the duration since the last activity we received from this endpoint on any of its direct addresses.

    -
    source

    pub fn last_alive_relay(&self) -> Option<Duration>

    Get the duration since the last activity we received from this endpoint +

    source

    pub fn last_alive_relay(&self) -> Option<Duration>

    Get the duration since the last activity we received from this endpoint on the relay url.

    -
    source

    pub fn has_send_address(&self) -> bool

    Returns true if this info contains either a relay URL or at least one direct address.

    -

    Trait Implementations§

    source§

    impl Clone for NodeInfo

    source§

    fn clone(&self) -> NodeInfo

    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 NodeInfo

    source§

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

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

    impl<'de> Deserialize<'de> for NodeInfo

    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<NodeInfo> for NodeAddr

    source§

    fn from(info: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for NodeInfo

    source§

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

    This method tests for self and other values to be equal, and is used +
    source

    pub fn has_send_address(&self) -> bool

    Returns true if this info contains either a relay URL or at least one direct address.

    +

    Trait Implementations§

    source§

    impl Clone for NodeInfo

    source§

    fn clone(&self) -> NodeInfo

    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 NodeInfo

    source§

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

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

    impl<'de> Deserialize<'de> for NodeInfo

    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<NodeInfo> for NodeAddr

    source§

    fn from(info: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl PartialEq for NodeInfo

    source§

    fn eq(&self, other: &NodeInfo) -> 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 NodeInfo

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

    impl Eq for NodeInfo

    source§

    impl StructuralPartialEq for NodeInfo

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +sufficient, and should not be overridden without very good reason.

    source§

    impl Serialize for NodeInfo

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

    impl Eq for NodeInfo

    source§

    impl StructuralPartialEq for NodeInfo

    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/2582/docs/iroh_net/endpoint/struct.ConnectionTypeStream.html b/pr/2582/docs/iroh_net/endpoint/struct.ConnectionTypeStream.html index 1a86fe4bca..a6a59eb36c 100644 --- a/pr/2582/docs/iroh_net/endpoint/struct.ConnectionTypeStream.html +++ b/pr/2582/docs/iroh_net/endpoint/struct.ConnectionTypeStream.html @@ -1,5 +1,5 @@ -ConnectionTypeStream in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::ConnectionTypeStream

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

    Stream returning ConnectionTypes

    -

    Trait Implementations§

    source§

    impl Debug for ConnectionTypeStream

    source§

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

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

    impl Stream for ConnectionTypeStream

    §

    type Item = ConnectionType

    Values yielded by the stream.
    source§

    fn poll_next( +ConnectionTypeStream in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::ConnectionTypeStream

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

    Stream returning ConnectionTypes

    +

    Trait Implementations§

    source§

    impl Debug for ConnectionTypeStream

    source§

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

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

    impl Stream for ConnectionTypeStream

    §

    type Item = ConnectionType

    Values yielded by the stream.
    source§

    fn poll_next( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Option<Self::Item>>

    Attempt to pull out the next value of this stream, registering the diff --git a/pr/2582/docs/iroh_net/endpoint/struct.DirectAddr.html b/pr/2582/docs/iroh_net/endpoint/struct.DirectAddr.html index b8b3f0dccb..69e389ab97 100644 --- a/pr/2582/docs/iroh_net/endpoint/struct.DirectAddr.html +++ b/pr/2582/docs/iroh_net/endpoint/struct.DirectAddr.html @@ -1,4 +1,4 @@ -DirectAddr in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::DirectAddr

    source ·
    pub struct DirectAddr {
    +DirectAddr in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::DirectAddr

    source ·
    pub struct DirectAddr {
         pub addr: SocketAddr,
         pub typ: DirectAddrType,
     }
    Expand description

    A direct address on which an iroh-node might be contactable.

    @@ -7,16 +7,16 @@ contacted. These can come from various sources depending on the network topolog iroh-net node, see DirectAddrType for the several kinds of sources.

    Fields§

    §addr: SocketAddr

    The address.

    §typ: DirectAddrType

    The origin of this direct address.

    -

    Trait Implementations§

    source§

    impl Clone for DirectAddr

    source§

    fn clone(&self) -> DirectAddr

    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 DirectAddr

    source§

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

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

    impl Hash for DirectAddr

    source§

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

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

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

    Trait Implementations§

    source§

    impl Clone for DirectAddr

    source§

    fn clone(&self) -> DirectAddr

    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 DirectAddr

    source§

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

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

    impl Hash for DirectAddr

    source§

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

    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 Ord for DirectAddr

    source§

    fn cmp(&self, other: &DirectAddr) -> 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,

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

    impl Ord for DirectAddr

    source§

    fn cmp(&self, other: &DirectAddr) -> 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 DirectAddr

    source§

    fn eq(&self, other: &DirectAddr) -> 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
    source§

    impl PartialEq for DirectAddr

    source§

    fn eq(&self, other: &DirectAddr) -> 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 DirectAddr

    source§

    fn partial_cmp(&self, other: &DirectAddr) -> 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.
    source§

    impl PartialOrd for DirectAddr

    source§

    fn partial_cmp(&self, other: &DirectAddr) -> 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 Eq for DirectAddr

    source§

    impl StructuralPartialEq for DirectAddr

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +operator. Read more

    source§

    impl Eq for DirectAddr

    source§

    impl StructuralPartialEq for DirectAddr

    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/2582/docs/iroh_net/endpoint/struct.DirectAddrInfo.html b/pr/2582/docs/iroh_net/endpoint/struct.DirectAddrInfo.html index d82d94e0a2..108659d3e0 100644 --- a/pr/2582/docs/iroh_net/endpoint/struct.DirectAddrInfo.html +++ b/pr/2582/docs/iroh_net/endpoint/struct.DirectAddrInfo.html @@ -1,4 +1,4 @@ -DirectAddrInfo in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::DirectAddrInfo

    source ·
    pub struct DirectAddrInfo {
    +DirectAddrInfo in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::DirectAddrInfo

    source ·
    pub struct DirectAddrInfo {
         pub addr: SocketAddr,
         pub latency: Option<Duration>,
         pub last_control: Option<(Duration, ControlMsg)>,
    @@ -10,11 +10,11 @@
     
    §last_control: Option<(Duration, ControlMsg)>

    Last control message received by this node.

    §last_payload: Option<Duration>

    How long ago was the last payload message for this node.

    §last_alive: Option<Duration>

    When was this connection last alive, if ever.

    -

    Trait Implementations§

    source§

    impl Clone for DirectAddrInfo

    source§

    fn clone(&self) -> DirectAddrInfo

    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 DirectAddrInfo

    source§

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

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

    impl<'de> Deserialize<'de> for DirectAddrInfo

    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 PartialEq for DirectAddrInfo

    source§

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

    This method tests for self and other values to be equal, and is used +

    Trait Implementations§

    source§

    impl Clone for DirectAddrInfo

    source§

    fn clone(&self) -> DirectAddrInfo

    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 DirectAddrInfo

    source§

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

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

    impl<'de> Deserialize<'de> for DirectAddrInfo

    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 PartialEq for DirectAddrInfo

    source§

    fn eq(&self, other: &DirectAddrInfo) -> 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 DirectAddrInfo

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

    impl Eq for DirectAddrInfo

    source§

    impl StructuralPartialEq for DirectAddrInfo

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +sufficient, and should not be overridden without very good reason.

    source§

    impl Serialize for DirectAddrInfo

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

    impl Eq for DirectAddrInfo

    source§

    impl StructuralPartialEq for DirectAddrInfo

    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/2582/docs/iroh_net/endpoint/struct.DirectAddrsStream.html b/pr/2582/docs/iroh_net/endpoint/struct.DirectAddrsStream.html index acb7c637c0..60dc2fa07c 100644 --- a/pr/2582/docs/iroh_net/endpoint/struct.DirectAddrsStream.html +++ b/pr/2582/docs/iroh_net/endpoint/struct.DirectAddrsStream.html @@ -1,5 +1,5 @@ -DirectAddrsStream in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::DirectAddrsStream

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

    Stream returning local endpoints as they change.

    -

    Trait Implementations§

    source§

    impl Debug for DirectAddrsStream

    source§

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

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

    impl Stream for DirectAddrsStream

    §

    type Item = Vec<DirectAddr>

    Values yielded by the stream.
    source§

    fn poll_next( +DirectAddrsStream in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::DirectAddrsStream

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

    Stream returning local endpoints as they change.

    +

    Trait Implementations§

    source§

    impl Debug for DirectAddrsStream

    source§

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

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

    impl Stream for DirectAddrsStream

    §

    type Item = Vec<DirectAddr>

    Values yielded by the stream.
    source§

    fn poll_next( self: Pin<&mut Self>, cx: &mut Context<'_> ) -> Poll<Option<Self::Item>>

    Attempt to pull out the next value of this stream, registering the diff --git a/pr/2582/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2582/docs/iroh_net/endpoint/struct.NodeAddr.html index 84c714f4f9..841d0580a1 100644 --- a/pr/2582/docs/iroh_net/endpoint/struct.NodeAddr.html +++ b/pr/2582/docs/iroh_net/endpoint/struct.NodeAddr.html @@ -1,4 +1,4 @@ -NodeAddr in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::NodeAddr

    source ·
    pub struct NodeAddr {
    +NodeAddr in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::NodeAddr

    pub struct NodeAddr {
         pub node_id: PublicKey,
         pub info: AddrInfo,
     }
    Expand description

    Network-level addressing information for an iroh-net node.

    @@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type whenever a connection to other nodes needs to be established.

    Fields§

    §node_id: PublicKey

    The node’s identifier.

    §info: AddrInfo

    Addressing information to connect to Self::node_id.

    -

    Implementations§

    source§

    impl NodeAddr

    source

    pub fn new(node_id: PublicKey) -> NodeAddr

    Creates a new NodeAddr with empty AddrInfo.

    -
    source

    pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr

    Adds a relay url to the node’s AddrInfo.

    -
    source

    pub fn with_direct_addresses( +

    Implementations§

    §

    impl NodeAddr

    pub fn new(node_id: PublicKey) -> NodeAddr

    Creates a new NodeAddr with empty AddrInfo.

    +

    pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr

    Adds a relay url to the node’s AddrInfo.

    +

    pub fn with_direct_addresses( self, addresses: impl IntoIterator<Item = SocketAddr> ) -> NodeAddr

    Adds the given direct addresses to the peer’s AddrInfo.

    -
    source

    pub fn from_parts( +

    pub fn from_parts( node_id: PublicKey, relay_url: Option<RelayUrl>, direct_addresses: Vec<SocketAddr> ) -> NodeAddr

    Creates a new NodeAddr from its parts.

    -
    source

    pub fn apply_options(&mut self, opts: AddrInfoOptions)

    Applies the options to self.

    +

    pub fn apply_options(&mut self, opts: AddrInfoOptions)

    Applies the options to self.

    This is used to more tightly control the information stored in a NodeAddr received from another API. E.g. to ensure a discovery service is used the AddrInfoOptions::Id] option could be used to remove all other addressing details.

    -
    source

    pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>

    Returns the direct addresses of this peer.

    -
    source

    pub fn relay_url(&self) -> Option<&RelayUrl>

    Returns the relay url of this peer.

    -

    Trait Implementations§

    source§

    impl Clone for NodeAddr

    source§

    fn clone(&self) -> NodeAddr

    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 NodeAddr

    source§

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

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

    impl<'de> Deserialize<'de> for NodeAddr

    pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>

    Returns the direct addresses of this peer.

    +

    pub fn relay_url(&self) -> Option<&RelayUrl>

    Returns the relay url of this peer.

    +

    Trait Implementations§

    §

    impl Clone for NodeAddr

    §

    fn clone(&self) -> NodeAddr

    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 NodeAddr

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<'de> Deserialize<'de> for NodeAddr

    §

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

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

    impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

    source§

    fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

    Converts to this type from the input type.
    source§

    impl From<NodeInfo> for NodeAddr

    source§

    fn from(info: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl From<NodeInfo> for NodeAddr

    source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl From<PublicKey> for NodeAddr

    source§

    fn from(node_id: PublicKey) -> NodeAddr

    Converts to this type from the input type.
    source§

    impl Ord for NodeAddr

    source§

    fn cmp(&self, other: &NodeAddr) -> 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 From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

    §

    fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

    Converts to this type from the input type.
    source§

    impl From<NodeInfo> for NodeAddr

    source§

    fn from(info: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl From<NodeInfo> for NodeAddr

    source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    §

    impl From<PublicKey> for NodeAddr

    §

    fn from(node_id: PublicKey) -> NodeAddr

    Converts to this type from the input type.
    §

    impl Ord for NodeAddr

    §

    fn cmp(&self, other: &NodeAddr) -> 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 NodeAddr

    source§

    fn eq(&self, other: &NodeAddr) -> 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 NodeAddr

    §

    fn eq(&self, other: &NodeAddr) -> 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 NodeAddr

    source§

    fn partial_cmp(&self, other: &NodeAddr) -> 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 NodeAddr

    §

    fn partial_cmp(&self, other: &NodeAddr) -> 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 NodeAddr

    source§

    fn serialize<__S>( +operator. Read more

    §

    impl Serialize for NodeAddr

    §

    fn serialize<__S>( &self, __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 NodeAddr

    source§

    impl StructuralPartialEq for NodeAddr

    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 NodeAddr

    §

    impl StructuralPartialEq for NodeAddr

    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/2582/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2582/docs/iroh_net/key/enum.KeyParsingError.html index 951ead0980..94d2995714 100644 --- a/pr/2582/docs/iroh_net/key/enum.KeyParsingError.html +++ b/pr/2582/docs/iroh_net/key/enum.KeyParsingError.html @@ -1,10 +1,10 @@ -KeyParsingError in iroh_net::key - Rust

    Enum iroh_net::key::KeyParsingError

    source ·
    pub enum KeyParsingError {
    -    Base32(HexOrBase32ParseError),
    +KeyParsingError in iroh_net::key - Rust

    Enum iroh_net::key::KeyParsingError

    pub enum KeyParsingError {
    +    Base32(HexOrBase32ParseError),
         Key(Error),
     }
    Expand description

    Error when deserialising a PublicKey or a SecretKey.

    -

    Variants§

    §

    Base32(HexOrBase32ParseError)

    Error when decoding the base32.

    +

    Variants§

    §

    Base32(HexOrBase32ParseError)

    Error when decoding the base32.

    §

    Key(Error)

    Error when decoding the public key.

    -

    Trait Implementations§

    source§

    impl Debug for KeyParsingError

    source§

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

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

    impl Display for KeyParsingError

    source§

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

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

    impl Error for KeyParsingError

    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<Error> for KeyParsingError

    source§

    fn from(source: Error) -> KeyParsingError

    Converts to this type from the input type.
    source§

    impl From<HexOrBase32ParseError> for KeyParsingError

    source§

    fn from(source: HexOrBase32ParseError) -> KeyParsingError

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Debug for KeyParsingError

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Display for KeyParsingError

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Error for KeyParsingError

    §

    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<Error> for KeyParsingError

    §

    fn from(source: Error) -> KeyParsingError

    Converts to this type from the input type.
    §

    impl From<HexOrBase32ParseError> for KeyParsingError

    §

    fn from(source: HexOrBase32ParseError) -> KeyParsingError

    Converts to this type from the input type.

    Auto Trait Implementations§

    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/2582/docs/iroh_net/key/index.html b/pr/2582/docs/iroh_net/key/index.html index 7d43263556..894679a61b 100644 --- a/pr/2582/docs/iroh_net/key/index.html +++ b/pr/2582/docs/iroh_net/key/index.html @@ -1,2 +1,2 @@ -iroh_net::key - Rust

    Module iroh_net::key

    source ·
    Expand description

    Cryptographic key handling for iroh-net.

    +iroh_net::key - Rust

    Module iroh_net::key

    Expand description

    Cryptographic key handling for iroh-net.

    Structs§

    Enums§

    Constants§

    Type Aliases§

    • The identifier for a node in the (iroh) network.
    \ No newline at end of file diff --git a/pr/2582/docs/iroh_net/key/struct.PublicKey.html b/pr/2582/docs/iroh_net/key/struct.PublicKey.html index 077d21b55e..e5a747bd93 100644 --- a/pr/2582/docs/iroh_net/key/struct.PublicKey.html +++ b/pr/2582/docs/iroh_net/key/struct.PublicKey.html @@ -1,45 +1,45 @@ -PublicKey in iroh_net::key - Rust

    Struct iroh_net::key::PublicKey

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

    A public key.

    +PublicKey in iroh_net::key - Rust

    Struct iroh_net::key::PublicKey

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

    A public key.

    The key itself is just a 32 byte array, but a key has associated crypto information that is cached for performance reasons.

    The cache item will be refreshed every time a crypto operation is performed, or when a key is deserialised or created from a byte array.

    Serialisation or creation from a byte array is cheap if the key is already in the cache, but expensive if it is not.

    -

    Implementations§

    source§

    impl PublicKey

    source

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

    Get this public key as a byte array.

    -
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>

    Construct a PublicKey from a slice of bytes.

    +

    Implementations§

    §

    impl PublicKey

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

    Get this public key as a byte array.

    +

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>

    Construct a PublicKey from a slice of bytes.

    §Warning

    This will return a [SignatureError] if the bytes passed into this method do not represent a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes. See [VerifyingKey::from_bytes] for details.

    -
    source

    pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>

    Verify a signature on a message with this secret key’s public key.

    +

    pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>

    Verify a signature on a message with this secret key’s public key.

    §Return

    Returns Ok(()) if the signature is valid, and Err otherwise.

    -
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string +

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string representation of the key.

    -

    Trait Implementations§

    source§

    impl AsRef<[u8]> for PublicKey

    source§

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

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

    impl Clone for PublicKey

    source§

    fn clone(&self) -> PublicKey

    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 PublicKey

    source§

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

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

    impl<'de> Deserialize<'de> for PublicKey

    Trait Implementations§

    §

    impl AsRef<[u8]> for PublicKey

    §

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

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

    impl Clone for PublicKey

    §

    fn clone(&self) -> PublicKey

    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 PublicKey

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<'de> Deserialize<'de> for PublicKey

    §

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

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

    impl Display for PublicKey

    source§

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

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

    impl From<PublicKey> for NodeAddr

    source§

    fn from(node_id: PublicKey) -> NodeAddr

    Converts to this type from the input type.
    source§

    impl From<VerifyingKey> for PublicKey

    source§

    fn from(verifying_key: VerifyingKey) -> PublicKey

    Converts to this type from the input type.
    source§

    impl FromStr for PublicKey

    Deserialises the PublicKey from it’s base32 encoding.

    + D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more

    §

    impl Display for PublicKey

    §

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

    Formats the value using the given formatter. Read more
    §

    impl From<PublicKey> for NodeAddr

    §

    fn from(node_id: PublicKey) -> NodeAddr

    Converts to this type from the input type.
    §

    impl From<VerifyingKey> for PublicKey

    §

    fn from(verifying_key: VerifyingKey) -> PublicKey

    Converts to this type from the input type.
    §

    impl FromStr for PublicKey

    Deserialises the PublicKey from it’s base32 encoding.

    Display is capable of serialising this format.

    -
    §

    type Err = KeyParsingError

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

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

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

    impl Hash for PublicKey

    source§

    fn hash<H>(&self, state: &mut H)
    where +
    §

    type Err = KeyParsingError

    The associated error which can be returned from parsing.
    §

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

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

    §

    impl Hash for PublicKey

    §

    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 Ord for PublicKey

    source§

    fn cmp(&self, other: &PublicKey) -> 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,

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

    impl Ord for PublicKey

    §

    fn cmp(&self, other: &PublicKey) -> 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 PublicKey

    source§

    fn eq(&self, other: &PublicKey) -> 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 PublicKey

    §

    fn eq(&self, other: &PublicKey) -> 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 PublicKey

    source§

    fn partial_cmp(&self, other: &PublicKey) -> 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 PublicKey

    §

    fn partial_cmp(&self, other: &PublicKey) -> 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 PublicKey

    source§

    fn serialize<S>( +operator. Read more

    §

    impl Serialize for PublicKey

    §

    fn serialize<S>( &self, 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 TryFrom<&[u8]> for PublicKey

    §

    type Error = Error

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

    fn try_from( + S: Serializer,

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

    impl TryFrom<&[u8]> for PublicKey

    §

    type Error = Error

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

    fn try_from( bytes: &[u8] -) -> Result<PublicKey, <PublicKey as TryFrom<&[u8]>>::Error>

    Performs the conversion.
    source§

    impl TryFrom<&[u8; 32]> for PublicKey

    §

    type Error = Error

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

    fn try_from( +) -> Result<PublicKey, <PublicKey as TryFrom<&[u8]>>::Error>

    Performs the conversion.
    §

    impl TryFrom<&[u8; 32]> for PublicKey

    §

    type Error = Error

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

    fn try_from( bytes: &[u8; 32] -) -> Result<PublicKey, <PublicKey as TryFrom<&[u8; 32]>>::Error>

    Performs the conversion.
    source§

    impl Copy for PublicKey

    source§

    impl Eq for PublicKey

    source§

    impl StructuralPartialEq for PublicKey

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +) -> Result<PublicKey, <PublicKey as TryFrom<&[u8; 32]>>::Error>

    Performs the conversion.
    §

    impl Copy for PublicKey

    §

    impl Eq for PublicKey

    §

    impl StructuralPartialEq for PublicKey

    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]>, T: BitStore,

    §

    fn as_bits<O>(&self) -> &BitSlice<T, O>
    where diff --git a/pr/2582/docs/iroh_net/key/struct.SecretKey.html b/pr/2582/docs/iroh_net/key/struct.SecretKey.html index 3a113a463e..663716baab 100644 --- a/pr/2582/docs/iroh_net/key/struct.SecretKey.html +++ b/pr/2582/docs/iroh_net/key/struct.SecretKey.html @@ -1,24 +1,24 @@ -SecretKey in iroh_net::key - Rust

    Struct iroh_net::key::SecretKey

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

    A secret key.

    -

    Implementations§

    source§

    impl SecretKey

    source

    pub fn shared(&self, other: &PublicKey) -> SharedSecret

    Returns the shared key for communication between this key and other.

    -
    source§

    impl SecretKey

    source

    pub fn public(&self) -> PublicKey

    The public key of this SecretKey.

    -
    source

    pub fn generate() -> SecretKey

    Generate a new SecretKey with the default randomness generator.

    -
    source

    pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKey
    where +SecretKey in iroh_net::key - Rust

    Struct iroh_net::key::SecretKey

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

    A secret key.

    +

    Implementations§

    §

    impl SecretKey

    pub fn shared(&self, other: &PublicKey) -> SharedSecret

    Returns the shared key for communication between this key and other.

    +
    §

    impl SecretKey

    pub fn public(&self) -> PublicKey

    The public key of this SecretKey.

    +

    pub fn generate() -> SecretKey

    Generate a new SecretKey with the default randomness generator.

    +

    pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKey
    where R: CryptoRngCore + ?Sized,

    Generate a new SecretKey with a randomness generator.

    -
    source

    pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>

    Serialise this key to OpenSSH format.

    -
    source

    pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
    where +

    pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>

    Serialise this key to OpenSSH format.

    +

    pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
    where T: AsRef<[u8]>,

    Deserialise this key from OpenSSH format.

    -
    source

    pub fn sign(&self, msg: &[u8]) -> Signature

    Sign the given message and return a digital signature

    -
    source

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

    Convert this to the bytes representing the secret part. +

    pub fn sign(&self, msg: &[u8]) -> Signature

    Sign the given message and return a digital signature

    +

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

    Convert this to the bytes representing the secret part. The public part can always be recovered.

    -
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey

    Create a secret key from its byte representation.

    -

    Trait Implementations§

    source§

    impl Clone for SecretKey

    source§

    fn clone(&self) -> SecretKey

    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 SecretKey

    source§

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

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

    impl<'de> Deserialize<'de> for SecretKey

    pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey

    Create a secret key from its byte representation.

    +

    Trait Implementations§

    §

    impl Clone for SecretKey

    §

    fn clone(&self) -> SecretKey

    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 SecretKey

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<'de> Deserialize<'de> for SecretKey

    §

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

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

    impl Display for SecretKey

    source§

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

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

    impl From<[u8; 32]> for SecretKey

    source§

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

    Converts to this type from the input type.
    source§

    impl From<SigningKey> for SecretKey

    source§

    fn from(secret: SigningKey) -> SecretKey

    Converts to this type from the input type.
    source§

    impl FromStr for SecretKey

    §

    type Err = KeyParsingError

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

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

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

    impl Serialize for SecretKey

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

    impl Display for SecretKey

    §

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

    Formats the value using the given formatter. Read more
    §

    impl From<[u8; 32]> for SecretKey

    §

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

    Converts to this type from the input type.
    §

    impl From<SigningKey> for SecretKey

    §

    fn from(secret: SigningKey) -> SecretKey

    Converts to this type from the input type.
    §

    impl FromStr for SecretKey

    §

    type Err = KeyParsingError

    The associated error which can be returned from parsing.
    §

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

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

    impl Serialize for SecretKey

    §

    fn serialize<S>( &self, 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 TryFrom<&[u8]> for SecretKey

    §

    type Error = Error

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

    fn try_from( + S: Serializer,

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

    impl TryFrom<&[u8]> for SecretKey

    §

    type Error = Error

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

    fn try_from( bytes: &[u8] ) -> Result<SecretKey, <SecretKey as TryFrom<&[u8]>>::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 diff --git a/pr/2582/docs/iroh_net/key/struct.SharedSecret.html b/pr/2582/docs/iroh_net/key/struct.SharedSecret.html index e86f2bc884..454a822fdf 100644 --- a/pr/2582/docs/iroh_net/key/struct.SharedSecret.html +++ b/pr/2582/docs/iroh_net/key/struct.SharedSecret.html @@ -1,7 +1,7 @@ -SharedSecret in iroh_net::key - Rust

    Struct iroh_net::key::SharedSecret

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

    Shared Secret.

    -

    Implementations§

    source§

    impl SharedSecret

    source

    pub fn seal(&self, buffer: &mut dyn Buffer)

    Seals the provided cleartext.

    -
    source

    pub fn open(&self, buffer: &mut dyn Buffer) -> Result<(), Error>

    Opens the ciphertext, which must have been created using Self::seal, and places the clear text into the provided buffer.

    -

    Trait Implementations§

    source§

    impl Debug for SharedSecret

    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 +SharedSecret in iroh_net::key - Rust

    Struct iroh_net::key::SharedSecret

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

    Shared Secret.

    +

    Implementations§

    §

    impl SharedSecret

    pub fn seal(&self, buffer: &mut dyn Buffer)

    Seals the provided cleartext.

    +

    pub fn open(&self, buffer: &mut dyn Buffer) -> Result<(), Error>

    Opens the ciphertext, which must have been created using Self::seal, and places the clear text into the provided buffer.

    +

    Trait Implementations§

    §

    impl Debug for SharedSecret

    §

    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/2582/docs/iroh_net/key/type.NodeId.html b/pr/2582/docs/iroh_net/key/type.NodeId.html index c0f10b831c..50c5321bfd 100644 --- a/pr/2582/docs/iroh_net/key/type.NodeId.html +++ b/pr/2582/docs/iroh_net/key/type.NodeId.html @@ -1,4 +1,4 @@ -NodeId in iroh_net::key - Rust

    Type Alias iroh_net::key::NodeId

    source ·
    pub type NodeId = PublicKey;
    Expand description

    The identifier for a node in the (iroh) network.

    +NodeId in iroh_net::key - Rust

    Type Alias iroh_net::key::NodeId

    pub type NodeId = PublicKey;
    Expand description

    The identifier for a node in the (iroh) network.

    Each node in iroh has a unique identifier created as a cryptographic key. This can be used to globally identify a node. Since it is also a cryptographic key it is also the mechanism by which all traffic is always encrypted for a specific node only.

    diff --git a/pr/2582/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2582/docs/iroh_net/relay/struct.RelayUrl.html index d3ef85c753..6a8eabc26b 100644 --- a/pr/2582/docs/iroh_net/relay/struct.RelayUrl.html +++ b/pr/2582/docs/iroh_net/relay/struct.RelayUrl.html @@ -1,4 +1,4 @@ -RelayUrl in iroh_net::relay - Rust

    Struct iroh_net::relay::RelayUrl

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

    A URL identifying a relay server.

    +RelayUrl in iroh_net::relay - Rust

    Struct iroh_net::relay::RelayUrl

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

    A URL identifying a relay server.

    This is but a wrapper around Url, with a few custom tweaks:

    • @@ -441,30 +441,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi or if Path::new_opt() returns None. (That is, if the percent-decoded path contains a NUL byte or, for a Windows path, is not UTF-8.)

      -

    Trait Implementations§

    source§

    impl Clone for RelayUrl

    source§

    fn clone(&self) -> RelayUrl

    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 RelayUrl

    source§

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

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

    impl Deref for RelayUrl

    Dereferences to the wrapped Url.

    +

    Trait Implementations§

    §

    impl Clone for RelayUrl

    §

    fn clone(&self) -> RelayUrl

    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 RelayUrl

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Deref for RelayUrl

    Dereferences to the wrapped Url.

    Note that DerefMut is not implemented on purpose, so this type has more flexibility to change the inner later.

    -
    §

    type Target = Url

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &<RelayUrl as Deref>::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for RelayUrl

    §

    type Target = Url

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &<RelayUrl as Deref>::Target

    Dereferences the value.
    §

    impl<'de> Deserialize<'de> for RelayUrl

    §

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

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

    impl Display for RelayUrl

    source§

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

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

    impl From<RelayUrl> for Url

    source§

    fn from(value: RelayUrl) -> Url

    Converts to this type from the input type.
    source§

    impl From<Url> for RelayUrl

    source§

    fn from(url: Url) -> RelayUrl

    Converts to this type from the input type.
    source§

    impl FromStr for RelayUrl

    Support for parsing strings directly.

    + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more

    §

    impl Display for RelayUrl

    §

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

    Formats the value using the given formatter. Read more
    §

    impl From<RelayUrl> for Url

    §

    fn from(value: RelayUrl) -> Url

    Converts to this type from the input type.
    §

    impl From<Url> for RelayUrl

    §

    fn from(url: Url) -> RelayUrl

    Converts to this type from the input type.
    §

    impl FromStr for RelayUrl

    Support for parsing strings directly.

    If you need more control over the error first create a Url and use RelayUrl::from instead.

    -
    §

    type Err = Error

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

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

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

    impl Hash for RelayUrl

    source§

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

    type Err = Error

    The associated error which can be returned from parsing.
    §

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

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

    §

    impl Hash for RelayUrl

    §

    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 Ord for RelayUrl

    source§

    fn cmp(&self, other: &RelayUrl) -> 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,

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

    impl Ord for RelayUrl

    §

    fn cmp(&self, other: &RelayUrl) -> 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 RelayUrl

    source§

    fn eq(&self, other: &RelayUrl) -> 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 RelayUrl

    §

    fn eq(&self, other: &RelayUrl) -> 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 RelayUrl

    source§

    fn partial_cmp(&self, other: &RelayUrl) -> 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 RelayUrl

    §

    fn partial_cmp(&self, other: &RelayUrl) -> 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 RelayUrl

    source§

    fn serialize<__S>( +operator. Read more

    §

    impl Serialize for RelayUrl

    §

    fn serialize<__S>( &self, __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 RelayUrl

    source§

    impl StructuralPartialEq for RelayUrl

    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 RelayUrl

    §

    impl StructuralPartialEq for RelayUrl

    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/2582/docs/iroh_net/struct.AddrInfo.html b/pr/2582/docs/iroh_net/struct.AddrInfo.html index 455d835417..5a88bf8663 100644 --- a/pr/2582/docs/iroh_net/struct.AddrInfo.html +++ b/pr/2582/docs/iroh_net/struct.AddrInfo.html @@ -1,4 +1,4 @@ -AddrInfo in iroh_net - Rust

    Struct iroh_net::AddrInfo

    source ·
    pub struct AddrInfo {
    +AddrInfo in iroh_net - Rust

    Struct iroh_net::AddrInfo

    pub struct AddrInfo {
         pub relay_url: Option<RelayUrl>,
         pub direct_addresses: BTreeSet<SocketAddr>,
     }
    Expand description

    Network paths to contact an iroh-net node.

    @@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to other node, see NodeAddr for details.

    Fields§

    §relay_url: Option<RelayUrl>

    The node’s home relay url.

    §direct_addresses: BTreeSet<SocketAddr>

    Socket addresses where the peer might be reached directly.

    -

    Implementations§

    source§

    impl AddrInfo

    source

    pub fn is_empty(&self) -> bool

    Returns whether this addressing information is empty.

    -
    source

    pub fn apply_options(&mut self, opts: AddrInfoOptions)

    Applies the options to self.

    +

    Implementations§

    §

    impl AddrInfo

    pub fn is_empty(&self) -> bool

    Returns whether this addressing information is empty.

    +

    pub fn apply_options(&mut self, opts: AddrInfoOptions)

    Applies the options to self.

    This is used to more tightly control the information stored in ab AddrInfo received from another API. E.g. to ensure a discovery service is used the AddrInfoOptions::Id] option could be used to remove all other addressing details.

    -

    Trait Implementations§

    source§

    impl Clone for AddrInfo

    source§

    fn clone(&self) -> AddrInfo

    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 AddrInfo

    source§

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

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

    impl Default for AddrInfo

    source§

    fn default() -> AddrInfo

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

    impl<'de> Deserialize<'de> for AddrInfo

    Trait Implementations§

    §

    impl Clone for AddrInfo

    §

    fn clone(&self) -> AddrInfo

    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 AddrInfo

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Default for AddrInfo

    §

    fn default() -> AddrInfo

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

    impl<'de> Deserialize<'de> for AddrInfo

    §

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

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

    impl From<NodeInfo> for AddrInfo

    source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl Ord for AddrInfo

    source§

    fn cmp(&self, other: &AddrInfo) -> 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<NodeInfo> for AddrInfo

    source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    §

    impl Ord for AddrInfo

    §

    fn cmp(&self, other: &AddrInfo) -> 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 AddrInfo

    source§

    fn eq(&self, other: &AddrInfo) -> 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 AddrInfo

    §

    fn eq(&self, other: &AddrInfo) -> 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 AddrInfo

    source§

    fn partial_cmp(&self, other: &AddrInfo) -> 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 AddrInfo

    §

    fn partial_cmp(&self, other: &AddrInfo) -> 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 AddrInfo

    source§

    fn serialize<__S>( +operator. Read more

    §

    impl Serialize for AddrInfo

    §

    fn serialize<__S>( &self, __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 AddrInfo

    source§

    impl StructuralPartialEq for AddrInfo

    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 AddrInfo

    §

    impl StructuralPartialEq for AddrInfo

    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/2582/docs/iroh_net/struct.NodeAddr.html b/pr/2582/docs/iroh_net/struct.NodeAddr.html index 1034418ae4..c1a63091b3 100644 --- a/pr/2582/docs/iroh_net/struct.NodeAddr.html +++ b/pr/2582/docs/iroh_net/struct.NodeAddr.html @@ -1,4 +1,4 @@ -NodeAddr in iroh_net - Rust

    Struct iroh_net::NodeAddr

    source ·
    pub struct NodeAddr {
    +NodeAddr in iroh_net - Rust

    Struct iroh_net::NodeAddr

    pub struct NodeAddr {
         pub node_id: PublicKey,
         pub info: AddrInfo,
     }
    Expand description

    Network-level addressing information for an iroh-net node.

    @@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type whenever a connection to other nodes needs to be established.

    Fields§

    §node_id: PublicKey

    The node’s identifier.

    §info: AddrInfo

    Addressing information to connect to Self::node_id.

    -

    Implementations§

    source§

    impl NodeAddr

    source

    pub fn new(node_id: PublicKey) -> NodeAddr

    Creates a new NodeAddr with empty AddrInfo.

    -
    source

    pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr

    Adds a relay url to the node’s AddrInfo.

    -
    source

    pub fn with_direct_addresses( +

    Implementations§

    §

    impl NodeAddr

    pub fn new(node_id: PublicKey) -> NodeAddr

    Creates a new NodeAddr with empty AddrInfo.

    +

    pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr

    Adds a relay url to the node’s AddrInfo.

    +

    pub fn with_direct_addresses( self, addresses: impl IntoIterator<Item = SocketAddr> ) -> NodeAddr

    Adds the given direct addresses to the peer’s AddrInfo.

    -
    source

    pub fn from_parts( +

    pub fn from_parts( node_id: PublicKey, relay_url: Option<RelayUrl>, direct_addresses: Vec<SocketAddr> ) -> NodeAddr

    Creates a new NodeAddr from its parts.

    -
    source

    pub fn apply_options(&mut self, opts: AddrInfoOptions)

    Applies the options to self.

    +

    pub fn apply_options(&mut self, opts: AddrInfoOptions)

    Applies the options to self.

    This is used to more tightly control the information stored in a NodeAddr received from another API. E.g. to ensure a discovery service is used the AddrInfoOptions::Id] option could be used to remove all other addressing details.

    -
    source

    pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>

    Returns the direct addresses of this peer.

    -
    source

    pub fn relay_url(&self) -> Option<&RelayUrl>

    Returns the relay url of this peer.

    -

    Trait Implementations§

    source§

    impl Clone for NodeAddr

    source§

    fn clone(&self) -> NodeAddr

    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 NodeAddr

    source§

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

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

    impl<'de> Deserialize<'de> for NodeAddr

    pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>

    Returns the direct addresses of this peer.

    +

    pub fn relay_url(&self) -> Option<&RelayUrl>

    Returns the relay url of this peer.

    +

    Trait Implementations§

    §

    impl Clone for NodeAddr

    §

    fn clone(&self) -> NodeAddr

    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 NodeAddr

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<'de> Deserialize<'de> for NodeAddr

    §

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

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

    impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

    source§

    fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

    Converts to this type from the input type.
    source§

    impl From<NodeInfo> for NodeAddr

    source§

    fn from(info: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl From<NodeInfo> for NodeAddr

    source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl From<PublicKey> for NodeAddr

    source§

    fn from(node_id: PublicKey) -> NodeAddr

    Converts to this type from the input type.
    source§

    impl Ord for NodeAddr

    source§

    fn cmp(&self, other: &NodeAddr) -> 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 From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

    §

    fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

    Converts to this type from the input type.
    source§

    impl From<NodeInfo> for NodeAddr

    source§

    fn from(info: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl From<NodeInfo> for NodeAddr

    source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    §

    impl From<PublicKey> for NodeAddr

    §

    fn from(node_id: PublicKey) -> NodeAddr

    Converts to this type from the input type.
    §

    impl Ord for NodeAddr

    §

    fn cmp(&self, other: &NodeAddr) -> 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 NodeAddr

    source§

    fn eq(&self, other: &NodeAddr) -> 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 NodeAddr

    §

    fn eq(&self, other: &NodeAddr) -> 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 NodeAddr

    source§

    fn partial_cmp(&self, other: &NodeAddr) -> 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 NodeAddr

    §

    fn partial_cmp(&self, other: &NodeAddr) -> 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 NodeAddr

    source§

    fn serialize<__S>( +operator. Read more

    §

    impl Serialize for NodeAddr

    §

    fn serialize<__S>( &self, __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 NodeAddr

    source§

    impl StructuralPartialEq for NodeAddr

    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 NodeAddr

    §

    impl StructuralPartialEq for NodeAddr

    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/2582/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2582/docs/iroh_net/ticket/struct.NodeTicket.html index 8dbad8732c..a3aba309de 100644 --- a/pr/2582/docs/iroh_net/ticket/struct.NodeTicket.html +++ b/pr/2582/docs/iroh_net/ticket/struct.NodeTicket.html @@ -1,17 +1,17 @@ -NodeTicket in iroh_net::ticket - Rust

    Struct iroh_net::ticket::NodeTicket

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

    A token containing everything to get a file from the provider.

    +NodeTicket in iroh_net::ticket - Rust

    Struct iroh_net::ticket::NodeTicket

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

    A token containing everything to get a file from the provider.

    It is a single item which can be easily serialized and deserialized.

    -

    Implementations§

    source§

    impl NodeTicket

    source

    pub fn new(node: NodeAddr) -> Result<NodeTicket, Error>

    Creates a new ticket.

    -
    source

    pub fn node_addr(&self) -> &NodeAddr

    The NodeAddr of the provider for this ticket.

    -

    Trait Implementations§

    source§

    impl Clone for NodeTicket

    source§

    fn clone(&self) -> NodeTicket

    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 NodeTicket

    source§

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

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

    impl<'de> Deserialize<'de> for NodeTicket

    Implementations§

    §

    impl NodeTicket

    pub fn new(node: NodeAddr) -> Result<NodeTicket, Error>

    Creates a new ticket.

    +

    pub fn node_addr(&self) -> &NodeAddr

    The NodeAddr of the provider for this ticket.

    +

    Trait Implementations§

    §

    impl Clone for NodeTicket

    §

    fn clone(&self) -> NodeTicket

    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 NodeTicket

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<'de> Deserialize<'de> for NodeTicket

    §

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

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

    impl Display for NodeTicket

    source§

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

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

    impl FromStr for NodeTicket

    §

    type Err = Error

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

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

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

    impl PartialEq for NodeTicket

    source§

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

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

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

    impl Display for NodeTicket

    §

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

    Formats the value using the given formatter. Read more
    §

    impl FromStr for NodeTicket

    §

    type Err = Error

    The associated error which can be returned from parsing.
    §

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

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

    impl PartialEq for NodeTicket

    §

    fn eq(&self, other: &NodeTicket) -> 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 NodeTicket

    source§

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

    §

    impl Serialize for NodeTicket

    §

    fn serialize<S>( &self, 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 Ticket for NodeTicket

    source§

    const KIND: &'static str = "node"

    String prefix describing the kind of iroh ticket. Read more
    source§

    fn to_bytes(&self) -> Vec<u8> ⓘ

    Serialize to bytes used in the base32 string representation.
    source§

    fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>

    Deserialize from the base32 string representation bytes.
    source§

    fn serialize(&self) -> String

    Serialize to string.
    source§

    fn deserialize(str: &str) -> Result<Self, Error>

    Deserialize from a string.
    source§

    impl Eq for NodeTicket

    source§

    impl StructuralPartialEq for NodeTicket

    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 Ticket for NodeTicket

    §

    const KIND: &'static str = "node"

    String prefix describing the kind of iroh ticket. Read more
    §

    fn to_bytes(&self) -> Vec<u8> ⓘ

    Serialize to bytes used in the base32 string representation.
    §

    fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>

    Deserialize from the base32 string representation bytes.
    §

    fn serialize(&self) -> String

    Serialize to string.
    §

    fn deserialize(str: &str) -> Result<Self, Error>

    Deserialize from a string.
    §

    impl Eq for NodeTicket

    §

    impl StructuralPartialEq for NodeTicket

    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/2582/docs/iroh_net/type.NodeId.html b/pr/2582/docs/iroh_net/type.NodeId.html index 91a87bb483..b710a38283 100644 --- a/pr/2582/docs/iroh_net/type.NodeId.html +++ b/pr/2582/docs/iroh_net/type.NodeId.html @@ -1,4 +1,4 @@ -NodeId in iroh_net - Rust

    Type Alias iroh_net::NodeId

    source ·
    pub type NodeId = PublicKey;
    Expand description

    The identifier for a node in the (iroh) network.

    +NodeId in iroh_net - Rust

    Type Alias iroh_net::NodeId

    pub type NodeId = PublicKey;
    Expand description

    The identifier for a node in the (iroh) network.

    Each node in iroh has a unique identifier created as a cryptographic key. This can be used to globally identify a node. Since it is also a cryptographic key it is also the mechanism by which all traffic is always encrypted for a specific node only.

    diff --git a/pr/2582/docs/iroh_net_bench/enum.EndpointSelector.html b/pr/2582/docs/iroh_net_bench/enum.EndpointSelector.html index a9f2112342..5b214f5221 100644 --- a/pr/2582/docs/iroh_net_bench/enum.EndpointSelector.html +++ b/pr/2582/docs/iroh_net_bench/enum.EndpointSelector.html @@ -1,7 +1,7 @@ EndpointSelector in iroh_net_bench - Rust

    Enum iroh_net_bench::EndpointSelector

    source ·
    pub enum EndpointSelector {
    -    Iroh(Endpoint),
    +    Iroh(Endpoint),
         Quinn(Endpoint),
    -}

    Variants§

    §

    Iroh(Endpoint)

    §

    Quinn(Endpoint)

    Implementations§

    source§

    impl EndpointSelector

    source

    pub async fn close(self) -> Result<()>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +}

    Variants§

    §

    Iroh(Endpoint)

    §

    Quinn(Endpoint)

    Implementations§

    source§

    impl EndpointSelector

    source

    pub async fn close(self) -> Result<()>

    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/2582/docs/iroh_net_bench/iroh/fn.client.html b/pr/2582/docs/iroh_net_bench/iroh/fn.client.html index b1afb2974a..a71457fc76 100644 --- a/pr/2582/docs/iroh_net_bench/iroh/fn.client.html +++ b/pr/2582/docs/iroh_net_bench/iroh/fn.client.html @@ -1,2 +1,2 @@ -client in iroh_net_bench::iroh - Rust

    Function iroh_net_bench::iroh::client

    source ·
    pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
    Expand description

    Create and run a client

    +client in iroh_net_bench::iroh - Rust

    Function iroh_net_bench::iroh::client

    source ·
    pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
    Expand description

    Create and run a client

    \ No newline at end of file diff --git a/pr/2582/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2582/docs/iroh_net_bench/iroh/fn.connect_client.html index 74ed5ebc41..b0d3da8c32 100644 --- a/pr/2582/docs/iroh_net_bench/iroh/fn.connect_client.html +++ b/pr/2582/docs/iroh_net_bench/iroh/fn.connect_client.html @@ -1,5 +1,5 @@ connect_client in iroh_net_bench::iroh - Rust

    Function iroh_net_bench::iroh::connect_client

    source ·
    pub async fn connect_client(
    -    server_addr: NodeAddr,
    +    server_addr: NodeAddr,
         opt: Opt
    -) -> Result<(Endpoint, Connection)>
    Expand description

    Create a client endpoint and client connection

    +) -> Result<(Endpoint, Connection)>
    Expand description

    Create a client endpoint and client connection

    \ No newline at end of file diff --git a/pr/2582/docs/iroh_net_bench/iroh/fn.server.html b/pr/2582/docs/iroh_net_bench/iroh/fn.server.html index 5203cc5cf1..62100e3402 100644 --- a/pr/2582/docs/iroh_net_bench/iroh/fn.server.html +++ b/pr/2582/docs/iroh_net_bench/iroh/fn.server.html @@ -1,2 +1,2 @@ -server in iroh_net_bench::iroh - Rust

    Function iroh_net_bench::iroh::server

    source ·
    pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
    Expand description

    Take the provided endpoint and run the server

    +server in iroh_net_bench::iroh - Rust

    Function iroh_net_bench::iroh::server

    source ·
    pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
    Expand description

    Take the provided endpoint and run the server

    \ No newline at end of file diff --git a/pr/2582/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2582/docs/iroh_net_bench/iroh/fn.server_endpoint.html index 6f4ddc30f8..dbbc5b99e9 100644 --- a/pr/2582/docs/iroh_net_bench/iroh/fn.server_endpoint.html +++ b/pr/2582/docs/iroh_net_bench/iroh/fn.server_endpoint.html @@ -1,2 +1,2 @@ -server_endpoint in iroh_net_bench::iroh - Rust

    Function iroh_net_bench::iroh::server_endpoint

    source ·
    pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
    Expand description

    Creates a server endpoint which runs on the given runtime

    +server_endpoint in iroh_net_bench::iroh - Rust

    Function iroh_net_bench::iroh::server_endpoint

    source ·
    pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
    Expand description

    Creates a server endpoint which runs on the given runtime

    \ No newline at end of file diff --git a/pr/2582/docs/iroh_relay/struct.Config.html b/pr/2582/docs/iroh_relay/struct.Config.html index 7adb6c9e83..1a636fc7b5 100644 --- a/pr/2582/docs/iroh_relay/struct.Config.html +++ b/pr/2582/docs/iroh_relay/struct.Config.html @@ -1,5 +1,5 @@ Config in iroh_relay - Rust

    Struct iroh_relay::Config

    source ·
    pub(crate) struct Config {
    -    pub(crate) secret_key: SecretKey,
    +    pub(crate) secret_key: SecretKey,
         pub(crate) enable_relay: bool,
         pub(crate) http_bind_addr: Option<SocketAddr>,
         pub(crate) tls: Option<TlsConfig>,
    @@ -10,7 +10,7 @@
         pub(crate) metrics_bind_addr: Option<SocketAddr>,
     }
    Expand description

    Configuration for the relay-server.

    This is (de)serialised to/from a TOML config file.

    -

    Fields§

    §secret_key: SecretKey

    The iroh SecretKey for this relay server.

    +

    Fields§

    §secret_key: SecretKey

    The iroh [SecretKey] for this relay server.

    If not specified a new key will be generated and the config file will be re-written using it.

    §enable_relay: bool

    Whether to enable the Relay server.

    diff --git a/pr/2582/docs/search-index.js b/pr/2582/docs/search-index.js index a17b1a4920..9f8bee2eae 100644 --- a/pr/2582/docs/search-index.js +++ b/pr/2582/docs/search-index.js @@ -7,7 +7,7 @@ var searchIndex = new Map(JSON.parse('[\ ["iroh_docs",{"t":"FFFFFFFFNNNNNNNCNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCCNNNONNNNNNNNNNNNNNNNNCCNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNOONOONNNNNNNNNNNNNNNNNPPPFGPFPPGPPPPGPPPFPGPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNOHNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOONONNNNNNNNONONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOFNONNNNNOOOOOOOOOONNNNNNOOOOOOOONNNNNPGGGPPPPPPGSPPPPPPPFFNNNNNNNNNNNNNNNNNNNNNNNNOHNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNOONOONNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOOOOOOOOPPPGPPGKPPPPGFGPPGFPPPGPPPKFFFGGEPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCMNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFFFFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFPGGGPPGIFPFGPGGPPPPSPPPIIPPFPFFPFFFPPFPPGPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOOO","n":["Author","AuthorHeads","AuthorId","AuthorPublicKey","DocTicket","NamespaceId","NamespacePublicKey","NamespaceSecret","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","actor","as_bits","as_bits","as_bytes","as_bytes","as_bytes","as_bytes","as_ref","as_ref","as_ref","as_ref","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","capability","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","cmp","cmp","cmp","cmp","compare","compare","compare","compare","default","default","default","default","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","encode_hex","encode_hex","encode_hex_upper","encode_hex_upper","engine","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt_short","fmt_short","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_bytes","from_bytes","from_bytes","from_bytes","from_bytes","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_str","from_str","from_str","from_str","from_str","from_str","from_str","hash","hash","hash","hash","id","id","into","into","into","into","into","into","into","into_public_key","into_public_key","metrics","net","new","new","new","nodes","partial_cmp","partial_cmp","partial_cmp","partial_cmp","public_key","public_key","public_key","public_key","serialize","serialize","serialize","serialize","serialize","serialize","serialize","sign","sign","store","sync","to_bytes","to_bytes","to_bytes","to_bytes","to_bytes","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","to_string","to_string","to_string","try_as_bits","try_as_bits","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","verify","verify","verify","verify","vzip","vzip","vzip","vzip","vzip","vzip","vzip","OpenOpts","OpenState","SyncHandle","__clone_box","__clone_box","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","close","content_hashes","default","default","delete_author","delete_prefix","deserialize","drop","drop_replica","eq","equivalent","equivalent","equivalent","export_author","export_secret_key","flush_store","fmt","fmt","fmt","from","from","from","from_ref","from_ref","get_download_policy","get_exact","get_many","get_state","get_sync_peers","handles","has_news_for_us","import_author","import_namespace","insert_local","insert_remote","into","into","into","list_authors","list_replicas","open","register_useful_peer","serialize","set_download_policy","set_sync","shutdown","spawn","subscribe","subscribe","subscribe","subscribers","sync","sync","sync","sync_initial_message","sync_process_message","to_owned","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","unsubscribe","vzip","vzip","vzip","Accept","Connect","ContentReady","DefaultAuthor","DefaultAuthorStorage","DirectJoin","Engine","InsertLocal","InsertRemote","LiveEvent","Mem","NeighborDown","NeighborUp","NewNeighbor","Origin","PendingContentReady","Persistent","Resync","SyncEvent","SyncFinished","SyncReason","SyncReport","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","default_author","deserialize","deserialize","deserialize","deserialize","endpoint","entry_to_content_status","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","finished","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","from_ref","from_ref","get","handle_connection","into","into","into","into","into","into","into","leave","load","load","origin","peer","persist","result","serialize","serialize","serialize","serialize","set","shutdown","spawn","start_sync","started","subscribe","sync","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","content_status","entry","entry","from","hash","Metrics","__clone_box","actor_tick_main","borrow","borrow_mut","clone","clone_into","default","doc_gossip_tick_actor","doc_gossip_tick_event","doc_gossip_tick_main","doc_gossip_tick_pending_join","doc_live_tick_actor","doc_live_tick_main","doc_live_tick_pending_downloads","doc_live_tick_replica_event","doc_live_tick_running_sync_accept","doc_live_tick_running_sync_connect","fmt","from","from_ref","into","iter","name","new_entries_local","new_entries_local_size","new_entries_remote","new_entries_remote_size","sync_via_accept_failure","sync_via_accept_success","sync_via_connect_failure","sync_via_connect_success","to_owned","try_from","try_into","type_id","vzip","Abort","AbortReason","AcceptError","AcceptOutcome","Allow","AlreadySyncing","Close","Close","Connect","Connect","ConnectError","DOCS_ALPN","InternalServerError","NotFound","Open","Reject","RemoteAbort","Sync","Sync","SyncFinished","Timings","__clone_box","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","connect","connect_and_sync","default","deserialize","eq","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from_ref","from_ref","from_ref","from_ref","handle_connection","into","into","into","into","into","into","namespace","namespace","outcome","peer","peer","process","serialize","source","source","timings","to_owned","to_owned","to_owned","to_owned","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","error","error","error","error","namespace","namespace","namespace","peer","peer","peer","peer","reason","error","error","error","Any","Any","Asc","AuthorFilter","AuthorKey","Desc","DownloadPolicy","DownloadPolicyStore","EverythingExcept","Exact","Exact","Exact","FilterKind","FlatQuery","ImportNamespaceOutcome","Inserted","KeyAuthor","KeyFilter","MemPublicKeyStore","NoChange","NotFound","NothingExcept","OpenError","Other","Prefix","Prefix","PublicKeyStore","Query","QueryBuilder","SingleLatestPerKeyQuery","SortBy","SortDirection","Store","Upgraded","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","all","author","author","author_key","author_key","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","build","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","default","default","default","default","default","default","default","default","default","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_str","fs","get_download_policy","include_empty","into","into","into","into","into","into","into","into","into","into","into","into","into","key_exact","key_exact","key_prefix","key_prefix","limit","limit","matches","matches","matches","matches","namespace_key","namespace_key","offset","offset","public_key","public_key","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","single_latest_per_key","sort_by","sort_direction","source","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","ContentHashesIterator","LatestIterator","ParentIterator","RecordsRange","Store","StoreInstance","all","as_mut","as_ref","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","close_replica","content_hashes","delete_author","flush","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","get_author","get_download_policy","get_download_policy","get_download_policy","get_exact","get_latest_for_each_author","get_many","get_sync_peers","has_news_for_us","import_author","import_namespace","into","into","into","into","into","into","into_fallible","into_fallible","into_fallible","into_fallible","into_iter","into_iter","into_iter","into_iter","list_authors","list_namespaces","load_replica_info","memory","new_author","new_replica","next","next","next","next","open_replica","persistent","public_key","public_key","register_useful_peer","remove_replica","set_download_policy","snapshot","snapshot_owned","transpose_into_fallible","transpose_into_fallible","transpose_into_fallible","transpose_into_fallible","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","AuthorHeads","BadSignature","Capability","CapabilityError","CapabilityKind","Closed","Complete","ContentStatus","ContentStatusCallback","Entry","EntryIsEmpty","EntrySignature","Event","Incomplete","InsertError","InsertOrigin","InvalidEmptyEntry","InvalidNamespace","Local","LocalInsert","MAX_TIMESTAMP_FUTURE_SHIFT","Missing","NamespaceMismatch","NewerEntryExists","PeerIdBytes","ProtocolMessage","Read","Read","ReadOnly","ReadOnly","Record","RecordIdentifier","RemoteInsert","Replica","ReplicaInfo","SignedEntry","Store","Sync","SyncOutcome","TooFarInTheFuture","Validation","ValidationFailure","Write","Write","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","as_bits","as_byte_tuple","as_bytes","as_ref","author","author","author_bytes","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","capability","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","closed","cmp","cmp","cmp","cmp","compare","compare","compare","compare","content_hash","content_hash","content_len","content_len","decode","default","default","default","delete_prefix","deref","deref","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","empty","empty_current","encode","encode","encode_hex","encode_hex_upper","entry","eq","eq","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_entry","from_entry","from_iter","from_iter","from_parts","from_raw","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","get","has_news_for","hash_and_insert","heads_received","id","id","id","insert","insert","insert_remote_entry","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","is_empty","is_empty","iter","key","key","key","key_bytes","kind","len","merge","merge","merge_capability","namespace","namespace","new","new","new","new","new","new_current","new_empty","num_recv","num_sent","partial_cmp","partial_cmp","partial_cmp","partial_cmp","raw","record","record_id","secret_key","secret_key","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","set_content_status_callback","sign","signature","source","subscribe","subscribers_count","sync_initial_message","sync_process_message","timestamp","timestamp","to_byte_tuple","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","to_string","to_vec","try_as_bits","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from_primitive","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unsubscribe","validate_empty","validate_empty","verify","verify","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","entry","entry","from","namespace","namespace","remote_content_status","should_download","from","remote_content_status"],"q":[[0,"iroh_docs"],[250,"iroh_docs::actor"],[336,"iroh_docs::engine"],[492,"iroh_docs::engine::LiveEvent"],[497,"iroh_docs::metrics"],[534,"iroh_docs::net"],[652,"iroh_docs::net::AcceptError"],[664,"iroh_docs::net::ConnectError"],[667,"iroh_docs::store"],[956,"iroh_docs::store::fs"],[1065,"iroh_docs::sync"],[1493,"iroh_docs::sync::Event"],[1500,"iroh_docs::sync::InsertOrigin"],[1502,"dyn_clone::sealed"],[1503,"bitvec::slice"],[1504,"bitvec::order"],[1505,"iroh_docs::keys"],[1506,"iroh_docs::ticket"],[1507,"core::cmp"],[1508,"core::result"],[1509,"serde::de"],[1510,"core::iter::traits::collect"],[1511,"core::fmt"],[1512,"alloc::string"],[1513,"ed25519_dalek::signing"],[1514,"ed25519_dalek::verifying"],[1515,"iroh_base::ticket"],[1516,"ed25519_dalek::errors"],[1517,"core::hash"],[1518,"iroh_base::node_addr"],[1519,"alloc::vec"],[1520,"rand_core"],[1521,"core::marker"],[1522,"core::option"],[1523,"iroh_docs::store::pubkeys"],[1524,"serde::ser"],[1525,"ed25519"],[1526,"bitvec::ptr::span"],[1527,"core::any"],[1528,"anyhow"],[1529,"bytes::bytes"],[1530,"async_channel"],[1531,"iroh_docs::heads"],[1532,"core::num::nonzero"],[1533,"iroh_base::hash"],[1534,"iroh_docs::engine::live"],[1535,"iroh_docs::engine::state"],[1536,"iroh_blobs::store::traits"],[1537,"std::io::error"],[1538,"iroh_net::endpoint"],[1539,"iroh_gossip::net"],[1540,"iroh_blobs::downloader"],[1541,"futures_core::stream"],[1542,"alloc::vec::into_iter"],[1543,"core::future::future"],[1544,"iroh_base::key"],[1545,"core::ops::function"],[1546,"core::error"],[1547,"core::default"],[1548,"core::convert"],[1549,"redb::table"],[1550,"iroh_docs::store::fs::ranges"],[1551,"fallible_iterator"],[1552,"core::iter::traits::iterator"],[1553,"std::path"],[1554,"core::ops::deref"],[1555,"alloc::collections::btree::map"],[1556,"num_enum"]],"i":[0,0,0,0,0,0,0,0,12,13,5,14,8,9,10,0,9,10,5,8,9,10,9,9,10,10,12,13,5,14,8,9,10,12,13,5,14,8,9,10,12,12,13,5,14,8,9,10,12,13,5,14,8,9,10,5,8,9,10,5,8,9,10,5,8,9,10,12,13,5,14,8,9,10,9,10,9,10,0,5,8,9,10,5,5,5,8,8,8,9,9,9,10,10,10,12,12,13,13,5,5,14,14,8,8,9,9,10,10,9,10,12,13,13,5,5,5,5,14,14,8,8,8,8,9,9,9,9,9,9,10,10,10,10,10,10,12,13,5,14,8,12,13,5,14,8,9,10,12,13,5,14,8,9,10,5,8,9,10,13,14,12,13,5,14,8,9,10,9,10,0,0,12,13,14,12,5,8,9,10,13,14,9,10,12,13,5,14,8,9,10,13,14,0,0,12,13,14,9,10,12,13,5,14,8,9,10,12,13,5,14,8,9,10,9,10,12,13,5,5,14,8,8,9,10,12,13,5,14,8,9,10,12,13,5,14,8,9,10,13,5,14,8,12,13,5,14,8,9,10,0,0,0,41,42,41,42,45,41,42,45,41,42,41,42,42,42,41,45,42,42,41,42,42,41,41,41,41,42,42,42,41,42,45,41,42,45,41,42,42,42,42,42,42,41,42,42,42,42,42,41,42,45,42,42,42,42,41,42,42,42,42,42,45,45,41,45,41,45,42,42,41,42,41,42,45,41,42,45,41,42,45,42,41,42,45,66,66,68,0,0,65,0,68,68,0,72,68,68,65,0,68,72,65,0,68,0,65,64,65,66,67,68,64,65,66,67,68,72,73,64,65,66,67,68,72,73,64,65,66,67,68,64,65,66,67,68,67,64,65,66,68,67,0,64,65,66,68,64,64,64,65,65,65,66,66,66,68,68,68,64,64,65,66,67,68,68,72,73,64,65,66,67,68,72,73,64,65,66,67,68,73,67,64,65,66,67,68,72,73,67,72,73,64,64,72,64,64,65,66,68,73,67,67,67,64,67,67,64,65,66,67,68,68,64,65,66,67,68,72,73,64,65,66,67,68,72,73,64,65,66,67,68,72,73,64,65,66,67,68,72,73,139,140,139,139,141,0,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,82,90,0,0,0,85,88,90,89,90,89,0,0,88,88,90,85,89,90,89,0,0,85,86,87,88,85,86,87,90,89,88,85,86,87,90,89,88,85,86,87,88,85,86,87,88,87,0,87,88,88,88,88,88,85,86,87,90,90,89,89,88,85,86,87,90,89,88,85,86,87,88,0,85,86,87,90,89,88,90,86,86,90,86,87,88,90,89,86,85,86,87,88,90,89,85,86,87,90,89,88,85,86,87,90,89,88,85,86,87,90,89,88,85,86,87,90,89,88,142,143,144,145,146,144,145,143,146,144,145,146,147,148,149,104,105,102,0,103,102,0,0,48,101,104,105,0,0,0,100,103,0,0,100,107,48,0,107,101,104,0,0,0,0,0,0,0,100,99,100,48,101,96,98,50,102,103,104,105,50,97,50,36,36,99,107,100,48,101,97,96,98,50,102,103,104,105,99,107,100,48,101,97,96,98,50,102,103,104,105,97,97,99,100,48,101,96,98,50,102,103,104,105,99,100,48,101,96,98,50,102,103,104,105,99,48,97,96,98,102,103,104,105,48,101,96,98,50,102,103,104,105,48,101,104,105,48,48,48,101,101,101,104,104,104,105,105,105,99,107,107,100,48,101,101,97,96,98,50,102,103,104,105,99,107,107,100,48,101,97,96,98,50,50,50,102,103,104,104,105,105,99,100,48,101,96,98,50,102,103,104,105,101,0,111,97,99,107,100,48,101,97,96,98,50,102,103,104,105,97,50,97,50,97,50,48,101,104,105,36,36,97,50,36,99,48,101,96,98,50,102,103,104,105,50,97,97,107,99,100,48,101,96,98,50,102,103,104,105,107,101,99,107,100,48,101,97,96,98,50,102,103,104,105,99,107,100,48,101,97,96,98,50,102,103,104,105,99,107,100,48,101,97,96,98,50,102,103,104,105,99,107,100,48,101,97,96,98,50,102,103,104,105,0,0,0,0,0,0,44,60,60,114,60,115,116,44,117,114,60,115,116,44,117,60,60,60,60,114,60,115,116,44,117,114,60,115,116,44,117,60,60,60,115,60,60,60,60,60,60,60,114,60,115,116,44,117,114,116,44,117,114,116,44,117,60,60,60,60,60,60,114,116,44,117,60,60,60,115,60,60,60,60,60,114,116,44,117,114,60,115,116,44,117,114,60,115,116,44,117,114,60,115,116,44,117,114,60,115,116,44,117,0,135,0,0,0,132,57,0,0,0,132,0,0,57,0,0,135,135,129,62,0,57,133,132,0,0,58,30,0,132,0,0,62,0,0,0,132,129,0,135,132,0,58,30,62,129,57,63,58,30,49,130,112,125,131,53,125,125,125,125,112,125,49,62,129,57,63,58,30,133,121,122,134,132,135,49,130,112,125,131,53,62,129,57,63,58,30,133,121,122,134,132,135,49,130,112,125,131,53,122,62,129,57,63,58,30,49,130,112,125,131,53,62,129,57,63,58,30,49,130,112,125,131,53,121,49,112,125,131,49,112,125,131,49,131,49,131,53,63,125,53,122,49,112,57,58,30,49,130,112,125,131,131,131,112,53,125,125,49,57,49,130,112,125,131,53,57,57,57,49,49,49,130,130,130,112,112,112,125,125,125,131,131,131,53,53,53,62,129,57,63,58,58,30,133,133,121,122,134,134,132,132,135,135,49,130,112,125,131,53,62,129,57,63,58,30,30,30,133,121,122,134,132,132,132,135,49,130,112,112,125,131,53,49,130,53,53,49,30,62,129,57,63,58,30,49,130,112,125,131,53,53,53,122,63,30,122,112,122,53,122,62,129,57,63,58,30,133,121,122,134,132,135,49,130,112,125,131,53,131,53,53,49,112,125,125,30,53,30,53,121,112,125,121,122,112,125,131,131,112,63,63,49,112,125,131,30,112,122,30,122,57,58,30,49,130,112,125,131,121,112,49,132,121,121,122,122,49,131,125,62,129,57,63,58,30,49,130,112,125,131,53,58,133,134,132,135,112,125,62,129,57,63,58,58,30,133,121,122,134,132,135,49,130,112,125,131,53,58,62,129,57,63,58,30,133,121,122,134,132,135,49,130,112,125,131,53,62,129,57,63,58,30,133,121,122,134,132,135,49,130,112,125,131,53,121,49,112,49,130,62,129,57,63,58,30,133,121,122,134,132,135,49,130,112,125,131,53,150,151,151,150,151,151,151,152,152],"f":"````````{{cb}d{}}000000`{c{{f{eg}}}{}{}h}0{j{{n{l}}}}{A`{{n{l}}}}{Ab{{n{l}}}}{Ad{{n{l}}}}{Ab{{Af{l}}}}21{Ad{{Af{l}}}}{ce{}{}}0000000000000`{AhAh}{AjAj}{jj}{AlAl}{A`A`}{AbAb}{AdAd}{{ce}d{}{}}000000{{jj}An}{{A`A`}An}{{AbAb}An}{{AdAd}An}{{ce}An{}{}}000{{}j}{{}A`}{{}Ab}{{}Ad}{c{{B`{Ah}}}Bb}{c{{B`{Aj}}}Bb}{c{{B`{j}}}Bb}{c{{B`{Al}}}Bb}{c{{B`{A`}}}Bb}{c{{B`{Ab}}}Bb}{c{{B`{Ad}}}Bb}{ce{}{{Bf{Bd}}}}000`{{jj}Bh}{{A`A`}Bh}{{AbAb}Bh}{{AdAd}Bh}{{ce}Bh{}{}}00000000000{{AhBj}Bl}0{{AjBj}Bl}0{{jBj}Bl}0{{AlBj}Bl}0{{A`Bj}Bl}0{{AbBj}Bl}0{{AdBj}Bl}0{AbBn}{AdBn}{cc{}}{C`Aj}11{Ajj}{Cbj}1{C`Al}44{AlA`}0{CbA`}{A`Ab}{{{n{l}}}Ab}0{AlAb}92{{{n{l}}}Ad}{jAd};{AjAd}12{{{Af{l}}}{{B`{AhCd}}}}{{{n{l}}}Aj}{{{n{l}}}{{B`{jCf}}}}{{{n{l}}}Al}{{{n{l}}}{{B`{A`Cf}}}}{cc{}}000000{Ch{{B`{Ahc}}}{}}{Ch{{B`{Ajc}}}{}}{Ch{{B`{jc}}}{}}{Ch{{B`{Alc}}}{}}{Ch{{B`{A`c}}}{}}{Ch{{B`{Abc}}}{}}{Ch{{B`{Adc}}}{}}{{jc}dCj}{{A`c}dCj}{{Abc}dCj}{{Adc}dCj}{AjAd}{AlAb}{ce{}{}}000000{Ab{{B`{A`Cf}}}}{Ad{{B`{jCf}}}}``{{Cl{D`{Cn}}}Ah}{cAj{DbDd}}{cAl{DbDd}}`{{jj}{{Df{An}}}}{{A`A`}{{Df{An}}}}{{AbAb}{{Df{An}}}}{{AdAd}{{Df{An}}}}{Ajj}{AlA`}{{Abc}{{B`{A`Cf}}}Dh}{{Adc}{{B`{jCf}}}Dh}{{Ahc}B`Dj}{{Ajc}B`Dj}{{jc}B`Dj}{{Alc}B`Dj}{{A`c}B`Dj}{{Abc}B`Dj}{{Adc}B`Dj}{{Aj{Af{l}}}Dl}{{Al{Af{l}}}Dl}``{Ah{{D`{l}}}}{Aj{{n{l}}}}{Al{{n{l}}}}{Ab{{n{l}}}}{Ad{{n{l}}}}{ce{}{}}000000{cBn{}}000000{c{{B`{{f{eg}}{Dn{e}}}}}{}{}h}0{c{{B`{e}}}{}{}}00{Ad{{B`{jc}}}{}}1{Ab{{B`{A`c}}}{}}2222222222{cE`{}}000000{{Aj{Af{l}}Dl}{{B`{dCf}}}}{{j{Af{l}}Dl}{{B`{dCf}}}}{{Al{Af{l}}Dl}{{B`{dCf}}}}{{A`{Af{l}}Dl}{{B`{dCf}}}}:::::::```{{cb}d{}}0;;;;;;{EbEb}{EdEd}{{ce}d{}{}}0{{EdAb}{{Ef{Bh}}}}{Ed{{Ef{Eh}}}}{{}Eb}{{}Ej}{{EdAd}{{Ef{d}}}}{{EdAbAdEl}{{Ef{En}}}}{c{{B`{Eb}}}Bb}{Edd}{{EdAb}{{Ef{d}}}}{{EbEb}Bh}{{ce}Bh{}{}}00{{EdAd}{{Ef{{Df{Aj}}}}}}{{EdAb}{{Ef{Al}}}}{Ed{{Ef{d}}}}{{EbBj}Bl}{{EdBj}Bl}{{EjBj}Bl}{cc{}}0000{{EdAb}{{Ef{F`}}}}{{EdAbAdElBh}{{Ef{{Df{Fb}}}}}}{{EdAbFd{Ff{{Ef{Fb}}}}}{{Ef{d}}}}{{EdAb}{{Ef{Eb}}}}{{EdAb}{{Ef{{Df{{D`{Fh}}}}}}}}`{{EdAbFj}{{Ef{{Df{Fl}}}}}}{{EdAj}{{Ef{Ad}}}}{{EdCl}{{Ef{Ab}}}}{{EdAbAdElFnG`}{{Ef{d}}}}{{EdAbFbFhGb}{{Ef{d}}}}{ce{}{}}00{{Ed{Ff{{Ef{Ad}}}}}{{Ef{d}}}}{{Ed{Ff{{Ef{{Gf{AbGd}}}}}}}{{Ef{d}}}}{{EdAbEj}{{Ef{d}}}}{{EdAbFh}{{Ef{d}}}}{{Ebc}B`Dj}{{EdAbF`}{{Ef{d}}}}{{EdAbBh}{{Ef{d}}}}{Ed{{Ef{Gh}}}}{{Gh{Df{Gj}}Bn}Ed}{{EdAb{Ff{Gl}}}{{Ef{d}}}}{{Ej{Ff{Gl}}}Ej}``{EjEj}``{{EdAb}{{Ef{{`{Fb}}}}}}{{EdAb{`{Fb}}FhGn}{{Ef{{Gf{{Df{{`{Fb}}}}Gn}}}}}}>>{c{{B`{e}}}{}{}}00000{cE`{}}006{ce{}{}}00``````````````````````{{cb}d{}}000011111111111111{H`H`}{HbHb}{HdHd}{HfHf}{HhHh}{{ce}d{}{}}0000`{c{{B`{H`}}}Bb}{c{{B`{Hb}}}Bb}{c{{B`{Hd}}}Bb}{c{{B`{Hh}}}Bb}`{{{Hl{Hj}}}Gb}{{H`H`}Bh}{{HbHb}Bh}{{HdHd}Bh}{{HhHh}Bh}{{ce}Bh{}{}}00000000000`{{H`Bj}Bl}{{HbBj}Bl}{{HdBj}Bl}{{HfBj}Bl}{{HhBj}{{B`{dHn}}}}{{HhBj}Bl}{{I`Bj}Bl}{{IbBj}Bl}{cc{}}00000000000{IbAd}{{HfId}{{Ef{d}}}}{ce{}{}}000000{{HfAbBh}{{Ef{d}}}}{{I`Ed}{{Ef{Ad}}}}{{I`Ed}{{Ef{Ib}}}}``{{I`Ad}{{Ef{d}}}}`{{H`c}B`Dj}{{Hbc}B`Dj}{{Hdc}B`Dj}{{Hhc}B`Dj}{{IbAdEd}{{Ef{d}}}}{Hf{{Ef{d}}}}{{IfIhGhcIjI`}{{Ef{Hf}}}Il}{{HfAb{D`{Cn}}}{{Ef{d}}}}`{{HfAb}{{Ef{{`{{J`{}{{In{{Ef{Hh}}}}}}Jb}}}}}}`====={cBn{}}{c{{B`{e}}}{}{}}0000000000000{cE`{}}000000{ce{}{}}000000``````{{cb}d{}}`11{JdJd}{{ce}d{}{}}{{}Jd}``````````{{JdBj}Bl}{cc{}}06{Jd{{Jh{{Gf{ChJf}}}}}}{{}Ch}````````8::98`````````````````````7777888888888888{JjJj}{JlJl}{JnJn}{K`K`}9999`{{IfEdAbCn}{{B`{JlKb}}}}{{}Jn}{c{{B`{K`}}}Bb}{{K`K`}Bh}{{ce}Bh{}{}}00{{JjBj}Bl}{{JlBj}Bl}{{JnBj}Bl}{{KdBj}Bl}0{{KbBj}Bl}0{{K`Bj}Bl}{cc{}}000000000{{EdIde}{{B`{JlKd}}}{{Kh{}{{Kf{Jj}}}}}{{Kl{AbKj}{{Kf{c}}}}}}{ce{}{}}00000{Kd{{Df{Ab}}}}``{Kd{{Df{Kj}}}}``{{K`c}B`Dj}{Kd{{Df{Kn}}}}{Kb{{Df{Kn}}}}`5555{cBn{}}0{c{{B`{e}}}{}{}}00000000000{cE`{}}00000888888`````````````````````````````````````````````````{{cb}d{}}0000000000{{}{{Lb{L`}}}}{{{Lb{c}}Ad}{{Lb{c}}}{}}{Ad{{Lb{L`}}}}{{DhAd}{{B`{jCf}}}}0=========================={{{Lb{Ld}}}Fd}{{{Lb{L`}}}Fd}{LfLf}{LhLh}{F`F`}{LjLj}{L`L`}{LdLd}{FdFd}{LlLl}{LnLn}{M`M`}{MbMb}{{ce}d{}{}}0000000000{{}Lf}{{}F`}{{}{{Lb{c}}}Md}{{}L`}{{}Ld}{{}Ll}{{}Ln}{{}M`}{{}Mb}{c{{B`{F`}}}Bb}{c{{B`{Lj}}}Bb}{c{{B`{L`}}}Bb}{c{{B`{Ld}}}Bb}{c{{B`{Fd}}}Bb}{c{{B`{Ll}}}Bb}{c{{B`{Ln}}}Bb}{c{{B`{M`}}}Bb}{c{{B`{Mb}}}Bb}{{F`F`}Bh}{{LjLj}Bh}{{M`M`}Bh}{{MbMb}Bh}{{ce}Bh{}{}}00000000000{{LfBj}Bl}{{MfBj}Bl}0{{LhBj}Bl}{{F`Bj}Bl}{{LjBj}Bl}0{{{Lb{c}}Bj}BlMh}{{L`Bj}Bl}{{LdBj}Bl}{{FdBj}Bl}{{LlBj}Bl}{{LnBj}Bl}{{M`Bj}Bl}{{MbBj}Bl}{cc{}}{MjMf}1111111{{{Lb{L`}}}Fd}2{{{Lb{Ld}}}Fd}333{cM`{{Ml{{Af{l}}}}}}4{AdMb}55555555555{Ch{{B`{Ljc}}}{}}`{{MnAb}{{Ef{F`}}}}{{{Lb{c}}}{{Lb{c}}}{}}{ce{}{}}000000000000{{{Lb{c}}e}{{Lb{c}}}{}{{Ml{{Af{l}}}}}}{c{{Lb{L`}}}{{Ml{{Af{l}}}}}}10{{{Lb{c}}G`}{{Lb{c}}}{}}{Fd{{Df{G`}}}}{{F`N`}Bh}{{Ljc}Bh{{Ml{{Af{l}}}}}}{{M`{Af{l}}}Bh}{{MbAd}Bh}{{DhAb}{{B`{A`Cf}}}}06{FdG`}{{Dh{n{l}}}{{B`{CbCf}}}}{{Lf{n{l}}}{{B`{CbCf}}}}{{F`c}B`Dj}{{Ljc}B`Dj}{{L`c}B`Dj}{{Ldc}B`Dj}{{Fdc}B`Dj}{{Llc}B`Dj}{{Lnc}B`Dj}{{M`c}B`Dj}{{Mbc}B`Dj}{{}{{Lb{Ld}}}}{{{Lb{L`}}LnLl}{{Lb{L`}}}}{{{Lb{Ld}}Ll}{{Lb{Ld}}}}{Mf{{Df{Kn}}}}{ce{}{}}0000000000{cBn{}}0{c{{B`{e}}}{}{}}0000000000000000000000000{cE`{}}0000000000003333333333333``````{{{Nb{{Gf{{n{l}}{n{l}}{Af{l}}}}{Gf{G`{n{l}}{n{l}}G`{n{l}}}}}}}{{Ef{Eh}}}}{GhGh}0555555555555{{GhAb}d}{Gh{{Ef{Eh}}}}{{GhAd}{{Ef{d}}}}{Gh{{Ef{d}}}}{{NdBj}Bl}{{GhBj}Bl}{{NfBj}Bl}{{NhBj}Bl}{{EhBj}Bl}{{NjBj}Bl}{cc{}}00000{{GhAd}{{Ef{{Df{Aj}}}}}}{{GhAb}{{Ef{F`}}}}0{{NfAb}{{Ef{F`}}}}{{GhAbAdcBh}{{Ef{{Df{Fb}}}}}{{Ml{{Af{l}}}}}}{{GhAb}{{Ef{Nj}}}}{{GhAbc}{{Ef{`}}}{{Nl{Fd}}}}{{GhAb}{{Ef{{Df{{Jh{Fh}}}}}}}}{{GhAbFj}{{Ef{{Df{Fl}}}}}}{{GhAj}{{Ef{d}}}}{{GhCl}{{Ef{Lh}}}}{ce{}{}}00000{c{{Nn{g}}}{}{}{{O`{}{{In{e}}}}}}0001111{Gh{{Ef{{`{{O`{}{{In{{Ef{Aj}}}}}}}}}}}}{Gh{{Ef{{`{{O`{}{{In{{Ef{{Gf{AbGd}}}}}}}}}}}}}}{{GhAb}{{Ef{ObMf}}}}{{}Gh}{{Ghc}{{Ef{Aj}}}{DbDd}}{{GhAl}{{Ef{Od}}}}{Nd{{Df{c}}}{}}{Nh{{Df{c}}}{}}{Eh{{Df{c}}}{}}{Nj{{Df{c}}}{}}{{GhAb}{{Ef{OdMf}}}}{c{{Ef{Gh}}}{{Ml{Of}}}}{{Gh{n{l}}}{{Ef{CbCf}}}}{{Nf{n{l}}}{{B`{CbCf}}}}{{GhAbFh}{{Ef{d}}}}{{GhAb}{{Ef{d}}}}{{GhAbF`}{{Ef{d}}}}{Gh{{Ef{`}}}}0{c{{Oh{i}}}{}{}{}{{O`{}{{In{{B`{eg}}}}}}}}000{c{{B`{e}}}{}{}}00000000000{cE`{}}00000{ce{}{}}00000````````````````````````````````````````````{{cb}d{}}00000000000{c{{f{eg}}}{}{}h}{Oj{{Gf{{n{l}}{n{l}}{Af{l}}}}}}{OjEl}{Oj{{Af{l}}}}{N`Ad}{OjAd}{FbAd}888888888888888888888888888888888888{{{Od{c}}}Cl{{On{}{{Ol{Ob}}}}A@`}}{GlGl}{A@bA@b}{GbGb}{GnGn}{GdGd}{ClCl}{FbFb}{A@dA@d}{N`N`}{OjOj}{A@fA@f}{FjFj}{{ce}d{}{}}00000000000{ObBh}{{FbFb}An}{{N`N`}An}{{OjOj}An}{{A@fA@f}An}{{ce}An{}{}}000{FbFn}{A@fFn}{FbG`}{A@fG`}{{{Af{l}}}{{Ef{Fj}}}}{{}Gn}{{}Oj}{{}Fj}{{{Od{c}}eAj}{{B`{EnA@h}}}{{On{}{{Ol{Ob}}}}A@`}{{Ml{{Af{l}}}}}}{Fbc{}}{N`c{}}{c{{B`{Gb}}}Bb}{c{{B`{Gd}}}Bb}{c{{B`{Cl}}}Bb}{c{{B`{Fb}}}Bb}{c{{B`{A@d}}}Bb}{c{{B`{N`}}}Bb}{c{{B`{Oj}}}Bb}{c{{B`{A@f}}}Bb}{G`A@f}{{}A@f}{{N`{D`{l}}}d}{{Fj{Df{En}}}{{Ef{{D`{l}}}}}}{ce{}{{Bf{Bd}}}}0{FbN`}{{GbGb}Bh}{{FbFb}Bh}{{A@dA@d}Bh}{{N`N`}Bh}{{OjOj}Bh}{{A@fA@f}Bh}{{FjFj}Bh}{{ce}Bh{}{}}00000000000000000000{{GlBj}Bl}{{A@bBj}Bl}{{GbBj}Bl}{{GnBj}Bl}{{GdBj}Bl}{{GdBj}{{B`{dHn}}}}{{ClBj}Bl}{{A@jBj}Bl}0{{ObBj}Bl}{{{Od{c}}Bj}BlMh}{{A@lBj}Bl}0{{A@hBj}Bl}0{{A@nBj}Bl}0{{FbBj}Bl}{{A@dBj}Bl}{{N`Bj}Bl}{{OjBj}Bl}{{A@fBj}Bl}{{FjBj}Bl}{cc{}}0000{AbCl}{AlCl}22222{A@lA@h}3{A@nA@h}4444{FbN`}555{{N`AlAj}Fb}{{N`AlAj}A@d}{cFj{{AA`{}{{In{{Gf{AdG`}}}}}}}}{cFj{{AA`{}{{In{{Gf{G`Ad}}}}}}}}{{AlAjcA@f}Fb{{Ml{{Af{l}}}}}}{{l{n{l}}}{{Ef{Cl}}}};;;;;;;;;;;;{{FjAd}{{Df{G`}}}}{{FjFj}{{Df{Fl}}}}{{{Od{c}}eAjg}{{B`{FnA@h}}}{{On{}{{Ol{Ob}}}}A@`}{{Ml{{Af{l}}}}}{{Ml{{Af{l}}}}}}`{ClAb}{{{Od{c}}}Ab{{On{}{{Ol{Ob}}}}A@`}}{N`Oj}{{{Od{c}}eAjFnG`}{{B`{EnA@h}}}{{On{}{{Ol{Ob}}}}A@`}{{Ml{{Af{l}}}}}}{{FjAdG`}d}{{{Od{c}}FbFhGb}{{B`{EnA@h}}}{{On{}{{Ol{Ob}}}}A@`}}{ce{}{}}00000000000000000{A@fBh}{FjBh}{Fj{{AAb{AdG`}}}}{Fb{{Af{l}}}}{N`{{Af{l}}}}{Oj{{Af{l}}}}{OjEl}{ClGd}{FjEn}{{ClCl}{{B`{BhA@j}}}}{{FjFj}d}{{ObCl}{{B`{BhA@j}}}}{N`Ab}{OjAb}{ClOb}{{Nfc}{{Od{c}}}{{On{}{{Ol{Ob}}}}A@`}}{{OjA@f}N`}{{ceg}Oj{{Nl{Ab}}}{{Nl{Ad}}}{{Ml{{Af{l}}}}}}{{FnG`G`}A@f}{{FnG`}A@f}{OjN`}``{{FbFb}{{Df{An}}}}{{N`N`}{{Df{An}}}}{{OjOj}{{Df{An}}}}{{A@fA@f}{{Df{An}}}}{Cl{{Gf{l{n{l}}}}}}{N`A@f}{{{Od{c}}eAj}Oj{{On{}{{Ol{Ob}}}}A@`}{{Ml{{Af{l}}}}}}{Cl{{B`{AlA@l}}}}{{{Od{c}}}{{B`{AlA@l}}}{{On{}{{Ol{Ob}}}}A@`}}{{Gbc}B`Dj}{{Gdc}B`Dj}{{Clc}B`Dj}{{Fbc}B`Dj}{{A@dc}B`Dj}{{N`c}B`Dj}{{Ojc}B`Dj}{{A@fc}B`Dj}{{ObGj}Bh}{{N`AlAj}Fb}{FbA@d}{A@h{{Df{Kn}}}}{{Ob{Ff{Gl}}}d}{ObEn}{{{Od{c}}}{{Ef{{`{Fb}}}}}{{On{}{{Ol{Ob}}}}A@`}}{{{Od{c}}{`{Fb}}FhGn}{{B`{{Df{{`{Fb}}}}Mj}}}{{On{}{{Ol{Ob}}}}A@`}}{FbG`}{A@fG`}{Oj{{Gf{{n{l}}{n{l}}El}}}}{ce{}{}}00000000000{cBn{}}0000{N`{{D`{l}}}}{c{{B`{{f{eg}}{Dn{e}}}}}{}{}h}{c{{B`{e}}}{}{}}0000{l{{B`{Gd{AAd{Gd}}}}}}1111111111111{c{{B`{Gd{AAd{Gd}}}}}{}}222222222222222222{cE`{}}00000000000000000>{Fb{{B`{dA@n}}}}{N`{{B`{dA@n}}}}{{Fbc}{{B`{dCf}}}Dh}{{A@dN`A`j}{{B`{dCf}}}};;;;;;;;;;;;;;;;;;`````````","D":"CMh","p":[[5,"Private",1502],[1,"unit"],[5,"BitSlice",1503],[10,"BitOrder",1504],[5,"AuthorPublicKey",0,1505],[1,"u8"],[1,"array"],[5,"NamespacePublicKey",0,1505],[5,"NamespaceId",0,1505],[5,"AuthorId",0,1505],[1,"slice"],[5,"DocTicket",0,1506],[5,"Author",0,1505],[5,"NamespaceSecret",0,1505],[6,"Ordering",1507],[6,"Result",1508],[10,"Deserializer",1509],[1,"char"],[10,"FromIterator",1510],[1,"bool"],[5,"Formatter",1511],[8,"Result",1511],[5,"String",1512],[5,"SigningKey",1513],[5,"VerifyingKey",1514],[6,"Error",1515],[8,"SignatureError",1516],[1,"str"],[10,"Hasher",1517],[6,"Capability",1065],[5,"NodeAddr",1518],[5,"Vec",1519],[10,"CryptoRngCore",1520],[10,"Sized",1521],[6,"Option",1522],[10,"PublicKeyStore",667,1523],[10,"Serializer",1524],[5,"Signature",1525],[6,"BitSpanError",1526],[5,"TypeId",1527],[5,"OpenState",250],[5,"SyncHandle",250],[8,"Result",1528],[5,"ContentHashesIterator",956],[5,"OpenOpts",250],[5,"Bytes",1529],[1,"usize"],[6,"DownloadPolicy",667],[5,"SignedEntry",1065],[5,"Query",667],[5,"Sender",1530],[8,"PeerIdBytes",1065],[5,"AuthorHeads",1065,1531],[8,"NonZeroU64",1532],[5,"Hash",1533],[1,"u64"],[6,"ContentStatus",1065],[6,"CapabilityKind",1065],[1,"tuple"],[5,"Store",956],[8,"ContentStatusCallback",1065],[6,"Event",1065],[5,"SyncOutcome",1065],[5,"SyncEvent",336,1534],[6,"SyncReason",336,1535],[6,"Origin",336,1535],[5,"Engine",336],[6,"LiveEvent",336],[6,"EntryStatus",1536],[8,"Result",1537],[5,"Error",1511],[6,"DefaultAuthorStorage",336],[5,"DefaultAuthor",336],[5,"Connecting",1538],[5,"Endpoint",1538],[5,"Gossip",1539],[5,"Downloader",1540],[10,"Store",1536],[17,"Item"],[10,"Stream",1541],[10,"Unpin",1521],[5,"Metrics",497],[10,"Any",1527],[5,"IntoIter",1542],[6,"AcceptOutcome",534],[5,"SyncFinished",534],[5,"Timings",534],[6,"AbortReason",534],[6,"ConnectError",534],[6,"AcceptError",534],[17,"Output"],[10,"Future",1543],[5,"PublicKey",1544],[10,"Fn",1545],[10,"Error",1546],[5,"FlatQuery",667],[5,"QueryBuilder",667],[5,"SingleLatestPerKeyQuery",667],[5,"MemPublicKeyStore",667,1523],[6,"ImportNamespaceOutcome",667],[6,"FilterKind",667],[6,"SortDirection",667],[6,"SortBy",667],[6,"KeyFilter",667],[6,"AuthorFilter",667],[10,"Default",1547],[6,"OpenError",667],[10,"Debug",1511],[5,"Error",1528],[10,"AsRef",1548],[10,"DownloadPolicyStore",667],[5,"Entry",1065],[5,"ReadOnlyTable",1549],[5,"RecordsRange",956,1550],[5,"StoreInstance",956],[5,"ParentIterator",956],[5,"LatestIterator",956],[10,"Into",1548],[5,"IntoFallible",1551],[10,"Iterator",1552],[5,"ReplicaInfo",1065],[5,"Replica",1065],[5,"Path",1553],[5,"Convert",1551],[5,"RecordIdentifier",1065],[17,"Target"],[10,"Deref",1554],[10,"DerefMut",1554],[6,"InsertOrigin",1065],[5,"EntrySignature",1065],[5,"Record",1065],[6,"InsertError",1065],[6,"CapabilityError",1065],[5,"ReadOnly",1065],[6,"ValidationFailure",1065],[10,"IntoIterator",1510],[5,"Iter",1555],[5,"TryFromPrimitiveError",1556],[15,"InsertRemote",492],[15,"InsertLocal",492],[15,"ContentReady",492],[15,"Connect",652],[15,"Open",652],[15,"Sync",652],[15,"Close",652],[15,"Abort",652],[15,"Connect",664],[15,"Sync",664],[15,"Close",664],[15,"LocalInsert",1493],[15,"RemoteInsert",1493],[15,"Sync",1500]],"r":[[0,1505],[1,1531],[2,1505],[3,1505],[4,1506],[5,1505],[6,1505],[7,1505],[350,1535],[354,1534],[356,1535],[685,1523],[693,1523],[699,956],[959,1550],[1065,1531]],"b":[[22,"impl-AsRef%3C%5Bu8%5D%3E-for-NamespaceId"],[23,"impl-AsRef%3C%5Bu8;+32%5D%3E-for-NamespaceId"],[24,"impl-AsRef%3C%5Bu8;+32%5D%3E-for-AuthorId"],[25,"impl-AsRef%3C%5Bu8%5D%3E-for-AuthorId"],[95,"impl-Debug-for-DocTicket"],[96,"impl-Display-for-DocTicket"],[97,"impl-Display-for-Author"],[98,"impl-Debug-for-Author"],[99,"impl-Display-for-AuthorPublicKey"],[100,"impl-Debug-for-AuthorPublicKey"],[101,"impl-Debug-for-NamespaceSecret"],[102,"impl-Display-for-NamespaceSecret"],[103,"impl-Debug-for-NamespacePublicKey"],[104,"impl-Display-for-NamespacePublicKey"],[105,"impl-Display-for-NamespaceId"],[106,"impl-Debug-for-NamespaceId"],[107,"impl-Display-for-AuthorId"],[108,"impl-Debug-for-AuthorId"],[115,"impl-From%3C%26Author%3E-for-AuthorPublicKey"],[116,"impl-From%3CVerifyingKey%3E-for-AuthorPublicKey"],[117,"impl-From%3CAuthor%3E-for-AuthorPublicKey"],[121,"impl-From%3CNamespaceSecret%3E-for-NamespacePublicKey"],[122,"impl-From%3C%26NamespaceSecret%3E-for-NamespacePublicKey"],[123,"impl-From%3CVerifyingKey%3E-for-NamespacePublicKey"],[124,"impl-From%3C%26NamespacePublicKey%3E-for-NamespaceId"],[125,"impl-From%3C%5Bu8;+32%5D%3E-for-NamespaceId"],[126,"impl-From%3C%26%5Bu8;+32%5D%3E-for-NamespaceId"],[127,"impl-From%3CNamespaceSecret%3E-for-NamespaceId"],[129,"impl-From%3CNamespacePublicKey%3E-for-NamespaceId"],[130,"impl-From%3C%5Bu8;+32%5D%3E-for-AuthorId"],[131,"impl-From%3CAuthorPublicKey%3E-for-AuthorId"],[133,"impl-From%3CAuthor%3E-for-AuthorId"],[134,"impl-From%3C%26AuthorPublicKey%3E-for-AuthorId"],[135,"impl-From%3C%26%5Bu8;+32%5D%3E-for-AuthorId"],[415,"impl-Display-for-LiveEvent"],[416,"impl-Debug-for-LiveEvent"],[590,"impl-Debug-for-AcceptError"],[591,"impl-Display-for-AcceptError"],[592,"impl-Debug-for-ConnectError"],[593,"impl-Display-for-ConnectError"],[743,"impl-QueryBuilder%3CSingleLatestPerKeyQuery%3E"],[744,"impl-QueryBuilder%3CFlatQuery%3E"],[802,"impl-Display-for-OpenError"],[803,"impl-Debug-for-OpenError"],[806,"impl-Debug-for-FilterKind"],[807,"impl-Display-for-FilterKind"],[825,"impl-From%3CQueryBuilder%3CFlatQuery%3E%3E-for-Query"],[827,"impl-From%3CQueryBuilder%3CSingleLatestPerKeyQuery%3E%3E-for-Query"],[994,"impl-DownloadPolicyStore-for-Store"],[995,"impl-Store"],[1256,"impl-Debug-for-CapabilityKind"],[1257,"impl-Display-for-CapabilityKind"],[1259,"impl-Debug-for-CapabilityError"],[1260,"impl-Display-for-CapabilityError"],[1263,"impl-Debug-for-ReadOnly"],[1264,"impl-Display-for-ReadOnly"],[1265,"impl-Debug-for-InsertError"],[1266,"impl-Display-for-InsertError"],[1267,"impl-Debug-for-ValidationFailure"],[1268,"impl-Display-for-ValidationFailure"],[1280,"impl-From%3CNamespaceId%3E-for-Capability"],[1281,"impl-From%3CNamespaceSecret%3E-for-Capability"],[1287,"impl-From%3CReadOnly%3E-for-InsertError"],[1289,"impl-From%3CValidationFailure%3E-for-InsertError"],[1300,"impl-FromIterator%3C(AuthorId,+u64)%3E-for-AuthorHeads"],[1301,"impl-FromIterator%3C(u64,+AuthorId)%3E-for-AuthorHeads"]],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAPIDTgAJAAYAEQABABcAEQAqACQAUAAdAHEAAAB0AAMAegAGAIIAAgCGAAMAjgARALEAAwC5AAYAxAAAAMkAJgD0AAYA/gAaABoBAgAgAQYAKAEEADABBwA5AQAAQAEQAGcBHACFAQMAiwEPAJwBBwCrAQQAwAEDAMsBIQDzAREABgIAAAgCDgAsAhcARgINAFoCAwBrAgIAbwIsALwCAAC+AgoAzgIZAOoCRgAyAwAAOgMAADwDAABAAwAAQgMMAG4DCQB7A0EAxAMNANYDBQDjAwAA5QMAAPcDAwABBAMABwQBABIEFwBWBAwAZQQAAGkEIwCOBBcApwQHALQEAgC4BAkAxgQBAMkEMgABBQEACAUAAAoFAAAPBQAAFQUBABkFCwBYBQMAYQUHAGwFAAB0BRAAhgU4AMQFEQA="}],\ ["iroh_gossip",{"t":"CCCCPPGGPFGPFPPPFNNNONNNNNNNNNNNNNNNNNNNNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNFNOOOOOOOONNNNNNNNNNOOOOOOOONOONNNNNPIISFPFPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCNNFNNNNNNNNHHNNNNNHEEGEEEEPPEFKGEPPEENNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCNNNCNNNNNNNNNCNNNPPPPPGFGGPPPPPFFPFPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPGPFSPPGPPKGPGPPGPPPPPPPFFPPGPPNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOONNMNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN","n":["dispatcher","metrics","net","proto","Broadcast","BroadcastNeighbors","Command","Event","Gossip","GossipDispatcher","GossipEvent","Lagged","Message","NeighborDown","NeighborUp","Received","SubscribeOptions","__clone_box","__clone_box","__clone_box","bootstrap","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","cmp","cmp","compare","compare","content","delivered_from","deserialize","deserialize","deserialize","deserialize","deserialize","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","into","into","into","into","into","into","new","partial_cmp","partial_cmp","scope","serialize","serialize","serialize","serialize","serialize","subscribe_with_opts","subscription_capacity","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","Metrics","__clone_box","actor_tick_dialer","actor_tick_dialer_failure","actor_tick_dialer_success","actor_tick_endpoint","actor_tick_in_event_rx","actor_tick_main","actor_tick_rx","actor_tick_timers","borrow","borrow_mut","clone","clone_into","default","fmt","from","from_ref","into","iter","msgs_ctrl_recv","msgs_ctrl_recv_size","msgs_ctrl_sent","msgs_ctrl_sent_size","msgs_data_recv","msgs_data_recv_size","msgs_data_sent","msgs_data_sent_size","name","neighbor_down","neighbor_up","to_owned","try_from","try_into","type_id","vzip","Broadcast","Command","Event","GOSSIP_ALPN","Gossip","Join","JoinTopicFut","NeighborDown","NeighborUp","Quit","Received","__clone_box","borrow","borrow","borrow_mut","borrow_mut","broadcast","broadcast_neighbors","clone","clone_into","fmt","fmt","from","from","from_endpoint","from_ref","handle_connection","into","into","into_future","join","join","max_message_size","poll","quit","race","subscribe","subscribe_all","to_owned","try_from","try_from","try_into","try_into","try_poll","type_id","type_id","update_direct_addresses","util","vzip","vzip","Timers","borrow","borrow_mut","default","fmt","from","insert","into","new","read_lp","read_message","try_from","try_into","type_id","vzip","wait_and_drain","write_message","Command","Config","DeliveryScope","Event","IO","InEvent","Message","Neighbors","Neighbors","OutEvent","PeerData","PeerIdentity","Scope","State","Swarm","Swarm","Timer","TopicId","__clone_box","__clone_box","__clone_box","as_bytes","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","cmp","cmp","compare","compare","default","deserialize","deserialize","deserialize","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","from","from","from","from_ref","from_ref","from_ref","inner","into","into","into","is_direct","new","partial_cmp","partial_cmp","serialize","serialize","serialize","state","to_owned","to_owned","to_owned","topic","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","util","vzip","vzip","vzip","Command","Control","Data","DisconnectPeer","EmitEvent","InEvent","Message","MessageKind","OutEvent","PeerData","PeerDisconnected","RecvMessage","ScheduleTimer","SendMessage","State","Timer","TimerExpired","TopicId","UpdatePeerData","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","as_bits","as_bytes","as_ref","as_ref","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","cmp","compare","deserialize","deserialize","encode_hex","encode_hex_upper","eq","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from_bytes","from_ref","from_ref","from_ref","from_ref","from_ref","from_str","handle","has_active_peers","hash","into","into","into","into","into","into","into","kind","max_message_size","me","new","partial_cmp","serialize","serialize","size","state","states","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","topics","try_as_bits","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","Broadcast","Command","Command","Config","DEFAULT_MAX_MESSAGE_SIZE","DisconnectPeer","EmitEvent","Event","Gossip","Gossip","IO","InEvent","Join","Message","NeighborDown","NeighborUp","OutEvent","PeerData","PeerDisconnected","Quit","Received","RecvMessage","ScheduleTimer","SendMessage","State","Stats","Swarm","Swarm","Timer","TimerExpired","UpdatePeerData","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","broadcast","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","cmp","compare","default","default","deserialize","deserialize","endpoint","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","gossip_stats","handle","has_active_peers","into","into","into","into","into","into","into","into","into","kind","max_message_size","membership","messages_received","messages_sent","new","partial_cmp","push","push_from_iter","serialize","serialize","stats","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","with_rng","TimeBoundCache","TimerMap","borrow","borrow","borrow_mut","borrow_mut","contains_key","default","default","drain_until","expire_until","expires","first","fmt","fmt","from","from","get","insert","insert","into","into","is_empty","iter","iter","len","new","remove","remove","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip"],"q":[[0,"iroh_gossip"],[4,"iroh_gossip::dispatcher"],[118,"iroh_gossip::metrics"],[154,"iroh_gossip::net"],[204,"iroh_gossip::net::util"],[221,"iroh_gossip::proto"],[313,"iroh_gossip::proto::state"],[454,"iroh_gossip::proto::topic"],[641,"iroh_gossip::proto::util"],[678,"dyn_clone::sealed"],[679,"core::cmp"],[680,"core::result"],[681,"serde::de"],[682,"core::fmt"],[683,"iroh_base::key"],[684,"core::option"],[685,"serde::ser"],[686,"futures_core::stream"],[687,"alloc::boxed"],[688,"iroh_base::rpc"],[689,"core::marker"],[690,"core::any"],[691,"alloc::vec::into_iter"],[692,"bytes::bytes"],[693,"anyhow"],[694,"iroh_net::endpoint"],[695,"iroh_base::node_addr"],[696,"iroh_quinn::connection"],[697,"alloc::vec"],[698,"futures_concurrency::future::join::tuple"],[699,"core::future::into_future"],[700,"core::future::future"],[701,"core::pin"],[702,"core::task::wake"],[703,"core::task::poll"],[704,"futures_concurrency::future::race::tuple"],[705,"tokio::sync::broadcast"],[706,"tokio::sync::broadcast::error"],[707,"iroh_net::magicsock"],[708,"std::time"],[709,"bytes::bytes_mut"],[710,"tokio::io::async_read"],[711,"core::iter::traits::iterator"],[712,"tokio::io::async_write"],[713,"iroh_gossip::proto::plumtree"],[714,"core::convert"],[715,"bitvec::slice"],[716,"bitvec::order"],[717,"core::clone"],[718,"core::iter::traits::collect"],[719,"rand::rng"],[720,"core::hash"],[721,"postcard::error"],[722,"alloc::string"],[723,"bitvec::ptr::span"],[724,"rand::rngs::std"]],"i":[0,0,0,0,10,10,0,0,11,0,0,11,0,3,3,3,0,3,4,5,7,7,10,11,3,4,5,7,10,11,3,4,5,3,4,5,3,4,5,3,4,3,4,4,4,7,10,11,3,4,3,4,3,3,3,4,4,4,7,10,11,3,4,5,7,10,11,3,3,4,5,3,4,5,7,10,11,3,4,5,5,3,4,4,7,10,11,3,4,5,7,3,4,5,7,10,11,3,4,5,7,10,11,3,4,5,7,10,11,3,4,5,7,10,11,3,4,5,0,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,104,0,0,0,0,104,0,50,50,104,50,17,17,34,17,34,17,17,17,17,17,34,17,34,17,17,17,17,34,34,17,34,17,34,17,34,17,17,17,17,34,17,34,34,17,34,17,0,17,34,0,55,55,55,55,55,55,55,55,0,0,55,55,55,55,55,0,0,0,0,0,0,0,0,65,66,0,0,0,0,0,65,66,0,0,65,66,63,63,65,66,63,65,66,63,65,66,63,65,66,63,65,66,65,66,63,65,66,63,65,66,63,65,65,65,66,66,66,63,63,63,65,66,63,65,66,63,65,66,63,63,65,66,63,65,63,65,66,65,66,63,0,65,66,63,0,65,66,63,65,66,63,65,66,63,0,65,66,63,73,78,78,74,74,0,0,0,0,74,73,73,74,74,0,0,73,0,73,20,60,72,73,74,20,20,20,20,20,60,78,72,73,74,79,20,60,78,72,73,74,79,20,60,72,73,74,20,60,72,73,74,20,20,20,60,20,20,20,20,20,20,20,20,60,78,72,73,74,79,20,20,60,78,72,73,74,79,20,20,60,72,73,74,20,79,79,20,20,60,78,72,73,74,79,60,79,79,79,20,20,60,60,79,79,20,60,72,73,74,20,79,20,20,60,78,72,73,74,79,20,60,78,72,73,74,79,20,60,78,72,73,74,79,20,60,78,72,73,74,79,91,0,88,0,0,94,94,0,89,90,0,0,91,0,16,16,0,94,88,91,16,88,94,94,0,0,89,90,0,88,88,88,89,16,90,91,36,92,88,94,89,16,90,91,36,85,92,88,94,89,16,90,91,36,85,92,36,88,89,16,90,91,36,92,88,89,16,90,91,36,92,16,16,36,92,89,16,85,94,89,16,90,94,94,94,89,89,89,16,16,16,90,90,90,88,94,89,16,90,91,36,85,92,88,94,89,16,90,91,36,85,92,88,89,16,90,91,36,92,85,85,85,88,94,89,16,90,91,36,85,92,89,36,36,92,92,85,16,98,98,89,16,85,88,89,16,90,91,36,92,88,94,89,16,90,91,36,85,92,88,94,89,16,90,91,36,85,92,88,94,89,16,90,91,36,85,92,88,94,89,16,90,91,36,85,92,85,0,0,103,100,103,100,100,103,100,103,100,100,103,103,100,103,100,100,103,100,103,100,100,103,100,100,103,103,100,103,100,103,100,103,100,103,100],"f":"`````````````````{{cb}d{}}00`{ce{}{}}00000000000{ff}{hh}{jj}{{ce}d{}{}}00{{ff}l}{{hh}l}{{ce}l{}{}}0``{c{{A`{n}}}Ab}{c{{A`{Ad}}}Ab}{c{{A`{Af}}}Ab}{c{{A`{f}}}Ab}{c{{A`{h}}}Ab}{{ff}Ah}{{hh}Ah}{{ce}Ah{}{}}00000{{nAj}Al}{{AdAj}Al}{{AfAj}Al}{{fAj}Al}{{hAj}Al}{{jAj}Al}{cc{}}000{{{B`{An}}}f}11111{ce{}{}}00000{Bbj}{{ff}{{Bd{l}}}}{{hh}{{Bd{l}}}}`{{nc}A`Bf}{{Adc}A`Bf}{{Afc}A`Bf}{{fc}A`Bf}{{hc}A`Bf}{{jBhn{Bl{Bj}}}{{`{{Bj{}{{Bn{{C`{Af}}}}}}Cb}}}}`999{c{{A`{e}}}{}{}}00000000000{cCd{}}00000;;;;;;`{{cb}d{}}````````<<{CfCf}{{ce}d{}{}}{{}Cf}{{CfAj}Al}{cc{}}0{ce{}{}}{Cf{{Cn{{Cl{ChCj}}}}}}````````{{}Ch}``2::92```````````82222{{BbBhD`}{{Db{d}}}}0{BbBb}8{{BbAj}Al}{{DdAj}Al}77{{DfDhDj}Bb}8{{BbDl}{{Db{d}}}}88{c{}{}}{{BbBh{E`{Dn}}}{{Db{Dd}}}}{{ce}{{Eb{g}}}{}EdEf}{BbEh}{{{Ej{Dd}}El}{{En{c}}}{}}{{BbBh}{{Db{d}}}}{{cg}{{F`{ei}}}{}{}{{Ed{}{{Fb{e}}}}}{{Ef{}{{Fb{e}}}}}}{{BbBh}{{Db{{Ff{Fd}}}}}}{Bb{{`{{Bj{}{{Bn{{A`{{Cl{BhFd}}Fh}}}}}}}}}}{ce{}{}}{c{{A`{e}}}{}{}}000{{{Ej{c}}El}En{}}{cCd{}}0{{Bb{Fl{Fj}}}{{Db{d}}}}`44`44{{}{{Fn{c}}}{}}{{{Fn{c}}Aj}AlG`}{cc{}}{{{Fn{c}}Gbc}d{}}83{{cGdEh}{{Db{{Bd{D`}}}}}{GfCb}}{{cGdEh}{{Db{{Bd{{Gh{Dn}}}}}}}{GfCb}}997:{{{Fn{c}}}{{`{{Gj{}{{Bn{{Cl{Gbc}}}}}}}}}{}}{{cGd{Gh{Dn}}Eh}{{Db{d}}}{GlCb}}``````````````````{{cb}d{}}00{Gn{{Fl{H`}}}}>>>>>>{HbHb}{HdHd}{GnGn}{{ce}d{}{}}00{{HbHb}l}{{HdHd}l}{{ce}l{}{}}0{{}Gn}{c{{A`{Hb}}}Ab}{c{{A`{Hd}}}Ab}{c{{A`{Gn}}}Ab}{{HbHb}Ah}{{HdHd}Ah}{{GnGn}Ah}{{ce}Ah{}{}}00000000{{HbAj}Al}{{HdAj}Al}{{GnAj}Al}{cc{}}00000{GnD`}{ce{}{}}00{HbAh}{cGn{{Hf{D`}}}}{{HbHb}{{Bd{l}}}}{{HdHd}{{Bd{l}}}}{{Hbc}A`Bf}{{Hdc}A`Bf}{{Gnc}A`Bf}`777`{c{{A`{e}}}{}{}}00000{cCd{}}00`999```````````````````{{cb}d{}}0000{c{{Hh{eg}}}{}{}Hj}{Bh{{Hl{H`}}}}0{Bh{{Fl{H`}}}}=============={BhBh}{{{Gh{c}}}{{Gh{c}}}Hn}{{{I`{c}}}{{I`{c}}}Hn}{{{Ib{c}}}{{Ib{c}}}Hn}{{{Id{c}}}{{Id{c}}}Hn}{{ce}d{}{}}0000{{BhBh}l}{{ce}l{}{}}{c{{A`{Bh}}}Ab}{c{{A`{{Gh{e}}}}}AbIf}{ce{}{{Ij{Ih}}}}0{{BhBh}Ah}{{ce}Ah{}{}}00{{BhAj}Al}0{{{Gh{c}}Aj}AlG`}{{IlAj}Al}{{{I`{c}}Aj}AlG`}{{{Ib{c}}Aj}AlG`}{{{Id{c}}Aj}AlG`}{{{In{ce}}Aj}AlG`G`}{cc{}}{cBh{{Hf{{Hl{H`}}}}}}111111{{{Hl{H`}}}Bh}22222{Ch{{A`{Bhc}}}{}}{{{In{ce}}{Ib{c}}Gb}{{`{{Gj{}{{Bn{{Id{c}}}}}}}}}J`{JbHn}}{{{In{ce}}Bh}AhJ`{JbHn}}{{Bhc}dJd}{ce{}{}}000000{{{Gh{c}}}Il{}}{{{In{ce}}}EhJ`{JbHn}}{{{In{ce}}}cJ`{JbHn}}{{cGnDhe}{{In{ce}}}J`{JbHn}}{{BhBh}{{Bd{l}}}}{{Bhc}A`Bf}{{{Gh{c}}e}A`JfBf}{{{Gh{c}}}{{Jh{Eh}}}Jf}{{{In{ce}}Bh}{{Bd{{Jj{ce}}}}}J`{JbHn}}{{{In{ce}}}{{`{{Gj{}{{Bn{{Cl{Bh{Jj{ce}}}}}}}}}}}J`{JbHn}}:::::{cJl{}}{{{In{ce}}}{{`{{Gj{}{{Bn{Bh}}}}}}}J`{JbHn}}{c{{A`{{Hh{eg}}{Jn{e}}}}}{}{}Hj}{c{{A`{e}}}{}{}}0000000000000{cCd{}}000000???????```````````````````````````````{{cb}d{}}000000{ce{}{}}00000000000000000`{{{K`{c}}}{{K`{c}}}Hn}{{{Kb{c}}}{{Kb{c}}}Hn}{{{B`{c}}}{{B`{c}}}Hn}{{{Kd{c}}}{{Kd{c}}}Hn}{{{Kf{c}}}{{Kf{c}}}Hn}{DhDh}{KhKh}{{ce}d{}{}}000000{{{B`{c}}{B`{c}}}lKj}{{ce}l{}{}}{{}Dh}{{}Kh}{c{{A`{{Kb{e}}}}}AbIf}{c{{A`{{B`{e}}}}}AbIf}{{{Jj{ce}}}c{}{}}{{{Kl{c}}{Kl{c}}}AhKn}{{{Kb{c}}{Kb{c}}}AhKn}{{{B`{c}}{B`{c}}}AhKn}{{{Kd{c}}{Kd{c}}}AhKn}{{ce}Ah{}{}}00000000000{{{K`{c}}Aj}AlG`}{{{Kl{c}}Aj}AlG`}{{{Kb{c}}Aj}AlG`}{{{B`{c}}Aj}AlG`}{{{Kd{c}}Aj}AlG`}{{{Kf{c}}Aj}Al{}}{{DhAj}Al}{{{Jj{ce}}Aj}AlG`G`}{{KhAj}Al}{cc{}}000000000000000`{{{Jj{ce}}{K`{c}}Gb}{{`{{Gj{}{{Bn{{Kl{c}}}}}}}}}J`Jb}{{{Jj{ce}}}AhJ`Jb}{ce{}{}}00000000{{{Kb{c}}}Il{}}````{{c{Bd{Gn}}Dh}{{Jj{cL`}}}J`}{{{B`{c}}{B`{c}}}{{Bd{l}}}Lb}{{Lde}dHn{{Hf{{Kl{c}}}}}}{{Ldg}dHn{{Hf{{Kl{c}}}}}{{Lf{}{{Bn{e}}}}}}{{{Kb{c}}e}A`JfBf}{{{B`{c}}e}A`JfBf}{{{Jj{ce}}}KhJ`Jb}8888888{c{{A`{e}}}{}{}}00000000000000000{cCd{}}00000000:::::::::{{c{Bd{Gn}}Dhe}{{Jj{ce}}}J`Jb}``;;;;{{{Lh{ce}}c}Ah{LjLlHn}{}}{{}{{Ln{c}}}{}}{{}{{Lh{ce}}}{}{}}{{{Ln{c}}Gb}{{`{{Gj{}{{Bn{{Cl{Gbc}}}}}}}}}{}}{{{Lh{ce}}Gb}Eh{LjLlHn}{}}{{{Lh{ce}}c}{{Bd{Gb}}}{LjLlHn}{}}{{{Ln{c}}}{{Bd{{Cl{Gb{E`{c}}}}}}}{}}{{{Ln{c}}Aj}AlG`}{{{Lh{ce}}Aj}AlG`G`}{cc{}}0{{{Lh{ce}}c}{{Bd{e}}}{LjLlHn}{}}{{{Ln{c}}Gbc}d{}}{{{Lh{ce}}ceGb}d{LjLlHn}{}}{ce{}{}}0{{{Lh{ce}}}Ah{LjLlHn}{}}{{{Ln{c}}}{{`{{Gj{}{{Bn{{Cl{Gbc}}}}}}}}}{}}{{{Lh{ce}}}{{`{{Gj{}{{Bn{{Cl{ceGb}}}}}}}}}{LjLlHn}{}}{{{Lh{ce}}}Eh{LjLlHn}{}}{{}{{Ln{c}}}{}}{{{Ln{c}}Gbc}dKn}9{c{{A`{e}}}{}{}}000{cCd{}}088","D":"ALd","p":[[5,"Private",678],[1,"unit"],[6,"GossipEvent",4],[5,"Message",4],[5,"GossipDispatcher",4],[6,"Ordering",679],[5,"SubscribeOptions",4],[6,"Result",680],[10,"Deserializer",681],[6,"Command",4],[6,"Event",4],[1,"bool"],[5,"Formatter",682],[8,"Result",682],[8,"NodeId",683],[6,"Event",454],[5,"Gossip",154],[6,"Option",684],[10,"Serializer",685],[5,"TopicId",313],[10,"Stream",686],[5,"Box",687],[17,"Item"],[8,"RpcResult",688],[10,"Unpin",689],[5,"TypeId",690],[5,"Metrics",118],[1,"str"],[10,"Any",690],[1,"tuple"],[5,"IntoIter",691],[5,"Bytes",692],[8,"Result",693],[5,"JoinTopicFut",154],[5,"Endpoint",694],[5,"Config",454],[5,"AddrInfo",695],[5,"Connection",696],[5,"PublicKey",683],[5,"Vec",697],[5,"Join2",698],[10,"IntoFuture",699],[10,"Future",700],[1,"usize"],[5,"Pin",701],[5,"Context",702],[6,"Poll",703],[5,"Race2",704],[17,"Output"],[8,"Event",154],[5,"Receiver",705],[6,"RecvError",706],[5,"DirectAddr",707],[1,"slice"],[5,"Timers",204],[10,"Debug",682],[5,"Instant",708],[5,"BytesMut",709],[10,"AsyncRead",710],[5,"Message",313],[10,"Iterator",711],[10,"AsyncWrite",712],[5,"PeerData",221],[1,"u8"],[6,"DeliveryScope",221,713],[6,"Scope",221,713],[10,"Into",714],[5,"BitSlice",715],[10,"BitOrder",716],[1,"array"],[10,"Clone",717],[5,"Timer",313],[6,"InEvent",313],[6,"OutEvent",313],[10,"Deserialize",681],[1,"char"],[10,"FromIterator",718],[6,"MessageKind",313],[5,"State",313],[10,"PeerIdentity",221],[10,"Rng",719],[10,"Hasher",720],[10,"Serialize",685],[8,"Result",721],[5,"State",454],[5,"String",722],[6,"BitSpanError",723],[6,"InEvent",454],[6,"Message",454],[6,"Timer",454],[6,"Command",454],[5,"Stats",454],[10,"Ord",679],[6,"OutEvent",454],[10,"PartialEq",679],[5,"StdRng",724],[10,"PartialOrd",679],[10,"IO",454],[10,"IntoIterator",718],[5,"TimeBoundCache",641],[10,"Hash",720],[10,"Eq",679],[5,"TimerMap",641],[8,"Command",154]],"r":[[221,454],[222,454],[223,713],[224,454],[225,454],[226,313],[227,313],[230,313],[233,713],[234,313],[237,313],[238,313]],"b":[[339,"impl-AsRef%3C%5Bu8;+32%5D%3E-for-TopicId"],[340,"impl-AsRef%3C%5Bu8%5D%3E-for-TopicId"],[375,"impl-Debug-for-TopicId"],[376,"impl-Display-for-TopicId"]],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAMQBNAASAAIAFgAVAC4AEgBFAAAASAACAFIAAQBVAAQAXAAaAHgADgCIAAAAigAQAKYABACtAAMAtAAAALgAAAC6AAAAvAAAAL4AAADBAAcAywABAM4AAwDYAAMA3gABAOEAAwDnAAAA6wAAAO4ABAD0ACIAGgECACMBBAApAQIALQEIADcBAgBNAQUAVAErAIEBAACJAQUAkQEAAJ0BAgCjAQUAqgEcAOYBGAAAAhMAFQIYADcCBgBQAgAAUwIBAFYCKgCEAgMAiQIBAI8CAQCfAgcA"}],\ ["iroh_metrics",{"t":"CQQCHHQEFFKKKFIFOONNNNNNNNNNNNONNONNNNNNNNNNNNNNNNNNNMMMNNNNNNOONNONNNNNNNNNNNNNNNNONHH","n":["core","inc","inc_by","metrics","parse_prometheus_metrics","report_usage_stats","set","struct_iterable","Core","Counter","HistogramType","Metric","MetricType","UsageReporter","UsageResource","UsageStatsReport","attribution_id","attribution_key","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","counter","default","default","description","deserialize","fmt","fmt","fmt","fmt","from","from","from","from","get","get","get_collector","inc","inc_by","init","into","into","into","into","name","name","name","new","new","new","new","registry","report_usage_stats","resource","resource_ref","serialize","set","timestamp","to_owned","to_owned","try_from","try_from","try_from","try_from","try_get","try_init","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","value","with_metric","start_metrics_dumper","start_metrics_server"],"q":[[0,"iroh_metrics"],[8,"iroh_metrics::core"],[85,"iroh_metrics::metrics"],[87,"alloc::string"],[88,"std::collections::hash::map"],[89,"anyhow"],[90,"core::result"],[91,"serde::de"],[92,"core::fmt"],[93,"core::option"],[94,"prometheus_client::registry"],[95,"erased_set"],[96,"core::ops::function"],[97,"serde::ser"],[98,"std::io::error"],[99,"core::any"],[100,"std::path"],[101,"core::time"],[102,"core::net::socket_addr"]],"i":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,6,9,8,10,6,9,8,10,6,8,6,8,6,8,9,10,8,6,9,8,10,6,9,8,10,6,9,8,9,8,8,9,9,8,10,6,17,21,22,17,8,10,6,9,10,6,6,6,8,6,8,6,9,8,10,6,17,9,9,8,10,6,9,8,10,6,6,17,0,0],"f":"````{b{{j{{h{df}}}}}}{ln}````````````{ce{}{}}0000000{A`A`}{ll}{{ce}n{}{}}0`{{}Ab}{{}Ad}`{c{{Af{l}}}Ah}{{AbAj}Al}{{A`Aj}Al}{{AdAj}Al}{{lAj}Al}{cc{}}000{{}{{An{Ab}}}}{A`B`}{Ab{{An{c}}}Bb}1{{A`B`}B`}{cn{{Bh{BdBf}}}}{ce{}{}}000{{}b}{Bjb}{Blb}{BdBb}{bA`}{{}Ad}{{BndC`{An{d}}{An{d}}}l}{AbBd}{{Adl}{{Af{nCb}}}}``{{lc}AfCd}<`::{c{{Af{e}}}{}{}}000{{}{{An{Bb}}}}{c{{Cf{n}}}{{Bh{BdBf}}}}2222{cCh{}}000`{en{}{{Bh{Bb}{{Cj{c}}}}}}{{ClCn}{{j{n}}}}{D`{{j{n}}}}","D":"Fl","p":[[1,"str"],[5,"String",87],[1,"f64"],[5,"HashMap",88],[8,"Result",89],[5,"UsageStatsReport",8],[1,"unit"],[5,"Counter",8],[5,"Core",8],[5,"UsageReporter",8],[6,"Result",90],[10,"Deserializer",91],[5,"Formatter",92],[8,"Result",92],[6,"Option",93],[1,"u64"],[10,"Metric",8],[5,"Registry",94],[5,"ErasedSyncSet",95],[10,"FnOnce",96],[10,"MetricType",8],[10,"HistogramType",8],[8,"UsageResource",8],[1,"i64"],[5,"Error",89],[10,"Serializer",97],[8,"Result",98],[5,"TypeId",99],[17,"Output"],[5,"PathBuf",100],[5,"Duration",101],[6,"SocketAddr",102]],"r":[],"b":[],"c":"OjAAAAAAAAA=","e":"OzAAAAEAACEABgATAAsAIAABACMABABBAAAARAAFAEwABwA="}],\ -["iroh_net",{"t":"FEFINNNNNNNNNNNNNNNNNCNNCNOCCCNNNNNNNNNNNNNNNNNNNNONNNCCCCNONNCCCNONNCCCCNNNNNNNNCNNNNSSSSCCSSSHHHHSSHHHFNNNNNNNNNNNNNNNNNNNNNNFKFNNONNNNNNNCNNNNNNNNNNNOCCONNNNNNNNNNNNNFSSNNNNNNNNNNNNFNNNNNNNNNNNNSSSSFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNIKHMNMNMNMNMNMNMNMNMNMNCHPSGFPFNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNONONNNNNNHNNNNNNNNNNNNNFFPFPFFPGFPPGFGPFFGFFPPPTTPFPPPPGFPPPFPPPPFPPPPFPGPPNNNNNNNNNNNNNNNNNOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNHNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONOONOOONNHNNNNNNNNNNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNTPPGISFFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFEEENOOOOOOOONNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOONNNNONGFPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCNCNNNNNNNNNNFNNNNNNNNNNNNNNHONONNNNNFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFFFFNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOONNNNOOOONNOONNOOONOOOOOOOOOONNNNNNNNNNNNNNNNNONNNNPPGFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFFFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNOOONNNNONNNNNNNNNNNNNNNNNNNNNOOONONOOONONNNNNNNNNNNNNNNNNNNNNNOOOOONNNNNNPPPPPPPPPPPPPPFFGFPPPPSPPPPPPPPPPGPFFGFPFPPPPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNOOOOOGSSPPNNNNNNNNNNNNNNNNNNNNGFPFPGFPFFFFFPFNNNNOOOONNNNNNNNNNNNNNNNNNNNNNOONNONNNNNNNNNOOOOONNNNNNNNNNNNNNNNNNNNNNNNONONONNNNNNNNNNNNNONONNOOONNNNNNONOOOOONNONNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOONNNNNNNNNNNOOOOPGPPPPPPPPGFPPPPPPPPPPPGFPFPPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNCHHNHHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNSSSFFNNNNHNNNNNNNNOONONHNNNNNNNNNFNNNNNNNNNNNNNNNNNNNNNNNNNNNCHHFFFFFNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNFFFFNNNNNNNNNCNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFNNHNNNNNNNNNNNNNN","n":["AddrInfo","Endpoint","NodeAddr","NodeId","__clone_box","__clone_box","apply_options","apply_options","borrow","borrow","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","cmp","cmp","compare","compare","default","defaults","deserialize","deserialize","dialer","direct_addresses","direct_addresses","discovery","dns","endpoint","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","from","from","from","from","from","from","from","from_parts","from_ref","from_ref","info","into","into","is_empty","key","metrics","net","netcheck","new","node_id","partial_cmp","partial_cmp","ping","portmapper","relay","relay_url","relay_url","serialize","serialize","stun","test_utils","ticket","tls","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","util","vzip","vzip","with_direct_addresses","with_relay_url","DEFAULT_HTTPS_PORT","DEFAULT_HTTP_PORT","DEFAULT_METRICS_PORT","DEFAULT_STUN_PORT","prod","staging","AP_RELAY_HOSTNAME","EU_RELAY_HOSTNAME","NA_RELAY_HOSTNAME","default_ap_relay_node","default_eu_relay_node","default_na_relay_node","default_relay_map","EU_RELAY_HOSTNAME","NA_RELAY_HOSTNAME","default_eu_relay_node","default_na_relay_node","default_relay_map","Dialer","abort_dial","borrow","borrow_mut","chain","fmt","from","into","into_stream","is_pending","merge","new","next_conn","pending_count","poll_next","queue_dial","ratelimit_stream","ratelimit_stream_with_jitter","try_from","try_into","type_id","vzip","zip","ConcurrentDiscovery","Discovery","DiscoveryItem","__clone_box","add","addr_info","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","default","dns","empty","fmt","fmt","from","from","from","from","from_ref","from_services","into","into","last_updated","local_swarm_discovery","pkarr","provenance","publish","publish","resolve","resolve","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","DnsDiscovery","N0_DNS_NODE_ORIGIN_PROD","N0_DNS_NODE_ORIGIN_STAGING","borrow","borrow_mut","fmt","from","into","n0_dns","new","resolve","try_from","try_into","type_id","vzip","LocalSwarmDiscovery","borrow","borrow_mut","fmt","from","into","new","publish","resolve","try_from","try_into","type_id","vzip","DEFAULT_PKARR_TTL","DEFAULT_REPUBLISH_INTERVAL","N0_DNS_PKARR_RELAY_PROD","N0_DNS_PKARR_RELAY_STAGING","PkarrPublisher","PkarrRelayClient","PkarrResolver","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","drop","fmt","fmt","fmt","from","from","from","from_ref","from_ref","from_ref","into","into","into","n0_dns","n0_dns","new","new","new","publish","publish","resolve","resolve","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","update_addr_info","vzip","vzip","vzip","with_options","DnsResolver","ResolverExt","default_resolver","lookup_by_id","lookup_by_id","lookup_by_id_staggered","lookup_by_id_staggered","lookup_by_name","lookup_by_name","lookup_by_name_staggered","lookup_by_name_staggered","lookup_ipv4","lookup_ipv4","lookup_ipv4_ipv6","lookup_ipv4_ipv6","lookup_ipv4_ipv6_staggered","lookup_ipv4_ipv6_staggered","lookup_ipv4_staggered","lookup_ipv4_staggered","lookup_ipv6","lookup_ipv6","lookup_ipv6_staggered","lookup_ipv6_staggered","node_info","resolver","Addr","IROH_TXT_NAME","IrohAttr","NodeInfo","Relay","TxtAttrs","__clone_box","as_ref","attrs","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","cmp","compare","direct_addresses","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from_hickory_records","from_hickory_records","from_parts","from_pkarr_signed_packet","from_pkarr_signed_packet","from_ref","from_str","from_strings","from_z32","hash","into","into","into","lookup_by_id","lookup_by_name","new","node_id","node_id","partial_cmp","relay_url","to_hickory_records","to_hickory_records","to_owned","to_pkarr_signed_packet","to_pkarr_signed_packet","to_string","to_z32","try_from","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","Accept","AddrInfo","ApplicationClosed","Builder","CallMeMaybe","Connecting","Connection","ConnectionClosed","ConnectionError","ConnectionInfo","ConnectionLost","ConnectionLost","ConnectionType","ConnectionTypeStream","ControlMsg","Direct","DirectAddr","DirectAddrInfo","DirectAddrType","DirectAddrsStream","Endpoint","IllegalOrderedRead","Local","LocallyClosed","MAX","MAX_SIZE","Mixed","NodeAddr","None","Ping","Pong","Portmapped","ReadError","RecvStream","Relay","Reset","Reset","SendStream","Stopped","Stun","Stun4LocalPort","TimedOut","TransportConfig","TransportError","Unknown","UnknownStream","UnknownStream","VarInt","VersionMismatch","WriteError","ZeroRttRejected","ZeroRttRejected","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","accept","accept_bi","accept_uni","add_node_addr","add_node_addr_with_source","addr","addr","addrs","allow_spin","alpn","alpns","bind","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","bound_sockets","builder","chain","chain","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","close","close","close_reason","closed","cmp","cmp","cmp","compare","compare","compare","concurrent_connections","congestion_controller_factory","congestion_state","conn_type","conn_type_stream","connect","connect_by_node_id","connection_info","connection_infos","crypto_buffer_size","datagram_receive_buffer_size","datagram_send_buffer_size","datagram_send_buffer_space","default","default","default","default_relay_mode","deserialize","deserialize","deserialize","deserialize","direct_addresses","direct_addresses","discovery","discovery","dns_resolver","dns_resolver","drop","drop","enable_segmentation_offload","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","export_keying_material","finish","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_u32","from_u64","from_u64_unchecked","get_remote_node_id","handshake_data","handshake_data","has_send_address","hash","hash","hash","home_relay","id","id","id","info","initial_mtu","initial_rtt","insecure_skip_relay_cert_verify","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into_0rtt","into_future","into_future","into_inner","into_stream","into_stream","is_0rtt","join","join","keep_alive_interval","keylog","known_nodes","last_alive","last_alive_relay","last_control","last_payload","last_received","last_used","latency","latency","local_ip","local_ip","make_server_config","max_concurrent_bidi_streams","max_concurrent_uni_streams","max_datagram_size","max_idle_timeout","max_tlps","merge","merge","min_mtu","mtu_discovery_config","network_change","node_addr","node_id","node_id","node_id","open_bi","open_uni","packet_threshold","partial_cmp","partial_cmp","partial_cmp","peer_identity","persistent_congestion_threshold","poll","poll","poll_flush","poll_next","poll_next","poll_read","poll_shutdown","poll_write","priority","proxy_from_env","proxy_url","race","race","ratelimit_stream","ratelimit_stream","ratelimit_stream_with_jitter","ratelimit_stream_with_jitter","read","read_chunk","read_chunks","read_datagram","read_exact","read_to_end","receive_window","relay_mode","relay_url","relay_url","remote_address","remote_address","reset","rtt","secret_key","secret_key","send_datagram","send_window","serialize","serialize","serialize","serialize","set_alpns","set_max_concurrent_bi_streams","set_max_concurrent_uni_streams","set_priority","set_receive_window","source","source","source","stable_id","stats","stop","stopped","stream_receive_window","time_threshold","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","to_string","to_string","to_string","transport_config","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_poll","typ","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","watch_home_relay","weak_handle","write","write_all","write_all_chunks","write_chunk","write_chunks","zip","zip","BYTE_SIZE","Base32","Key","KeyParsingError","NodeId","PUBLIC_KEY_LENGTH","PublicKey","SecretKey","SharedSecret","Signature","__clone_box","__clone_box","__clone_box","as_bits","as_bytes","as_ref","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","cmp","compare","deserialize","deserialize","deserialize","encode_hex","encode_hex_upper","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt_short","from","from","from","from","from","from","from","from","from","from","from","from","from","from_bytes","from_bytes","from_bytes","from_components","from_ref","from_ref","from_ref","from_slice","from_str","from_str","from_str","generate","generate_with_rng","hash","into","into","into","into","into","open","partial_cmp","public","r_bytes","s_bytes","seal","serialize","serialize","serialize","shared","sign","source","to_bytes","to_bytes","to_bytes","to_openssh","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","to_vec","try_as_bits","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from_openssh","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","verify","vzip","vzip","vzip","vzip","vzip","MagicsockMetrics","NetcheckMetrics","PortmapMetrics","RelayMetrics","__clone_box","actor_link_change","actor_tick_direct_addr_heartbeat","actor_tick_direct_addr_update_receiver","actor_tick_main","actor_tick_msg","actor_tick_other","actor_tick_portmap_changed","actor_tick_re_stun","borrow","borrow_mut","clone","clone_into","default","fmt","from","from_ref","into","iter","name","num_direct_conns_added","num_direct_conns_removed","num_relay_conns_added","num_relay_conns_removed","re_stun_calls","recv_data_ipv4","recv_data_ipv6","recv_data_relay","recv_datagrams","recv_disco_bad_key","recv_disco_bad_parse","recv_disco_call_me_maybe","recv_disco_call_me_maybe_bad_disco","recv_disco_ping","recv_disco_pong","recv_disco_relay","recv_disco_udp","relay_home_change","send_data","send_data_network_down","send_disco_relay","send_disco_udp","send_ipv4","send_ipv6","send_relay","send_relay_error","sent_disco_call_me_maybe","sent_disco_ping","sent_disco_pong","sent_disco_relay","sent_disco_udp","to_owned","try_from","try_into","type_id","update_direct_addrs","vzip","IpFamily","UdpSocket","V4","V6","__clone_box","as_fd","bind","bind_full","bind_local","bind_local_v4","bind_local_v6","bind_v4","bind_v6","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","deref","drop","eq","equivalent","equivalent","equivalent","fmt","fmt","from","from","from","from","from_ref","into","into","ip","local_addr","netmon","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","unspecified_addr","vzip","vzip","LocalAddresses","__clone_box","borrow","borrow_mut","clone","clone_into","default","eq","equivalent","equivalent","equivalent","fmt","from","from_ref","into","is_unicast_link_local","loopback","new","regular","to_owned","try_from","try_into","type_id","vzip","CallbackToken","Monitor","__clone_box","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","drop","eq","equivalent","equivalent","equivalent","fmt","fmt","from","from","from_ref","hash","into","into","network_change","new","subscribe","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","unsubscribe","vzip","vzip","Client","Metrics","RelayLatencies","Report","__clone_box","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","captive_portal","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","default","default","default","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from_ref","from_ref","from_ref","from_ref","get_report","get_report_channel","global_v4","global_v6","hair_pinning","icmpv4","icmpv6","into","into","into","into","ipv4","ipv4_can_send","ipv6","ipv6_can_send","iter","iter","mapping_varies_by_dest_ip","mapping_varies_by_dest_ipv6","name","new","os_has_ipv6","portmap_probe","preferred_relay","receive_stun_packet","relay_latency","relay_v4_latency","relay_v6_latency","reports","reports_full","stun_packets_dropped","stun_packets_recv_ipv4","stun_packets_recv_ipv6","stun_packets_sent_ipv4","stun_packets_sent_ipv6","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","udp","vzip","vzip","vzip","vzip","Client","Ping","PingError","Pinger","__clone_box","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","default","fmt","fmt","fmt","from","from","from","from","from_ref","into","into","new","send","source","to_owned","to_string","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","Client","Config","Metrics","ProbeOutput","Service","__clone_box","__clone_box","__clone_box","__clone_box","all_available","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","deactivate","default","default","default","enable_nat_pmp","enable_pcp","enable_upnp","eq","equivalent","equivalent","equivalent","external_address_updated","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from_ref","from_ref","from_ref","from_ref","into","into","into","into","into","iter","local_port_updates","mapping_attempts","mapping_failures","name","nat_pmp","new","pcp","pcp_available","pcp_probes","probe","probes_started","procure_mapping","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","update_local_port","upnp","upnp_available","upnp_gateway_updated","upnp_probes","upnp_probes_failed","vzip","vzip","vzip","vzip","vzip","watch_external_address","ActorGone","Build","CannotAckPings","Closed","ConnectTimeout","Custom","Default","DialIO","DialTask","Disabled","Dns","DnsTimeout","Health","Http","HttpClient","HttpClientBuilder","HttpClientError","HttpClientReceiver","Hyper","IPDisabled","InvalidUrl","KeepAlive","MAX_PACKET_SIZE","NoClient","NoLocalAddr","NoNodeForTarget","PeerGone","Ping","PingAborted","PingTimeout","Pong","Proxy","Receive","ReceivedMessage","ReceivedPacket","RelayConn","RelayMap","RelayMode","RelayNode","RelayNodeNotAvail","RelayUrl","Send","ServerRestarting","Staging","StunOnlyNodesFound","UnexpectedStatusCode","Upgrade","WebsocketError","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","address_family_selector","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","can_ack_pings","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","close","close","close_for_reconnect","cmp","cmp","compare","compare","connect","contains_node","default_from_node","deref","deserialize","deserialize","empty","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_nodes","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_str","from_url","get_node","hash","http","insecure_skip_cert_verify","into","into","into","into","into","into","into","into","into","into","is_closed","is_connected","is_empty","is_preferred","is_prober","len","local_addr","local_addr","new","nodes","note_preferred","note_preferred","partial_cmp","partial_cmp","ping","protocol","proxy_url","public_key","recv","relay_map","send","send","send_ping","send_pong","send_pong","serialize","serialize","server","server_public_key","server_url","source","stun_only","stun_port","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","url","urls","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","data","problem","reconnect_in","source","try_for","Protocol","RELAY_PATH","RELAY_PROBE_PATH","Relay","Websocket","__clone_box","borrow","borrow_mut","clone","clone_into","eq","equivalent","equivalent","equivalent","fmt","from","from_ref","into","parse_header","to_owned","try_from","try_into","type_id","upgrade_header","vzip","CertConfig","ClientConnHandler","LetsEncrypt","Limits","Manual","MaybeTlsStreamServer","Metrics","Plain","RelayConfig","Server","ServerActorTask","ServerConfig","StunConfig","Tls","TlsConfig","__clone_box","__clone_box","abort","accept","accept_conn_burst","accept_conn_limit","accepts","bind_addr","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","bytes_recv","bytes_sent","call","call","cert","client_conn_handler","clone","clone","clone_into","clone_into","close","default","default","default","derp_accepts","disco_packets_dropped","disco_packets_recv","disco_packets_sent","disconnects","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from_ref","from_ref","got_ping","http_addr","http_bind_addr","https_addr","https_bind_addr","into","into","into","into","into","into","into","into","into","into","into","is_closed","iter","limits","meta_cert","metrics_addr","name","new","other_packets_dropped","other_packets_recv","other_packets_sent","poll_flush","poll_read","poll_shutdown","poll_write","poll_write_vectored","public_key","relay","secret_key","secret_key","send_packets_dropped","send_packets_recv","send_packets_sent","sent_pong","shutdown","spawn","stun","stun_addr","task_handle","tls","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unique_client_keys","unknown_frames","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","websocket_accepts","certs","config","private_key","AlternateServer","Error","ErrorCode","ErrorResponse","Fingerprint","Indication","InvalidFingerprint","InvalidMessage","MalformedAttrs","MappedAddress","MessageClass","MessageDecoder","MessageIntegrity","MessageIntegritySha256","NoFingerprint","Nonce","NotBinding","NotSuccessResponse","PasswordAlgorithm","PasswordAlgorithms","Realm","Request","Software","StunAttribute","StunDecodeError","SuccessResponse","TransactionId","Unknown","UnknownAttributes","UserHash","UserName","XorMappedAddress","__clone_box","__clone_box","__clone_box","as_alternate_server","as_bits","as_bytes","as_error_code","as_fingerprint","as_mapped_address","as_message_integrity","as_message_integrity_sha256","as_nonce","as_password_algorithm","as_password_algorithms","as_realm","as_ref","as_software","as_unknown","as_unknown_attributes","as_user_hash","as_user_name","as_xor_mapped_address","attribute_type","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","cmp","compare","decode","default","default","deref","encode_hex","encode_hex_upper","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","expect_alternate_server","expect_error_code","expect_fingerprint","expect_mapped_address","expect_message_integrity","expect_message_integrity_sha256","expect_nonce","expect_password_algorithm","expect_password_algorithms","expect_realm","expect_software","expect_unknown","expect_unknown_attributes","expect_user_hash","expect_user_name","expect_xor_mapped_address","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","get_context","hash","into","into","into","into","into","into","is","is_alternate_server","is_error_code","is_fingerprint","is_mapped_address","is_message_integrity","is_message_integrity_sha256","is_nonce","is_password_algorithm","is_password_algorithms","is_realm","is_software","is_unknown","is_unknown_attributes","is_user_hash","is_user_name","is_xor_mapped_address","methods","parse_binding_request","parse_response","partial_cmp","request","response","to_owned","to_owned","to_owned","to_string","to_string","to_string","try_as_bits","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","BINDING","RESERVED","SHARED_SECRET","CleanupDropGuard","DnsPkarrServer","borrow","borrow","borrow_mut","borrow_mut","create_dns_resolver","discovery","dns_resolver","fmt","fmt","from","from","into","into","nameserver","node_origin","on_node","pkarr_url","run","run_relay_server","run_with_origin","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","NodeTicket","__clone_box","borrow","borrow_mut","clone","clone_into","deserialize","eq","equivalent","equivalent","equivalent","fmt","fmt","from","from_bytes","from_ref","from_str","into","new","node_addr","serialize","to_bytes","to_owned","to_string","try_from","try_into","type_id","vzip","certificate","make_client_config","make_server_config","GenError","P2pCertificate","P2pExtension","ParseError","VerificationError","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","generate","into","into","into","into","into","parse","peer_id","source","source","source","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","verify_signature","vzip","vzip","vzip","vzip","vzip","AbortingJoinHandle","CancelOnDrop","MaybeFuture","SharedAbortingJoinHandle","__clone_box","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","chain","clone","clone_into","default","deref","drop","drop","drop","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from_ref","inner","into","into","into","into","into_future","into_future","into_future","join","join","join","new","poll","poll","poll","race","race","race","to_owned","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_poll","try_poll","try_poll","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","Chain","borrow","borrow_mut","chain","consume","fmt","from","get_mut","get_pin_mut","get_ref","into","into_inner","poll_fill_buf","poll_read","try_from","try_into","type_id","vzip"],"q":[[0,"iroh_net"],[86,"iroh_net::defaults"],[92,"iroh_net::defaults::prod"],[99,"iroh_net::defaults::staging"],[104,"iroh_net::dialer"],[127,"iroh_net::discovery"],[169,"iroh_net::discovery::dns"],[184,"iroh_net::discovery::local_swarm_discovery"],[197,"iroh_net::discovery::pkarr"],[258,"iroh_net::dns"],[283,"iroh_net::dns::node_info"],[361,"iroh_net::endpoint"],[905,"iroh_net::key"],[1049,"iroh_net::metrics"],[1110,"iroh_net::net"],[1157,"iroh_net::net::ip"],[1181,"iroh_net::net::netmon"],[1216,"iroh_net::netcheck"],[1322,"iroh_net::ping"],[1357,"iroh_net::portmapper"],[1462,"iroh_net::relay"],[1728,"iroh_net::relay::ReceivedMessage"],[1733,"iroh_net::relay::http"],[1758,"iroh_net::relay::server"],[1940,"iroh_net::relay::server::CertConfig"],[1943,"iroh_net::stun"],[2147,"iroh_net::stun::methods"],[2150,"iroh_net::test_utils"],[2180,"iroh_net::ticket"],[2208,"iroh_net::tls"],[2211,"iroh_net::tls::certificate"],[2277,"iroh_net::util"],[2347,"iroh_net::util::chain"],[2365,"dyn_clone::sealed"],[2366,"iroh_base::node_addr"],[2367,"core::cmp"],[2368,"core::result"],[2369,"serde::de"],[2370,"core::net::socket_addr"],[2371,"core::iter::traits::iterator"],[2372,"core::fmt"],[2373,"iroh_base::key"],[2374,"core::option"],[2375,"alloc::vec"],[2376,"serde::ser"],[2377,"core::any"],[2378,"core::iter::traits::collect"],[2379,"iroh_net::relay::map"],[2380,"futures_concurrency::stream::chain::tuple"],[2381,"futures_concurrency::stream::into_stream"],[2382,"futures_core::stream"],[2383,"futures_concurrency::stream::merge::tuple"],[2384,"iroh_quinn::connection"],[2385,"anyhow"],[2386,"core::pin"],[2387,"core::task::wake"],[2388,"core::task::poll"],[2389,"governor::state::direct"],[2390,"governor::state"],[2391,"governor::state::direct::streams"],[2392,"governor::clock"],[2393,"governor::clock::with_std"],[2394,"governor::middleware"],[2395,"governor::jitter"],[2396,"futures_concurrency::stream::zip::tuple"],[2397,"swarm_discovery"],[2398,"alloc::boxed"],[2399,"futures_lite::stream"],[2400,"alloc::string"],[2401,"url"],[2402,"pkarr::signed_packet"],[2403,"core::time"],[2404,"core::future::future"],[2405,"core::net::ip_addr"],[2406,"hickory_proto::rr::domain::name"],[2407,"core::clone"],[2408,"hickory_resolver::async_resolver"],[2409,"alloc::collections::btree::map"],[2410,"core::str::traits"],[2411,"core::hash"],[2412,"hickory_proto::rr::resource"],[2413,"alloc::collections::btree::set"],[2414,"iroh_quinn_proto::config"],[2415,"iroh_quinn::recv_stream"],[2416,"iroh_quinn::send_stream"],[2417,"iroh_quinn_proto::varint"],[2418,"iroh_quinn_proto::connection"],[2419,"iroh_net::magicsock::node_map::node_state"],[2420,"iroh_net::magicsock"],[2421,"iroh_quinn_proto::congestion"],[2422,"core::marker"],[2423,"iroh_net::magicsock::node_map"],[2424,"iroh_quinn_proto::crypto"],[2425,"iroh_quinn_proto::connection::streams::recv"],[2426,"iroh_quinn_proto"],[2427,"iroh_quinn_proto::frame"],[2428,"iroh_quinn_proto::transport_error"],[2429,"futures_concurrency::future::join::tuple"],[2430,"core::future::into_future"],[2431,"alloc::sync"],[2432,"std::io::error"],[2433,"tokio::io::read_buf"],[2434,"futures_concurrency::future::race::tuple"],[2435,"iroh_quinn_proto::connection::assembler"],[2436,"bytes::bytes"],[2437,"core::error"],[2438,"iroh_quinn_proto::connection::stats"],[2439,"iroh_quinn_proto::connection::streams::send"],[2440,"bitvec::slice"],[2441,"bitvec::order"],[2442,"ed25519"],[2443,"iroh_base::key::encryption"],[2444,"ed25519_dalek::signature"],[2445,"ed25519_dalek::verifying"],[2446,"iroh_base::base32"],[2447,"signature::error"],[2448,"ed25519_dalek::signing"],[2449,"rand_core"],[2450,"aead"],[2451,"zeroize"],[2452,"ssh_key::error"],[2453,"bitvec::ptr::span"],[2454,"ssh_key::signature"],[2455,"core::convert"],[2456,"alloc::vec::into_iter"],[2457,"iroh_net::net::udp"],[2458,"std::os::fd::owned"],[2459,"iroh_net::net::ip_family"],[2460,"tokio::net::udp"],[2461,"iroh_net::net::netmon::actor"],[2462,"futures_lite::future"],[2463,"core::ops::function"],[2464,"iroh_net::netcheck::metrics"],[2465,"tokio::sync::oneshot"],[2466,"surge_ping::error"],[2467,"iroh_net::portmapper::metrics"],[2468,"core::num::nonzero"],[2469,"tokio::sync::watch"],[2470,"iroh_net::relay::client::conn"],[2471,"tokio_tungstenite_wasm::error"],[2472,"http::error"],[2473,"tokio::runtime::task::error"],[2474,"hyper::error"],[2475,"http::header::value"],[2476,"iroh_net::relay::server::actor"],[2477,"http::request"],[2478,"hyper::body::incoming"],[2479,"http::header::map"],[2480,"iroh_net::relay::server::metrics"],[2481,"core::default"],[2482,"std::io"],[2483,"stun_rs::attributes"],[2484,"stun_rs::attributes::stun::alternate_server"],[2485,"stun_rs::error"],[2486,"stun_rs::types"],[2487,"stun_rs::attributes::stun::error_code"],[2488,"stun_rs::attributes::stun::fingerprint"],[2489,"stun_rs::attributes::stun::mapped_address"],[2490,"stun_rs::attributes::stun::message_integrity"],[2491,"stun_rs::attributes::stun::message_integrity_sha256"],[2492,"stun_rs::attributes::stun::nonce"],[2493,"stun_rs::attributes::stun::password_algorithm"],[2494,"stun_rs::attributes::stun::password_algorithms"],[2495,"stun_rs::attributes::stun::realm"],[2496,"stun_rs::attributes::stun::software"],[2497,"stun_rs::attributes::unknown"],[2498,"stun_rs::attributes::stun::unknown_attributes"],[2499,"stun_rs::attributes::stun::user_hash"],[2500,"stun_rs::attributes::stun::user_name"],[2501,"stun_rs::attributes::stun::xor_mapped_address"],[2502,"stun_rs::context"],[2503,"stun_rs::message"],[2504,"iroh_net::test_utils::dns_and_pkarr_servers"],[2505,"iroh_base::ticket::node"],[2506,"iroh_base::ticket"],[2507,"rustls::client::client_conn"],[2508,"rustls::server::server_conn"],[2509,"rcgen::error"],[2510,"webpki::error"],[2511,"rustls::key"],[2512,"rustls::enums"],[2513,"tokio::runtime::task::join"],[2514,"tokio::runtime::task::abort"],[2515,"tokio::io::async_read"],[2516,"tokio::io::async_buf_read"],[2517,"iroh_base"],[2518,"ed25519_dalek::constants"],[2519,"iroh_net::relay::codec"],[2520,"stun_rs"],[2521,"stun_rs::methods"],[2522,"iroh_net::test_utils::dns_server"]],"i":[0,0,0,0,3,5,3,5,3,5,3,5,3,5,3,5,3,5,3,5,5,0,3,5,0,3,5,0,0,0,3,5,3,3,3,5,5,5,3,5,3,3,3,3,3,5,5,3,3,5,3,3,5,5,0,0,0,0,3,3,3,5,0,0,0,3,5,3,5,0,0,0,0,3,5,3,5,3,5,3,5,0,3,5,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,0,0,0,54,52,54,54,52,54,52,54,54,52,0,52,54,52,54,54,52,52,54,52,54,52,54,0,0,54,53,52,53,52,54,54,52,54,52,54,52,54,52,0,0,0,58,58,58,58,58,58,58,58,58,58,58,58,0,60,60,60,60,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,61,62,63,61,62,63,61,62,63,61,62,63,61,62,63,61,61,62,63,61,62,63,61,62,63,61,62,63,61,62,61,62,63,61,63,62,63,61,62,63,61,62,63,61,62,63,61,62,63,61,61,62,63,61,0,0,0,71,70,71,70,71,70,71,70,71,70,71,70,71,70,71,70,71,70,71,70,0,0,80,0,0,0,80,0,16,80,81,80,16,81,80,16,81,16,16,80,80,16,80,16,80,80,80,16,16,16,80,80,16,81,80,16,16,16,81,81,16,81,81,16,81,16,80,81,0,80,80,16,81,81,81,16,81,16,80,16,16,81,16,16,81,80,0,80,80,16,81,80,16,81,80,16,81,80,16,81,0,0,101,0,102,0,0,101,0,0,98,99,0,0,0,104,0,0,0,0,0,98,106,101,100,100,104,0,104,102,102,106,0,0,104,98,101,0,99,106,106,101,0,101,106,98,99,0,101,0,98,99,36,98,99,100,35,101,102,103,21,104,105,106,35,36,36,35,35,103,105,21,94,95,96,96,36,114,98,115,99,94,100,96,35,101,91,95,102,103,21,104,111,113,105,106,36,114,98,115,99,94,100,96,35,101,91,95,102,103,21,104,111,113,105,106,35,35,111,113,36,98,99,100,35,101,102,103,21,104,105,106,36,98,99,100,35,101,102,103,21,104,105,106,36,35,36,36,100,105,106,100,105,106,96,94,36,21,35,35,35,35,35,94,94,94,36,94,100,96,0,102,103,21,104,35,5,96,35,96,35,114,115,94,98,99,100,101,102,103,21,104,105,106,98,98,98,99,99,99,100,100,100,101,101,101,102,102,102,103,103,103,21,21,21,104,104,104,105,105,105,106,106,106,36,115,36,114,98,98,115,99,99,94,100,100,96,35,101,101,91,95,102,102,103,21,104,104,111,113,105,106,106,36,114,98,98,98,115,99,99,94,100,100,100,100,100,96,35,101,101,101,91,95,102,103,21,104,111,113,105,106,36,98,99,100,35,101,102,103,21,104,105,106,100,100,100,0,36,95,21,100,105,106,35,114,115,21,3,94,94,96,36,114,98,115,99,94,100,96,35,101,91,95,102,103,21,104,111,113,105,106,95,91,95,100,111,113,114,91,95,94,96,96,103,21,103,103,21,21,103,21,36,95,0,94,94,36,94,94,111,113,94,94,35,35,35,3,21,36,36,94,100,105,106,36,94,91,95,115,111,113,114,115,115,115,96,96,91,95,111,113,111,113,114,114,114,36,114,114,94,96,5,21,36,95,115,36,96,35,36,94,102,103,21,104,35,36,36,115,36,98,99,101,36,36,114,115,94,94,36,98,99,100,35,101,102,103,21,104,105,106,98,99,100,101,102,104,106,96,36,114,98,115,99,94,100,100,100,100,96,35,101,91,95,102,103,21,104,111,113,105,106,36,114,98,115,99,94,100,96,35,101,91,95,102,103,21,104,111,113,105,106,95,105,36,114,98,115,99,94,100,96,35,101,91,95,102,103,21,104,111,113,105,106,36,114,98,115,99,94,100,96,35,101,91,95,102,103,21,104,111,113,105,106,35,36,115,115,115,115,115,111,113,153,157,157,0,0,0,0,0,0,0,153,15,64,15,15,15,153,156,15,157,64,153,156,15,157,64,153,15,64,153,15,64,15,15,153,15,64,15,15,153,15,153,153,153,15,15,15,153,153,153,153,156,15,15,157,157,64,64,15,153,153,153,153,156,15,15,157,157,157,64,64,64,153,15,64,153,153,15,64,153,153,15,64,64,64,15,153,156,15,157,64,156,15,64,153,153,156,153,15,64,64,64,157,153,153,64,64,153,15,64,153,15,157,64,153,15,153,153,153,153,156,15,15,15,157,64,64,64,153,156,15,157,64,153,156,15,157,64,15,153,156,15,157,64,0,0,0,0,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,0,0,176,176,176,174,174,174,174,174,174,174,174,176,174,176,174,176,176,174,174,176,176,176,176,176,174,176,176,174,174,176,176,174,0,176,0,176,176,174,176,174,176,174,176,176,174,0,179,179,179,179,179,179,179,179,179,179,179,179,179,179,0,179,179,179,179,179,179,179,179,0,0,181,181,182,181,182,181,181,182,181,181,181,181,181,182,181,182,181,181,181,182,182,182,182,181,181,182,181,182,181,182,182,181,182,0,0,0,0,185,186,187,188,185,186,187,188,185,186,187,188,186,185,186,187,188,185,186,187,188,185,186,187,186,187,186,186,186,187,187,187,185,186,186,187,188,185,186,187,188,185,186,187,188,188,188,186,186,186,186,186,185,186,187,188,186,186,186,186,185,187,186,186,185,188,186,186,186,188,186,186,186,185,185,185,185,185,185,185,185,186,187,188,186,185,186,187,188,185,186,187,188,185,186,187,188,186,185,186,187,188,192,192,0,0,191,192,191,192,191,191,191,191,192,192,191,192,192,192,191,191,192,191,191,191,192,191,192,192,191,192,191,192,191,192,191,0,0,0,0,0,195,194,196,190,194,195,194,196,190,197,195,194,196,190,197,195,194,196,190,195,194,196,190,190,195,196,190,196,196,196,194,194,194,194,195,195,194,194,196,190,197,195,194,196,190,197,195,194,196,190,195,194,196,190,197,195,195,195,195,195,194,190,194,195,195,190,195,190,195,194,196,190,194,195,194,196,190,197,195,194,196,190,197,195,194,196,190,197,190,194,195,195,195,195,195,194,196,190,197,190,206,206,206,206,206,112,112,206,206,112,206,206,205,206,0,0,0,0,206,206,206,205,0,206,206,206,205,205,206,206,205,206,206,0,205,0,0,0,0,206,0,206,205,112,206,206,206,206,17,204,205,202,112,27,26,201,17,204,205,206,202,203,201,112,27,26,17,204,205,206,202,203,201,112,27,26,201,201,17,204,205,202,112,27,26,17,204,205,202,112,27,26,204,202,202,17,26,17,26,202,27,27,17,17,26,27,17,204,112,27,26,17,17,17,204,204,204,112,112,112,27,27,27,26,26,26,17,17,204,205,206,206,202,203,201,112,27,27,26,26,17,17,204,205,206,206,206,206,206,206,202,203,201,112,27,26,27,17,204,205,202,112,27,26,17,27,27,17,0,201,17,204,205,206,202,203,201,112,27,26,204,202,27,201,201,27,204,202,201,27,204,202,17,26,202,201,201,202,203,112,204,202,204,204,202,17,26,0,201,201,206,26,26,17,204,205,202,112,27,26,17,206,27,26,17,204,205,206,202,203,201,112,27,26,17,204,205,206,202,203,201,112,27,26,17,204,205,206,202,203,201,112,27,26,26,27,17,204,205,206,202,203,201,112,27,26,282,283,284,282,284,0,0,0,211,211,211,211,211,211,211,211,211,211,211,211,211,211,211,211,211,211,211,211,211,211,0,0,226,0,226,0,0,215,0,0,0,0,0,215,0,214,219,213,214,222,222,219,224,213,214,219,215,220,223,224,225,222,226,227,213,214,219,215,220,223,224,225,222,226,227,219,219,214,214,225,213,214,219,214,219,213,219,220,222,219,219,219,219,219,213,214,219,215,220,223,224,225,222,226,227,213,214,219,215,220,223,224,225,222,226,227,214,219,219,227,223,227,225,213,214,219,215,220,223,224,225,222,226,227,213,219,223,213,220,219,213,219,219,219,215,215,215,215,215,213,220,213,223,219,219,219,219,227,227,220,227,227,223,214,219,213,214,219,215,220,223,224,225,222,226,227,213,214,219,215,220,223,224,225,222,226,227,213,214,219,215,220,223,224,225,222,226,227,219,219,213,214,219,215,220,223,224,225,222,226,227,219,285,286,285,231,0,231,252,231,252,255,255,255,231,0,0,231,231,255,231,255,255,231,231,231,252,231,0,0,252,0,231,231,231,231,231,251,252,234,231,234,234,231,231,231,231,231,231,231,231,231,234,231,231,231,231,231,231,231,251,252,234,231,254,255,251,252,234,231,254,255,251,252,234,251,252,234,234,234,251,251,234,234,234,234,252,234,252,252,252,234,234,234,231,231,231,231,231,231,231,231,231,231,231,231,231,231,231,231,251,252,234,234,231,254,254,255,255,251,252,234,234,234,231,231,231,231,231,231,231,231,231,231,231,231,231,231,231,231,231,254,255,251,252,234,251,234,251,252,234,231,254,255,0,231,231,231,231,231,231,231,231,231,231,231,231,231,231,231,231,0,0,0,234,0,0,251,252,234,234,254,255,234,251,252,252,234,231,254,255,251,252,234,231,254,255,251,252,234,231,254,255,251,252,234,231,254,255,0,0,0,0,0,258,257,258,257,0,257,257,258,257,258,257,258,257,257,257,257,257,257,0,257,258,257,258,257,258,257,258,257,0,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,0,0,0,0,0,0,0,0,264,265,262,266,267,264,265,262,266,267,264,265,262,262,266,266,267,267,264,265,262,262,266,266,267,267,0,264,265,262,266,267,0,264,262,266,267,262,266,267,264,265,262,266,267,264,265,262,266,267,264,265,262,266,267,264,264,265,262,266,267,0,0,0,0,273,230,273,275,274,230,273,275,274,0,273,273,274,230,230,273,275,230,273,275,274,230,230,273,273,275,274,273,274,230,273,275,274,230,273,274,230,273,274,275,230,273,274,230,273,274,273,230,273,275,274,230,273,275,274,230,273,274,230,273,275,274,230,273,275,274,0,279,279,0,279,279,279,279,279,279,279,279,279,279,279,279,279,279],"f":"````{{cb}d{}}0{{fh}d}{{jh}d}{ce{}{}}000{ff}{jj}{{ce}d{}{}}0{{ff}l}{{jj}l}{{ce}l{}{}}0{{}j}`{c{{n{f}}}A`}{c{{n{j}}}A`}`{f{{`{{Af{}{{Ab{Ad}}}}}}}}````{{ff}Ah}{{jj}Ah}{{ce}Ah{}{}}00000{{fAj}{{n{dAl}}}}{{jAj}{{n{dAl}}}}{Anf}{B`f}{cc{}}{{{Bh{An{Bd{Bb}}{Bf{Ad}}}}}f}{Bjf}{B`j}3{{An{Bd{Bb}}{Bl{Ad}}}f}44`{ce{}{}}0{jAh}````8`{{ff}{{Bd{l}}}}{{jj}{{Bd{l}}}}```{f{{Bd{Bb}}}}`{{fc}nBn}{{jc}nBn}````66{c{{n{e}}}{}{}}000{cC`{}}0`88{{fc}f{{Cb{}{{Ab{Ad}}}}}}{{fBb}f}`````````{{}Cd}00{{}Cf}``110`{{ChCj}d}=={{cg}{{Cl{i}}}{}{}{{Cn{}{{Ab{e}}}}}{{D`{}{{Ab{e}}}}}}{{ChAj}Db}{cc{}}{ce{}{}}0{{ChCj}Ah}{{cg}{{Dd{ei}}}{}{}{{Cn{}{{Ab{e}}}}}{{D`{}{{Ab{e}}}}}}{DfCh}{Ch{{Bh{Cj{Dj{Dh}}}}}}{ChDl}{{{Dn{Ch}}E`}{{Eb{{Bd{c}}}}}{}}{{ChCj{Bf{Ed}}}d}{{c{Eh{Efegi}}}{{Ej{kegi}}}{}El{EnF`}Fb{}}{{c{Eh{Efegi}}Fd}{{Ej{kegi}}}{}El{EnF`}Fb{}}{c{{n{e}}}{}{}}0{cC`{}};{{cg}{{Ff{i}}}{}{}{{Cn{}{{Ab{e}}}}}{{D`{}{{Ab{e}}}}}}```{{cb}d{}}{{Fhc}dFj}`>>>>{FlFl}{{ce}d{}{}}{{}Fh}`0{{FlAj}Db}{{FhAj}Db}{FnFl}{cc{}}0{cFh{{Cb{}{{Ab{{G`{Fj}}}}}}}}1{{{Bl{{G`{Fj}}}}}Fh}{ce{}{}}0````{{Fjj}d}{{Fhj}d}{{FjDfCj}{{Bd{{Gb{{Dj{Fl}}}}}}}}{{FhDfCj}{{Bd{{Gb{{Dj{Fl}}}}}}}}4{c{{n{e}}}{}{}}000{cC`{}}066```66{{GdAj}Db}:7{{}Gd}{GfGd}{{GdDfCj}{{Bd{{Gb{{Dj{Fl}}}}}}}}554:`::{{GhAj}Db}>;{Cj{{Dj{Gh}}}}{{Ghj}d}{{GhDfCj}{{Bd{{Gb{{Dj{Fl}}}}}}}}998>```````{{cb}d{}}00??????{GjGj}{GlGl}{GnGn}{{ce}d{}{}}00{Gjd}{{GjAj}Db}{{GlAj}Db}{{GnAj}Db}{cc{}}00000{ce{}{}}00{H`Gj}{{}Gl}{{H`Hb}Gj}{HbGl}{HbGn}{{Gjj}d}{{GnHd}{{Dj{d}}}}{{GlDfCj}{{Bd{{Hf{{Dj{Fl}}}}}}}}{{GnCj}{{Dj{Hd}}}}999{c{{n{e}}}{}{}}00000{cC`{}}005;;;{{H`HbHhHj}Gj}``{{}Hl}{{HnCjI`}{{`{{Id{}{{Ib{{Dj{f}}}}}}}}}}{{HlCjI`}{{Dj{f}}}}{{HnCjI`{Bf{If}}}{{`{{Id{}{{Ib{{Dj{f}}}}}}}}}}{{HlCjI`{Bf{If}}}{{Dj{f}}}}{{HnI`}{{`{{Id{}{{Ib{{Dj{f}}}}}}}}}}{{HlI`}{{Dj{f}}}}{{HnI`{Bf{If}}}{{`{{Id{}{{Ib{{Dj{f}}}}}}}}}}{{HlI`{Bf{If}}}{{Dj{f}}}}{{HncHj}{{`{{Id{}{{Ib{{Dj{{`{{Af{}{{Ab{Ih}}}}}}}}}}}}}}}Ij}{{HlcHj}{{Dj{{`{{Af{}{{Ab{Ih}}}}}}}}}Ij}{{HncHj}{{`{{Id{}{{Ib{{Dj{{`{{Af{}{{Ab{Ih}}}}}}}}}}}}}}}{IjIl}}{{HlcHj}{{Dj{{`{{Af{}{{Ab{Ih}}}}}}}}}{IjIl}}{{HncHj{Bf{If}}}{{`{{Id{}{{Ib{{Dj{{`{{Af{}{{Ab{Ih}}}}}}}}}}}}}}}{IjIl}}{{HlcHj{Bf{If}}}{{Dj{{`{{Af{}{{Ab{Ih}}}}}}}}}{IjIl}}105410`{{}In}``````{{cb}d{}}{J`I`}{{{Jb{c}}}{{Jd{c{Bl{Gf}}}}}{JfJhJjJl}}{ce{}{}}00000{B`B`}{{ce}d{}{}}{{J`J`}l}{{ce}l{}{}}`{{J`J`}Ah}{{B`B`}Ah}{{ce}Ah{}{}}00000{{J`Aj}Db}{{J`Aj}{{n{dAl}}}}{{B`Aj}Db}{{{Jb{c}}Aj}DbJn}{cc{}}0{{{Jb{J`}}}B`}0{B`{{Jb{J`}}}}2{{{Bf{K`}}}{{Dj{B`}}}}{{{Bf{K`}}}{{Dj{{Jb{c}}}}}{JfJhJjJl}}{{Cje}{{Jb{c}}}{JfJhJjJl}{{Af{}{{Ab{{Bh{cGf}}}}}}}}{Hd{{Dj{B`}}}}{Hd{{Dj{{Jb{c}}}}}{JfJhJjJl}}7{I`{{n{J`c}}}{}}{{Cjc}{{Dj{{Jb{e}}}}}{{Af{}{{Ab{Gf}}}}}{JfJhJjJl}}{I`{{Dj{Cj}}}}{{J`c}dKb}{ce{}{}}00{{InCjI`}{{Dj{{Jb{c}}}}}{JfJhJjJl}}{{InI`}{{Dj{{Jb{c}}}}}{JfJhJjJl}}{{Cj{Bd{Hb}}{Kd{Ad}}}B`}{{{Jb{c}}}Cj{JfJhJjJl}}`{{J`J`}{{Bd{l}}}}`{{B`I`Hh}{{Dj{{`{{Af{}{{Ab{K`}}}}}}}}}}{{{Jb{c}}I`Hh}{{Dj{{`{{Af{}{{Ab{K`}}}}}}}}}{JfJhJjJl}}7{{B`H`Hh}{{Dj{Hd}}}}{{{Jb{c}}H`Hh}{{Dj{Hd}}}{JfJhJjJl}}{cGf{}}{CjGf}?{c{{n{e}}}{}{}}00000{cC`{}}00===````````````````````````````````````````````````````{{cb}d{}}00000000000{DfKf}{DhKh}{DhKj}{{Dff}{{Dj{d}}}}{{DffI`}{{Dj{d}}}}```{{KlAh}Kl}{Kn{{Dj{{Bl{Ed}}}}}}{{L`{Bl{{Bl{Ed}}}}}L`}{{L`Lb}{{Dj{Df}}}}{ce{}{}}000000000000000000000000000000000000000{Df{{Bh{Ad{Bd{Ad}}}}}}{{}L`}{{cg}{{Cl{i}}}{}{}{{Cn{}{{Ab{e}}}}}{{D`{}{{Ab{e}}}}}}0{DhDh}{LdLd}{LfLf}{LhLh}{DfDf}{LjLj}{LlLl}{LnLn}{BjBj}{M`M`}{MbMb}{MdMd}{{ce}d{}{}}00000000000{{DhLh{Bf{Ed}}}d}{{DfLh{Bf{Ed}}}{{Dj{d}}}}{Dh{{Bd{Lj}}}}{DhLj}{{LhLh}l}{{MbMb}l}{{MdMd}l}{{ce}l{}{}}00{{L`Hh}L`}{{Klc}Kl{MfMhMj}}{Dh{{G`{Ml}}}}`{{DfCj}{{Dj{Mn}}}}{{Dff{Bf{Ed}}}{{Dj{Dh}}}}{{DfCj{Bf{Ed}}}{{Dj{Dh}}}}{{DfCj}{{Bd{Bj}}}}{Df{{Bl{Bj}}}}{{KlDl}Kl}{{Kl{Bd{Dl}}}Kl}1{DhDl}{{}Kl}{{}Lh}{{}L`}{{}N`}{c{{n{Ll}}}A`}{c{{n{Ln}}}A`}{c{{n{Bj}}}A`}{c{{n{M`}}}A`}{DfNb}`{{L`{G`{Fj}}}L`}{Df{{Bd{Fj}}}}{{L`Hl}L`}{DfHl}{Ndd}{Nfd}{{KlAh}Kl}{{LdLd}Ah}{{LfLf}Ah}{{LhLh}Ah}{{LjLj}Ah}{{LlLl}Ah}{{LnLn}Ah}{{BjBj}Ah}{{M`M`}Ah}{{MbMb}Ah}{{MdMd}Ah}{{ce}Ah{}{}}00000000000000000000000000000{{Dh{Bf{Ed}}{Bf{Ed}}{Bf{Ed}}}{{n{dNh}}}}{Nf{{n{dLf}}}}{{DhAj}{{n{dAl}}}}{{NdAj}{{n{dAl}}}}{{LdAj}{{n{dAl}}}}0{{NfAj}{{n{dAl}}}}{{LfAj}{{n{dAl}}}}0{{KlAj}{{n{dAl}}}}{{LhAj}{{n{dAl}}}}0{{L`Aj}Db}{{DfAj}Db}{{LjAj}{{n{dAl}}}}0{{KfAj}Db}{{KnAj}Db}{{LlAj}Db}0{{LnAj}Db}{{BjAj}Db}{{M`Aj}Db}0{{MnAj}Db}{{NbAj}Db}{{MbAj}Db}{{MdAj}Db}0{cc{}}00{LjLd}{NjLd}2{LjLf}33{NlLh}{LbLh}5{HhLh}{EdLh}77{NnLj}{O`Lj}999999999999999999999993{If{{n{LhOb}}}}{IfLh}{Dh{{Dj{An}}}}{Dh{{Bd{{G`{Od}}}}}}{Kn{{Dj{{G`{Od}}Lj}}}}{BjAh}{{Lhc}dKb}{{Mbc}dKb}{{Mdc}dKb}{Df{{Bd{Bb}}}}{NdNl}{NfNl}``{{KlLb}Kl}{{KlHj}Kl}{{L`Ah}L`}{ce{}{}}0000000000000000000{Kn{{Dj{{Bh{DhOf}}Kn}}}}{c{}{}}0{LhIf}33{NdAh}{{ce}{{Oh{g}}}{}OjId}0{{Kl{Bd{Hj}}}Kl}7{{L`{Bl{f}}}L`}`{Bj{{Bd{Hj}}}}``0```{Dh{{Bd{Ih}}}}{Kn{{Bd{Ih}}}}{{H`{Bl{{Bl{Ed}}}}{Ol{Kl}}Ah}{{Dj{On}}}}{{KlLh}Kl}0{Dh{{Bd{Dl}}}}{{Kl{Bd{A@`}}}Kl}{{KlHh}Kl}{{cg}{{Dd{ei}}}{}{}{{Cn{}{{Ab{e}}}}}{{D`{}{{Ab{e}}}}}}0{{KlLb}Kl}{{Kl{Bd{A@b}}}Kl}{Dfd}{Df{{Dj{f}}}}{DfCj}``{DhA@d}{DhA@f}8{{LhLh}{{Bd{l}}}}{{MbMb}{{Bd{l}}}}{{MdMd}{{Bd{l}}}}{Dh{{Bd{{G`{Od}}}}}}<{{{Dn{Kf}}E`}{{Eb{c}}}{}}{{{Dn{Kn}}E`}{{Eb{c}}}{}}{{{Dn{Nf}}E`}{{Eb{{n{dA@h}}}}}}{{{Dn{Mn}}E`}{{Eb{{Bd{c}}}}}{}}{{{Dn{Nb}}E`}{{Eb{{Bd{c}}}}}{}}{{{Dn{Nd}}E`A@j}{{Eb{{n{dA@h}}}}}}3{{{Dn{Nf}}E`{Bf{Ed}}}{{Eb{{n{DlA@h}}}}}}{Nf{{n{A@lA@n}}}}{L`L`}{{L`Hb}L`}{{cg}{{AA`{ei}}}{}{}{{Oj{}{{Ib{e}}}}}{{Id{}{{Ib{e}}}}}}0{{c{Eh{Efegi}}}{{Ej{kegi}}}{}El{EnF`}Fb{}}0{{c{Eh{Efegi}}Fd}{{Ej{kegi}}}{}El{EnF`}Fb{}}0{{Nd{Bf{Ed}}}{{n{{Bd{Dl}}Ld}}}}{{NdDlAh}{{n{{Bd{AAb}}Ld}}}}{{Nd{Bf{AAd}}}{{n{{Bd{Dl}}Ld}}}}{DhAAf}{{Nd{Bf{Ed}}}{{n{dAAh}}}}{{NdDl}{{n{{Bl{Ed}}AAj}}}}{{KlLh}Kl}{{L`N`}L`}``{DhAd}{KnAd}{{NfLh}{{n{dA@n}}}}{DhHj}{{L`H`}L`}{DfH`}{{DhAAd}{{n{dAAl}}}}{{KlIf}Kl}{{Llc}nBn}{{Lnc}nBn}{{Bjc}nBn}{{M`c}nBn}{{Df{Bl{{Bl{Ed}}}}}{{Dj{d}}}}{{DhLh}d}0{{NfA@l}{{n{dA@n}}}}1{Ld{{Bd{AAn}}}}{Lf{{Bd{AAn}}}}{Lj{{Bd{AAn}}}}{DhDl}{DhAB`}{{NdLh}{{n{dA@n}}}}{Nf{{n{LhABb}}}}{{KlLh}Kl}{{KlABd}Kl}{ce{}{}}00000000000{cGf{}}000000{{L`Kl}L`}{c{{n{e}}}{}{}}00000{If{{n{LhOb}}}}1{ABf{{n{LhOb}}}}{Dl{{n{LhOb}}}}333333333333333333333333333333333{{{Dn{c}}E`}Eb{}}`{cC`{}}000000000000000000088888888888888888888{Df{{`{{D`{}{{Ab{Bb}}}}}}}}{DhABh}{{Nf{Bf{Ed}}}{{n{DlLf}}}}{{Nf{Bf{Ed}}}{{n{dLf}}}}{{Nf{Bf{AAd}}}{{n{dLf}}}}{{NfAAd}{{n{dLf}}}}{{Nf{Bf{AAd}}}{{n{ABjLf}}}}{{cg}{{Ff{i}}}{}{}{{Cn{}{{Ab{e}}}}}{{D`{}{{Ab{e}}}}}}0``````````{{cb}d{}}00{c{{ABl{eg}}}{}{}ABn}{An{{AC`{Ed}}}}{An{{Bf{Ed}}}}{ce{}{}}000000000{ACbACb}{AnAn}{H`H`}{{ce}d{}{}}00{{AnAn}l}{{ce}l{}{}}{c{{n{ACb}}}A`}{c{{n{An}}}A`}{c{{n{H`}}}A`}{ce{}{{ACf{ACd}}}}0{{ACbACb}Ah}{{AnAn}Ah}{{ce}Ah{}{}}00000{{ACbAj}{{n{dAl}}}}000{{AChAj}{{n{dAl}}}}{{AnAj}{{n{dAl}}}}0{{ACjAj}{{n{dAl}}}}0{{H`Aj}{{n{dAl}}}}0{AnGf}{cc{}}{{{AC`{Ed}}}ACb}0{AClACb}22{ACnAn}3{AD`ACj}{ADbACj}5{ADdH`}{{{AC`{Ed}}}H`}6{{{AC`{Ed}}}{{n{AnADb}}}}1{{{AC`{Ed}}{AC`{Ed}}}ACb}999{{{Bf{Ed}}}{{n{ACbADb}}}}{I`{{n{ACbADb}}}}{I`{{n{An}}}}{I`{{n{H`}}}}{{}H`}{cH`{ADfADh}}{{Anc}dKb}{ce{}{}}0000{{AChADj}{{n{dADl}}}}{{AnAn}{{Bd{l}}}}{H`An}{ACb{{AC`{Ed}}}}0{{AChADj}d}{{ACbc}nBn}{{Anc}nBn}{{H`c}nBn}{{H`An}ACh}{{H`{Bf{Ed}}}ACb}{ACj{{Bd{AAn}}}}77{H`{{AC`{Ed}}}}{H`{{n{{ADn{Gf}}AE`}}}}==={cGf{}}000{ACb{{Bl{Ed}}}}{c{{n{{ABl{eg}}{AEb{e}}}}}{}{}ABn}{c{{n{e}}}{}{}}{AEd{{n{ACbAE`}}}}{{{Bf{Ed}}}{{n{ACbADb}}}}122{{{Bf{Ed}}}{{n{An}}}}{{{AC`{Ed}}}{{n{An}}}}44{{{Bf{Ed}}}{{n{H`}}}}{c{{n{H`ADl}}}{{AEf{{Bf{Ed}}}}}}66666{cC`{}}0000{{An{Bf{Ed}}ACb}{{n{dADb}}}}{ce{}{}}0000````{{cb}d{}}````````11{AEhAEh}{{ce}d{}{}}{{}AEh}{{AEhAj}Db}{cc{}}06{AEh{{AEj{{Bh{I`Od}}}}}}{{}I`}```````````````````````````````8{c{{n{e}}}{}{}}0;`9````8{AElAEn}{{AF`Lb}{{Dj{AEl}}}}{c{{Dj{AEl}}}{{AFb{Ad}}}}1{Lb{{Dj{AEl}}}}000===={AF`AF`};{AElc{}}{AEld}{{AF`AF`}Ah}{{ce}Ah{}{}}00{{AF`Aj}Db}{{AElAj}Db}>{IhAF`}{AFdAEl}{cc{}}0{ce{}{}}0`{AF`Ih}`1{c{{n{e}}}{}{}}000{cC`{}}0233`{{cb}d{}}44{AFfAFf}{{ce}d{}{}}{{}AFf}{{AFfAFf}Ah}>>>{{AFfAj}Db}::9{AFhAh}`3`:887:``6::::{AFjAFj}5{AFld}{{AFjAFj}Ah}{{ce}Ah{}{}}00{{AFjAj}Db}{{AFlAj}Db}{cc{}}00{{AFjc}dKb}{ce{}{}}0{AFl{{Dj{d}}}}{{}{{Dj{AFl}}}}{{AFlc}{{Dj{AFj}}}{{AG`{Ah}{{Ib{{AFn{d}}}}}}MjMh}}3{c{{n{e}}}{}{}}000{cC`{}}0{{AFlAFj}{{Dj{d}}}}66````{{cb}d{}}00077777777`{AGbAGb}{AGdAGd}{AGfAGf}{AGhAGh}{{ce}d{}{}}000{{}AGb}{{}AGd}{{}AGf}{{AGdAGd}Ah}{{AGfAGf}Ah}{{ce}Ah{}{}}00000{{AGbAj}Db}{{AGdAj}Db}0{{AGfAj}Db}{{AGhAj}Db}{cc{}}0000000{{AGhCf{Bd{{Ol{AEl}}}}{Bd{{Ol{AEl}}}}}{{Dj{{Ol{AGd}}}}}}{{AGhCf{Bd{{Ol{AEl}}}}{Bd{{Ol{AEl}}}}}{{Dj{{AGj{{Dj{{Ol{AGd}}}}}}}}}}`````{ce{}{}}000````{AGb{{AEj{{Bh{I`Od}}}}}}{AGf{{`{{Af{}{{Ab{{Bh{BbHj}}}}}}}}}}``{{}I`}{{{Bd{AGl}}Hl}{{Dj{AGh}}}}```{{AGhAAdAd}d}``````````5555{cGf{}}{c{{n{e}}}{}{}}0000000{cC`{}}000`8888````{{cb}d{}}9999{AGnAGn}{{ce}d{}{}}{{}AGn}{{AH`Aj}Db}0{{AGnAj}Db}{ADlAH`}{cc{}}{AHbAH`}11{ce{}{}}06{{AGnIh{Bf{Ed}}}{{Dj{HjAH`}}}}{AH`{{Bd{AAn}}}}2>====<<22`````;;;;{AHdAh}3333333333{AHfAHf}{AHdAHd}{AHhAHh}{AGlAGl}>>>>{AGld}{{}AHf}{{}AHh}{{}AGl}```{{AHdAHd}Ah}{{ce}Ah{}{}}00`{{AHfAj}Db}{{AHdAj}Db}0{{AHhAj}Db}{{AGlAj}Db}{{AHjAj}Db}{cc{}}00000000{ce{}{}}0000{AHf{{AEj{{Bh{I`Od}}}}}}```{{}I`}`{AHhAGl}```{AGl{{AGj{{Dj{AHdGf}}}}}}`{AGld}5555{cGf{}}{c{{n{e}}}{}{}}000000000{cC`{}}0000{{AGlAHl}d}`````99999{AGl{{AI`{{Bd{AHn}}}}}}````````````````````````````````````````````````{{cb}d{}}000000{{AIbc}AIb{{AG`{}{{Ib{{AFn{Ah}}}}}}MhMj}}<<<<<<<<<<<<<<<<<<<<{{AIbH`Hl}{{Bh{AIdAIf}}}}{{AIbAh}AIb}{BbBb}{AIhAIh}{AIjAIj}{AIdAId}{N`N`}{CfCf}{CdCd}{{ce}d{}{}}000000{AIhd}{AId{{n{dAIl}}}}0{{BbBb}l}{{CdCd}l}{{ce}l{}{}}0{AId{{n{{Bh{AIhDl}}AIl}}}}{{CfBb}Ah}{{BbLb}Cf}{Bb}{c{{n{Bb}}}A`}{c{{n{Cd}}}A`}{{}Cf}{{BbBb}Ah}{{AIhAIh}Ah}{{N`N`}Ah}{{CfCf}Ah}{{CdCd}Ah}{{ce}Ah{}{}}00000000000000{{BbAj}{{n{dAl}}}}0{{AIhAj}Db}{{AIjAj}Db}{{AIlAj}Db}0{{AIdAj}Db}{{AIfAj}Db}{{AIbAj}Db}{{N`Aj}Db}{{CfAj}Db}0{{CdAj}Db}0{cc{}}{HbBb}11{A@hAIl}2{AInAIl}{AJ`AIl}{AJbAIl}{AJdAIl}666666{c{{Dj{Cf}}}{{Cb{}{{Ab{Cd}}}}}}7777777{I`{{n{Bb}}}}{BbCf}{{CfBb}{{Bd{{Ol{Cd}}}}}}{{Bbc}dKb}`{{AIbAh}AIb}{ce{}{}}000000000{AIhAh}{AId{{n{AhAIl}}}}{CfAh}44{CfDl}{AIh{{Bd{Ad}}}}{AId{{Bd{Ad}}}}{cAIb{{AFb{Bb}}}}{Cf{{`{{Af{}{{Ab{{Ol{Cd}}}}}}}}}}{{AIhAh}{{Dj{d}}}}{{AIdAh}d}{{BbBb}{{Bd{l}}}}{{CdCd}{{Bd{l}}}}{AId{{n{HjAIl}}}}{{AIbAJf}AIb}{{AIbHb}AIb}{AIdAn}{AIf{{Bd{{n{{Bh{AIjDl}}AIl}}}}}}{N`Cf}{{AIhAnAAd}{{Dj{d}}}}{{AIdAnAAd}{{n{dAIl}}}}{{AIh{AC`{Ed}}}{{Dj{d}}}}0{{AId{AC`{Ed}}}{{n{dAIl}}}}{{Bbc}nBn}{{Cdc}nBn}`{{AIbAn}AIb}{{AIbc}AIb{{AFb{Bb}}}}{AIl{{Bd{AAn}}}}``{ce{}{}}000000{cGf{}}000{c{{n{e}}}{}{}}0000000000000000000{cC`{}}000000000`{Cf{{`{{Af{}{{Ab{Bb}}}}}}}}4444444444``````````{{cb}d{}}55{AJfAJf}{{ce}d{}{}}{{AJfAJf}Ah}{{ce}Ah{}{}}00{{AJfAj}Db}{cc{}}0;{AJh{{Bd{AJf}}}}<::9{AJfI`}=```````````````88{AJjd}{{AJlAJfAJn}{{Dj{d}}}}````??????????????????????``{{c{AK`{e}}}{}{}{}}{{AJl{AK`{AKb}}}c{}}`{{AJjAKd}AJl}{AJlAJl}{AKfAKf}==6{{}AKf}{{}{{AKh{ce}}}{AKjJn}{AKjJn}}{{}AKl}`````{{AJjAj}Db}{{AJlAj}Db}{{AKfAj}Db}{{AJnAj}Db}{{{AKh{ce}}Aj}Db{JnJn}{JnJn}}{{{AKn{ce}}Aj}Db{JnJn}{JnJn}}{{AL`Aj}Db}{{{ALb{ce}}Aj}Db{JnJn}{JnJn}}{{AKlAj}Db}{{{ALd{ce}}Aj}DbJnJn}{{ALfAj}Db}{cc{}}000000000000`{ALf{{Bd{Ad}}}}`0`{ce{}{}}0000000000{AJjAh}{AKf{{AEj{{Bh{I`Od}}}}}}`{AJj{{Bf{Ed}}}}`{{}I`}{H`AJj}```{{{Dn{AJn}}E`}{{Eb{{n{dA@h}}}}}}{{{Dn{AJn}}E`A@j}{{Eb{{ALh{d}}}}}}1{{{Dn{AJn}}E`{Bf{Ed}}}{{Eb{{n{DlA@h}}}}}}{{{Dn{AJn}}E`{Bf{ALj}}}{{Eb{{n{DlA@h}}}}}}{AJjAn}`{AJjH`}`````{ALf{{Dj{d}}}}{{{AKh{ce}}}{{Dj{ALf}}}JnJn}`>{ALf{{ALl{{Dj{d}}}}}}`>>{c{{n{e}}}{}{}}000000000000000000000{cC`{}}0000000000``{ce{}{}}0000000000````````````````````````````````````{{cb}d{}}00{ALn{{n{AM`AMb}}}}{c{{ABl{eg}}}{}{}ABn}{AMd{{AC`{Ed}}}}{ALn{{n{AMfAMb}}}}{ALn{{n{AMhAMb}}}}{ALn{{n{AMjAMb}}}}{ALn{{n{AMlAMb}}}}{ALn{{n{AMnAMb}}}}{ALn{{n{AN`AMb}}}}{ALn{{n{ANbAMb}}}}{ALn{{n{ANdAMb}}}}{ALn{{n{ANfAMb}}}}{AMd{{Bf{Ed}}}}{ALn{{n{ANhAMb}}}}{ALn{{n{ANjAMb}}}}{ALn{{n{ANlAMb}}}}{ALn{{n{ANnAMb}}}}{ALn{{n{AO`AMb}}}}{ALn{{n{AObAMb}}}}{ALnAOd}{ce{}{}}00000000000{AOfAOf}{AOhAOh}{AMdAMd}{{ce}d{}{}}00{{AMdAMd}l}{{ce}l{}{}}{{AOf{Bf{Ed}}}{{n{{Bh{AOjDl}}AOl}}}}{{}AOf}{{}AMd}{AMd{{Bf{Ed}}}}{ce{}{{ACf{ACd}}}}0{{AOhAOh}Ah}{{AMdAMd}Ah}{{ce}Ah{}{}}00000{ALnAM`}{ALnAMf}{ALnAMh}{ALnAMj}{ALnAMl}{ALnAMn}{ALnAN`}{ALnANb}{ALnANd}{ALnANf}{ALnANh}{ALnANj}{ALnANl}{ALnANn}{ALnAO`}{ALnAOb}{{AOfAj}{{n{dAl}}}}{{AOhAj}{{n{dAl}}}}{{AMdAj}{{n{dAl}}}}0{{ALnAj}{{n{dAl}}}}{{AOlAj}{{n{dAl}}}}0{{AOnAj}Db}0{cc{}}0{{{AC`{Ed}}}AMd}01{ANjALn}{ANlALn}{ANfALn}{AMhALn}{ANhALn}{AO`ALn}{AMfALn}{ANnALn}{AM`ALn}{AMlALn}{ANbALn}{AMjALn}{AMnALn}>{ANdALn}{AObALn}{AN`ALn}{cc{}}0000{AOf{{Bd{B@`}}}}{{AMdc}dKb}{ce{}{}}00000{{{Bf{Ed}}}Ah}{ALnAh}000000000000000`{{{Bf{Ed}}}{{n{AMdAOn}}}}{{{Bf{Ed}}}{{n{{Bh{AMdAd}}AOn}}}}{{AMdAMd}{{Bd{l}}}}{AMd{{Bl{Ed}}}}{{AMdAd}{{Bl{Ed}}}}777{cGf{}}00{c{{n{{ABl{eg}}{AEb{e}}}}}{}{}ABn}{c{{n{e}}}{}{}}0{Ed{{n{AOh}}}}1111111111{cC`{}}00000<<<<<<`````<<<<{Ad{{Dj{In}}}}{{B@bH`}{{G`{Fh}}}}{B@bHl}{{B@dAj}Db}{{B@bAj}Db}{cc{}}0{ce{}{}}0``{{B@bCjHj}{{Dj{d}}}}`{{}{{Dj{B@b}}}}{{}{{Dj{{Bh{CfBbALf}}}}}}{Gf{{Dj{B@b}}}}====;;44`{{cb}d{}}55{B@fB@f}{{ce}d{}{}}{c{{n{B@f}}}A`}{{B@fB@f}Ah}{{ce}Ah{}{}}00{{B@fAj}{{n{dAl}}}}0<{{{Bf{Ed}}}{{n{B@fB@h}}}}={I`{{n{B@f}}}}={f{{n{B@fADl}}}}{B@ff}{{B@fc}nBn}{B@f{{Bl{Ed}}}}{ce{}{}}{cGf{}}{c{{n{e}}}{}{}}0{cC`{}}3`{{H`{Bd{An}}{Bl{{Bl{Ed}}}}Ah}{{n{B@jB@l}}}}{{H`{Bl{{Bl{Ed}}}}Ah}{{n{B@nB@l}}}}`````5555555555{{BA`Aj}Db}{{BAbAj}Db}{{B@lAj}Db}0{{BAdAj}Db}0{{BAfAj}Db}0{cc{}}0{BAhB@l}11{BAjBAd}2{BAjBAf}{H`{{n{{Bh{BAlBAn}}B@l}}}}?????{BAl{{n{BA`BAd}}}}{BA`An}{B@l{{Bd{AAn}}}}{BAd{{Bd{AAn}}}}{BAf{{Bd{AAn}}}}{cGf{}}00{c{{n{e}}}{}{}}000000000{cC`{}}0000{{BA`BB`{Bf{Ed}}{Bf{Ed}}}{{n{dBAf}}}}{ce{}{}}0000````{{cb}d{}}11111111`{{{BBb{c}}}{{BBb{c}}}{IlIlMh}}{{ce}d{}{}}{{}{{BBd{c}}}{}}{{{ALl{c}}}e{}{}}{{{ALl{c}}}d{}}{{{BBb{c}}}d{IlMh}}{BBfd}{{{ALl{c}}Aj}DbJn}{{{BBb{c}}Aj}Db{JnIlMh}}{{BBfAj}Db}{{{BBd{c}}Aj}DbJn}{cc{}}{{{BBh{c}}}{{ALl{c}}}{}}{{{BBh{c}}}{{BBb{c}}}{IlMh}}2222`????{c{}{}}00{{ce}{{Oh{g}}}{}OjId}00{{I`BBj}BBf}{{{Dn{{ALl{c}}}}E`}{{Eb{e}}}{}{}}{{{Dn{{BBb{c}}}}E`}{{Eb{e}}}{IlMh}{}}{{{Dn{{BBd{c}}}}E`}{{Eb{e}}}{IdBBl}{}}{{cg}{{AA`{ei}}}{}{}{{Oj{}{{Ib{e}}}}}{{Id{}{{Ib{e}}}}}}00{ce{}{}}{c{{n{e}}}{}{}}0000000{{{Dn{c}}E`}Eb{}}00{cC`{}}0003333`33{{ce}{{BBn{ce}}}BC`BC`}{{{Dn{{BBn{ce}}}}Dl}dBCbBCb}{{{BBn{ce}}Aj}DbJnJn}{cc{}}{{{BBn{ce}}}{{Bh{ce}}}BC`BC`}{{{Dn{{BBn{ce}}}}}{{Bh{{Dn{c}}{Dn{e}}}}}BC`BC`}191{{{Dn{{BBn{ce}}}}E`}{{Eb{{ALh{{Bf{Ed}}}}}}}BCbBCb}{{{Dn{{BBn{ce}}}}E`A@j}{{Eb{{ALh{d}}}}}BC`BC`}::8;","D":"GEn","p":[[5,"Private",2365],[1,"unit"],[5,"NodeAddr",0,2366],[6,"AddrInfoOptions",2366],[5,"AddrInfo",0,2366],[6,"Ordering",2367],[6,"Result",2368],[10,"Deserializer",2369],[17,"Item"],[6,"SocketAddr",2370],[10,"Iterator",2371],[1,"bool"],[5,"Formatter",2372],[5,"Error",2372],[5,"PublicKey",905,2373],[5,"NodeInfo",283],[5,"RelayUrl",1462,2366],[6,"Option",2374],[1,"slice"],[1,"tuple"],[5,"ConnectionInfo",361],[5,"Vec",2375],[10,"Serializer",2376],[5,"TypeId",2377],[10,"IntoIterator",2378],[5,"RelayNode",1462,2379],[5,"RelayMap",1462,2379],[5,"Dialer",104],[8,"NodeId",0,2373],[5,"Chain2",2380],[10,"IntoStream",2381],[10,"Stream",2382],[8,"Result",2372],[5,"Merge2",2383],[5,"Endpoint",361],[5,"Connection",361,2384],[8,"Result",2385],[1,"usize"],[5,"Pin",2386],[5,"Context",2387],[6,"Poll",2388],[1,"u8"],[6,"NotKeyed",2389],[5,"RateLimiter",2390],[5,"RatelimitedStream",2391],[10,"DirectStateStore",2389],[10,"Clock",2392],[10,"ReasonablyRealtime",2393],[10,"RateLimitingMiddleware",2394],[5,"Jitter",2395],[5,"Zip2",2396],[5,"ConcurrentDiscovery",127],[10,"Discovery",127],[5,"DiscoveryItem",127],[5,"Peer",2397],[5,"Box",2398],[8,"Boxed",2399],[5,"DnsDiscovery",169],[5,"String",2400],[5,"LocalSwarmDiscovery",184],[5,"PkarrPublisher",197],[5,"PkarrResolver",197],[5,"PkarrRelayClient",197],[5,"SecretKey",905,2373],[5,"Url",2401],[5,"SignedPacket",2402],[8,"BoxStream",2382],[1,"u32"],[5,"Duration",2403],[8,"DnsResolver",258],[10,"ResolverExt",258],[1,"str"],[17,"Output"],[10,"Future",2404],[1,"u64"],[6,"IpAddr",2405],[10,"IntoName",2406],[10,"Clone",2407],[8,"TokioAsyncResolver",2408],[6,"IrohAttr",283],[5,"TxtAttrs",283],[5,"BTreeMap",2409],[10,"FromStr",2410],[10,"Display",2372],[10,"Hash",2411],[10,"Ord",2367],[10,"Debug",2372],[5,"Record",2412],[10,"Hasher",2411],[5,"BTreeSet",2413],[5,"Accept",361],[5,"AcceptBi",2384],[5,"AcceptUni",2384],[5,"TransportConfig",361,2414],[5,"Connecting",361],[5,"Builder",361],[1,"u16"],[6,"ReadError",361,2415],[6,"WriteError",361,2416],[5,"VarInt",361,2417],[6,"ConnectionError",361,2418],[6,"ControlMsg",361,2419],[5,"DirectAddrInfo",361,2419],[6,"ConnectionType",361,2419],[5,"DirectAddr",361,2420],[6,"DirectAddrType",361,2420],[10,"ControllerFactory",2421],[10,"Send",2422],[10,"Sync",2422],[10,"Controller",2421],[5,"ConnectionTypeStream",361,2423],[6,"RelayMode",1462,2379],[5,"DirectAddrsStream",361,2420],[5,"RecvStream",361,2415],[5,"SendStream",361,2416],[5,"ExportKeyingMaterialError",2424],[6,"ReadableError",2425],[5,"StreamId",2426],[6,"Close",2427],[5,"Error",2428],[5,"VarIntBoundsExceeded",2417],[10,"Any",2377],[5,"ZeroRttAccepted",2384],[5,"Join2",2429],[10,"IntoFuture",2430],[5,"Arc",2431],[5,"ServerConfig",2414],[5,"IdleTimeout",2414],[5,"MtuDiscoveryConfig",2414],[5,"OpenBi",2384],[5,"OpenUni",2384],[5,"Error",2432],[5,"ReadBuf",2433],[1,"i32"],[5,"UnknownStream",2384],[5,"Race2",2434],[5,"Chunk",2435],[5,"Bytes",2436],[5,"ReadDatagram",2384],[6,"ReadExactError",2415],[6,"ReadToEndError",2415],[6,"SendDatagramError",2384],[10,"Error",2437],[5,"ConnectionStats",2438],[6,"StoppedError",2416],[1,"f32"],[1,"u128"],[5,"WeakConnectionHandle",2384],[5,"Written",2439],[5,"BitSlice",2440],[10,"BitOrder",2441],[1,"array"],[5,"Signature",905,2442],[1,"char"],[10,"FromIterator",2378],[5,"SharedSecret",905,2443],[6,"KeyParsingError",905,2373],[5,"InternalSignature",2444],[5,"VerifyingKey",2445],[6,"HexOrBase32ParseError",2446],[5,"Error",2447],[5,"SigningKey",2448],[10,"CryptoRngCore",2449],[10,"Sized",2422],[10,"Buffer",2450],[5,"Error",2385],[5,"Zeroizing",2451],[6,"Error",2452],[6,"BitSpanError",2453],[5,"Signature",2454],[10,"AsRef",2455],[5,"MagicsockMetrics",1049],[5,"IntoIter",2456],[5,"UdpSocket",1110,2457],[5,"BorrowedFd",2458],[6,"IpFamily",1110,2459],[10,"Into",2455],[5,"UdpSocket",2460],[5,"LocalAddresses",1157],[5,"Ipv6Addr",2405],[5,"CallbackToken",1181,2461],[5,"Monitor",1181],[8,"Boxed",2462],[10,"Fn",2463],[5,"Metrics",1216,2464],[5,"Report",1216],[5,"RelayLatencies",1216],[5,"Client",1216],[5,"Receiver",2465],[5,"Client",1357],[5,"Pinger",1322],[6,"PingError",1322],[6,"SurgeError",2466],[5,"ProbeOutput",1357],[5,"Metrics",1357,2467],[5,"Config",1357],[5,"Service",1357],[8,"NonZeroU16",2468],[5,"SocketAddrV4",2370],[5,"Receiver",2469],[5,"HttpClientBuilder",1462],[5,"HttpClient",1462],[5,"HttpClientReceiver",1462],[5,"RelayConn",1462],[6,"ReceivedMessage",1462,2470],[6,"HttpClientError",1462],[6,"Error",2471],[5,"Error",2472],[5,"JoinError",2473],[5,"Error",2474],[6,"Protocol",1733],[5,"HeaderValue",2475],[5,"ServerActorTask",1758,2476],[5,"ClientConnHandler",1758,2476],[6,"MaybeTlsStreamServer",1758],[5,"Request",2477],[5,"Incoming",2478],[5,"HeaderMap",2479],[5,"Metrics",1758,2480],[5,"ServerConfig",1758],[10,"Default",2481],[5,"Limits",1758],[5,"RelayConfig",1758],[5,"StunConfig",1758],[5,"TlsConfig",1758],[6,"CertConfig",1758],[5,"Server",1758],[8,"Result",2432],[5,"IoSlice",2482],[5,"AbortingJoinHandle",2277],[6,"StunAttribute",1943,2483],[5,"AlternateServer",2484],[5,"StunError",2485],[5,"TransactionId",1943,2486],[5,"ErrorCode",2487],[6,"Fingerprint",2488],[5,"MappedAddress",2489],[6,"MessageIntegrity",2490],[6,"MessageIntegritySha256",2491],[5,"Nonce",2492],[5,"PasswordAlgorithm",2493],[5,"PasswordAlgorithms",2494],[5,"Realm",2495],[5,"Software",2496],[5,"Unknown",2497],[5,"UnknownAttributes",2498],[5,"UserHash",2499],[5,"UserName",2500],[5,"XorMappedAddress",2501],[5,"AttributeType",2483],[5,"MessageDecoder",1943,2502],[6,"MessageClass",1943,2503],[5,"StunMessage",2503],[5,"StunDecodeError",1943,2485],[6,"Error",1943],[5,"DecoderContext",2502],[5,"DnsPkarrServer",2150,2504],[5,"CleanupDropGuard",2150],[5,"NodeTicket",2180,2505],[6,"Error",2506],[5,"ClientConfig",2507],[5,"GenError",2211],[5,"ServerConfig",2508],[5,"P2pCertificate",2211],[5,"P2pExtension",2211],[5,"ParseError",2211],[5,"VerificationError",2211],[6,"Error",2509],[6,"Error",2510],[5,"Certificate",2511],[5,"PrivateKey",2511],[6,"SignatureScheme",2512],[5,"SharedAbortingJoinHandle",2277],[5,"MaybeFuture",2277],[5,"CancelOnDrop",2277],[5,"JoinHandle",2513],[5,"AbortHandle",2514],[10,"Unpin",2422],[5,"Chain",2347],[10,"AsyncRead",2515],[10,"AsyncBufRead",2516],[15,"ReceivedPacket",1728],[15,"Health",1728],[15,"ServerRestarting",1728],[15,"Manual",1940],[15,"LetsEncrypt",1940]],"r":[[0,2366],[1,361],[2,2366],[3,2373],[54,2517],[362,2366],[367,2384],[369,2418],[373,2419],[374,2423],[375,2419],[377,2420],[378,2419],[379,2420],[380,2420],[388,2366],[393,2415],[394,2415],[398,2416],[403,2414],[408,2417],[410,2416],[908,2373],[909,2373],[910,2518],[911,2373],[912,2373],[913,2443],[914,2442],[1110,2459],[1111,2457],[1181,2461],[1217,2464],[1359,2467],[1484,2519],[1495,2470],[1498,2379],[1499,2379],[1500,2379],[1502,2366],[1759,2476],[1764,2480],[1768,2476],[1953,2503],[1954,2502],[1966,2483],[1967,2485],[1969,2486],[2109,2520],[2147,2521],[2148,2521],[2149,2521],[2151,2504],[2156,2522],[2180,2505]],"b":[[40,"impl-From%3CPublicKey%3E-for-NodeAddr"],[41,"impl-From%3CNodeInfo%3E-for-NodeAddr"],[43,"impl-From%3C(PublicKey,+Option%3CRelayUrl%3E,+%26%5BSocketAddr%5D)%3E-for-NodeAddr"],[44,"impl-From%3CNodeInfo%3E-for-NodeAddr"],[311,"impl-Debug-for-IrohAttr"],[312,"impl-Display-for-IrohAttr"],[317,"impl-From%3CTxtAttrs%3CIrohAttr%3E%3E-for-NodeInfo"],[318,"impl-From%3C%26TxtAttrs%3CIrohAttr%3E%3E-for-NodeInfo"],[589,"impl-Display-for-ReadError"],[590,"impl-Debug-for-ReadError"],[592,"impl-Debug-for-WriteError"],[593,"impl-Display-for-WriteError"],[595,"impl-Debug-for-VarInt"],[596,"impl-Display-for-VarInt"],[599,"impl-Display-for-ConnectionError"],[600,"impl-Debug-for-ConnectionError"],[603,"impl-Debug-for-ControlMsg"],[604,"impl-Display-for-ControlMsg"],[607,"impl-Display-for-ConnectionType"],[608,"impl-Debug-for-ConnectionType"],[612,"impl-Display-for-DirectAddrType"],[613,"impl-Debug-for-DirectAddrType"],[617,"impl-From%3CConnectionError%3E-for-ReadError"],[618,"impl-From%3CReadableError%3E-for-ReadError"],[623,"impl-From%3CStreamId%3E-for-VarInt"],[624,"impl-From%3Cu16%3E-for-VarInt"],[626,"impl-From%3Cu32%3E-for-VarInt"],[627,"impl-From%3Cu8%3E-for-VarInt"],[630,"impl-From%3CClose%3E-for-ConnectionError"],[631,"impl-From%3CError%3E-for-ConnectionError"],[817,"impl-TryFrom%3Cu64%3E-for-VarInt"],[819,"impl-TryFrom%3Cu128%3E-for-VarInt"],[820,"impl-TryFrom%3Cusize%3E-for-VarInt"],[952,"impl-LowerHex-for-Signature"],[953,"impl-Display-for-Signature"],[954,"impl-UpperHex-for-Signature"],[955,"impl-Debug-for-Signature"],[957,"impl-Debug-for-PublicKey"],[958,"impl-Display-for-PublicKey"],[959,"impl-Debug-for-KeyParsingError"],[960,"impl-Display-for-KeyParsingError"],[961,"impl-Display-for-SecretKey"],[962,"impl-Debug-for-SecretKey"],[965,"impl-From%3C%26%5Bu8;+ed25519::::SignatureBytes::%7Bconstant%230%7D%5D%3E-for-Signature"],[966,"impl-From%3C%5Bu8;+ed25519::::SignatureBytes::%7Bconstant%230%7D%5D%3E-for-Signature"],[967,"impl-From%3CInternalSignature%3E-for-Signature"],[972,"impl-From%3CHexOrBase32ParseError%3E-for-KeyParsingError"],[973,"impl-From%3CError%3E-for-KeyParsingError"],[975,"impl-From%3CSigningKey%3E-for-SecretKey"],[976,"impl-From%3C%5Bu8;+32%5D%3E-for-SecretKey"],[1008,"impl-SignatureEncoding-for-Signature"],[1009,"impl-Signature"],[1022,"impl-TryFrom%3C%26Signature%3E-for-Signature"],[1023,"impl-TryFrom%3C%26%5Bu8%5D%3E-for-Signature"],[1024,"impl-TryFrom%3CSignature%3E-for-Signature"],[1027,"impl-TryFrom%3C%26%5Bu8%5D%3E-for-PublicKey"],[1028,"impl-TryFrom%3C%26%5Bu8;+32%5D%3E-for-PublicKey"],[1253,"impl-Display-for-Report"],[1254,"impl-Debug-for-Report"],[1334,"impl-Display-for-PingError"],[1335,"impl-Debug-for-PingError"],[1337,"impl-From%3CError%3E-for-PingError"],[1339,"impl-From%3CSurgeError%3E-for-PingError"],[1398,"impl-Display-for-ProbeOutput"],[1399,"impl-Debug-for-ProbeOutput"],[1588,"impl-Display-for-RelayUrl"],[1589,"impl-Debug-for-RelayUrl"],[1592,"impl-Debug-for-ClientError"],[1593,"impl-Display-for-ClientError"],[1598,"impl-Display-for-RelayMap"],[1599,"impl-Debug-for-RelayMap"],[1600,"impl-Display-for-RelayNode"],[1601,"impl-Debug-for-RelayNode"],[1606,"impl-From%3CError%3E-for-ClientError"],[1608,"impl-From%3CError%3E-for-ClientError"],[1609,"impl-From%3CError%3E-for-ClientError"],[1610,"impl-From%3CJoinError%3E-for-ClientError"],[1611,"impl-From%3CError%3E-for-ClientError"],[2050,"impl-Display-for-TransactionId"],[2051,"impl-Debug-for-TransactionId"],[2053,"impl-Display-for-StunDecodeError"],[2054,"impl-Debug-for-StunDecodeError"],[2055,"impl-Display-for-Error"],[2056,"impl-Debug-for-Error"],[2059,"impl-From%3C%26%5Bu8;+stun_rs::::types::%7Bimpl%2313%7D::%7Bconstant%230%7D%5D%3E-for-TransactionId"],[2060,"impl-From%3C%5Bu8;+stun_rs::::types::%7Bimpl%2314%7D::%7Bconstant%230%7D%5D%3E-for-TransactionId"],[2062,"impl-From%3CUnknown%3E-for-StunAttribute"],[2063,"impl-From%3CUnknownAttributes%3E-for-StunAttribute"],[2064,"impl-From%3CRealm%3E-for-StunAttribute"],[2065,"impl-From%3CFingerprint%3E-for-StunAttribute"],[2066,"impl-From%3CSoftware%3E-for-StunAttribute"],[2067,"impl-From%3CUserName%3E-for-StunAttribute"],[2068,"impl-From%3CErrorCode%3E-for-StunAttribute"],[2069,"impl-From%3CUserHash%3E-for-StunAttribute"],[2070,"impl-From%3CAlternateServer%3E-for-StunAttribute"],[2071,"impl-From%3CMessageIntegrity%3E-for-StunAttribute"],[2072,"impl-From%3CPasswordAlgorithm%3E-for-StunAttribute"],[2073,"impl-From%3CMappedAddress%3E-for-StunAttribute"],[2074,"impl-From%3CMessageIntegritySha256%3E-for-StunAttribute"],[2076,"impl-From%3CPasswordAlgorithms%3E-for-StunAttribute"],[2077,"impl-From%3CXorMappedAddress%3E-for-StunAttribute"],[2078,"impl-From%3CNonce%3E-for-StunAttribute"],[2191,"impl-Debug-for-NodeTicket"],[2192,"impl-Display-for-NodeTicket"],[2228,"impl-Display-for-GenError"],[2229,"impl-Debug-for-GenError"],[2230,"impl-Display-for-ParseError"],[2231,"impl-Debug-for-ParseError"],[2232,"impl-Display-for-VerificationError"],[2233,"impl-Debug-for-VerificationError"]],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAI4FxgACAAAABQABAAkADAAXAAEAHwALACwAAgAxAAEAPQABAEQAAQBKAAcAUwABAGsAAwBxAAAAcwAAAHcAAAB5AAYAgwAAAIYABgCPAAIAlAABAJ4AAACgAAkArQACALQABAC6AAIAwAAFAM0AEgDjAAIA7gAAAPAAAADyAAsA/wACAA8BAAAXAQAAIgEBACUBCQAwAQsAPgECAEcBAQBLAQAAVAEAAFgBAABbAQAAXQEMAJ4BCwC2AScA4AEZAP4BBQARAgIAFQIDAB8CAQAiAicATAIaAGoCAQBtAgAAcAIBAHMCAQB3AgEAhAILAJcCAgC3AgEAugIBAL0CAQDSAgEA3gICAOMCBwDuAgUABgMDAA8DAgAYAxIALAMFADMDAAA2AyEAWQMnAIgDAQCUAwMAmQMqAMYDAgDLAwAAzQMBANADAQDWAwIA2gMCAN8DAADmAwAA6wMCAPADAQD1AwYA/QMLAAoECQAVBAQAGwQRAC4EAAAwBAEANgQDADsEGwBbBAEAZAQNAHMEAQB2BAAAfAQGAIQEAQCHBAoAkwQAAJkEBACgBA0AsAQBALcEBgC/BAEAxQQLANIEFwDuBAMAAQUAAAUFAAAOBRcAJwUDAC8FCwA8BQAAPgUAAEMFCgBTBQMAWAURAGsFAABtBQAAcQUKAIEFAwCKBQQAkgUBAJUFAACXBRMArQUIAOcFBgDvBRMABQYNABYGAwAdBgIAIQYhAEQGAABHBgAASQYDAFQGBwBeBgAAdwYBAIQGAQCJBgAAjAYoALcGCQDLBgkA1gYAANkGAwDeBgAA7gYBAPYGFQAOBwEAEgcDABcHAgAfBwoANQcBAEgHAABMBwAAUQcEAGQHIgCJBwoAuAcCALwHAADHBwAAzwcTAOQHAADmBwoAAQgIAAwIAQAPCAwAHQgCACIIAgAmCAAAQQgAAEQIHwBpCAMAcAgBAH0IBwCGCAsAkwgCAJkIBwCpCBEAvQgAAMAIAADCCAAAywgUAOEIBADqCAgA9AgKAAAJAQAFCQAACwkFABIJGQAtCQEAMAkBADgJBQA="}],\ +["iroh_net",{"t":"FEFINNNNNNNNNNNNNNNNNCNNCNOCCCNNNNNNNNNNNNNNNNNNNNONNNCCCCNONNCCCNONNCCCCNNNNNNNNCNNNNSSSSCCSSSHHHHSSHHHFNNNNNNNNNNNNNNNNNNNNNNFKFNNONNNNNNNCNNNNNNNNNNNOCCONNNNNNNNNNNNNFSSNNNNNNNNNNNNFNNNNNNNNNNNNSSSSFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNIKHMNMNMNMNMNMNMNMNMNMNCHPSGFPFNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNONONNNNNNHNNNNNNNNNNNNNFFPFPFFPGFPPGFGPFFGFFPPPTTPFPPPPGFPPPFPPPPFPPPPFPGPPNNNNNNNNNNNNNNNNNOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNHNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONOONOOONNHNNNNNNNNNNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNTPPGISFFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFEEENOOOOOOOONNNNNNNNNNNOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOONNNNONGFPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCNCNNNNNNNNNNFNNNNNNNNNNNNNNHONONNNNNFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFFFFNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOONNNNOOOONNOONNOOONOOOOOOOOOONNNNNNNNNNNNNNNNNONNNNPPGFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFFFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNOOONNNNONNNNNNNNNNNNNNNNNNNNNOOONONOOONONNNNNNNNNNNNNNNNNNNNNNOOOOONNNNNNPPPPPPPPPPPPPPFFGFPPPPSPPPPPPPPPPGPFFGFPFPPPPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNCNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNOOOOOGSSPPNNNNNNNNNNNNNNNNNNNNGFPFPGFPFFFFFPFNNNNOOOONNNNNNNNNNNNNNNNNNNNNNOONNONNNNNNNNNOOOOONNNNNNNNNNNNNNNNNNNNNNNNONONONNNNNNNNNNNNNONONNOOONNNNNNONOOOOONNONNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOONNNNNNNNNNNOOOOPGPPPPPPPPGFPPPPPPPPPPPGFPFPPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNNNNNNNCHHNHHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNSSSFFNNNNHNNNNNNNNOONONHNNNNNNNNNFNNNNNNNNNNNNNNNNNNNNNNNNNNNCHHFFFFFNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNFFFFNNNNNNNNNCNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFNNHNNNNNNNNNNNNNN","n":["AddrInfo","Endpoint","NodeAddr","NodeId","__clone_box","__clone_box","apply_options","apply_options","borrow","borrow","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","cmp","cmp","compare","compare","default","defaults","deserialize","deserialize","dialer","direct_addresses","direct_addresses","discovery","dns","endpoint","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","from","from","from","from","from","from","from","from_parts","from_ref","from_ref","info","into","into","is_empty","key","metrics","net","netcheck","new","node_id","partial_cmp","partial_cmp","ping","portmapper","relay","relay_url","relay_url","serialize","serialize","stun","test_utils","ticket","tls","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","util","vzip","vzip","with_direct_addresses","with_relay_url","DEFAULT_HTTPS_PORT","DEFAULT_HTTP_PORT","DEFAULT_METRICS_PORT","DEFAULT_STUN_PORT","prod","staging","AP_RELAY_HOSTNAME","EU_RELAY_HOSTNAME","NA_RELAY_HOSTNAME","default_ap_relay_node","default_eu_relay_node","default_na_relay_node","default_relay_map","EU_RELAY_HOSTNAME","NA_RELAY_HOSTNAME","default_eu_relay_node","default_na_relay_node","default_relay_map","Dialer","abort_dial","borrow","borrow_mut","chain","fmt","from","into","into_stream","is_pending","merge","new","next_conn","pending_count","poll_next","queue_dial","ratelimit_stream","ratelimit_stream_with_jitter","try_from","try_into","type_id","vzip","zip","ConcurrentDiscovery","Discovery","DiscoveryItem","__clone_box","add","addr_info","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","default","dns","empty","fmt","fmt","from","from","from","from","from_ref","from_services","into","into","last_updated","local_swarm_discovery","pkarr","provenance","publish","publish","resolve","resolve","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","DnsDiscovery","N0_DNS_NODE_ORIGIN_PROD","N0_DNS_NODE_ORIGIN_STAGING","borrow","borrow_mut","fmt","from","into","n0_dns","new","resolve","try_from","try_into","type_id","vzip","LocalSwarmDiscovery","borrow","borrow_mut","fmt","from","into","new","publish","resolve","try_from","try_into","type_id","vzip","DEFAULT_PKARR_TTL","DEFAULT_REPUBLISH_INTERVAL","N0_DNS_PKARR_RELAY_PROD","N0_DNS_PKARR_RELAY_STAGING","PkarrPublisher","PkarrRelayClient","PkarrResolver","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","drop","fmt","fmt","fmt","from","from","from","from_ref","from_ref","from_ref","into","into","into","n0_dns","n0_dns","new","new","new","publish","publish","resolve","resolve","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","update_addr_info","vzip","vzip","vzip","with_options","DnsResolver","ResolverExt","default_resolver","lookup_by_id","lookup_by_id","lookup_by_id_staggered","lookup_by_id_staggered","lookup_by_name","lookup_by_name","lookup_by_name_staggered","lookup_by_name_staggered","lookup_ipv4","lookup_ipv4","lookup_ipv4_ipv6","lookup_ipv4_ipv6","lookup_ipv4_ipv6_staggered","lookup_ipv4_ipv6_staggered","lookup_ipv4_staggered","lookup_ipv4_staggered","lookup_ipv6","lookup_ipv6","lookup_ipv6_staggered","lookup_ipv6_staggered","node_info","resolver","Addr","IROH_TXT_NAME","IrohAttr","NodeInfo","Relay","TxtAttrs","__clone_box","as_ref","attrs","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","cmp","compare","direct_addresses","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from_hickory_records","from_hickory_records","from_parts","from_pkarr_signed_packet","from_pkarr_signed_packet","from_ref","from_str","from_strings","from_z32","hash","into","into","into","lookup_by_id","lookup_by_name","new","node_id","node_id","partial_cmp","relay_url","to_hickory_records","to_hickory_records","to_owned","to_pkarr_signed_packet","to_pkarr_signed_packet","to_string","to_z32","try_from","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","Accept","AddrInfo","ApplicationClosed","Builder","CallMeMaybe","Connecting","Connection","ConnectionClosed","ConnectionError","ConnectionInfo","ConnectionLost","ConnectionLost","ConnectionType","ConnectionTypeStream","ControlMsg","Direct","DirectAddr","DirectAddrInfo","DirectAddrType","DirectAddrsStream","Endpoint","IllegalOrderedRead","Local","LocallyClosed","MAX","MAX_SIZE","Mixed","NodeAddr","None","Ping","Pong","Portmapped","ReadError","RecvStream","Relay","Reset","Reset","SendStream","Stopped","Stun","Stun4LocalPort","TimedOut","TransportConfig","TransportError","Unknown","UnknownStream","UnknownStream","VarInt","VersionMismatch","WriteError","ZeroRttRejected","ZeroRttRejected","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","accept","accept_bi","accept_uni","add_node_addr","add_node_addr_with_source","addr","addr","addrs","allow_spin","alpn","alpns","bind","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","bound_sockets","builder","chain","chain","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","close","close","close_reason","closed","cmp","cmp","cmp","compare","compare","compare","concurrent_connections","congestion_controller_factory","congestion_state","conn_type","conn_type_stream","connect","connect_by_node_id","connection_info","connection_infos","crypto_buffer_size","datagram_receive_buffer_size","datagram_send_buffer_size","datagram_send_buffer_space","default","default","default","default_relay_mode","deserialize","deserialize","deserialize","deserialize","direct_addresses","direct_addresses","discovery","discovery","dns_resolver","dns_resolver","drop","drop","enable_segmentation_offload","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","export_keying_material","finish","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_u32","from_u64","from_u64_unchecked","get_remote_node_id","handshake_data","handshake_data","has_send_address","hash","hash","hash","home_relay","id","id","id","info","initial_mtu","initial_rtt","insecure_skip_relay_cert_verify","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into_0rtt","into_future","into_future","into_inner","into_stream","into_stream","is_0rtt","join","join","keep_alive_interval","keylog","known_nodes","last_alive","last_alive_relay","last_control","last_payload","last_received","last_used","latency","latency","local_ip","local_ip","make_server_config","max_concurrent_bidi_streams","max_concurrent_uni_streams","max_datagram_size","max_idle_timeout","max_tlps","merge","merge","min_mtu","mtu_discovery_config","network_change","node_addr","node_id","node_id","node_id","open_bi","open_uni","packet_threshold","partial_cmp","partial_cmp","partial_cmp","peer_identity","persistent_congestion_threshold","poll","poll","poll_flush","poll_next","poll_next","poll_read","poll_shutdown","poll_write","priority","proxy_from_env","proxy_url","race","race","ratelimit_stream","ratelimit_stream","ratelimit_stream_with_jitter","ratelimit_stream_with_jitter","read","read_chunk","read_chunks","read_datagram","read_exact","read_to_end","receive_window","relay_mode","relay_url","relay_url","remote_address","remote_address","reset","rtt","secret_key","secret_key","send_datagram","send_window","serialize","serialize","serialize","serialize","set_alpns","set_max_concurrent_bi_streams","set_max_concurrent_uni_streams","set_priority","set_receive_window","source","source","source","stable_id","stats","stop","stopped","stream_receive_window","time_threshold","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","to_string","to_string","to_string","transport_config","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_poll","typ","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","watch_home_relay","weak_handle","write","write_all","write_all_chunks","write_chunk","write_chunks","zip","zip","BYTE_SIZE","Base32","Key","KeyParsingError","NodeId","PUBLIC_KEY_LENGTH","PublicKey","SecretKey","SharedSecret","Signature","__clone_box","__clone_box","__clone_box","as_bits","as_bytes","as_ref","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","cmp","compare","deserialize","deserialize","deserialize","encode_hex","encode_hex_upper","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt_short","from","from","from","from","from","from","from","from","from","from","from","from","from","from_bytes","from_bytes","from_bytes","from_components","from_ref","from_ref","from_ref","from_slice","from_str","from_str","from_str","generate","generate_with_rng","hash","into","into","into","into","into","open","partial_cmp","public","r_bytes","s_bytes","seal","serialize","serialize","serialize","shared","sign","source","to_bytes","to_bytes","to_bytes","to_openssh","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","to_vec","try_as_bits","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from_openssh","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","verify","vzip","vzip","vzip","vzip","vzip","MagicsockMetrics","NetcheckMetrics","PortmapMetrics","RelayMetrics","__clone_box","actor_link_change","actor_tick_direct_addr_heartbeat","actor_tick_direct_addr_update_receiver","actor_tick_main","actor_tick_msg","actor_tick_other","actor_tick_portmap_changed","actor_tick_re_stun","borrow","borrow_mut","clone","clone_into","default","fmt","from","from_ref","into","iter","name","num_direct_conns_added","num_direct_conns_removed","num_relay_conns_added","num_relay_conns_removed","re_stun_calls","recv_data_ipv4","recv_data_ipv6","recv_data_relay","recv_datagrams","recv_disco_bad_key","recv_disco_bad_parse","recv_disco_call_me_maybe","recv_disco_call_me_maybe_bad_disco","recv_disco_ping","recv_disco_pong","recv_disco_relay","recv_disco_udp","relay_home_change","send_data","send_data_network_down","send_disco_relay","send_disco_udp","send_ipv4","send_ipv6","send_relay","send_relay_error","sent_disco_call_me_maybe","sent_disco_ping","sent_disco_pong","sent_disco_relay","sent_disco_udp","to_owned","try_from","try_into","type_id","update_direct_addrs","vzip","IpFamily","UdpSocket","V4","V6","__clone_box","as_fd","bind","bind_full","bind_local","bind_local_v4","bind_local_v6","bind_v4","bind_v6","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","deref","drop","eq","equivalent","equivalent","equivalent","fmt","fmt","from","from","from","from","from_ref","into","into","ip","local_addr","netmon","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","unspecified_addr","vzip","vzip","LocalAddresses","__clone_box","borrow","borrow_mut","clone","clone_into","default","eq","equivalent","equivalent","equivalent","fmt","from","from_ref","into","is_unicast_link_local","loopback","new","regular","to_owned","try_from","try_into","type_id","vzip","CallbackToken","Monitor","__clone_box","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","drop","eq","equivalent","equivalent","equivalent","fmt","fmt","from","from","from_ref","hash","into","into","network_change","new","subscribe","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","unsubscribe","vzip","vzip","Client","Metrics","RelayLatencies","Report","__clone_box","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","captive_portal","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","default","default","default","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from_ref","from_ref","from_ref","from_ref","get_report","get_report_channel","global_v4","global_v6","hair_pinning","icmpv4","icmpv6","into","into","into","into","ipv4","ipv4_can_send","ipv6","ipv6_can_send","iter","iter","mapping_varies_by_dest_ip","mapping_varies_by_dest_ipv6","name","new","os_has_ipv6","portmap_probe","preferred_relay","receive_stun_packet","relay_latency","relay_v4_latency","relay_v6_latency","reports","reports_full","stun_packets_dropped","stun_packets_recv_ipv4","stun_packets_recv_ipv6","stun_packets_sent_ipv4","stun_packets_sent_ipv6","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","udp","vzip","vzip","vzip","vzip","Client","Ping","PingError","Pinger","__clone_box","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","default","fmt","fmt","fmt","from","from","from","from","from_ref","into","into","new","send","source","to_owned","to_string","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","Client","Config","Metrics","ProbeOutput","Service","__clone_box","__clone_box","__clone_box","__clone_box","all_available","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","deactivate","default","default","default","enable_nat_pmp","enable_pcp","enable_upnp","eq","equivalent","equivalent","equivalent","external_address_updated","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from_ref","from_ref","from_ref","from_ref","into","into","into","into","into","iter","local_port_updates","mapping_attempts","mapping_failures","name","nat_pmp","new","pcp","pcp_available","pcp_probes","probe","probes_started","procure_mapping","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","update_local_port","upnp","upnp_available","upnp_gateway_updated","upnp_probes","upnp_probes_failed","vzip","vzip","vzip","vzip","vzip","watch_external_address","ActorGone","Build","CannotAckPings","Closed","ConnectTimeout","Custom","Default","DialIO","DialTask","Disabled","Dns","DnsTimeout","Health","Http","HttpClient","HttpClientBuilder","HttpClientError","HttpClientReceiver","Hyper","IPDisabled","InvalidUrl","KeepAlive","MAX_PACKET_SIZE","NoClient","NoLocalAddr","NoNodeForTarget","PeerGone","Ping","PingAborted","PingTimeout","Pong","Proxy","Receive","ReceivedMessage","ReceivedPacket","RelayConn","RelayMap","RelayMode","RelayNode","RelayNodeNotAvail","RelayUrl","Send","ServerRestarting","Staging","StunOnlyNodesFound","UnexpectedStatusCode","Upgrade","WebsocketError","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","address_family_selector","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","can_ack_pings","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","close","close","close_for_reconnect","cmp","cmp","compare","compare","connect","contains_node","default_from_node","deref","deserialize","deserialize","empty","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_nodes","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_str","from_url","get_node","hash","http","insecure_skip_cert_verify","into","into","into","into","into","into","into","into","into","into","is_closed","is_connected","is_empty","is_preferred","is_prober","len","local_addr","local_addr","new","nodes","note_preferred","note_preferred","partial_cmp","partial_cmp","ping","protocol","proxy_url","public_key","recv","relay_map","send","send","send_ping","send_pong","send_pong","serialize","serialize","server","server_public_key","server_url","source","stun_only","stun_port","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","url","urls","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","data","problem","reconnect_in","source","try_for","Protocol","RELAY_PATH","RELAY_PROBE_PATH","Relay","Websocket","__clone_box","borrow","borrow_mut","clone","clone_into","eq","equivalent","equivalent","equivalent","fmt","from","from_ref","into","parse_header","to_owned","try_from","try_into","type_id","upgrade_header","vzip","CertConfig","ClientConnHandler","LetsEncrypt","Limits","Manual","MaybeTlsStreamServer","Metrics","Plain","RelayConfig","Server","ServerActorTask","ServerConfig","StunConfig","Tls","TlsConfig","__clone_box","__clone_box","abort","accept","accept_conn_burst","accept_conn_limit","accepts","bind_addr","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","bytes_recv","bytes_sent","call","call","cert","client_conn_handler","clone","clone","clone_into","clone_into","close","default","default","default","derp_accepts","disco_packets_dropped","disco_packets_recv","disco_packets_sent","disconnects","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from_ref","from_ref","got_ping","http_addr","http_bind_addr","https_addr","https_bind_addr","into","into","into","into","into","into","into","into","into","into","into","is_closed","iter","limits","meta_cert","metrics_addr","name","new","other_packets_dropped","other_packets_recv","other_packets_sent","poll_flush","poll_read","poll_shutdown","poll_write","poll_write_vectored","public_key","relay","secret_key","secret_key","send_packets_dropped","send_packets_recv","send_packets_sent","sent_pong","shutdown","spawn","stun","stun_addr","task_handle","tls","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","unique_client_keys","unknown_frames","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","websocket_accepts","certs","config","private_key","AlternateServer","Error","ErrorCode","ErrorResponse","Fingerprint","Indication","InvalidFingerprint","InvalidMessage","MalformedAttrs","MappedAddress","MessageClass","MessageDecoder","MessageIntegrity","MessageIntegritySha256","NoFingerprint","Nonce","NotBinding","NotSuccessResponse","PasswordAlgorithm","PasswordAlgorithms","Realm","Request","Software","StunAttribute","StunDecodeError","SuccessResponse","TransactionId","Unknown","UnknownAttributes","UserHash","UserName","XorMappedAddress","__clone_box","__clone_box","__clone_box","as_alternate_server","as_bits","as_bytes","as_error_code","as_fingerprint","as_mapped_address","as_message_integrity","as_message_integrity_sha256","as_nonce","as_password_algorithm","as_password_algorithms","as_realm","as_ref","as_software","as_unknown","as_unknown_attributes","as_user_hash","as_user_name","as_xor_mapped_address","attribute_type","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","cmp","compare","decode","default","default","deref","encode_hex","encode_hex_upper","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","expect_alternate_server","expect_error_code","expect_fingerprint","expect_mapped_address","expect_message_integrity","expect_message_integrity_sha256","expect_nonce","expect_password_algorithm","expect_password_algorithms","expect_realm","expect_software","expect_unknown","expect_unknown_attributes","expect_user_hash","expect_user_name","expect_xor_mapped_address","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","get_context","hash","into","into","into","into","into","into","is","is_alternate_server","is_error_code","is_fingerprint","is_mapped_address","is_message_integrity","is_message_integrity_sha256","is_nonce","is_password_algorithm","is_password_algorithms","is_realm","is_software","is_unknown","is_unknown_attributes","is_user_hash","is_user_name","is_xor_mapped_address","methods","parse_binding_request","parse_response","partial_cmp","request","response","to_owned","to_owned","to_owned","to_string","to_string","to_string","try_as_bits","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","BINDING","RESERVED","SHARED_SECRET","CleanupDropGuard","DnsPkarrServer","borrow","borrow","borrow_mut","borrow_mut","create_dns_resolver","discovery","dns_resolver","fmt","fmt","from","from","into","into","nameserver","node_origin","on_node","pkarr_url","run","run_relay_server","run_with_origin","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","NodeTicket","__clone_box","borrow","borrow_mut","clone","clone_into","deserialize","eq","equivalent","equivalent","equivalent","fmt","fmt","from","from_bytes","from_ref","from_str","into","new","node_addr","serialize","to_bytes","to_owned","to_string","try_from","try_into","type_id","vzip","certificate","make_client_config","make_server_config","GenError","P2pCertificate","P2pExtension","ParseError","VerificationError","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","generate","into","into","into","into","into","parse","peer_id","source","source","source","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","verify_signature","vzip","vzip","vzip","vzip","vzip","AbortingJoinHandle","CancelOnDrop","MaybeFuture","SharedAbortingJoinHandle","__clone_box","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","chain","clone","clone_into","default","deref","drop","drop","drop","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from_ref","inner","into","into","into","into","into_future","into_future","into_future","join","join","join","new","poll","poll","poll","race","race","race","to_owned","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_poll","try_poll","try_poll","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","Chain","borrow","borrow_mut","chain","consume","fmt","from","get_mut","get_pin_mut","get_ref","into","into_inner","poll_fill_buf","poll_read","try_from","try_into","type_id","vzip"],"q":[[0,"iroh_net"],[86,"iroh_net::defaults"],[92,"iroh_net::defaults::prod"],[99,"iroh_net::defaults::staging"],[104,"iroh_net::dialer"],[127,"iroh_net::discovery"],[169,"iroh_net::discovery::dns"],[184,"iroh_net::discovery::local_swarm_discovery"],[197,"iroh_net::discovery::pkarr"],[258,"iroh_net::dns"],[283,"iroh_net::dns::node_info"],[361,"iroh_net::endpoint"],[905,"iroh_net::key"],[1049,"iroh_net::metrics"],[1110,"iroh_net::net"],[1157,"iroh_net::net::ip"],[1181,"iroh_net::net::netmon"],[1216,"iroh_net::netcheck"],[1322,"iroh_net::ping"],[1357,"iroh_net::portmapper"],[1462,"iroh_net::relay"],[1728,"iroh_net::relay::ReceivedMessage"],[1733,"iroh_net::relay::http"],[1758,"iroh_net::relay::server"],[1940,"iroh_net::relay::server::CertConfig"],[1943,"iroh_net::stun"],[2147,"iroh_net::stun::methods"],[2150,"iroh_net::test_utils"],[2180,"iroh_net::ticket"],[2208,"iroh_net::tls"],[2211,"iroh_net::tls::certificate"],[2277,"iroh_net::util"],[2347,"iroh_net::util::chain"],[2365,"dyn_clone::sealed"],[2366,"iroh_base::node_addr"],[2367,"core::cmp"],[2368,"core::result"],[2369,"serde::de"],[2370,"core::net::socket_addr"],[2371,"core::iter::traits::iterator"],[2372,"core::fmt"],[2373,"iroh_base::key"],[2374,"core::option"],[2375,"alloc::vec"],[2376,"serde::ser"],[2377,"core::any"],[2378,"core::iter::traits::collect"],[2379,"iroh_net::relay::map"],[2380,"futures_concurrency::stream::chain::tuple"],[2381,"futures_concurrency::stream::into_stream"],[2382,"futures_core::stream"],[2383,"futures_concurrency::stream::merge::tuple"],[2384,"iroh_quinn::connection"],[2385,"anyhow"],[2386,"core::pin"],[2387,"core::task::wake"],[2388,"core::task::poll"],[2389,"governor::state::direct"],[2390,"governor::state"],[2391,"governor::state::direct::streams"],[2392,"governor::clock"],[2393,"governor::clock::with_std"],[2394,"governor::middleware"],[2395,"governor::jitter"],[2396,"futures_concurrency::stream::zip::tuple"],[2397,"swarm_discovery"],[2398,"alloc::boxed"],[2399,"futures_lite::stream"],[2400,"alloc::string"],[2401,"url"],[2402,"pkarr::signed_packet"],[2403,"core::time"],[2404,"core::future::future"],[2405,"core::net::ip_addr"],[2406,"hickory_proto::rr::domain::name"],[2407,"core::clone"],[2408,"hickory_resolver::async_resolver"],[2409,"alloc::collections::btree::map"],[2410,"core::str::traits"],[2411,"core::hash"],[2412,"hickory_proto::rr::resource"],[2413,"alloc::collections::btree::set"],[2414,"iroh_quinn_proto::config"],[2415,"iroh_quinn::recv_stream"],[2416,"iroh_quinn::send_stream"],[2417,"iroh_quinn_proto::varint"],[2418,"iroh_quinn_proto::connection"],[2419,"iroh_net::magicsock::node_map::node_state"],[2420,"iroh_net::magicsock"],[2421,"iroh_quinn_proto::congestion"],[2422,"core::marker"],[2423,"iroh_net::magicsock::node_map"],[2424,"iroh_quinn_proto::crypto"],[2425,"iroh_quinn_proto::connection::streams::recv"],[2426,"iroh_quinn_proto"],[2427,"iroh_quinn_proto::frame"],[2428,"iroh_quinn_proto::transport_error"],[2429,"futures_concurrency::future::join::tuple"],[2430,"core::future::into_future"],[2431,"alloc::sync"],[2432,"std::io::error"],[2433,"tokio::io::read_buf"],[2434,"futures_concurrency::future::race::tuple"],[2435,"iroh_quinn_proto::connection::assembler"],[2436,"bytes::bytes"],[2437,"core::error"],[2438,"iroh_quinn_proto::connection::stats"],[2439,"iroh_quinn_proto::connection::streams::send"],[2440,"bitvec::slice"],[2441,"bitvec::order"],[2442,"ed25519"],[2443,"iroh_base::key::encryption"],[2444,"ed25519_dalek::signature"],[2445,"ed25519_dalek::verifying"],[2446,"iroh_base::base32"],[2447,"signature::error"],[2448,"ed25519_dalek::signing"],[2449,"rand_core"],[2450,"aead"],[2451,"zeroize"],[2452,"ssh_key::error"],[2453,"bitvec::ptr::span"],[2454,"ssh_key::signature"],[2455,"core::convert"],[2456,"alloc::vec::into_iter"],[2457,"iroh_net::net::udp"],[2458,"std::os::fd::owned"],[2459,"iroh_net::net::ip_family"],[2460,"tokio::net::udp"],[2461,"iroh_net::net::netmon::actor"],[2462,"futures_lite::future"],[2463,"core::ops::function"],[2464,"iroh_net::netcheck::metrics"],[2465,"tokio::sync::oneshot"],[2466,"surge_ping::error"],[2467,"iroh_net::portmapper::metrics"],[2468,"core::num::nonzero"],[2469,"tokio::sync::watch"],[2470,"iroh_net::relay::client::conn"],[2471,"tokio_tungstenite_wasm::error"],[2472,"http::error"],[2473,"tokio::runtime::task::error"],[2474,"hyper::error"],[2475,"http::header::value"],[2476,"iroh_net::relay::server::actor"],[2477,"http::request"],[2478,"hyper::body::incoming"],[2479,"http::header::map"],[2480,"iroh_net::relay::server::metrics"],[2481,"core::default"],[2482,"std::io"],[2483,"stun_rs::attributes"],[2484,"stun_rs::attributes::stun::alternate_server"],[2485,"stun_rs::error"],[2486,"stun_rs::types"],[2487,"stun_rs::attributes::stun::error_code"],[2488,"stun_rs::attributes::stun::fingerprint"],[2489,"stun_rs::attributes::stun::mapped_address"],[2490,"stun_rs::attributes::stun::message_integrity"],[2491,"stun_rs::attributes::stun::message_integrity_sha256"],[2492,"stun_rs::attributes::stun::nonce"],[2493,"stun_rs::attributes::stun::password_algorithm"],[2494,"stun_rs::attributes::stun::password_algorithms"],[2495,"stun_rs::attributes::stun::realm"],[2496,"stun_rs::attributes::stun::software"],[2497,"stun_rs::attributes::unknown"],[2498,"stun_rs::attributes::stun::unknown_attributes"],[2499,"stun_rs::attributes::stun::user_hash"],[2500,"stun_rs::attributes::stun::user_name"],[2501,"stun_rs::attributes::stun::xor_mapped_address"],[2502,"stun_rs::context"],[2503,"stun_rs::message"],[2504,"iroh_net::test_utils::dns_and_pkarr_servers"],[2505,"iroh_base::ticket::node"],[2506,"iroh_base::ticket"],[2507,"rustls::client::client_conn"],[2508,"rustls::server::server_conn"],[2509,"rcgen::error"],[2510,"webpki::error"],[2511,"rustls::key"],[2512,"rustls::enums"],[2513,"tokio::runtime::task::join"],[2514,"tokio::runtime::task::abort"],[2515,"tokio::io::async_read"],[2516,"tokio::io::async_buf_read"],[2517,"iroh_base"],[2518,"ed25519_dalek::constants"],[2519,"iroh_net::relay::codec"],[2520,"stun_rs"],[2521,"stun_rs::methods"],[2522,"iroh_net::test_utils::dns_server"]],"i":[0,0,0,0,3,5,3,5,3,5,3,5,3,5,3,5,3,5,3,5,5,0,3,5,0,3,5,0,0,0,3,5,3,3,3,5,5,5,3,5,3,3,3,3,3,5,5,3,3,5,3,3,5,5,0,0,0,0,3,3,3,5,0,0,0,3,5,3,5,0,0,0,0,3,5,3,5,3,5,3,5,0,3,5,3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,0,0,0,54,52,54,54,52,54,52,54,54,52,0,52,54,52,54,54,52,52,54,52,54,52,54,0,0,54,53,52,53,52,54,54,52,54,52,54,52,54,52,0,0,0,58,58,58,58,58,58,58,58,58,58,58,58,0,60,60,60,60,60,60,60,60,60,60,60,60,0,0,0,0,0,0,0,61,62,63,61,62,63,61,62,63,61,62,63,61,62,63,61,61,62,63,61,62,63,61,62,63,61,62,63,61,62,61,62,63,61,63,62,63,61,62,63,61,62,63,61,62,63,61,62,63,61,61,62,63,61,0,0,0,71,70,71,70,71,70,71,70,71,70,71,70,71,70,71,70,71,70,71,70,0,0,80,0,0,0,80,0,16,80,81,80,16,81,80,16,81,16,16,80,80,16,80,16,80,80,80,16,16,16,80,80,16,81,80,16,16,16,81,81,16,81,81,16,81,16,80,81,0,80,80,16,81,81,81,16,81,16,80,16,16,81,16,16,81,80,0,80,80,16,81,80,16,81,80,16,81,80,16,81,0,0,101,0,102,0,0,101,0,0,98,99,0,0,0,104,0,0,0,0,0,98,106,101,100,100,104,0,104,102,102,106,0,0,104,98,101,0,99,106,106,101,0,101,106,98,99,0,101,0,98,99,36,98,99,100,101,35,102,103,21,104,105,106,35,36,36,35,35,103,105,21,94,95,96,96,36,114,98,115,99,94,100,96,101,35,91,95,102,103,21,104,111,113,105,106,36,114,98,115,99,94,100,96,101,35,91,95,102,103,21,104,111,113,105,106,35,35,111,113,36,98,99,100,101,35,102,103,21,104,105,106,36,98,99,100,101,35,102,103,21,104,105,106,36,35,36,36,100,105,106,100,105,106,96,94,36,21,35,35,35,35,35,94,94,94,36,94,100,96,0,102,103,21,104,35,5,96,35,96,35,114,115,94,98,99,100,101,102,103,21,104,105,106,98,98,98,99,99,99,100,100,100,101,101,101,102,102,102,103,103,103,21,21,21,104,104,104,105,105,105,106,106,106,36,115,36,114,98,98,115,99,99,94,100,100,96,101,101,35,91,95,102,102,103,21,104,104,111,113,105,106,106,36,114,98,98,98,115,99,99,94,100,100,100,100,100,96,101,101,101,35,91,95,102,103,21,104,111,113,105,106,36,98,99,100,101,35,102,103,21,104,105,106,100,100,100,0,36,95,21,100,105,106,35,114,115,21,3,94,94,96,36,114,98,115,99,94,100,96,101,35,91,95,102,103,21,104,111,113,105,106,95,91,95,100,111,113,114,91,95,94,96,96,103,21,103,103,21,21,103,21,36,95,0,94,94,36,94,94,111,113,94,94,35,35,35,3,21,36,36,94,100,105,106,36,94,91,95,115,111,113,114,115,115,115,96,96,91,95,111,113,111,113,114,114,114,36,114,114,94,96,5,21,36,95,115,36,96,35,36,94,102,103,21,104,35,36,36,115,36,98,99,101,36,36,114,115,94,94,36,98,99,100,101,35,102,103,21,104,105,106,98,99,100,101,102,104,106,96,36,114,98,115,99,94,100,100,100,100,96,101,35,91,95,102,103,21,104,111,113,105,106,36,114,98,115,99,94,100,96,101,35,91,95,102,103,21,104,111,113,105,106,95,105,36,114,98,115,99,94,100,96,101,35,91,95,102,103,21,104,111,113,105,106,36,114,98,115,99,94,100,96,101,35,91,95,102,103,21,104,111,113,105,106,35,36,115,115,115,115,115,111,113,153,157,157,0,0,0,0,0,0,0,153,15,64,15,15,15,153,156,15,157,64,153,156,15,157,64,153,15,64,153,15,64,15,15,153,15,64,15,15,153,15,153,153,153,15,15,15,153,153,153,153,156,15,15,157,157,64,64,15,153,153,153,153,156,15,15,157,157,157,64,64,64,153,15,64,153,153,15,64,153,153,15,64,64,64,15,153,156,15,157,64,156,15,64,153,153,156,153,15,64,64,64,157,153,153,64,64,153,15,64,153,15,157,64,153,15,153,153,153,153,156,15,15,15,157,64,64,64,153,156,15,157,64,153,156,15,157,64,15,153,156,15,157,64,0,0,0,0,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,172,0,0,176,176,176,174,174,174,174,174,174,174,174,176,174,176,174,176,176,174,174,176,176,176,176,176,174,176,176,174,174,176,176,174,0,176,0,176,176,174,176,174,176,174,176,176,174,0,179,179,179,179,179,179,179,179,179,179,179,179,179,179,0,179,179,179,179,179,179,179,179,0,0,181,181,182,181,182,181,181,182,181,181,181,181,181,182,181,182,181,181,181,182,182,182,182,181,181,182,181,182,181,182,182,181,182,0,0,0,0,185,186,187,188,185,186,187,188,185,186,187,188,186,185,186,187,188,185,186,187,188,185,186,187,186,187,186,186,186,187,187,187,185,186,186,187,188,185,186,187,188,185,186,187,188,188,188,186,186,186,186,186,185,186,187,188,186,186,186,186,185,187,186,186,185,188,186,186,186,188,186,186,186,185,185,185,185,185,185,185,185,186,187,188,186,185,186,187,188,185,186,187,188,185,186,187,188,186,185,186,187,188,192,192,0,0,191,192,191,192,191,191,191,191,192,192,191,192,192,192,191,191,192,191,191,191,192,191,192,192,191,192,191,192,191,192,191,0,0,0,0,0,195,194,196,190,194,195,194,196,190,197,195,194,196,190,197,195,194,196,190,195,194,196,190,190,195,196,190,196,196,196,194,194,194,194,195,195,194,194,196,190,197,195,194,196,190,197,195,194,196,190,195,194,196,190,197,195,195,195,195,195,194,190,194,195,195,190,195,190,195,194,196,190,194,195,194,196,190,197,195,194,196,190,197,195,194,196,190,197,190,194,195,195,195,195,195,194,196,190,197,190,206,206,206,206,206,112,112,206,206,112,206,206,205,206,0,0,0,0,206,206,206,205,0,206,206,206,205,205,206,206,205,206,206,0,205,0,0,0,0,206,0,206,205,112,206,206,206,206,17,204,205,202,112,27,26,201,17,204,205,206,202,203,201,112,27,26,17,204,205,206,202,203,201,112,27,26,201,201,17,204,205,202,112,27,26,17,204,205,202,112,27,26,204,202,202,17,26,17,26,202,27,27,17,17,26,27,17,204,112,27,26,17,17,17,204,204,204,112,112,112,27,27,27,26,26,26,17,17,204,205,206,206,202,203,201,112,27,27,26,26,17,17,204,205,206,206,206,206,206,206,202,203,201,112,27,26,27,17,204,205,202,112,27,26,17,27,27,17,0,201,17,204,205,206,202,203,201,112,27,26,204,202,27,201,201,27,204,202,201,27,204,202,17,26,202,201,201,202,203,112,204,202,204,204,202,17,26,0,201,201,206,26,26,17,204,205,202,112,27,26,17,206,27,26,17,204,205,206,202,203,201,112,27,26,17,204,205,206,202,203,201,112,27,26,17,204,205,206,202,203,201,112,27,26,26,27,17,204,205,206,202,203,201,112,27,26,282,283,284,282,284,0,0,0,211,211,211,211,211,211,211,211,211,211,211,211,211,211,211,211,211,211,211,211,211,211,0,0,226,0,226,0,0,215,0,0,0,0,0,215,0,214,219,213,214,222,222,219,224,213,214,219,215,220,223,224,225,222,226,227,213,214,219,215,220,223,224,225,222,226,227,219,219,214,214,225,213,214,219,214,219,213,219,220,222,219,219,219,219,219,213,214,219,215,220,223,224,225,222,226,227,213,214,219,215,220,223,224,225,222,226,227,214,219,219,227,223,227,225,213,214,219,215,220,223,224,225,222,226,227,213,219,223,213,220,219,213,219,219,219,215,215,215,215,215,213,220,213,223,219,219,219,219,227,227,220,227,227,223,214,219,213,214,219,215,220,223,224,225,222,226,227,213,214,219,215,220,223,224,225,222,226,227,213,214,219,215,220,223,224,225,222,226,227,219,219,213,214,219,215,220,223,224,225,222,226,227,219,285,286,285,231,0,231,252,231,252,255,255,255,231,0,0,231,231,255,231,255,255,231,231,231,252,231,0,0,252,0,231,231,231,231,231,251,252,234,231,234,234,231,231,231,231,231,231,231,231,231,234,231,231,231,231,231,231,231,251,252,234,231,254,255,251,252,234,231,254,255,251,252,234,251,252,234,234,234,251,251,234,234,234,234,252,234,252,252,252,234,234,234,231,231,231,231,231,231,231,231,231,231,231,231,231,231,231,231,251,252,234,234,231,254,254,255,255,251,252,234,234,234,231,231,231,231,231,231,231,231,231,231,231,231,231,231,231,231,231,254,255,251,252,234,251,234,251,252,234,231,254,255,0,231,231,231,231,231,231,231,231,231,231,231,231,231,231,231,231,0,0,0,234,0,0,251,252,234,234,254,255,234,251,252,252,234,231,254,255,251,252,234,231,254,255,251,252,234,231,254,255,251,252,234,231,254,255,0,0,0,0,0,258,257,258,257,0,257,257,258,257,258,257,258,257,257,257,257,257,257,0,257,258,257,258,257,258,257,258,257,0,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,259,0,0,0,0,0,0,0,0,264,265,262,266,267,264,265,262,266,267,264,265,262,262,266,266,267,267,264,265,262,262,266,266,267,267,0,264,265,262,266,267,0,264,262,266,267,262,266,267,264,265,262,266,267,264,265,262,266,267,264,265,262,266,267,264,264,265,262,266,267,0,0,0,0,273,230,273,275,274,230,273,275,274,0,273,273,274,230,230,273,275,230,273,275,274,230,230,273,273,275,274,273,274,230,273,275,274,230,273,274,230,273,274,275,230,273,274,230,273,274,273,230,273,275,274,230,273,275,274,230,273,274,230,273,275,274,230,273,275,274,0,279,279,0,279,279,279,279,279,279,279,279,279,279,279,279,279,279],"f":"````{{cb}d{}}0{{fh}d}{{jh}d}{ce{}{}}000{ff}{jj}{{ce}d{}{}}0{{ff}l}{{jj}l}{{ce}l{}{}}0{{}j}`{c{{n{f}}}A`}{c{{n{j}}}A`}`{f{{`{{Af{}{{Ab{Ad}}}}}}}}````{{ff}Ah}{{jj}Ah}{{ce}Ah{}{}}00000{{fAj}{{n{dAl}}}}{{jAj}{{n{dAl}}}}{Anf}{B`f}{cc{}}{{{Bh{An{Bd{Bb}}{Bf{Ad}}}}}f}{Bjf}{B`j}3{{An{Bd{Bb}}{Bl{Ad}}}f}44`{ce{}{}}0{jAh}````8`{{ff}{{Bd{l}}}}{{jj}{{Bd{l}}}}```{f{{Bd{Bb}}}}`{{fc}nBn}{{jc}nBn}````66{c{{n{e}}}{}{}}000{cC`{}}0`88{{fc}f{{Cb{}{{Ab{Ad}}}}}}{{fBb}f}`````````{{}Cd}00{{}Cf}``110`{{ChCj}d}=={{cg}{{Cl{i}}}{}{}{{Cn{}{{Ab{e}}}}}{{D`{}{{Ab{e}}}}}}{{ChAj}Db}{cc{}}{ce{}{}}0{{ChCj}Ah}{{cg}{{Dd{ei}}}{}{}{{Cn{}{{Ab{e}}}}}{{D`{}{{Ab{e}}}}}}{DfCh}{Ch{{Bh{Cj{Dj{Dh}}}}}}{ChDl}{{{Dn{Ch}}E`}{{Eb{{Bd{c}}}}}{}}{{ChCj{Bf{Ed}}}d}{{c{Eh{Efegi}}}{{Ej{kegi}}}{}El{EnF`}Fb{}}{{c{Eh{Efegi}}Fd}{{Ej{kegi}}}{}El{EnF`}Fb{}}{c{{n{e}}}{}{}}0{cC`{}};{{cg}{{Ff{i}}}{}{}{{Cn{}{{Ab{e}}}}}{{D`{}{{Ab{e}}}}}}```{{cb}d{}}{{Fhc}dFj}`>>>>{FlFl}{{ce}d{}{}}{{}Fh}`0{{FlAj}Db}{{FhAj}Db}{FnFl}{cc{}}0{cFh{{Cb{}{{Ab{{G`{Fj}}}}}}}}1{{{Bl{{G`{Fj}}}}}Fh}{ce{}{}}0````{{Fjj}d}{{Fhj}d}{{FjDfCj}{{Bd{{Gb{{Dj{Fl}}}}}}}}{{FhDfCj}{{Bd{{Gb{{Dj{Fl}}}}}}}}4{c{{n{e}}}{}{}}000{cC`{}}066```66{{GdAj}Db}:7{{}Gd}{GfGd}{{GdDfCj}{{Bd{{Gb{{Dj{Fl}}}}}}}}554:`::{{GhAj}Db}>;{Cj{{Dj{Gh}}}}{{Ghj}d}{{GhDfCj}{{Bd{{Gb{{Dj{Fl}}}}}}}}998>```````{{cb}d{}}00??????{GjGj}{GlGl}{GnGn}{{ce}d{}{}}00{Gjd}{{GjAj}Db}{{GlAj}Db}{{GnAj}Db}{cc{}}00000{ce{}{}}00{H`Gj}{{}Gl}{{H`Hb}Gj}{HbGl}{HbGn}{{Gjj}d}{{GnHd}{{Dj{d}}}}{{GlDfCj}{{Bd{{Hf{{Dj{Fl}}}}}}}}{{GnCj}{{Dj{Hd}}}}999{c{{n{e}}}{}{}}00000{cC`{}}005;;;{{H`HbHhHj}Gj}``{{}Hl}{{HnCjI`}{{`{{Id{}{{Ib{{Dj{f}}}}}}}}}}{{HlCjI`}{{Dj{f}}}}{{HnCjI`{Bf{If}}}{{`{{Id{}{{Ib{{Dj{f}}}}}}}}}}{{HlCjI`{Bf{If}}}{{Dj{f}}}}{{HnI`}{{`{{Id{}{{Ib{{Dj{f}}}}}}}}}}{{HlI`}{{Dj{f}}}}{{HnI`{Bf{If}}}{{`{{Id{}{{Ib{{Dj{f}}}}}}}}}}{{HlI`{Bf{If}}}{{Dj{f}}}}{{HncHj}{{`{{Id{}{{Ib{{Dj{{`{{Af{}{{Ab{Ih}}}}}}}}}}}}}}}Ij}{{HlcHj}{{Dj{{`{{Af{}{{Ab{Ih}}}}}}}}}Ij}{{HncHj}{{`{{Id{}{{Ib{{Dj{{`{{Af{}{{Ab{Ih}}}}}}}}}}}}}}}{IjIl}}{{HlcHj}{{Dj{{`{{Af{}{{Ab{Ih}}}}}}}}}{IjIl}}{{HncHj{Bf{If}}}{{`{{Id{}{{Ib{{Dj{{`{{Af{}{{Ab{Ih}}}}}}}}}}}}}}}{IjIl}}{{HlcHj{Bf{If}}}{{Dj{{`{{Af{}{{Ab{Ih}}}}}}}}}{IjIl}}105410`{{}In}``````{{cb}d{}}{J`I`}{{{Jb{c}}}{{Jd{c{Bl{Gf}}}}}{JfJhJjJl}}{ce{}{}}00000{B`B`}{{ce}d{}{}}{{J`J`}l}{{ce}l{}{}}`{{J`J`}Ah}{{B`B`}Ah}{{ce}Ah{}{}}00000{{J`Aj}Db}{{J`Aj}{{n{dAl}}}}{{B`Aj}Db}{{{Jb{c}}Aj}DbJn}{cc{}}0{{{Jb{J`}}}B`}0{B`{{Jb{J`}}}}2{{{Bf{K`}}}{{Dj{B`}}}}{{{Bf{K`}}}{{Dj{{Jb{c}}}}}{JfJhJjJl}}{{Cje}{{Jb{c}}}{JfJhJjJl}{{Af{}{{Ab{{Bh{cGf}}}}}}}}{Hd{{Dj{B`}}}}{Hd{{Dj{{Jb{c}}}}}{JfJhJjJl}}7{I`{{n{J`c}}}{}}{{Cjc}{{Dj{{Jb{e}}}}}{{Af{}{{Ab{Gf}}}}}{JfJhJjJl}}{I`{{Dj{Cj}}}}{{J`c}dKb}{ce{}{}}00{{InCjI`}{{Dj{{Jb{c}}}}}{JfJhJjJl}}{{InI`}{{Dj{{Jb{c}}}}}{JfJhJjJl}}{{Cj{Bd{Hb}}{Kd{Ad}}}B`}{{{Jb{c}}}Cj{JfJhJjJl}}`{{J`J`}{{Bd{l}}}}`{{B`I`Hh}{{Dj{{`{{Af{}{{Ab{K`}}}}}}}}}}{{{Jb{c}}I`Hh}{{Dj{{`{{Af{}{{Ab{K`}}}}}}}}}{JfJhJjJl}}7{{B`H`Hh}{{Dj{Hd}}}}{{{Jb{c}}H`Hh}{{Dj{Hd}}}{JfJhJjJl}}{cGf{}}{CjGf}?{c{{n{e}}}{}{}}00000{cC`{}}00===````````````````````````````````````````````````````{{cb}d{}}00000000000{DfKf}{DhKh}{DhKj}{{Dff}{{Dj{d}}}}{{DffI`}{{Dj{d}}}}```{{KlAh}Kl}{Kn{{Dj{{Bl{Ed}}}}}}{{L`{Bl{{Bl{Ed}}}}}L`}{{L`Lb}{{Dj{Df}}}}{ce{}{}}000000000000000000000000000000000000000{Df{{Bh{Ad{Bd{Ad}}}}}}{{}L`}{{cg}{{Cl{i}}}{}{}{{Cn{}{{Ab{e}}}}}{{D`{}{{Ab{e}}}}}}0{DhDh}{LdLd}{LfLf}{LhLh}{LjLj}{DfDf}{LlLl}{LnLn}{BjBj}{M`M`}{MbMb}{MdMd}{{ce}d{}{}}00000000000{{DhLh{Bf{Ed}}}d}{{DfLh{Bf{Ed}}}{{Dj{d}}}}{Dh{{Bd{Lj}}}}{DhLj}{{LhLh}l}{{MbMb}l}{{MdMd}l}{{ce}l{}{}}00{{L`Hh}L`}{{Klc}Kl{MfMhMj}}{Dh{{G`{Ml}}}}`{{DfCj}{{Dj{Mn}}}}{{Dff{Bf{Ed}}}{{Dj{Dh}}}}{{DfCj{Bf{Ed}}}{{Dj{Dh}}}}{{DfCj}{{Bd{Bj}}}}{Df{{Bl{Bj}}}}{{KlDl}Kl}{{Kl{Bd{Dl}}}Kl}1{DhDl}{{}Kl}{{}Lh}{{}L`}{{}N`}{c{{n{Ll}}}A`}{c{{n{Ln}}}A`}{c{{n{Bj}}}A`}{c{{n{M`}}}A`}{DfNb}`{{L`{G`{Fj}}}L`}{Df{{Bd{Fj}}}}{{L`Hl}L`}{DfHl}{Ndd}{Nfd}{{KlAh}Kl}{{LdLd}Ah}{{LfLf}Ah}{{LhLh}Ah}{{LjLj}Ah}{{LlLl}Ah}{{LnLn}Ah}{{BjBj}Ah}{{M`M`}Ah}{{MbMb}Ah}{{MdMd}Ah}{{ce}Ah{}{}}00000000000000000000000000000{{Dh{Bf{Ed}}{Bf{Ed}}{Bf{Ed}}}{{n{dNh}}}}{Nf{{n{dLf}}}}{{DhAj}{{n{dAl}}}}{{NdAj}{{n{dAl}}}}{{LdAj}{{n{dAl}}}}0{{NfAj}{{n{dAl}}}}{{LfAj}{{n{dAl}}}}0{{KlAj}{{n{dAl}}}}{{LhAj}{{n{dAl}}}}0{{L`Aj}Db}{{LjAj}{{n{dAl}}}}0{{DfAj}Db}{{KfAj}Db}{{KnAj}Db}{{LlAj}Db}0{{LnAj}Db}{{BjAj}Db}{{M`Aj}Db}0{{MnAj}Db}{{NbAj}Db}{{MbAj}Db}{{MdAj}Db}0{cc{}}00{LjLd}{NjLd}2{LjLf}33{NlLh}{HhLh}{LbLh}6{EdLh}77{NnLj}{O`Lj}999999999999999999999994{If{{n{LhOb}}}}{IfLh}{Dh{{Dj{An}}}}{Dh{{Bd{{G`{Od}}}}}}{Kn{{Dj{{G`{Od}}Lj}}}}{BjAh}{{Lhc}dKb}{{Mbc}dKb}{{Mdc}dKb}{Df{{Bd{Bb}}}}{NdNl}{NfNl}``{{KlLb}Kl}{{KlHj}Kl}{{L`Ah}L`}{ce{}{}}0000000000000000000{Kn{{Dj{{Bh{DhOf}}Kn}}}}{c{}{}}0{LhIf}33{NdAh}{{ce}{{Oh{g}}}{}OjId}0{{Kl{Bd{Hj}}}Kl}7{{L`{Bl{f}}}L`}`{Bj{{Bd{Hj}}}}``0```{Dh{{Bd{Ih}}}}{Kn{{Bd{Ih}}}}{{H`{Bl{{Bl{Ed}}}}{Ol{Kl}}Ah}{{Dj{On}}}}{{KlLh}Kl}0{Dh{{Bd{Dl}}}}{{Kl{Bd{A@`}}}Kl}{{KlHh}Kl}{{cg}{{Dd{ei}}}{}{}{{Cn{}{{Ab{e}}}}}{{D`{}{{Ab{e}}}}}}0{{KlLb}Kl}{{Kl{Bd{A@b}}}Kl}{Dfd}{Df{{Dj{f}}}}{DfCj}``{DhA@d}{DhA@f}8{{LhLh}{{Bd{l}}}}{{MbMb}{{Bd{l}}}}{{MdMd}{{Bd{l}}}}{Dh{{Bd{{G`{Od}}}}}}<{{{Dn{Kf}}E`}{{Eb{c}}}{}}{{{Dn{Kn}}E`}{{Eb{c}}}{}}{{{Dn{Nf}}E`}{{Eb{{n{dA@h}}}}}}{{{Dn{Mn}}E`}{{Eb{{Bd{c}}}}}{}}{{{Dn{Nb}}E`}{{Eb{{Bd{c}}}}}{}}{{{Dn{Nd}}E`A@j}{{Eb{{n{dA@h}}}}}}3{{{Dn{Nf}}E`{Bf{Ed}}}{{Eb{{n{DlA@h}}}}}}{Nf{{n{A@lA@n}}}}{L`L`}{{L`Hb}L`}{{cg}{{AA`{ei}}}{}{}{{Oj{}{{Ib{e}}}}}{{Id{}{{Ib{e}}}}}}0{{c{Eh{Efegi}}}{{Ej{kegi}}}{}El{EnF`}Fb{}}0{{c{Eh{Efegi}}Fd}{{Ej{kegi}}}{}El{EnF`}Fb{}}0{{Nd{Bf{Ed}}}{{n{{Bd{Dl}}Ld}}}}{{NdDlAh}{{n{{Bd{AAb}}Ld}}}}{{Nd{Bf{AAd}}}{{n{{Bd{Dl}}Ld}}}}{DhAAf}{{Nd{Bf{Ed}}}{{n{dAAh}}}}{{NdDl}{{n{{Bl{Ed}}AAj}}}}{{KlLh}Kl}{{L`N`}L`}``{DhAd}{KnAd}{{NfLh}{{n{dA@n}}}}{DhHj}{{L`H`}L`}{DfH`}{{DhAAd}{{n{dAAl}}}}{{KlIf}Kl}{{Llc}nBn}{{Lnc}nBn}{{Bjc}nBn}{{M`c}nBn}{{Df{Bl{{Bl{Ed}}}}}{{Dj{d}}}}{{DhLh}d}0{{NfA@l}{{n{dA@n}}}}1{Ld{{Bd{AAn}}}}{Lf{{Bd{AAn}}}}{Lj{{Bd{AAn}}}}{DhDl}{DhAB`}{{NdLh}{{n{dA@n}}}}{Nf{{n{LhABb}}}}{{KlLh}Kl}{{KlABd}Kl}{ce{}{}}00000000000{cGf{}}000000{{L`Kl}L`}{c{{n{e}}}{}{}}00000{ABf{{n{LhOb}}}}1{Dl{{n{LhOb}}}}{If{{n{LhOb}}}}333333333333333333333333333333333{{{Dn{c}}E`}Eb{}}`{cC`{}}000000000000000000088888888888888888888{Df{{`{{D`{}{{Ab{Bb}}}}}}}}{DhABh}{{Nf{Bf{Ed}}}{{n{DlLf}}}}{{Nf{Bf{Ed}}}{{n{dLf}}}}{{Nf{Bf{AAd}}}{{n{dLf}}}}{{NfAAd}{{n{dLf}}}}{{Nf{Bf{AAd}}}{{n{ABjLf}}}}{{cg}{{Ff{i}}}{}{}{{Cn{}{{Ab{e}}}}}{{D`{}{{Ab{e}}}}}}0``````````{{cb}d{}}00{c{{ABl{eg}}}{}{}ABn}{An{{AC`{Ed}}}}{An{{Bf{Ed}}}}{ce{}{}}000000000{ACbACb}{AnAn}{H`H`}{{ce}d{}{}}00{{AnAn}l}{{ce}l{}{}}{c{{n{ACb}}}A`}{c{{n{An}}}A`}{c{{n{H`}}}A`}{ce{}{{ACf{ACd}}}}0{{ACbACb}Ah}{{AnAn}Ah}{{ce}Ah{}{}}00000{{ACbAj}{{n{dAl}}}}000{{AChAj}{{n{dAl}}}}{{AnAj}{{n{dAl}}}}0{{ACjAj}{{n{dAl}}}}0{{H`Aj}{{n{dAl}}}}0{AnGf}{cc{}}{{{AC`{Ed}}}ACb}0{AClACb}22{ACnAn}3{AD`ACj}{ADbACj}5{ADdH`}{{{AC`{Ed}}}H`}6{{{AC`{Ed}}}{{n{AnADb}}}}1{{{AC`{Ed}}{AC`{Ed}}}ACb}999{{{Bf{Ed}}}{{n{ACbADb}}}}{I`{{n{ACbADb}}}}{I`{{n{An}}}}{I`{{n{H`}}}}{{}H`}{cH`{ADfADh}}{{Anc}dKb}{ce{}{}}0000{{AChADj}{{n{dADl}}}}{{AnAn}{{Bd{l}}}}{H`An}{ACb{{AC`{Ed}}}}0{{AChADj}d}{{ACbc}nBn}{{Anc}nBn}{{H`c}nBn}{{H`An}ACh}{{H`{Bf{Ed}}}ACb}{ACj{{Bd{AAn}}}}77{H`{{AC`{Ed}}}}{H`{{n{{ADn{Gf}}AE`}}}}==={cGf{}}000{ACb{{Bl{Ed}}}}{c{{n{{ABl{eg}}{AEb{e}}}}}{}{}ABn}{c{{n{e}}}{}{}}{AEd{{n{ACbAE`}}}}{{{Bf{Ed}}}{{n{ACbADb}}}}122{{{Bf{Ed}}}{{n{An}}}}{{{AC`{Ed}}}{{n{An}}}}44{{{Bf{Ed}}}{{n{H`}}}}{c{{n{H`ADl}}}{{AEf{{Bf{Ed}}}}}}66666{cC`{}}0000{{An{Bf{Ed}}ACb}{{n{dADb}}}}{ce{}{}}0000````{{cb}d{}}````````11{AEhAEh}{{ce}d{}{}}{{}AEh}{{AEhAj}Db}{cc{}}06{AEh{{AEj{{Bh{I`Od}}}}}}{{}I`}```````````````````````````````8{c{{n{e}}}{}{}}0;`9````8{AElAEn}{{AF`Lb}{{Dj{AEl}}}}{c{{Dj{AEl}}}{{AFb{Ad}}}}1{Lb{{Dj{AEl}}}}000===={AF`AF`};{AElc{}}{AEld}{{AF`AF`}Ah}{{ce}Ah{}{}}00{{AF`Aj}Db}{{AElAj}Db}>{IhAF`}{AFdAEl}{cc{}}0{ce{}{}}0`{AF`Ih}`1{c{{n{e}}}{}{}}000{cC`{}}0233`{{cb}d{}}44{AFfAFf}{{ce}d{}{}}{{}AFf}{{AFfAFf}Ah}>>>{{AFfAj}Db}::9{AFhAh}`3`:887:``6::::{AFjAFj}5{AFld}{{AFjAFj}Ah}{{ce}Ah{}{}}00{{AFjAj}Db}{{AFlAj}Db}{cc{}}00{{AFjc}dKb}{ce{}{}}0{AFl{{Dj{d}}}}{{}{{Dj{AFl}}}}{{AFlc}{{Dj{AFj}}}{{AG`{Ah}{{Ib{{AFn{d}}}}}}MjMh}}3{c{{n{e}}}{}{}}000{cC`{}}0{{AFlAFj}{{Dj{d}}}}66````{{cb}d{}}00077777777`{AGbAGb}{AGdAGd}{AGfAGf}{AGhAGh}{{ce}d{}{}}000{{}AGb}{{}AGd}{{}AGf}{{AGdAGd}Ah}{{AGfAGf}Ah}{{ce}Ah{}{}}00000{{AGbAj}Db}{{AGdAj}Db}0{{AGfAj}Db}{{AGhAj}Db}{cc{}}0000000{{AGhCf{Bd{{Ol{AEl}}}}{Bd{{Ol{AEl}}}}}{{Dj{{Ol{AGd}}}}}}{{AGhCf{Bd{{Ol{AEl}}}}{Bd{{Ol{AEl}}}}}{{Dj{{AGj{{Dj{{Ol{AGd}}}}}}}}}}`````{ce{}{}}000````{AGb{{AEj{{Bh{I`Od}}}}}}{AGf{{`{{Af{}{{Ab{{Bh{BbHj}}}}}}}}}}``{{}I`}{{{Bd{AGl}}Hl}{{Dj{AGh}}}}```{{AGhAAdAd}d}``````````5555{cGf{}}{c{{n{e}}}{}{}}0000000{cC`{}}000`8888````{{cb}d{}}9999{AGnAGn}{{ce}d{}{}}{{}AGn}{{AH`Aj}Db}0{{AGnAj}Db}{ADlAH`}{cc{}}{AHbAH`}11{ce{}{}}06{{AGnIh{Bf{Ed}}}{{Dj{HjAH`}}}}{AH`{{Bd{AAn}}}}2>====<<22`````;;;;{AHdAh}3333333333{AHfAHf}{AHdAHd}{AHhAHh}{AGlAGl}>>>>{AGld}{{}AHf}{{}AHh}{{}AGl}```{{AHdAHd}Ah}{{ce}Ah{}{}}00`{{AHfAj}Db}{{AHdAj}Db}0{{AHhAj}Db}{{AGlAj}Db}{{AHjAj}Db}{cc{}}00000000{ce{}{}}0000{AHf{{AEj{{Bh{I`Od}}}}}}```{{}I`}`{AHhAGl}```{AGl{{AGj{{Dj{AHdGf}}}}}}`{AGld}5555{cGf{}}{c{{n{e}}}{}{}}000000000{cC`{}}0000{{AGlAHl}d}`````99999{AGl{{AI`{{Bd{AHn}}}}}}````````````````````````````````````````````````{{cb}d{}}000000{{AIbc}AIb{{AG`{}{{Ib{{AFn{Ah}}}}}}MhMj}}<<<<<<<<<<<<<<<<<<<<{{AIbH`Hl}{{Bh{AIdAIf}}}}{{AIbAh}AIb}{BbBb}{AIhAIh}{AIjAIj}{AIdAId}{N`N`}{CfCf}{CdCd}{{ce}d{}{}}000000{AIhd}{AId{{n{dAIl}}}}0{{BbBb}l}{{CdCd}l}{{ce}l{}{}}0{AId{{n{{Bh{AIhDl}}AIl}}}}{{CfBb}Ah}{{BbLb}Cf}{Bb}{c{{n{Bb}}}A`}{c{{n{Cd}}}A`}{{}Cf}{{BbBb}Ah}{{AIhAIh}Ah}{{N`N`}Ah}{{CfCf}Ah}{{CdCd}Ah}{{ce}Ah{}{}}00000000000000{{BbAj}{{n{dAl}}}}0{{AIhAj}Db}{{AIjAj}Db}{{AIlAj}Db}0{{AIdAj}Db}{{AIfAj}Db}{{AIbAj}Db}{{N`Aj}Db}{{CfAj}Db}0{{CdAj}Db}0{cc{}}{HbBb}11{A@hAIl}2{AInAIl}{AJ`AIl}{AJbAIl}{AJdAIl}666666{c{{Dj{Cf}}}{{Cb{}{{Ab{Cd}}}}}}7777777{I`{{n{Bb}}}}{BbCf}{{CfBb}{{Bd{{Ol{Cd}}}}}}{{Bbc}dKb}`{{AIbAh}AIb}{ce{}{}}000000000{AIhAh}{AId{{n{AhAIl}}}}{CfAh}44{CfDl}{AIh{{Bd{Ad}}}}{AId{{Bd{Ad}}}}{cAIb{{AFb{Bb}}}}{Cf{{`{{Af{}{{Ab{{Ol{Cd}}}}}}}}}}{{AIhAh}{{Dj{d}}}}{{AIdAh}d}{{BbBb}{{Bd{l}}}}{{CdCd}{{Bd{l}}}}{AId{{n{HjAIl}}}}{{AIbAJf}AIb}{{AIbHb}AIb}{AIdAn}{AIf{{Bd{{n{{Bh{AIjDl}}AIl}}}}}}{N`Cf}{{AIhAnAAd}{{Dj{d}}}}{{AIdAnAAd}{{n{dAIl}}}}{{AIh{AC`{Ed}}}{{Dj{d}}}}0{{AId{AC`{Ed}}}{{n{dAIl}}}}{{Bbc}nBn}{{Cdc}nBn}`{{AIbAn}AIb}{{AIbc}AIb{{AFb{Bb}}}}{AIl{{Bd{AAn}}}}``{ce{}{}}000000{cGf{}}000{c{{n{e}}}{}{}}0000000000000000000{cC`{}}000000000`{Cf{{`{{Af{}{{Ab{Bb}}}}}}}}4444444444``````````{{cb}d{}}55{AJfAJf}{{ce}d{}{}}{{AJfAJf}Ah}{{ce}Ah{}{}}00{{AJfAj}Db}{cc{}}0;{AJh{{Bd{AJf}}}}<::9{AJfI`}=```````````````88{AJjd}{{AJlAJfAJn}{{Dj{d}}}}````??????????????????????``{{c{AK`{e}}}{}{}{}}{{AJl{AK`{AKb}}}c{}}`{{AJjAKd}AJl}{AJlAJl}{AKfAKf}==6{{}AKf}{{}{{AKh{ce}}}{AKjJn}{AKjJn}}{{}AKl}`````{{AJjAj}Db}{{AJlAj}Db}{{AKfAj}Db}{{AJnAj}Db}{{{AKh{ce}}Aj}Db{JnJn}{JnJn}}{{{AKn{ce}}Aj}Db{JnJn}{JnJn}}{{AL`Aj}Db}{{{ALb{ce}}Aj}Db{JnJn}{JnJn}}{{AKlAj}Db}{{{ALd{ce}}Aj}DbJnJn}{{ALfAj}Db}{cc{}}000000000000`{ALf{{Bd{Ad}}}}`0`{ce{}{}}0000000000{AJjAh}{AKf{{AEj{{Bh{I`Od}}}}}}`{AJj{{Bf{Ed}}}}`{{}I`}{H`AJj}```{{{Dn{AJn}}E`}{{Eb{{n{dA@h}}}}}}{{{Dn{AJn}}E`A@j}{{Eb{{ALh{d}}}}}}1{{{Dn{AJn}}E`{Bf{Ed}}}{{Eb{{n{DlA@h}}}}}}{{{Dn{AJn}}E`{Bf{ALj}}}{{Eb{{n{DlA@h}}}}}}{AJjAn}`{AJjH`}`````{ALf{{Dj{d}}}}{{{AKh{ce}}}{{Dj{ALf}}}JnJn}`>{ALf{{ALl{{Dj{d}}}}}}`>>{c{{n{e}}}{}{}}000000000000000000000{cC`{}}0000000000``{ce{}{}}0000000000````````````````````````````````````{{cb}d{}}00{ALn{{n{AM`AMb}}}}{c{{ABl{eg}}}{}{}ABn}{AMd{{AC`{Ed}}}}{ALn{{n{AMfAMb}}}}{ALn{{n{AMhAMb}}}}{ALn{{n{AMjAMb}}}}{ALn{{n{AMlAMb}}}}{ALn{{n{AMnAMb}}}}{ALn{{n{AN`AMb}}}}{ALn{{n{ANbAMb}}}}{ALn{{n{ANdAMb}}}}{ALn{{n{ANfAMb}}}}{AMd{{Bf{Ed}}}}{ALn{{n{ANhAMb}}}}{ALn{{n{ANjAMb}}}}{ALn{{n{ANlAMb}}}}{ALn{{n{ANnAMb}}}}{ALn{{n{AO`AMb}}}}{ALn{{n{AObAMb}}}}{ALnAOd}{ce{}{}}00000000000{AOfAOf}{AOhAOh}{AMdAMd}{{ce}d{}{}}00{{AMdAMd}l}{{ce}l{}{}}{{AOf{Bf{Ed}}}{{n{{Bh{AOjDl}}AOl}}}}{{}AOf}{{}AMd}{AMd{{Bf{Ed}}}}{ce{}{{ACf{ACd}}}}0{{AOhAOh}Ah}{{AMdAMd}Ah}{{ce}Ah{}{}}00000{ALnAM`}{ALnAMf}{ALnAMh}{ALnAMj}{ALnAMl}{ALnAMn}{ALnAN`}{ALnANb}{ALnANd}{ALnANf}{ALnANh}{ALnANj}{ALnANl}{ALnANn}{ALnAO`}{ALnAOb}{{AOfAj}{{n{dAl}}}}{{AOhAj}{{n{dAl}}}}{{AMdAj}{{n{dAl}}}}0{{ALnAj}{{n{dAl}}}}{{AOlAj}{{n{dAl}}}}0{{AOnAj}Db}0{cc{}}0{{{AC`{Ed}}}AMd}01{ANjALn}{ANlALn}{ANfALn}{AMhALn}{ANhALn}{AO`ALn}{AMfALn}{ANnALn}{AM`ALn}{AMlALn}{ANbALn}{AMjALn}{AMnALn}>{ANdALn}{AObALn}{AN`ALn}{cc{}}0000{AOf{{Bd{B@`}}}}{{AMdc}dKb}{ce{}{}}00000{{{Bf{Ed}}}Ah}{ALnAh}000000000000000`{{{Bf{Ed}}}{{n{AMdAOn}}}}{{{Bf{Ed}}}{{n{{Bh{AMdAd}}AOn}}}}{{AMdAMd}{{Bd{l}}}}{AMd{{Bl{Ed}}}}{{AMdAd}{{Bl{Ed}}}}777{cGf{}}00{c{{n{{ABl{eg}}{AEb{e}}}}}{}{}ABn}{c{{n{e}}}{}{}}0{Ed{{n{AOh}}}}1111111111{cC`{}}00000<<<<<<`````<<<<{Ad{{Dj{In}}}}{{B@bH`}{{G`{Fh}}}}{B@bHl}{{B@dAj}Db}{{B@bAj}Db}{cc{}}0{ce{}{}}0``{{B@bCjHj}{{Dj{d}}}}`{{}{{Dj{B@b}}}}{{}{{Dj{{Bh{CfBbALf}}}}}}{Gf{{Dj{B@b}}}}====;;44`{{cb}d{}}55{B@fB@f}{{ce}d{}{}}{c{{n{B@f}}}A`}{{B@fB@f}Ah}{{ce}Ah{}{}}00{{B@fAj}{{n{dAl}}}}0<{{{Bf{Ed}}}{{n{B@fB@h}}}}={I`{{n{B@f}}}}={f{{n{B@fADl}}}}{B@ff}{{B@fc}nBn}{B@f{{Bl{Ed}}}}{ce{}{}}{cGf{}}{c{{n{e}}}{}{}}0{cC`{}}3`{{H`{Bd{An}}{Bl{{Bl{Ed}}}}Ah}{{n{B@jB@l}}}}{{H`{Bl{{Bl{Ed}}}}Ah}{{n{B@nB@l}}}}`````5555555555{{BA`Aj}Db}{{BAbAj}Db}{{B@lAj}Db}0{{BAdAj}Db}0{{BAfAj}Db}0{cc{}}0{BAhB@l}11{BAjBAd}2{BAjBAf}{H`{{n{{Bh{BAlBAn}}B@l}}}}?????{BAl{{n{BA`BAd}}}}{BA`An}{B@l{{Bd{AAn}}}}{BAd{{Bd{AAn}}}}{BAf{{Bd{AAn}}}}{cGf{}}00{c{{n{e}}}{}{}}000000000{cC`{}}0000{{BA`BB`{Bf{Ed}}{Bf{Ed}}}{{n{dBAf}}}}{ce{}{}}0000````{{cb}d{}}11111111`{{{BBb{c}}}{{BBb{c}}}{IlIlMh}}{{ce}d{}{}}{{}{{BBd{c}}}{}}{{{ALl{c}}}e{}{}}{{{ALl{c}}}d{}}{{{BBb{c}}}d{IlMh}}{BBfd}{{{ALl{c}}Aj}DbJn}{{{BBb{c}}Aj}Db{JnIlMh}}{{BBfAj}Db}{{{BBd{c}}Aj}DbJn}{cc{}}{{{BBh{c}}}{{ALl{c}}}{}}{{{BBh{c}}}{{BBb{c}}}{IlMh}}2222`????{c{}{}}00{{ce}{{Oh{g}}}{}OjId}00{{I`BBj}BBf}{{{Dn{{ALl{c}}}}E`}{{Eb{e}}}{}{}}{{{Dn{{BBb{c}}}}E`}{{Eb{e}}}{IlMh}{}}{{{Dn{{BBd{c}}}}E`}{{Eb{e}}}{IdBBl}{}}{{cg}{{AA`{ei}}}{}{}{{Oj{}{{Ib{e}}}}}{{Id{}{{Ib{e}}}}}}00{ce{}{}}{c{{n{e}}}{}{}}0000000{{{Dn{c}}E`}Eb{}}00{cC`{}}0003333`33{{ce}{{BBn{ce}}}BC`BC`}{{{Dn{{BBn{ce}}}}Dl}dBCbBCb}{{{BBn{ce}}Aj}DbJnJn}{cc{}}{{{BBn{ce}}}{{Bh{ce}}}BC`BC`}{{{Dn{{BBn{ce}}}}}{{Bh{{Dn{c}}{Dn{e}}}}}BC`BC`}191{{{Dn{{BBn{ce}}}}E`}{{Eb{{ALh{{Bf{Ed}}}}}}}BCbBCb}{{{Dn{{BBn{ce}}}}E`A@j}{{Eb{{ALh{d}}}}}BC`BC`}::8;","D":"GEn","p":[[5,"Private",2365],[1,"unit"],[5,"NodeAddr",0,2366],[6,"AddrInfoOptions",2366],[5,"AddrInfo",0,2366],[6,"Ordering",2367],[6,"Result",2368],[10,"Deserializer",2369],[17,"Item"],[6,"SocketAddr",2370],[10,"Iterator",2371],[1,"bool"],[5,"Formatter",2372],[5,"Error",2372],[5,"PublicKey",905,2373],[5,"NodeInfo",283],[5,"RelayUrl",1462,2366],[6,"Option",2374],[1,"slice"],[1,"tuple"],[5,"ConnectionInfo",361],[5,"Vec",2375],[10,"Serializer",2376],[5,"TypeId",2377],[10,"IntoIterator",2378],[5,"RelayNode",1462,2379],[5,"RelayMap",1462,2379],[5,"Dialer",104],[8,"NodeId",0,2373],[5,"Chain2",2380],[10,"IntoStream",2381],[10,"Stream",2382],[8,"Result",2372],[5,"Merge2",2383],[5,"Endpoint",361],[5,"Connection",361,2384],[8,"Result",2385],[1,"usize"],[5,"Pin",2386],[5,"Context",2387],[6,"Poll",2388],[1,"u8"],[6,"NotKeyed",2389],[5,"RateLimiter",2390],[5,"RatelimitedStream",2391],[10,"DirectStateStore",2389],[10,"Clock",2392],[10,"ReasonablyRealtime",2393],[10,"RateLimitingMiddleware",2394],[5,"Jitter",2395],[5,"Zip2",2396],[5,"ConcurrentDiscovery",127],[10,"Discovery",127],[5,"DiscoveryItem",127],[5,"Peer",2397],[5,"Box",2398],[8,"Boxed",2399],[5,"DnsDiscovery",169],[5,"String",2400],[5,"LocalSwarmDiscovery",184],[5,"PkarrPublisher",197],[5,"PkarrResolver",197],[5,"PkarrRelayClient",197],[5,"SecretKey",905,2373],[5,"Url",2401],[5,"SignedPacket",2402],[8,"BoxStream",2382],[1,"u32"],[5,"Duration",2403],[8,"DnsResolver",258],[10,"ResolverExt",258],[1,"str"],[17,"Output"],[10,"Future",2404],[1,"u64"],[6,"IpAddr",2405],[10,"IntoName",2406],[10,"Clone",2407],[8,"TokioAsyncResolver",2408],[6,"IrohAttr",283],[5,"TxtAttrs",283],[5,"BTreeMap",2409],[10,"FromStr",2410],[10,"Display",2372],[10,"Hash",2411],[10,"Ord",2367],[10,"Debug",2372],[5,"Record",2412],[10,"Hasher",2411],[5,"BTreeSet",2413],[5,"Accept",361],[5,"AcceptBi",2384],[5,"AcceptUni",2384],[5,"TransportConfig",361,2414],[5,"Connecting",361],[5,"Builder",361],[1,"u16"],[6,"ReadError",361,2415],[6,"WriteError",361,2416],[5,"VarInt",361,2417],[6,"ConnectionError",361,2418],[6,"ControlMsg",361,2419],[5,"DirectAddrInfo",361,2419],[6,"ConnectionType",361,2419],[5,"DirectAddr",361,2420],[6,"DirectAddrType",361,2420],[10,"ControllerFactory",2421],[10,"Send",2422],[10,"Sync",2422],[10,"Controller",2421],[5,"ConnectionTypeStream",361,2423],[6,"RelayMode",1462,2379],[5,"DirectAddrsStream",361,2420],[5,"RecvStream",361,2415],[5,"SendStream",361,2416],[5,"ExportKeyingMaterialError",2424],[6,"ReadableError",2425],[5,"StreamId",2426],[6,"Close",2427],[5,"Error",2428],[5,"VarIntBoundsExceeded",2417],[10,"Any",2377],[5,"ZeroRttAccepted",2384],[5,"Join2",2429],[10,"IntoFuture",2430],[5,"Arc",2431],[5,"ServerConfig",2414],[5,"IdleTimeout",2414],[5,"MtuDiscoveryConfig",2414],[5,"OpenBi",2384],[5,"OpenUni",2384],[5,"Error",2432],[5,"ReadBuf",2433],[1,"i32"],[5,"UnknownStream",2384],[5,"Race2",2434],[5,"Chunk",2435],[5,"Bytes",2436],[5,"ReadDatagram",2384],[6,"ReadExactError",2415],[6,"ReadToEndError",2415],[6,"SendDatagramError",2384],[10,"Error",2437],[5,"ConnectionStats",2438],[6,"StoppedError",2416],[1,"f32"],[1,"u128"],[5,"WeakConnectionHandle",2384],[5,"Written",2439],[5,"BitSlice",2440],[10,"BitOrder",2441],[1,"array"],[5,"Signature",905,2442],[1,"char"],[10,"FromIterator",2378],[5,"SharedSecret",905,2443],[6,"KeyParsingError",905,2373],[5,"InternalSignature",2444],[5,"VerifyingKey",2445],[6,"HexOrBase32ParseError",2446],[5,"Error",2447],[5,"SigningKey",2448],[10,"CryptoRngCore",2449],[10,"Sized",2422],[10,"Buffer",2450],[5,"Error",2385],[5,"Zeroizing",2451],[6,"Error",2452],[6,"BitSpanError",2453],[5,"Signature",2454],[10,"AsRef",2455],[5,"MagicsockMetrics",1049],[5,"IntoIter",2456],[5,"UdpSocket",1110,2457],[5,"BorrowedFd",2458],[6,"IpFamily",1110,2459],[10,"Into",2455],[5,"UdpSocket",2460],[5,"LocalAddresses",1157],[5,"Ipv6Addr",2405],[5,"CallbackToken",1181,2461],[5,"Monitor",1181],[8,"Boxed",2462],[10,"Fn",2463],[5,"Metrics",1216,2464],[5,"Report",1216],[5,"RelayLatencies",1216],[5,"Client",1216],[5,"Receiver",2465],[5,"Client",1357],[5,"Pinger",1322],[6,"PingError",1322],[6,"SurgeError",2466],[5,"ProbeOutput",1357],[5,"Metrics",1357,2467],[5,"Config",1357],[5,"Service",1357],[8,"NonZeroU16",2468],[5,"SocketAddrV4",2370],[5,"Receiver",2469],[5,"HttpClientBuilder",1462],[5,"HttpClient",1462],[5,"HttpClientReceiver",1462],[5,"RelayConn",1462],[6,"ReceivedMessage",1462,2470],[6,"HttpClientError",1462],[6,"Error",2471],[5,"Error",2472],[5,"JoinError",2473],[5,"Error",2474],[6,"Protocol",1733],[5,"HeaderValue",2475],[5,"ServerActorTask",1758,2476],[5,"ClientConnHandler",1758,2476],[6,"MaybeTlsStreamServer",1758],[5,"Request",2477],[5,"Incoming",2478],[5,"HeaderMap",2479],[5,"Metrics",1758,2480],[5,"ServerConfig",1758],[10,"Default",2481],[5,"Limits",1758],[5,"RelayConfig",1758],[5,"StunConfig",1758],[5,"TlsConfig",1758],[6,"CertConfig",1758],[5,"Server",1758],[8,"Result",2432],[5,"IoSlice",2482],[5,"AbortingJoinHandle",2277],[6,"StunAttribute",1943,2483],[5,"AlternateServer",2484],[5,"StunError",2485],[5,"TransactionId",1943,2486],[5,"ErrorCode",2487],[6,"Fingerprint",2488],[5,"MappedAddress",2489],[6,"MessageIntegrity",2490],[6,"MessageIntegritySha256",2491],[5,"Nonce",2492],[5,"PasswordAlgorithm",2493],[5,"PasswordAlgorithms",2494],[5,"Realm",2495],[5,"Software",2496],[5,"Unknown",2497],[5,"UnknownAttributes",2498],[5,"UserHash",2499],[5,"UserName",2500],[5,"XorMappedAddress",2501],[5,"AttributeType",2483],[5,"MessageDecoder",1943,2502],[6,"MessageClass",1943,2503],[5,"StunMessage",2503],[5,"StunDecodeError",1943,2485],[6,"Error",1943],[5,"DecoderContext",2502],[5,"DnsPkarrServer",2150,2504],[5,"CleanupDropGuard",2150],[5,"NodeTicket",2180,2505],[6,"Error",2506],[5,"ClientConfig",2507],[5,"GenError",2211],[5,"ServerConfig",2508],[5,"P2pCertificate",2211],[5,"P2pExtension",2211],[5,"ParseError",2211],[5,"VerificationError",2211],[6,"Error",2509],[6,"Error",2510],[5,"Certificate",2511],[5,"PrivateKey",2511],[6,"SignatureScheme",2512],[5,"SharedAbortingJoinHandle",2277],[5,"MaybeFuture",2277],[5,"CancelOnDrop",2277],[5,"JoinHandle",2513],[5,"AbortHandle",2514],[10,"Unpin",2422],[5,"Chain",2347],[10,"AsyncRead",2515],[10,"AsyncBufRead",2516],[15,"ReceivedPacket",1728],[15,"Health",1728],[15,"ServerRestarting",1728],[15,"Manual",1940],[15,"LetsEncrypt",1940]],"r":[[0,2366],[1,361],[2,2366],[3,2373],[54,2517],[362,2366],[367,2384],[369,2418],[373,2419],[374,2423],[375,2419],[377,2420],[378,2419],[379,2420],[380,2420],[388,2366],[393,2415],[394,2415],[398,2416],[403,2414],[408,2417],[410,2416],[908,2373],[909,2373],[910,2518],[911,2373],[912,2373],[913,2443],[914,2442],[1110,2459],[1111,2457],[1181,2461],[1217,2464],[1359,2467],[1484,2519],[1495,2470],[1498,2379],[1499,2379],[1500,2379],[1502,2366],[1759,2476],[1764,2480],[1768,2476],[1953,2503],[1954,2502],[1966,2483],[1967,2485],[1969,2486],[2109,2520],[2147,2521],[2148,2521],[2149,2521],[2151,2504],[2156,2522],[2180,2505]],"b":[[40,"impl-From%3CPublicKey%3E-for-NodeAddr"],[41,"impl-From%3CNodeInfo%3E-for-NodeAddr"],[43,"impl-From%3C(PublicKey,+Option%3CRelayUrl%3E,+%26%5BSocketAddr%5D)%3E-for-NodeAddr"],[44,"impl-From%3CNodeInfo%3E-for-NodeAddr"],[311,"impl-Debug-for-IrohAttr"],[312,"impl-Display-for-IrohAttr"],[317,"impl-From%3CTxtAttrs%3CIrohAttr%3E%3E-for-NodeInfo"],[318,"impl-From%3C%26TxtAttrs%3CIrohAttr%3E%3E-for-NodeInfo"],[589,"impl-Display-for-ReadError"],[590,"impl-Debug-for-ReadError"],[592,"impl-Debug-for-WriteError"],[593,"impl-Display-for-WriteError"],[595,"impl-Debug-for-VarInt"],[596,"impl-Display-for-VarInt"],[598,"impl-Display-for-ConnectionError"],[599,"impl-Debug-for-ConnectionError"],[603,"impl-Debug-for-ControlMsg"],[604,"impl-Display-for-ControlMsg"],[607,"impl-Display-for-ConnectionType"],[608,"impl-Debug-for-ConnectionType"],[612,"impl-Display-for-DirectAddrType"],[613,"impl-Debug-for-DirectAddrType"],[617,"impl-From%3CConnectionError%3E-for-ReadError"],[618,"impl-From%3CReadableError%3E-for-ReadError"],[623,"impl-From%3CStreamId%3E-for-VarInt"],[624,"impl-From%3Cu32%3E-for-VarInt"],[625,"impl-From%3Cu16%3E-for-VarInt"],[627,"impl-From%3Cu8%3E-for-VarInt"],[630,"impl-From%3CClose%3E-for-ConnectionError"],[631,"impl-From%3CError%3E-for-ConnectionError"],[817,"impl-TryFrom%3Cu128%3E-for-VarInt"],[819,"impl-TryFrom%3Cusize%3E-for-VarInt"],[820,"impl-TryFrom%3Cu64%3E-for-VarInt"],[952,"impl-LowerHex-for-Signature"],[953,"impl-Display-for-Signature"],[954,"impl-UpperHex-for-Signature"],[955,"impl-Debug-for-Signature"],[957,"impl-Debug-for-PublicKey"],[958,"impl-Display-for-PublicKey"],[959,"impl-Debug-for-KeyParsingError"],[960,"impl-Display-for-KeyParsingError"],[961,"impl-Display-for-SecretKey"],[962,"impl-Debug-for-SecretKey"],[965,"impl-From%3C%26%5Bu8;+ed25519::::SignatureBytes::%7Bconstant%230%7D%5D%3E-for-Signature"],[966,"impl-From%3C%5Bu8;+ed25519::::SignatureBytes::%7Bconstant%230%7D%5D%3E-for-Signature"],[967,"impl-From%3CInternalSignature%3E-for-Signature"],[972,"impl-From%3CHexOrBase32ParseError%3E-for-KeyParsingError"],[973,"impl-From%3CError%3E-for-KeyParsingError"],[975,"impl-From%3CSigningKey%3E-for-SecretKey"],[976,"impl-From%3C%5Bu8;+32%5D%3E-for-SecretKey"],[1008,"impl-SignatureEncoding-for-Signature"],[1009,"impl-Signature"],[1022,"impl-TryFrom%3C%26Signature%3E-for-Signature"],[1023,"impl-TryFrom%3C%26%5Bu8%5D%3E-for-Signature"],[1024,"impl-TryFrom%3CSignature%3E-for-Signature"],[1027,"impl-TryFrom%3C%26%5Bu8%5D%3E-for-PublicKey"],[1028,"impl-TryFrom%3C%26%5Bu8;+32%5D%3E-for-PublicKey"],[1253,"impl-Display-for-Report"],[1254,"impl-Debug-for-Report"],[1334,"impl-Display-for-PingError"],[1335,"impl-Debug-for-PingError"],[1337,"impl-From%3CError%3E-for-PingError"],[1339,"impl-From%3CSurgeError%3E-for-PingError"],[1398,"impl-Display-for-ProbeOutput"],[1399,"impl-Debug-for-ProbeOutput"],[1588,"impl-Display-for-RelayUrl"],[1589,"impl-Debug-for-RelayUrl"],[1592,"impl-Debug-for-ClientError"],[1593,"impl-Display-for-ClientError"],[1598,"impl-Display-for-RelayMap"],[1599,"impl-Debug-for-RelayMap"],[1600,"impl-Display-for-RelayNode"],[1601,"impl-Debug-for-RelayNode"],[1606,"impl-From%3CError%3E-for-ClientError"],[1608,"impl-From%3CError%3E-for-ClientError"],[1609,"impl-From%3CError%3E-for-ClientError"],[1610,"impl-From%3CJoinError%3E-for-ClientError"],[1611,"impl-From%3CError%3E-for-ClientError"],[2050,"impl-Display-for-TransactionId"],[2051,"impl-Debug-for-TransactionId"],[2053,"impl-Display-for-StunDecodeError"],[2054,"impl-Debug-for-StunDecodeError"],[2055,"impl-Display-for-Error"],[2056,"impl-Debug-for-Error"],[2059,"impl-From%3C%26%5Bu8;+stun_rs::::types::%7Bimpl%2313%7D::%7Bconstant%230%7D%5D%3E-for-TransactionId"],[2060,"impl-From%3C%5Bu8;+stun_rs::::types::%7Bimpl%2314%7D::%7Bconstant%230%7D%5D%3E-for-TransactionId"],[2062,"impl-From%3CUnknown%3E-for-StunAttribute"],[2063,"impl-From%3CUnknownAttributes%3E-for-StunAttribute"],[2064,"impl-From%3CRealm%3E-for-StunAttribute"],[2065,"impl-From%3CFingerprint%3E-for-StunAttribute"],[2066,"impl-From%3CSoftware%3E-for-StunAttribute"],[2067,"impl-From%3CUserName%3E-for-StunAttribute"],[2068,"impl-From%3CErrorCode%3E-for-StunAttribute"],[2069,"impl-From%3CUserHash%3E-for-StunAttribute"],[2070,"impl-From%3CAlternateServer%3E-for-StunAttribute"],[2071,"impl-From%3CMessageIntegrity%3E-for-StunAttribute"],[2072,"impl-From%3CPasswordAlgorithm%3E-for-StunAttribute"],[2073,"impl-From%3CMappedAddress%3E-for-StunAttribute"],[2074,"impl-From%3CMessageIntegritySha256%3E-for-StunAttribute"],[2076,"impl-From%3CPasswordAlgorithms%3E-for-StunAttribute"],[2077,"impl-From%3CXorMappedAddress%3E-for-StunAttribute"],[2078,"impl-From%3CNonce%3E-for-StunAttribute"],[2191,"impl-Debug-for-NodeTicket"],[2192,"impl-Display-for-NodeTicket"],[2228,"impl-Display-for-GenError"],[2229,"impl-Debug-for-GenError"],[2230,"impl-Display-for-ParseError"],[2231,"impl-Debug-for-ParseError"],[2232,"impl-Display-for-VerificationError"],[2233,"impl-Debug-for-VerificationError"]],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAI4FxgACAAAABQABAAkADAAXAAEAHwALACwAAgAxAAEAPQABAEQAAQBKAAcAUwABAGsAAwBxAAAAcwAAAHcAAAB5AAYAgwAAAIYABgCPAAIAlAABAJ4AAACgAAkArQACALQABAC6AAIAwAAFAM0AEgDjAAIA7gAAAPAAAADyAAsA/wACAA8BAAAXAQAAIgEBACUBCQAwAQsAPgECAEcBAQBLAQAAVAEAAFgBAABbAQAAXQEMAJ4BCwC2AScA4AEZAP4BBQARAgIAFQIDAB8CAQAiAicATAIaAGoCAQBtAgAAcAICAHQCAAB3AgEAhAILAJcCAgC3AgEAugIBAL0CAQDSAgEA3gICAOMCBwDuAgUABgMDAA8DAgAYAxIALAMFADMDAAA2AyEAWQMnAIgDAQCUAwMAmQMqAMYDAgDLAwAAzQMBANADAQDWAwIA2gMCAN8DAADmAwAA6wMCAPADAQD1AwYA/QMLAAoECQAVBAQAGwQRAC4EAAAwBAEANgQDADsEGwBbBAEAZAQNAHMEAQB2BAAAfAQGAIQEAQCHBAoAkwQAAJkEBACgBA0AsAQBALcEBgC/BAEAxQQLANIEFwDuBAMAAQUAAAUFAAAOBRcAJwUDAC8FCwA8BQAAPgUAAEMFCgBTBQMAWAURAGsFAABtBQAAcQUKAIEFAwCKBQQAkgUBAJUFAACXBRMArQUIAOcFBgDvBRMABQYNABYGAwAdBgIAIQYhAEQGAABHBgAASQYDAFQGBwBeBgAAdwYBAIQGAQCJBgAAjAYoALcGCQDLBgkA1gYAANkGAwDeBgAA7gYBAPYGFQAOBwEAEgcDABcHAgAfBwoANQcBAEgHAABMBwAAUQcEAGQHIgCJBwoAuAcCALwHAADHBwAAzwcTAOQHAADmBwoAAQgIAAwIAQAPCAwAHQgCACIIAgAmCAAAQQgAAEQIHwBpCAMAcAgBAH0IBwCGCAsAkwgCAJkIBwCpCBEAvQgAAMAIAADCCAAAywgUAOEIBADqCAgA9AgKAAAJAQAFCQAACwkFABIJGQAtCQEAMAkBADgJBQA="}],\ ["iroh_net_bench",{"t":"FGGGPPPFPPPPNNNNNNNNNNNNNNNNHONNNNNNNNNNHNONNNNNNNNNNNNNNNONNNNNCONCOHCCNOONNNNNNNNNNNNNNNNNNNNNONNNNNSHHHHHHSHHHHHHFNNNNNNNNNNNNNNNNNNNNNNNFFFONNNNNNOOOONNOONNNNNNNNNNNONOOOHOOONNNNNNOONNNNNN","n":["ClientStats","Commands","ConnectionSelector","EndpointSelector","Iroh","Iroh","Iroh","Opt","Quinn","Quinn","Quinn","S2n","__clone_box","__clone_box","augment_args","augment_args_for_update","augment_subcommands","augment_subcommands_for_update","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","client_handler","clients","clone","clone","clone_into","clone_into","close","close","command","command","command_for_update","command_for_update","configure_tracing_subscriber","default","download_size","fmt","fmt","from","from","from","from","from","from_arg_matches","from_arg_matches","from_arg_matches_mut","from_arg_matches_mut","from_ref","from_ref","group_id","has_subcommand","initial_mtu","into","into","into","into","into","iroh","max_streams","print","quinn","read_unordered","rt","s2n","stats","stats","stats","streams","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","update_from_arg_matches","update_from_arg_matches","update_from_arg_matches_mut","update_from_arg_matches_mut","upload_size","vzip","vzip","vzip","vzip","vzip","ALPN","client","connect_client","handle_client_stream","server","server_endpoint","transport_config","ALPN","client","connect_client","handle_client_stream","server","server_endpoint","transport_config","Opt","__clone_box","augment_args","augment_args_for_update","borrow","borrow_mut","clone","clone_into","command","command_for_update","fmt","from","from_arg_matches","from_arg_matches_mut","from_ref","group_id","into","to_owned","try_from","try_into","type_id","update_from_arg_matches","update_from_arg_matches_mut","vzip","Stats","StreamStats","TransferResult","avg_chunk_size","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","chunk_size","chunk_time","chunks","chunks","default","default","duration","duration_hist","fmt","fmt","fmt","from","from","from","into","into","into","new","print","size","stream_finished","stream_stats","streams","throughput","throughput_bps","throughput_hist","total_duration","total_size","try_from","try_from","try_from","try_into","try_into","try_into","ttfb","ttfb_hist","type_id","type_id","type_id","vzip","vzip","vzip"],"q":[[0,"iroh_net_bench"],[102,"iroh_net_bench::iroh"],[109,"iroh_net_bench::quinn"],[116,"iroh_net_bench::s2n"],[140,"iroh_net_bench::stats"],[192,"dyn_clone::sealed"],[193,"clap_builder::builder::command"],[194,"anyhow"],[195,"core::fmt"],[196,"clap_builder::parser::matches::arg_matches"],[197,"clap_builder"],[198,"core::result"],[199,"clap_builder::util::id"],[200,"core::option"],[201,"tokio::runtime::runtime"],[202,"core::any"],[203,"iroh_base::node_addr"],[204,"iroh_net::endpoint"],[205,"iroh_quinn::connection"],[206,"iroh_quinn_proto::config"],[207,"core::net::socket_addr"],[208,"quinn::endpoint"],[209,"quinn::connection"],[210,"quinn_proto::config"],[211,"core::time"]],"i":[0,0,0,0,4,5,9,0,4,5,9,9,9,6,6,6,9,9,4,5,9,6,7,4,5,9,6,7,0,6,9,6,9,6,4,5,9,6,9,6,0,7,6,9,6,4,5,9,6,7,9,6,9,6,9,6,6,9,6,4,5,9,6,7,0,6,7,0,6,0,0,0,5,6,6,9,6,4,5,9,6,7,4,5,9,6,7,4,5,9,6,7,9,6,9,6,6,4,5,9,6,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,0,0,0,30,38,39,30,38,39,30,39,39,39,30,38,39,30,39,38,39,30,38,39,30,38,39,30,30,38,30,38,38,38,30,0,39,38,38,38,39,30,38,39,30,30,39,38,39,30,38,39,30],"f":"````````````{{cb}d{}}0{ff}000{ce{}{}}000000000{{hjl}{{A`{n}}}}`{AbAb}{ll}{{ce}d{}{}}0{h{{A`{d}}}}{{jAd{Ah{Af}}}d}{{}f}000{{}d}{{}n}`{{AbAj}Al}{{lAj}Al}{cc{}}0000{An{{Bb{AbB`}}}}{An{{Bb{lB`}}}}1022{{}{{Bf{Bd}}}}{BhBj}`{ce{}{}}0000``{{nBl}d}``{{}Bn}``{jd}``33{c{{Bb{e}}}{}{}}000000000{cC`{}}0000{{AbAn}{{Bb{dB`}}}}{{lAn}{{Bb{dB`}}}}10`77777`{{Cbl}{{A`{n}}}}{{Cbl}{{A`{{Ch{CdCf}}}}}}{{CfCjBj}{{A`{{Ch{ClCl}}}}}}{{Cdl}{{A`{d}}}}{{Bnl}{{Ch{CbCd}}}}{{BlCn}D`}`{{Dbl}{{A`{n}}}}{{Dbl}{{A`{{Ch{DdDf}}}}}}{{DfCjBj}{{A`{{Ch{ClCl}}}}}}{{Ddl}{{A`{d}}}}{{Bnl}{{Ch{DbDd}}}}{{BlCn}Dh}`{{cb}d{}}{ff}0{ce{}{}}0{DjDj}{{ce}d{}{}}{{}f}0{{DjAj}Al}{cc{}}{An{{Bb{DjB`}}}}01{{}{{Bf{Bd}}}}77{c{{Bb{e}}}{}{}}0{cC`{}}{{DjAn}{{Bb{dB`}}}}0:````::::::````{{}Dl}{{}Dn}``{{DlAj}Al}{{DnAj}Al}{{ClAj}Al}:::???{{E`CjE`Cj}Cl}{{DlBh}d}`{{DlCl}d}```{{E`Cj}Eb}```;;;;;;``:::{ce{}{}}00","D":"Df","p":[[5,"Private",192],[1,"unit"],[5,"Command",193],[6,"EndpointSelector",0],[6,"ConnectionSelector",0],[5,"Opt",0],[5,"ClientStats",0],[8,"Result",194],[6,"Commands",0],[1,"u32"],[1,"u8"],[1,"slice"],[5,"Formatter",195],[8,"Result",195],[5,"ArgMatches",196],[8,"Error",197],[6,"Result",198],[5,"Id",199],[6,"Option",200],[1,"str"],[1,"bool"],[1,"usize"],[5,"Runtime",201],[5,"TypeId",202],[5,"NodeAddr",203],[5,"Endpoint",204],[5,"Connection",205],[1,"tuple"],[1,"u64"],[5,"TransferResult",140],[1,"u16"],[5,"TransportConfig",206],[6,"SocketAddr",207],[5,"Endpoint",208],[5,"Connection",209],[5,"TransportConfig",210],[5,"Opt",116],[5,"Stats",140],[5,"StreamStats",140],[5,"Duration",211],[1,"f64"]],"r":[],"b":[],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAJ0AEAAAABwAHwALACwAAQAzAAcAQQAAAEMAAQBGAAMATAAUAGIABQBqAAAAbQABAHEAAAB0AAsAgQADAIYAGwCoABgA"}],\ ["iroh_relay",{"t":"GFFSPFPFNNNNNOONNNNNNNNNNNNHNOONCNNNNNNNNNNNNOONNNNNNOOOONNNNNNNNNNNNNNNNNNNNNNONONONNNNNNONHHHOOCNOONONNNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHHHCHFNONNNNNONNNNOONNONNNNN","n":["CertMode","Cli","Config","DEV_MODE_HTTP_PORT","LetsEncrypt","Limits","Manual","TlsConfig","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","accept_conn_burst","accept_conn_limit","augment_args","augment_args_for_update","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build_relay_config","cert_dir","cert_dir","cert_mode","cert_path","cfg_defaults","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","command","command_for_update","config_path","contact","default","default","deserialize","deserialize","deserialize","deserialize","dev","enable_metrics","enable_relay","enable_stun","eq","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from_arg_matches","from_arg_matches_mut","from_ref","from_ref","from_ref","from_ref","from_ref","group_id","hostname","http_bind_addr","http_bind_addr","https_bind_addr","https_bind_addr","into","into","into","into","into","key_path","limits","load","load_certs","load_secret_key","main","manual_cert_path","manual_key_path","metrics","metrics_bind_addr","metrics_bind_addr","prod_tls","read_from_file","secret_key","serialize","serialize","serialize","serialize","stun_bind_addr","stun_bind_addr","tls","to_owned","to_owned","to_owned","to_owned","to_owned","to_possible_value","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","update_from_arg_matches","update_from_arg_matches_mut","value_variants","vzip","vzip","vzip","vzip","vzip","write_to_file","enable_metrics","enable_relay","enable_stun","tls_config","prod_tls","StunMetrics","__clone_box","bad_requests","borrow","borrow_mut","clone","clone_into","default","failures","fmt","from","from_ref","into","ipv4_success","ipv6_success","iter","name","requests","to_owned","try_from","try_into","type_id","vzip"],"q":[[0,"iroh_relay"],[140,"iroh_relay::cfg_defaults"],[144,"iroh_relay::cfg_defaults::tls_config"],[145,"iroh_relay::metrics"],[168,"dyn_clone::sealed"],[169,"clap_builder::builder::command"],[170,"std::io::error"],[171,"iroh_net::relay::server"],[172,"anyhow"],[173,"std::path"],[174,"core::result"],[175,"serde::de"],[176,"core::fmt"],[177,"clap_builder::parser::matches::arg_matches"],[178,"clap_builder"],[179,"clap_builder::util::id"],[180,"core::option"],[181,"core::net::socket_addr"],[182,"rustls::key"],[183,"alloc::vec"],[184,"core::convert"],[185,"serde::ser"],[186,"clap_builder::builder::possible_value"],[187,"core::any"],[188,"alloc::vec::into_iter"]],"i":[0,0,0,0,11,0,11,0,10,11,4,8,12,12,12,10,10,10,11,4,8,12,10,11,4,8,12,0,8,8,8,8,0,10,11,4,8,12,10,11,4,8,12,10,10,10,8,4,12,11,4,8,12,10,4,4,4,11,11,11,11,10,11,4,8,12,10,11,4,8,12,10,10,10,11,4,8,12,10,8,4,4,8,8,10,11,4,8,12,8,4,4,0,0,0,8,8,0,4,4,8,4,4,11,4,8,12,4,4,4,10,11,4,8,12,11,10,11,4,8,12,10,11,4,8,12,10,11,4,8,12,10,10,11,10,11,4,8,12,4,0,0,0,0,0,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32],"f":"````````{{cb}d{}}0000``{ff}0{ce{}{}}000000000{h{{n{{l{j}}}}}}{A`Ab}``0`{AdAd}{AfAf}{hh}{A`A`}{AhAh}{{ce}d{}{}}0000{{}f}0``{{}h}{{}Ah}{c{{Aj{Af}}}Al}{c{{Aj{h}}}Al}{c{{Aj{A`}}}Al}{c{{Aj{Ah}}}Al}````{{AfAf}An}{{ce}An{}{}}00{{AdB`}Bb}{{AfB`}Bb}{{hB`}Bb}{{A`B`}Bb}{{AhB`}Bb}{cc{}}0000{Bd{{Aj{AdBf}}}}011111{{}{{Bj{Bh}}}}`{hBl}`{{A`h}Bl}`{ce{}{}}0000{A`Ab}`{Ad{{n{h}}}}{c{{n{{C`{Bn}}}}}{{Cd{Cb}}}}{c{{n{Cf}}}{{Cd{Cb}}}}{{}{{n{d}}}}```7``{c{{n{h}}}{{Cd{Cb}}}}`{{Afc}AjCh}{{hc}AjCh}{{A`c}AjCh}{{Ahc}AjCh}<``:::::{Af{{Bj{Cj}}}}{c{{Aj{e}}}{}{}}000000000{cCl{}}0000{{AdBd}{{Aj{dBf}}}}0{{}{{Cn{Af}}}}?????{{hc}{{n{d}}}{{Cd{Cb}}}}{{}An}00`0`{{cb}d{}}`{ce{}{}}0{D`D`}{{ce}d{}{}}{{}D`}`{{D`B`}Bb}{cc{}}05``{D`{{Dh{{Df{DbDd}}}}}}{{}Db}`7>>=7","D":"El","p":[[5,"Private",168],[1,"unit"],[5,"Command",169],[5,"Config",0],[5,"Error",170],[5,"ServerConfig",171],[8,"Result",172],[5,"TlsConfig",0],[5,"PathBuf",173],[5,"Cli",0],[6,"CertMode",0],[5,"Limits",0],[6,"Result",174],[10,"Deserializer",175],[1,"bool"],[5,"Formatter",176],[8,"Result",176],[5,"ArgMatches",177],[8,"Error",178],[5,"Id",179],[6,"Option",180],[6,"SocketAddr",181],[5,"Certificate",182],[5,"Vec",183],[5,"Path",173],[10,"AsRef",184],[5,"PrivateKey",182],[10,"Serializer",185],[5,"PossibleValue",186],[5,"TypeId",187],[1,"slice"],[5,"StunMetrics",145],[1,"str"],[10,"Any",187],[1,"tuple"],[5,"IntoIter",188]],"r":[],"b":[],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAHoAGAABAAAABQAIABAACwAdAAAAIAAAACIACwAwAAUAOgAIAEgABwBRAAAAUwAAAFoAAABcAAMAYgABAGYAAABoAAQAbwAcAI0ABACTAAAAlQAEAJsAAACdAAAAoQABAKQABAA="}],\ ["iroh_test",{"t":"FQNNNNCNCNNNNHHHHH","n":["CallOnDrop","assert_eq_hex","borrow","borrow_mut","drop","from","hexdump","into","logging","new","try_from","try_into","type_id","parse_hexdump","print_hexdump","setup","setup_multithreaded","testing_subscriber"],"q":[[0,"iroh_test"],[13,"iroh_test::hexdump"],[15,"iroh_test::logging"],[18,"core::ops::function"],[19,"core::result"],[20,"core::any"],[21,"alloc::vec"],[22,"anyhow"],[23,"alloc::string"],[24,"core::convert"],[25,"tracing_core::dispatcher"],[26,"tracing_core::subscriber"]],"i":[0,0,1,1,1,1,0,1,0,1,1,1,1,0,0,0,0,0],"f":"``{ce{}{}}0{bd}{cc{}}`2`{cbf}{c{{h{e}}}{}{}}0{cj{}}{l{{Ab{{A`{n}}}}}}{{ce}Ad{{Ah{{Af{n}}}}}{{Ah{{Af{Aj}}}}}}{{}Al}{{}d}{{}{{`{An}}}}","D":"Ad","p":[[5,"CallOnDrop",0],[1,"unit"],[10,"FnOnce",18],[6,"Result",19],[5,"TypeId",20],[1,"str"],[1,"u8"],[5,"Vec",21],[8,"Result",22],[5,"String",23],[1,"slice"],[10,"AsRef",24],[1,"usize"],[5,"DefaultGuard",25],[10,"Subscriber",26]],"r":[],"b":[],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAAgABAABAAAAAwACAAcAAAAKAAMA"}]\ diff --git a/pr/2582/docs/src-files.js b/pr/2582/docs/src-files.js index ac503a328e..b25e22fbb8 100644 --- a/pr/2582/docs/src-files.js +++ b/pr/2582/docs/src-files.js @@ -7,7 +7,7 @@ var srcIndex = new Map(JSON.parse('[\ ["iroh_docs",["",[["engine",[],["gossip.rs","live.rs","state.rs"]],["net",[],["codec.rs"]],["store",[["fs",[],["bounds.rs","migrate_v1_v2.rs","migrations.rs","query.rs","ranges.rs","tables.rs"]]],["fs.rs","pubkeys.rs","util.rs"]]],["actor.rs","engine.rs","heads.rs","keys.rs","lib.rs","metrics.rs","net.rs","ranger.rs","store.rs","sync.rs","ticket.rs"]]],\ ["iroh_gossip",["",[["net",[],["util.rs"]],["proto",[],["hyparview.rs","plumtree.rs","state.rs","topic.rs","util.rs"]]],["dispatcher.rs","lib.rs","metrics.rs","net.rs","proto.rs"]]],\ ["iroh_metrics",["",[],["core.rs","lib.rs","metrics.rs","service.rs"]]],\ -["iroh_net",["",[["discovery",[],["dns.rs","local_swarm_discovery.rs","pkarr.rs"]],["dns",[],["node_info.rs"]],["endpoint",[],["rtt_actor.rs"]],["magicsock",[["node_map",[],["best_addr.rs","node_state.rs"]]],["metrics.rs","node_map.rs","relay_actor.rs","timer.rs","udp_conn.rs"]],["net",[["interfaces",[],["linux.rs"]],["netmon",[],["actor.rs","linux.rs"]]],["interfaces.rs","ip.rs","ip_family.rs","netmon.rs","udp.rs"]],["netcheck",[["reportgen",[],["hairpin.rs","probes.rs"]]],["metrics.rs","reportgen.rs"]],["portmapper",[["nat_pmp",[["protocol",[],["request.rs","response.rs"]]],["protocol.rs"]],["pcp",[["protocol",[],["opcode_data.rs","request.rs","response.rs"]]],["protocol.rs"]]],["current_mapping.rs","mapping.rs","metrics.rs","nat_pmp.rs","pcp.rs","upnp.rs"]],["relay",[["client",[],["conn.rs","streams.rs"]],["server",[],["actor.rs","client_conn.rs","clients.rs","http_server.rs","metrics.rs","streams.rs","types.rs"]]],["client.rs","codec.rs","http.rs","map.rs","server.rs"]],["tls",[],["certificate.rs","verifier.rs"]],["util",[],["chain.rs"]]],["defaults.rs","dialer.rs","disco.rs","discovery.rs","dns.rs","endpoint.rs","lib.rs","magicsock.rs","metrics.rs","net.rs","netcheck.rs","ping.rs","portmapper.rs","relay.rs","stun.rs","test_utils.rs","ticket.rs","tls.rs","util.rs"]]],\ +["iroh_net",["",[["discovery",[],["dns.rs","local_swarm_discovery.rs","pkarr.rs"]],["dns",[],["node_info.rs"]],["endpoint",[],["rtt_actor.rs"]],["magicsock",[["node_map",[],["best_addr.rs","node_state.rs","udp_paths.rs"]]],["metrics.rs","node_map.rs","relay_actor.rs","timer.rs","udp_conn.rs"]],["net",[["interfaces",[],["linux.rs"]],["netmon",[],["actor.rs","linux.rs"]]],["interfaces.rs","ip.rs","ip_family.rs","netmon.rs","udp.rs"]],["netcheck",[["reportgen",[],["hairpin.rs","probes.rs"]]],["metrics.rs","reportgen.rs"]],["portmapper",[["nat_pmp",[["protocol",[],["request.rs","response.rs"]]],["protocol.rs"]],["pcp",[["protocol",[],["opcode_data.rs","request.rs","response.rs"]]],["protocol.rs"]]],["current_mapping.rs","mapping.rs","metrics.rs","nat_pmp.rs","pcp.rs","upnp.rs"]],["relay",[["client",[],["conn.rs","streams.rs"]],["server",[],["actor.rs","client_conn.rs","clients.rs","http_server.rs","metrics.rs","streams.rs","types.rs"]]],["client.rs","codec.rs","http.rs","map.rs","server.rs"]],["tls",[],["certificate.rs","verifier.rs"]],["util",[],["chain.rs"]]],["defaults.rs","dialer.rs","disco.rs","discovery.rs","dns.rs","endpoint.rs","lib.rs","magicsock.rs","metrics.rs","net.rs","netcheck.rs","ping.rs","portmapper.rs","relay.rs","stun.rs","test_utils.rs","ticket.rs","tls.rs","util.rs"]]],\ ["iroh_net_bench",["",[],["iroh.rs","lib.rs","quinn.rs","s2n.rs","stats.rs"]]],\ ["iroh_relay",["",[],["iroh-relay.rs"]]],\ ["iroh_test",["",[],["hexdump.rs","lib.rs","logging.rs"]]]\ diff --git a/pr/2582/docs/src/iroh/client/node.rs.html b/pr/2582/docs/src/iroh/client/node.rs.html index b8639a3913..e7bb8d2e8c 100644 --- a/pr/2582/docs/src/iroh/client/node.rs.html +++ b/pr/2582/docs/src/iroh/client/node.rs.html @@ -258,7 +258,7 @@ /// // Create an iroh node: /// let iroh = iroh::node::Node::memory().spawn().await?; /// // Create a node client, a client that gives you access to `node` subsystem -/// let node_client = node.client().node(); +/// let node_client = iroh.client().node(); /// // Get the node status, including its node id, addresses, the version of iroh /// // it is running, and more. /// let status = node_client.status().await?; @@ -291,7 +291,7 @@ /// // Create an iroh node: /// let iroh = iroh::node::Node::memory().spawn().await?; /// // Create a client: -/// let client = node.client(); +/// let client = iroh.client(); /// // Get the node status, including its node id, addresses, the version of iroh /// // it is running, and more. /// let status = client.status().await?; diff --git a/pr/2582/docs/src/iroh_net/magicsock.rs.html b/pr/2582/docs/src/iroh_net/magicsock.rs.html index 531a9bdfb7..fc25199f6c 100644 --- a/pr/2582/docs/src/iroh_net/magicsock.rs.html +++ b/pr/2582/docs/src/iroh_net/magicsock.rs.html @@ -3536,6 +3536,9 @@ 3536 3537 3538 +3539 +3540 +3541
    //! Implements a socket that can change its communication path while in use, actively searching for the best way to communicate.
     //!
     //! Based on tailscale/wgengine/magicsock
    @@ -4037,7 +4040,10 @@
             let dest = QuicMappedAddr(dest);
     
             let mut transmits_sent = 0;
    -        match self.node_map.get_send_addrs(dest) {
    +        match self
    +            .node_map
    +            .get_send_addrs(dest, self.ipv6_reported.load(Ordering::Relaxed))
    +        {
                 Some((public_key, udp_addr, relay_url, mut msgs)) => {
                     let mut pings_sent = false;
                     // If we have pings to send, we *have* to send them out first.
    diff --git a/pr/2582/docs/src/iroh_net/magicsock/node_map.rs.html b/pr/2582/docs/src/iroh_net/magicsock/node_map.rs.html
    index 8ed2d926d7..828b9a338c 100644
    --- a/pr/2582/docs/src/iroh_net/magicsock/node_map.rs.html
    +++ b/pr/2582/docs/src/iroh_net/magicsock/node_map.rs.html
    @@ -793,6 +793,8 @@
     793
     794
     795
    +796
    +797
     
    use std::{
         collections::{hash_map::Entry, HashMap},
         hash::Hash,
    @@ -825,6 +827,7 @@
     
     mod best_addr;
     mod node_state;
    +mod udp_paths;
     
     pub use node_state::{ConnectionType, ControlMsg, DirectAddrInfo, NodeInfo};
     pub(super) use node_state::{DiscoPingPurpose, PingAction, PingRole, SendPing};
    @@ -981,6 +984,7 @@
         pub(super) fn get_send_addrs(
             &self,
             addr: QuicMappedAddr,
    +        have_ipv6: bool,
         ) -> Option<(
             PublicKey,
             Option<SocketAddr>,
    @@ -990,7 +994,7 @@
             let mut inner = self.inner.lock();
             let ep = inner.get_mut(NodeStateKey::QuicMappedAddr(addr))?;
             let public_key = *ep.public_key();
    -        let (udp_addr, relay_url, msgs) = ep.get_send_addrs();
    +        let (udp_addr, relay_url, msgs) = ep.get_send_addrs(have_ipv6);
             Some((public_key, udp_addr, relay_url, msgs))
         }
     
    diff --git a/pr/2582/docs/src/iroh_net/magicsock/node_map/node_state.rs.html b/pr/2582/docs/src/iroh_net/magicsock/node_map/node_state.rs.html
    index 4327b314a1..d01b526208 100644
    --- a/pr/2582/docs/src/iroh_net/magicsock/node_map/node_state.rs.html
    +++ b/pr/2582/docs/src/iroh_net/magicsock/node_map/node_state.rs.html
    @@ -1839,61 +1839,10 @@
     1839
     1840
     1841
    -1842
    -1843
    -1844
    -1845
    -1846
    -1847
    -1848
    -1849
    -1850
    -1851
    -1852
    -1853
    -1854
    -1855
    -1856
    -1857
    -1858
    -1859
    -1860
    -1861
    -1862
    -1863
    -1864
    -1865
    -1866
    -1867
    -1868
    -1869
    -1870
    -1871
    -1872
    -1873
    -1874
    -1875
    -1876
    -1877
    -1878
    -1879
    -1880
    -1881
    -1882
    -1883
    -1884
    -1885
    -1886
    -1887
    -1888
    -1889
    -1890
    -
    use std::{
    -    collections::{btree_map::Entry, BTreeMap, BTreeSet, HashMap},
    -    hash::Hash,
    -    net::{IpAddr, SocketAddr},
    -    time::{Duration, Instant},
    -};
    +
    use std::collections::{btree_map::Entry, BTreeMap, BTreeSet, HashMap};
    +use std::hash::Hash;
    +use std::net::{IpAddr, SocketAddr};
    +use std::time::{Duration, Instant};
     
     use iroh_metrics::inc;
     use serde::{Deserialize, Serialize};
    @@ -1901,21 +1850,17 @@
     use tracing::{debug, event, info, instrument, trace, warn, Level};
     use watchable::{Watchable, WatcherStream};
     
    -use crate::{
    -    disco::{self, SendAddr},
    -    endpoint::AddrInfo,
    -    key::PublicKey,
    -    magicsock::{Timer, HEARTBEAT_INTERVAL},
    -    net::ip::is_unicast_link_local,
    -    relay::RelayUrl,
    -    stun,
    -    util::relay_only_mode,
    -    NodeAddr, NodeId,
    -};
    +use crate::disco::{self, SendAddr};
    +use crate::endpoint::AddrInfo;
    +use crate::key::PublicKey;
    +use crate::magicsock::{ActorMessage, MagicsockMetrics, QuicMappedAddr, Timer, HEARTBEAT_INTERVAL};
    +use crate::net::ip::is_unicast_link_local;
    +use crate::relay::RelayUrl;
    +use crate::util::relay_only_mode;
    +use crate::{stun, NodeAddr, NodeId};
     
    -use crate::magicsock::{metrics::Metrics as MagicsockMetrics, ActorMessage, QuicMappedAddr};
    -
    -use super::best_addr::{self, BestAddr, ClearReason, Source};
    +use super::best_addr::{self, ClearReason, Source};
    +use super::udp_paths::{NodeUdpPaths, UdpSendAddr};
     use super::IpPort;
     
     /// Number of addresses that are not active that we keep around per node.
    @@ -2006,10 +1951,7 @@
         ///
         /// The fallback/bootstrap path, if non-zero (non-zero for well-behaved clients).
         relay_url: Option<(RelayUrl, PathState)>,
    -    /// Best non-relay path, i.e. a UDP address.
    -    best_addr: BestAddr,
    -    /// State for each of this node's direct paths.
    -    direct_addr_state: BTreeMap<IpPort, PathState>,
    +    udp_paths: NodeUdpPaths,
         sent_pings: HashMap<stun::TransactionId, SentPing>,
         /// Last time this node was used.
         ///
    @@ -2059,9 +2001,8 @@
                         PathState::new(options.node_id, SendAddr::Relay(url)),
                     )
                 }),
    -            best_addr: Default::default(),
    +            udp_paths: NodeUdpPaths::new(),
                 sent_pings: HashMap::new(),
    -            direct_addr_state: BTreeMap::new(),
                 last_used: options.active.then(Instant::now),
                 last_call_me_maybe: None,
                 conn_type: Watchable::new(ConnectionType::None),
    @@ -2093,7 +2034,8 @@
             let conn_type = self.conn_type.get();
             let latency = match conn_type {
                 ConnectionType::Direct(addr) => self
    -                .direct_addr_state
    +                .udp_paths
    +                .paths
                     .get(&addr.into())
                     .and_then(|state| state.latency()),
                 ConnectionType::Relay(ref url) => self
    @@ -2103,7 +2045,8 @@
                     .and_then(|(_, state)| state.latency()),
                 ConnectionType::Mixed(addr, ref url) => {
                     let addr_latency = self
    -                    .direct_addr_state
    +                    .udp_paths
    +                    .paths
                         .get(&addr.into())
                         .and_then(|state| state.latency());
                     let relay_latency = self
    @@ -2116,7 +2059,8 @@
                 ConnectionType::None => None,
             };
             let addrs = self
    -            .direct_addr_state
    +            .udp_paths
    +            .paths
                 .iter()
                 .map(|(addr, endpoint_state)| DirectAddrInfo {
                     addr: SocketAddr::from(*addr),
    @@ -2151,31 +2095,34 @@
         /// Returns the address(es) that should be used for sending the next packet.
         ///
         /// This may return to send on one, both or no paths.
    -    fn addr_for_send(&mut self, now: &Instant) -> (Option<SocketAddr>, Option<RelayUrl>) {
    +    fn addr_for_send(
    +        &mut self,
    +        now: &Instant,
    +        have_ipv6: bool,
    +    ) -> (Option<SocketAddr>, Option<RelayUrl>) {
             if relay_only_mode() {
                 debug!("in `DEV_relay_ONLY` mode, giving the relay address as the only viable address for this endpoint");
                 return (None, self.relay_url());
             }
    -        // Update our best addr from candidate addresses (only if it is empty and if we have
    -        // recent pongs).
    -        self.assign_best_addr_from_candidates_if_empty();
    -        let (best_addr, relay_url) = match self.best_addr.state(*now) {
    -            best_addr::State::Valid(best_addr) => {
    +        let (best_addr, relay_url) = match self.udp_paths.send_addr(*now, have_ipv6) {
    +            UdpSendAddr::Valid(addr) => {
                     // If we have a valid address we use it.
    -                trace!(addr = %best_addr.addr, latency = ?best_addr.latency,
    -                       "best_addr is set and valid, use best_addr only");
    -                (Some(best_addr.addr), None)
    +                trace!(%addr, "UdpSendAddr is valid, use it");
    +                (Some(addr), None)
                 }
    -            best_addr::State::Outdated(best_addr) => {
    +            UdpSendAddr::Outdated(addr) => {
                     // If the address is outdated we use it, but send via relay at the same time.
                     // We also send disco pings so that it will become valid again if it still
                     // works (i.e. we don't need to holepunch again).
    -                trace!(addr = %best_addr.addr, latency = ?best_addr.latency,
    -                       "best_addr is set but outdated, use best_addr and relay");
    -                (Some(best_addr.addr), self.relay_url())
    +                trace!(%addr, "UdpSendAddr is outdated, use it together with relay");
    +                (Some(addr), self.relay_url())
                 }
    -            best_addr::State::Empty => {
    -                trace!("best_addr is unset, use relay");
    +            UdpSendAddr::Unconfirmed(addr) => {
    +                trace!(%addr, "UdpSendAddr is unconfirmed, use it together with relay");
    +                (Some(addr), self.relay_url())
    +            }
    +            UdpSendAddr::None => {
    +                trace!("No UdpSendAddr, use relay");
                     (None, self.relay_url())
                 }
             };
    @@ -2197,46 +2144,31 @@
     
                 // Update some metrics
                 match (prev_typ, typ) {
    -                (ConnectionType::Direct(_), ConnectionType::Direct(_)) => (),
    -                (ConnectionType::Direct(_), ConnectionType::Relay(_)) => {
    -                    inc!(MagicsockMetrics, num_direct_conns_removed);
    -                    inc!(MagicsockMetrics, num_relay_conns_added);
    -                }
    -                (ConnectionType::Direct(_), ConnectionType::Mixed(_, _)) => {
    -                    inc!(MagicsockMetrics, num_direct_conns_removed);
    -                    inc!(MagicsockMetrics, num_relay_conns_added);
    -                }
    -                (ConnectionType::Direct(_), ConnectionType::None) => {
    -                    inc!(MagicsockMetrics, num_direct_conns_removed)
    -                }
    -                (ConnectionType::Relay(_), ConnectionType::Direct(_)) => {
    +                (ConnectionType::Relay(_), ConnectionType::Direct(_))
    +                | (ConnectionType::Mixed(_, _), ConnectionType::Direct(_)) => {
                         inc!(MagicsockMetrics, num_direct_conns_added);
                         inc!(MagicsockMetrics, num_relay_conns_removed);
                     }
    -                (ConnectionType::Relay(_), ConnectionType::Relay(_)) => (),
    -                (ConnectionType::Relay(_), ConnectionType::Mixed(_, _)) => (),
    -                (ConnectionType::Relay(_), ConnectionType::None) => {
    -                    inc!(MagicsockMetrics, num_relay_conns_removed)
    -                }
    -                (ConnectionType::Mixed(_, _), ConnectionType::Direct(_)) => {
    -                    inc!(MagicsockMetrics, num_direct_conns_added);
    -                    inc!(MagicsockMetrics, num_relay_conns_removed);
    -                }
    -                (ConnectionType::Mixed(_, _), ConnectionType::Relay(_)) => (),
    -                (ConnectionType::Mixed(_, _), ConnectionType::Mixed(_, _)) => (),
    -                (ConnectionType::Mixed(_, _), ConnectionType::None) => {
    -                    inc!(MagicsockMetrics, num_relay_conns_removed)
    +                (ConnectionType::Direct(_), ConnectionType::Relay(_))
    +                | (ConnectionType::Direct(_), ConnectionType::Mixed(_, _)) => {
    +                    inc!(MagicsockMetrics, num_direct_conns_removed);
    +                    inc!(MagicsockMetrics, num_relay_conns_added);
                     }
                     (ConnectionType::None, ConnectionType::Direct(_)) => {
                         inc!(MagicsockMetrics, num_direct_conns_added)
                     }
    -                (ConnectionType::None, ConnectionType::Relay(_)) => {
    +                (ConnectionType::Direct(_), ConnectionType::None) => {
    +                    inc!(MagicsockMetrics, num_direct_conns_removed)
    +                }
    +                (ConnectionType::None, ConnectionType::Relay(_))
    +                | (ConnectionType::None, ConnectionType::Mixed(_, _)) => {
                         inc!(MagicsockMetrics, num_relay_conns_added)
                     }
    -                (ConnectionType::None, ConnectionType::Mixed(_, _)) => {
    -                    inc!(MagicsockMetrics, num_relay_conns_added)
    +                (ConnectionType::Relay(_), ConnectionType::None)
    +                | (ConnectionType::Mixed(_, _), ConnectionType::None) => {
    +                    inc!(MagicsockMetrics, num_relay_conns_removed)
                     }
    -                (ConnectionType::None, ConnectionType::None) => (),
    +                _ => (),
                 }
             }
             (best_addr, relay_url)
    @@ -2246,7 +2178,7 @@
         ///
         /// If this is also the best address, it will be cleared as well.
         pub(super) fn remove_direct_addr(&mut self, ip_port: &IpPort, reason: ClearReason) {
    -        let Some(state) = self.direct_addr_state.remove(ip_port) else {
    +        let Some(state) = self.udp_paths.paths.remove(ip_port) else {
                 return;
             };
     
    @@ -2255,55 +2187,11 @@
                 None => debug!(%ip_port, last_seen=%"never", ?reason, "pruning address"),
             }
     
    -        self.best_addr
    -            .clear_if_equals((*ip_port).into(), reason, self.relay_url.is_some());
    -    }
    -
    -    /// Fixup best_adrr from candidates.
    -    ///
    -    /// If somehow we end up in a state where we failed to set a best_addr, while we do have
    -    /// valid candidates, this will chose a candidate and set best_addr again.  Most likely
    -    /// this is a bug elsewhere though.
    -    fn assign_best_addr_from_candidates_if_empty(&mut self) {
    -        if !self.best_addr.is_empty() {
    -            return;
    -        }
    -
    -        // The highest acceptable latency for an endpoint path.  If the latency is higher
    -        // then this the path will be ignored.
    -        const MAX_LATENCY: Duration = Duration::from_secs(60 * 60);
    -        let best_pong = self
    -            .direct_addr_state
    -            .iter()
    -            .fold(None, |best_pong, (ipp, state)| {
    -                let best_latency = best_pong
    -                    .map(|p: &PongReply| p.latency)
    -                    .unwrap_or(MAX_LATENCY);
    -                match state.recent_pong() {
    -                    // This pong is better if it has a lower latency, or if it has the same
    -                    // latency but on an IPv6 path.
    -                    Some(pong)
    -                        if pong.latency < best_latency
    -                            || (pong.latency == best_latency && ipp.ip().is_ipv6()) =>
    -                    {
    -                        Some(pong)
    -                    }
    -                    _ => best_pong,
    -                }
    -            });
    -
    -        // If we found a candidate, set to best addr
    -        if let Some(pong) = best_pong {
    -            if let SendAddr::Udp(addr) = pong.from {
    -                warn!(%addr, "No best_addr was set, choose candidate with lowest latency");
    -                self.best_addr.insert_if_better_or_reconfirm(
    -                    addr,
    -                    pong.latency,
    -                    best_addr::Source::BestCandidate,
    -                    pong.pong_at,
    -                )
    -            }
    -        }
    +        self.udp_paths.best_addr.clear_if_equals(
    +            (*ip_port).into(),
    +            reason,
    +            self.relay_url.is_some(),
    +        );
         }
     
         /// Whether we need to send another call-me-maybe to the endpoint.
    @@ -2320,7 +2208,7 @@
                 debug!("no previous full ping: need full ping");
                 return true;
             };
    -        match self.best_addr.state(*now) {
    +        match self.udp_paths.best_addr.state(*now) {
                 best_addr::State::Empty => {
                     debug!("best addr not set: need full ping");
                     true
    @@ -2351,7 +2239,7 @@
                 debug!(tx = %hex::encode(txid), addr = %sp.to, "pong not received in timeout");
                 match sp.to {
                     SendAddr::Udp(addr) => {
    -                    if let Some(path_state) = self.direct_addr_state.get_mut(&addr.into()) {
    +                    if let Some(path_state) = self.udp_paths.paths.get_mut(&addr.into()) {
                             path_state.last_ping = None;
                             // only clear the best address if there was no sign of life from this path
                             // within the time the pong should have arrived
    @@ -2360,7 +2248,7 @@
                                 .map(|last_alive| last_alive.elapsed() <= PING_TIMEOUT_DURATION)
                                 .unwrap_or(false);
                             if !consider_alive {
    -                            self.best_addr.clear_if_equals(
    +                            self.udp_paths.best_addr.clear_if_equals(
                                     addr,
                                     ClearReason::PongTimeout,
                                     self.relay_url().is_some(),
    @@ -2369,7 +2257,7 @@
                         } else {
                             // If we have no state for the best addr it should have been cleared
                             // anyway.
    -                        self.best_addr.clear_if_equals(
    +                        self.udp_paths.best_addr.clear_if_equals(
                                 addr,
                                 ClearReason::PongTimeout,
                                 self.relay_url.is_some(),
    @@ -2429,7 +2317,7 @@
             let mut path_found = false;
             match to {
                 SendAddr::Udp(addr) => {
    -                if let Some(st) = self.direct_addr_state.get_mut(&addr.into()) {
    +                if let Some(st) = self.udp_paths.paths.get_mut(&addr.into()) {
                         st.last_ping.replace(now);
                         path_found = true
                     }
    @@ -2523,7 +2411,7 @@
         #[must_use = "actions must be handled"]
         fn send_pings(&mut self, now: Instant) -> Vec<PingAction> {
             // We allocate +1 in case the caller wants to add a call-me-maybe message.
    -        let mut ping_msgs = Vec::with_capacity(self.direct_addr_state.len() + 1);
    +        let mut ping_msgs = Vec::with_capacity(self.udp_paths.paths.len() + 1);
     
             if let Some((url, state)) = self.relay_url.as_ref() {
                 if state.needs_ping(&now) {
    @@ -2543,7 +2431,8 @@
             }
             self.prune_direct_addresses();
             let mut ping_dsts = String::from("[");
    -        self.direct_addr_state
    +        self.udp_paths
    +            .paths
                 .iter()
                 .filter_map(|(ipp, state)| state.needs_ping(&now).then_some(*ipp))
                 .filter_map(|ipp| {
    @@ -2558,7 +2447,7 @@
             debug!(
                 %ping_dsts,
                 dst = %self.node_id.fmt_short(),
    -            paths = %summarize_node_paths(&self.direct_addr_state),
    +            paths = %summarize_node_paths(&self.udp_paths.paths),
                 "sending pings to node",
             );
             self.last_full_ping.replace(now);
    @@ -2566,7 +2455,7 @@
         }
     
         pub(super) fn update_from_node_addr(&mut self, n: &AddrInfo) {
    -        if self.best_addr.is_empty() {
    +        if self.udp_paths.best_addr.is_empty() {
                 // we do not have a direct connection, so changing the relay information may
                 // have an effect on our connection status
                 if self.relay_url.is_none() && n.relay_url.is_some() {
    @@ -2592,11 +2481,12 @@
             }
     
             for &addr in n.direct_addresses.iter() {
    -            self.direct_addr_state
    +            self.udp_paths
    +                .paths
                     .entry(addr.into())
                     .or_insert_with(|| PathState::new(self.node_id, SendAddr::from(addr)));
             }
    -        let paths = summarize_node_paths(&self.direct_addr_state);
    +        let paths = summarize_node_paths(&self.udp_paths.paths);
             debug!(new = ?n.direct_addresses , %paths, "added new direct paths for endpoint");
         }
     
    @@ -2604,10 +2494,11 @@
         #[instrument(skip_all, fields(node = %self.node_id.fmt_short()))]
         pub(super) fn reset(&mut self) {
             self.last_full_ping = None;
    -        self.best_addr
    +        self.udp_paths
    +            .best_addr
                 .clear(ClearReason::Reset, self.relay_url.is_some());
     
    -        for es in self.direct_addr_state.values_mut() {
    +        for es in self.udp_paths.paths.values_mut() {
                 es.last_ping = None;
             }
         }
    @@ -2629,7 +2520,7 @@
             let now = Instant::now();
     
             let role = match path {
    -            SendAddr::Udp(addr) => match self.direct_addr_state.entry(addr.into()) {
    +            SendAddr::Udp(addr) => match self.udp_paths.paths.entry(addr.into()) {
                     Entry::Occupied(mut occupied) => occupied.get_mut().handle_ping(tx_id, now),
                     Entry::Vacant(vacant) => {
                         info!(%addr, "new direct addr for node");
    @@ -2677,7 +2568,7 @@
             // if the endpoint does not yet have a best_addrr
             let needs_ping_back = if matches!(path, SendAddr::Udp(_))
                 && matches!(
    -                self.best_addr.state(now),
    +                self.udp_paths.best_addr.state(now),
                     best_addr::State::Empty | best_addr::State::Outdated(_)
                 ) {
                 // We also need to send a ping to make this path available to us as well.  This
    @@ -2693,7 +2584,7 @@
             debug!(
                 ?role,
                 needs_ping_back = ?needs_ping_back.is_some(),
    -            paths = %summarize_node_paths(&self.direct_addr_state),
    +            paths = %summarize_node_paths(&self.udp_paths.paths),
                 "endpoint handled ping",
             );
             PingHandled {
    @@ -2709,7 +2600,8 @@
         pub(super) fn prune_direct_addresses(&mut self) {
             // prune candidates are addresses that are not active
             let mut prune_candidates: Vec<_> = self
    -            .direct_addr_state
    +            .udp_paths
    +            .paths
                 .iter()
                 .filter(|(_ip_port, state)| !state.is_active())
                 .map(|(ip_port, state)| (*ip_port, state.last_alive()))
    @@ -2724,7 +2616,7 @@
             if prune_count == 0 {
                 // nothing to do, within limits
                 debug!(
    -                paths = %summarize_node_paths(&self.direct_addr_state),
    +                paths = %summarize_node_paths(&self.udp_paths.paths),
                     "prune addresses: {prune_count} pruned",
                 );
                 return;
    @@ -2738,7 +2630,7 @@
                 self.remove_direct_addr(&ip_port, ClearReason::Inactive)
             }
             debug!(
    -            paths = %summarize_node_paths(&self.direct_addr_state),
    +            paths = %summarize_node_paths(&self.udp_paths.paths),
                 "prune addresses: {prune_count} pruned",
             );
         }
    @@ -2747,8 +2639,8 @@
         /// assumptions about which paths work.
         #[instrument("disco", skip_all, fields(node = %self.node_id.fmt_short()))]
         pub(super) fn note_connectivity_change(&mut self) {
    -        self.best_addr.clear_trust("connectivity changed");
    -        for es in self.direct_addr_state.values_mut() {
    +        self.udp_paths.best_addr.clear_trust("connectivity changed");
    +        for es in self.udp_paths.paths.values_mut() {
                 es.clear();
             }
         }
    @@ -2796,7 +2688,7 @@
     
                     match src {
                         SendAddr::Udp(addr) => {
    -                        match self.direct_addr_state.get_mut(&addr.into()) {
    +                        match self.udp_paths.paths.get_mut(&addr.into()) {
                                 None => {
                                     warn!("ignoring pong: no state for src addr");
                                     // This is no longer an endpoint we care about.
    @@ -2813,7 +2705,7 @@
                                 }
                             }
                             debug!(
    -                            paths = %summarize_node_paths(&self.direct_addr_state),
    +                            paths = %summarize_node_paths(&self.udp_paths.paths),
                                 "handled pong",
                             );
                         }
    @@ -2844,7 +2736,7 @@
                     // TODO(bradfitz): decide how latency vs. preference order affects decision
                     if let SendAddr::Udp(to) = sp.to {
                         debug_assert!(!is_relay, "mismatching relay & udp");
    -                    self.best_addr.insert_if_better_or_reconfirm(
    +                    self.udp_paths.best_addr.insert_if_better_or_reconfirm(
                             to,
                             latency,
                             best_addr::Source::ReceivedPong,
    @@ -2881,7 +2773,8 @@
                 }
                 let ipp = IpPort::from(*peer_sockaddr);
                 call_me_maybe_ipps.insert(ipp);
    -            self.direct_addr_state
    +            self.udp_paths
    +                .paths
                     .entry(ipp)
                     .or_insert_with(|| PathState::new(self.node_id, SendAddr::from(*peer_sockaddr)))
                     .call_me_maybe_time
    @@ -2891,7 +2784,7 @@
             // Zero out all the last_ping times to force send_pings to send new ones, even if
             // it's been less than 5 seconds ago.  Also clear pongs for direct addresses not
             // included in the updated set.
    -        for (ipp, st) in self.direct_addr_state.iter_mut() {
    +        for (ipp, st) in self.udp_paths.paths.iter_mut() {
                 st.last_ping = None;
                 if !call_me_maybe_ipps.contains(ipp) {
                     // TODO: This seems like a weird way to signal that the endpoint no longer
    @@ -2904,16 +2797,17 @@
             }
             // Clear trust on our best_addr if it is not included in the updated set.  Also
             // clear the last call-me-maybe send time so we will send one again.
    -        if let Some(addr) = self.best_addr.addr() {
    +        if let Some(addr) = self.udp_paths.best_addr.addr() {
                 let ipp: IpPort = addr.into();
                 if !call_me_maybe_ipps.contains(&ipp) {
    -                self.best_addr
    +                self.udp_paths
    +                    .best_addr
                         .clear_trust("best_addr not in new call-me-maybe");
                     self.last_call_me_maybe = None;
                 }
             }
             debug!(
    -            paths = %summarize_node_paths(&self.direct_addr_state),
    +            paths = %summarize_node_paths(&self.udp_paths.paths),
                 "updated endpoint paths from call-me-maybe",
             );
             self.send_pings(now)
    @@ -2921,13 +2815,14 @@
     
         /// Marks this endpoint as having received a UDP payload message.
         pub(super) fn receive_udp(&mut self, addr: IpPort, now: Instant) {
    -        let Some(state) = self.direct_addr_state.get_mut(&addr) else {
    +        let Some(state) = self.udp_paths.paths.get_mut(&addr) else {
                 debug_assert!(false, "node map inconsistency by_ip_port <-> direct addr");
                 return;
             };
             state.last_payload_msg = Some(now);
             self.last_used = Some(now);
    -        self.best_addr
    +        self.udp_paths
    +            .best_addr
                 .reconfirm_if_used(addr.into(), Source::Udp, now);
         }
     
    @@ -2953,7 +2848,8 @@
         pub(super) fn last_ping(&self, addr: &SendAddr) -> Option<Instant> {
             match addr {
                 SendAddr::Udp(addr) => self
    -                .direct_addr_state
    +                .udp_paths
    +                .paths
                     .get(&(*addr).into())
                     .and_then(|ep| ep.last_ping),
                 SendAddr::Relay(url) => self
    @@ -2990,7 +2886,7 @@
             }
     
             // Send heartbeat ping to keep the current addr going as long as we need it.
    -        if let Some(udp_addr) = self.best_addr.addr() {
    +        if let Some(udp_addr) = self.udp_paths.best_addr.addr() {
                 let elapsed = self.last_ping(&SendAddr::Udp(udp_addr)).map(|l| now - l);
                 // Send a ping if the last ping is older than 2 seconds.
                 let needs_ping = match elapsed {
    @@ -3021,10 +2917,11 @@
         #[instrument("get_send_addrs", skip_all, fields(node = %self.node_id.fmt_short()))]
         pub(crate) fn get_send_addrs(
             &mut self,
    +        have_ipv6: bool,
         ) -> (Option<SocketAddr>, Option<RelayUrl>, Vec<PingAction>) {
             let now = Instant::now();
             self.last_used.replace(now);
    -        let (udp_addr, relay_url) = self.addr_for_send(&now);
    +        let (udp_addr, relay_url) = self.addr_for_send(&now, have_ipv6);
             let mut ping_msgs = Vec::new();
     
             if self.want_call_me_maybe(&now) {
    @@ -3043,12 +2940,12 @@
     
         /// Get the direct addresses for this endpoint.
         pub(super) fn direct_addresses(&self) -> impl Iterator<Item = IpPort> + '_ {
    -        self.direct_addr_state.keys().copied()
    +        self.udp_paths.paths.keys().copied()
         }
     
         #[cfg(test)]
         pub(super) fn direct_address_states(&self) -> impl Iterator<Item = (&IpPort, &PathState)> + '_ {
    -        self.direct_addr_state.iter()
    +        self.udp_paths.paths.iter()
         }
     
         pub(super) fn last_used(&self) -> Option<Instant> {
    @@ -3113,6 +3010,13 @@
             }
         }
     
    +    pub(super) fn udp_addr(&self) -> Option<SocketAddr> {
    +        match self.path {
    +            SendAddr::Udp(addr) => Some(addr),
    +            SendAddr::Relay(_) => None,
    +        }
    +    }
    +
         pub(super) fn with_last_payload(node_id: NodeId, path: SendAddr, now: Instant) -> Self {
             PathState {
                 node_id,
    @@ -3227,7 +3131,7 @@
         }
     
         /// Returns the most recent pong if available.
    -    fn recent_pong(&self) -> Option<&PongReply> {
    +    pub(super) fn recent_pong(&self) -> Option<&PongReply> {
             self.recent_pong.as_ref()
         }
     
    @@ -3494,6 +3398,8 @@
     mod tests {
         use std::net::Ipv4Addr;
     
    +    use best_addr::BestAddr;
    +
         use super::{
             super::{NodeMap, NodeMapInner},
             *,
    @@ -3549,13 +3455,15 @@
                         node_id: key.public(),
                         last_full_ping: None,
                         relay_url: None,
    -                    best_addr: BestAddr::from_parts(
    -                        ip_port.into(),
    -                        latency,
    -                        now,
    -                        now + Duration::from_secs(100),
    +                    udp_paths: NodeUdpPaths::from_parts(
    +                        endpoint_state,
    +                        BestAddr::from_parts(
    +                            ip_port.into(),
    +                            latency,
    +                            now,
    +                            now + Duration::from_secs(100),
    +                        ),
                         ),
    -                    direct_addr_state: endpoint_state,
                         sent_pings: HashMap::new(),
                         last_used: Some(now),
                         last_call_me_maybe: None,
    @@ -3574,8 +3482,7 @@
                     node_id: key.public(),
                     last_full_ping: None,
                     relay_url: relay_and_state(key.public(), send_addr.clone()),
    -                best_addr: BestAddr::default(),
    -                direct_addr_state: BTreeMap::default(),
    +                udp_paths: NodeUdpPaths::new(),
                     sent_pings: HashMap::new(),
                     last_used: Some(now),
                     last_call_me_maybe: None,
    @@ -3586,8 +3493,7 @@
             // endpoint w/ no best addr but a relay w/ no latency
             let c_endpoint = {
                 // let socket_addr = "0.0.0.0:8".parse().unwrap();
    -            let endpoint_state = BTreeMap::new();
    -            let key = SecretKey::generate();
    +            let key = SecretKey::generate();
                 NodeState {
                     id: 2,
                     quic_mapped_addr: QuicMappedAddr::generate(),
    @@ -3597,8 +3503,7 @@
                         send_addr.clone(),
                         PathState::new(key.public(), SendAddr::from(send_addr.clone())),
                     )),
    -                best_addr: BestAddr::default(),
    -                direct_addr_state: endpoint_state,
    +                udp_paths: NodeUdpPaths::new(),
                     sent_pings: HashMap::new(),
                     last_used: Some(now),
                     last_call_me_maybe: None,
    @@ -3631,13 +3536,10 @@
                         node_id: key.public(),
                         last_full_ping: None,
                         relay_url: relay_and_state(key.public(), send_addr.clone()),
    -                    best_addr: BestAddr::from_parts(
    -                        socket_addr,
    -                        Duration::from_millis(80),
    -                        now,
    -                        expired,
    +                    udp_paths: NodeUdpPaths::from_parts(
    +                        endpoint_state,
    +                        BestAddr::from_parts(socket_addr, Duration::from_millis(80), now, expired),
                         ),
    -                    direct_addr_state: endpoint_state,
                         sent_pings: HashMap::new(),
                         last_used: Some(now),
                         last_call_me_maybe: None,
    diff --git a/pr/2582/docs/src/iroh_net/magicsock/node_map/udp_paths.rs.html b/pr/2582/docs/src/iroh_net/magicsock/node_map/udp_paths.rs.html
    new file mode 100644
    index 0000000000..45a030c071
    --- /dev/null
    +++ b/pr/2582/docs/src/iroh_net/magicsock/node_map/udp_paths.rs.html
    @@ -0,0 +1,359 @@
    +udp_paths.rs - source
    1
    +2
    +3
    +4
    +5
    +6
    +7
    +8
    +9
    +10
    +11
    +12
    +13
    +14
    +15
    +16
    +17
    +18
    +19
    +20
    +21
    +22
    +23
    +24
    +25
    +26
    +27
    +28
    +29
    +30
    +31
    +32
    +33
    +34
    +35
    +36
    +37
    +38
    +39
    +40
    +41
    +42
    +43
    +44
    +45
    +46
    +47
    +48
    +49
    +50
    +51
    +52
    +53
    +54
    +55
    +56
    +57
    +58
    +59
    +60
    +61
    +62
    +63
    +64
    +65
    +66
    +67
    +68
    +69
    +70
    +71
    +72
    +73
    +74
    +75
    +76
    +77
    +78
    +79
    +80
    +81
    +82
    +83
    +84
    +85
    +86
    +87
    +88
    +89
    +90
    +91
    +92
    +93
    +94
    +95
    +96
    +97
    +98
    +99
    +100
    +101
    +102
    +103
    +104
    +105
    +106
    +107
    +108
    +109
    +110
    +111
    +112
    +113
    +114
    +115
    +116
    +117
    +118
    +119
    +120
    +121
    +122
    +123
    +124
    +125
    +126
    +127
    +128
    +129
    +130
    +131
    +132
    +133
    +134
    +135
    +136
    +137
    +138
    +139
    +140
    +141
    +142
    +143
    +144
    +145
    +146
    +147
    +148
    +149
    +150
    +151
    +152
    +153
    +154
    +155
    +156
    +157
    +158
    +159
    +160
    +161
    +162
    +163
    +164
    +165
    +166
    +167
    +168
    +169
    +170
    +171
    +172
    +173
    +174
    +175
    +176
    +177
    +178
    +179
    +
    //! Path state for UDP addresses of a single peer node.
    +//!
    +//! This started as simply moving the [`NodeState`]'s `direct_addresses` and `best_addr`
    +//! into one place together.  The aim is for external places to not directly interact with
    +//! the inside and instead only notifies this struct of state changes to each path.
    +//!
    +//! [`NodeState`]: super::node_state::NodeState
    +use std::collections::BTreeMap;
    +use std::net::SocketAddr;
    +use std::time::{Duration, Instant};
    +
    +use rand::seq::IteratorRandom;
    +use tracing::warn;
    +
    +use crate::disco::SendAddr;
    +
    +use super::best_addr::{self, BestAddr};
    +use super::node_state::{PathState, PongReply};
    +use super::IpPort;
    +
    +/// The address on which to send datagrams over UDP.
    +///
    +/// The [`MagicSock`] sends packets to zero or one UDP address, depending on the known paths
    +/// to the remote node.  This conveys the UDP address to send on from the [`NodeUdpPaths`]
    +/// to the [`NodeState`].
    +///
    +/// [`NodeUdpPaths`] contains all the UDP path states, while [`NodeState`] has to decide the
    +/// bigger picture including the relay server.
    +///
    +/// See [`NodeUdpPaths::send_addr`].
    +///
    +/// [`MagicSock`]: crate::magicsock::MagicSock
    +/// [`NodeState`]: super::node_state::NodeState
    +#[derive(Debug)]
    +pub(super) enum UdpSendAddr {
    +    /// The UDP address can be relied on to deliver data to the remote node.
    +    ///
    +    /// This means this path is usable with a reasonable latency and can be fully trusted to
    +    /// transport payload data to the remote node.
    +    Valid(SocketAddr),
    +    /// The UDP address is highly likely to work, but has not been used for a while.
    +    ///
    +    /// The path should be usable but has not carried DISCO or payload data for a little too
    +    /// long.  It is best to also use a backup, i.e. relay, path if possible.
    +    Outdated(SocketAddr),
    +    /// The UDP address is not known to work, but it might.
    +    ///
    +    /// We know this UDP address belongs to the remote node, but we do not know if the path
    +    /// already works or may need holepunching before it will start to work.  It might even
    +    /// never work.  It is still useful to send to this together with backup path,
    +    /// i.e. relay, in case the path works: if the path does not need holepunching it might
    +    /// be much faster.  And if there is no relay path at all it might be the only way to
    +    /// establish a connection.
    +    Unconfirmed(SocketAddr),
    +    /// No known UDP path exists to the remote node.
    +    None,
    +}
    +
    +/// The UDP paths for a single node.
    +///
    +/// Paths are identified by the [`IpPort`] of their UDP address.
    +///
    +/// Initially this collects two structs directly from the [`NodeState`] into one place,
    +/// leaving the APIs and astractions the same.  The goal is that this slowly migrates
    +/// directly interacting with this data into only receiving [`PathState`] updates.  This
    +/// will consolidate the logic of direct path selection and make this simpler to reason
    +/// about.  However doing that all at once is too large a refactor.
    +///
    +/// [`NodeState`]: super::node_state::NodeState
    +#[derive(Debug, Default)]
    +pub(super) struct NodeUdpPaths {
    +    /// The state for each of this node's direct paths.
    +    pub(super) paths: BTreeMap<IpPort, PathState>,
    +    /// Best UDP path currently selected.
    +    pub(super) best_addr: BestAddr,
    +    /// If we had to choose a path because we had no `best_addr` it is stored here.
    +    chosen_candidate: Option<IpPort>,
    +}
    +
    +impl NodeUdpPaths {
    +    pub(super) fn new() -> Self {
    +        Default::default()
    +    }
    +
    +    #[cfg(test)]
    +    pub(super) fn from_parts(paths: BTreeMap<IpPort, PathState>, best_addr: BestAddr) -> Self {
    +        Self {
    +            paths,
    +            best_addr,
    +            chosen_candidate: None,
    +        }
    +    }
    +
    +    /// Returns the current UDP address to send on.
    +    ///
    +    /// TODO: The goal here is for this to simply return the already known send address, so
    +    /// it should be `&self` and not `&mut self`.  This is only possible once the state from
    +    /// [`NodeUdpPaths`] is no longer modified from outside.
    +    pub(super) fn send_addr(&mut self, now: Instant, have_ipv6: bool) -> UdpSendAddr {
    +        self.assign_best_addr_from_candidates_if_empty();
    +        match self.best_addr.state(now) {
    +            best_addr::State::Valid(addr) => UdpSendAddr::Valid(addr.addr),
    +            best_addr::State::Outdated(addr) => UdpSendAddr::Outdated(addr.addr),
    +            best_addr::State::Empty => {
    +                // No direct connection has been used before.  If we know of any possible
    +                // candidate addresses, randomly try to use one.  This path is most
    +                // effective when folks use a NodeAddr with exactly one direct address which
    +                // they know to work, effectively like using a traditional socket or QUIC
    +                // endpoint.
    +                let addr = self
    +                    .chosen_candidate
    +                    .and_then(|ipp| self.paths.get(&ipp))
    +                    .and_then(|path| path.udp_addr())
    +                    .filter(|addr| addr.is_ipv4() || have_ipv6)
    +                    .or_else(|| {
    +                        // Look for a new candidate in all the known paths.  This may look
    +                        // like a RNG use on the hot-path but this is normally invoked at
    +                        // most most once at startup.
    +                        let addr = self
    +                            .paths
    +                            .values()
    +                            .filter_map(|path| path.udp_addr())
    +                            .filter(|addr| addr.is_ipv4() || have_ipv6)
    +                            .choose(&mut rand::thread_rng());
    +                        self.chosen_candidate = addr.map(IpPort::from);
    +                        addr
    +                    });
    +                match addr {
    +                    Some(addr) => UdpSendAddr::Unconfirmed(addr),
    +                    None => UdpSendAddr::None,
    +                }
    +            }
    +        }
    +    }
    +
    +    /// Fixup best_addr from candidates.
    +    ///
    +    /// If somehow we end up in a state where we failed to set a best_addr, while we do have
    +    /// valid candidates, this will chose a candidate and set best_addr again.  Most likely
    +    /// this is a bug elsewhere though.
    +    fn assign_best_addr_from_candidates_if_empty(&mut self) {
    +        if !self.best_addr.is_empty() {
    +            return;
    +        }
    +
    +        // The highest acceptable latency for an endpoint path.  If the latency is higher
    +        // then this the path will be ignored.
    +        const MAX_LATENCY: Duration = Duration::from_secs(60 * 60);
    +        let best_pong = self.paths.iter().fold(None, |best_pong, (ipp, state)| {
    +            let best_latency = best_pong
    +                .map(|p: &PongReply| p.latency)
    +                .unwrap_or(MAX_LATENCY);
    +            match state.recent_pong() {
    +                // This pong is better if it has a lower latency, or if it has the same
    +                // latency but on an IPv6 path.
    +                Some(pong)
    +                    if pong.latency < best_latency
    +                        || (pong.latency == best_latency && ipp.ip().is_ipv6()) =>
    +                {
    +                    Some(pong)
    +                }
    +                _ => best_pong,
    +            }
    +        });
    +
    +        // If we found a candidate, set to best addr
    +        if let Some(pong) = best_pong {
    +            if let SendAddr::Udp(addr) = pong.from {
    +                warn!(%addr, "No best_addr was set, choose candidate with lowest latency");
    +                self.best_addr.insert_if_better_or_reconfirm(
    +                    addr,
    +                    pong.latency,
    +                    best_addr::Source::BestCandidate,
    +                    pong.pong_at,
    +                )
    +            }
    +        }
    +    }
    +}
    +
    \ No newline at end of file diff --git a/pr/2582/docs/trait.impl/core/convert/trait.From.js b/pr/2582/docs/trait.impl/core/convert/trait.From.js index fd13f7dab5..1a72418b61 100644 --- a/pr/2582/docs/trait.impl/core/convert/trait.From.js +++ b/pr/2582/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"]], "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/2582/docs/trait.impl/iroh_base/ticket/trait.Ticket.js b/pr/2582/docs/trait.impl/iroh_base/ticket/trait.Ticket.js index 5d209fabd2..12fa1e3ee5 100644 --- a/pr/2582/docs/trait.impl/iroh_base/ticket/trait.Ticket.js +++ b/pr/2582/docs/trait.impl/iroh_base/ticket/trait.Ticket.js @@ -1,5 +1,5 @@ (function() {var implementors = { "iroh":[], "iroh_base":[], -"iroh_docs":[["impl Ticket for DocTicket"]] +"iroh_docs":[["impl Ticket for DocTicket"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/pr/2582/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2582/docs/trait.impl/iroh_metrics/core/trait.Metric.js index 6da949703f..d96c0fcf7e 100644 --- a/pr/2582/docs/trait.impl/iroh_metrics/core/trait.Metric.js +++ b/pr/2582/docs/trait.impl/iroh_metrics/core/trait.Metric.js @@ -1,8 +1,8 @@ (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_docs":[["impl Metric for Metrics"]], "iroh_gossip":[["impl Metric for Metrics"]], "iroh_net":[["impl Metric for Metrics"],["impl Metric for Metrics"],["impl Metric for Metrics"],["impl Metric for Metrics"]], "iroh_relay":[["impl Metric for StunMetrics"]] diff --git a/pr/2582/docs/type.impl/iroh_net/key/struct.PublicKey.js b/pr/2582/docs/type.impl/iroh_net/key/struct.PublicKey.js index 2fcaac350a..bbff1af8fe 100644 --- a/pr/2582/docs/type.impl/iroh_net/key/struct.PublicKey.js +++ b/pr/2582/docs/type.impl/iroh_net/key/struct.PublicKey.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh_net":[["
    source§

    impl AsRef<[u8]> for PublicKey

    source§

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

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[u8]>","iroh_net::NodeId"],["
    source§

    impl Clone for PublicKey

    source§

    fn clone(&self) -> PublicKey

    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
    ","Clone","iroh_net::NodeId"],["
    source§

    impl Debug for PublicKey

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","iroh_net::NodeId"],["
    source§

    impl<'de> Deserialize<'de> for PublicKey

    source§

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

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_net::NodeId"],["
    source§

    impl Display for PublicKey

    source§

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

    Formats the value using the given formatter. Read more
    ","Display","iroh_net::NodeId"],["
    source§

    impl From<VerifyingKey> for PublicKey

    source§

    fn from(verifying_key: VerifyingKey) -> PublicKey

    Converts to this type from the input type.
    ","From","iroh_net::NodeId"],["
    source§

    impl FromStr for PublicKey

    Deserialises the PublicKey from it’s base32 encoding.

    \n

    Display is capable of serialising this format.

    \n
    §

    type Err = KeyParsingError

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

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

    Parses a string s to return a value of this type. Read more
    ","FromStr","iroh_net::NodeId"],["
    source§

    impl Hash for PublicKey

    source§

    fn hash<H>(&self, state: &mut H)
    where\n 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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_net::NodeId"],["
    source§

    impl Ord for PublicKey

    source§

    fn cmp(&self, other: &PublicKey) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n 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\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_net::NodeId"],["
    source§

    impl PartialEq for PublicKey

    source§

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

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

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

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_net::NodeId"],["
    source§

    impl PartialOrd for PublicKey

    source§

    fn partial_cmp(&self, other: &PublicKey) -> 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 <=\noperator. 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 >=\noperator. Read more
    ","PartialOrd","iroh_net::NodeId"],["
    source§

    impl PublicKey

    source

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

    Get this public key as a byte array.

    \n
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>

    Construct a PublicKey from a slice of bytes.

    \n
    §Warning
    \n

    This will return a [SignatureError] if the bytes passed into this method do not represent\na valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.\nSee [VerifyingKey::from_bytes] for details.

    \n
    source

    pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>

    Verify a signature on a message with this secret key’s public key.

    \n
    §Return
    \n

    Returns Ok(()) if the signature is valid, and Err otherwise.

    \n
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh_net::NodeId"],["
    source§

    impl Serialize for PublicKey

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_net::NodeId"],["
    source§

    impl TryFrom<&[u8]> for PublicKey

    §

    type Error = Error

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

    fn try_from(\n bytes: &[u8]\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8]>","iroh_net::NodeId"],["
    source§

    impl TryFrom<&[u8; 32]> for PublicKey

    §

    type Error = Error

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

    fn try_from(\n bytes: &[u8; 32]\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8; 32]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8; 32]>","iroh_net::NodeId"],["
    source§

    impl Copy for PublicKey

    ","Copy","iroh_net::NodeId"],["
    source§

    impl Eq for PublicKey

    ","Eq","iroh_net::NodeId"],["
    source§

    impl StructuralPartialEq for PublicKey

    ","StructuralPartialEq","iroh_net::NodeId"]] +"iroh_net":[["
    §

    impl AsRef<[u8]> for PublicKey

    §

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

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[u8]>","iroh_net::NodeId"],["
    §

    impl Clone for PublicKey

    §

    fn clone(&self) -> PublicKey

    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
    ","Clone","iroh_net::NodeId"],["
    §

    impl Debug for PublicKey

    §

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

    Formats the value using the given formatter. Read more
    ","Debug","iroh_net::NodeId"],["
    §

    impl<'de> Deserialize<'de> for PublicKey

    §

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

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_net::NodeId"],["
    §

    impl Display for PublicKey

    §

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

    Formats the value using the given formatter. Read more
    ","Display","iroh_net::NodeId"],["
    §

    impl From<VerifyingKey> for PublicKey

    §

    fn from(verifying_key: VerifyingKey) -> PublicKey

    Converts to this type from the input type.
    ","From","iroh_net::NodeId"],["
    §

    impl FromStr for PublicKey

    Deserialises the PublicKey from it’s base32 encoding.

    \n

    Display is capable of serialising this format.

    \n
    §

    type Err = KeyParsingError

    The associated error which can be returned from parsing.
    §

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

    Parses a string s to return a value of this type. Read more
    ","FromStr","iroh_net::NodeId"],["
    §

    impl Hash for PublicKey

    §

    fn hash<H>(&self, state: &mut H)
    where\n 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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_net::NodeId"],["
    §

    impl Ord for PublicKey

    §

    fn cmp(&self, other: &PublicKey) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n 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\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_net::NodeId"],["
    §

    impl PartialEq for PublicKey

    §

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

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

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

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_net::NodeId"],["
    §

    impl PartialOrd for PublicKey

    §

    fn partial_cmp(&self, other: &PublicKey) -> 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 <=\noperator. 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 >=\noperator. Read more
    ","PartialOrd","iroh_net::NodeId"],["
    §

    impl PublicKey

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

    Get this public key as a byte array.

    \n

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>

    Construct a PublicKey from a slice of bytes.

    \n
    §Warning
    \n

    This will return a [SignatureError] if the bytes passed into this method do not represent\na valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.\nSee [VerifyingKey::from_bytes] for details.

    \n

    pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>

    Verify a signature on a message with this secret key’s public key.

    \n
    §Return
    \n

    Returns Ok(()) if the signature is valid, and Err otherwise.

    \n

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh_net::NodeId"],["
    §

    impl Serialize for PublicKey

    §

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_net::NodeId"],["
    §

    impl TryFrom<&[u8]> for PublicKey

    §

    type Error = Error

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

    fn try_from(\n bytes: &[u8]\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8]>","iroh_net::NodeId"],["
    §

    impl TryFrom<&[u8; 32]> for PublicKey

    §

    type Error = Error

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

    fn try_from(\n bytes: &[u8; 32]\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8; 32]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8; 32]>","iroh_net::NodeId"],["
    §

    impl Copy for PublicKey

    ","Copy","iroh_net::NodeId"],["
    §

    impl Eq for PublicKey

    ","Eq","iroh_net::NodeId"],["
    §

    impl StructuralPartialEq for PublicKey

    ","StructuralPartialEq","iroh_net::NodeId"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2582/docs/type.impl/std/primitive.array.js b/pr/2582/docs/type.impl/std/primitive.array.js index 4d4303e493..3f9a615647 100644 --- a/pr/2582/docs/type.impl/std/primitive.array.js +++ b/pr/2582/docs/type.impl/std/primitive.array.js @@ -1,4 +1,4 @@ (function() {var type_impls = { "iroh":[["
    source§

    impl<T, const N: usize> [T; N]

    1.55.0 · source

    pub fn map<F, U>(self, f: F) -> [U; N]
    where\n F: FnMut(T) -> U,

    Returns an array of the same size as self, with function f applied to each element\nin order.

    \n

    If you don’t necessarily need a new fixed-size array, consider using\nIterator::map instead.

    \n
    §Note on performance and stack usage
    \n

    Unfortunately, usages of this method are currently not always optimized\nas well as they could be. This mainly concerns large arrays, as mapping\nover small arrays seem to be optimized just fine. Also note that in\ndebug mode (i.e. without any optimizations), this method can use a lot\nof stack space (a few times the size of the array or more).

    \n

    Therefore, in performance-critical code, try to avoid using this method\non large arrays or check the emitted code. Also try to avoid chained\nmaps (e.g. arr.map(...).map(...)).

    \n

    In many cases, you can instead use Iterator::map by calling .iter()\nor .into_iter() on your array. [T; N]::map is only necessary if you\nreally need a new array of the same size as the result. Rust’s lazy\niterators tend to get optimized very well.

    \n
    §Examples
    \n
    let x = [1, 2, 3];\nlet y = x.map(|v| v + 1);\nassert_eq!(y, [2, 3, 4]);\n\nlet x = [1, 2, 3];\nlet mut temp = 0;\nlet y = x.map(|v| { temp += 1; v * temp });\nassert_eq!(y, [1, 4, 9]);\n\nlet x = [\"Ferris\", \"Bueller's\", \"Day\", \"Off\"];\nlet y = x.map(|v| v.len());\nassert_eq!(y, [6, 9, 3, 3]);
    \n
    source

    pub fn try_map<F, R>(\n self,\n f: F\n) -> <<R as Try>::Residual as Residual<[<R as Try>::Output; N]>>::TryType
    where\n F: FnMut(T) -> R,\n R: Try,\n <R as Try>::Residual: Residual<[<R as Try>::Output; N]>,

    🔬This is a nightly-only experimental API. (array_try_map)

    A fallible function f applied to each element on array self in order to\nreturn an array the same size as self or the first error encountered.

    \n

    The return type of this function depends on the return type of the closure.\nIf you return Result<T, E> from the closure, you’ll get a Result<[T; N], E>.\nIf you return Option<T> from the closure, you’ll get an Option<[T; N]>.

    \n
    §Examples
    \n
    #![feature(array_try_map)]\n\nlet a = [\"1\", \"2\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>()).unwrap().map(|v| v + 1);\nassert_eq!(b, [2, 3, 4]);\n\nlet a = [\"1\", \"2a\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>());\nassert!(b.is_err());\n\nuse std::num::NonZero;\n\nlet z = [1, 2, 0, 3, 4];\nassert_eq!(z.try_map(NonZero::new), None);\n\nlet a = [1, 2, 3];\nlet b = a.try_map(NonZero::new);\nlet c = b.map(|x| x.map(NonZero::get));\nassert_eq!(c, Some(a));
    \n
    1.57.0 (const: 1.57.0) · source

    pub const fn as_slice(&self) -> &[T]

    Returns a slice containing the entire array. Equivalent to &s[..].

    \n
    1.57.0 · source

    pub fn as_mut_slice(&mut self) -> &mut [T]

    Returns a mutable slice containing the entire array. Equivalent to\n&mut s[..].

    \n
    1.77.0 · source

    pub fn each_ref(&self) -> [&T; N]

    Borrows each element and returns an array of references with the same\nsize as self.

    \n
    §Example
    \n
    let floats = [3.1, 2.7, -1.0];\nlet float_refs: [&f64; 3] = floats.each_ref();\nassert_eq!(float_refs, [&3.1, &2.7, &-1.0]);
    \n

    This method is particularly useful if combined with other methods, like\nmap. This way, you can avoid moving the original\narray if its elements are not Copy.

    \n\n
    let strings = [\"Ferris\".to_string(), \"♥\".to_string(), \"Rust\".to_string()];\nlet is_ascii = strings.each_ref().map(|s| s.is_ascii());\nassert_eq!(is_ascii, [true, false, true]);\n\n// We can still access the original array: it has not been moved.\nassert_eq!(strings.len(), 3);
    \n
    1.77.0 · source

    pub fn each_mut(&mut self) -> [&mut T; N]

    Borrows each element mutably and returns an array of mutable references\nwith the same size as self.

    \n
    §Example
    \n
    \nlet mut floats = [3.1, 2.7, -1.0];\nlet float_refs: [&mut f64; 3] = floats.each_mut();\n*float_refs[0] = 0.0;\nassert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);\nassert_eq!(floats, [0.0, 2.7, -1.0]);
    \n
    source

    pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.split_array_ref::<0>();\n   assert_eq!(left, &[]);\n   assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<2>();\n    assert_eq!(left, &[1, 2]);\n    assert_eq!(right, &[3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<6>();\n    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n    assert_eq!(right, &[]);\n}
    \n
    source

    pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.split_array_mut::<2>();\nassert_eq!(left, &mut [1, 0][..]);\nassert_eq!(right, &mut [3, 0, 5, 6]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    source

    pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.rsplit_array_ref::<0>();\n   assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n   assert_eq!(right, &[]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<2>();\n    assert_eq!(left, &[1, 2, 3, 4]);\n    assert_eq!(right, &[5, 6]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<6>();\n    assert_eq!(left, &[]);\n    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}
    \n
    source

    pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.rsplit_array_mut::<4>();\nassert_eq!(left, &mut [1, 0]);\nassert_eq!(right, &mut [3, 0, 5, 6][..]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    ",0,"iroh::docs::PeerIdBytes"],["
    source§

    impl<const N: usize> [u8; N]

    source

    pub const fn as_ascii(&self) -> Option<&[AsciiChar; N]>

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nor returns None if any of the characters is non-ASCII.

    \n
    §Examples
    \n
    #![feature(ascii_char)]\n#![feature(const_option)]\n\nconst HEX_DIGITS: [std::ascii::Char; 16] =\n    *b\"0123456789abcdef\".as_ascii().unwrap();\n\nassert_eq!(HEX_DIGITS[1].as_str(), \"1\");\nassert_eq!(HEX_DIGITS[10].as_str(), \"a\");
    \n
    source

    pub const unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nwithout checking whether they’re valid.

    \n
    §Safety
    \n

    Every byte in the array must be in 0..=127, or else this is UB.

    \n
    ",0,"iroh::docs::PeerIdBytes"],["
    §

    impl<T> Array for [T; 32]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 32usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 32]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> Array for [T; N]

    §

    type Item = T

    The type of the array’s elements.
    §

    fn size() -> usize

    Returns the number of items the array can hold.
    ","Array","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> AsBytes for [T; N]
    where\n T: AsBytes,

    §

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

    Gets the bytes of this value. Read more
    §

    fn write_to(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to bytes. Read more
    §

    fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the prefix of bytes. Read more
    §

    fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the suffix of bytes. Read more
    ","AsBytes","iroh::docs::PeerIdBytes"],["
    §

    impl AsBytes for [u8; 32]

    §

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

    Casts the input type to a byte slice
    ","AsBytes","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsMut<[T]> for [T; N]

    source§

    fn as_mut(&mut self) -> &mut [T]

    Converts this type into a mutable reference of the (usually inferred) input type.
    ","AsMut<[T]>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsRef<[T]> for [T; N]

    source§

    fn as_ref(&self) -> &[T]

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[T]>","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitView for [T; N]
    where\n T: BitStore,

    Note that overly-large arrays may cause the conversions to fail.

    \n
    §

    type Store = T

    The underlying element type.
    §

    fn view_bits<O>(&self) -> &BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as an immutable bit-slice.
    §

    fn try_view_bits<O>(&self) -> Result<&BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as an immutable bit-slice. Read more
    §

    fn view_bits_mut<O>(&mut self) -> &mut BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as a mutable bit-slice.
    §

    fn try_view_bits_mut<O>(\n &mut self\n) -> Result<&mut BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as a mutable bit-slice. Read more
    ","BitView","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitViewSized for [T; N]
    where\n T: BitStore,

    §

    const ZERO: [T; N] = _

    The zero constant.
    §

    fn as_raw_slice(&self) -> &[<[T; N] as BitView>::Store]

    Views the type as a slice of its elements.
    §

    fn as_raw_mut_slice(&mut self) -> &mut [<[T; N] as BitView>::Store]

    Views the type as a mutable slice of its elements.
    §

    fn into_bitarray<O>(self) -> BitArray<Self, O>
    where\n O: BitOrder,

    Wraps self in a BitArray.
    ","BitViewSized","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> Borrow<[T]> for [T; N]

    source§

    fn borrow(&self) -> &[T]

    Immutably borrows from an owned value. Read more
    ","Borrow<[T]>","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> BorrowMut<[T]> for [T; N]

    source§

    fn borrow_mut(&mut self) -> &mut [T]

    Mutably borrows from an owned value. Read more
    ","BorrowMut<[T]>","iroh::docs::PeerIdBytes"],["
    §

    impl<S, const N: usize> Chain for [S; N]
    where\n S: Stream,

    §

    type Item = <S as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Chain<S, N>

    What stream do we return?
    §

    fn chain(self) -> <[S; N] as Chain>::Stream

    Combine multiple streams into a single stream.
    ","Chain","iroh::docs::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Clone for [T; N]
    where\n T: Clone,

    source§

    fn clone(&self) -> [T; N]

    Returns a copy of the value. Read more
    source§

    fn clone_from(&mut self, other: &[T; N])

    Performs copy-assignment from source. Read more
    ","Clone","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Debug for [T; N]
    where\n T: Debug,

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize> Decode for [u8; N]

    Decodes a byte array from byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    type Error = Error

    Type returned in the event of a decoding error.
    §

    fn decode(reader: &mut impl Reader) -> Result<[u8; N], Error>

    Attempt to decode a value of this type using the provided [Reader].
    ","Decode","iroh::docs::PeerIdBytes"],["
    §

    impl<'a, T, const N: usize> DecodeValue<'a> for [T; N]
    where\n T: Decode<'a>,

    §

    fn decode_value<R>(reader: &mut R, header: Header) -> Result<[T; N], Error>
    where\n R: Reader<'a>,

    Attempt to decode this message using the provided [Reader].
    ","DecodeValue<'a>","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 32]
    where\n T: Default,

    source§

    fn default() -> [T; 32]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 31]
    where\n T: Default,

    source§

    fn default() -> [T; 31]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 30]
    where\n T: Default,

    source§

    fn default() -> [T; 30]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 29]
    where\n T: Default,

    source§

    fn default() -> [T; 29]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 28]
    where\n T: Default,

    source§

    fn default() -> [T; 28]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 27]
    where\n T: Default,

    source§

    fn default() -> [T; 27]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 26]
    where\n T: Default,

    source§

    fn default() -> [T; 26]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 25]
    where\n T: Default,

    source§

    fn default() -> [T; 25]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 24]
    where\n T: Default,

    source§

    fn default() -> [T; 24]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 23]
    where\n T: Default,

    source§

    fn default() -> [T; 23]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 22]
    where\n T: Default,

    source§

    fn default() -> [T; 22]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 21]
    where\n T: Default,

    source§

    fn default() -> [T; 21]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 20]
    where\n T: Default,

    source§

    fn default() -> [T; 20]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 19]
    where\n T: Default,

    source§

    fn default() -> [T; 19]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 18]
    where\n T: Default,

    source§

    fn default() -> [T; 18]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 17]
    where\n T: Default,

    source§

    fn default() -> [T; 17]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 16]
    where\n T: Default,

    source§

    fn default() -> [T; 16]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 15]
    where\n T: Default,

    source§

    fn default() -> [T; 15]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 14]
    where\n T: Default,

    source§

    fn default() -> [T; 14]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 13]
    where\n T: Default,

    source§

    fn default() -> [T; 13]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 12]
    where\n T: Default,

    source§

    fn default() -> [T; 12]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 11]
    where\n T: Default,

    source§

    fn default() -> [T; 11]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 10]
    where\n T: Default,

    source§

    fn default() -> [T; 10]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 9]
    where\n T: Default,

    source§

    fn default() -> [T; 9]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 8]
    where\n T: Default,

    source§

    fn default() -> [T; 8]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 7]
    where\n T: Default,

    source§

    fn default() -> [T; 7]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 6]
    where\n T: Default,

    source§

    fn default() -> [T; 6]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 5]
    where\n T: Default,

    source§

    fn default() -> [T; 5]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 4]
    where\n T: Default,

    source§

    fn default() -> [T; 4]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 3]
    where\n T: Default,

    source§

    fn default() -> [T; 3]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 2]
    where\n T: Default,

    source§

    fn default() -> [T; 2]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 1]
    where\n T: Default,

    source§

    fn default() -> [T; 1]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 0]

    source§

    fn default() -> [T; 0]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 32]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 32], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh::docs::PeerIdBytes"],["
    source§

    impl<'de, const N: usize> Deserialize<'de> for [u8; N]

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[u8; N], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    ","Deserialize<'de>","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize> Encode for [u8; N]

    Encodes [u8; N] into byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    fn encoded_len(&self) -> Result<usize, Error>

    Get the length of this type encoded in bytes, prior to Base64 encoding.
    §

    fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value using the provided [Writer].
    §

    fn encoded_len_prefixed(&self) -> Result<usize, Error>

    Return the length of this type after encoding when prepended with a\nuint32 length prefix.
    §

    fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value, first prepending a uint32 length prefix\nset to [Encode::encoded_len].
    ","Encode","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeLabelSet for [T; N]
    where\n T: EncodeLabel,

    §

    fn encode(&self, encoder: LabelSetEncoder<'_>) -> Result<(), Error>

    Encode oneself into the given encoder.
    ","EncodeLabelSet","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeValue for [T; N]
    where\n T: Encode,

    §

    fn value_len(&self) -> Result<Length, Error>

    Compute the length of this value (sans [Tag]+[Length] header) when\nencoded as ASN.1 DER.
    §

    fn encode_value(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode value (sans [Tag]+[Length] header) as ASN.1 DER using the\nprovided [Writer].
    §

    fn header(&self) -> Result<Header, Error>
    where\n Self: Tagged,

    Get the [Header] used to encode this value.
    ","EncodeValue","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 32]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 31]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 30]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 29]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 28]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 27]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 26]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 25]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 24]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 23]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 22]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 21]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 20]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 19]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 18]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 17]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 16]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 15]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 14]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 13]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 12]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 11]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 10]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 9]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 8]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 7]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 6]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 5]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 4]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 3]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 0]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2048]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1024]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 512]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 256]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 128]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 64]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 32]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh::docs::PeerIdBytes"],["
    §

    impl FindToken<u8> for [u8; 32]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> FixedTag for [T; N]

    §

    const TAG: Tag = Tag::Sequence

    ASN.1 tag
    ","FixedTag","iroh::docs::PeerIdBytes"],["
    §

    impl From<&Signature> for [u8; 64]

    §

    fn from(sig: &Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From<&Signature>","iroh::docs::PeerIdBytes"],["
    source§

    impl From<AuthorId> for [u8; 32]

    source§

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

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for [T; 32]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 32]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>>>","iroh::docs::PeerIdBytes"],["
    source§

    impl From<Hash> for [u8; 32]

    source§

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

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

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

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, const UPPERCASE: bool> From<HexOrBin<N, UPPERCASE>> for [u8; N]

    §

    fn from(hex_or_bin: HexOrBin<N, UPPERCASE>) -> [u8; N]

    Converts to this type from the input type.
    ","From>","iroh::docs::PeerIdBytes"],["
    §

    impl From<MacAddr> for [u8; 6]

    §

    fn from(addr: MacAddr) -> [u8; 6]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    source§

    impl From<NamespaceId> for [u8; 32]

    source§

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

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl From<Signature> for [u8; 64]

    §

    fn from(sig: Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    source§

    impl<T, const N: usize> From<Simd<T, N>> for [T; N]

    source§

    fn from(vector: Simd<T, N>) -> [T; N]

    Converts to this type from the input type.
    ","From>","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromBytes for [T; N]
    where\n T: FromBytes,

    §

    fn ref_from(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the given bytes as a &Self without copying. Read more
    §

    fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &Self without copying. Read more
    §

    fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &Self without copying. Read more
    §

    fn slice_from(bytes: &[u8]) -> Option<&[Self]>
    where\n Self: Sized,

    Interprets the given bytes as a &[Self] without copying. Read more
    §

    fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn read_from(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from bytes. Read more
    §

    fn read_from_prefix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the prefix of bytes. Read more
    §

    fn read_from_suffix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the suffix of bytes. Read more
    ","FromBytes","iroh::docs::PeerIdBytes"],["
    source§

    impl FromHex for [u8; 32]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 32], <[u8; 32] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromZeroes for [T; N]
    where\n T: FromZeroes,

    §

    fn zero(&mut self)

    Overwrites self with zeroes. Read more
    §

    fn new_zeroed() -> Self
    where\n Self: Sized,

    Creates an instance of Self from zeroed bytes. Read more
    ","FromZeroes","iroh::docs::PeerIdBytes"],["
    §

    impl<T> Hash for [T; 32]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

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

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Hash for [T; N]
    where\n T: Hash,

    The hash of an array is the same as that of the corresponding slice,\nas required by the Borrow implementation.

    \n\n
    use std::hash::BuildHasher;\n\nlet b = std::hash::RandomState::new();\nlet a: [u8; 3] = [0xa8, 0x3c, 0x09];\nlet s: &[u8] = &[0xa8, 0x3c, 0x09];\nassert_eq!(b.hash_one(a), b.hash_one(s));
    \n
    source§

    fn hash<H>(&self, state: &mut H)
    where\n 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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh::docs::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> Index<I> for [T; N]
    where\n [T]: Index<I>,

    §

    type Output = <[T] as Index<I>>::Output

    The returned type after indexing.
    source§

    fn index(&self, index: I) -> &<[T; N] as Index<I>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","iroh::docs::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> IndexMut<I> for [T; N]
    where\n [T]: IndexMut<I>,

    source§

    fn index_mut(&mut self, index: I) -> &mut <[T; N] as Index<I>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","iroh::docs::PeerIdBytes"],["
    §

    impl InputLength for [u8; 32]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh::docs::PeerIdBytes"],["
    1.53.0 · source§

    impl<T, const N: usize> IntoIterator for [T; N]

    source§

    fn into_iter(self) -> <[T; N] as IntoIterator>::IntoIter

    Creates a consuming iterator, that is, one that moves each value out of\nthe array (from start to end). The array cannot be used after calling\nthis unless T implements Copy, so the whole array is copied.

    \n

    Arrays have special behavior when calling .into_iter() prior to the\n2021 edition – see the array Editions section for more information.

    \n
    §

    type Item = T

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<T, N>

    Which kind of iterator are we turning this into?
    ","IntoIterator","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize> IntoResponse for [u8; N]

    §

    fn into_response(self) -> Response<Body>

    Create a response.
    ","IntoResponse","iroh::docs::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Join for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = [<Fut as IntoFuture>::Output; N]

    The resulting output type.
    §

    type Future = Join<<Fut as IntoFuture>::IntoFuture, N>

    The Future implementation returned by this method.
    §

    fn join(self) -> <[Fut; N] as Join>::Future

    Waits for multiple futures to complete. Read more
    ","Join","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> Key for [T; N]
    where\n T: Key,

    §

    fn compare(data1: &[u8], data2: &[u8]) -> Ordering

    Compare data1 with data2
    ","Key","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> MaxSize for [T; N]
    where\n T: MaxSize,

    §

    const POSTCARD_MAX_SIZE: usize = _

    The maximum possible size that the serialization of this\ntype can have, in bytes.
    ","MaxSize","iroh::docs::PeerIdBytes"],["
    §

    impl<S, const N: usize> Merge for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Merge<<S as IntoStream>::IntoStream, N> as Stream>::Item

    The resulting output type.
    §

    type Stream = Merge<<S as IntoStream>::IntoStream, N>

    The stream type.
    §

    fn merge(self) -> <[S; N] as Merge>::Stream

    Combine multiple streams into a single stream.
    ","Merge","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Ord for [T; N]
    where\n T: Ord,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn cmp(&self, other: &[T; N]) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n 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\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&[U]>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&mut [U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&mut [U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&mut [U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&mut [U]>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U]>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U; N]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U; N]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U; N]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U; N]>","iroh::docs::PeerIdBytes"],["
    §

    impl PartialEq<Cookie> for [u8; 4]

    §

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

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

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

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh::docs::PeerIdBytes"],["
    §

    impl<A, B, const N: usize, const M: usize> PartialEq<Vec<A, N>> for [B; M]
    where\n A: PartialEq<B>,

    §

    fn eq(&self, other: &Vec<A, N>) -> bool

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

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

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> PartialOrd for [T; N]
    where\n T: PartialOrd,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn partial_cmp(&self, other: &[T; N]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    source§

    fn lt(&self, other: &[T; N]) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    source§

    fn le(&self, other: &[T; N]) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    source§

    fn ge(&self, other: &[T; N]) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    source§

    fn gt(&self, other: &[T; N]) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    ","PartialOrd","iroh::docs::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Race for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = <Fut as IntoFuture>::Output

    The resulting output type.
    §

    type Future = Race<<Fut as IntoFuture>::IntoFuture, N>

    Which kind of future are we turning this into?
    §

    fn race(self) -> <[Fut; N] as Race>::Future

    Wait for the first future to complete. Read more
    ","Race","iroh::docs::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> RaceOk for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = T

    The resulting output type.
    §

    type Error = AggregateError<E, N>

    The resulting error type.
    §

    type Future = RaceOk<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn race_ok(self) -> <[Fut; N] as RaceOk>::Future

    Waits for the first successful future to complete.
    ","RaceOk","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> Schema for [T; N]
    where\n T: Schema,

    §

    const SCHEMA: &'static NamedType = _

    A recursive data structure that describes the schema of the given\ntype.
    ","Schema","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Serialize for [T; 32]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh::docs::PeerIdBytes"],["
    source§

    impl<const N: usize> Serialize for [u8; N]

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    ","Serialize","iroh::docs::PeerIdBytes"],["
    1.51.0 · source§

    impl<T, const N: usize> SlicePattern for [T; N]

    §

    type Item = T

    🔬This is a nightly-only experimental API. (slice_pattern)
    The element type of the slice being matched on.
    source§

    fn as_slice(&self) -> &[<[T; N] as SlicePattern>::Item]

    🔬This is a nightly-only experimental API. (slice_pattern)
    Currently, the consumers of SlicePattern need a slice.
    ","SlicePattern","iroh::docs::PeerIdBytes"],["
    1.34.0 · source§

    impl<T, const N: usize> TryFrom<&[T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a slice &[T]. Succeeds if\nslice.len() == N.

    \n\n
    let bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = bytes[1..3].try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

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

    fn try_from(slice: &[T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&[T]>","iroh::docs::PeerIdBytes"],["
    1.59.0 · source§

    impl<T, const N: usize> TryFrom<&mut [T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a mutable slice &mut [T].\nSucceeds if slice.len() == N.

    \n\n
    let mut bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&mut bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = (&mut bytes[1..3]).try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

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

    fn try_from(slice: &mut [T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&mut [T]>","iroh::docs::PeerIdBytes"],["
    §

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    §

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh::docs::PeerIdBytes"],["
    1.48.0 · source§

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    source§

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh::docs::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> TryJoin for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = [T; N]

    The resulting output type.
    §

    type Error = E

    The resulting error type.
    §

    type Future = TryJoin<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn try_join(self) -> <[Fut; N] as TryJoin>::Future

    Waits for multiple futures to complete, either returning when all\nfutures complete successfully, or return early when any future completes\nwith an error.
    ","TryJoin","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> Value for [T; N]
    where\n T: Value,

    §

    type SelfType<'a> = [<T as Value>::SelfType<'a>; N]\nwhere\n [T; N]: 'a

    SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
    §

    type AsBytes<'a> = Vec<u8>\nwhere\n [T; N]: 'a

    §

    fn fixed_width() -> Option<usize>

    Width of a fixed type, or None for variable width
    §

    fn from_bytes<'a>(data: &'a [u8]) -> [<T as Value>::SelfType<'a>; N]
    where\n [T; N]: 'a,

    Deserializes data\nImplementations may return a view over data, or an owned type
    §

    fn as_bytes<'a, 'b>(value: &'a <[T; N] as Value>::SelfType<'b>) -> Vec<u8> ⓘ
    where\n 'b: 'a,\n [T; N]: 'a + 'b,

    Serialize the value to a slice
    §

    fn type_name() -> TypeName

    Globally unique identifier for this type
    ","Value","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> ValueOrd for [T; N]
    where\n T: DerOrd,

    §

    fn value_cmp(&self, other: &[T; N]) -> Result<Ordering, Error>

    Return an Ordering between value portion of TLV-encoded self and\nother when serialized as ASN.1 DER.
    ","ValueOrd","iroh::docs::PeerIdBytes"],["
    §

    impl<Z, const N: usize> Zeroize for [Z; N]
    where\n Z: Zeroize,

    Impl [Zeroize] on arrays of types that impl [Zeroize].

    \n
    §

    fn zeroize(&mut self)

    Zero out this object from memory using Rust intrinsics which ensure the\nzeroization operation is not “optimized away” by the compiler.
    ","Zeroize","iroh::docs::PeerIdBytes"],["
    §

    impl<S, const N: usize> Zip for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Zip<<S as IntoStream>::IntoStream, N> as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Zip<<S as IntoStream>::IntoStream, N>

    What stream do we return?
    §

    fn zip(self) -> <[S; N] as Zip>::Stream

    Combine multiple streams into a single stream.
    ","Zip","iroh::docs::PeerIdBytes"],["
    source§

    impl<T, const N: usize> ConstParamTy for [T; N]
    where\n T: ConstParamTy,

    ","ConstParamTy","iroh::docs::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Copy for [T; N]
    where\n T: Copy,

    ","Copy","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Eq for [T; N]
    where\n T: Eq,

    ","Eq","iroh::docs::PeerIdBytes"],["
    source§

    impl<T, const N: usize> StructuralPartialEq for [T; N]

    ","StructuralPartialEq","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> Unaligned for [T; N]
    where\n T: Unaligned,

    ","Unaligned","iroh::docs::PeerIdBytes"],["
    §

    impl<Z, const N: usize> ZeroizeOnDrop for [Z; N]
    where\n Z: ZeroizeOnDrop,

    Impl [ZeroizeOnDrop] on arrays of types that impl [ZeroizeOnDrop].

    \n
    ","ZeroizeOnDrop","iroh::docs::PeerIdBytes"]], -"iroh_docs":[["
    source§

    impl<T, const N: usize> [T; N]

    1.55.0 · source

    pub fn map<F, U>(self, f: F) -> [U; N]
    where\n F: FnMut(T) -> U,

    Returns an array of the same size as self, with function f applied to each element\nin order.

    \n

    If you don’t necessarily need a new fixed-size array, consider using\nIterator::map instead.

    \n
    §Note on performance and stack usage
    \n

    Unfortunately, usages of this method are currently not always optimized\nas well as they could be. This mainly concerns large arrays, as mapping\nover small arrays seem to be optimized just fine. Also note that in\ndebug mode (i.e. without any optimizations), this method can use a lot\nof stack space (a few times the size of the array or more).

    \n

    Therefore, in performance-critical code, try to avoid using this method\non large arrays or check the emitted code. Also try to avoid chained\nmaps (e.g. arr.map(...).map(...)).

    \n

    In many cases, you can instead use Iterator::map by calling .iter()\nor .into_iter() on your array. [T; N]::map is only necessary if you\nreally need a new array of the same size as the result. Rust’s lazy\niterators tend to get optimized very well.

    \n
    §Examples
    \n
    let x = [1, 2, 3];\nlet y = x.map(|v| v + 1);\nassert_eq!(y, [2, 3, 4]);\n\nlet x = [1, 2, 3];\nlet mut temp = 0;\nlet y = x.map(|v| { temp += 1; v * temp });\nassert_eq!(y, [1, 4, 9]);\n\nlet x = [\"Ferris\", \"Bueller's\", \"Day\", \"Off\"];\nlet y = x.map(|v| v.len());\nassert_eq!(y, [6, 9, 3, 3]);
    \n
    source

    pub fn try_map<F, R>(\n self,\n f: F\n) -> <<R as Try>::Residual as Residual<[<R as Try>::Output; N]>>::TryType
    where\n F: FnMut(T) -> R,\n R: Try,\n <R as Try>::Residual: Residual<[<R as Try>::Output; N]>,

    🔬This is a nightly-only experimental API. (array_try_map)

    A fallible function f applied to each element on array self in order to\nreturn an array the same size as self or the first error encountered.

    \n

    The return type of this function depends on the return type of the closure.\nIf you return Result<T, E> from the closure, you’ll get a Result<[T; N], E>.\nIf you return Option<T> from the closure, you’ll get an Option<[T; N]>.

    \n
    §Examples
    \n
    #![feature(array_try_map)]\n\nlet a = [\"1\", \"2\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>()).unwrap().map(|v| v + 1);\nassert_eq!(b, [2, 3, 4]);\n\nlet a = [\"1\", \"2a\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>());\nassert!(b.is_err());\n\nuse std::num::NonZero;\n\nlet z = [1, 2, 0, 3, 4];\nassert_eq!(z.try_map(NonZero::new), None);\n\nlet a = [1, 2, 3];\nlet b = a.try_map(NonZero::new);\nlet c = b.map(|x| x.map(NonZero::get));\nassert_eq!(c, Some(a));
    \n
    1.57.0 (const: 1.57.0) · source

    pub const fn as_slice(&self) -> &[T]

    Returns a slice containing the entire array. Equivalent to &s[..].

    \n
    1.57.0 · source

    pub fn as_mut_slice(&mut self) -> &mut [T]

    Returns a mutable slice containing the entire array. Equivalent to\n&mut s[..].

    \n
    1.77.0 · source

    pub fn each_ref(&self) -> [&T; N]

    Borrows each element and returns an array of references with the same\nsize as self.

    \n
    §Example
    \n
    let floats = [3.1, 2.7, -1.0];\nlet float_refs: [&f64; 3] = floats.each_ref();\nassert_eq!(float_refs, [&3.1, &2.7, &-1.0]);
    \n

    This method is particularly useful if combined with other methods, like\nmap. This way, you can avoid moving the original\narray if its elements are not Copy.

    \n\n
    let strings = [\"Ferris\".to_string(), \"♥\".to_string(), \"Rust\".to_string()];\nlet is_ascii = strings.each_ref().map(|s| s.is_ascii());\nassert_eq!(is_ascii, [true, false, true]);\n\n// We can still access the original array: it has not been moved.\nassert_eq!(strings.len(), 3);
    \n
    1.77.0 · source

    pub fn each_mut(&mut self) -> [&mut T; N]

    Borrows each element mutably and returns an array of mutable references\nwith the same size as self.

    \n
    §Example
    \n
    \nlet mut floats = [3.1, 2.7, -1.0];\nlet float_refs: [&mut f64; 3] = floats.each_mut();\n*float_refs[0] = 0.0;\nassert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);\nassert_eq!(floats, [0.0, 2.7, -1.0]);
    \n
    source

    pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.split_array_ref::<0>();\n   assert_eq!(left, &[]);\n   assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<2>();\n    assert_eq!(left, &[1, 2]);\n    assert_eq!(right, &[3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<6>();\n    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n    assert_eq!(right, &[]);\n}
    \n
    source

    pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.split_array_mut::<2>();\nassert_eq!(left, &mut [1, 0][..]);\nassert_eq!(right, &mut [3, 0, 5, 6]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    source

    pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.rsplit_array_ref::<0>();\n   assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n   assert_eq!(right, &[]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<2>();\n    assert_eq!(left, &[1, 2, 3, 4]);\n    assert_eq!(right, &[5, 6]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<6>();\n    assert_eq!(left, &[]);\n    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}
    \n
    source

    pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.rsplit_array_mut::<4>();\nassert_eq!(left, &mut [1, 0]);\nassert_eq!(right, &mut [3, 0, 5, 6][..]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    ",0,"iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<const N: usize> [u8; N]

    source

    pub const fn as_ascii(&self) -> Option<&[AsciiChar; N]>

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nor returns None if any of the characters is non-ASCII.

    \n
    §Examples
    \n
    #![feature(ascii_char)]\n#![feature(const_option)]\n\nconst HEX_DIGITS: [std::ascii::Char; 16] =\n    *b\"0123456789abcdef\".as_ascii().unwrap();\n\nassert_eq!(HEX_DIGITS[1].as_str(), \"1\");\nassert_eq!(HEX_DIGITS[10].as_str(), \"a\");
    \n
    source

    pub const unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nwithout checking whether they’re valid.

    \n
    §Safety
    \n

    Every byte in the array must be in 0..=127, or else this is UB.

    \n
    ",0,"iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> Array for [T; 32]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 32usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 32]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> Array for [T; N]

    §

    type Item = T

    The type of the array’s elements.
    §

    fn size() -> usize

    Returns the number of items the array can hold.
    ","Array","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> AsBytes for [T; N]
    where\n T: AsBytes,

    §

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

    Gets the bytes of this value. Read more
    §

    fn write_to(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to bytes. Read more
    §

    fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the prefix of bytes. Read more
    §

    fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the suffix of bytes. Read more
    ","AsBytes","iroh_docs::sync::PeerIdBytes"],["
    §

    impl AsBytes for [u8; 32]

    §

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

    Casts the input type to a byte slice
    ","AsBytes","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsMut<[T]> for [T; N]

    source§

    fn as_mut(&mut self) -> &mut [T]

    Converts this type into a mutable reference of the (usually inferred) input type.
    ","AsMut<[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsRef<[T]> for [T; N]

    source§

    fn as_ref(&self) -> &[T]

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitView for [T; N]
    where\n T: BitStore,

    Note that overly-large arrays may cause the conversions to fail.

    \n
    §

    type Store = T

    The underlying element type.
    §

    fn view_bits<O>(&self) -> &BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as an immutable bit-slice.
    §

    fn try_view_bits<O>(&self) -> Result<&BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as an immutable bit-slice. Read more
    §

    fn view_bits_mut<O>(&mut self) -> &mut BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as a mutable bit-slice.
    §

    fn try_view_bits_mut<O>(\n &mut self\n) -> Result<&mut BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as a mutable bit-slice. Read more
    ","BitView","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitViewSized for [T; N]
    where\n T: BitStore,

    §

    const ZERO: [T; N] = _

    The zero constant.
    §

    fn as_raw_slice(&self) -> &[<[T; N] as BitView>::Store]

    Views the type as a slice of its elements.
    §

    fn as_raw_mut_slice(&mut self) -> &mut [<[T; N] as BitView>::Store]

    Views the type as a mutable slice of its elements.
    §

    fn into_bitarray<O>(self) -> BitArray<Self, O>
    where\n O: BitOrder,

    Wraps self in a BitArray.
    ","BitViewSized","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> Borrow<[T]> for [T; N]

    source§

    fn borrow(&self) -> &[T]

    Immutably borrows from an owned value. Read more
    ","Borrow<[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> BorrowMut<[T]> for [T; N]

    source§

    fn borrow_mut(&mut self) -> &mut [T]

    Mutably borrows from an owned value. Read more
    ","BorrowMut<[T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Chain for [S; N]
    where\n S: Stream,

    §

    type Item = <S as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Chain<S, N>

    What stream do we return?
    §

    fn chain(self) -> <[S; N] as Chain>::Stream

    Combine multiple streams into a single stream.
    ","Chain","iroh_docs::sync::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Clone for [T; N]
    where\n T: Clone,

    source§

    fn clone(&self) -> [T; N]

    Returns a copy of the value. Read more
    source§

    fn clone_from(&mut self, other: &[T; N])

    Performs copy-assignment from source. Read more
    ","Clone","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Debug for [T; N]
    where\n T: Debug,

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> Decode for [u8; N]

    Decodes a byte array from byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    type Error = Error

    Type returned in the event of a decoding error.
    §

    fn decode(reader: &mut impl Reader) -> Result<[u8; N], Error>

    Attempt to decode a value of this type using the provided [Reader].
    ","Decode","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<'a, T, const N: usize> DecodeValue<'a> for [T; N]
    where\n T: Decode<'a>,

    §

    fn decode_value<R>(reader: &mut R, header: Header) -> Result<[T; N], Error>
    where\n R: Reader<'a>,

    Attempt to decode this message using the provided [Reader].
    ","DecodeValue<'a>","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 32]
    where\n T: Default,

    source§

    fn default() -> [T; 32]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 31]
    where\n T: Default,

    source§

    fn default() -> [T; 31]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 30]
    where\n T: Default,

    source§

    fn default() -> [T; 30]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 29]
    where\n T: Default,

    source§

    fn default() -> [T; 29]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 28]
    where\n T: Default,

    source§

    fn default() -> [T; 28]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 27]
    where\n T: Default,

    source§

    fn default() -> [T; 27]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 26]
    where\n T: Default,

    source§

    fn default() -> [T; 26]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 25]
    where\n T: Default,

    source§

    fn default() -> [T; 25]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 24]
    where\n T: Default,

    source§

    fn default() -> [T; 24]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 23]
    where\n T: Default,

    source§

    fn default() -> [T; 23]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 22]
    where\n T: Default,

    source§

    fn default() -> [T; 22]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 21]
    where\n T: Default,

    source§

    fn default() -> [T; 21]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 20]
    where\n T: Default,

    source§

    fn default() -> [T; 20]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 19]
    where\n T: Default,

    source§

    fn default() -> [T; 19]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 18]
    where\n T: Default,

    source§

    fn default() -> [T; 18]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 17]
    where\n T: Default,

    source§

    fn default() -> [T; 17]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 16]
    where\n T: Default,

    source§

    fn default() -> [T; 16]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 15]
    where\n T: Default,

    source§

    fn default() -> [T; 15]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 14]
    where\n T: Default,

    source§

    fn default() -> [T; 14]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 13]
    where\n T: Default,

    source§

    fn default() -> [T; 13]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 12]
    where\n T: Default,

    source§

    fn default() -> [T; 12]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 11]
    where\n T: Default,

    source§

    fn default() -> [T; 11]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 10]
    where\n T: Default,

    source§

    fn default() -> [T; 10]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 9]
    where\n T: Default,

    source§

    fn default() -> [T; 9]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 8]
    where\n T: Default,

    source§

    fn default() -> [T; 8]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 7]
    where\n T: Default,

    source§

    fn default() -> [T; 7]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 6]
    where\n T: Default,

    source§

    fn default() -> [T; 6]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 5]
    where\n T: Default,

    source§

    fn default() -> [T; 5]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 4]
    where\n T: Default,

    source§

    fn default() -> [T; 4]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 3]
    where\n T: Default,

    source§

    fn default() -> [T; 3]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 2]
    where\n T: Default,

    source§

    fn default() -> [T; 2]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 1]
    where\n T: Default,

    source§

    fn default() -> [T; 1]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 0]

    source§

    fn default() -> [T; 0]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 32]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 32], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<'de, const N: usize> Deserialize<'de> for [u8; N]

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[u8; N], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    ","Deserialize<'de>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> Encode for [u8; N]

    Encodes [u8; N] into byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    fn encoded_len(&self) -> Result<usize, Error>

    Get the length of this type encoded in bytes, prior to Base64 encoding.
    §

    fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value using the provided [Writer].
    §

    fn encoded_len_prefixed(&self) -> Result<usize, Error>

    Return the length of this type after encoding when prepended with a\nuint32 length prefix.
    §

    fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value, first prepending a uint32 length prefix\nset to [Encode::encoded_len].
    ","Encode","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeLabelSet for [T; N]
    where\n T: EncodeLabel,

    §

    fn encode(&self, encoder: LabelSetEncoder<'_>) -> Result<(), Error>

    Encode oneself into the given encoder.
    ","EncodeLabelSet","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeValue for [T; N]
    where\n T: Encode,

    §

    fn value_len(&self) -> Result<Length, Error>

    Compute the length of this value (sans [Tag]+[Length] header) when\nencoded as ASN.1 DER.
    §

    fn encode_value(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode value (sans [Tag]+[Length] header) as ASN.1 DER using the\nprovided [Writer].
    §

    fn header(&self) -> Result<Header, Error>
    where\n Self: Tagged,

    Get the [Header] used to encode this value.
    ","EncodeValue","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 32]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 31]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 30]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 29]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 28]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 27]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 26]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 25]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 24]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 23]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 22]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 21]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 20]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 19]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 18]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 17]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 16]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 15]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 14]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 13]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 12]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 11]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 10]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 9]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 8]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 7]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 6]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 5]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 4]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 3]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 0]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2048]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1024]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 512]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 256]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 128]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 64]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 32]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl FindToken<u8> for [u8; 32]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> FixedTag for [T; N]

    §

    const TAG: Tag = Tag::Sequence

    ASN.1 tag
    ","FixedTag","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<&Signature> for [u8; 64]

    §

    fn from(sig: &Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From<&Signature>","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl From<AuthorId> for [u8; 32]

    source§

    fn from(value: AuthorId) -> Self

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for [T; 32]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 32]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>>>","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl From<Hash> for [u8; 32]

    source§

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

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

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

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, const UPPERCASE: bool> From<HexOrBin<N, UPPERCASE>> for [u8; N]

    §

    fn from(hex_or_bin: HexOrBin<N, UPPERCASE>) -> [u8; N]

    Converts to this type from the input type.
    ","From>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<MacAddr> for [u8; 6]

    §

    fn from(addr: MacAddr) -> [u8; 6]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl From<NamespaceId> for [u8; 32]

    source§

    fn from(value: NamespaceId) -> Self

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<Signature> for [u8; 64]

    §

    fn from(sig: Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> From<Simd<T, N>> for [T; N]

    source§

    fn from(vector: Simd<T, N>) -> [T; N]

    Converts to this type from the input type.
    ","From>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromBytes for [T; N]
    where\n T: FromBytes,

    §

    fn ref_from(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the given bytes as a &Self without copying. Read more
    §

    fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &Self without copying. Read more
    §

    fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &Self without copying. Read more
    §

    fn slice_from(bytes: &[u8]) -> Option<&[Self]>
    where\n Self: Sized,

    Interprets the given bytes as a &[Self] without copying. Read more
    §

    fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn read_from(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from bytes. Read more
    §

    fn read_from_prefix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the prefix of bytes. Read more
    §

    fn read_from_suffix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the suffix of bytes. Read more
    ","FromBytes","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl FromHex for [u8; 32]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 32], <[u8; 32] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromZeroes for [T; N]
    where\n T: FromZeroes,

    §

    fn zero(&mut self)

    Overwrites self with zeroes. Read more
    §

    fn new_zeroed() -> Self
    where\n Self: Sized,

    Creates an instance of Self from zeroed bytes. Read more
    ","FromZeroes","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> Hash for [T; 32]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

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

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Hash for [T; N]
    where\n T: Hash,

    The hash of an array is the same as that of the corresponding slice,\nas required by the Borrow implementation.

    \n\n
    use std::hash::BuildHasher;\n\nlet b = std::hash::RandomState::new();\nlet a: [u8; 3] = [0xa8, 0x3c, 0x09];\nlet s: &[u8] = &[0xa8, 0x3c, 0x09];\nassert_eq!(b.hash_one(a), b.hash_one(s));
    \n
    source§

    fn hash<H>(&self, state: &mut H)
    where\n 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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_docs::sync::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> Index<I> for [T; N]
    where\n [T]: Index<I>,

    §

    type Output = <[T] as Index<I>>::Output

    The returned type after indexing.
    source§

    fn index(&self, index: I) -> &<[T; N] as Index<I>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","iroh_docs::sync::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> IndexMut<I> for [T; N]
    where\n [T]: IndexMut<I>,

    source§

    fn index_mut(&mut self, index: I) -> &mut <[T; N] as Index<I>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","iroh_docs::sync::PeerIdBytes"],["
    §

    impl InputLength for [u8; 32]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_docs::sync::PeerIdBytes"],["
    1.53.0 · source§

    impl<T, const N: usize> IntoIterator for [T; N]

    source§

    fn into_iter(self) -> <[T; N] as IntoIterator>::IntoIter

    Creates a consuming iterator, that is, one that moves each value out of\nthe array (from start to end). The array cannot be used after calling\nthis unless T implements Copy, so the whole array is copied.

    \n

    Arrays have special behavior when calling .into_iter() prior to the\n2021 edition – see the array Editions section for more information.

    \n
    §

    type Item = T

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<T, N>

    Which kind of iterator are we turning this into?
    ","IntoIterator","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> IntoResponse for [u8; N]

    §

    fn into_response(self) -> Response<Body>

    Create a response.
    ","IntoResponse","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Join for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = [<Fut as IntoFuture>::Output; N]

    The resulting output type.
    §

    type Future = Join<<Fut as IntoFuture>::IntoFuture, N>

    The Future implementation returned by this method.
    §

    fn join(self) -> <[Fut; N] as Join>::Future

    Waits for multiple futures to complete. Read more
    ","Join","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Key for [T; N]
    where\n T: Key,

    §

    fn compare(data1: &[u8], data2: &[u8]) -> Ordering

    Compare data1 with data2
    ","Key","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> MaxSize for [T; N]
    where\n T: MaxSize,

    §

    const POSTCARD_MAX_SIZE: usize = _

    The maximum possible size that the serialization of this\ntype can have, in bytes.
    ","MaxSize","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Merge for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Merge<<S as IntoStream>::IntoStream, N> as Stream>::Item

    The resulting output type.
    §

    type Stream = Merge<<S as IntoStream>::IntoStream, N>

    The stream type.
    §

    fn merge(self) -> <[S; N] as Merge>::Stream

    Combine multiple streams into a single stream.
    ","Merge","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Ord for [T; N]
    where\n T: Ord,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn cmp(&self, other: &[T; N]) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n 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\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&[U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&mut [U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&mut [U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&mut [U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&mut [U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U; N]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U; N]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U; N]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U; N]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl PartialEq<Cookie> for [u8; 4]

    §

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

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

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

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<A, B, const N: usize, const M: usize> PartialEq<Vec<A, N>> for [B; M]
    where\n A: PartialEq<B>,

    §

    fn eq(&self, other: &Vec<A, N>) -> bool

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

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

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> PartialOrd for [T; N]
    where\n T: PartialOrd,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn partial_cmp(&self, other: &[T; N]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    source§

    fn lt(&self, other: &[T; N]) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    source§

    fn le(&self, other: &[T; N]) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    source§

    fn ge(&self, other: &[T; N]) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    source§

    fn gt(&self, other: &[T; N]) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    ","PartialOrd","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Race for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = <Fut as IntoFuture>::Output

    The resulting output type.
    §

    type Future = Race<<Fut as IntoFuture>::IntoFuture, N>

    Which kind of future are we turning this into?
    §

    fn race(self) -> <[Fut; N] as Race>::Future

    Wait for the first future to complete. Read more
    ","Race","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> RaceOk for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = T

    The resulting output type.
    §

    type Error = AggregateError<E, N>

    The resulting error type.
    §

    type Future = RaceOk<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn race_ok(self) -> <[Fut; N] as RaceOk>::Future

    Waits for the first successful future to complete.
    ","RaceOk","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> Schema for [T; N]
    where\n T: Schema,

    §

    const SCHEMA: &'static NamedType = _

    A recursive data structure that describes the schema of the given\ntype.
    ","Schema","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Serialize for [T; 32]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<const N: usize> Serialize for [u8; N]

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    ","Serialize","iroh_docs::sync::PeerIdBytes"],["
    1.51.0 · source§

    impl<T, const N: usize> SlicePattern for [T; N]

    §

    type Item = T

    🔬This is a nightly-only experimental API. (slice_pattern)
    The element type of the slice being matched on.
    source§

    fn as_slice(&self) -> &[<[T; N] as SlicePattern>::Item]

    🔬This is a nightly-only experimental API. (slice_pattern)
    Currently, the consumers of SlicePattern need a slice.
    ","SlicePattern","iroh_docs::sync::PeerIdBytes"],["
    1.34.0 · source§

    impl<T, const N: usize> TryFrom<&[T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a slice &[T]. Succeeds if\nslice.len() == N.

    \n\n
    let bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = bytes[1..3].try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

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

    fn try_from(slice: &[T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.59.0 · source§

    impl<T, const N: usize> TryFrom<&mut [T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a mutable slice &mut [T].\nSucceeds if slice.len() == N.

    \n\n
    let mut bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&mut bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = (&mut bytes[1..3]).try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

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

    fn try_from(slice: &mut [T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&mut [T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    §

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh_docs::sync::PeerIdBytes"],["
    1.48.0 · source§

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    source§

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> TryJoin for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = [T; N]

    The resulting output type.
    §

    type Error = E

    The resulting error type.
    §

    type Future = TryJoin<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn try_join(self) -> <[Fut; N] as TryJoin>::Future

    Waits for multiple futures to complete, either returning when all\nfutures complete successfully, or return early when any future completes\nwith an error.
    ","TryJoin","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Value for [T; N]
    where\n T: Value,

    §

    type SelfType<'a> = [<T as Value>::SelfType<'a>; N]\nwhere\n [T; N]: 'a

    SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
    §

    type AsBytes<'a> = Vec<u8>\nwhere\n [T; N]: 'a

    §

    fn fixed_width() -> Option<usize>

    Width of a fixed type, or None for variable width
    §

    fn from_bytes<'a>(data: &'a [u8]) -> [<T as Value>::SelfType<'a>; N]
    where\n [T; N]: 'a,

    Deserializes data\nImplementations may return a view over data, or an owned type
    §

    fn as_bytes<'a, 'b>(value: &'a <[T; N] as Value>::SelfType<'b>) -> Vec<u8> ⓘ
    where\n 'b: 'a,\n [T; N]: 'a + 'b,

    Serialize the value to a slice
    §

    fn type_name() -> TypeName

    Globally unique identifier for this type
    ","Value","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> ValueOrd for [T; N]
    where\n T: DerOrd,

    §

    fn value_cmp(&self, other: &[T; N]) -> Result<Ordering, Error>

    Return an Ordering between value portion of TLV-encoded self and\nother when serialized as ASN.1 DER.
    ","ValueOrd","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Z, const N: usize> Zeroize for [Z; N]
    where\n Z: Zeroize,

    Impl [Zeroize] on arrays of types that impl [Zeroize].

    \n
    §

    fn zeroize(&mut self)

    Zero out this object from memory using Rust intrinsics which ensure the\nzeroization operation is not “optimized away” by the compiler.
    ","Zeroize","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Zip for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Zip<<S as IntoStream>::IntoStream, N> as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Zip<<S as IntoStream>::IntoStream, N>

    What stream do we return?
    §

    fn zip(self) -> <[S; N] as Zip>::Stream

    Combine multiple streams into a single stream.
    ","Zip","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> ConstParamTy for [T; N]
    where\n T: ConstParamTy,

    ","ConstParamTy","iroh_docs::sync::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Copy for [T; N]
    where\n T: Copy,

    ","Copy","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Eq for [T; N]
    where\n T: Eq,

    ","Eq","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> StructuralPartialEq for [T; N]

    ","StructuralPartialEq","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Unaligned for [T; N]
    where\n T: Unaligned,

    ","Unaligned","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Z, const N: usize> ZeroizeOnDrop for [Z; N]
    where\n Z: ZeroizeOnDrop,

    Impl [ZeroizeOnDrop] on arrays of types that impl [ZeroizeOnDrop].

    \n
    ","ZeroizeOnDrop","iroh_docs::sync::PeerIdBytes"]] +"iroh_docs":[["
    source§

    impl<T, const N: usize> [T; N]

    1.55.0 · source

    pub fn map<F, U>(self, f: F) -> [U; N]
    where\n F: FnMut(T) -> U,

    Returns an array of the same size as self, with function f applied to each element\nin order.

    \n

    If you don’t necessarily need a new fixed-size array, consider using\nIterator::map instead.

    \n
    §Note on performance and stack usage
    \n

    Unfortunately, usages of this method are currently not always optimized\nas well as they could be. This mainly concerns large arrays, as mapping\nover small arrays seem to be optimized just fine. Also note that in\ndebug mode (i.e. without any optimizations), this method can use a lot\nof stack space (a few times the size of the array or more).

    \n

    Therefore, in performance-critical code, try to avoid using this method\non large arrays or check the emitted code. Also try to avoid chained\nmaps (e.g. arr.map(...).map(...)).

    \n

    In many cases, you can instead use Iterator::map by calling .iter()\nor .into_iter() on your array. [T; N]::map is only necessary if you\nreally need a new array of the same size as the result. Rust’s lazy\niterators tend to get optimized very well.

    \n
    §Examples
    \n
    let x = [1, 2, 3];\nlet y = x.map(|v| v + 1);\nassert_eq!(y, [2, 3, 4]);\n\nlet x = [1, 2, 3];\nlet mut temp = 0;\nlet y = x.map(|v| { temp += 1; v * temp });\nassert_eq!(y, [1, 4, 9]);\n\nlet x = [\"Ferris\", \"Bueller's\", \"Day\", \"Off\"];\nlet y = x.map(|v| v.len());\nassert_eq!(y, [6, 9, 3, 3]);
    \n
    source

    pub fn try_map<F, R>(\n self,\n f: F\n) -> <<R as Try>::Residual as Residual<[<R as Try>::Output; N]>>::TryType
    where\n F: FnMut(T) -> R,\n R: Try,\n <R as Try>::Residual: Residual<[<R as Try>::Output; N]>,

    🔬This is a nightly-only experimental API. (array_try_map)

    A fallible function f applied to each element on array self in order to\nreturn an array the same size as self or the first error encountered.

    \n

    The return type of this function depends on the return type of the closure.\nIf you return Result<T, E> from the closure, you’ll get a Result<[T; N], E>.\nIf you return Option<T> from the closure, you’ll get an Option<[T; N]>.

    \n
    §Examples
    \n
    #![feature(array_try_map)]\n\nlet a = [\"1\", \"2\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>()).unwrap().map(|v| v + 1);\nassert_eq!(b, [2, 3, 4]);\n\nlet a = [\"1\", \"2a\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>());\nassert!(b.is_err());\n\nuse std::num::NonZero;\n\nlet z = [1, 2, 0, 3, 4];\nassert_eq!(z.try_map(NonZero::new), None);\n\nlet a = [1, 2, 3];\nlet b = a.try_map(NonZero::new);\nlet c = b.map(|x| x.map(NonZero::get));\nassert_eq!(c, Some(a));
    \n
    1.57.0 (const: 1.57.0) · source

    pub const fn as_slice(&self) -> &[T]

    Returns a slice containing the entire array. Equivalent to &s[..].

    \n
    1.57.0 · source

    pub fn as_mut_slice(&mut self) -> &mut [T]

    Returns a mutable slice containing the entire array. Equivalent to\n&mut s[..].

    \n
    1.77.0 · source

    pub fn each_ref(&self) -> [&T; N]

    Borrows each element and returns an array of references with the same\nsize as self.

    \n
    §Example
    \n
    let floats = [3.1, 2.7, -1.0];\nlet float_refs: [&f64; 3] = floats.each_ref();\nassert_eq!(float_refs, [&3.1, &2.7, &-1.0]);
    \n

    This method is particularly useful if combined with other methods, like\nmap. This way, you can avoid moving the original\narray if its elements are not Copy.

    \n\n
    let strings = [\"Ferris\".to_string(), \"♥\".to_string(), \"Rust\".to_string()];\nlet is_ascii = strings.each_ref().map(|s| s.is_ascii());\nassert_eq!(is_ascii, [true, false, true]);\n\n// We can still access the original array: it has not been moved.\nassert_eq!(strings.len(), 3);
    \n
    1.77.0 · source

    pub fn each_mut(&mut self) -> [&mut T; N]

    Borrows each element mutably and returns an array of mutable references\nwith the same size as self.

    \n
    §Example
    \n
    \nlet mut floats = [3.1, 2.7, -1.0];\nlet float_refs: [&mut f64; 3] = floats.each_mut();\n*float_refs[0] = 0.0;\nassert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);\nassert_eq!(floats, [0.0, 2.7, -1.0]);
    \n
    source

    pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.split_array_ref::<0>();\n   assert_eq!(left, &[]);\n   assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<2>();\n    assert_eq!(left, &[1, 2]);\n    assert_eq!(right, &[3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<6>();\n    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n    assert_eq!(right, &[]);\n}
    \n
    source

    pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.split_array_mut::<2>();\nassert_eq!(left, &mut [1, 0][..]);\nassert_eq!(right, &mut [3, 0, 5, 6]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    source

    pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.rsplit_array_ref::<0>();\n   assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n   assert_eq!(right, &[]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<2>();\n    assert_eq!(left, &[1, 2, 3, 4]);\n    assert_eq!(right, &[5, 6]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<6>();\n    assert_eq!(left, &[]);\n    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}
    \n
    source

    pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.rsplit_array_mut::<4>();\nassert_eq!(left, &mut [1, 0]);\nassert_eq!(right, &mut [3, 0, 5, 6][..]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    ",0,"iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<const N: usize> [u8; N]

    source

    pub const fn as_ascii(&self) -> Option<&[AsciiChar; N]>

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nor returns None if any of the characters is non-ASCII.

    \n
    §Examples
    \n
    #![feature(ascii_char)]\n#![feature(const_option)]\n\nconst HEX_DIGITS: [std::ascii::Char; 16] =\n    *b\"0123456789abcdef\".as_ascii().unwrap();\n\nassert_eq!(HEX_DIGITS[1].as_str(), \"1\");\nassert_eq!(HEX_DIGITS[10].as_str(), \"a\");
    \n
    source

    pub const unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nwithout checking whether they’re valid.

    \n
    §Safety
    \n

    Every byte in the array must be in 0..=127, or else this is UB.

    \n
    ",0,"iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> Array for [T; 32]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 32usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 32]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> Array for [T; N]

    §

    type Item = T

    The type of the array’s elements.
    §

    fn size() -> usize

    Returns the number of items the array can hold.
    ","Array","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> AsBytes for [T; N]
    where\n T: AsBytes,

    §

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

    Gets the bytes of this value. Read more
    §

    fn write_to(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to bytes. Read more
    §

    fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the prefix of bytes. Read more
    §

    fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the suffix of bytes. Read more
    ","AsBytes","iroh_docs::sync::PeerIdBytes"],["
    §

    impl AsBytes for [u8; 32]

    §

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

    Casts the input type to a byte slice
    ","AsBytes","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsMut<[T]> for [T; N]

    source§

    fn as_mut(&mut self) -> &mut [T]

    Converts this type into a mutable reference of the (usually inferred) input type.
    ","AsMut<[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsRef<[T]> for [T; N]

    source§

    fn as_ref(&self) -> &[T]

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitView for [T; N]
    where\n T: BitStore,

    Note that overly-large arrays may cause the conversions to fail.

    \n
    §

    type Store = T

    The underlying element type.
    §

    fn view_bits<O>(&self) -> &BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as an immutable bit-slice.
    §

    fn try_view_bits<O>(&self) -> Result<&BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as an immutable bit-slice. Read more
    §

    fn view_bits_mut<O>(&mut self) -> &mut BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as a mutable bit-slice.
    §

    fn try_view_bits_mut<O>(\n &mut self\n) -> Result<&mut BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as a mutable bit-slice. Read more
    ","BitView","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitViewSized for [T; N]
    where\n T: BitStore,

    §

    const ZERO: [T; N] = _

    The zero constant.
    §

    fn as_raw_slice(&self) -> &[<[T; N] as BitView>::Store]

    Views the type as a slice of its elements.
    §

    fn as_raw_mut_slice(&mut self) -> &mut [<[T; N] as BitView>::Store]

    Views the type as a mutable slice of its elements.
    §

    fn into_bitarray<O>(self) -> BitArray<Self, O>
    where\n O: BitOrder,

    Wraps self in a BitArray.
    ","BitViewSized","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> Borrow<[T]> for [T; N]

    source§

    fn borrow(&self) -> &[T]

    Immutably borrows from an owned value. Read more
    ","Borrow<[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> BorrowMut<[T]> for [T; N]

    source§

    fn borrow_mut(&mut self) -> &mut [T]

    Mutably borrows from an owned value. Read more
    ","BorrowMut<[T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Chain for [S; N]
    where\n S: Stream,

    §

    type Item = <S as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Chain<S, N>

    What stream do we return?
    §

    fn chain(self) -> <[S; N] as Chain>::Stream

    Combine multiple streams into a single stream.
    ","Chain","iroh_docs::sync::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Clone for [T; N]
    where\n T: Clone,

    source§

    fn clone(&self) -> [T; N]

    Returns a copy of the value. Read more
    source§

    fn clone_from(&mut self, other: &[T; N])

    Performs copy-assignment from source. Read more
    ","Clone","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Debug for [T; N]
    where\n T: Debug,

    source§

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

    Formats the value using the given formatter. Read more
    ","Debug","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> Decode for [u8; N]

    Decodes a byte array from byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    type Error = Error

    Type returned in the event of a decoding error.
    §

    fn decode(reader: &mut impl Reader) -> Result<[u8; N], Error>

    Attempt to decode a value of this type using the provided [Reader].
    ","Decode","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<'a, T, const N: usize> DecodeValue<'a> for [T; N]
    where\n T: Decode<'a>,

    §

    fn decode_value<R>(reader: &mut R, header: Header) -> Result<[T; N], Error>
    where\n R: Reader<'a>,

    Attempt to decode this message using the provided [Reader].
    ","DecodeValue<'a>","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 32]
    where\n T: Default,

    source§

    fn default() -> [T; 32]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 31]
    where\n T: Default,

    source§

    fn default() -> [T; 31]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 30]
    where\n T: Default,

    source§

    fn default() -> [T; 30]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 29]
    where\n T: Default,

    source§

    fn default() -> [T; 29]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 28]
    where\n T: Default,

    source§

    fn default() -> [T; 28]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 27]
    where\n T: Default,

    source§

    fn default() -> [T; 27]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 26]
    where\n T: Default,

    source§

    fn default() -> [T; 26]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 25]
    where\n T: Default,

    source§

    fn default() -> [T; 25]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 24]
    where\n T: Default,

    source§

    fn default() -> [T; 24]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 23]
    where\n T: Default,

    source§

    fn default() -> [T; 23]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 22]
    where\n T: Default,

    source§

    fn default() -> [T; 22]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 21]
    where\n T: Default,

    source§

    fn default() -> [T; 21]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 20]
    where\n T: Default,

    source§

    fn default() -> [T; 20]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 19]
    where\n T: Default,

    source§

    fn default() -> [T; 19]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 18]
    where\n T: Default,

    source§

    fn default() -> [T; 18]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 17]
    where\n T: Default,

    source§

    fn default() -> [T; 17]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 16]
    where\n T: Default,

    source§

    fn default() -> [T; 16]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 15]
    where\n T: Default,

    source§

    fn default() -> [T; 15]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 14]
    where\n T: Default,

    source§

    fn default() -> [T; 14]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 13]
    where\n T: Default,

    source§

    fn default() -> [T; 13]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 12]
    where\n T: Default,

    source§

    fn default() -> [T; 12]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 11]
    where\n T: Default,

    source§

    fn default() -> [T; 11]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 10]
    where\n T: Default,

    source§

    fn default() -> [T; 10]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 9]
    where\n T: Default,

    source§

    fn default() -> [T; 9]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 8]
    where\n T: Default,

    source§

    fn default() -> [T; 8]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 7]
    where\n T: Default,

    source§

    fn default() -> [T; 7]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 6]
    where\n T: Default,

    source§

    fn default() -> [T; 6]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 5]
    where\n T: Default,

    source§

    fn default() -> [T; 5]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 4]
    where\n T: Default,

    source§

    fn default() -> [T; 4]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 3]
    where\n T: Default,

    source§

    fn default() -> [T; 3]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 2]
    where\n T: Default,

    source§

    fn default() -> [T; 2]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 1]
    where\n T: Default,

    source§

    fn default() -> [T; 1]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 0]

    source§

    fn default() -> [T; 0]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 32]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 32], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<'de, const N: usize> Deserialize<'de> for [u8; N]

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[u8; N], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    ","Deserialize<'de>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> Encode for [u8; N]

    Encodes [u8; N] into byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    fn encoded_len(&self) -> Result<usize, Error>

    Get the length of this type encoded in bytes, prior to Base64 encoding.
    §

    fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value using the provided [Writer].
    §

    fn encoded_len_prefixed(&self) -> Result<usize, Error>

    Return the length of this type after encoding when prepended with a\nuint32 length prefix.
    §

    fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value, first prepending a uint32 length prefix\nset to [Encode::encoded_len].
    ","Encode","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeLabelSet for [T; N]
    where\n T: EncodeLabel,

    §

    fn encode(&self, encoder: LabelSetEncoder<'_>) -> Result<(), Error>

    Encode oneself into the given encoder.
    ","EncodeLabelSet","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeValue for [T; N]
    where\n T: Encode,

    §

    fn value_len(&self) -> Result<Length, Error>

    Compute the length of this value (sans [Tag]+[Length] header) when\nencoded as ASN.1 DER.
    §

    fn encode_value(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode value (sans [Tag]+[Length] header) as ASN.1 DER using the\nprovided [Writer].
    §

    fn header(&self) -> Result<Header, Error>
    where\n Self: Tagged,

    Get the [Header] used to encode this value.
    ","EncodeValue","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 32]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 31]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 30]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 29]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 28]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 27]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 26]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 25]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 24]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 23]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 22]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 21]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 20]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 19]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 18]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 17]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 16]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 15]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 14]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 13]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 12]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 11]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 10]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 9]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 8]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 7]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 6]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 5]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 4]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 3]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 0]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2048]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1024]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 512]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 256]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 128]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 64]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 32]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl FindToken<u8> for [u8; 32]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> FixedTag for [T; N]

    §

    const TAG: Tag = Tag::Sequence

    ASN.1 tag
    ","FixedTag","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<&Signature> for [u8; 64]

    §

    fn from(sig: &Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From<&Signature>","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl From<AuthorId> for [u8; 32]

    source§

    fn from(value: AuthorId) -> Self

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for [T; 32]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 32]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>>>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

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

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

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

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, const UPPERCASE: bool> From<HexOrBin<N, UPPERCASE>> for [u8; N]

    §

    fn from(hex_or_bin: HexOrBin<N, UPPERCASE>) -> [u8; N]

    Converts to this type from the input type.
    ","From>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<MacAddr> for [u8; 6]

    §

    fn from(addr: MacAddr) -> [u8; 6]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl From<NamespaceId> for [u8; 32]

    source§

    fn from(value: NamespaceId) -> Self

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<Signature> for [u8; 64]

    §

    fn from(sig: Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> From<Simd<T, N>> for [T; N]

    source§

    fn from(vector: Simd<T, N>) -> [T; N]

    Converts to this type from the input type.
    ","From>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromBytes for [T; N]
    where\n T: FromBytes,

    §

    fn ref_from(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the given bytes as a &Self without copying. Read more
    §

    fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &Self without copying. Read more
    §

    fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &Self without copying. Read more
    §

    fn slice_from(bytes: &[u8]) -> Option<&[Self]>
    where\n Self: Sized,

    Interprets the given bytes as a &[Self] without copying. Read more
    §

    fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn read_from(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from bytes. Read more
    §

    fn read_from_prefix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the prefix of bytes. Read more
    §

    fn read_from_suffix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the suffix of bytes. Read more
    ","FromBytes","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl FromHex for [u8; 32]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 32], <[u8; 32] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromZeroes for [T; N]
    where\n T: FromZeroes,

    §

    fn zero(&mut self)

    Overwrites self with zeroes. Read more
    §

    fn new_zeroed() -> Self
    where\n Self: Sized,

    Creates an instance of Self from zeroed bytes. Read more
    ","FromZeroes","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> Hash for [T; 32]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

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

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Hash for [T; N]
    where\n T: Hash,

    The hash of an array is the same as that of the corresponding slice,\nas required by the Borrow implementation.

    \n\n
    use std::hash::BuildHasher;\n\nlet b = std::hash::RandomState::new();\nlet a: [u8; 3] = [0xa8, 0x3c, 0x09];\nlet s: &[u8] = &[0xa8, 0x3c, 0x09];\nassert_eq!(b.hash_one(a), b.hash_one(s));
    \n
    source§

    fn hash<H>(&self, state: &mut H)
    where\n 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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_docs::sync::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> Index<I> for [T; N]
    where\n [T]: Index<I>,

    §

    type Output = <[T] as Index<I>>::Output

    The returned type after indexing.
    source§

    fn index(&self, index: I) -> &<[T; N] as Index<I>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","iroh_docs::sync::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> IndexMut<I> for [T; N]
    where\n [T]: IndexMut<I>,

    source§

    fn index_mut(&mut self, index: I) -> &mut <[T; N] as Index<I>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","iroh_docs::sync::PeerIdBytes"],["
    §

    impl InputLength for [u8; 32]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_docs::sync::PeerIdBytes"],["
    1.53.0 · source§

    impl<T, const N: usize> IntoIterator for [T; N]

    source§

    fn into_iter(self) -> <[T; N] as IntoIterator>::IntoIter

    Creates a consuming iterator, that is, one that moves each value out of\nthe array (from start to end). The array cannot be used after calling\nthis unless T implements Copy, so the whole array is copied.

    \n

    Arrays have special behavior when calling .into_iter() prior to the\n2021 edition – see the array Editions section for more information.

    \n
    §

    type Item = T

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<T, N>

    Which kind of iterator are we turning this into?
    ","IntoIterator","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> IntoResponse for [u8; N]

    §

    fn into_response(self) -> Response<Body>

    Create a response.
    ","IntoResponse","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Join for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = [<Fut as IntoFuture>::Output; N]

    The resulting output type.
    §

    type Future = Join<<Fut as IntoFuture>::IntoFuture, N>

    The Future implementation returned by this method.
    §

    fn join(self) -> <[Fut; N] as Join>::Future

    Waits for multiple futures to complete. Read more
    ","Join","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Key for [T; N]
    where\n T: Key,

    §

    fn compare(data1: &[u8], data2: &[u8]) -> Ordering

    Compare data1 with data2
    ","Key","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> MaxSize for [T; N]
    where\n T: MaxSize,

    §

    const POSTCARD_MAX_SIZE: usize = _

    The maximum possible size that the serialization of this\ntype can have, in bytes.
    ","MaxSize","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Merge for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Merge<<S as IntoStream>::IntoStream, N> as Stream>::Item

    The resulting output type.
    §

    type Stream = Merge<<S as IntoStream>::IntoStream, N>

    The stream type.
    §

    fn merge(self) -> <[S; N] as Merge>::Stream

    Combine multiple streams into a single stream.
    ","Merge","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Ord for [T; N]
    where\n T: Ord,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn cmp(&self, other: &[T; N]) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n 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\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&[U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&mut [U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&mut [U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&mut [U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&mut [U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U; N]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U; N]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U; N]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U; N]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl PartialEq<Cookie> for [u8; 4]

    §

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

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

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

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<A, B, const N: usize, const M: usize> PartialEq<Vec<A, N>> for [B; M]
    where\n A: PartialEq<B>,

    §

    fn eq(&self, other: &Vec<A, N>) -> bool

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

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

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> PartialOrd for [T; N]
    where\n T: PartialOrd,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn partial_cmp(&self, other: &[T; N]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    source§

    fn lt(&self, other: &[T; N]) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    source§

    fn le(&self, other: &[T; N]) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    source§

    fn ge(&self, other: &[T; N]) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    source§

    fn gt(&self, other: &[T; N]) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    ","PartialOrd","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Race for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = <Fut as IntoFuture>::Output

    The resulting output type.
    §

    type Future = Race<<Fut as IntoFuture>::IntoFuture, N>

    Which kind of future are we turning this into?
    §

    fn race(self) -> <[Fut; N] as Race>::Future

    Wait for the first future to complete. Read more
    ","Race","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> RaceOk for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = T

    The resulting output type.
    §

    type Error = AggregateError<E, N>

    The resulting error type.
    §

    type Future = RaceOk<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn race_ok(self) -> <[Fut; N] as RaceOk>::Future

    Waits for the first successful future to complete.
    ","RaceOk","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> Schema for [T; N]
    where\n T: Schema,

    §

    const SCHEMA: &'static NamedType = _

    A recursive data structure that describes the schema of the given\ntype.
    ","Schema","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Serialize for [T; 32]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<const N: usize> Serialize for [u8; N]

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    ","Serialize","iroh_docs::sync::PeerIdBytes"],["
    1.51.0 · source§

    impl<T, const N: usize> SlicePattern for [T; N]

    §

    type Item = T

    🔬This is a nightly-only experimental API. (slice_pattern)
    The element type of the slice being matched on.
    source§

    fn as_slice(&self) -> &[<[T; N] as SlicePattern>::Item]

    🔬This is a nightly-only experimental API. (slice_pattern)
    Currently, the consumers of SlicePattern need a slice.
    ","SlicePattern","iroh_docs::sync::PeerIdBytes"],["
    1.34.0 · source§

    impl<T, const N: usize> TryFrom<&[T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a slice &[T]. Succeeds if\nslice.len() == N.

    \n\n
    let bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = bytes[1..3].try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

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

    fn try_from(slice: &[T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.59.0 · source§

    impl<T, const N: usize> TryFrom<&mut [T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a mutable slice &mut [T].\nSucceeds if slice.len() == N.

    \n\n
    let mut bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&mut bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = (&mut bytes[1..3]).try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

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

    fn try_from(slice: &mut [T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&mut [T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    §

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh_docs::sync::PeerIdBytes"],["
    1.48.0 · source§

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    source§

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> TryJoin for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = [T; N]

    The resulting output type.
    §

    type Error = E

    The resulting error type.
    §

    type Future = TryJoin<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn try_join(self) -> <[Fut; N] as TryJoin>::Future

    Waits for multiple futures to complete, either returning when all\nfutures complete successfully, or return early when any future completes\nwith an error.
    ","TryJoin","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Value for [T; N]
    where\n T: Value,

    §

    type SelfType<'a> = [<T as Value>::SelfType<'a>; N]\nwhere\n [T; N]: 'a

    SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
    §

    type AsBytes<'a> = Vec<u8>\nwhere\n [T; N]: 'a

    §

    fn fixed_width() -> Option<usize>

    Width of a fixed type, or None for variable width
    §

    fn from_bytes<'a>(data: &'a [u8]) -> [<T as Value>::SelfType<'a>; N]
    where\n [T; N]: 'a,

    Deserializes data\nImplementations may return a view over data, or an owned type
    §

    fn as_bytes<'a, 'b>(value: &'a <[T; N] as Value>::SelfType<'b>) -> Vec<u8> ⓘ
    where\n 'b: 'a,\n [T; N]: 'a + 'b,

    Serialize the value to a slice
    §

    fn type_name() -> TypeName

    Globally unique identifier for this type
    ","Value","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> ValueOrd for [T; N]
    where\n T: DerOrd,

    §

    fn value_cmp(&self, other: &[T; N]) -> Result<Ordering, Error>

    Return an Ordering between value portion of TLV-encoded self and\nother when serialized as ASN.1 DER.
    ","ValueOrd","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Z, const N: usize> Zeroize for [Z; N]
    where\n Z: Zeroize,

    Impl [Zeroize] on arrays of types that impl [Zeroize].

    \n
    §

    fn zeroize(&mut self)

    Zero out this object from memory using Rust intrinsics which ensure the\nzeroization operation is not “optimized away” by the compiler.
    ","Zeroize","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Zip for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Zip<<S as IntoStream>::IntoStream, N> as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Zip<<S as IntoStream>::IntoStream, N>

    What stream do we return?
    §

    fn zip(self) -> <[S; N] as Zip>::Stream

    Combine multiple streams into a single stream.
    ","Zip","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> ConstParamTy for [T; N]
    where\n T: ConstParamTy,

    ","ConstParamTy","iroh_docs::sync::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Copy for [T; N]
    where\n T: Copy,

    ","Copy","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Eq for [T; N]
    where\n T: Eq,

    ","Eq","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> StructuralPartialEq for [T; N]

    ","StructuralPartialEq","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Unaligned for [T; N]
    where\n T: Unaligned,

    ","Unaligned","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Z, const N: usize> ZeroizeOnDrop for [Z; N]
    where\n Z: ZeroizeOnDrop,

    Impl [ZeroizeOnDrop] on arrays of types that impl [ZeroizeOnDrop].

    \n
    ","ZeroizeOnDrop","iroh_docs::sync::PeerIdBytes"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file