From e6ac73108db4aaa11ae23ffae8eaeb11763179ad Mon Sep 17 00:00:00 2001 From: matheus23 Date: Wed, 28 Aug 2024 06:47:15 +0000 Subject: [PATCH] deploy: 205b2e9d6fef2ae95dcf10ce154598570d9a8a4f --- pr/2674/docs/bulk/all.html | 2 +- pr/2674/docs/bulk/fn.collect_and_print.html | 4 + pr/2674/docs/bulk/fn.main.html | 2 +- pr/2674/docs/bulk/fn.run_iroh.html | 2 +- pr/2674/docs/bulk/fn.run_quinn.html | 2 +- pr/2674/docs/bulk/fn.run_s2n.html | 2 +- pr/2674/docs/bulk/index.html | 2 +- pr/2674/docs/bulk/sidebar-items.js | 2 +- pr/2674/docs/iroh/all.html | 2 +- .../iroh/base/base32/enum.DecodeKind.html | 11 +- .../base32/enum.HexOrBase32ParseError.html | 13 +- pr/2674/docs/iroh/base/base32/fn.fmt.html | 2 +- .../docs/iroh/base/base32/fn.fmt_append.html | 2 +- .../docs/iroh/base/base32/fn.fmt_short.html | 2 +- .../docs/iroh/base/base32/fn.parse_array.html | 2 +- .../base32/fn.parse_array_hex_or_base32.html | 2 +- .../docs/iroh/base/base32/fn.parse_vec.html | 2 +- pr/2674/docs/iroh/base/base32/index.html | 2 +- .../iroh/base/base32/struct.DecodeError.html | 13 +- .../docs/iroh/base/hash/enum.BlobFormat.html | 11 +- pr/2674/docs/iroh/base/hash/index.html | 2 +- pr/2674/docs/iroh/base/hash/struct.Hash.html | 17 +- .../iroh/base/hash/struct.HashAndFormat.html | 11 +- pr/2674/docs/iroh/base/index.html | 2 +- .../base/key/constant.PUBLIC_KEY_LENGTH.html | 2 +- .../iroh/base/key/enum.KeyParsingError.html | 13 +- pr/2674/docs/iroh/base/key/index.html | 2 +- .../docs/iroh/base/key/struct.PublicKey.html | 13 +- .../docs/iroh/base/key/struct.SecretKey.html | 11 +- .../iroh/base/key/struct.SharedSecret.html | 11 +- .../docs/iroh/base/key/struct.Signature.html | 11 +- pr/2674/docs/iroh/base/key/type.NodeId.html | 2 +- .../base/node_addr/enum.AddrInfoOptions.html | 11 +- pr/2674/docs/iroh/base/node_addr/index.html | 2 +- .../iroh/base/node_addr/struct.AddrInfo.html | 11 +- .../iroh/base/node_addr/struct.NodeAddr.html | 11 +- .../iroh/base/node_addr/struct.RelayUrl.html | 13 +- pr/2674/docs/iroh/base/rpc/index.html | 2 +- .../docs/iroh/base/rpc/struct.RpcError.html | 13 +- .../docs/iroh/base/rpc/type.RpcResult.html | 2 +- pr/2674/docs/iroh/base/ticket/enum.Error.html | 11 +- pr/2674/docs/iroh/base/ticket/index.html | 2 +- .../iroh/base/ticket/struct.BlobTicket.html | 15 +- .../iroh/base/ticket/struct.NodeTicket.html | 15 +- .../docs/iroh/base/ticket/trait.Ticket.html | 2 +- .../iroh/blobs/constant.IROH_BLOCK_SIZE.html | 2 +- .../blobs/downloader/enum.DownloadError.html | 11 +- .../blobs/downloader/enum.FailureAction.html | 11 +- .../iroh/blobs/downloader/enum.GetOutput.html | 11 +- pr/2674/docs/iroh/blobs/downloader/index.html | 2 +- .../downloader/struct.ConcurrencyLimits.html | 11 +- .../downloader/struct.DownloadHandle.html | 11 +- .../blobs/downloader/struct.DownloadKind.html | 11 +- .../downloader/struct.DownloadRequest.html | 11 +- .../blobs/downloader/struct.Downloader.html | 11 +- .../blobs/downloader/struct.IntentId.html | 11 +- .../blobs/downloader/struct.RetryConfig.html | 11 +- .../iroh/blobs/downloader/trait.Dialer.html | 2 +- .../iroh/blobs/downloader/trait.Getter.html | 2 +- .../blobs/downloader/trait.NeedsConn.html | 2 +- pr/2674/docs/iroh/blobs/enum.BlobFormat.html | 11 +- .../blobs/export/enum.ExportProgress.html | 11 +- pr/2674/docs/iroh/blobs/export/fn.export.html | 2 +- .../iroh/blobs/export/fn.export_blob.html | 2 +- .../blobs/export/fn.export_collection.html | 2 +- pr/2674/docs/iroh/blobs/export/index.html | 2 +- .../iroh/blobs/format/collection/index.html | 2 +- .../format/collection/struct.Collection.html | 11 +- .../format/collection/trait.SimpleStore.html | 2 +- pr/2674/docs/iroh/blobs/format/index.html | 2 +- .../docs/iroh/blobs/get/db/enum.BlobId.html | 11 +- .../docs/iroh/blobs/get/db/enum.BlobInfo.html | 11 +- .../blobs/get/db/enum.DownloadProgress.html | 11 +- .../docs/iroh/blobs/get/db/enum.GetState.html | 11 +- .../docs/iroh/blobs/get/db/fn.blob_info.html | 2 +- .../docs/iroh/blobs/get/db/fn.get_to_db.html | 2 +- .../blobs/get/db/fn.get_to_db_in_steps.html | 2 +- .../iroh/blobs/get/db/fn.valid_ranges.html | 2 +- pr/2674/docs/iroh/blobs/get/db/index.html | 2 +- .../get/db/struct.GetStateNeedsConn.html | 11 +- .../iroh/blobs/get/enum.GetResponseError.html | 13 +- .../iroh/blobs/get/error/enum.GetError.html | 13 +- pr/2674/docs/iroh/blobs/get/error/index.html | 2 +- .../get/fsm/enum.AtBlobHeaderNextError.html | 13 +- .../blobs/get/fsm/enum.BlobContentNext.html | 11 +- .../blobs/get/fsm/enum.ConnectedNext.html | 11 +- .../get/fsm/enum.ConnectedNextError.html | 11 +- .../iroh/blobs/get/fsm/enum.DecodeError.html | 13 +- .../iroh/blobs/get/fsm/enum.EndBlobNext.html | 13 +- pr/2674/docs/iroh/blobs/get/fsm/fn.start.html | 2 +- pr/2674/docs/iroh/blobs/get/fsm/index.html | 2 +- .../blobs/get/fsm/struct.AtBlobContent.html | 11 +- .../blobs/get/fsm/struct.AtBlobHeader.html | 11 +- .../iroh/blobs/get/fsm/struct.AtClosing.html | 13 +- .../blobs/get/fsm/struct.AtConnected.html | 11 +- .../iroh/blobs/get/fsm/struct.AtEndBlob.html | 11 +- .../iroh/blobs/get/fsm/struct.AtInitial.html | 11 +- .../blobs/get/fsm/struct.AtStartChild.html | 11 +- .../blobs/get/fsm/struct.AtStartRoot.html | 11 +- pr/2674/docs/iroh/blobs/get/index.html | 2 +- .../blobs/get/progress/enum.BlobProgress.html | 11 +- .../docs/iroh/blobs/get/progress/index.html | 2 +- .../blobs/get/progress/struct.BlobState.html | 11 +- .../get/progress/struct.TransferState.html | 11 +- .../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/2674/docs/iroh/blobs/get/struct.Stats.html | 11 +- .../iroh/blobs/hashseq/fn.parse_hash_seq.html | 2 +- pr/2674/docs/iroh/blobs/hashseq/index.html | 2 +- .../iroh/blobs/hashseq/struct.HashSeq.html | 11 +- .../blobs/hashseq/struct.HashSeqIter.html | 11 +- .../blobs/hashseq/struct.HashSeqStream.html | 11 +- pr/2674/docs/iroh/blobs/index.html | 2 +- pr/2674/docs/iroh/blobs/metrics/index.html | 2 +- .../iroh/blobs/metrics/struct.Metrics.html | 11 +- .../iroh/blobs/protocol/constant.ALPN.html | 2 +- .../protocol/constant.MAX_MESSAGE_SIZE.html | 2 +- .../docs/iroh/blobs/protocol/enum.Closed.html | 11 +- .../iroh/blobs/protocol/enum.Request.html | 11 +- pr/2674/docs/iroh/blobs/protocol/index.html | 2 +- .../blobs/protocol/struct.GetRequest.html | 11 +- .../struct.NonEmptyRequestRangeSpecIter.html | 11 +- .../iroh/blobs/protocol/struct.RangeSpec.html | 11 +- .../blobs/protocol/struct.RangeSpecSeq.html | 11 +- .../protocol/struct.UnknownErrorCode.html | 11 +- .../iroh/blobs/provider/enum.AddProgress.html | 11 +- .../provider/enum.BatchAddPathProgress.html | 11 +- .../docs/iroh/blobs/provider/enum.Event.html | 11 +- .../iroh/blobs/provider/enum.SentStatus.html | 11 +- .../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 +- pr/2674/docs/iroh/blobs/provider/index.html | 2 +- .../blobs/provider/struct.EventSender.html | 11 +- .../blobs/provider/struct.ResponseWriter.html | 11 +- .../blobs/provider/struct.TransferStats.html | 11 +- .../provider/trait.CustomEventSender.html | 2 +- .../bao_tree/blake3/constant.KEY_LEN.html | 2 +- .../bao_tree/blake3/constant.OUT_LEN.html | 2 +- .../store/bao_tree/blake3/fn.derive_key.html | 2 +- .../blobs/store/bao_tree/blake3/fn.hash.html | 2 +- .../store/bao_tree/blake3/fn.keyed_hash.html | 2 +- .../blobs/store/bao_tree/blake3/index.html | 2 +- .../store/bao_tree/blake3/struct.Hash.html | 13 +- .../store/bao_tree/blake3/struct.Hasher.html | 11 +- .../bao_tree/blake3/struct.HexError.html | 11 +- .../bao_tree/blake3/struct.OutputReader.html | 11 +- .../store/bao_tree/enum.PostOrderOffset.html | 11 +- .../docs/iroh/blobs/store/bao_tree/index.html | 2 +- .../bao_tree/io/enum.BaoContentItem.html | 11 +- .../store/bao_tree/io/enum.DecodeError.html | 13 +- .../store/bao_tree/io/enum.EncodeError.html | 11 +- .../bao_tree/io/fn.full_chunk_groups.html | 2 +- .../bao_tree/io/fn.round_up_to_chunks.html | 2 +- .../bao_tree/io/fsm/enum.BaoContentItem.html | 11 +- .../io/fsm/enum.ResponseDecoderNext.html | 11 +- .../blobs/store/bao_tree/io/fsm/fn.copy.html | 2 +- .../bao_tree/io/fsm/fn.decode_ranges.html | 2 +- .../bao_tree/io/fsm/fn.encode_ranges.html | 2 +- .../io/fsm/fn.encode_ranges_validated.html | 2 +- .../store/bao_tree/io/fsm/fn.outboard.html | 2 +- .../io/fsm/fn.outboard_post_order.html | 2 +- .../io/fsm/fn.valid_outboard_ranges.html | 2 +- .../bao_tree/io/fsm/fn.valid_ranges.html | 2 +- .../blobs/store/bao_tree/io/fsm/index.html | 2 +- .../io/fsm/struct.ResponseDecoder.html | 11 +- .../io/fsm/trait.AsyncSliceReader.html | 2 +- .../io/fsm/trait.AsyncSliceWriter.html | 2 +- .../bao_tree/io/fsm/trait.CreateOutboard.html | 2 +- .../store/bao_tree/io/fsm/trait.Outboard.html | 2 +- .../bao_tree/io/fsm/trait.OutboardMut.html | 2 +- .../iroh/blobs/store/bao_tree/io/index.html | 2 +- .../store/bao_tree/io/outboard/index.html | 2 +- .../io/outboard/struct.EmptyOutboard.html | 11 +- .../outboard/struct.PostOrderMemOutboard.html | 11 +- .../io/outboard/struct.PostOrderOutboard.html | 11 +- .../outboard/struct.PreOrderMemOutboard.html | 11 +- .../io/outboard/struct.PreOrderOutboard.html | 11 +- .../blobs/store/bao_tree/io/struct.Leaf.html | 11 +- .../store/bao_tree/io/struct.Parent.html | 11 +- .../blobs/store/bao_tree/io/sync/fn.copy.html | 2 +- .../bao_tree/io/sync/fn.decode_ranges.html | 2 +- .../bao_tree/io/sync/fn.encode_ranges.html | 2 +- .../io/sync/fn.encode_ranges_validated.html | 2 +- .../store/bao_tree/io/sync/fn.outboard.html | 2 +- .../io/sync/fn.outboard_post_order.html | 2 +- .../io/sync/fn.valid_outboard_ranges.html | 2 +- .../bao_tree/io/sync/fn.valid_ranges.html | 2 +- .../blobs/store/bao_tree/io/sync/index.html | 2 +- .../io/sync/struct.DecodeResponseIter.html | 11 +- .../io/sync/trait.CreateOutboard.html | 2 +- .../bao_tree/io/sync/trait.Outboard.html | 2 +- .../bao_tree/io/sync/trait.OutboardMut.html | 2 +- .../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 +- .../store/bao_tree/iter/enum.BaoChunk.html | 11 +- .../iroh/blobs/store/bao_tree/iter/index.html | 2 +- .../iter/struct.PostOrderChunkIter.html | 11 +- .../iter/struct.PostOrderNodeIter.html | 11 +- .../iter/struct.PreOrderNodeIter.html | 11 +- .../struct.PreOrderPartialChunkIterRef.html | 11 +- .../bao_tree/iter/struct.ResponseIter.html | 11 +- .../bao_tree/iter/struct.ResponseIterRef.html | 11 +- .../blobs/store/bao_tree/struct.BaoTree.html | 11 +- .../store/bao_tree/struct.BlockSize.html | 11 +- .../blobs/store/bao_tree/struct.ChunkNum.html | 11 +- .../blobs/store/bao_tree/struct.TreeNode.html | 11 +- .../blobs/store/bao_tree/type.ByteRanges.html | 2 +- .../store/bao_tree/type.ChunkRanges.html | 2 +- .../store/bao_tree/type.ChunkRangesRef.html | 2 +- .../iroh/blobs/store/enum.BaoBlobSize.html | 11 +- .../store/enum.ConsistencyCheckProgress.html | 11 +- .../iroh/blobs/store/enum.EntryStatus.html | 11 +- pr/2674/docs/iroh/blobs/store/enum.Event.html | 11 +- .../iroh/blobs/store/enum.ExportFormat.html | 11 +- .../iroh/blobs/store/enum.ExportMode.html | 11 +- .../iroh/blobs/store/enum.ExportProgress.html | 11 +- .../iroh/blobs/store/enum.GcMarkEvent.html | 11 +- .../iroh/blobs/store/enum.GcSweepEvent.html | 11 +- .../iroh/blobs/store/enum.ImportMode.html | 11 +- .../iroh/blobs/store/enum.ImportProgress.html | 11 +- .../iroh/blobs/store/enum.ReportLevel.html | 11 +- .../blobs/store/enum.ValidateProgress.html | 11 +- pr/2674/docs/iroh/blobs/store/fs/index.html | 4 +- .../docs/iroh/blobs/store/fs/sidebar-items.js | 2 +- .../blobs/store/fs/struct.BatchOptions.html | 13 +- .../blobs/store/fs/struct.FlatStorePaths.html | 130 --- .../blobs/store/fs/struct.InlineOptions.html | 17 +- .../iroh/blobs/store/fs/struct.Options.html | 13 +- .../blobs/store/fs/struct.PathOptions.html | 13 +- .../iroh/blobs/store/fs/struct.Store.html | 51 +- .../docs/iroh/blobs/store/fs/type.Entry.html | 2 +- pr/2674/docs/iroh/blobs/store/index.html | 2 +- pr/2674/docs/iroh/blobs/store/mem/index.html | 2 +- .../iroh/blobs/store/mem/struct.Entry.html | 11 +- .../iroh/blobs/store/mem/struct.Store.html | 11 +- .../blobs/store/range_collections/index.html | 2 +- .../range_set/enum.RangeSetRange.html | 11 +- .../range_collections/range_set/index.html | 2 +- .../range_set/struct.Iter.html | 11 +- .../range_set/struct.RangeSet.html | 11 +- .../range_set/struct.RangeSetRef.html | 2 +- .../range_set/trait.RangeSetEntry.html | 2 +- .../range_set/type.RangeSet2.html | 2 +- .../range_collections/struct.RangeSet.html | 11 +- .../range_collections/struct.RangeSetRef.html | 2 +- .../range_collections/type.RangeSet2.html | 2 +- .../iroh/blobs/store/readonly_mem/index.html | 2 +- .../store/readonly_mem/struct.Entry.html | 11 +- .../store/readonly_mem/struct.Store.html | 11 +- .../blobs/store/trait.BaoBatchWriter.html | 2 +- pr/2674/docs/iroh/blobs/store/trait.Map.html | 4 +- .../docs/iroh/blobs/store/trait.MapEntry.html | 2 +- .../iroh/blobs/store/trait.MapEntryMut.html | 2 +- .../docs/iroh/blobs/store/trait.MapMut.html | 4 +- .../iroh/blobs/store/trait.ReadableStore.html | 4 +- .../docs/iroh/blobs/store/trait.Store.html | 4 +- .../docs/iroh/blobs/store/type.DbIter.html | 2 +- .../blobs/store/type.ExportProgressCb.html | 2 +- pr/2674/docs/iroh/blobs/struct.Hash.html | 17 +- .../docs/iroh/blobs/struct.HashAndFormat.html | 11 +- pr/2674/docs/iroh/blobs/struct.Tag.html | 13 +- pr/2674/docs/iroh/blobs/struct.TempTag.html | 11 +- .../docs/iroh/blobs/util/enum.MemOrFile.html | 11 +- .../iroh/blobs/util/enum.SetTagOption.html | 11 +- .../docs/iroh/blobs/util/fn.total_bytes.html | 2 +- pr/2674/docs/iroh/blobs/util/index.html | 2 +- pr/2674/docs/iroh/blobs/util/io/index.html | 2 +- .../blobs/util/io/struct.TrackingReader.html | 11 +- .../blobs/util/io/struct.TrackingWriter.html | 11 +- .../blobs/util/local_pool/enum.PanicMode.html | 11 +- .../util/local_pool/enum.SpawnError.html | 11 +- .../iroh/blobs/util/local_pool/index.html | 2 +- .../blobs/util/local_pool/struct.Config.html | 11 +- .../util/local_pool/struct.LocalPool.html | 11 +- .../local_pool/struct.LocalPoolHandle.html | 11 +- .../blobs/util/local_pool/struct.Run.html | 11 +- .../util/progress/enum.ProgressSendError.html | 11 +- .../docs/iroh/blobs/util/progress/index.html | 2 +- .../struct.AsyncChannelProgressSender.html | 11 +- .../progress/struct.BoxedProgressSender.html | 11 +- .../struct.FallibleProgressSliceWriter.html | 11 +- .../progress/struct.IgnoreProgressSender.html | 11 +- .../progress/struct.ProgressSliceWriter.html | 11 +- .../util/progress/struct.WithFilterMap.html | 11 +- .../blobs/util/progress/struct.WithMap.html | 11 +- .../util/progress/trait.IdGenerator.html | 2 +- .../util/progress/trait.ProgressSender.html | 4 +- .../progress/type.ProgressSendResult.html | 2 +- .../iroh/blobs/util/struct.SparseMemFile.html | 11 +- pr/2674/docs/iroh/blobs/util/struct.Tag.html | 13 +- .../docs/iroh/blobs/util/struct.TempTag.html | 11 +- .../iroh/blobs/util/trait.TagCounter.html | 4 +- .../docs/iroh/blobs/util/trait.TagDrop.html | 4 +- pr/2674/docs/iroh/client/authors/index.html | 2 +- .../iroh/client/authors/struct.Client.html | 11 +- .../iroh/client/blobs/enum.BlobStatus.html | 11 +- .../iroh/client/blobs/enum.DownloadMode.html | 11 +- .../iroh/client/blobs/enum.WrapOption.html | 11 +- pr/2674/docs/iroh/client/blobs/index.html | 2 +- .../iroh/client/blobs/struct.AddDirOpts.html | 11 +- .../iroh/client/blobs/struct.AddFileOpts.html | 11 +- .../iroh/client/blobs/struct.AddOutcome.html | 11 +- .../iroh/client/blobs/struct.AddProgress.html | 11 +- .../client/blobs/struct.AddReaderOpts.html | 11 +- .../docs/iroh/client/blobs/struct.Batch.html | 11 +- .../iroh/client/blobs/struct.BlobInfo.html | 11 +- .../docs/iroh/client/blobs/struct.Client.html | 11 +- .../client/blobs/struct.CollectionInfo.html | 11 +- .../client/blobs/struct.DownloadOptions.html | 11 +- .../client/blobs/struct.DownloadOutcome.html | 11 +- .../client/blobs/struct.DownloadProgress.html | 11 +- .../client/blobs/struct.ExportOutcome.html | 11 +- .../client/blobs/struct.ExportProgress.html | 11 +- .../blobs/struct.IncompleteBlobInfo.html | 11 +- .../docs/iroh/client/blobs/struct.Reader.html | 11 +- .../iroh/client/docs/enum.ImportProgress.html | 11 +- .../docs/iroh/client/docs/enum.LiveEvent.html | 11 +- .../docs/iroh/client/docs/enum.Origin.html | 11 +- .../docs/iroh/client/docs/enum.ShareMode.html | 15 +- .../iroh/client/docs/enum.SyncReason.html | 11 +- pr/2674/docs/iroh/client/docs/index.html | 2 +- .../docs/iroh/client/docs/struct.Client.html | 11 +- pr/2674/docs/iroh/client/docs/struct.Doc.html | 11 +- .../docs/iroh/client/docs/struct.Entry.html | 13 +- .../client/docs/struct.ExportFileOutcome.html | 11 +- .../docs/struct.ExportFileProgress.html | 11 +- .../client/docs/struct.ImportFileOutcome.html | 11 +- .../docs/struct.ImportFileProgress.html | 11 +- .../iroh/client/docs/struct.SyncEvent.html | 11 +- .../client/gossip/enum.SubscribeResponse.html | 11 +- .../client/gossip/enum.SubscribeUpdate.html | 11 +- pr/2674/docs/iroh/client/gossip/index.html | 2 +- .../iroh/client/gossip/struct.Client.html | 11 +- .../client/gossip/struct.SubscribeOpts.html | 11 +- .../gossip/struct.SubscribeRequest.html | 11 +- pr/2674/docs/iroh/client/index.html | 2 +- pr/2674/docs/iroh/client/net/index.html | 2 +- .../docs/iroh/client/net/struct.Client.html | 11 +- .../iroh/client/net/struct.NodeStatus.html | 11 +- pr/2674/docs/iroh/client/struct.Iroh.html | 11 +- .../docs/iroh/client/struct.RpcService.html | 13 +- pr/2674/docs/iroh/client/tags/index.html | 2 +- .../docs/iroh/client/tags/struct.Client.html | 11 +- .../docs/iroh/client/tags/struct.TagInfo.html | 11 +- pr/2674/docs/iroh/client/type.RpcClient.html | 2 +- pr/2674/docs/iroh/docs/actor/index.html | 2 +- .../docs/iroh/docs/actor/struct.OpenOpts.html | 11 +- .../iroh/docs/actor/struct.OpenState.html | 11 +- .../iroh/docs/actor/struct.SyncHandle.html | 11 +- .../constant.MAX_TIMESTAMP_FUTURE_SHIFT.html | 2 +- .../engine/enum.DefaultAuthorStorage.html | 11 +- .../docs/iroh/docs/engine/enum.LiveEvent.html | 11 +- .../docs/iroh/docs/engine/enum.Origin.html | 11 +- .../iroh/docs/engine/enum.SyncReason.html | 11 +- .../engine/fn.entry_to_content_status.html | 2 +- pr/2674/docs/iroh/docs/engine/index.html | 2 +- .../docs/engine/struct.DefaultAuthor.html | 11 +- .../docs/iroh/docs/engine/struct.Engine.html | 11 +- .../iroh/docs/engine/struct.SyncEvent.html | 11 +- pr/2674/docs/iroh/docs/enum.Capability.html | 11 +- .../docs/iroh/docs/enum.CapabilityError.html | 11 +- .../docs/iroh/docs/enum.CapabilityKind.html | 11 +- .../docs/iroh/docs/enum.ContentStatus.html | 11 +- pr/2674/docs/iroh/docs/enum.Event.html | 11 +- pr/2674/docs/iroh/docs/enum.InsertError.html | 13 +- pr/2674/docs/iroh/docs/enum.InsertOrigin.html | 11 +- .../iroh/docs/enum.ValidationFailure.html | 11 +- pr/2674/docs/iroh/docs/index.html | 2 +- pr/2674/docs/iroh/docs/metrics/index.html | 2 +- .../iroh/docs/metrics/struct.Metrics.html | 11 +- .../iroh/docs/net/constant.DOCS_ALPN.html | 2 +- .../docs/iroh/docs/net/enum.AbortReason.html | 11 +- .../docs/iroh/docs/net/enum.AcceptError.html | 11 +- .../iroh/docs/net/enum.AcceptOutcome.html | 11 +- .../docs/iroh/docs/net/enum.ConnectError.html | 11 +- .../iroh/docs/net/fn.connect_and_sync.html | 2 +- .../iroh/docs/net/fn.handle_connection.html | 2 +- pr/2674/docs/iroh/docs/net/index.html | 2 +- .../iroh/docs/net/struct.SyncFinished.html | 11 +- .../docs/iroh/docs/net/struct.Timings.html | 11 +- .../iroh/docs/store/enum.AuthorFilter.html | 11 +- .../iroh/docs/store/enum.DownloadPolicy.html | 11 +- .../docs/iroh/docs/store/enum.FilterKind.html | 11 +- .../store/enum.ImportNamespaceOutcome.html | 11 +- .../docs/iroh/docs/store/enum.KeyFilter.html | 11 +- .../docs/iroh/docs/store/enum.OpenError.html | 11 +- pr/2674/docs/iroh/docs/store/enum.SortBy.html | 11 +- .../iroh/docs/store/enum.SortDirection.html | 11 +- pr/2674/docs/iroh/docs/store/fs/index.html | 2 +- .../fs/struct.ContentHashesIterator.html | 11 +- .../docs/store/fs/struct.LatestIterator.html | 11 +- .../docs/store/fs/struct.ParentIterator.html | 11 +- .../docs/store/fs/struct.RecordsRange.html | 11 +- .../docs/iroh/docs/store/fs/struct.Store.html | 11 +- .../docs/store/fs/struct.StoreInstance.html | 11 +- pr/2674/docs/iroh/docs/store/index.html | 2 +- .../iroh/docs/store/struct.FlatQuery.html | 11 +- .../docs/store/struct.MemPublicKeyStore.html | 11 +- .../docs/iroh/docs/store/struct.Query.html | 13 +- .../iroh/docs/store/struct.QueryBuilder.html | 13 +- .../store/struct.SingleLatestPerKeyQuery.html | 11 +- .../docs/iroh/docs/store/struct.Store.html | 11 +- .../docs/store/trait.DownloadPolicyStore.html | 2 +- .../iroh/docs/store/trait.PublicKeyStore.html | 4 +- pr/2674/docs/iroh/docs/struct.Author.html | 13 +- .../docs/iroh/docs/struct.AuthorHeads.html | 15 +- pr/2674/docs/iroh/docs/struct.AuthorId.html | 13 +- .../iroh/docs/struct.AuthorPublicKey.html | 13 +- pr/2674/docs/iroh/docs/struct.DocTicket.html | 11 +- pr/2674/docs/iroh/docs/struct.Entry.html | 11 +- .../docs/iroh/docs/struct.EntrySignature.html | 11 +- .../docs/iroh/docs/struct.NamespaceId.html | 13 +- .../iroh/docs/struct.NamespacePublicKey.html | 13 +- .../iroh/docs/struct.NamespaceSecret.html | 13 +- pr/2674/docs/iroh/docs/struct.ReadOnly.html | 11 +- pr/2674/docs/iroh/docs/struct.Record.html | 11 +- .../iroh/docs/struct.RecordIdentifier.html | 11 +- pr/2674/docs/iroh/docs/struct.Replica.html | 11 +- .../docs/iroh/docs/struct.ReplicaInfo.html | 11 +- .../docs/iroh/docs/struct.SignedEntry.html | 11 +- .../docs/iroh/docs/struct.SyncOutcome.html | 11 +- .../constant.MAX_TIMESTAMP_FUTURE_SHIFT.html | 2 +- .../docs/iroh/docs/sync/enum.Capability.html | 11 +- .../iroh/docs/sync/enum.CapabilityError.html | 11 +- .../iroh/docs/sync/enum.CapabilityKind.html | 11 +- .../iroh/docs/sync/enum.ContentStatus.html | 11 +- pr/2674/docs/iroh/docs/sync/enum.Event.html | 11 +- .../docs/iroh/docs/sync/enum.InsertError.html | 13 +- .../iroh/docs/sync/enum.InsertOrigin.html | 11 +- .../docs/sync/enum.ValidationFailure.html | 11 +- pr/2674/docs/iroh/docs/sync/index.html | 2 +- .../iroh/docs/sync/struct.AuthorHeads.html | 15 +- pr/2674/docs/iroh/docs/sync/struct.Entry.html | 11 +- .../iroh/docs/sync/struct.EntrySignature.html | 11 +- .../docs/iroh/docs/sync/struct.ReadOnly.html | 11 +- .../docs/iroh/docs/sync/struct.Record.html | 11 +- .../docs/sync/struct.RecordIdentifier.html | 11 +- .../docs/iroh/docs/sync/struct.Replica.html | 11 +- .../iroh/docs/sync/struct.ReplicaInfo.html | 11 +- .../iroh/docs/sync/struct.SignedEntry.html | 11 +- .../iroh/docs/sync/struct.SyncOutcome.html | 11 +- .../docs/sync/type.ContentStatusCallback.html | 2 +- .../docs/iroh/docs/sync/type.PeerIdBytes.html | 2 +- .../iroh/docs/sync/type.ProtocolMessage.html | 2 +- .../iroh/docs/type.ContentStatusCallback.html | 2 +- pr/2674/docs/iroh/docs/type.PeerIdBytes.html | 2 +- .../docs/iroh/docs/type.ProtocolMessage.html | 2 +- pr/2674/docs/iroh/gossip/index.html | 2 +- pr/2674/docs/iroh/gossip/metrics/index.html | 2 +- .../iroh/gossip/metrics/struct.Metrics.html | 11 +- .../iroh/gossip/net/constant.GOSSIP_ALPN.html | 2 +- .../docs/iroh/gossip/net/enum.Command.html | 11 +- pr/2674/docs/iroh/gossip/net/enum.Event.html | 11 +- .../iroh/gossip/net/enum.GossipEvent.html | 11 +- pr/2674/docs/iroh/gossip/net/index.html | 2 +- .../docs/iroh/gossip/net/struct.Gossip.html | 11 +- .../gossip/net/struct.GossipReceiver.html | 11 +- .../iroh/gossip/net/struct.GossipSender.html | 11 +- .../iroh/gossip/net/struct.GossipTopic.html | 11 +- .../iroh/gossip/net/struct.JoinOptions.html | 11 +- .../docs/iroh/gossip/net/struct.Message.html | 11 +- .../iroh/gossip/net/type.CommandStream.html | 2 +- .../iroh/gossip/net/type.ProtoCommand.html | 2 +- .../docs/iroh/gossip/net/type.ProtoEvent.html | 2 +- .../docs/iroh/gossip/net/util/fn.read_lp.html | 2 +- .../iroh/gossip/net/util/fn.read_message.html | 2 +- .../gossip/net/util/fn.write_message.html | 2 +- pr/2674/docs/iroh/gossip/net/util/index.html | 2 +- .../iroh/gossip/net/util/struct.Timers.html | 11 +- .../docs/iroh/gossip/proto/enum.Command.html | 11 +- .../iroh/gossip/proto/enum.DeliveryScope.html | 11 +- .../docs/iroh/gossip/proto/enum.Event.html | 13 +- .../docs/iroh/gossip/proto/enum.InEvent.html | 11 +- .../docs/iroh/gossip/proto/enum.OutEvent.html | 11 +- .../docs/iroh/gossip/proto/enum.Scope.html | 11 +- pr/2674/docs/iroh/gossip/proto/index.html | 2 +- .../iroh/gossip/proto/state/enum.InEvent.html | 11 +- .../gossip/proto/state/enum.MessageKind.html | 11 +- .../gossip/proto/state/enum.OutEvent.html | 11 +- .../docs/iroh/gossip/proto/state/index.html | 2 +- .../gossip/proto/state/struct.Message.html | 11 +- .../iroh/gossip/proto/state/struct.State.html | 11 +- .../iroh/gossip/proto/state/struct.Timer.html | 11 +- .../gossip/proto/state/struct.TopicId.html | 11 +- .../docs/iroh/gossip/proto/struct.Config.html | 11 +- .../iroh/gossip/proto/struct.Message.html | 11 +- .../iroh/gossip/proto/struct.PeerData.html | 11 +- .../docs/iroh/gossip/proto/struct.State.html | 11 +- .../docs/iroh/gossip/proto/struct.Timer.html | 11 +- .../iroh/gossip/proto/struct.TopicId.html | 11 +- .../constant.DEFAULT_MAX_MESSAGE_SIZE.html | 2 +- .../iroh/gossip/proto/topic/enum.Command.html | 11 +- .../iroh/gossip/proto/topic/enum.Event.html | 13 +- .../iroh/gossip/proto/topic/enum.InEvent.html | 11 +- .../iroh/gossip/proto/topic/enum.Message.html | 13 +- .../gossip/proto/topic/enum.OutEvent.html | 11 +- .../iroh/gossip/proto/topic/enum.Timer.html | 13 +- .../docs/iroh/gossip/proto/topic/index.html | 2 +- .../gossip/proto/topic/struct.Config.html | 11 +- .../iroh/gossip/proto/topic/struct.State.html | 11 +- .../iroh/gossip/proto/topic/struct.Stats.html | 11 +- .../iroh/gossip/proto/topic/trait.IO.html | 2 +- pr/2674/docs/iroh/gossip/proto/trait.IO.html | 2 +- .../iroh/gossip/proto/trait.PeerIdentity.html | 2 +- .../docs/iroh/gossip/proto/util/index.html | 2 +- .../proto/util/struct.TimeBoundCache.html | 11 +- .../gossip/proto/util/struct.TimerMap.html | 11 +- pr/2674/docs/iroh/index.html | 2 +- pr/2674/docs/iroh/metrics/fn.get_metrics.html | 2 +- .../fn.try_init_metrics_collection.html | 2 +- pr/2674/docs/iroh/metrics/index.html | 2 +- pr/2674/docs/iroh/metrics/struct.Metrics.html | 11 +- .../defaults/constant.DEFAULT_HTTPS_PORT.html | 2 +- .../defaults/constant.DEFAULT_HTTP_PORT.html | 2 +- .../constant.DEFAULT_METRICS_PORT.html | 2 +- .../defaults/constant.DEFAULT_STUN_PORT.html | 2 +- pr/2674/docs/iroh/net/defaults/index.html | 2 +- .../prod/constant.AP_RELAY_HOSTNAME.html | 2 +- .../prod/constant.EU_RELAY_HOSTNAME.html | 2 +- .../prod/constant.NA_RELAY_HOSTNAME.html | 2 +- .../prod/fn.default_ap_relay_node.html | 2 +- .../prod/fn.default_eu_relay_node.html | 2 +- .../prod/fn.default_na_relay_node.html | 2 +- .../defaults/prod/fn.default_relay_map.html | 2 +- .../docs/iroh/net/defaults/prod/index.html | 2 +- .../staging/constant.EU_RELAY_HOSTNAME.html | 2 +- .../staging/constant.NA_RELAY_HOSTNAME.html | 2 +- .../staging/fn.default_eu_relay_node.html | 2 +- .../staging/fn.default_na_relay_node.html | 2 +- .../staging/fn.default_relay_map.html | 2 +- .../docs/iroh/net/defaults/staging/index.html | 2 +- pr/2674/docs/iroh/net/dialer/index.html | 2 +- .../docs/iroh/net/dialer/struct.Dialer.html | 11 +- .../dns/constant.N0_DNS_NODE_ORIGIN_PROD.html | 2 +- .../constant.N0_DNS_NODE_ORIGIN_STAGING.html | 2 +- .../dns/constant.TEST_DNS_NODE_ORIGIN.html | 2 +- .../docs/iroh/net/discovery/dns/index.html | 2 +- .../discovery/dns/struct.DnsDiscovery.html | 11 +- pr/2674/docs/iroh/net/discovery/index.html | 2 +- .../local_swarm_discovery/index.html | 2 +- .../struct.LocalSwarmDiscovery.html | 11 +- .../pkarr/constant.DEFAULT_PKARR_TTL.html | 2 +- .../constant.DEFAULT_REPUBLISH_INTERVAL.html | 2 +- .../constant.N0_DNS_PKARR_RELAY_PROD.html | 2 +- .../constant.N0_DNS_PKARR_RELAY_STAGING.html | 2 +- .../iroh/net/discovery/pkarr/dht/index.html | 2 +- .../discovery/pkarr/dht/struct.Builder.html | 11 +- .../pkarr/dht/struct.DhtDiscovery.html | 11 +- .../docs/iroh/net/discovery/pkarr/index.html | 2 +- .../pkarr/struct.PkarrPublisher.html | 11 +- .../pkarr/struct.PkarrRelayClient.html | 11 +- .../discovery/pkarr/struct.PkarrResolver.html | 11 +- .../discovery/struct.ConcurrentDiscovery.html | 11 +- .../net/discovery/struct.DiscoveryItem.html | 11 +- .../iroh/net/discovery/trait.Discovery.html | 2 +- .../iroh/net/dns/fn.default_resolver.html | 2 +- pr/2674/docs/iroh/net/dns/fn.resolver.html | 2 +- pr/2674/docs/iroh/net/dns/index.html | 2 +- .../dns/node_info/constant.IROH_TXT_NAME.html | 2 +- .../iroh/net/dns/node_info/enum.IrohAttr.html | 11 +- .../iroh/net/dns/node_info/fn.from_z32.html | 2 +- .../iroh/net/dns/node_info/fn.to_z32.html | 2 +- .../docs/iroh/net/dns/node_info/index.html | 2 +- .../net/dns/node_info/struct.NodeInfo.html | 13 +- .../net/dns/node_info/struct.TxtAttrs.html | 11 +- .../docs/iroh/net/dns/trait.ResolverExt.html | 2 +- .../docs/iroh/net/dns/type.DnsResolver.html | 2 +- .../net/endpoint/enum.ConnectionError.html | 13 +- .../net/endpoint/enum.ConnectionType.html | 19 +- .../iroh/net/endpoint/enum.ControlMsg.html | 11 +- .../net/endpoint/enum.DirectAddrType.html | 21 +- .../iroh/net/endpoint/enum.ReadError.html | 13 +- .../iroh/net/endpoint/enum.WriteError.html | 13 +- .../net/endpoint/fn.default_relay_mode.html | 2 +- .../net/endpoint/fn.get_remote_node_id.html | 2 +- .../net/endpoint/fn.make_server_config.html | 2 +- pr/2674/docs/iroh/net/endpoint/index.html | 2 +- .../docs/iroh/net/endpoint/struct.Accept.html | 11 +- .../iroh/net/endpoint/struct.AddrInfo.html | 11 +- .../iroh/net/endpoint/struct.Builder.html | 13 +- .../iroh/net/endpoint/struct.Connecting.html | 11 +- .../iroh/net/endpoint/struct.Connection.html | 11 +- .../endpoint/struct.ConnectionTypeStream.html | 11 +- .../iroh/net/endpoint/struct.DirectAddr.html | 21 +- .../net/endpoint/struct.DirectAddrInfo.html | 11 +- .../endpoint/struct.DirectAddrsStream.html | 13 +- .../iroh/net/endpoint/struct.Endpoint.html | 11 +- .../iroh/net/endpoint/struct.NodeAddr.html | 11 +- .../iroh/net/endpoint/struct.RecvStream.html | 11 +- .../iroh/net/endpoint/struct.RemoteInfo.html | 14 +- .../iroh/net/endpoint/struct.SendStream.html | 11 +- .../net/endpoint/struct.TransportConfig.html | 11 +- .../docs/iroh/net/endpoint/struct.VarInt.html | 11 +- pr/2674/docs/iroh/net/index.html | 2 +- .../net/key/constant.PUBLIC_KEY_LENGTH.html | 2 +- .../iroh/net/key/enum.KeyParsingError.html | 13 +- pr/2674/docs/iroh/net/key/index.html | 2 +- .../docs/iroh/net/key/struct.PublicKey.html | 13 +- .../docs/iroh/net/key/struct.SecretKey.html | 11 +- .../iroh/net/key/struct.SharedSecret.html | 11 +- .../docs/iroh/net/key/struct.Signature.html | 11 +- pr/2674/docs/iroh/net/key/type.NodeId.html | 2 +- pr/2674/docs/iroh/net/metrics/index.html | 2 +- .../net/metrics/struct.MagicsockMetrics.html | 15 +- .../net/metrics/struct.NetcheckMetrics.html | 11 +- .../net/metrics/struct.PortmapMetrics.html | 11 +- .../iroh/net/metrics/struct.RelayMetrics.html | 11 +- pr/2674/docs/iroh/net/net/enum.IpFamily.html | 11 +- pr/2674/docs/iroh/net/net/index.html | 2 +- .../net/net/ip/fn.is_unicast_link_local.html | 2 +- pr/2674/docs/iroh/net/net/ip/index.html | 2 +- .../net/net/ip/struct.LocalAddresses.html | 11 +- pr/2674/docs/iroh/net/net/netmon/index.html | 2 +- .../net/net/netmon/struct.CallbackToken.html | 11 +- .../iroh/net/net/netmon/struct.Monitor.html | 11 +- .../docs/iroh/net/net/struct.UdpSocket.html | 11 +- pr/2674/docs/iroh/net/netcheck/index.html | 2 +- .../docs/iroh/net/netcheck/struct.Client.html | 11 +- .../iroh/net/netcheck/struct.Metrics.html | 11 +- .../net/netcheck/struct.RelayLatencies.html | 11 +- .../docs/iroh/net/netcheck/struct.Report.html | 11 +- .../docs/iroh/net/ping/enum.PingError.html | 13 +- pr/2674/docs/iroh/net/ping/index.html | 2 +- pr/2674/docs/iroh/net/ping/struct.Pinger.html | 11 +- pr/2674/docs/iroh/net/portmapper/index.html | 2 +- .../iroh/net/portmapper/struct.Client.html | 11 +- .../iroh/net/portmapper/struct.Config.html | 11 +- .../iroh/net/portmapper/struct.Metrics.html | 11 +- .../net/portmapper/struct.ProbeOutput.html | 11 +- .../iroh/net/portmapper/struct.Service.html | 11 +- .../net/relay/constant.MAX_PACKET_SIZE.html | 2 +- .../iroh/net/relay/enum.HttpClientError.html | 13 +- .../iroh/net/relay/enum.ReceivedMessage.html | 11 +- .../docs/iroh/net/relay/enum.RelayMode.html | 11 +- .../net/relay/http/constant.RELAY_PATH.html | 2 +- .../relay/http/constant.RELAY_PROBE_PATH.html | 2 +- .../iroh/net/relay/http/enum.Protocol.html | 11 +- pr/2674/docs/iroh/net/relay/http/index.html | 2 +- pr/2674/docs/iroh/net/relay/index.html | 2 +- .../net/relay/server/enum.CertConfig.html | 11 +- .../server/enum.MaybeTlsStreamServer.html | 11 +- pr/2674/docs/iroh/net/relay/server/index.html | 2 +- .../server/struct.ClientConnHandler.html | 11 +- .../iroh/net/relay/server/struct.Limits.html | 11 +- .../iroh/net/relay/server/struct.Metrics.html | 11 +- .../net/relay/server/struct.RelayConfig.html | 11 +- .../iroh/net/relay/server/struct.Server.html | 11 +- .../relay/server/struct.ServerActorTask.html | 11 +- .../net/relay/server/struct.ServerConfig.html | 11 +- .../net/relay/server/struct.StunConfig.html | 11 +- .../net/relay/server/struct.TlsConfig.html | 11 +- .../iroh/net/relay/struct.HttpClient.html | 11 +- .../net/relay/struct.HttpClientBuilder.html | 11 +- .../net/relay/struct.HttpClientReceiver.html | 11 +- .../docs/iroh/net/relay/struct.RelayConn.html | 11 +- .../docs/iroh/net/relay/struct.RelayMap.html | 11 +- .../docs/iroh/net/relay/struct.RelayNode.html | 11 +- .../docs/iroh/net/relay/struct.RelayUrl.html | 13 +- pr/2674/docs/iroh/net/struct.AddrInfo.html | 11 +- pr/2674/docs/iroh/net/struct.Endpoint.html | 11 +- pr/2674/docs/iroh/net/struct.NodeAddr.html | 11 +- pr/2674/docs/iroh/net/stun/enum.Error.html | 11 +- .../docs/iroh/net/stun/enum.MessageClass.html | 11 +- .../iroh/net/stun/enum.StunAttribute.html | 11 +- pr/2674/docs/iroh/net/stun/fn.is.html | 2 +- .../net/stun/fn.parse_binding_request.html | 2 +- .../docs/iroh/net/stun/fn.parse_response.html | 2 +- pr/2674/docs/iroh/net/stun/fn.request.html | 2 +- pr/2674/docs/iroh/net/stun/fn.response.html | 2 +- pr/2674/docs/iroh/net/stun/index.html | 2 +- .../net/stun/methods/constant.BINDING.html | 2 +- .../net/stun/methods/constant.RESERVED.html | 2 +- .../stun/methods/constant.SHARED_SECRET.html | 2 +- pr/2674/docs/iroh/net/stun/methods/index.html | 2 +- .../iroh/net/stun/struct.MessageDecoder.html | 11 +- .../iroh/net/stun/struct.StunDecodeError.html | 11 +- .../iroh/net/stun/struct.TransactionId.html | 11 +- .../test_utils/fn.create_dns_resolver.html | 2 +- .../net/test_utils/fn.run_relay_server.html | 2 +- pr/2674/docs/iroh/net/test_utils/index.html | 2 +- .../test_utils/struct.CleanupDropGuard.html | 11 +- .../net/test_utils/struct.DnsPkarrServer.html | 11 +- pr/2674/docs/iroh/net/ticket/index.html | 2 +- .../iroh/net/ticket/struct.NodeTicket.html | 15 +- .../iroh/net/tls/certificate/fn.generate.html | 2 +- .../iroh/net/tls/certificate/fn.parse.html | 2 +- .../docs/iroh/net/tls/certificate/index.html | 2 +- .../net/tls/certificate/struct.GenError.html | 11 +- .../certificate/struct.P2pCertificate.html | 11 +- .../tls/certificate/struct.P2pExtension.html | 11 +- .../tls/certificate/struct.ParseError.html | 11 +- .../certificate/struct.VerificationError.html | 11 +- .../iroh/net/tls/fn.make_client_config.html | 2 +- .../iroh/net/tls/fn.make_server_config.html | 2 +- pr/2674/docs/iroh/net/tls/index.html | 2 +- pr/2674/docs/iroh/net/type.NodeId.html | 2 +- .../docs/iroh/net/util/chain/fn.chain.html | 2 +- pr/2674/docs/iroh/net/util/chain/index.html | 2 +- .../iroh/net/util/chain/struct.Chain.html | 11 +- pr/2674/docs/iroh/net/util/index.html | 2 +- .../net/util/struct.AbortingJoinHandle.html | 11 +- .../iroh/net/util/struct.CancelOnDrop.html | 11 +- .../iroh/net/util/struct.MaybeFuture.html | 11 +- .../util/struct.SharedAbortingJoinHandle.html | 11 +- .../iroh/node/constant.DEFAULT_RPC_ADDR.html | 2 +- .../docs/iroh/node/enum.DiscoveryConfig.html | 11 +- pr/2674/docs/iroh/node/enum.DocsStorage.html | 11 +- pr/2674/docs/iroh/node/enum.GcPolicy.html | 19 +- pr/2674/docs/iroh/node/enum.RpcStatus.html | 11 +- .../docs/iroh/node/enum.StorageConfig.html | 11 +- pr/2674/docs/iroh/node/index.html | 2 +- pr/2674/docs/iroh/node/struct.Builder.html | 45 +- pr/2674/docs/iroh/node/struct.Node.html | 41 +- .../iroh/node/struct.ProtocolBuilder.html | 33 +- .../docs/iroh/node/trait.ProtocolHandler.html | 2 +- pr/2674/docs/iroh/node/type.FsNode.html | 4 +- .../iroh/node/type.IrohServerEndpoint.html | 2 +- pr/2674/docs/iroh/node/type.MemNode.html | 4 +- .../fs/fn.canonicalized_path_to_string.html | 2 +- pr/2674/docs/iroh/util/fs/fn.key_to_path.html | 2 +- .../docs/iroh/util/fs/fn.load_secret_key.html | 2 +- .../iroh/util/fs/fn.path_content_info.html | 2 +- pr/2674/docs/iroh/util/fs/fn.path_to_key.html | 2 +- ...relative_canonicalized_path_to_string.html | 2 +- pr/2674/docs/iroh/util/fs/fn.scan_dir.html | 2 +- pr/2674/docs/iroh/util/fs/fn.scan_path.html | 2 +- pr/2674/docs/iroh/util/fs/index.html | 2 +- .../docs/iroh/util/fs/struct.DataSource.html | 13 +- .../docs/iroh/util/fs/struct.PathContent.html | 11 +- pr/2674/docs/iroh/util/index.html | 2 +- .../iroh/util/io/enum.BaoValidationError.html | 13 +- pr/2674/docs/iroh/util/io/index.html | 2 +- .../docs/iroh/util/path/enum.IrohPaths.html | 13 +- pr/2674/docs/iroh/util/path/index.html | 2 +- pr/2674/docs/iroh/util/progress/index.html | 2 +- .../iroh/util/progress/struct.Progress.html | 11 +- .../progress/struct.ProgressAsyncReader.html | 11 +- .../util/progress/struct.ProgressEmitter.html | 11 +- .../util/progress/struct.ProgressWriter.html | 11 +- pr/2674/docs/iroh_base/all.html | 2 +- .../iroh_base/base32/enum.DecodeKind.html | 2 +- .../base32/enum.HexOrBase32ParseError.html | 4 +- pr/2674/docs/iroh_base/base32/fn.fmt.html | 2 +- .../docs/iroh_base/base32/fn.fmt_append.html | 2 +- .../docs/iroh_base/base32/fn.fmt_short.html | 2 +- .../docs/iroh_base/base32/fn.parse_array.html | 2 +- .../base32/fn.parse_array_hex_or_base32.html | 2 +- .../docs/iroh_base/base32/fn.parse_vec.html | 2 +- pr/2674/docs/iroh_base/base32/index.html | 2 +- .../iroh_base/base32/struct.DecodeError.html | 4 +- .../docs/iroh_base/hash/enum.BlobFormat.html | 6 +- pr/2674/docs/iroh_base/hash/index.html | 2 +- pr/2674/docs/iroh_base/hash/struct.Hash.html | 6 +- .../iroh_base/hash/struct.HashAndFormat.html | 2 +- pr/2674/docs/iroh_base/index.html | 2 +- .../key/constant.PUBLIC_KEY_LENGTH.html | 2 +- .../iroh_base/key/enum.KeyParsingError.html | 4 +- pr/2674/docs/iroh_base/key/index.html | 2 +- .../docs/iroh_base/key/struct.PublicKey.html | 4 +- .../docs/iroh_base/key/struct.SecretKey.html | 2 +- .../iroh_base/key/struct.SharedSecret.html | 2 +- .../docs/iroh_base/key/struct.Signature.html | 2 +- pr/2674/docs/iroh_base/key/type.NodeId.html | 2 +- .../node_addr/enum.AddrInfoOptions.html | 2 +- pr/2674/docs/iroh_base/node_addr/index.html | 2 +- .../iroh_base/node_addr/struct.AddrInfo.html | 2 +- .../iroh_base/node_addr/struct.NodeAddr.html | 2 +- .../iroh_base/node_addr/struct.RelayUrl.html | 6 +- pr/2674/docs/iroh_base/rpc/index.html | 2 +- .../docs/iroh_base/rpc/struct.RpcError.html | 4 +- .../docs/iroh_base/rpc/type.RpcResult.html | 2 +- pr/2674/docs/iroh_base/ticket/enum.Error.html | 2 +- pr/2674/docs/iroh_base/ticket/index.html | 2 +- .../iroh_base/ticket/struct.BlobTicket.html | 6 +- .../iroh_base/ticket/struct.NodeTicket.html | 6 +- .../docs/iroh_base/ticket/trait.Ticket.html | 2 +- pr/2674/docs/iroh_blobs/all.html | 2 +- .../iroh_blobs/constant.IROH_BLOCK_SIZE.html | 2 +- .../downloader/enum.DownloadError.html | 4 +- .../downloader/enum.FailureAction.html | 2 +- .../iroh_blobs/downloader/enum.GetOutput.html | 2 +- pr/2674/docs/iroh_blobs/downloader/index.html | 2 +- .../downloader/struct.ConcurrencyLimits.html | 2 +- .../downloader/struct.DownloadHandle.html | 2 +- .../downloader/struct.DownloadKind.html | 4 +- .../downloader/struct.DownloadRequest.html | 2 +- .../downloader/struct.Downloader.html | 2 +- .../downloader/struct.IntentId.html | 2 +- .../downloader/struct.RetryConfig.html | 2 +- .../iroh_blobs/downloader/trait.Dialer.html | 2 +- .../iroh_blobs/downloader/trait.Getter.html | 2 +- .../downloader/trait.NeedsConn.html | 2 +- pr/2674/docs/iroh_blobs/enum.BlobFormat.html | 2 +- .../export/enum.ExportProgress.html | 2 +- pr/2674/docs/iroh_blobs/export/fn.export.html | 2 +- .../iroh_blobs/export/fn.export_blob.html | 2 +- .../export/fn.export_collection.html | 2 +- pr/2674/docs/iroh_blobs/export/index.html | 2 +- .../iroh_blobs/format/collection/index.html | 2 +- .../format/collection/struct.Collection.html | 2 +- .../format/collection/trait.SimpleStore.html | 2 +- pr/2674/docs/iroh_blobs/format/index.html | 2 +- .../docs/iroh_blobs/get/db/enum.BlobId.html | 2 +- .../docs/iroh_blobs/get/db/enum.BlobInfo.html | 2 +- .../get/db/enum.DownloadProgress.html | 2 +- .../docs/iroh_blobs/get/db/enum.GetState.html | 2 +- .../docs/iroh_blobs/get/db/fn.blob_info.html | 2 +- .../docs/iroh_blobs/get/db/fn.get_to_db.html | 2 +- .../get/db/fn.get_to_db_in_steps.html | 2 +- .../iroh_blobs/get/db/fn.valid_ranges.html | 2 +- pr/2674/docs/iroh_blobs/get/db/index.html | 2 +- .../get/db/struct.GetStateNeedsConn.html | 2 +- .../iroh_blobs/get/enum.GetResponseError.html | 4 +- .../iroh_blobs/get/error/enum.GetError.html | 4 +- pr/2674/docs/iroh_blobs/get/error/index.html | 2 +- .../get/fsm/enum.AtBlobHeaderNextError.html | 4 +- .../get/fsm/enum.BlobContentNext.html | 2 +- .../get/fsm/enum.ConnectedNext.html | 2 +- .../get/fsm/enum.ConnectedNextError.html | 4 +- .../iroh_blobs/get/fsm/enum.DecodeError.html | 4 +- .../iroh_blobs/get/fsm/enum.EndBlobNext.html | 4 +- pr/2674/docs/iroh_blobs/get/fsm/fn.start.html | 2 +- pr/2674/docs/iroh_blobs/get/fsm/index.html | 2 +- .../get/fsm/struct.AtBlobContent.html | 2 +- .../get/fsm/struct.AtBlobHeader.html | 2 +- .../iroh_blobs/get/fsm/struct.AtClosing.html | 4 +- .../get/fsm/struct.AtConnected.html | 2 +- .../iroh_blobs/get/fsm/struct.AtEndBlob.html | 2 +- .../iroh_blobs/get/fsm/struct.AtInitial.html | 2 +- .../get/fsm/struct.AtStartChild.html | 2 +- .../get/fsm/struct.AtStartRoot.html | 2 +- pr/2674/docs/iroh_blobs/get/index.html | 2 +- .../get/progress/enum.BlobProgress.html | 2 +- .../docs/iroh_blobs/get/progress/index.html | 2 +- .../get/progress/struct.BlobState.html | 2 +- .../get/progress/struct.TransferState.html | 2 +- .../get/progress/type.ProgressId.html | 2 +- .../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/2674/docs/iroh_blobs/get/struct.Stats.html | 2 +- .../iroh_blobs/hashseq/fn.parse_hash_seq.html | 2 +- pr/2674/docs/iroh_blobs/hashseq/index.html | 2 +- .../iroh_blobs/hashseq/struct.HashSeq.html | 2 +- .../hashseq/struct.HashSeqIter.html | 2 +- .../hashseq/struct.HashSeqStream.html | 2 +- pr/2674/docs/iroh_blobs/index.html | 2 +- pr/2674/docs/iroh_blobs/metrics/index.html | 2 +- .../iroh_blobs/metrics/struct.Metrics.html | 30 +- .../iroh_blobs/protocol/constant.ALPN.html | 2 +- .../protocol/constant.MAX_MESSAGE_SIZE.html | 2 +- .../docs/iroh_blobs/protocol/enum.Closed.html | 2 +- .../iroh_blobs/protocol/enum.Request.html | 2 +- pr/2674/docs/iroh_blobs/protocol/index.html | 2 +- .../protocol/struct.GetRequest.html | 2 +- .../struct.NonEmptyRequestRangeSpecIter.html | 2 +- .../iroh_blobs/protocol/struct.RangeSpec.html | 2 +- .../protocol/struct.RangeSpecSeq.html | 2 +- .../protocol/struct.UnknownErrorCode.html | 4 +- .../iroh_blobs/provider/enum.AddProgress.html | 2 +- .../provider/enum.BatchAddPathProgress.html | 2 +- .../docs/iroh_blobs/provider/enum.Event.html | 2 +- .../iroh_blobs/provider/enum.SentStatus.html | 2 +- .../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 +- pr/2674/docs/iroh_blobs/provider/index.html | 2 +- .../provider/struct.EventSender.html | 2 +- .../provider/struct.ResponseWriter.html | 2 +- .../provider/struct.TransferStats.html | 2 +- .../provider/trait.CustomEventSender.html | 2 +- .../iroh_blobs/store/enum.BaoBlobSize.html | 2 +- .../store/enum.ConsistencyCheckProgress.html | 2 +- .../iroh_blobs/store/enum.EntryStatus.html | 2 +- pr/2674/docs/iroh_blobs/store/enum.Event.html | 2 +- .../iroh_blobs/store/enum.ExportFormat.html | 2 +- .../iroh_blobs/store/enum.ExportMode.html | 2 +- .../iroh_blobs/store/enum.ExportProgress.html | 2 +- .../iroh_blobs/store/enum.GcMarkEvent.html | 2 +- .../iroh_blobs/store/enum.GcSweepEvent.html | 2 +- .../iroh_blobs/store/enum.ImportMode.html | 2 +- .../iroh_blobs/store/enum.ImportProgress.html | 2 +- .../iroh_blobs/store/enum.ReportLevel.html | 2 +- .../store/enum.ValidateProgress.html | 2 +- pr/2674/docs/iroh_blobs/store/fs/index.html | 4 +- .../docs/iroh_blobs/store/fs/sidebar-items.js | 2 +- .../store/fs/struct.BatchOptions.html | 4 +- .../store/fs/struct.FlatStorePaths.html | 123 --- .../store/fs/struct.InlineOptions.html | 8 +- .../iroh_blobs/store/fs/struct.Options.html | 4 +- .../store/fs/struct.PathOptions.html | 4 +- .../iroh_blobs/store/fs/struct.Store.html | 27 +- .../docs/iroh_blobs/store/fs/type.Entry.html | 6 +- pr/2674/docs/iroh_blobs/store/index.html | 2 +- pr/2674/docs/iroh_blobs/store/mem/index.html | 2 +- .../iroh_blobs/store/mem/struct.Entry.html | 2 +- .../iroh_blobs/store/mem/struct.Store.html | 2 +- .../iroh_blobs/store/readonly_mem/index.html | 2 +- .../store/readonly_mem/struct.Entry.html | 2 +- .../store/readonly_mem/struct.Store.html | 2 +- .../store/trait.BaoBatchWriter.html | 2 +- pr/2674/docs/iroh_blobs/store/trait.Map.html | 4 +- .../docs/iroh_blobs/store/trait.MapEntry.html | 4 +- .../iroh_blobs/store/trait.MapEntryMut.html | 4 +- .../docs/iroh_blobs/store/trait.MapMut.html | 4 +- .../iroh_blobs/store/trait.ReadableStore.html | 4 +- .../docs/iroh_blobs/store/trait.Store.html | 4 +- .../docs/iroh_blobs/store/type.DbIter.html | 2 +- .../store/type.ExportProgressCb.html | 2 +- pr/2674/docs/iroh_blobs/struct.Hash.html | 6 +- .../docs/iroh_blobs/struct.HashAndFormat.html | 2 +- .../docs/iroh_blobs/util/enum.MemOrFile.html | 2 +- .../iroh_blobs/util/enum.SetTagOption.html | 2 +- .../docs/iroh_blobs/util/fn.total_bytes.html | 2 +- pr/2674/docs/iroh_blobs/util/index.html | 2 +- pr/2674/docs/iroh_blobs/util/io/index.html | 2 +- .../util/io/struct.TrackingReader.html | 2 +- .../util/io/struct.TrackingWriter.html | 2 +- .../util/local_pool/enum.PanicMode.html | 2 +- .../util/local_pool/enum.SpawnError.html | 4 +- .../iroh_blobs/util/local_pool/index.html | 2 +- .../util/local_pool/struct.Config.html | 2 +- .../util/local_pool/struct.LocalPool.html | 2 +- .../local_pool/struct.LocalPoolHandle.html | 2 +- .../util/local_pool/struct.Run.html | 2 +- .../util/progress/enum.ProgressSendError.html | 4 +- .../docs/iroh_blobs/util/progress/index.html | 2 +- .../struct.AsyncChannelProgressSender.html | 2 +- .../progress/struct.BoxedProgressSender.html | 2 +- .../struct.FallibleProgressSliceWriter.html | 2 +- .../progress/struct.IgnoreProgressSender.html | 2 +- .../progress/struct.ProgressSliceWriter.html | 2 +- .../util/progress/struct.WithFilterMap.html | 2 +- .../util/progress/struct.WithMap.html | 2 +- .../util/progress/trait.IdGenerator.html | 2 +- .../util/progress/trait.ProgressSender.html | 2 +- .../progress/type.ProgressSendResult.html | 2 +- .../iroh_blobs/util/struct.SparseMemFile.html | 2 +- pr/2674/docs/iroh_blobs/util/struct.Tag.html | 8 +- .../docs/iroh_blobs/util/struct.TempTag.html | 2 +- .../iroh_blobs/util/trait.TagCounter.html | 4 +- .../docs/iroh_blobs/util/trait.TagDrop.html | 4 +- pr/2674/docs/iroh_dns_server/all.html | 2 +- .../config/enum.BootstrapOption.html | 2 +- .../docs/iroh_dns_server/config/index.html | 2 +- .../iroh_dns_server/config/struct.Config.html | 2 +- .../config/struct.MainlineConfig.html | 2 +- .../config/struct.MetricsConfig.html | 2 +- pr/2674/docs/iroh_dns_server/dns/index.html | 2 +- .../iroh_dns_server/dns/struct.DnsConfig.html | 2 +- .../dns/struct.DnsHandler.html | 2 +- .../iroh_dns_server/dns/struct.DnsServer.html | 2 +- .../iroh_dns_server/dns/struct.Handle.html | 2 +- .../iroh_dns_server/http/enum.CertMode.html | 6 +- pr/2674/docs/iroh_dns_server/http/index.html | 2 +- .../http/struct.HttpConfig.html | 2 +- .../http/struct.HttpServer.html | 2 +- .../http/struct.HttpsConfig.html | 2 +- pr/2674/docs/iroh_dns_server/index.html | 2 +- .../metrics/fn.init_metrics.html | 2 +- .../docs/iroh_dns_server/metrics/index.html | 2 +- .../metrics/struct.Metrics.html | 2 +- .../fn.run_with_config_until_ctrl_c.html | 2 +- .../docs/iroh_dns_server/server/index.html | 2 +- .../iroh_dns_server/server/struct.Server.html | 2 +- pr/2674/docs/iroh_dns_server/state/index.html | 2 +- .../state/struct.AppState.html | 2 +- pr/2674/docs/iroh_docs/actor/index.html | 2 +- .../docs/iroh_docs/actor/struct.OpenOpts.html | 2 +- .../iroh_docs/actor/struct.OpenState.html | 2 +- .../iroh_docs/actor/struct.SyncHandle.html | 4 +- pr/2674/docs/iroh_docs/all.html | 2 +- .../engine/enum.DefaultAuthorStorage.html | 2 +- .../docs/iroh_docs/engine/enum.LiveEvent.html | 18 +- .../docs/iroh_docs/engine/enum.Origin.html | 2 +- .../iroh_docs/engine/enum.SyncReason.html | 2 +- .../engine/fn.entry_to_content_status.html | 2 +- pr/2674/docs/iroh_docs/engine/index.html | 4 +- .../engine/struct.DefaultAuthor.html | 2 +- .../docs/iroh_docs/engine/struct.Engine.html | 10 +- .../iroh_docs/engine/struct.SyncEvent.html | 6 +- pr/2674/docs/iroh_docs/index.html | 4 +- pr/2674/docs/iroh_docs/metrics/index.html | 2 +- .../iroh_docs/metrics/struct.Metrics.html | 44 +- .../iroh_docs/net/constant.DOCS_ALPN.html | 2 +- .../docs/iroh_docs/net/enum.AbortReason.html | 2 +- .../docs/iroh_docs/net/enum.AcceptError.html | 18 +- .../iroh_docs/net/enum.AcceptOutcome.html | 2 +- .../docs/iroh_docs/net/enum.ConnectError.html | 2 +- .../iroh_docs/net/fn.connect_and_sync.html | 4 +- .../iroh_docs/net/fn.handle_connection.html | 4 +- pr/2674/docs/iroh_docs/net/index.html | 2 +- .../iroh_docs/net/struct.SyncFinished.html | 6 +- .../docs/iroh_docs/net/struct.Timings.html | 2 +- .../iroh_docs/store/enum.AuthorFilter.html | 2 +- .../iroh_docs/store/enum.DownloadPolicy.html | 2 +- .../docs/iroh_docs/store/enum.FilterKind.html | 6 +- .../store/enum.ImportNamespaceOutcome.html | 2 +- .../docs/iroh_docs/store/enum.KeyFilter.html | 2 +- .../docs/iroh_docs/store/enum.OpenError.html | 4 +- pr/2674/docs/iroh_docs/store/enum.SortBy.html | 2 +- .../iroh_docs/store/enum.SortDirection.html | 2 +- pr/2674/docs/iroh_docs/store/fs/index.html | 2 +- .../fs/struct.ContentHashesIterator.html | 4 +- .../store/fs/struct.LatestIterator.html | 2 +- .../store/fs/struct.ParentIterator.html | 2 +- .../store/fs/struct.RecordsRange.html | 2 +- .../docs/iroh_docs/store/fs/struct.Store.html | 2 +- .../store/fs/struct.StoreInstance.html | 2 +- pr/2674/docs/iroh_docs/store/index.html | 2 +- .../iroh_docs/store/struct.FlatQuery.html | 2 +- .../store/struct.MemPublicKeyStore.html | 2 +- .../docs/iroh_docs/store/struct.Query.html | 4 +- .../iroh_docs/store/struct.QueryBuilder.html | 4 +- .../store/struct.SingleLatestPerKeyQuery.html | 2 +- .../store/trait.DownloadPolicyStore.html | 2 +- .../iroh_docs/store/trait.PublicKeyStore.html | 2 +- pr/2674/docs/iroh_docs/struct.Author.html | 4 +- .../docs/iroh_docs/struct.AuthorHeads.html | 4 +- pr/2674/docs/iroh_docs/struct.AuthorId.html | 6 +- .../iroh_docs/struct.AuthorPublicKey.html | 8 +- pr/2674/docs/iroh_docs/struct.DocTicket.html | 12 +- .../docs/iroh_docs/struct.NamespaceId.html | 8 +- .../iroh_docs/struct.NamespacePublicKey.html | 6 +- .../iroh_docs/struct.NamespaceSecret.html | 4 +- .../constant.MAX_TIMESTAMP_FUTURE_SHIFT.html | 2 +- .../docs/iroh_docs/sync/enum.Capability.html | 2 +- .../iroh_docs/sync/enum.CapabilityError.html | 4 +- .../iroh_docs/sync/enum.CapabilityKind.html | 6 +- .../iroh_docs/sync/enum.ContentStatus.html | 2 +- pr/2674/docs/iroh_docs/sync/enum.Event.html | 2 +- .../docs/iroh_docs/sync/enum.InsertError.html | 4 +- .../iroh_docs/sync/enum.InsertOrigin.html | 2 +- .../sync/enum.ValidationFailure.html | 2 +- pr/2674/docs/iroh_docs/sync/index.html | 2 +- .../iroh_docs/sync/struct.AuthorHeads.html | 4 +- pr/2674/docs/iroh_docs/sync/struct.Entry.html | 6 +- .../iroh_docs/sync/struct.EntrySignature.html | 2 +- .../docs/iroh_docs/sync/struct.ReadOnly.html | 2 +- .../docs/iroh_docs/sync/struct.Record.html | 8 +- .../sync/struct.RecordIdentifier.html | 2 +- .../docs/iroh_docs/sync/struct.Replica.html | 6 +- .../iroh_docs/sync/struct.ReplicaInfo.html | 2 +- .../iroh_docs/sync/struct.SignedEntry.html | 6 +- .../iroh_docs/sync/struct.SyncOutcome.html | 2 +- .../sync/type.ContentStatusCallback.html | 2 +- .../docs/iroh_docs/sync/type.PeerIdBytes.html | 2 +- .../iroh_docs/sync/type.ProtocolMessage.html | 2 +- pr/2674/docs/iroh_gossip/all.html | 2 +- pr/2674/docs/iroh_gossip/index.html | 2 +- pr/2674/docs/iroh_gossip/metrics/index.html | 2 +- .../iroh_gossip/metrics/struct.Metrics.html | 42 +- .../iroh_gossip/net/constant.GOSSIP_ALPN.html | 2 +- .../docs/iroh_gossip/net/enum.Command.html | 6 +- pr/2674/docs/iroh_gossip/net/enum.Event.html | 2 +- .../iroh_gossip/net/enum.GossipEvent.html | 16 +- pr/2674/docs/iroh_gossip/net/index.html | 2 +- .../docs/iroh_gossip/net/struct.Gossip.html | 8 +- .../net/struct.GossipReceiver.html | 4 +- .../iroh_gossip/net/struct.GossipSender.html | 4 +- .../iroh_gossip/net/struct.GossipTopic.html | 2 +- .../iroh_gossip/net/struct.JoinOptions.html | 8 +- .../docs/iroh_gossip/net/struct.Message.html | 6 +- .../iroh_gossip/net/type.CommandStream.html | 2 +- .../iroh_gossip/net/type.ProtoCommand.html | 6 +- .../docs/iroh_gossip/net/type.ProtoEvent.html | 14 +- .../docs/iroh_gossip/net/util/fn.read_lp.html | 2 +- .../iroh_gossip/net/util/fn.read_message.html | 4 +- .../net/util/fn.write_message.html | 4 +- pr/2674/docs/iroh_gossip/net/util/index.html | 2 +- .../iroh_gossip/net/util/struct.Timers.html | 2 +- .../iroh_gossip/proto/enum.DeliveryScope.html | 2 +- .../docs/iroh_gossip/proto/enum.Scope.html | 2 +- pr/2674/docs/iroh_gossip/proto/index.html | 2 +- .../iroh_gossip/proto/state/enum.InEvent.html | 2 +- .../proto/state/enum.MessageKind.html | 2 +- .../proto/state/enum.OutEvent.html | 2 +- .../docs/iroh_gossip/proto/state/index.html | 2 +- .../proto/state/struct.Message.html | 2 +- .../iroh_gossip/proto/state/struct.State.html | 2 +- .../iroh_gossip/proto/state/struct.Timer.html | 2 +- .../proto/state/struct.TopicId.html | 2 +- .../iroh_gossip/proto/struct.PeerData.html | 2 +- .../constant.DEFAULT_MAX_MESSAGE_SIZE.html | 2 +- .../iroh_gossip/proto/topic/enum.Command.html | 2 +- .../iroh_gossip/proto/topic/enum.Event.html | 4 +- .../iroh_gossip/proto/topic/enum.InEvent.html | 2 +- .../iroh_gossip/proto/topic/enum.Message.html | 2 +- .../proto/topic/enum.OutEvent.html | 2 +- .../iroh_gossip/proto/topic/enum.Timer.html | 2 +- .../docs/iroh_gossip/proto/topic/index.html | 2 +- .../proto/topic/struct.Config.html | 2 +- .../iroh_gossip/proto/topic/struct.State.html | 2 +- .../iroh_gossip/proto/topic/struct.Stats.html | 2 +- .../iroh_gossip/proto/topic/trait.IO.html | 2 +- .../iroh_gossip/proto/trait.PeerIdentity.html | 2 +- .../docs/iroh_gossip/proto/util/index.html | 2 +- .../proto/util/struct.TimeBoundCache.html | 2 +- .../proto/util/struct.TimerMap.html | 2 +- pr/2674/docs/iroh_metrics/all.html | 2 +- pr/2674/docs/iroh_metrics/core/index.html | 2 +- .../docs/iroh_metrics/core/struct.Core.html | 2 +- .../iroh_metrics/core/struct.Counter.html | 2 +- .../core/struct.UsageReporter.html | 2 +- .../core/struct.UsageStatsReport.html | 2 +- .../core/trait.HistogramType.html | 2 +- .../docs/iroh_metrics/core/trait.Metric.html | 2 +- .../iroh_metrics/core/trait.MetricType.html | 2 +- .../iroh_metrics/core/type.UsageResource.html | 2 +- .../fn.parse_prometheus_metrics.html | 2 +- .../iroh_metrics/fn.report_usage_stats.html | 2 +- pr/2674/docs/iroh_metrics/index.html | 2 +- pr/2674/docs/iroh_metrics/macro.inc.html | 2 +- pr/2674/docs/iroh_metrics/macro.inc_by.html | 2 +- pr/2674/docs/iroh_metrics/macro.set.html | 2 +- .../metrics/fn.start_metrics_dumper.html | 2 +- .../metrics/fn.start_metrics_server.html | 2 +- pr/2674/docs/iroh_metrics/metrics/index.html | 2 +- pr/2674/docs/iroh_net/all.html | 2 +- .../defaults/constant.DEFAULT_HTTPS_PORT.html | 2 +- .../defaults/constant.DEFAULT_HTTP_PORT.html | 2 +- .../constant.DEFAULT_METRICS_PORT.html | 2 +- .../defaults/constant.DEFAULT_STUN_PORT.html | 2 +- pr/2674/docs/iroh_net/defaults/index.html | 2 +- .../prod/constant.AP_RELAY_HOSTNAME.html | 2 +- .../prod/constant.EU_RELAY_HOSTNAME.html | 2 +- .../prod/constant.NA_RELAY_HOSTNAME.html | 2 +- .../prod/fn.default_ap_relay_node.html | 2 +- .../prod/fn.default_eu_relay_node.html | 2 +- .../prod/fn.default_na_relay_node.html | 2 +- .../defaults/prod/fn.default_relay_map.html | 2 +- .../docs/iroh_net/defaults/prod/index.html | 2 +- .../staging/constant.EU_RELAY_HOSTNAME.html | 2 +- .../staging/constant.NA_RELAY_HOSTNAME.html | 2 +- .../staging/fn.default_eu_relay_node.html | 2 +- .../staging/fn.default_na_relay_node.html | 2 +- .../staging/fn.default_relay_map.html | 2 +- .../docs/iroh_net/defaults/staging/index.html | 2 +- pr/2674/docs/iroh_net/dialer/index.html | 2 +- .../docs/iroh_net/dialer/struct.Dialer.html | 2 +- .../dns/constant.N0_DNS_NODE_ORIGIN_PROD.html | 2 +- .../constant.N0_DNS_NODE_ORIGIN_STAGING.html | 2 +- .../dns/constant.TEST_DNS_NODE_ORIGIN.html | 2 +- .../docs/iroh_net/discovery/dns/index.html | 2 +- .../discovery/dns/struct.DnsDiscovery.html | 2 +- pr/2674/docs/iroh_net/discovery/index.html | 2 +- .../local_swarm_discovery/index.html | 2 +- .../struct.LocalSwarmDiscovery.html | 2 +- .../pkarr/constant.DEFAULT_PKARR_TTL.html | 2 +- .../constant.DEFAULT_REPUBLISH_INTERVAL.html | 2 +- .../constant.N0_DNS_PKARR_RELAY_PROD.html | 2 +- .../constant.N0_DNS_PKARR_RELAY_STAGING.html | 2 +- .../iroh_net/discovery/pkarr/dht/index.html | 2 +- .../discovery/pkarr/dht/struct.Builder.html | 2 +- .../pkarr/dht/struct.DhtDiscovery.html | 2 +- .../docs/iroh_net/discovery/pkarr/index.html | 2 +- .../pkarr/struct.PkarrPublisher.html | 2 +- .../pkarr/struct.PkarrRelayClient.html | 2 +- .../discovery/pkarr/struct.PkarrResolver.html | 2 +- .../discovery/struct.ConcurrentDiscovery.html | 2 +- .../discovery/struct.DiscoveryItem.html | 2 +- .../iroh_net/discovery/trait.Discovery.html | 2 +- .../iroh_net/dns/fn.default_resolver.html | 2 +- pr/2674/docs/iroh_net/dns/fn.resolver.html | 2 +- pr/2674/docs/iroh_net/dns/index.html | 2 +- .../dns/node_info/constant.IROH_TXT_NAME.html | 2 +- .../iroh_net/dns/node_info/enum.IrohAttr.html | 4 +- .../iroh_net/dns/node_info/fn.from_z32.html | 2 +- .../iroh_net/dns/node_info/fn.to_z32.html | 2 +- .../docs/iroh_net/dns/node_info/index.html | 2 +- .../dns/node_info/struct.NodeInfo.html | 4 +- .../dns/node_info/struct.TxtAttrs.html | 2 +- .../docs/iroh_net/dns/trait.ResolverExt.html | 2 +- .../docs/iroh_net/dns/type.DnsResolver.html | 2 +- .../endpoint/enum.ConnectionError.html | 2 +- .../endpoint/enum.ConnectionType.html | 10 +- .../iroh_net/endpoint/enum.ControlMsg.html | 6 +- .../endpoint/enum.DirectAddrType.html | 12 +- .../iroh_net/endpoint/enum.ReadError.html | 2 +- .../iroh_net/endpoint/enum.WriteError.html | 2 +- .../endpoint/fn.default_relay_mode.html | 2 +- .../endpoint/fn.get_remote_node_id.html | 2 +- .../endpoint/fn.make_server_config.html | 2 +- pr/2674/docs/iroh_net/endpoint/index.html | 2 +- .../docs/iroh_net/endpoint/struct.Accept.html | 2 +- .../iroh_net/endpoint/struct.AddrInfo.html | 18 +- .../iroh_net/endpoint/struct.Builder.html | 4 +- .../iroh_net/endpoint/struct.Connecting.html | 2 +- .../iroh_net/endpoint/struct.Connection.html | 2 +- .../endpoint/struct.ConnectionTypeStream.html | 2 +- .../iroh_net/endpoint/struct.DirectAddr.html | 12 +- .../endpoint/struct.DirectAddrInfo.html | 2 +- .../endpoint/struct.DirectAddrsStream.html | 4 +- .../iroh_net/endpoint/struct.Endpoint.html | 2 +- .../iroh_net/endpoint/struct.NodeAddr.html | 28 +- .../iroh_net/endpoint/struct.RecvStream.html | 2 +- .../iroh_net/endpoint/struct.RemoteInfo.html | 7 +- .../iroh_net/endpoint/struct.SendStream.html | 2 +- .../endpoint/struct.TransportConfig.html | 2 +- .../docs/iroh_net/endpoint/struct.VarInt.html | 2 +- pr/2674/docs/iroh_net/index.html | 2 +- .../key/constant.PUBLIC_KEY_LENGTH.html | 2 +- .../iroh_net/key/enum.KeyParsingError.html | 8 +- pr/2674/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 +- .../docs/iroh_net/key/struct.Signature.html | 2 +- pr/2674/docs/iroh_net/key/type.NodeId.html | 2 +- pr/2674/docs/iroh_net/metrics/index.html | 2 +- .../metrics/struct.MagicsockMetrics.html | 98 +-- pr/2674/docs/iroh_net/net/enum.IpFamily.html | 4 +- pr/2674/docs/iroh_net/net/index.html | 2 +- .../net/ip/fn.is_unicast_link_local.html | 2 +- pr/2674/docs/iroh_net/net/ip/index.html | 2 +- .../net/ip/struct.LocalAddresses.html | 2 +- pr/2674/docs/iroh_net/net/netmon/index.html | 2 +- .../net/netmon/struct.CallbackToken.html | 2 +- .../iroh_net/net/netmon/struct.Monitor.html | 2 +- .../docs/iroh_net/net/struct.UdpSocket.html | 2 +- pr/2674/docs/iroh_net/netcheck/index.html | 2 +- .../docs/iroh_net/netcheck/struct.Client.html | 2 +- .../iroh_net/netcheck/struct.Metrics.html | 20 +- .../netcheck/struct.RelayLatencies.html | 2 +- .../docs/iroh_net/netcheck/struct.Report.html | 4 +- .../docs/iroh_net/ping/enum.PingError.html | 4 +- pr/2674/docs/iroh_net/ping/index.html | 2 +- pr/2674/docs/iroh_net/ping/struct.Pinger.html | 2 +- pr/2674/docs/iroh_net/portmapper/index.html | 2 +- .../iroh_net/portmapper/struct.Client.html | 2 +- .../iroh_net/portmapper/struct.Config.html | 2 +- .../iroh_net/portmapper/struct.Metrics.html | 28 +- .../portmapper/struct.ProbeOutput.html | 4 +- .../iroh_net/portmapper/struct.Service.html | 2 +- .../relay/constant.MAX_PACKET_SIZE.html | 2 +- .../iroh_net/relay/enum.HttpClientError.html | 4 +- .../iroh_net/relay/enum.ReceivedMessage.html | 2 +- .../docs/iroh_net/relay/enum.RelayMode.html | 2 +- .../relay/http/constant.RELAY_PATH.html | 2 +- .../relay/http/constant.RELAY_PROBE_PATH.html | 2 +- .../iroh_net/relay/http/enum.Protocol.html | 2 +- pr/2674/docs/iroh_net/relay/http/index.html | 2 +- pr/2674/docs/iroh_net/relay/index.html | 2 +- .../relay/server/enum.CertConfig.html | 2 +- .../server/enum.MaybeTlsStreamServer.html | 2 +- pr/2674/docs/iroh_net/relay/server/index.html | 2 +- .../server/struct.ClientConnHandler.html | 2 +- .../iroh_net/relay/server/struct.Limits.html | 2 +- .../iroh_net/relay/server/struct.Metrics.html | 82 +- .../relay/server/struct.RelayConfig.html | 2 +- .../iroh_net/relay/server/struct.Server.html | 2 +- .../relay/server/struct.ServerActorTask.html | 2 +- .../relay/server/struct.ServerConfig.html | 2 +- .../relay/server/struct.StunConfig.html | 2 +- .../relay/server/struct.TlsConfig.html | 2 +- .../iroh_net/relay/struct.HttpClient.html | 2 +- .../relay/struct.HttpClientBuilder.html | 2 +- .../relay/struct.HttpClientReceiver.html | 2 +- .../docs/iroh_net/relay/struct.RelayConn.html | 2 +- .../docs/iroh_net/relay/struct.RelayMap.html | 4 +- .../docs/iroh_net/relay/struct.RelayNode.html | 2 +- .../docs/iroh_net/relay/struct.RelayUrl.html | 20 +- pr/2674/docs/iroh_net/struct.AddrInfo.html | 18 +- pr/2674/docs/iroh_net/struct.NodeAddr.html | 28 +- pr/2674/docs/iroh_net/stun/enum.Error.html | 2 +- .../docs/iroh_net/stun/enum.MessageClass.html | 2 +- .../iroh_net/stun/enum.StunAttribute.html | 2 +- pr/2674/docs/iroh_net/stun/fn.is.html | 2 +- .../stun/fn.parse_binding_request.html | 2 +- .../docs/iroh_net/stun/fn.parse_response.html | 2 +- pr/2674/docs/iroh_net/stun/fn.request.html | 2 +- pr/2674/docs/iroh_net/stun/fn.response.html | 2 +- pr/2674/docs/iroh_net/stun/index.html | 2 +- .../stun/methods/constant.BINDING.html | 2 +- .../stun/methods/constant.RESERVED.html | 2 +- .../stun/methods/constant.SHARED_SECRET.html | 2 +- pr/2674/docs/iroh_net/stun/methods/index.html | 2 +- .../iroh_net/stun/struct.MessageDecoder.html | 2 +- .../iroh_net/stun/struct.StunDecodeError.html | 2 +- .../iroh_net/stun/struct.TransactionId.html | 2 +- .../test_utils/fn.create_dns_resolver.html | 2 +- .../test_utils/fn.run_relay_server.html | 2 +- pr/2674/docs/iroh_net/test_utils/index.html | 2 +- .../test_utils/struct.CleanupDropGuard.html | 2 +- .../test_utils/struct.DnsPkarrServer.html | 2 +- pr/2674/docs/iroh_net/ticket/index.html | 2 +- .../iroh_net/ticket/struct.NodeTicket.html | 14 +- .../iroh_net/tls/certificate/fn.generate.html | 2 +- .../iroh_net/tls/certificate/fn.parse.html | 2 +- .../docs/iroh_net/tls/certificate/index.html | 2 +- .../tls/certificate/struct.GenError.html | 4 +- .../certificate/struct.P2pCertificate.html | 2 +- .../tls/certificate/struct.P2pExtension.html | 2 +- .../tls/certificate/struct.ParseError.html | 4 +- .../certificate/struct.VerificationError.html | 4 +- .../iroh_net/tls/fn.make_client_config.html | 2 +- .../iroh_net/tls/fn.make_server_config.html | 2 +- pr/2674/docs/iroh_net/tls/index.html | 2 +- pr/2674/docs/iroh_net/type.NodeId.html | 2 +- .../docs/iroh_net/util/chain/fn.chain.html | 2 +- pr/2674/docs/iroh_net/util/chain/index.html | 2 +- .../iroh_net/util/chain/struct.Chain.html | 2 +- pr/2674/docs/iroh_net/util/index.html | 2 +- .../util/struct.AbortingJoinHandle.html | 2 +- .../iroh_net/util/struct.CancelOnDrop.html | 2 +- .../iroh_net/util/struct.MaybeFuture.html | 2 +- .../util/struct.SharedAbortingJoinHandle.html | 2 +- pr/2674/docs/iroh_net_bench/all.html | 2 +- .../docs/iroh_net_bench/enum.Commands.html | 2 +- .../enum.ConnectionSelector.html | 4 +- .../iroh_net_bench/enum.EndpointSelector.html | 6 +- .../iroh_net_bench/fn.client_handler.html | 2 +- .../fn.configure_tracing_subscriber.html | 2 +- pr/2674/docs/iroh_net_bench/fn.rt.html | 2 +- pr/2674/docs/iroh_net_bench/index.html | 2 +- .../iroh_net_bench/iroh/constant.ALPN.html | 2 +- .../docs/iroh_net_bench/iroh/fn.client.html | 6 +- .../iroh/fn.connect_client.html | 7 +- .../iroh/fn.handle_client_stream.html | 2 +- .../docs/iroh_net_bench/iroh/fn.server.html | 2 +- .../iroh/fn.server_endpoint.html | 6 +- .../iroh/fn.transport_config.html | 2 +- pr/2674/docs/iroh_net_bench/iroh/index.html | 2 +- .../iroh_net_bench/quinn/constant.ALPN.html | 2 +- .../docs/iroh_net_bench/quinn/fn.client.html | 2 +- .../quinn/fn.connect_client.html | 2 +- .../quinn/fn.handle_client_stream.html | 2 +- .../docs/iroh_net_bench/quinn/fn.server.html | 2 +- .../quinn/fn.server_endpoint.html | 2 +- .../quinn/fn.transport_config.html | 2 +- pr/2674/docs/iroh_net_bench/quinn/index.html | 2 +- pr/2674/docs/iroh_net_bench/s2n/index.html | 2 +- .../docs/iroh_net_bench/s2n/struct.Opt.html | 2 +- .../stats/fn.throughput_bps.html | 2 +- pr/2674/docs/iroh_net_bench/stats/index.html | 2 +- .../iroh_net_bench/stats/struct.Stats.html | 2 +- .../stats/struct.StreamStats.html | 2 +- .../stats/struct.TransferResult.html | 2 +- .../iroh_net_bench/struct.ClientStats.html | 2 +- pr/2674/docs/iroh_net_bench/struct.Opt.html | 11 +- pr/2674/docs/iroh_relay/all.html | 2 +- .../cfg_defaults/fn.enable_metrics.html | 2 +- .../cfg_defaults/fn.enable_relay.html | 2 +- .../cfg_defaults/fn.enable_stun.html | 2 +- .../docs/iroh_relay/cfg_defaults/index.html | 2 +- .../cfg_defaults/tls_config/fn.prod_tls.html | 2 +- .../cfg_defaults/tls_config/index.html | 2 +- .../constant.DEV_MODE_HTTP_PORT.html | 2 +- pr/2674/docs/iroh_relay/enum.CertMode.html | 2 +- .../iroh_relay/fn.build_relay_config.html | 2 +- pr/2674/docs/iroh_relay/fn.load_certs.html | 2 +- .../docs/iroh_relay/fn.load_secret_key.html | 2 +- pr/2674/docs/iroh_relay/fn.main.html | 2 +- pr/2674/docs/iroh_relay/index.html | 2 +- pr/2674/docs/iroh_relay/metrics/index.html | 2 +- .../metrics/struct.StunMetrics.html | 26 +- pr/2674/docs/iroh_relay/struct.Cli.html | 2 +- pr/2674/docs/iroh_relay/struct.Config.html | 6 +- pr/2674/docs/iroh_relay/struct.Limits.html | 2 +- pr/2674/docs/iroh_relay/struct.TlsConfig.html | 2 +- pr/2674/docs/iroh_test/all.html | 2 +- .../iroh_test/hexdump/fn.parse_hexdump.html | 2 +- .../iroh_test/hexdump/fn.print_hexdump.html | 2 +- pr/2674/docs/iroh_test/hexdump/index.html | 2 +- pr/2674/docs/iroh_test/index.html | 2 +- pr/2674/docs/iroh_test/logging/fn.setup.html | 2 +- .../logging/fn.setup_multithreaded.html | 2 +- .../logging/fn.testing_subscriber.html | 2 +- pr/2674/docs/iroh_test/logging/index.html | 2 +- .../docs/iroh_test/macro.assert_eq_hex.html | 2 +- pr/2674/docs/iroh_test/struct.CallOnDrop.html | 2 +- pr/2674/docs/iroh_willow/all.html | 2 +- pr/2674/docs/iroh_willow/constant.ALPN.html | 2 +- pr/2674/docs/iroh_willow/engine/index.html | 2 +- .../iroh_willow/engine/struct.AcceptOpts.html | 8 +- .../engine/struct.ActorHandle.html | 24 +- .../iroh_willow/engine/struct.Engine.html | 22 +- .../docs/iroh_willow/form/enum.AuthForm.html | 8 +- .../iroh_willow/form/enum.EntryOrForm.html | 6 +- .../iroh_willow/form/enum.PayloadForm.html | 14 +- .../form/enum.SerdeEntryOrForm.html | 129 --- .../form/enum.SerdePayloadForm.html | 129 --- .../iroh_willow/form/enum.SubspaceForm.html | 6 +- .../iroh_willow/form/enum.TimestampForm.html | 6 +- pr/2674/docs/iroh_willow/form/index.html | 4 +- .../docs/iroh_willow/form/sidebar-items.js | 2 +- .../iroh_willow/form/struct.EntryForm.html | 8 +- .../form/struct.SerdeEntryForm.html | 132 --- pr/2674/docs/iroh_willow/index.html | 2 +- .../interest/enum.AreaOfInterestSelector.html | 9 +- .../interest/enum.AreaSelector.html | 15 +- .../interest/enum.CapabilityPack.html | 14 +- .../iroh_willow/interest/enum.Interests.html | 15 +- .../interest/enum.ReceiverSelector.html | 12 +- .../interest/enum.RestrictArea.html | 9 +- pr/2674/docs/iroh_willow/interest/index.html | 2 +- .../interest/struct.CapSelector.html | 23 +- .../interest/struct.DelegateTo.html | 9 +- .../interest/struct.InterestBuilder.html | 10 +- .../struct.InvalidCapabilityPack.html | 2 +- .../interest/trait.IntoAreaOfInterest.html | 4 +- .../interest/type.InterestMap.html | 2 +- .../data_model/constant.DIGEST_LENGTH.html | 2 +- .../constant.MAX_COMPONENT_COUNT.html | 2 +- .../constant.MAX_COMPONENT_LENGTH.html | 2 +- .../data_model/constant.MAX_PATH_LENGTH.html | 2 +- .../data_model/enum.InvalidPathError.html | 2 +- .../data_model/enum.InvalidPathError2.html | 4 +- .../iroh_willow/proto/data_model/index.html | 2 +- .../authorised_entry/fn.deserialize.html | 2 - .../authorised_entry/fn.serialize.html | 4 - .../authorised_entry/index.html | 1 - .../authorised_entry/sidebar-items.js | 1 - .../serde_encoding/entry/fn.deserialize.html | 2 - .../serde_encoding/entry/fn.serialize.html | 4 - .../serde_encoding/entry/index.html | 1 - .../serde_encoding/entry/sidebar-items.js | 1 - .../data_model/serde_encoding/index.html | 2 +- .../serde_encoding/path/fn.deserialize.html | 2 - .../serde_encoding/path/fn.serialize.html | 4 - .../data_model/serde_encoding/path/index.html | 1 - .../serde_encoding/path/sidebar-items.js | 1 - .../serde_encoding/sidebar-items.js | 2 +- .../struct.SerdeAuthorisedEntry.html | 131 --- .../serde_encoding/struct.SerdeEntry.html | 7 +- .../data_model/struct.PayloadDigest.html | 10 +- .../struct.UnauthorisedWriteError.html | 2 +- .../proto/data_model/trait.EntryExt.html | 2 +- .../proto/data_model/trait.PathExt.html | 2 +- .../data_model/type.AuthorisationToken.html | 2 +- .../data_model/type.AuthorisedEntry.html | 4 +- .../proto/data_model/type.Component.html | 2 +- .../proto/data_model/type.Entry.html | 4 +- .../proto/data_model/type.NamespaceId.html | 2 +- .../proto/data_model/type.Path.html | 2 +- .../data_model/type.SerdeWriteCapability.html | 2 +- .../proto/data_model/type.SubspaceId.html | 2 +- .../proto/data_model/type.Timestamp.html | 2 +- .../data_model/type.WriteCapability.html | 2 +- .../proto/grouping/enum.RangeEnd.html | 2 +- .../iroh_willow/proto/grouping/index.html | 2 +- .../serde_encoding/area/fn.deserialize.html | 2 - .../serde_encoding/area/fn.serialize.html | 4 - .../grouping/serde_encoding/area/index.html | 1 - .../serde_encoding/area/sidebar-items.js | 1 - .../area_of_interest/fn.deserialize.html | 2 - .../area_of_interest/fn.serialize.html | 4 - .../area_of_interest/index.html | 1 - .../area_of_interest/sidebar-items.js | 1 - .../proto/grouping/serde_encoding/index.html | 2 +- .../range_3d/fn.deserialize.html | 2 - .../serde_encoding/range_3d/fn.serialize.html | 4 - .../serde_encoding/range_3d/index.html | 1 - .../serde_encoding/range_3d/sidebar-items.js | 1 - .../grouping/serde_encoding/sidebar-items.js | 2 +- .../serde_encoding/struct.SerdeArea.html | 152 ---- .../struct.SerdeAreaOfInterest.html | 9 +- .../serde_encoding/struct.SerdeRange3d.html | 7 +- .../proto/grouping/struct.Point.html | 13 +- .../proto/grouping/struct.Range.html | 2 +- .../proto/grouping/trait.AreaExt.html | 10 +- .../grouping/trait.AreaOfInterestExt.html | 6 +- .../iroh_willow/proto/grouping/type.Area.html | 4 +- .../proto/grouping/type.AreaOfInterest.html | 4 +- .../proto/grouping/type.AreaSubspace.html | 2 +- .../proto/grouping/type.Range3d.html | 4 +- pr/2674/docs/iroh_willow/proto/index.html | 2 +- .../keys/constant.PUBLIC_KEY_LENGTH.html | 2 +- .../keys/constant.SECRET_KEY_LENGTH.html | 2 +- .../proto/keys/constant.SIGNATURE_LENGTH.html | 2 +- .../proto/keys/enum.NamespaceKind.html | 11 +- .../docs/iroh_willow/proto/keys/index.html | 2 +- .../proto/keys/struct.NamespaceId.html | 6 +- .../proto/keys/struct.NamespacePublicKey.html | 10 +- .../proto/keys/struct.NamespaceSecretKey.html | 6 +- .../proto/keys/struct.NamespaceSignature.html | 6 +- .../iroh_willow/proto/keys/struct.UserId.html | 8 +- .../proto/keys/struct.UserPublicKey.html | 8 +- .../proto/keys/struct.UserSecretKey.html | 6 +- .../proto/keys/struct.UserSignature.html | 10 +- .../proto/meadowcap/enum.AccessMode.html | 2 +- .../proto/meadowcap/enum.SecretKey.html | 9 +- .../meadowcap/fn.is_authorised_write.html | 2 +- .../proto/meadowcap/fn.is_wider_than.html | 2 +- .../iroh_willow/proto/meadowcap/index.html | 2 +- .../access_mode/fn.deserialize.html | 2 - .../access_mode/fn.serialize.html | 4 - .../serde_encoding/access_mode/index.html | 1 - .../access_mode/sidebar-items.js | 1 - .../proto/meadowcap/serde_encoding/index.html | 2 +- .../mc_capability/fn.deserialize.html | 2 - .../mc_capability/fn.serialize.html | 4 - .../serde_encoding/mc_capability/index.html | 1 - .../mc_capability/sidebar-items.js | 1 - .../fn.deserialize.html | 4 - .../mc_subspace_capability/fn.serialize.html | 4 - .../mc_subspace_capability/index.html | 1 - .../mc_subspace_capability/sidebar-items.js | 1 - .../read_authorisation/fn.deserialize.html | 4 - .../read_authorisation/fn.serialize.html | 4 - .../read_authorisation/index.html | 1 - .../read_authorisation/sidebar-items.js | 1 - .../meadowcap/serde_encoding/sidebar-items.js | 2 +- .../struct.SerdeMcCapability.html | 11 +- .../struct.SerdeMcSubspaceCapability.html | 9 +- .../struct.SerdeReadAuthorisation.html | 11 +- .../meadowcap/struct.ReadAuthorisation.html | 4 +- .../proto/meadowcap/trait.IsCommunal.html | 2 +- .../meadowcap/type.FailedDelegationError.html | 2 +- .../meadowcap/type.McAuthorisationToken.html | 2 +- .../proto/meadowcap/type.McCapability.html | 4 +- .../meadowcap/type.McSubspaceCapability.html | 2 +- .../proto/meadowcap/type.NamespaceId.html | 2 +- .../meadowcap/type.NamespacePublicKey.html | 2 +- .../meadowcap/type.NamespaceSignature.html | 2 +- .../proto/meadowcap/type.ReadCapability.html | 2 +- .../meadowcap/type.SubspaceCapability.html | 2 +- .../proto/meadowcap/type.UserId.html | 2 +- .../proto/meadowcap/type.UserPublicKey.html | 2 +- .../proto/meadowcap/type.UserSignature.html | 2 +- .../proto/meadowcap/type.WriteCapability.html | 2 +- .../iroh_willow/proto/pai/enum.Fragment.html | 2 +- .../proto/pai/enum.FragmentKind.html | 2 +- .../proto/pai/enum.FragmentKit.html | 2 +- .../proto/pai/enum.FragmentSet.html | 2 +- pr/2674/docs/iroh_willow/proto/pai/index.html | 2 +- .../proto/pai/struct.InvalidPsiGroup.html | 2 +- .../proto/pai/struct.PaiScheme.html | 2 +- .../proto/pai/struct.PsiGroup.html | 2 +- .../proto/pai/struct.PsiScalar.html | 2 +- .../proto/pai/type.FragmentPair.html | 2 +- .../proto/pai/type.FragmentTriple.html | 2 +- .../wgps/constant.CHALLENGE_HASH_LENGTH.html | 2 +- .../proto/wgps/constant.CHALLENGE_LENGTH.html | 2 +- .../proto/wgps/constant.MAX_PAYLOAD_SIZE.html | 2 +- .../wgps/constant.MAX_PAYLOAD_SIZE_POWER.html | 2 +- .../iroh_willow/proto/wgps/enum.Channel.html | 2 +- .../proto/wgps/enum.DataMessage.html | 4 +- .../proto/wgps/enum.HandleType.html | 2 +- .../proto/wgps/enum.IntersectionMessage.html | 4 +- .../proto/wgps/enum.LogicalChannel.html | 2 +- .../iroh_willow/proto/wgps/enum.Message.html | 6 +- .../wgps/enum.ReconciliationMessage.html | 4 +- .../proto/wgps/enum.ResourceHandle.html | 4 +- .../docs/iroh_willow/proto/wgps/index.html | 2 +- .../proto/wgps/struct.AccessChallenge.html | 2 +- .../wgps/struct.AreaOfInterestHandle.html | 4 +- .../proto/wgps/struct.CapabilityHandle.html | 2 +- .../proto/wgps/struct.ChallengeHash.html | 2 +- .../proto/wgps/struct.CommitmentReveal.html | 2 +- .../proto/wgps/struct.ControlAbsolve.html | 2 +- .../wgps/struct.ControlAnnounceDropping.html | 2 +- .../proto/wgps/struct.ControlApologise.html | 2 +- .../proto/wgps/struct.ControlFreeHandle.html | 2 +- .../wgps/struct.ControlIssueGuarantee.html | 2 +- .../proto/wgps/struct.ControlPlead.html | 2 +- .../proto/wgps/struct.DataSendEntry.html | 2 +- .../proto/wgps/struct.DataSendPayload.html | 4 +- .../proto/wgps/struct.DataSetMetadata.html | 2 +- .../proto/wgps/struct.Fingerprint.html | 2 +- .../proto/wgps/struct.IntersectionHandle.html | 2 +- .../proto/wgps/struct.InvalidChannelId.html | 2 +- .../proto/wgps/struct.LengthyEntry.html | 2 +- .../proto/wgps/struct.LogicalChannelIter.html | 2 +- .../proto/wgps/struct.PaiBindFragment.html | 4 +- .../proto/wgps/struct.PaiReplyFragment.html | 4 +- .../struct.PaiReplySubspaceCapability.html | 2 +- .../struct.PaiRequestSubspaceCapability.html | 2 +- .../struct.ReconciliationAnnounceEntries.html | 2 +- .../wgps/struct.ReconciliationSendEntry.html | 4 +- .../struct.ReconciliationSendFingerprint.html | 2 +- .../struct.ReconciliationSendPayload.html | 4 +- ...struct.ReconciliationTerminatePayload.html | 4 +- .../wgps/struct.SetupBindAreaOfInterest.html | 2 +- .../wgps/struct.SetupBindReadCapability.html | 2 +- .../wgps/struct.SetupBindStaticToken.html | 2 +- .../proto/wgps/struct.StaticTokenHandle.html | 4 +- .../proto/wgps/trait.IsHandle.html | 2 +- .../proto/wgps/type.AccessChallengeBytes.html | 2 +- .../proto/wgps/type.DynamicToken.html | 2 +- .../proto/wgps/type.PsiGroupBytes.html | 2 +- .../proto/wgps/type.ReadCapability.html | 2 +- .../iroh_willow/proto/wgps/type.Receiver.html | 2 +- .../proto/wgps/type.StaticToken.html | 2 +- .../proto/wgps/type.SubspaceCapability.html | 2 +- .../proto/wgps/type.SyncSignature.html | 2 +- .../docs/iroh_willow/session/enum.Role.html | 10 +- .../iroh_willow/session/enum.SessionMode.html | 13 +- pr/2674/docs/iroh_willow/session/index.html | 2 +- .../session/intents/enum.Completion.html | 2 +- .../session/intents/enum.EventKind.html | 6 +- .../session/intents/enum.IntentUpdate.html | 9 +- .../iroh_willow/session/intents/index.html | 4 +- .../intents/serde_encoding/enum.Event.html | 146 ---- .../session/intents/serde_encoding/index.html | 1 - .../intents/serde_encoding/sidebar-items.js | 1 - .../session/intents/sidebar-items.js | 2 +- .../session/intents/struct.Intent.html | 2 +- .../session/intents/struct.IntentHandle.html | 2 +- .../session/intents/type.IntentId.html | 2 +- .../session/struct.SessionInit.html | 13 +- pr/2674/docs/iroh_willow/store/index.html | 2 +- .../docs/iroh_willow/store/memory/index.html | 2 +- .../store/memory/struct.CapsStore.html | 2 +- .../store/memory/struct.EntryStore.html | 2 +- .../store/memory/struct.SecretStore.html | 2 +- .../store/memory/struct.Store.html | 4 +- .../store/traits/enum.KeyScope.html | 2 +- .../store/traits/enum.SecretStoreError.html | 4 +- .../store/traits/enum.SplitAction.html | 2 +- .../docs/iroh_willow/store/traits/index.html | 2 +- .../store/traits/struct.SplitOpts.html | 2 +- .../store/traits/trait.CapsStorage.html | 2 +- .../store/traits/trait.EntryReader.html | 2 +- .../store/traits/trait.EntryStorage.html | 2 +- .../store/traits/trait.SecretStorage.html | 2 +- .../store/traits/trait.Storage.html | 6 +- .../store/traits/type.RangeSplit.html | 2 +- .../util/channel/enum.Guarantees.html | 2 +- .../util/channel/enum.ReadError.html | 2 +- .../util/channel/enum.WriteError.html | 4 +- .../util/channel/fn.inbound_channel.html | 2 +- .../util/channel/fn.outbound_channel.html | 2 +- .../docs/iroh_willow/util/channel/index.html | 2 +- .../util/channel/struct.Reader.html | 2 +- .../util/channel/struct.Receiver.html | 2 +- .../util/channel/struct.Sender.html | 2 +- .../util/channel/struct.Writer.html | 2 +- .../util/codec/enum.DecodeOutcome.html | 2 +- .../util/codec/fn.compact_width.html | 2 +- .../docs/iroh_willow/util/codec/index.html | 2 +- .../util/codec/struct.CompactWidth.html | 2 +- .../iroh_willow/util/codec/trait.Decoder.html | 2 +- .../iroh_willow/util/codec/trait.Encoder.html | 2 +- .../util/codec2/fn.from_bytes.html | 2 +- .../util/codec2/fn.from_bytes_relative.html | 2 +- .../iroh_willow/util/codec2/fn.to_vec.html | 2 +- .../util/codec2/fn.to_vec_relative.html | 2 +- .../docs/iroh_willow/util/codec2/index.html | 2 +- .../iroh_willow/util/fn.increment_by_one.html | 2 +- .../iroh_willow/util/gen_stream/index.html | 2 +- .../util/gen_stream/struct.GenStream.html | 2 +- pr/2674/docs/iroh_willow/util/index.html | 2 +- .../util/pipe/fn.chunked_pipe.html | 2 +- pr/2674/docs/iroh_willow/util/pipe/index.html | 2 +- .../util/pipe/struct.PipeReader.html | 2 +- .../util/pipe/struct.PipeWriter.html | 2 +- .../docs/iroh_willow/util/queue/index.html | 2 +- .../iroh_willow/util/queue/struct.Queue.html | 2 +- .../docs/iroh_willow/util/stream/index.html | 2 +- .../util/stream/struct.Cancelable.html | 2 +- .../stream/struct.CancelableReceiver.html | 2 +- .../util/time/fn.system_time_now.html | 2 +- pr/2674/docs/iroh_willow/util/time/index.html | 2 +- pr/2674/docs/search-index.js | 18 +- pr/2674/docs/search.desc/iroh/iroh-desc-0-.js | 2 +- pr/2674/docs/search.desc/iroh/iroh-desc-1-.js | 2 +- .../iroh_blobs/iroh_blobs-desc-0-.js | 2 +- .../search.desc/iroh_net/iroh_net-desc-0-.js | 2 +- .../iroh_net_bench/iroh_net_bench-desc-0-.js | 2 +- .../iroh_willow/iroh_willow-desc-0-.js | 2 +- pr/2674/docs/src-files.js | 4 +- pr/2674/docs/src/bulk/bulk.rs.html | 136 ++- pr/2674/docs/src/iroh/node.rs.html | 2 - pr/2674/docs/src/iroh/node/builder.rs.html | 68 -- pr/2674/docs/src/iroh/node/rpc.rs.html | 8 - pr/2674/docs/src/iroh/node/rpc/spaces.rs.html | 329 -------- pr/2674/docs/src/iroh/rpc_protocol.rs.html | 6 - .../docs/src/iroh/rpc_protocol/spaces.rs.html | 317 ------- pr/2674/docs/src/iroh_blobs/store/fs.rs.html | 80 +- .../store/fs/import_flat_store.rs.html | 773 ------------------ pr/2674/docs/src/iroh_gossip/net.rs.html | 12 +- .../src/iroh_net/discovery/pkarr/dht.rs.html | 2 + pr/2674/docs/src/iroh_net/endpoint.rs.html | 2 +- pr/2674/docs/src/iroh_net/magicsock.rs.html | 30 +- .../src/iroh_net/magicsock/metrics.rs.html | 6 + .../magicsock/node_map/node_state.rs.html | 18 - pr/2674/docs/src/iroh_net/tls.rs.html | 8 + pr/2674/docs/src/iroh_net_bench/iroh.rs.html | 82 +- pr/2674/docs/src/iroh_net_bench/lib.rs.html | 26 + .../docs/src/iroh_willow/engine/actor.rs.html | 42 +- pr/2674/docs/src/iroh_willow/form.rs.html | 112 +-- pr/2674/docs/src/iroh_willow/interest.rs.html | 90 +- pr/2674/docs/src/iroh_willow/net.rs.html | 2 +- .../src/iroh_willow/proto/data_model.rs.html | 162 +--- .../src/iroh_willow/proto/grouping.rs.html | 172 +--- .../docs/src/iroh_willow/proto/keys.rs.html | 2 +- .../src/iroh_willow/proto/meadowcap.rs.html | 192 +---- pr/2674/docs/src/iroh_willow/session.rs.html | 6 +- .../src/iroh_willow/session/intents.rs.html | 116 +-- .../docs/src/iroh_willow/store/auth.rs.html | 6 +- .../docs/src/iroh_willow/store/memory.rs.html | 12 +- .../docs/trait.impl/core/clone/trait.Clone.js | 2 +- pr/2674/docs/trait.impl/core/cmp/trait.Eq.js | 2 +- .../trait.impl/core/cmp/trait.PartialEq.js | 2 +- .../trait.impl/core/convert/trait.From.js | 4 +- .../trait.impl/core/default/trait.Default.js | 2 +- .../docs/trait.impl/core/fmt/trait.Debug.js | 4 +- .../trait.impl/core/marker/trait.Freeze.js | 4 +- .../docs/trait.impl/core/marker/trait.Send.js | 4 +- .../core/marker/trait.StructuralPartialEq.js | 2 +- .../docs/trait.impl/core/marker/trait.Sync.js | 4 +- .../trait.impl/core/marker/trait.Unpin.js | 4 +- .../trait.impl/core/ops/deref/trait.Deref.js | 2 +- .../panic/unwind_safe/trait.RefUnwindSafe.js | 4 +- .../panic/unwind_safe/trait.UnwindSafe.js | 4 +- .../iroh_base/ticket/trait.Ticket.js | 2 +- .../iroh_metrics/core/trait.Metric.js | 10 +- .../trait.impl/serde/de/trait.Deserialize.js | 2 +- .../trait.impl/serde/ser/trait.Serialize.js | 2 +- .../docs/type.impl/iroh/node/struct.Node.js | 2 +- .../iroh_net/key/struct.PublicKey.js | 2 +- .../struct.SerdeMcCapability.js | 2 +- .../struct.SerdeMcSubspaceCapability.js | 2 +- .../proto/meadowcap/type.McCapability.js | 2 +- .../meadowcap/type.McSubspaceCapability.js | 2 +- pr/2674/docs/type.impl/std/primitive.array.js | 6 +- 1729 files changed, 3388 insertions(+), 9608 deletions(-) create mode 100644 pr/2674/docs/bulk/fn.collect_and_print.html delete mode 100644 pr/2674/docs/iroh/blobs/store/fs/struct.FlatStorePaths.html delete mode 100644 pr/2674/docs/iroh_blobs/store/fs/struct.FlatStorePaths.html delete mode 100644 pr/2674/docs/iroh_willow/form/enum.SerdeEntryOrForm.html delete mode 100644 pr/2674/docs/iroh_willow/form/enum.SerdePayloadForm.html delete mode 100644 pr/2674/docs/iroh_willow/form/struct.SerdeEntryForm.html delete mode 100644 pr/2674/docs/iroh_willow/proto/data_model/serde_encoding/authorised_entry/fn.deserialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/data_model/serde_encoding/authorised_entry/fn.serialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/data_model/serde_encoding/authorised_entry/index.html delete mode 100644 pr/2674/docs/iroh_willow/proto/data_model/serde_encoding/authorised_entry/sidebar-items.js delete mode 100644 pr/2674/docs/iroh_willow/proto/data_model/serde_encoding/entry/fn.deserialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/data_model/serde_encoding/entry/fn.serialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/data_model/serde_encoding/entry/index.html delete mode 100644 pr/2674/docs/iroh_willow/proto/data_model/serde_encoding/entry/sidebar-items.js delete mode 100644 pr/2674/docs/iroh_willow/proto/data_model/serde_encoding/path/fn.deserialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/data_model/serde_encoding/path/fn.serialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/data_model/serde_encoding/path/index.html delete mode 100644 pr/2674/docs/iroh_willow/proto/data_model/serde_encoding/path/sidebar-items.js delete mode 100644 pr/2674/docs/iroh_willow/proto/data_model/serde_encoding/struct.SerdeAuthorisedEntry.html delete mode 100644 pr/2674/docs/iroh_willow/proto/grouping/serde_encoding/area/fn.deserialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/grouping/serde_encoding/area/fn.serialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/grouping/serde_encoding/area/index.html delete mode 100644 pr/2674/docs/iroh_willow/proto/grouping/serde_encoding/area/sidebar-items.js delete mode 100644 pr/2674/docs/iroh_willow/proto/grouping/serde_encoding/area_of_interest/fn.deserialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/grouping/serde_encoding/area_of_interest/fn.serialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/grouping/serde_encoding/area_of_interest/index.html delete mode 100644 pr/2674/docs/iroh_willow/proto/grouping/serde_encoding/area_of_interest/sidebar-items.js delete mode 100644 pr/2674/docs/iroh_willow/proto/grouping/serde_encoding/range_3d/fn.deserialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/grouping/serde_encoding/range_3d/fn.serialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/grouping/serde_encoding/range_3d/index.html delete mode 100644 pr/2674/docs/iroh_willow/proto/grouping/serde_encoding/range_3d/sidebar-items.js delete mode 100644 pr/2674/docs/iroh_willow/proto/grouping/serde_encoding/struct.SerdeArea.html delete mode 100644 pr/2674/docs/iroh_willow/proto/meadowcap/serde_encoding/access_mode/fn.deserialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/meadowcap/serde_encoding/access_mode/fn.serialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/meadowcap/serde_encoding/access_mode/index.html delete mode 100644 pr/2674/docs/iroh_willow/proto/meadowcap/serde_encoding/access_mode/sidebar-items.js delete mode 100644 pr/2674/docs/iroh_willow/proto/meadowcap/serde_encoding/mc_capability/fn.deserialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/meadowcap/serde_encoding/mc_capability/fn.serialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/meadowcap/serde_encoding/mc_capability/index.html delete mode 100644 pr/2674/docs/iroh_willow/proto/meadowcap/serde_encoding/mc_capability/sidebar-items.js delete mode 100644 pr/2674/docs/iroh_willow/proto/meadowcap/serde_encoding/mc_subspace_capability/fn.deserialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/meadowcap/serde_encoding/mc_subspace_capability/fn.serialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/meadowcap/serde_encoding/mc_subspace_capability/index.html delete mode 100644 pr/2674/docs/iroh_willow/proto/meadowcap/serde_encoding/mc_subspace_capability/sidebar-items.js delete mode 100644 pr/2674/docs/iroh_willow/proto/meadowcap/serde_encoding/read_authorisation/fn.deserialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/meadowcap/serde_encoding/read_authorisation/fn.serialize.html delete mode 100644 pr/2674/docs/iroh_willow/proto/meadowcap/serde_encoding/read_authorisation/index.html delete mode 100644 pr/2674/docs/iroh_willow/proto/meadowcap/serde_encoding/read_authorisation/sidebar-items.js delete mode 100644 pr/2674/docs/iroh_willow/session/intents/serde_encoding/enum.Event.html delete mode 100644 pr/2674/docs/iroh_willow/session/intents/serde_encoding/index.html delete mode 100644 pr/2674/docs/iroh_willow/session/intents/serde_encoding/sidebar-items.js delete mode 100644 pr/2674/docs/src/iroh/node/rpc/spaces.rs.html delete mode 100644 pr/2674/docs/src/iroh/rpc_protocol/spaces.rs.html delete mode 100644 pr/2674/docs/src/iroh_blobs/store/fs/import_flat_store.rs.html diff --git a/pr/2674/docs/bulk/all.html b/pr/2674/docs/bulk/all.html index bbd63a9bb4..bf10005246 100644 --- a/pr/2674/docs/bulk/all.html +++ b/pr/2674/docs/bulk/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Functions

\ No newline at end of file +List of all items in this crate
\ No newline at end of file diff --git a/pr/2674/docs/bulk/fn.collect_and_print.html b/pr/2674/docs/bulk/fn.collect_and_print.html new file mode 100644 index 0000000000..9750b7af76 --- /dev/null +++ b/pr/2674/docs/bulk/fn.collect_and_print.html @@ -0,0 +1,4 @@ +collect_and_print in bulk - Rust

Function bulk::collect_and_print

source ·
pub(crate) fn collect_and_print(
+    category: &'static str,
+    metrics: Option<&impl Iterable>
+)
\ No newline at end of file diff --git a/pr/2674/docs/bulk/fn.main.html b/pr/2674/docs/bulk/fn.main.html index 5e723e7816..d7858685b0 100644 --- a/pr/2674/docs/bulk/fn.main.html +++ b/pr/2674/docs/bulk/fn.main.html @@ -1 +1 @@ -main in bulk - Rust

Function bulk::main

source ·
pub(crate) fn main()
\ No newline at end of file +main in bulk - Rust

Function bulk::main

source ·
pub(crate) fn main()
\ No newline at end of file diff --git a/pr/2674/docs/bulk/fn.run_iroh.html b/pr/2674/docs/bulk/fn.run_iroh.html index 58a3464de1..9a78ba46f9 100644 --- a/pr/2674/docs/bulk/fn.run_iroh.html +++ b/pr/2674/docs/bulk/fn.run_iroh.html @@ -1 +1 @@ -run_iroh in bulk - Rust

Function bulk::run_iroh

source ·
pub fn run_iroh(opt: Opt) -> Result<()>
\ No newline at end of file +run_iroh in bulk - Rust

Function bulk::run_iroh

source ·
pub fn run_iroh(opt: Opt) -> Result<()>
\ No newline at end of file diff --git a/pr/2674/docs/bulk/fn.run_quinn.html b/pr/2674/docs/bulk/fn.run_quinn.html index 29229e7184..70ea9bf959 100644 --- a/pr/2674/docs/bulk/fn.run_quinn.html +++ b/pr/2674/docs/bulk/fn.run_quinn.html @@ -1 +1 @@ -run_quinn in bulk - Rust

Function bulk::run_quinn

source ·
pub fn run_quinn(opt: Opt) -> Result<()>
\ No newline at end of file +run_quinn in bulk - Rust

Function bulk::run_quinn

source ·
pub fn run_quinn(opt: Opt) -> Result<()>
\ No newline at end of file diff --git a/pr/2674/docs/bulk/fn.run_s2n.html b/pr/2674/docs/bulk/fn.run_s2n.html index bdfddb8343..809f35836b 100644 --- a/pr/2674/docs/bulk/fn.run_s2n.html +++ b/pr/2674/docs/bulk/fn.run_s2n.html @@ -1 +1 @@ -run_s2n in bulk - Rust

Function bulk::run_s2n

source ·
pub fn run_s2n(_opt: Opt) -> Result<()>
\ No newline at end of file +run_s2n in bulk - Rust

Function bulk::run_s2n

source ·
pub fn run_s2n(_opt: Opt) -> Result<()>
\ No newline at end of file diff --git a/pr/2674/docs/bulk/index.html b/pr/2674/docs/bulk/index.html index 09f2f846e7..cd0d228d7d 100644 --- a/pr/2674/docs/bulk/index.html +++ b/pr/2674/docs/bulk/index.html @@ -1 +1 @@ -bulk - Rust

Crate bulk

source ·

Functions§

\ No newline at end of file +bulk - Rust

Crate bulk

source ·

Functions§

\ No newline at end of file diff --git a/pr/2674/docs/bulk/sidebar-items.js b/pr/2674/docs/bulk/sidebar-items.js index 592798c2fc..463fb65621 100644 --- a/pr/2674/docs/bulk/sidebar-items.js +++ b/pr/2674/docs/bulk/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":["main","run_iroh","run_quinn","run_s2n"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["collect_and_print","main","run_iroh","run_quinn","run_s2n"]}; \ No newline at end of file diff --git a/pr/2674/docs/iroh/all.html b/pr/2674/docs/iroh/all.html index 4fd947e4ce..ec8e0388b1 100644 --- a/pr/2674/docs/iroh/all.html +++ b/pr/2674/docs/iroh/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Traits

Functions

Type Aliases

Constants

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Traits

Functions

Type Aliases

Constants

\ No newline at end of file diff --git a/pr/2674/docs/iroh/base/base32/enum.DecodeKind.html b/pr/2674/docs/iroh/base/base32/enum.DecodeKind.html index 4f6cc043f3..0ceb564282 100644 --- a/pr/2674/docs/iroh/base/base32/enum.DecodeKind.html +++ b/pr/2674/docs/iroh/base/base32/enum.DecodeKind.html @@ -1,4 +1,4 @@ -DecodeKind in iroh::base::base32 - Rust

Enum iroh::base::base32::DecodeKind

pub enum DecodeKind {
+DecodeKind in iroh::base::base32 - Rust

Enum iroh::base::base32::DecodeKind

pub enum DecodeKind {
     Length,
     Symbol,
     Trailing,
@@ -58,14 +58,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,
source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/base32/enum.HexOrBase32ParseError.html b/pr/2674/docs/iroh/base/base32/enum.HexOrBase32ParseError.html index 59c17a8ed3..a7acb631d1 100644 --- a/pr/2674/docs/iroh/base/base32/enum.HexOrBase32ParseError.html +++ b/pr/2674/docs/iroh/base/base32/enum.HexOrBase32ParseError.html @@ -1,10 +1,10 @@ -HexOrBase32ParseError in iroh::base::base32 - Rust

Enum iroh::base::base32::HexOrBase32ParseError

source ·
pub enum HexOrBase32ParseError {
+HexOrBase32ParseError in iroh::base::base32 - Rust

Enum iroh::base::base32::HexOrBase32ParseError

source ·
pub enum HexOrBase32ParseError {
     Base32(DecodeError),
     Hex(FromHexError),
 }
Expand description

Error when parsing a hex or base32 string.

Variants§

§

Base32(DecodeError)

Error when decoding the base32.

§

Hex(FromHexError)

Error when decoding the public key.

-

Trait Implementations§

source§

impl Debug for HexOrBase32ParseError

source§

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

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

impl Display for HexOrBase32ParseError

source§

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

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

impl Error for HexOrBase32ParseError

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<DecodeError> for HexOrBase32ParseError

source§

fn from(source: DecodeError) -> HexOrBase32ParseError

Converts to this type from the input type.
source§

impl From<FromHexError> for HexOrBase32ParseError

source§

fn from(source: FromHexError) -> HexOrBase32ParseError

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§

source§

impl Debug for HexOrBase32ParseError

source§

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

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

impl Display for HexOrBase32ParseError

source§

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

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

impl Error for HexOrBase32ParseError

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<DecodeError> for HexOrBase32ParseError

source§

fn from(source: DecodeError) -> HexOrBase32ParseError

Converts to this type from the input type.
source§

impl From<FromHexError> for HexOrBase32ParseError

source§

fn from(source: FromHexError) -> HexOrBase32ParseError

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 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 @@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/base32/fn.fmt.html b/pr/2674/docs/iroh/base/base32/fn.fmt.html index c30d914c65..e38236a003 100644 --- a/pr/2674/docs/iroh/base/base32/fn.fmt.html +++ b/pr/2674/docs/iroh/base/base32/fn.fmt.html @@ -1,2 +1,2 @@ -fmt in iroh::base::base32 - Rust

Function iroh::base::base32::fmt

source ·
pub fn fmt(bytes: impl AsRef<[u8]>) -> String
Expand description

Convert to a base32 string

+fmt in iroh::base::base32 - Rust

Function iroh::base::base32::fmt

source ·
pub fn fmt(bytes: impl AsRef<[u8]>) -> String
Expand description

Convert to a base32 string

\ No newline at end of file diff --git a/pr/2674/docs/iroh/base/base32/fn.fmt_append.html b/pr/2674/docs/iroh/base/base32/fn.fmt_append.html index 44cc9ea822..5a121d062c 100644 --- a/pr/2674/docs/iroh/base/base32/fn.fmt_append.html +++ b/pr/2674/docs/iroh/base/base32/fn.fmt_append.html @@ -1,2 +1,2 @@ -fmt_append in iroh::base::base32 - Rust

Function iroh::base::base32::fmt_append

source ·
pub fn fmt_append(bytes: impl AsRef<[u8]>, out: &mut String)
Expand description

Convert to a base32 string and append out out

+fmt_append in iroh::base::base32 - Rust

Function iroh::base::base32::fmt_append

source ·
pub fn fmt_append(bytes: impl AsRef<[u8]>, out: &mut String)
Expand description

Convert to a base32 string and append out out

\ No newline at end of file diff --git a/pr/2674/docs/iroh/base/base32/fn.fmt_short.html b/pr/2674/docs/iroh/base/base32/fn.fmt_short.html index 7093283864..b86b4ea5b9 100644 --- a/pr/2674/docs/iroh/base/base32/fn.fmt_short.html +++ b/pr/2674/docs/iroh/base/base32/fn.fmt_short.html @@ -1,2 +1,2 @@ -fmt_short in iroh::base::base32 - Rust

Function iroh::base::base32::fmt_short

source ·
pub fn fmt_short(bytes: impl AsRef<[u8]>) -> String
Expand description

Convert to a base32 string limited to the first 10 bytes

+fmt_short in iroh::base::base32 - Rust

Function iroh::base::base32::fmt_short

source ·
pub fn fmt_short(bytes: impl AsRef<[u8]>) -> String
Expand description

Convert to a base32 string limited to the first 10 bytes

\ No newline at end of file diff --git a/pr/2674/docs/iroh/base/base32/fn.parse_array.html b/pr/2674/docs/iroh/base/base32/fn.parse_array.html index 14fd44d7b3..034374828f 100644 --- a/pr/2674/docs/iroh/base/base32/fn.parse_array.html +++ b/pr/2674/docs/iroh/base/base32/fn.parse_array.html @@ -1,2 +1,2 @@ -parse_array in iroh::base::base32 - Rust

Function iroh::base::base32::parse_array

source ·
pub fn parse_array<const N: usize>(input: &str) -> Result<[u8; N], DecodeError>
Expand description

Parse from a base32 string into a byte array

+parse_array in iroh::base::base32 - Rust

Function iroh::base::base32::parse_array

source ·
pub fn parse_array<const N: usize>(input: &str) -> Result<[u8; N], DecodeError>
Expand description

Parse from a base32 string into a byte array

\ No newline at end of file diff --git a/pr/2674/docs/iroh/base/base32/fn.parse_array_hex_or_base32.html b/pr/2674/docs/iroh/base/base32/fn.parse_array_hex_or_base32.html index 2e8ebe0472..c683e71a91 100644 --- a/pr/2674/docs/iroh/base/base32/fn.parse_array_hex_or_base32.html +++ b/pr/2674/docs/iroh/base/base32/fn.parse_array_hex_or_base32.html @@ -1,4 +1,4 @@ -parse_array_hex_or_base32 in iroh::base::base32 - Rust

Function iroh::base::base32::parse_array_hex_or_base32

source ·
pub fn parse_array_hex_or_base32<const LEN: usize>(
+parse_array_hex_or_base32 in iroh::base::base32 - Rust

Function iroh::base::base32::parse_array_hex_or_base32

source ·
pub fn parse_array_hex_or_base32<const LEN: usize>(
     input: &str
 ) -> Result<[u8; LEN], HexOrBase32ParseError>
Expand description

Parse a fixed length hex or base32 string into a byte array

For fixed length we can know the encoding by the length of the string.

diff --git a/pr/2674/docs/iroh/base/base32/fn.parse_vec.html b/pr/2674/docs/iroh/base/base32/fn.parse_vec.html index de93d59a71..8c7d2157bb 100644 --- a/pr/2674/docs/iroh/base/base32/fn.parse_vec.html +++ b/pr/2674/docs/iroh/base/base32/fn.parse_vec.html @@ -1,2 +1,2 @@ -parse_vec in iroh::base::base32 - Rust

Function iroh::base::base32::parse_vec

source ·
pub fn parse_vec(input: &str) -> Result<Vec<u8>, DecodeError>
Expand description

Decode form a base32 string to a vector of bytes

+parse_vec in iroh::base::base32 - Rust

Function iroh::base::base32::parse_vec

source ·
pub fn parse_vec(input: &str) -> Result<Vec<u8>, DecodeError>
Expand description

Decode form a base32 string to a vector of bytes

\ No newline at end of file diff --git a/pr/2674/docs/iroh/base/base32/index.html b/pr/2674/docs/iroh/base/base32/index.html index e7d4e8d86b..b4c70b01b3 100644 --- a/pr/2674/docs/iroh/base/base32/index.html +++ b/pr/2674/docs/iroh/base/base32/index.html @@ -1 +1 @@ -iroh::base::base32 - Rust

Module iroh::base::base32

source ·

Structs§

Enums§

Functions§

  • Convert to a base32 string
  • Convert to a base32 string and append out out
  • Convert to a base32 string limited to the first 10 bytes
  • Parse from a base32 string into a byte array
  • Parse a fixed length hex or base32 string into a byte array
  • Decode form a base32 string to a vector of bytes
\ No newline at end of file +iroh::base::base32 - Rust

Module iroh::base::base32

source ·

Structs§

Enums§

Functions§

  • Convert to a base32 string
  • Convert to a base32 string and append out out
  • Convert to a base32 string limited to the first 10 bytes
  • Parse from a base32 string into a byte array
  • Parse a fixed length hex or base32 string into a byte array
  • Decode form a base32 string to a vector of bytes
\ No newline at end of file diff --git a/pr/2674/docs/iroh/base/base32/struct.DecodeError.html b/pr/2674/docs/iroh/base/base32/struct.DecodeError.html index 6afece3fe7..a18c2b43ae 100644 --- a/pr/2674/docs/iroh/base/base32/struct.DecodeError.html +++ b/pr/2674/docs/iroh/base/base32/struct.DecodeError.html @@ -1,11 +1,11 @@ -DecodeError in iroh::base::base32 - Rust

Struct iroh::base::base32::DecodeError

pub struct DecodeError {
+DecodeError in iroh::base::base32 - Rust

Struct iroh::base::base32::DecodeError

pub struct DecodeError {
     pub position: usize,
     pub kind: DecodeKind,
 }
Expand description

Decoding error

Fields§

§position: usize

Error position

This position is always a valid input position and represents the first encountered error.

§kind: DecodeKind

Error kind

-

Trait Implementations§

§

impl Clone for DecodeError

§

fn clone(&self) -> DecodeError

Returns a 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 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

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

source§

fn from(source: DecodeError) -> Error

Converts to this type from the input type.
source§

impl From<DecodeError> for HexOrBase32ParseError

source§

fn from(source: DecodeError) -> HexOrBase32ParseError

Converts to this type from the input type.
§

impl PartialEq for DecodeError

§

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

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

Trait Implementations§

§

impl Clone for DecodeError

§

fn clone(&self) -> DecodeError

Returns a 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 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

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

source§

fn from(source: DecodeError) -> Error

Converts to this type from the input type.
source§

impl From<DecodeError> for HexOrBase32ParseError

source§

fn from(source: DecodeError) -> HexOrBase32ParseError

Converts to this type from the input type.
§

impl PartialEq for DecodeError

§

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

§

impl Eq for DecodeError

§

impl StructuralPartialEq for DecodeError

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 @@ -55,14 +55,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/hash/enum.BlobFormat.html b/pr/2674/docs/iroh/base/hash/enum.BlobFormat.html index 1964030815..04a8323571 100644 --- a/pr/2674/docs/iroh/base/hash/enum.BlobFormat.html +++ b/pr/2674/docs/iroh/base/hash/enum.BlobFormat.html @@ -1,4 +1,4 @@ -BlobFormat in iroh::base::hash - Rust

Enum iroh::base::hash::BlobFormat

source ·
pub enum BlobFormat {
+BlobFormat in iroh::base::hash - Rust

Enum iroh::base::hash::BlobFormat

source ·
pub enum BlobFormat {
     Raw,
     HashSeq,
 }
Expand description

A format identifier

@@ -74,14 +74,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/hash/index.html b/pr/2674/docs/iroh/base/hash/index.html index 70cded2f5a..71817f71f2 100644 --- a/pr/2674/docs/iroh/base/hash/index.html +++ b/pr/2674/docs/iroh/base/hash/index.html @@ -1,2 +1,2 @@ -iroh::base::hash - Rust

Module iroh::base::hash

source ·
Expand description

The blake3 hash used in Iroh.

+iroh::base::hash - Rust

Module iroh::base::hash

source ·
Expand description

The blake3 hash used in Iroh.

Structs§

Enums§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/base/hash/struct.Hash.html b/pr/2674/docs/iroh/base/hash/struct.Hash.html index e4cbb2ea68..1142492f50 100644 --- a/pr/2674/docs/iroh/base/hash/struct.Hash.html +++ b/pr/2674/docs/iroh/base/hash/struct.Hash.html @@ -1,4 +1,4 @@ -Hash in iroh::base::hash - Rust

Struct iroh::base::hash::Hash

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

Hash type used throughout.

+Hash in iroh::base::hash - Rust

Struct iroh::base::hash::Hash

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

Hash type used throughout.

Implementations§

source§

impl Hash

source

pub const EMPTY: Hash = _

The hash for the empty byte range (b"").

source

pub fn new(buf: impl AsRef<[u8]>) -> Hash

Calculate the hash of the provided bytes.

source

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

Bytes of the hash.

@@ -6,10 +6,10 @@
source

pub fn to_hex(&self) -> String

Convert the hash to a hex string.

source

pub fn fmt_short(&self) -> String

Convert to a base32 string limited to the first 10 bytes for a friendly string 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

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 From<PayloadDigest> for Hash

source§

fn from(value: PayloadDigest) -> 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.
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 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, @@ -76,7 +76,7 @@ ordering. Read more

§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where - &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an @@ -86,14 +86,7 @@ ordering. Read more
From<T>,
source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/hash/struct.HashAndFormat.html b/pr/2674/docs/iroh/base/hash/struct.HashAndFormat.html index 1b3944c675..c0483f24e3 100644 --- a/pr/2674/docs/iroh/base/hash/struct.HashAndFormat.html +++ b/pr/2674/docs/iroh/base/hash/struct.HashAndFormat.html @@ -1,4 +1,4 @@ -HashAndFormat in iroh::base::hash - Rust

Struct iroh::base::hash::HashAndFormat

source ·
pub struct HashAndFormat {
+HashAndFormat in iroh::base::hash - Rust

Struct iroh::base::hash::HashAndFormat

source ·
pub struct HashAndFormat {
     pub hash: Hash,
     pub format: BlobFormat,
 }
Expand description

A hash and format pair

@@ -81,14 +81,7 @@ Implementations may return a view over data, or an owned type
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/index.html b/pr/2674/docs/iroh/base/index.html index 45a60cc9b7..f3aba29244 100644 --- a/pr/2674/docs/iroh/base/index.html +++ b/pr/2674/docs/iroh/base/index.html @@ -1,2 +1,2 @@ -iroh::base - Rust

Crate iroh::base

source ·
Expand description

Base types and utilities for Iroh

+iroh::base - Rust

Crate iroh::base

source ·
Expand description

Base types and utilities for Iroh

Modules§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/base/key/constant.PUBLIC_KEY_LENGTH.html b/pr/2674/docs/iroh/base/key/constant.PUBLIC_KEY_LENGTH.html index 9704682333..ba892c3474 100644 --- a/pr/2674/docs/iroh/base/key/constant.PUBLIC_KEY_LENGTH.html +++ b/pr/2674/docs/iroh/base/key/constant.PUBLIC_KEY_LENGTH.html @@ -1,2 +1,2 @@ -PUBLIC_KEY_LENGTH in iroh::base::key - Rust

Constant iroh::base::key::PUBLIC_KEY_LENGTH

pub const PUBLIC_KEY_LENGTH: usize = 32; // 32usize
Expand description

The length of an ed25519 PublicKey, in bytes.

+PUBLIC_KEY_LENGTH in iroh::base::key - Rust

Constant iroh::base::key::PUBLIC_KEY_LENGTH

pub const PUBLIC_KEY_LENGTH: usize = 32; // 32usize
Expand description

The length of an ed25519 PublicKey, in bytes.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/base/key/enum.KeyParsingError.html b/pr/2674/docs/iroh/base/key/enum.KeyParsingError.html index 15f63cb5f7..4159509cb3 100644 --- a/pr/2674/docs/iroh/base/key/enum.KeyParsingError.html +++ b/pr/2674/docs/iroh/base/key/enum.KeyParsingError.html @@ -1,10 +1,10 @@ -KeyParsingError in iroh::base::key - Rust

Enum iroh::base::key::KeyParsingError

source ·
pub enum KeyParsingError {
+KeyParsingError in iroh::base::key - Rust

Enum iroh::base::key::KeyParsingError

source ·
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.

§

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§

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 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 @@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/key/index.html b/pr/2674/docs/iroh/base/key/index.html index c2374ad8a6..268729cd4d 100644 --- a/pr/2674/docs/iroh/base/key/index.html +++ b/pr/2674/docs/iroh/base/key/index.html @@ -1,2 +1,2 @@ -iroh::base::key - Rust

Module iroh::base::key

source ·
Expand description

Cryptographic key handling for iroh-net.

+iroh::base::key - Rust

Module iroh::base::key

source ·
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/2674/docs/iroh/base/key/struct.PublicKey.html b/pr/2674/docs/iroh/base/key/struct.PublicKey.html index 5148a9f121..4ef9b66336 100644 --- a/pr/2674/docs/iroh/base/key/struct.PublicKey.html +++ b/pr/2674/docs/iroh/base/key/struct.PublicKey.html @@ -1,4 +1,4 @@ -PublicKey in iroh::base::key - Rust

Struct iroh::base::key::PublicKey

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

A public key.

+PublicKey in iroh::base::key - Rust

Struct iroh::base::key::PublicKey

source ·
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, @@ -19,7 +19,7 @@ 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

source§

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

Deserialize this value from the given Serde deserializer. Read 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
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.

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 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 @@ -94,14 +94,7 @@ ordering. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/key/struct.SecretKey.html b/pr/2674/docs/iroh/base/key/struct.SecretKey.html index cb06791ee7..79e600d5ff 100644 --- a/pr/2674/docs/iroh/base/key/struct.SecretKey.html +++ b/pr/2674/docs/iroh/base/key/struct.SecretKey.html @@ -1,4 +1,4 @@ -SecretKey in iroh::base::key - Rust

Struct iroh::base::key::SecretKey

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

A secret key.

+SecretKey in iroh::base::key - Rust

Struct iroh::base::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.

@@ -64,14 +64,7 @@ The public part can always be recovered.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/key/struct.SharedSecret.html b/pr/2674/docs/iroh/base/key/struct.SharedSecret.html index 7d6fdd7578..74f18076ff 100644 --- a/pr/2674/docs/iroh/base/key/struct.SharedSecret.html +++ b/pr/2674/docs/iroh/base/key/struct.SharedSecret.html @@ -1,4 +1,4 @@ -SharedSecret in iroh::base::key - Rust

Struct iroh::base::key::SharedSecret

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

Shared Secret.

+SharedSecret in iroh::base::key - Rust

Struct iroh::base::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 @@ -43,14 +43,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/key/struct.Signature.html b/pr/2674/docs/iroh/base/key/struct.Signature.html index 3735b8f3ed..db547d2d5f 100644 --- a/pr/2674/docs/iroh/base/key/struct.Signature.html +++ b/pr/2674/docs/iroh/base/key/struct.Signature.html @@ -1,4 +1,4 @@ -Signature in iroh::base::key - Rust

Struct iroh::base::key::Signature

#[repr(C)]
pub struct Signature { /* private fields */ }
Expand description

Ed25519 signature.

+Signature in iroh::base::key - Rust

Struct iroh::base::key::Signature

#[repr(C)]
pub struct Signature { /* private fields */ }
Expand description

Ed25519 signature.

This type represents a container for the byte serialization of an Ed25519 signature, and does not necessarily represent well-formed field or curve elements.

@@ -77,14 +77,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/key/type.NodeId.html b/pr/2674/docs/iroh/base/key/type.NodeId.html index fdf7d085bb..8b30c7411b 100644 --- a/pr/2674/docs/iroh/base/key/type.NodeId.html +++ b/pr/2674/docs/iroh/base/key/type.NodeId.html @@ -1,4 +1,4 @@ -NodeId in iroh::base::key - Rust

Type Alias iroh::base::key::NodeId

source ·
pub type NodeId = PublicKey;
Expand description

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

+NodeId in iroh::base::key - Rust

Type Alias iroh::base::key::NodeId

source ·
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/2674/docs/iroh/base/node_addr/enum.AddrInfoOptions.html b/pr/2674/docs/iroh/base/node_addr/enum.AddrInfoOptions.html index 8b2801f2ce..f24a96d0b5 100644 --- a/pr/2674/docs/iroh/base/node_addr/enum.AddrInfoOptions.html +++ b/pr/2674/docs/iroh/base/node_addr/enum.AddrInfoOptions.html @@ -1,4 +1,4 @@ -AddrInfoOptions in iroh::base::node_addr - Rust

Enum iroh::base::node_addr::AddrInfoOptions

source ·
pub enum AddrInfoOptions {
+AddrInfoOptions in iroh::base::node_addr - Rust

Enum iroh::base::node_addr::AddrInfoOptions

source ·
pub enum AddrInfoOptions {
     Id,
     RelayAndAddresses,
     Relay,
@@ -68,14 +68,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/node_addr/index.html b/pr/2674/docs/iroh/base/node_addr/index.html index 239f4fa5d4..2c50adc5c7 100644 --- a/pr/2674/docs/iroh/base/node_addr/index.html +++ b/pr/2674/docs/iroh/base/node_addr/index.html @@ -1,4 +1,4 @@ -iroh::base::node_addr - Rust

Module iroh::base::node_addr

source ·
Expand description

Addressing for iroh nodes.

+iroh::base::node_addr - Rust

Module iroh::base::node_addr

source ·
Expand description

Addressing for iroh nodes.

This module contains some common addressing types for iroh. A node is uniquely identified by the NodeId but that does not make it addressable on the network layer. For this the addition of a RelayUrl and/or direct addresses are required.

diff --git a/pr/2674/docs/iroh/base/node_addr/struct.AddrInfo.html b/pr/2674/docs/iroh/base/node_addr/struct.AddrInfo.html index c8f721d45c..3fda5385ca 100644 --- a/pr/2674/docs/iroh/base/node_addr/struct.AddrInfo.html +++ b/pr/2674/docs/iroh/base/node_addr/struct.AddrInfo.html @@ -1,4 +1,4 @@ -AddrInfo in iroh::base::node_addr - Rust

Struct iroh::base::node_addr::AddrInfo

source ·
pub struct AddrInfo {
+AddrInfo in iroh::base::node_addr - Rust

Struct iroh::base::node_addr::AddrInfo

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

Network paths to contact an iroh-net node.

@@ -76,14 +76,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/node_addr/struct.NodeAddr.html b/pr/2674/docs/iroh/base/node_addr/struct.NodeAddr.html index 732ead68b5..983414cb69 100644 --- a/pr/2674/docs/iroh/base/node_addr/struct.NodeAddr.html +++ b/pr/2674/docs/iroh/base/node_addr/struct.NodeAddr.html @@ -1,4 +1,4 @@ -NodeAddr in iroh::base::node_addr - Rust

Struct iroh::base::node_addr::NodeAddr

source ·
pub struct NodeAddr {
+NodeAddr in iroh::base::node_addr - Rust

Struct iroh::base::node_addr::NodeAddr

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

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

@@ -106,14 +106,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/node_addr/struct.RelayUrl.html b/pr/2674/docs/iroh/base/node_addr/struct.RelayUrl.html index c1c2ab206b..e0cc0c948a 100644 --- a/pr/2674/docs/iroh/base/node_addr/struct.RelayUrl.html +++ b/pr/2674/docs/iroh/base/node_addr/struct.RelayUrl.html @@ -1,4 +1,4 @@ -RelayUrl in iroh::base::node_addr - Rust

Struct iroh::base::node_addr::RelayUrl

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

A URL identifying a relay server.

+RelayUrl in iroh::base::node_addr - Rust

Struct iroh::base::node_addr::RelayUrl

source ·
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:

  • @@ -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 @@ -514,14 +514,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/rpc/index.html b/pr/2674/docs/iroh/base/rpc/index.html index 50e743d367..c3944e1774 100644 --- a/pr/2674/docs/iroh/base/rpc/index.html +++ b/pr/2674/docs/iroh/base/rpc/index.html @@ -1 +1 @@ -iroh::base::rpc - Rust

Module iroh::base::rpc

source ·

Structs§

  • A serializable error type for use in RPC responses.

Type Aliases§

  • A serializable result type for use in RPC responses.
\ No newline at end of file +iroh::base::rpc - Rust

Module iroh::base::rpc

source ·

Structs§

  • A serializable error type for use in RPC responses.

Type Aliases§

  • A serializable result type for use in RPC responses.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/base/rpc/struct.RpcError.html b/pr/2674/docs/iroh/base/rpc/struct.RpcError.html index eca811c1c0..66e68d7819 100644 --- a/pr/2674/docs/iroh/base/rpc/struct.RpcError.html +++ b/pr/2674/docs/iroh/base/rpc/struct.RpcError.html @@ -1,8 +1,8 @@ -RpcError in iroh::base::rpc - Rust

Struct iroh::base::rpc::RpcError

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

A serializable error type for use in RPC responses.

+RpcError in iroh::base::rpc - Rust

Struct iroh::base::rpc::RpcError

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

A serializable error type for use in RPC responses.

Trait Implementations§

source§

impl Clone for RpcError

source§

fn clone(&self) -> RpcError

Returns a 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 RpcError

source§

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

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

impl<'de> Deserialize<'de> for RpcError

source§

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

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

impl Display for RpcError

source§

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

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

impl Error for RpcError

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

source§

fn from(e: Error) -> RpcError

Converts to this type from the input type.
source§

impl From<Error> for RpcError

source§

fn from(e: Error) -> RpcError

Converts to this type from the input type.
source§

impl Serialize for RpcError

source§

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

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

impl Display for RpcError

source§

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

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

impl Error for RpcError

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

source§

fn from(e: Error) -> RpcError

Converts to this type from the input type.
source§

impl From<Error> for RpcError

source§

fn from(e: Error) -> RpcError

Converts to this type from the input type.
source§

impl Serialize for RpcError

source§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where @@ -50,14 +50,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/rpc/type.RpcResult.html b/pr/2674/docs/iroh/base/rpc/type.RpcResult.html index a5ed31e2ad..eb67c06e83 100644 --- a/pr/2674/docs/iroh/base/rpc/type.RpcResult.html +++ b/pr/2674/docs/iroh/base/rpc/type.RpcResult.html @@ -1,4 +1,4 @@ -RpcResult in iroh::base::rpc - Rust

Type Alias iroh::base::rpc::RpcResult

source ·
pub type RpcResult<T> = Result<T, RpcError>;
Expand description

A serializable result type for use in RPC responses.

+RpcResult in iroh::base::rpc - Rust

Type Alias iroh::base::rpc::RpcResult

source ·
pub type RpcResult<T> = Result<T, RpcError>;
Expand description

A serializable result type for use in RPC responses.

Aliased Type§

enum RpcResult<T> {
     Ok(T),
     Err(RpcError),
diff --git a/pr/2674/docs/iroh/base/ticket/enum.Error.html b/pr/2674/docs/iroh/base/ticket/enum.Error.html
index 893ba44b29..bda377d50f 100644
--- a/pr/2674/docs/iroh/base/ticket/enum.Error.html
+++ b/pr/2674/docs/iroh/base/ticket/enum.Error.html
@@ -1,4 +1,4 @@
-Error in iroh::base::ticket - Rust

Enum iroh::base::ticket::Error

source ·
pub enum Error {
+Error in iroh::base::ticket - Rust

Enum iroh::base::ticket::Error

source ·
pub enum Error {
     Kind {
         expected: &'static str,
     },
@@ -52,14 +52,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/ticket/index.html b/pr/2674/docs/iroh/base/ticket/index.html index f9865410bc..c54b61d6bc 100644 --- a/pr/2674/docs/iroh/base/ticket/index.html +++ b/pr/2674/docs/iroh/base/ticket/index.html @@ -1,3 +1,3 @@ -iroh::base::ticket - Rust

Module iroh::base::ticket

source ·

Structs§

  • A token containing everything to get a file from the provider.
  • A token containing everything to get a file from the provider.

Enums§

  • An error deserializing an iroh ticket.

Traits§

Trait Implementations§

source§

impl Clone for BlobTicket

source§

fn clone(&self) -> BlobTicket

Returns a 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 BlobTicket

source§

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

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

impl<'de> Deserialize<'de> for BlobTicket

source§

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

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

impl Display for BlobTicket

source§

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

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

impl FromStr for BlobTicket

§

type Err = Error

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

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

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

impl PartialEq for BlobTicket

source§

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

This method tests for self and other values to be equal, and is used @@ -19,7 +19,7 @@ sufficient, and should not be overridden without very good reason.
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 BlobTicket

source§

const KIND: &'static str = "blob"

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<BlobTicket, 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 BlobTicket

source§

impl StructuralPartialEq for BlobTicket

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 Ticket for BlobTicket

source§

const KIND: &'static str = "blob"

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<BlobTicket, 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 BlobTicket

source§

impl StructuralPartialEq for BlobTicket

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 @@ -67,14 +67,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/ticket/struct.NodeTicket.html b/pr/2674/docs/iroh/base/ticket/struct.NodeTicket.html index af493f5491..375333aa21 100644 --- a/pr/2674/docs/iroh/base/ticket/struct.NodeTicket.html +++ b/pr/2674/docs/iroh/base/ticket/struct.NodeTicket.html @@ -1,8 +1,8 @@ -NodeTicket in iroh::base::ticket - Rust

Struct iroh::base::ticket::NodeTicket

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

A token containing everything to get a file from the provider.

+NodeTicket in iroh::base::ticket - Rust

Struct iroh::base::ticket::NodeTicket

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

A token containing everything to get a file from the provider.

It is a single item which can be easily serialized and deserialized.

Implementations§

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

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

source§

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

Deserialize this value from the given Serde deserializer. Read more
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 @@ -11,7 +11,7 @@ sufficient, and should not be overridden without very good reason.
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
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 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 @@ -59,14 +59,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/base/ticket/trait.Ticket.html b/pr/2674/docs/iroh/base/ticket/trait.Ticket.html index b1cb87cc80..526b8cba99 100644 --- a/pr/2674/docs/iroh/base/ticket/trait.Ticket.html +++ b/pr/2674/docs/iroh/base/ticket/trait.Ticket.html @@ -1,4 +1,4 @@ -Ticket in iroh::base::ticket - Rust

Trait iroh::base::ticket::Ticket

source ·
pub trait Ticket: Sized {
+Ticket in iroh::base::ticket - Rust

Trait iroh::base::ticket::Ticket

source ·
pub trait Ticket: Sized {
     const KIND: &'static str;
 
     // Required methods
diff --git a/pr/2674/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html b/pr/2674/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html
index cbea1736b7..69a4aeb220 100644
--- a/pr/2674/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html
+++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/downloader/enum.DownloadError.html b/pr/2674/docs/iroh/blobs/downloader/enum.DownloadError.html index a2d5ca54a5..a42aaa65a1 100644 --- a/pr/2674/docs/iroh/blobs/downloader/enum.DownloadError.html +++ b/pr/2674/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

source ·
pub enum DownloadError {
     DownloadFailed,
     Cancelled,
     NoProviders,
@@ -52,14 +52,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/downloader/enum.FailureAction.html b/pr/2674/docs/iroh/blobs/downloader/enum.FailureAction.html index da4d0f3cab..8085daf56a 100644 --- a/pr/2674/docs/iroh/blobs/downloader/enum.FailureAction.html +++ b/pr/2674/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

source ·
pub enum FailureAction {
     AllIntentsDropped,
     AbortRequest(Error),
     DropPeer(Error),
@@ -50,14 +50,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/downloader/enum.GetOutput.html b/pr/2674/docs/iroh/blobs/downloader/enum.GetOutput.html index d83c4a1327..7fff9b71b3 100644 --- a/pr/2674/docs/iroh/blobs/downloader/enum.GetOutput.html +++ b/pr/2674/docs/iroh/blobs/downloader/enum.GetOutput.html @@ -1,4 +1,4 @@ -GetOutput in iroh::blobs::downloader - Rust

Enum iroh::blobs::downloader::GetOutput

source ·
pub enum GetOutput<N> {
+GetOutput in iroh::blobs::downloader - Rust

Enum iroh::blobs::downloader::GetOutput

source ·
pub enum GetOutput<N> {
     Complete(Stats),
     NeedsConn(N),
 }
Expand description

Output returned from Getter::get.

@@ -53,14 +53,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/downloader/index.html b/pr/2674/docs/iroh/blobs/downloader/index.html index a7a1a8d9d4..6e4d179e97 100644 --- a/pr/2674/docs/iroh/blobs/downloader/index.html +++ b/pr/2674/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

source ·
Expand description

Handle downloading blobs and collections concurrently and from nodes.

The Downloader interacts with four main components to this end.

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/downloader/struct.DownloadHandle.html b/pr/2674/docs/iroh/blobs/downloader/struct.DownloadHandle.html index 9c4f6d5020..3ed614cec5 100644 --- a/pr/2674/docs/iroh/blobs/downloader/struct.DownloadHandle.html +++ b/pr/2674/docs/iroh/blobs/downloader/struct.DownloadHandle.html @@ -1,4 +1,4 @@ -DownloadHandle in iroh::blobs::downloader - Rust

Struct iroh::blobs::downloader::DownloadHandle

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

Handle to interact with a download request.

+DownloadHandle in iroh::blobs::downloader - Rust

Struct iroh::blobs::downloader::DownloadHandle

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

Handle to interact with a download request.

Trait Implementations§

source§

impl Debug for DownloadHandle

source§

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

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

impl Future for DownloadHandle

§

type Output = Result<Stats, DownloadError>

The type of value produced on completion.
source§

fn poll( self: Pin<&mut DownloadHandle>, cx: &mut Context<'_> @@ -120,14 +120,7 @@ fluent call chains. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<F> IntoFuture for F
where +

source§

impl<F> IntoFuture for F
where F: Future,

§

type Output = <F as Future>::Output

The output that the future will produce on completion.
§

type IntoFuture = F

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

fn into_future(self) -> <F as IntoFuture>::IntoFuture

Creates a future from a value. Read more
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/downloader/struct.DownloadKind.html b/pr/2674/docs/iroh/blobs/downloader/struct.DownloadKind.html index b2df00ffde..da7379a63e 100644 --- a/pr/2674/docs/iroh/blobs/downloader/struct.DownloadKind.html +++ b/pr/2674/docs/iroh/blobs/downloader/struct.DownloadKind.html @@ -1,4 +1,4 @@ -DownloadKind in iroh::blobs::downloader - Rust

Struct iroh::blobs::downloader::DownloadKind

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

The kind of resource to download.

+DownloadKind in iroh::blobs::downloader - Rust

Struct iroh::blobs::downloader::DownloadKind

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

The kind of resource to download.

Implementations§

source§

impl DownloadKind

source

pub const fn hash(&self) -> Hash

Get the hash of this download

source

pub const fn format(&self) -> BlobFormat

Get the format of this download

source

pub const fn hash_and_format(&self) -> HashAndFormat

Get the HashAndFormat pair of this download

@@ -55,14 +55,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/downloader/struct.DownloadRequest.html b/pr/2674/docs/iroh/blobs/downloader/struct.DownloadRequest.html index a1e339bfea..2be235405e 100644 --- a/pr/2674/docs/iroh/blobs/downloader/struct.DownloadRequest.html +++ b/pr/2674/docs/iroh/blobs/downloader/struct.DownloadRequest.html @@ -1,4 +1,4 @@ -DownloadRequest in iroh::blobs::downloader - Rust

Struct iroh::blobs::downloader::DownloadRequest

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

A download request.

+DownloadRequest in iroh::blobs::downloader - Rust

Struct iroh::blobs::downloader::DownloadRequest

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

A download request.

Implementations§

source§

impl DownloadRequest

source

pub fn new( resource: impl Into<DownloadKind>, nodes: impl IntoIterator<Item = impl Into<NodeAddr>> @@ -56,14 +56,7 @@ that the data is still available when the download is complete.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/downloader/struct.Downloader.html b/pr/2674/docs/iroh/blobs/downloader/struct.Downloader.html index a58084f1f5..c664f7939e 100644 --- a/pr/2674/docs/iroh/blobs/downloader/struct.Downloader.html +++ b/pr/2674/docs/iroh/blobs/downloader/struct.Downloader.html @@ -1,4 +1,4 @@ -Downloader in iroh::blobs::downloader - Rust

Struct iroh::blobs::downloader::Downloader

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

Handle for the download services.

+Downloader in iroh::blobs::downloader - Rust

Struct iroh::blobs::downloader::Downloader

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

Handle for the download services.

Implementations§

source§

impl Downloader

source

pub fn new<S>(store: S, endpoint: Endpoint, rt: LocalPoolHandle) -> Downloader
where S: Store,

Create a new Downloader with the default ConcurrencyLimits and RetryConfig.

source

pub fn with_config<S>( @@ -58,14 +58,7 @@ downloads. Use From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/downloader/struct.IntentId.html b/pr/2674/docs/iroh/blobs/downloader/struct.IntentId.html index 857001d468..e082cdce04 100644 --- a/pr/2674/docs/iroh/blobs/downloader/struct.IntentId.html +++ b/pr/2674/docs/iroh/blobs/downloader/struct.IntentId.html @@ -1,4 +1,4 @@ -IntentId in iroh::blobs::downloader - Rust

Struct iroh::blobs::downloader::IntentId

source ·
pub struct IntentId(pub u64);
Expand description

Identifier for a download intent.

+IntentId in iroh::blobs::downloader - Rust

Struct iroh::blobs::downloader::IntentId

source ·
pub struct IntentId(pub u64);
Expand description

Identifier for a download intent.

Tuple Fields§

§0: u64

Trait Implementations§

source§

impl Clone for IntentId

source§

fn clone(&self) -> IntentId

Returns a 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 IntentId

source§

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

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

impl Display for IntentId

source§

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

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

impl Hash for IntentId

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, @@ -59,14 +59,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/downloader/struct.RetryConfig.html b/pr/2674/docs/iroh/blobs/downloader/struct.RetryConfig.html index fd8e0d67b1..e472845cd1 100644 --- a/pr/2674/docs/iroh/blobs/downloader/struct.RetryConfig.html +++ b/pr/2674/docs/iroh/blobs/downloader/struct.RetryConfig.html @@ -1,4 +1,4 @@ -RetryConfig in iroh::blobs::downloader - Rust

Struct iroh::blobs::downloader::RetryConfig

source ·
pub struct RetryConfig {
+RetryConfig in iroh::blobs::downloader - Rust

Struct iroh::blobs::downloader::RetryConfig

source ·
pub struct RetryConfig {
     pub max_retries_per_node: u32,
     pub initial_retry_delay: Duration,
 }
Expand description

Configuration for retry behavior of the Downloader.

@@ -47,14 +47,7 @@ will be multiplied with the number of failed retries.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/downloader/trait.Dialer.html b/pr/2674/docs/iroh/blobs/downloader/trait.Dialer.html index b171e5d50b..451b2d255a 100644 --- a/pr/2674/docs/iroh/blobs/downloader/trait.Dialer.html +++ b/pr/2674/docs/iroh/blobs/downloader/trait.Dialer.html @@ -1,4 +1,4 @@ -Dialer in iroh::blobs::downloader - Rust

Trait iroh::blobs::downloader::Dialer

source ·
pub trait Dialer: Stream<Item = (PublicKey, Result<Self::Connection, Error>)> + Unpin {
+Dialer in iroh::blobs::downloader - Rust

Trait iroh::blobs::downloader::Dialer

source ·
pub trait Dialer: Stream<Item = (PublicKey, Result<Self::Connection, Error>)> + Unpin {
     type Connection: Clone + 'static;
 
     // Required methods
diff --git a/pr/2674/docs/iroh/blobs/downloader/trait.Getter.html b/pr/2674/docs/iroh/blobs/downloader/trait.Getter.html
index 7db7547404..4620dd0ffa 100644
--- a/pr/2674/docs/iroh/blobs/downloader/trait.Getter.html
+++ b/pr/2674/docs/iroh/blobs/downloader/trait.Getter.html
@@ -1,4 +1,4 @@
-Getter in iroh::blobs::downloader - Rust

Trait iroh::blobs::downloader::Getter

source ·
pub trait Getter {
+Getter in iroh::blobs::downloader - Rust

Trait iroh::blobs::downloader::Getter

source ·
pub trait Getter {
     type Connection: 'static;
     type NeedsConn: NeedsConn<Self::Connection>;
 
diff --git a/pr/2674/docs/iroh/blobs/downloader/trait.NeedsConn.html b/pr/2674/docs/iroh/blobs/downloader/trait.NeedsConn.html
index 43b89e6c03..5a3883322a 100644
--- a/pr/2674/docs/iroh/blobs/downloader/trait.NeedsConn.html
+++ b/pr/2674/docs/iroh/blobs/downloader/trait.NeedsConn.html
@@ -1,4 +1,4 @@
-NeedsConn in iroh::blobs::downloader - Rust

Trait iroh::blobs::downloader::NeedsConn

source ·
pub trait NeedsConn<C>: Debug + 'static {
+NeedsConn in iroh::blobs::downloader - Rust

Trait iroh::blobs::downloader::NeedsConn

source ·
pub trait NeedsConn<C>: Debug + 'static {
     // Required method
     fn proceed(
         self,
diff --git a/pr/2674/docs/iroh/blobs/enum.BlobFormat.html b/pr/2674/docs/iroh/blobs/enum.BlobFormat.html
index a347f85abc..96bc95860b 100644
--- a/pr/2674/docs/iroh/blobs/enum.BlobFormat.html
+++ b/pr/2674/docs/iroh/blobs/enum.BlobFormat.html
@@ -1,4 +1,4 @@
-BlobFormat in iroh::blobs - Rust

Enum iroh::blobs::BlobFormat

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

Enum iroh::blobs::BlobFormat

source ·
pub enum BlobFormat {
     Raw,
     HashSeq,
 }
Expand description

A format identifier

@@ -74,14 +74,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/export/enum.ExportProgress.html b/pr/2674/docs/iroh/blobs/export/enum.ExportProgress.html index c7b9e87689..6a4815ee7f 100644 --- a/pr/2674/docs/iroh/blobs/export/enum.ExportProgress.html +++ b/pr/2674/docs/iroh/blobs/export/enum.ExportProgress.html @@ -1,4 +1,4 @@ -ExportProgress in iroh::blobs::export - Rust

Enum iroh::blobs::export::ExportProgress

source ·
pub enum ExportProgress {
+ExportProgress in iroh::blobs::export - Rust

Enum iroh::blobs::export::ExportProgress

source ·
pub enum ExportProgress {
     Found {
         id: u64,
         hash: Hash,
@@ -82,14 +82,7 @@ to the specified out path.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/export/fn.export.html b/pr/2674/docs/iroh/blobs/export/fn.export.html index 47dcf9dc56..0cd874126b 100644 --- a/pr/2674/docs/iroh/blobs/export/fn.export.html +++ b/pr/2674/docs/iroh/blobs/export/fn.export.html @@ -1,4 +1,4 @@ -export in iroh::blobs::export - Rust

Function iroh::blobs::export::export

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

Function iroh::blobs::export::export

source ·
pub async fn export<D>(
     db: &D,
     hash: Hash,
     outpath: PathBuf,
diff --git a/pr/2674/docs/iroh/blobs/export/fn.export_blob.html b/pr/2674/docs/iroh/blobs/export/fn.export_blob.html
index 5f3b87c1e3..291a477b17 100644
--- a/pr/2674/docs/iroh/blobs/export/fn.export_blob.html
+++ b/pr/2674/docs/iroh/blobs/export/fn.export_blob.html
@@ -1,4 +1,4 @@
-export_blob in iroh::blobs::export - Rust

Function iroh::blobs::export::export_blob

source ·
pub async fn export_blob<D>(
+export_blob in iroh::blobs::export - Rust

Function iroh::blobs::export::export_blob

source ·
pub async fn export_blob<D>(
     db: &D,
     hash: Hash,
     outpath: PathBuf,
diff --git a/pr/2674/docs/iroh/blobs/export/fn.export_collection.html b/pr/2674/docs/iroh/blobs/export/fn.export_collection.html
index 3006f090c9..caa01b388a 100644
--- a/pr/2674/docs/iroh/blobs/export/fn.export_collection.html
+++ b/pr/2674/docs/iroh/blobs/export/fn.export_collection.html
@@ -1,4 +1,4 @@
-export_collection in iroh::blobs::export - Rust

Function iroh::blobs::export::export_collection

source ·
pub async fn export_collection<D>(
+export_collection in iroh::blobs::export - Rust

Function iroh::blobs::export::export_collection

source ·
pub async fn export_collection<D>(
     db: &D,
     hash: Hash,
     outpath: PathBuf,
diff --git a/pr/2674/docs/iroh/blobs/export/index.html b/pr/2674/docs/iroh/blobs/export/index.html
index 37d2b2d789..12ede37a28 100644
--- a/pr/2674/docs/iroh/blobs/export/index.html
+++ b/pr/2674/docs/iroh/blobs/export/index.html
@@ -1,2 +1,2 @@
-iroh::blobs::export - Rust

Module iroh::blobs::export

source ·
Expand description

Functions to export data from a store

+iroh::blobs::export - Rust

Module iroh::blobs::export

source ·
Expand description

Functions to export data from a store

Enums§

Functions§

  • Export a hash to the local file system.
  • Export a single blob to a file on the local filesystem.
  • Export all entries of a collection, recursively, to files on the local filesystem.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/format/collection/index.html b/pr/2674/docs/iroh/blobs/format/collection/index.html index 09692a2b2a..a52013fb0d 100644 --- a/pr/2674/docs/iroh/blobs/format/collection/index.html +++ b/pr/2674/docs/iroh/blobs/format/collection/index.html @@ -1,2 +1,2 @@ -iroh::blobs::format::collection - Rust

Module iroh::blobs::format::collection

source ·
Expand description

The collection type used by iroh

+iroh::blobs::format::collection - Rust

Module iroh::blobs::format::collection

source ·
Expand description

The collection type used by iroh

Structs§

Traits§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/format/collection/struct.Collection.html b/pr/2674/docs/iroh/blobs/format/collection/struct.Collection.html index 2268f8b0ec..a9742dae37 100644 --- a/pr/2674/docs/iroh/blobs/format/collection/struct.Collection.html +++ b/pr/2674/docs/iroh/blobs/format/collection/struct.Collection.html @@ -1,4 +1,4 @@ -Collection in iroh::blobs::format::collection - Rust

Struct iroh::blobs::format::collection::Collection

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

A collection of blobs

+Collection in iroh::blobs::format::collection - Rust

Struct iroh::blobs::format::collection::Collection

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

A collection of blobs

Note that the format is subject to change.

Implementations§

source§

impl Collection

source

pub const HEADER: &'static [u8; 13] = b"CollectionV0."

The header for the collection format.

This is the start of the metadata blob.

@@ -91,14 +91,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/format/collection/trait.SimpleStore.html b/pr/2674/docs/iroh/blobs/format/collection/trait.SimpleStore.html index eb7104d971..c4aa857466 100644 --- a/pr/2674/docs/iroh/blobs/format/collection/trait.SimpleStore.html +++ b/pr/2674/docs/iroh/blobs/format/collection/trait.SimpleStore.html @@ -1,4 +1,4 @@ -SimpleStore in iroh::blobs::format::collection - Rust

Trait iroh::blobs::format::collection::SimpleStore

source ·
pub trait SimpleStore {
+SimpleStore in iroh::blobs::format::collection - Rust

Trait iroh::blobs::format::collection::SimpleStore

source ·
pub trait SimpleStore {
     // Required method
     fn load(
         &self,
diff --git a/pr/2674/docs/iroh/blobs/format/index.html b/pr/2674/docs/iroh/blobs/format/index.html
index 4c4eeb7120..d2997ab4e6 100644
--- a/pr/2674/docs/iroh/blobs/format/index.html
+++ b/pr/2674/docs/iroh/blobs/format/index.html
@@ -1,4 +1,4 @@
-iroh::blobs::format - Rust

Module iroh::blobs::format

source ·
Expand description

Defines data formats for HashSeq.

+iroh::blobs::format - Rust

Module iroh::blobs::format

source ·
Expand description

Defines data formats for HashSeq.

The exact details how to use a HashSeq for specific purposes is up to the user. However, the following approach is used by iroh formats:

The first child blob is a metadata blob. It starts with a header, followed diff --git a/pr/2674/docs/iroh/blobs/get/db/enum.BlobId.html b/pr/2674/docs/iroh/blobs/get/db/enum.BlobId.html index cdb40ae3e7..856cb27a11 100644 --- a/pr/2674/docs/iroh/blobs/get/db/enum.BlobId.html +++ b/pr/2674/docs/iroh/blobs/get/db/enum.BlobId.html @@ -1,4 +1,4 @@ -BlobId in iroh::blobs::get::db - Rust

Enum iroh::blobs::get::db::BlobId

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

Enum iroh::blobs::get::db::BlobId

source ·
pub enum BlobId {
     Root,
     Child(NonZero<u64>),
 }
Expand description

The id of a blob in a transfer

@@ -71,14 +71,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/db/enum.BlobInfo.html b/pr/2674/docs/iroh/blobs/get/db/enum.BlobInfo.html index c58c136d84..f4b2db3d55 100644 --- a/pr/2674/docs/iroh/blobs/get/db/enum.BlobInfo.html +++ b/pr/2674/docs/iroh/blobs/get/db/enum.BlobInfo.html @@ -1,4 +1,4 @@ -BlobInfo in iroh::blobs::get::db - Rust

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

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

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

source ·
pub enum BlobInfo<D>
where D: Store,
{ Complete { size: u64, @@ -75,14 +75,7 @@ a set with possibly open last range for partial blobs.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/db/enum.DownloadProgress.html b/pr/2674/docs/iroh/blobs/get/db/enum.DownloadProgress.html index 63194b66fb..a2c4682d9d 100644 --- a/pr/2674/docs/iroh/blobs/get/db/enum.DownloadProgress.html +++ b/pr/2674/docs/iroh/blobs/get/db/enum.DownloadProgress.html @@ -1,4 +1,4 @@ -DownloadProgress in iroh::blobs::get::db - Rust

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

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

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

source ·
pub enum DownloadProgress {
     InitialState(TransferState),
     FoundLocal {
         child: BlobId,
@@ -104,14 +104,7 @@ allows to identify the children by their offset in the hashseq.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/db/enum.GetState.html b/pr/2674/docs/iroh/blobs/get/db/enum.GetState.html index 24f10807d0..4362ee245f 100644 --- a/pr/2674/docs/iroh/blobs/get/db/enum.GetState.html +++ b/pr/2674/docs/iroh/blobs/get/db/enum.GetState.html @@ -1,4 +1,4 @@ -GetState in iroh::blobs::get::db - Rust

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

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

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

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

Output of get_to_db_in_steps.

@@ -49,14 +49,7 @@ proceed.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/db/fn.blob_info.html b/pr/2674/docs/iroh/blobs/get/db/fn.blob_info.html index 6bffb74c11..c9890cee4b 100644 --- a/pr/2674/docs/iroh/blobs/get/db/fn.blob_info.html +++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/get/db/fn.get_to_db.html b/pr/2674/docs/iroh/blobs/get/db/fn.get_to_db.html index 7ff6ebf269..f85f6f8222 100644 --- a/pr/2674/docs/iroh/blobs/get/db/fn.get_to_db.html +++ b/pr/2674/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

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

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

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

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

source ·
pub async fn get_to_db_in_steps<D, P>(
     db: D,
     hash_and_format: HashAndFormat,
     progress_sender: P
diff --git a/pr/2674/docs/iroh/blobs/get/db/fn.valid_ranges.html b/pr/2674/docs/iroh/blobs/get/db/fn.valid_ranges.html
index fd9073dd3e..32cda62bb9 100644
--- a/pr/2674/docs/iroh/blobs/get/db/fn.valid_ranges.html
+++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/get/db/index.html b/pr/2674/docs/iroh/blobs/get/db/index.html index cf366d46ba..dddbd64a28 100644 --- a/pr/2674/docs/iroh/blobs/get/db/index.html +++ b/pr/2674/docs/iroh/blobs/get/db/index.html @@ -1,3 +1,3 @@ -iroh::blobs::get::db - Rust

Module iroh::blobs::get::db

source ·
Expand description

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

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

Module iroh::blobs::get::db

source ·
Expand description

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

Structs§

Enums§

Functions§

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

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

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

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

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

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

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

Implementations§

source§

impl GetStateNeedsConn

source

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

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

Trait Implementations§

source§

impl Debug for GetStateNeedsConn

source§

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

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

impl NeedsConn<Connection> for GetStateNeedsConn

source§

fn proceed( @@ -46,14 +46,7 @@ connection to proceed.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/enum.GetResponseError.html b/pr/2674/docs/iroh/blobs/get/enum.GetResponseError.html index aab1b5bc6e..185788dac5 100644 --- a/pr/2674/docs/iroh/blobs/get/enum.GetResponseError.html +++ b/pr/2674/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

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

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 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 @@ -52,14 +52,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/error/enum.GetError.html b/pr/2674/docs/iroh/blobs/get/error/enum.GetError.html index e743d26246..5d9db83bea 100644 --- a/pr/2674/docs/iroh/blobs/get/error/enum.GetError.html +++ b/pr/2674/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

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

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 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 @@ -54,14 +54,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/error/index.html b/pr/2674/docs/iroh/blobs/get/error/index.html index 107318af40..29cf471d68 100644 --- a/pr/2674/docs/iroh/blobs/get/error/index.html +++ b/pr/2674/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

source ·
Expand description

Error returned from get operations

Enums§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/get/fsm/enum.AtBlobHeaderNextError.html b/pr/2674/docs/iroh/blobs/get/fsm/enum.AtBlobHeaderNextError.html index a18da7835a..2e9a0c0c74 100644 --- a/pr/2674/docs/iroh/blobs/get/fsm/enum.AtBlobHeaderNextError.html +++ b/pr/2674/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

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

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 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 @@ -49,14 +49,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/fsm/enum.BlobContentNext.html b/pr/2674/docs/iroh/blobs/get/fsm/enum.BlobContentNext.html index 8e227f9e30..af42fcc017 100644 --- a/pr/2674/docs/iroh/blobs/get/fsm/enum.BlobContentNext.html +++ b/pr/2674/docs/iroh/blobs/get/fsm/enum.BlobContentNext.html @@ -1,4 +1,4 @@ -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

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

The next state after reading a content item

@@ -48,14 +48,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/fsm/enum.ConnectedNext.html b/pr/2674/docs/iroh/blobs/get/fsm/enum.ConnectedNext.html index c0f4fbdb3e..4874c7646e 100644 --- a/pr/2674/docs/iroh/blobs/get/fsm/enum.ConnectedNext.html +++ b/pr/2674/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

source ·
pub enum ConnectedNext {
     StartRoot(AtStartRoot),
     StartChild(AtStartChild),
     Closing(AtClosing),
@@ -48,14 +48,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/fsm/enum.ConnectedNextError.html b/pr/2674/docs/iroh/blobs/get/fsm/enum.ConnectedNextError.html index e8bdfb69ab..d185e731dc 100644 --- a/pr/2674/docs/iroh/blobs/get/fsm/enum.ConnectedNextError.html +++ b/pr/2674/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

source ·
pub enum ConnectedNextError {
     PostcardSer(Error),
     RequestTooBig,
     Write(WriteError),
@@ -50,14 +50,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/fsm/enum.DecodeError.html b/pr/2674/docs/iroh/blobs/get/fsm/enum.DecodeError.html index e23d8bc055..4770b6f83f 100644 --- a/pr/2674/docs/iroh/blobs/get/fsm/enum.DecodeError.html +++ b/pr/2674/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

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

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 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 @@ -72,14 +72,7 @@ is not actually a From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/fsm/enum.EndBlobNext.html b/pr/2674/docs/iroh/blobs/get/fsm/enum.EndBlobNext.html index 99ed332b8b..df5ef7acde 100644 --- a/pr/2674/docs/iroh/blobs/get/fsm/enum.EndBlobNext.html +++ b/pr/2674/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

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

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 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 @@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/fsm/fn.start.html b/pr/2674/docs/iroh/blobs/get/fsm/fn.start.html index 38fa58c4d6..479aca1c88 100644 --- a/pr/2674/docs/iroh/blobs/get/fsm/fn.start.html +++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/get/fsm/index.html b/pr/2674/docs/iroh/blobs/get/fsm/index.html index b33f3d85ff..270ea8fb9c 100644 --- a/pr/2674/docs/iroh/blobs/get/fsm/index.html +++ b/pr/2674/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

source ·
Expand description

Finite state machine for get responses.

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

diff --git a/pr/2674/docs/iroh/blobs/get/fsm/struct.AtBlobContent.html b/pr/2674/docs/iroh/blobs/get/fsm/struct.AtBlobContent.html index 018441b1e7..e4e2c362fe 100644 --- a/pr/2674/docs/iroh/blobs/get/fsm/struct.AtBlobContent.html +++ b/pr/2674/docs/iroh/blobs/get/fsm/struct.AtBlobContent.html @@ -1,4 +1,4 @@ -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

+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.

@@ -66,14 +66,7 @@ chunk group.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/fsm/struct.AtBlobHeader.html b/pr/2674/docs/iroh/blobs/get/fsm/struct.AtBlobHeader.html index 8ed6949731..0ca6b06b4c 100644 --- a/pr/2674/docs/iroh/blobs/get/fsm/struct.AtBlobHeader.html +++ b/pr/2674/docs/iroh/blobs/get/fsm/struct.AtBlobHeader.html @@ -1,4 +1,4 @@ -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

+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( @@ -67,14 +67,7 @@ chunk group.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/fsm/struct.AtClosing.html b/pr/2674/docs/iroh/blobs/get/fsm/struct.AtClosing.html index ea117ba2fc..ff241bef8f 100644 --- a/pr/2674/docs/iroh/blobs/get/fsm/struct.AtClosing.html +++ b/pr/2674/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

+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 +

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 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 @@ -42,14 +42,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/fsm/struct.AtConnected.html b/pr/2674/docs/iroh/blobs/get/fsm/struct.AtConnected.html index dc653d0ed4..69ce45114d 100644 --- a/pr/2674/docs/iroh/blobs/get/fsm/struct.AtConnected.html +++ b/pr/2674/docs/iroh/blobs/get/fsm/struct.AtConnected.html @@ -1,4 +1,4 @@ -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

+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

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

@@ -45,14 +45,7 @@ the request requests part of the collection or not.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/fsm/struct.AtEndBlob.html b/pr/2674/docs/iroh/blobs/get/fsm/struct.AtEndBlob.html index 6bb186c201..6bc25040ba 100644 --- a/pr/2674/docs/iroh/blobs/get/fsm/struct.AtEndBlob.html +++ b/pr/2674/docs/iroh/blobs/get/fsm/struct.AtEndBlob.html @@ -1,4 +1,4 @@ -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

+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 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 @@ -42,14 +42,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/fsm/struct.AtInitial.html b/pr/2674/docs/iroh/blobs/get/fsm/struct.AtInitial.html index 818cb4ae90..c3c2cae041 100644 --- a/pr/2674/docs/iroh/blobs/get/fsm/struct.AtInitial.html +++ b/pr/2674/docs/iroh/blobs/get/fsm/struct.AtInitial.html @@ -1,4 +1,4 @@ -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

+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

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

@@ -45,14 +45,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/fsm/struct.AtStartChild.html b/pr/2674/docs/iroh/blobs/get/fsm/struct.AtStartChild.html index 1e399d10be..41f607a677 100644 --- a/pr/2674/docs/iroh/blobs/get/fsm/struct.AtStartChild.html +++ b/pr/2674/docs/iroh/blobs/get/fsm/struct.AtStartChild.html @@ -1,4 +1,4 @@ -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

+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

This must be used to determine the hash needed to call next. If this is larger than the number of children in the collection, @@ -52,14 +52,7 @@ early.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/fsm/struct.AtStartRoot.html b/pr/2674/docs/iroh/blobs/get/fsm/struct.AtStartRoot.html index 1a2f3a46c9..833edda634 100644 --- a/pr/2674/docs/iroh/blobs/get/fsm/struct.AtStartRoot.html +++ b/pr/2674/docs/iroh/blobs/get/fsm/struct.AtStartRoot.html @@ -1,4 +1,4 @@ -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

+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

@@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/index.html b/pr/2674/docs/iroh/blobs/get/index.html index bd74a46263..e9660fbba9 100644 --- a/pr/2674/docs/iroh/blobs/get/index.html +++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/get/progress/enum.BlobProgress.html b/pr/2674/docs/iroh/blobs/get/progress/enum.BlobProgress.html index cf12e302c6..e0bdebf61e 100644 --- a/pr/2674/docs/iroh/blobs/get/progress/enum.BlobProgress.html +++ b/pr/2674/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

source ·
pub enum BlobProgress {
     Pending,
     Progressing(u64),
     Done,
@@ -63,14 +63,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/progress/index.html b/pr/2674/docs/iroh/blobs/get/progress/index.html index 886396f59c..e9c6ff37a3 100644 --- a/pr/2674/docs/iroh/blobs/get/progress/index.html +++ b/pr/2674/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

source ·
Expand description

Types for get progress state management.

Structs§

Enums§

Type Aliases§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/get/progress/struct.BlobState.html b/pr/2674/docs/iroh/blobs/get/progress/struct.BlobState.html index 0354330455..3f56e73a73 100644 --- a/pr/2674/docs/iroh/blobs/get/progress/struct.BlobState.html +++ b/pr/2674/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

source ·
pub struct BlobState {
     pub hash: Hash,
     pub size: Option<BaoBlobSize>,
     pub progress: BlobProgress,
@@ -69,14 +69,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/progress/struct.TransferState.html b/pr/2674/docs/iroh/blobs/get/progress/struct.TransferState.html index 3b99a54fab..9f27f9fcb8 100644 --- a/pr/2674/docs/iroh/blobs/get/progress/struct.TransferState.html +++ b/pr/2674/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

source ·
pub struct TransferState {
     pub root: BlobState,
     pub connected: bool,
     pub children: HashMap<NonZero<u64>, BlobState>,
@@ -72,14 +72,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/get/progress/type.ProgressId.html b/pr/2674/docs/iroh/blobs/get/progress/type.ProgressId.html index 27f7a051d0..3043436e3f 100644 --- a/pr/2674/docs/iroh/blobs/get/progress/type.ProgressId.html +++ b/pr/2674/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

source ·
pub type ProgressId = u64;
Expand description

The identifier for progress events.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/get/request/fn.get_chunk_probe.html b/pr/2674/docs/iroh/blobs/get/request/fn.get_chunk_probe.html index bc4c26590d..00fde76f9f 100644 --- a/pr/2674/docs/iroh/blobs/get/request/fn.get_chunk_probe.html +++ b/pr/2674/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

source ·
pub async fn get_chunk_probe(
     connection: &Connection,
     hash: &Hash,
     chunk: ChunkNum
diff --git a/pr/2674/docs/iroh/blobs/get/request/fn.get_hash_seq_and_sizes.html b/pr/2674/docs/iroh/blobs/get/request/fn.get_hash_seq_and_sizes.html
index a75fa7f439..58a16bd92c 100644
--- a/pr/2674/docs/iroh/blobs/get/request/fn.get_hash_seq_and_sizes.html
+++ b/pr/2674/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

source ·
pub async fn get_hash_seq_and_sizes(
     connection: &Connection,
     hash: &Hash,
     max_size: u64
diff --git a/pr/2674/docs/iroh/blobs/get/request/fn.get_unverified_size.html b/pr/2674/docs/iroh/blobs/get/request/fn.get_unverified_size.html
index d949bf553b..ba7fb83290 100644
--- a/pr/2674/docs/iroh/blobs/get/request/fn.get_unverified_size.html
+++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/get/request/fn.get_verified_size.html b/pr/2674/docs/iroh/blobs/get/request/fn.get_verified_size.html index dd11092bab..753663a381 100644 --- a/pr/2674/docs/iroh/blobs/get/request/fn.get_verified_size.html +++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/get/request/fn.random_hash_seq_ranges.html b/pr/2674/docs/iroh/blobs/get/request/fn.random_hash_seq_ranges.html index 92cb2b4de5..348a85596a 100644 --- a/pr/2674/docs/iroh/blobs/get/request/fn.random_hash_seq_ranges.html +++ b/pr/2674/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

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 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/2674/docs/iroh/blobs/get/request/index.html b/pr/2674/docs/iroh/blobs/get/request/index.html index 8effc3b76a..4ceaa6529b 100644 --- a/pr/2674/docs/iroh/blobs/get/request/index.html +++ b/pr/2674/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

source ·
Expand description

Utilities for complex get requests.

Functions§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/get/struct.Stats.html b/pr/2674/docs/iroh/blobs/get/struct.Stats.html index 2dd1493d76..068c9172d5 100644 --- a/pr/2674/docs/iroh/blobs/get/struct.Stats.html +++ b/pr/2674/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

source ·
pub struct Stats {
     pub bytes_written: u64,
     pub bytes_read: u64,
     pub elapsed: Duration,
@@ -64,14 +64,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/hashseq/fn.parse_hash_seq.html b/pr/2674/docs/iroh/blobs/hashseq/fn.parse_hash_seq.html index 66cab3363f..93613c268c 100644 --- a/pr/2674/docs/iroh/blobs/hashseq/fn.parse_hash_seq.html +++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/hashseq/index.html b/pr/2674/docs/iroh/blobs/hashseq/index.html index 5b5ebe6043..6ff8d63bd2 100644 --- a/pr/2674/docs/iroh/blobs/hashseq/index.html +++ b/pr/2674/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

source ·
Expand description

traits related to collections of blobs

Structs§

Functions§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/hashseq/struct.HashSeq.html b/pr/2674/docs/iroh/blobs/hashseq/struct.HashSeq.html index 137bb6e62d..f1894476bf 100644 --- a/pr/2674/docs/iroh/blobs/hashseq/struct.HashSeq.html +++ b/pr/2674/docs/iroh/blobs/hashseq/struct.HashSeq.html @@ -1,4 +1,4 @@ -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.

+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.

@@ -51,14 +51,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/hashseq/struct.HashSeqIter.html b/pr/2674/docs/iroh/blobs/hashseq/struct.HashSeqIter.html index 03b20da7d7..30d18ba11d 100644 --- a/pr/2674/docs/iroh/blobs/hashseq/struct.HashSeqIter.html +++ b/pr/2674/docs/iroh/blobs/hashseq/struct.HashSeqIter.html @@ -1,4 +1,4 @@ -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.

+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>( &mut self ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where @@ -234,14 +234,7 @@ function. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<I> IntoIterator for I
where +

source§

impl<I> IntoIterator for I
where I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<I> IteratorExt for I
where I: Iterator,

source§

fn transpose_into_fallible<T, E>(self) -> Convert<I>
where I: Iterator<Item = Result<T, E>>,

Convert an iterator of Results into FallibleIterator by transposition

diff --git a/pr/2674/docs/iroh/blobs/hashseq/struct.HashSeqStream.html b/pr/2674/docs/iroh/blobs/hashseq/struct.HashSeqStream.html index 81a090ae89..31fcdf662b 100644 --- a/pr/2674/docs/iroh/blobs/hashseq/struct.HashSeqStream.html +++ b/pr/2674/docs/iroh/blobs/hashseq/struct.HashSeqStream.html @@ -1,4 +1,4 @@ -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

source ·
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.

@@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/index.html b/pr/2674/docs/iroh/blobs/index.html index 293a204e75..3f5aca1945 100644 --- a/pr/2674/docs/iroh/blobs/index.html +++ b/pr/2674/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

source ·
Expand description

Blobs layer for iroh.

The crate is designed to be used from the iroh crate, which provides a high level interface, but can also be used standalone.

diff --git a/pr/2674/docs/iroh/blobs/metrics/index.html b/pr/2674/docs/iroh/blobs/metrics/index.html index 9538244ccc..0efb265a18 100644 --- a/pr/2674/docs/iroh/blobs/metrics/index.html +++ b/pr/2674/docs/iroh/blobs/metrics/index.html @@ -1,2 +1,2 @@ -iroh::blobs::metrics - Rust

Module iroh::blobs::metrics

source ·
Expand description

Metrics for iroh-blobs

+iroh::blobs::metrics - Rust

Module iroh::blobs::metrics

source ·
Expand description

Metrics for iroh-blobs

Structs§

  • Enum of metrics for the module
\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/metrics/struct.Metrics.html b/pr/2674/docs/iroh/blobs/metrics/struct.Metrics.html index 8eee888d65..040ed9a3e3 100644 --- a/pr/2674/docs/iroh/blobs/metrics/struct.Metrics.html +++ b/pr/2674/docs/iroh/blobs/metrics/struct.Metrics.html @@ -1,4 +1,4 @@ -Metrics in iroh::blobs::metrics - Rust

Struct iroh::blobs::metrics::Metrics

source ·
pub struct Metrics {
+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,
@@ -58,14 +58,7 @@ Only records if this metric is registered in the global registry.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/protocol/constant.ALPN.html b/pr/2674/docs/iroh/blobs/protocol/constant.ALPN.html index b1f17a8c06..48176a5799 100644 --- a/pr/2674/docs/iroh/blobs/protocol/constant.ALPN.html +++ b/pr/2674/docs/iroh/blobs/protocol/constant.ALPN.html @@ -1,2 +1,2 @@ -ALPN in iroh::blobs::protocol - Rust

Constant iroh::blobs::protocol::ALPN

source ·
pub const ALPN: &'static [u8];
Expand description

The ALPN used with quic for the iroh bytes protocol.

+ALPN in iroh::blobs::protocol - Rust

Constant iroh::blobs::protocol::ALPN

source ·
pub const ALPN: &'static [u8];
Expand description

The ALPN used with quic for the iroh bytes protocol.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/protocol/constant.MAX_MESSAGE_SIZE.html b/pr/2674/docs/iroh/blobs/protocol/constant.MAX_MESSAGE_SIZE.html index 57ddb9095b..8d01638f16 100644 --- a/pr/2674/docs/iroh/blobs/protocol/constant.MAX_MESSAGE_SIZE.html +++ b/pr/2674/docs/iroh/blobs/protocol/constant.MAX_MESSAGE_SIZE.html @@ -1,2 +1,2 @@ -MAX_MESSAGE_SIZE in iroh::blobs::protocol - Rust

Constant iroh::blobs::protocol::MAX_MESSAGE_SIZE

source ·
pub const MAX_MESSAGE_SIZE: usize = _; // 104_857_600usize
Expand description

Maximum message size is limited to 100MiB for now.

+MAX_MESSAGE_SIZE in iroh::blobs::protocol - Rust

Constant iroh::blobs::protocol::MAX_MESSAGE_SIZE

source ·
pub const MAX_MESSAGE_SIZE: usize = _; // 104_857_600usize
Expand description

Maximum message size is limited to 100MiB for now.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/protocol/enum.Closed.html b/pr/2674/docs/iroh/blobs/protocol/enum.Closed.html index 0665a804bc..b43c3365a4 100644 --- a/pr/2674/docs/iroh/blobs/protocol/enum.Closed.html +++ b/pr/2674/docs/iroh/blobs/protocol/enum.Closed.html @@ -1,4 +1,4 @@ -Closed in iroh::blobs::protocol - Rust

Enum iroh::blobs::protocol::Closed

source ·
#[repr(u16)]
pub enum Closed { +Closed in iroh::blobs::protocol - Rust

Enum iroh::blobs::protocol::Closed

source ·
#[repr(u16)]
pub enum Closed { StreamDropped = 0, ProviderTerminating = 1, RequestReceived = 2, @@ -70,14 +70,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/protocol/enum.Request.html b/pr/2674/docs/iroh/blobs/protocol/enum.Request.html index 33a38a305b..a63a7a3cfb 100644 --- a/pr/2674/docs/iroh/blobs/protocol/enum.Request.html +++ b/pr/2674/docs/iroh/blobs/protocol/enum.Request.html @@ -1,4 +1,4 @@ -Request in iroh::blobs::protocol - Rust

Enum iroh::blobs::protocol::Request

source ·
pub enum Request {
+Request in iroh::blobs::protocol - Rust

Enum iroh::blobs::protocol::Request

source ·
pub enum Request {
     Get(GetRequest),
 }
Expand description

A request to the provider

Variants§

§

Get(GetRequest)

A get request for a blob or collection

@@ -59,14 +59,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/protocol/index.html b/pr/2674/docs/iroh/blobs/protocol/index.html index 145f2c075d..e8db782d85 100644 --- a/pr/2674/docs/iroh/blobs/protocol/index.html +++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/protocol/struct.GetRequest.html b/pr/2674/docs/iroh/blobs/protocol/struct.GetRequest.html index 60b8481c23..93565a41df 100644 --- a/pr/2674/docs/iroh/blobs/protocol/struct.GetRequest.html +++ b/pr/2674/docs/iroh/blobs/protocol/struct.GetRequest.html @@ -1,4 +1,4 @@ -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

source ·
pub struct GetRequest {
     pub hash: Hash,
     pub ranges: RangeSpecSeq,
 }
Expand description

A request

@@ -69,14 +69,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/protocol/struct.NonEmptyRequestRangeSpecIter.html b/pr/2674/docs/iroh/blobs/protocol/struct.NonEmptyRequestRangeSpecIter.html index 3b8fa64c3b..256baeff25 100644 --- a/pr/2674/docs/iroh/blobs/protocol/struct.NonEmptyRequestRangeSpecIter.html +++ b/pr/2674/docs/iroh/blobs/protocol/struct.NonEmptyRequestRangeSpecIter.html @@ -1,4 +1,4 @@ -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

source ·
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( &mut self @@ -221,14 +221,7 @@ function. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<I> IntoIterator for I
where +

source§

impl<I> IntoIterator for I
where I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<I> IteratorExt for I
where I: Iterator,

source§

fn transpose_into_fallible<T, E>(self) -> Convert<I>
where I: Iterator<Item = Result<T, E>>,

Convert an iterator of Results into FallibleIterator by transposition

diff --git a/pr/2674/docs/iroh/blobs/protocol/struct.RangeSpec.html b/pr/2674/docs/iroh/blobs/protocol/struct.RangeSpec.html index f3a54da5ea..e0b779e59c 100644 --- a/pr/2674/docs/iroh/blobs/protocol/struct.RangeSpec.html +++ b/pr/2674/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

source ·
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:

@@ -96,14 +96,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/protocol/struct.RangeSpecSeq.html b/pr/2674/docs/iroh/blobs/protocol/struct.RangeSpecSeq.html index 5b9f3ca82d..04a4d1726f 100644 --- a/pr/2674/docs/iroh/blobs/protocol/struct.RangeSpecSeq.html +++ b/pr/2674/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

source ·
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.

@@ -117,14 +117,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/protocol/struct.UnknownErrorCode.html b/pr/2674/docs/iroh/blobs/protocol/struct.UnknownErrorCode.html index f07c307308..69e819c68e 100644 --- a/pr/2674/docs/iroh/blobs/protocol/struct.UnknownErrorCode.html +++ b/pr/2674/docs/iroh/blobs/protocol/struct.UnknownErrorCode.html @@ -1,4 +1,4 @@ -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.

+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 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 @@ -41,14 +41,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/provider/enum.AddProgress.html b/pr/2674/docs/iroh/blobs/provider/enum.AddProgress.html index 7056636954..68163ce435 100644 --- a/pr/2674/docs/iroh/blobs/provider/enum.AddProgress.html +++ b/pr/2674/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

source ·
pub enum AddProgress {
     Found {
         id: u64,
         name: String,
@@ -84,14 +84,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/provider/enum.BatchAddPathProgress.html b/pr/2674/docs/iroh/blobs/provider/enum.BatchAddPathProgress.html index 7e5362fe53..3ca8b3d6d6 100644 --- a/pr/2674/docs/iroh/blobs/provider/enum.BatchAddPathProgress.html +++ b/pr/2674/docs/iroh/blobs/provider/enum.BatchAddPathProgress.html @@ -1,4 +1,4 @@ -BatchAddPathProgress in iroh::blobs::provider - Rust

Enum iroh::blobs::provider::BatchAddPathProgress

source ·
pub enum BatchAddPathProgress {
+BatchAddPathProgress in iroh::blobs::provider - Rust

Enum iroh::blobs::provider::BatchAddPathProgress

source ·
pub enum BatchAddPathProgress {
     Found {
         size: u64,
     },
@@ -67,14 +67,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/provider/enum.Event.html b/pr/2674/docs/iroh/blobs/provider/enum.Event.html index dbe3a13b02..56fb71fb3e 100644 --- a/pr/2674/docs/iroh/blobs/provider/enum.Event.html +++ b/pr/2674/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

source ·
pub enum Event {
     TaggedBlobAdded {
         hash: Hash,
         format: BlobFormat,
@@ -121,14 +121,7 @@ was aborted before any data was sent.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/provider/enum.SentStatus.html b/pr/2674/docs/iroh/blobs/provider/enum.SentStatus.html index 400528de23..a344f4a3d6 100644 --- a/pr/2674/docs/iroh/blobs/provider/enum.SentStatus.html +++ b/pr/2674/docs/iroh/blobs/provider/enum.SentStatus.html @@ -1,4 +1,4 @@ -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

source ·
pub enum SentStatus {
     Sent,
     NotFound,
 }
Expand description

Status of a send operation

@@ -54,14 +54,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/provider/fn.handle_connection.html b/pr/2674/docs/iroh/blobs/provider/fn.handle_connection.html index 6d30a262ba..2eb5753576 100644 --- a/pr/2674/docs/iroh/blobs/provider/fn.handle_connection.html +++ b/pr/2674/docs/iroh/blobs/provider/fn.handle_connection.html @@ -1,4 +1,4 @@ -handle_connection in iroh::blobs::provider - Rust

Function iroh::blobs::provider::handle_connection

source ·
pub async fn handle_connection<D>(
+handle_connection in iroh::blobs::provider - Rust

Function iroh::blobs::provider::handle_connection

source ·
pub async fn handle_connection<D>(
     connection: Connection,
     db: D,
     events: EventSender,
diff --git a/pr/2674/docs/iroh/blobs/provider/fn.handle_get.html b/pr/2674/docs/iroh/blobs/provider/fn.handle_get.html
index 2c162ce9d8..c7625f32f0 100644
--- a/pr/2674/docs/iroh/blobs/provider/fn.handle_get.html
+++ b/pr/2674/docs/iroh/blobs/provider/fn.handle_get.html
@@ -1,4 +1,4 @@
-handle_get in iroh::blobs::provider - Rust

Function iroh::blobs::provider::handle_get

source ·
pub async fn handle_get<D>(
+handle_get in iroh::blobs::provider - Rust

Function iroh::blobs::provider::handle_get

source ·
pub async fn handle_get<D>(
     db: D,
     request: GetRequest,
     writer: ResponseWriter
diff --git a/pr/2674/docs/iroh/blobs/provider/fn.read_request.html b/pr/2674/docs/iroh/blobs/provider/fn.read_request.html
index 245091ad6a..834ea5f4ab 100644
--- a/pr/2674/docs/iroh/blobs/provider/fn.read_request.html
+++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/provider/fn.send_blob.html b/pr/2674/docs/iroh/blobs/provider/fn.send_blob.html index 2b47f7bb28..3aa1d28069 100644 --- a/pr/2674/docs/iroh/blobs/provider/fn.send_blob.html +++ b/pr/2674/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

source ·
pub async fn send_blob<D, W>(
     db: &D,
     hash: Hash,
     ranges: &RangeSpec,
diff --git a/pr/2674/docs/iroh/blobs/provider/index.html b/pr/2674/docs/iroh/blobs/provider/index.html
index e7d2a3cd4b..c7a5b3cbc4 100644
--- a/pr/2674/docs/iroh/blobs/provider/index.html
+++ b/pr/2674/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

source ·
Expand description

The server side API

Structs§

  • A sender for events related to blob transfers.
  • A helper struct that combines a quinn::SendStream with auxiliary information
  • The stats for a transfer of a collection or blob.

Enums§

Traits§

Functions§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/provider/struct.EventSender.html b/pr/2674/docs/iroh/blobs/provider/struct.EventSender.html index 0873be840c..ae44698ff4 100644 --- a/pr/2674/docs/iroh/blobs/provider/struct.EventSender.html +++ b/pr/2674/docs/iroh/blobs/provider/struct.EventSender.html @@ -1,4 +1,4 @@ -EventSender in iroh::blobs::provider - Rust

Struct iroh::blobs::provider::EventSender

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

A sender for events related to blob transfers.

+EventSender in iroh::blobs::provider - Rust

Struct iroh::blobs::provider::EventSender

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

A sender for events related to blob transfers.

The sender is disabled by default.

Implementations§

source§

impl EventSender

source

pub fn new(inner: Option<Arc<dyn CustomEventSender>>) -> EventSender

Create a new event sender.

source

pub async fn send(&self, event: impl FnOnce() -> Event)

Send an event.

@@ -54,14 +54,7 @@ self-contained progress updates.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/provider/struct.ResponseWriter.html b/pr/2674/docs/iroh/blobs/provider/struct.ResponseWriter.html index 45d5a116ee..436e2facca 100644 --- a/pr/2674/docs/iroh/blobs/provider/struct.ResponseWriter.html +++ b/pr/2674/docs/iroh/blobs/provider/struct.ResponseWriter.html @@ -1,4 +1,4 @@ -ResponseWriter in iroh::blobs::provider - Rust

Struct iroh::blobs::provider::ResponseWriter

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

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

+ResponseWriter in iroh::blobs::provider - Rust

Struct iroh::blobs::provider::ResponseWriter

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

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

Trait Implementations§

source§

impl Debug for ResponseWriter

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where 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 @@ -41,14 +41,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/provider/struct.TransferStats.html b/pr/2674/docs/iroh/blobs/provider/struct.TransferStats.html index fcc36d1c8d..73ccbdcfe0 100644 --- a/pr/2674/docs/iroh/blobs/provider/struct.TransferStats.html +++ b/pr/2674/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

source ·
pub struct TransferStats {
     pub send: StreamWriterStats,
     pub read: SliceReaderStats,
     pub duration: Duration,
@@ -50,14 +50,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/provider/trait.CustomEventSender.html b/pr/2674/docs/iroh/blobs/provider/trait.CustomEventSender.html index f489658a16..52d1a0dd8e 100644 --- a/pr/2674/docs/iroh/blobs/provider/trait.CustomEventSender.html +++ b/pr/2674/docs/iroh/blobs/provider/trait.CustomEventSender.html @@ -1,4 +1,4 @@ -CustomEventSender in iroh::blobs::provider - Rust

Trait iroh::blobs::provider::CustomEventSender

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

Trait iroh::blobs::provider::CustomEventSender

source ·
pub trait CustomEventSender: Debug + Sync + Send + 'static {
     // Required methods
     fn send(&self, event: Event) -> Pin<Box<dyn Future<Output = ()> + Send>>;
     fn try_send(&self, event: Event);
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/constant.KEY_LEN.html b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/constant.KEY_LEN.html
index ac291329da..6061b65b07 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/constant.KEY_LEN.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/constant.KEY_LEN.html
@@ -1,2 +1,2 @@
-KEY_LEN in iroh::blobs::store::bao_tree::blake3 - Rust

Constant iroh::blobs::store::bao_tree::blake3::KEY_LEN

pub const KEY_LEN: usize = 32; // 32usize
Expand description

The number of bytes in a key, 32.

+KEY_LEN in iroh::blobs::store::bao_tree::blake3 - Rust

Constant iroh::blobs::store::bao_tree::blake3::KEY_LEN

pub const KEY_LEN: usize = 32; // 32usize
Expand description

The number of bytes in a key, 32.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/constant.OUT_LEN.html b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/constant.OUT_LEN.html index 626ce6a2ce..583c46b22c 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/constant.OUT_LEN.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/constant.OUT_LEN.html @@ -1,2 +1,2 @@ -OUT_LEN in iroh::blobs::store::bao_tree::blake3 - Rust

Constant iroh::blobs::store::bao_tree::blake3::OUT_LEN

pub const OUT_LEN: usize = 32; // 32usize
Expand description

The number of bytes in a Hash, 32.

+OUT_LEN in iroh::blobs::store::bao_tree::blake3 - Rust

Constant iroh::blobs::store::bao_tree::blake3::OUT_LEN

pub const OUT_LEN: usize = 32; // 32usize
Expand description

The number of bytes in a Hash, 32.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/fn.derive_key.html b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/fn.derive_key.html index f1e80d4b5b..bf268f6bdf 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/fn.derive_key.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/fn.derive_key.html @@ -1,4 +1,4 @@ -derive_key in iroh::blobs::store::bao_tree::blake3 - Rust

Function iroh::blobs::store::bao_tree::blake3::derive_key

pub fn derive_key(context: &str, key_material: &[u8]) -> [u8; 32]
Expand description

The key derivation function.

+derive_key in iroh::blobs::store::bao_tree::blake3 - Rust

Function iroh::blobs::store::bao_tree::blake3::derive_key

pub fn derive_key(context: &str, key_material: &[u8]) -> [u8; 32]
Expand description

The key derivation function.

Given cryptographic key material of any length and a context string of any length, this function outputs a 32-byte derived subkey. The context string should be hardcoded, globally unique, and application-specific. A good diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/fn.hash.html b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/fn.hash.html index 6341302d43..4d25e55cef 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/fn.hash.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/fn.hash.html @@ -1,4 +1,4 @@ -hash in iroh::blobs::store::bao_tree::blake3 - Rust

Function iroh::blobs::store::bao_tree::blake3::hash

pub fn hash(input: &[u8]) -> Hash
Expand description

The default hash function.

+hash in iroh::blobs::store::bao_tree::blake3 - Rust

Function iroh::blobs::store::bao_tree::blake3::hash

pub fn hash(input: &[u8]) -> Hash
Expand description

The default hash function.

For an incremental version that accepts multiple writes, see Hasher::update.

For output sizes other than 32 bytes, see Hasher::finalize_xof and diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/fn.keyed_hash.html b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/fn.keyed_hash.html index efdff0d8b9..d3ffc61f72 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/fn.keyed_hash.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/fn.keyed_hash.html @@ -1,4 +1,4 @@ -keyed_hash in iroh::blobs::store::bao_tree::blake3 - Rust

Function iroh::blobs::store::bao_tree::blake3::keyed_hash

pub fn keyed_hash(key: &[u8; 32], input: &[u8]) -> Hash
Expand description

The keyed hash function.

+keyed_hash in iroh::blobs::store::bao_tree::blake3 - Rust

Function iroh::blobs::store::bao_tree::blake3::keyed_hash

pub fn keyed_hash(key: &[u8; 32], input: &[u8]) -> Hash
Expand description

The keyed hash function.

This is suitable for use as a message authentication code, for example to replace an HMAC instance. In that use case, the constant-time equality checking provided by Hash is almost always a security diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/index.html b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/index.html index 5d4d0142f3..66f463bf34 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/index.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/index.html @@ -1,4 +1,4 @@ -iroh::blobs::store::bao_tree::blake3 - Rust

Crate iroh::blobs::store::bao_tree::blake3

Expand description

The official Rust implementation of the BLAKE3 cryptographic hash +iroh::blobs::store::bao_tree::blake3 - Rust

Crate iroh::blobs::store::bao_tree::blake3

Expand description

The official Rust implementation of the BLAKE3 cryptographic hash function.

§Examples

// Hash an input all at once.
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/struct.Hash.html b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/struct.Hash.html
index f174e39329..f4db7e3d50 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/struct.Hash.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/struct.Hash.html
@@ -1,4 +1,4 @@
-Hash in iroh::blobs::store::bao_tree::blake3 - Rust

Struct iroh::blobs::store::bao_tree::blake3::Hash

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

An output of the default size, 32 bytes, which provides constant-time +Hash in iroh::blobs::store::bao_tree::blake3 - Rust

Struct iroh::blobs::store::bao_tree::blake3::Hash

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

An output of the default size, 32 bytes, which provides constant-time equality checking.

Hash implements From and Into for [u8; 32], and it provides from_bytes and as_bytes for explicit conversions between itself and @@ -27,7 +27,7 @@ results in an error. An input length other than 64 also results in an error.

Note that Hash also implements FromStr, so Hash::from_hex("...") is equivalent to "...".parse().

-

Trait Implementations§

§

impl Clone for Hash

§

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
§

impl Debug for Hash

§

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

Formats the value using the given formatter. Read more
§

impl Display for Hash

§

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

Formats the value using the given formatter. Read more
§

impl From<[u8; 32]> for Hash

§

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

Converts to this type from the input type.
§

impl From<Hash> for [u8; 32]

§

fn from(hash: 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 FromStr for Hash

§

type Err = HexError

The associated error which can be returned from parsing.
§

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

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

impl Hash for Hash

§

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

Trait Implementations§

§

impl Clone for Hash

§

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
§

impl Debug for Hash

§

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

Formats the value using the given formatter. Read more
§

impl Display for Hash

§

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

Formats the value using the given formatter. Read more
§

impl From<[u8; 32]> for Hash

§

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

Converts to this type from the input type.
§

impl From<Hash> for [u8; 32]

§

fn from(hash: 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 FromStr for Hash

§

type Err = HexError

The associated error which can be returned from parsing.
§

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

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

impl Hash for Hash

§

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 PartialEq<[u8]> for Hash

This implementation is constant-time if the target is 32 bytes long.

@@ -87,14 +87,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/struct.Hasher.html b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/struct.Hasher.html index 1f0f1bdcd0..69732f04cf 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/struct.Hasher.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/struct.Hasher.html @@ -1,4 +1,4 @@ -Hasher in iroh::blobs::store::bao_tree::blake3 - Rust

Struct iroh::blobs::store::bao_tree::blake3::Hasher

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

An incremental hash state that can accept any number of writes.

+Hasher in iroh::blobs::store::bao_tree::blake3 - Rust

Struct iroh::blobs::store::bao_tree::blake3::Hasher

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

An incremental hash state that can accept any number of writes.

When the traits-preview Cargo feature is enabled, this type implements several commonly used traits from the digest crate. However, those @@ -103,14 +103,7 @@ encountered. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/struct.HexError.html b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/struct.HexError.html index cd57ffa766..7b02e83a46 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/struct.HexError.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/struct.HexError.html @@ -1,4 +1,4 @@ -HexError in iroh::blobs::store::bao_tree::blake3 - Rust

Struct iroh::blobs::store::bao_tree::blake3::HexError

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

The error type for Hash::from_hex.

+HexError in iroh::blobs::store::bao_tree::blake3 - Rust

Struct iroh::blobs::store::bao_tree::blake3::HexError

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

The error type for Hash::from_hex.

The .to_string() representation of this error currently distinguishes between bad length errors and bad character errors. This is to help with logging and debugging, but it isn’t a stable API detail, and it may change at any time.

@@ -46,14 +46,7 @@ stable API detail, and it may change at any time.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/struct.OutputReader.html b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/struct.OutputReader.html index 5cb8b2a1a5..d64fa10b57 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/struct.OutputReader.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/blake3/struct.OutputReader.html @@ -1,4 +1,4 @@ -OutputReader in iroh::blobs::store::bao_tree::blake3 - Rust

Struct iroh::blobs::store::bao_tree::blake3::OutputReader

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

An incremental reader for extended output, returned by +OutputReader in iroh::blobs::store::bao_tree::blake3 - Rust

Struct iroh::blobs::store::bao_tree::blake3::OutputReader

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

An incremental reader for extended output, returned by Hasher::finalize_xof.

Shorter BLAKE3 outputs are prefixes of longer ones, and explicitly requesting a short output is equivalent to truncating the default-length output. Note that this is a difference between @@ -87,14 +87,7 @@ implementation. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/enum.PostOrderOffset.html b/pr/2674/docs/iroh/blobs/store/bao_tree/enum.PostOrderOffset.html index e4246a43b8..084086226c 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/enum.PostOrderOffset.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/enum.PostOrderOffset.html @@ -1,4 +1,4 @@ -PostOrderOffset in iroh::blobs::store::bao_tree - Rust

Enum iroh::blobs::store::bao_tree::PostOrderOffset

pub enum PostOrderOffset {
+PostOrderOffset in iroh::blobs::store::bao_tree - Rust

Enum iroh::blobs::store::bao_tree::PostOrderOffset

pub enum PostOrderOffset {
     Stable(u64),
     Unstable(u64),
 }
Expand description

An offset of a node in a post-order outboard

@@ -49,14 +49,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/index.html b/pr/2674/docs/iroh/blobs/store/bao_tree/index.html index 0f48fb78cc..b69632b985 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/index.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/index.html @@ -1,4 +1,4 @@ -iroh::blobs::store::bao_tree - Rust

Crate iroh::blobs::store::bao_tree

Expand description

§Efficient BLAKE3 based verified streaming

+iroh::blobs::store::bao_tree - Rust

Crate iroh::blobs::store::bao_tree

Expand description

§Efficient BLAKE3 based verified streaming

This crate is similar to the bao crate, but takes a slightly different approach.

The core struct is BaoTree, which describes the geometry of the tree and diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/enum.BaoContentItem.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/enum.BaoContentItem.html index f172121cd7..18918cd546 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/enum.BaoContentItem.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/enum.BaoContentItem.html @@ -1,4 +1,4 @@ -BaoContentItem in iroh::blobs::store::bao_tree::io - Rust

Enum iroh::blobs::store::bao_tree::io::BaoContentItem

pub enum BaoContentItem {
+BaoContentItem in iroh::blobs::store::bao_tree::io - Rust

Enum iroh::blobs::store::bao_tree::io::BaoContentItem

pub enum BaoContentItem {
     Parent(Parent),
     Leaf(Leaf),
 }
Expand description

A content item for the bao streaming protocol.

@@ -48,14 +48,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/enum.DecodeError.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/enum.DecodeError.html index b167945911..5395930819 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/enum.DecodeError.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/enum.DecodeError.html @@ -1,4 +1,4 @@ -DecodeError in iroh::blobs::store::bao_tree::io - Rust

Enum iroh::blobs::store::bao_tree::io::DecodeError

pub enum DecodeError {
+DecodeError in iroh::blobs::store::bao_tree::io - Rust

Enum iroh::blobs::store::bao_tree::io::DecodeError

pub enum DecodeError {
     ParentNotFound(TreeNode),
     LeafNotFound(ChunkNum),
     ParentHashMismatch(TreeNode),
@@ -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
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 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 @@ -52,14 +52,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/enum.EncodeError.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/enum.EncodeError.html index 1713479c41..022aeddca8 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/enum.EncodeError.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/enum.EncodeError.html @@ -1,4 +1,4 @@ -EncodeError in iroh::blobs::store::bao_tree::io - Rust

Enum iroh::blobs::store::bao_tree::io::EncodeError

pub enum EncodeError {
+EncodeError in iroh::blobs::store::bao_tree::io - Rust

Enum iroh::blobs::store::bao_tree::io::EncodeError

pub enum EncodeError {
     ParentHashMismatch(TreeNode),
     LeafHashMismatch(ChunkNum),
     ParentWrite(TreeNode),
@@ -57,14 +57,7 @@ the error will indicate which parent or chunk we were writing at the time.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fn.full_chunk_groups.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fn.full_chunk_groups.html index 1516b23b09..3f81424d7d 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fn.full_chunk_groups.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fn.full_chunk_groups.html @@ -1,4 +1,4 @@ -full_chunk_groups in iroh::blobs::store::bao_tree::io - Rust

Function iroh::blobs::store::bao_tree::io::full_chunk_groups

pub fn full_chunk_groups(
+full_chunk_groups in iroh::blobs::store::bao_tree::io - Rust

Function iroh::blobs::store::bao_tree::io::full_chunk_groups

pub fn full_chunk_groups(
     ranges: &RangeSet<[ChunkNum; 2]>,
     block_size: BlockSize
 ) -> RangeSet<[ChunkNum; 2]>
Expand description

Given a range set of byte ranges, round it up to chunk groups.

diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fn.round_up_to_chunks.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fn.round_up_to_chunks.html index 6937c3905d..c433f2420c 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fn.round_up_to_chunks.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fn.round_up_to_chunks.html @@ -1,3 +1,3 @@ -round_up_to_chunks in iroh::blobs::store::bao_tree::io - Rust

Function iroh::blobs::store::bao_tree::io::round_up_to_chunks

pub fn round_up_to_chunks(ranges: &RangeSetRef<u64>) -> RangeSet<[ChunkNum; 2]>
Expand description

Given a range set of byte ranges, round it up to full chunks.

+round_up_to_chunks in iroh::blobs::store::bao_tree::io - Rust

Function iroh::blobs::store::bao_tree::io::round_up_to_chunks

pub fn round_up_to_chunks(ranges: &RangeSetRef<u64>) -> RangeSet<[ChunkNum; 2]>
Expand description

Given a range set of byte ranges, round it up to full chunks.

E.g. a byte range from 1..3 will be converted into the chunk range 0..1 (0..1024 bytes).

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/enum.BaoContentItem.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/enum.BaoContentItem.html index db7dbf8607..ecc8d00ec1 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/enum.BaoContentItem.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/enum.BaoContentItem.html @@ -1,4 +1,4 @@ -BaoContentItem in iroh::blobs::store::bao_tree::io::fsm - Rust

Enum iroh::blobs::store::bao_tree::io::fsm::BaoContentItem

pub enum BaoContentItem {
+BaoContentItem in iroh::blobs::store::bao_tree::io::fsm - Rust

Enum iroh::blobs::store::bao_tree::io::fsm::BaoContentItem

pub enum BaoContentItem {
     Parent(Parent),
     Leaf(Leaf),
 }
Expand description

A content item for the bao streaming protocol.

@@ -48,14 +48,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/enum.ResponseDecoderNext.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/enum.ResponseDecoderNext.html index 0278e9922b..c9eaf4cb25 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/enum.ResponseDecoderNext.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/enum.ResponseDecoderNext.html @@ -1,4 +1,4 @@ -ResponseDecoderNext in iroh::blobs::store::bao_tree::io::fsm - Rust

Enum iroh::blobs::store::bao_tree::io::fsm::ResponseDecoderNext

pub enum ResponseDecoderNext<R> {
+ResponseDecoderNext in iroh::blobs::store::bao_tree::io::fsm - Rust

Enum iroh::blobs::store::bao_tree::io::fsm::ResponseDecoderNext

pub enum ResponseDecoderNext<R> {
     More((ResponseDecoder<R>, Result<BaoContentItem, DecodeError>)),
     Done(R),
 }
Expand description

Next type for ResponseDecoder.

@@ -50,14 +50,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.copy.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.copy.html index 42238a9d8e..740c72e72c 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.copy.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.copy.html @@ -1,4 +1,4 @@ -copy in iroh::blobs::store::bao_tree::io::fsm - Rust

Function iroh::blobs::store::bao_tree::io::fsm::copy

pub async fn copy(
+copy in iroh::blobs::store::bao_tree::io::fsm - Rust

Function iroh::blobs::store::bao_tree::io::fsm::copy

pub async fn copy(
     from: impl Outboard,
     to: impl OutboardMut
 ) -> Result<(), Error>
Expand description

Copy an outboard to another outboard.

diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.decode_ranges.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.decode_ranges.html index c9690c9d36..a780653b92 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.decode_ranges.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.decode_ranges.html @@ -1,4 +1,4 @@ -decode_ranges in iroh::blobs::store::bao_tree::io::fsm - Rust

Function iroh::blobs::store::bao_tree::io::fsm::decode_ranges

pub async fn decode_ranges<R, O, W>(
+decode_ranges in iroh::blobs::store::bao_tree::io::fsm - Rust

Function iroh::blobs::store::bao_tree::io::fsm::decode_ranges

pub async fn decode_ranges<R, O, W>(
     encoded: R,
     ranges: RangeSet<[ChunkNum; 2]>,
     target: W,
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.encode_ranges.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.encode_ranges.html
index e69c936746..0a61e20164 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.encode_ranges.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.encode_ranges.html
@@ -1,4 +1,4 @@
-encode_ranges in iroh::blobs::store::bao_tree::io::fsm - Rust

Function iroh::blobs::store::bao_tree::io::fsm::encode_ranges

pub async fn encode_ranges<D, O, W>(
+encode_ranges in iroh::blobs::store::bao_tree::io::fsm - Rust

Function iroh::blobs::store::bao_tree::io::fsm::encode_ranges

pub async fn encode_ranges<D, O, W>(
     data: D,
     outboard: O,
     ranges: &RangeSetRef<ChunkNum>,
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.encode_ranges_validated.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.encode_ranges_validated.html
index 247976b805..72dbc50796 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.encode_ranges_validated.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.encode_ranges_validated.html
@@ -1,4 +1,4 @@
-encode_ranges_validated in iroh::blobs::store::bao_tree::io::fsm - Rust

Function iroh::blobs::store::bao_tree::io::fsm::encode_ranges_validated

pub async fn encode_ranges_validated<D, O, W>(
+encode_ranges_validated in iroh::blobs::store::bao_tree::io::fsm - Rust

Function iroh::blobs::store::bao_tree::io::fsm::encode_ranges_validated

pub async fn encode_ranges_validated<D, O, W>(
     data: D,
     outboard: O,
     ranges: &RangeSetRef<ChunkNum>,
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.outboard.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.outboard.html
index 05da42571e..f3ada2a2e8 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.outboard.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.outboard.html
@@ -1,4 +1,4 @@
-outboard in iroh::blobs::store::bao_tree::io::fsm - Rust

Function iroh::blobs::store::bao_tree::io::fsm::outboard

pub async fn outboard(
+outboard in iroh::blobs::store::bao_tree::io::fsm - Rust

Function iroh::blobs::store::bao_tree::io::fsm::outboard

pub async fn outboard(
     data: impl AsyncStreamReader,
     tree: BaoTree,
     outboard: impl OutboardMut
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.outboard_post_order.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.outboard_post_order.html
index b252da03fd..85682f15c8 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.outboard_post_order.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.outboard_post_order.html
@@ -1,4 +1,4 @@
-outboard_post_order in iroh::blobs::store::bao_tree::io::fsm - Rust

Function iroh::blobs::store::bao_tree::io::fsm::outboard_post_order

pub async fn outboard_post_order(
+outboard_post_order in iroh::blobs::store::bao_tree::io::fsm - Rust

Function iroh::blobs::store::bao_tree::io::fsm::outboard_post_order

pub async fn outboard_post_order(
     data: impl AsyncStreamReader,
     tree: BaoTree,
     outboard: impl AsyncStreamWriter
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.valid_outboard_ranges.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.valid_outboard_ranges.html
index 197a0f14e4..682785e541 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.valid_outboard_ranges.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.valid_outboard_ranges.html
@@ -1,4 +1,4 @@
-valid_outboard_ranges in iroh::blobs::store::bao_tree::io::fsm - Rust

Function iroh::blobs::store::bao_tree::io::fsm::valid_outboard_ranges

pub fn valid_outboard_ranges<'a, O>(
+valid_outboard_ranges in iroh::blobs::store::bao_tree::io::fsm - Rust

Function iroh::blobs::store::bao_tree::io::fsm::valid_outboard_ranges

pub fn valid_outboard_ranges<'a, O>(
     outboard: O,
     ranges: &'a RangeSetRef<ChunkNum>
 ) -> impl Stream<Item = Result<Range<ChunkNum>, Error>> + 'a
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.valid_ranges.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.valid_ranges.html index 7532d97b9a..e4be2ef7fc 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.valid_ranges.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/fn.valid_ranges.html @@ -1,4 +1,4 @@ -valid_ranges in iroh::blobs::store::bao_tree::io::fsm - Rust

Function iroh::blobs::store::bao_tree::io::fsm::valid_ranges

pub fn valid_ranges<'a, O, D>(
+valid_ranges in iroh::blobs::store::bao_tree::io::fsm - Rust

Function iroh::blobs::store::bao_tree::io::fsm::valid_ranges

pub fn valid_ranges<'a, O, D>(
     outboard: O,
     data: D,
     ranges: &'a RangeSetRef<ChunkNum>
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/index.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/index.html
index 7f995e1885..d3396f8270 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/index.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/index.html
@@ -1,4 +1,4 @@
-iroh::blobs::store::bao_tree::io::fsm - Rust

Module iroh::blobs::store::bao_tree::io::fsm

Expand description

Async io, written in fsm style

+iroh::blobs::store::bao_tree::io::fsm - Rust

Module iroh::blobs::store::bao_tree::io::fsm

Expand description

Async io, written in fsm style

IO ops are written as async state machines that thread the state through the futures to avoid being encumbered by lifetimes.

This makes them occasionally a bit verbose to use, but allows being generic diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/struct.ResponseDecoder.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/struct.ResponseDecoder.html index 80222aee90..aa95cd7036 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/struct.ResponseDecoder.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/struct.ResponseDecoder.html @@ -1,4 +1,4 @@ -ResponseDecoder in iroh::blobs::store::bao_tree::io::fsm - Rust

Struct iroh::blobs::store::bao_tree::io::fsm::ResponseDecoder

pub struct ResponseDecoder<R>(/* private fields */);
Expand description

Response decoder

+ResponseDecoder in iroh::blobs::store::bao_tree::io::fsm - Rust

Struct iroh::blobs::store::bao_tree::io::fsm::ResponseDecoder

pub struct ResponseDecoder<R>(/* private fields */);
Expand description

Response decoder

Implementations§

§

impl<R> ResponseDecoder<R>
where R: AsyncStreamReader,

pub fn new( hash: Hash, @@ -58,14 +58,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceReader.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceReader.html index ad3cb3e818..0d9dc6b9cc 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceReader.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceReader.html @@ -1,4 +1,4 @@ -AsyncSliceReader in iroh::blobs::store::bao_tree::io::fsm - Rust

Trait iroh::blobs::store::bao_tree::io::fsm::AsyncSliceReader

pub trait AsyncSliceReader {
+AsyncSliceReader in iroh::blobs::store::bao_tree::io::fsm - Rust

Trait iroh::blobs::store::bao_tree::io::fsm::AsyncSliceReader

pub trait AsyncSliceReader {
     // Required methods
     fn read_at(
         &mut self,
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceWriter.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceWriter.html
index d23c9ea796..31d3daba6e 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceWriter.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceWriter.html
@@ -1,4 +1,4 @@
-AsyncSliceWriter in iroh::blobs::store::bao_tree::io::fsm - Rust

Trait iroh::blobs::store::bao_tree::io::fsm::AsyncSliceWriter

pub trait AsyncSliceWriter: Sized {
+AsyncSliceWriter in iroh::blobs::store::bao_tree::io::fsm - Rust

Trait iroh::blobs::store::bao_tree::io::fsm::AsyncSliceWriter

pub trait AsyncSliceWriter: Sized {
     // Required methods
     fn write_at(
         &mut self,
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.CreateOutboard.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.CreateOutboard.html
index 1dc7418f71..94a1f2b86f 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.CreateOutboard.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.CreateOutboard.html
@@ -1,4 +1,4 @@
-CreateOutboard in iroh::blobs::store::bao_tree::io::fsm - Rust

Trait iroh::blobs::store::bao_tree::io::fsm::CreateOutboard

pub trait CreateOutboard {
+CreateOutboard in iroh::blobs::store::bao_tree::io::fsm - Rust

Trait iroh::blobs::store::bao_tree::io::fsm::CreateOutboard

pub trait CreateOutboard {
     // Required methods
     fn create_sized(
         data: impl AsyncStreamReader,
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.Outboard.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.Outboard.html
index 16f078838a..2818d6db45 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.Outboard.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.Outboard.html
@@ -1,4 +1,4 @@
-Outboard in iroh::blobs::store::bao_tree::io::fsm - Rust

Trait iroh::blobs::store::bao_tree::io::fsm::Outboard

pub trait Outboard {
+Outboard in iroh::blobs::store::bao_tree::io::fsm - Rust

Trait iroh::blobs::store::bao_tree::io::fsm::Outboard

pub trait Outboard {
     // Required methods
     fn root(&self) -> Hash;
     fn tree(&self) -> BaoTree;
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.OutboardMut.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.OutboardMut.html
index 159bf5193c..b3dc6ef928 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.OutboardMut.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/fsm/trait.OutboardMut.html
@@ -1,4 +1,4 @@
-OutboardMut in iroh::blobs::store::bao_tree::io::fsm - Rust

Trait iroh::blobs::store::bao_tree::io::fsm::OutboardMut

pub trait OutboardMut: Sized {
+OutboardMut in iroh::blobs::store::bao_tree::io::fsm - Rust

Trait iroh::blobs::store::bao_tree::io::fsm::OutboardMut

pub trait OutboardMut: Sized {
     // Required methods
     fn save(
         &mut self,
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/index.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/index.html
index 65b9f3ae61..2948453b9a 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/index.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/index.html
@@ -1,2 +1,2 @@
-iroh::blobs::store::bao_tree::io - Rust

Module iroh::blobs::store::bao_tree::io

Expand description

Implementation of bao streaming for std io and tokio io

+iroh::blobs::store::bao_tree::io - Rust

Module iroh::blobs::store::bao_tree::io

Expand description

Implementation of bao streaming for std io and tokio io

Modules§

  • Async io, written in fsm style
  • Implementations of the outboard traits
  • Sync IO operations

Structs§

Enums§

  • A content item for the bao streaming protocol.
  • Error when decoding from a reader, after the size has been read
  • Error when encoding from outboard and data

Functions§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/index.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/index.html index 0424f93d55..3d88e8d95e 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/index.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/index.html @@ -1,4 +1,4 @@ -iroh::blobs::store::bao_tree::io::outboard - Rust

Module iroh::blobs::store::bao_tree::io::outboard

Expand description

Implementations of the outboard traits

+iroh::blobs::store::bao_tree::io::outboard - Rust

Module iroh::blobs::store::bao_tree::io::outboard

Expand description

Implementations of the outboard traits

A number of implementations for the sync and async outboard traits are provided. Implementations for in-memory outboards, for outboards where the data resides on disk, and a special implementation EmptyOutboard that just ignores all writes.

diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.EmptyOutboard.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.EmptyOutboard.html index 9ca348eafb..08e91c6bc8 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.EmptyOutboard.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.EmptyOutboard.html @@ -1,4 +1,4 @@ -EmptyOutboard in iroh::blobs::store::bao_tree::io::outboard - Rust

Struct iroh::blobs::store::bao_tree::io::outboard::EmptyOutboard

pub struct EmptyOutboard {
+EmptyOutboard in iroh::blobs::store::bao_tree::io::outboard - Rust

Struct iroh::blobs::store::bao_tree::io::outboard::EmptyOutboard

pub struct EmptyOutboard {
     pub tree: BaoTree,
     pub root: Hash,
 }
Expand description

An empty outboard, that just returns 0 hashes for all nodes.

@@ -51,14 +51,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.PostOrderMemOutboard.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.PostOrderMemOutboard.html index 59250329ef..7ce1aba665 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.PostOrderMemOutboard.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.PostOrderMemOutboard.html @@ -1,4 +1,4 @@ -PostOrderMemOutboard in iroh::blobs::store::bao_tree::io::outboard - Rust

Struct iroh::blobs::store::bao_tree::io::outboard::PostOrderMemOutboard

pub struct PostOrderMemOutboard<T = Vec<u8>> {
+PostOrderMemOutboard in iroh::blobs::store::bao_tree::io::outboard - Rust

Struct iroh::blobs::store::bao_tree::io::outboard::PostOrderMemOutboard

pub struct PostOrderMemOutboard<T = Vec<u8>> {
     pub root: Hash,
     pub tree: BaoTree,
     pub data: T,
@@ -93,14 +93,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.PostOrderOutboard.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.PostOrderOutboard.html index f7d3ed2286..9f7df8bbfb 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.PostOrderOutboard.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.PostOrderOutboard.html @@ -1,4 +1,4 @@ -PostOrderOutboard in iroh::blobs::store::bao_tree::io::outboard - Rust

Struct iroh::blobs::store::bao_tree::io::outboard::PostOrderOutboard

pub struct PostOrderOutboard<D = Vec<u8>> {
+PostOrderOutboard in iroh::blobs::store::bao_tree::io::outboard - Rust

Struct iroh::blobs::store::bao_tree::io::outboard::PostOrderOutboard

pub struct PostOrderOutboard<D = Vec<u8>> {
     pub root: Hash,
     pub tree: BaoTree,
     pub data: D,
@@ -92,14 +92,7 @@ tree and only init the data and set the root hash. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.PreOrderMemOutboard.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.PreOrderMemOutboard.html index 6b4eb49b65..d347b91100 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.PreOrderMemOutboard.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.PreOrderMemOutboard.html @@ -1,4 +1,4 @@ -PreOrderMemOutboard in iroh::blobs::store::bao_tree::io::outboard - Rust

Struct iroh::blobs::store::bao_tree::io::outboard::PreOrderMemOutboard

pub struct PreOrderMemOutboard<T = Vec<u8>> {
+PreOrderMemOutboard in iroh::blobs::store::bao_tree::io::outboard - Rust

Struct iroh::blobs::store::bao_tree::io::outboard::PreOrderMemOutboard

pub struct PreOrderMemOutboard<T = Vec<u8>> {
     pub root: Hash,
     pub tree: BaoTree,
     pub data: T,
@@ -88,14 +88,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.PreOrderOutboard.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.PreOrderOutboard.html index 5b1fda55af..599249dc97 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.PreOrderOutboard.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/outboard/struct.PreOrderOutboard.html @@ -1,4 +1,4 @@ -PreOrderOutboard in iroh::blobs::store::bao_tree::io::outboard - Rust

Struct iroh::blobs::store::bao_tree::io::outboard::PreOrderOutboard

pub struct PreOrderOutboard<D = Vec<u8>> {
+PreOrderOutboard in iroh::blobs::store::bao_tree::io::outboard - Rust

Struct iroh::blobs::store::bao_tree::io::outboard::PreOrderOutboard

pub struct PreOrderOutboard<D = Vec<u8>> {
     pub root: Hash,
     pub tree: BaoTree,
     pub data: D,
@@ -94,14 +94,7 @@ tree and only init the data and set the root hash. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/struct.Leaf.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/struct.Leaf.html index 135cd583e1..d6ef4978dd 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/struct.Leaf.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/struct.Leaf.html @@ -1,4 +1,4 @@ -Leaf in iroh::blobs::store::bao_tree::io - Rust

Struct iroh::blobs::store::bao_tree::io::Leaf

pub struct Leaf {
+Leaf in iroh::blobs::store::bao_tree::io - Rust

Struct iroh::blobs::store::bao_tree::io::Leaf

pub struct Leaf {
     pub offset: u64,
     pub data: Bytes,
 }
Expand description

A leaf node.

@@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/struct.Parent.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/struct.Parent.html index df12843e01..3cd1a73383 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/struct.Parent.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/struct.Parent.html @@ -1,4 +1,4 @@ -Parent in iroh::blobs::store::bao_tree::io - Rust

Struct iroh::blobs::store::bao_tree::io::Parent

pub struct Parent {
+Parent in iroh::blobs::store::bao_tree::io - Rust

Struct iroh::blobs::store::bao_tree::io::Parent

pub struct Parent {
     pub node: TreeNode,
     pub pair: (Hash, Hash),
 }
Expand description

A parent hash pair.

@@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.copy.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.copy.html index 2b7590909e..2245ad2eca 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.copy.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.copy.html @@ -1,4 +1,4 @@ -copy in iroh::blobs::store::bao_tree::io::sync - Rust

Function iroh::blobs::store::bao_tree::io::sync::copy

pub fn copy(from: impl Outboard, to: impl OutboardMut) -> Result<(), Error>
Expand description

Copy an outboard to another outboard.

+copy in iroh::blobs::store::bao_tree::io::sync - Rust

Function iroh::blobs::store::bao_tree::io::sync::copy

pub fn copy(from: impl Outboard, to: impl OutboardMut) -> Result<(), Error>
Expand description

Copy an outboard to another outboard.

This can be used to persist an in memory outboard or to change from pre-order to post-order.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.decode_ranges.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.decode_ranges.html index cb9b189a2b..c60dc94046 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.decode_ranges.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.decode_ranges.html @@ -1,4 +1,4 @@ -decode_ranges in iroh::blobs::store::bao_tree::io::sync - Rust

Function iroh::blobs::store::bao_tree::io::sync::decode_ranges

pub fn decode_ranges<R, O, W>(
+decode_ranges in iroh::blobs::store::bao_tree::io::sync - Rust

Function iroh::blobs::store::bao_tree::io::sync::decode_ranges

pub fn decode_ranges<R, O, W>(
     encoded: R,
     ranges: &RangeSetRef<ChunkNum>,
     target: W,
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.encode_ranges.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.encode_ranges.html
index cdbaa782fe..9174627d5c 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.encode_ranges.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.encode_ranges.html
@@ -1,4 +1,4 @@
-encode_ranges in iroh::blobs::store::bao_tree::io::sync - Rust

Function iroh::blobs::store::bao_tree::io::sync::encode_ranges

pub fn encode_ranges<D, O, W>(
+encode_ranges in iroh::blobs::store::bao_tree::io::sync - Rust

Function iroh::blobs::store::bao_tree::io::sync::encode_ranges

pub fn encode_ranges<D, O, W>(
     data: D,
     outboard: O,
     ranges: &RangeSetRef<ChunkNum>,
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.encode_ranges_validated.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.encode_ranges_validated.html
index 0beabaacd8..00f62e17ba 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.encode_ranges_validated.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.encode_ranges_validated.html
@@ -1,4 +1,4 @@
-encode_ranges_validated in iroh::blobs::store::bao_tree::io::sync - Rust

Function iroh::blobs::store::bao_tree::io::sync::encode_ranges_validated

pub fn encode_ranges_validated<D, O, W>(
+encode_ranges_validated in iroh::blobs::store::bao_tree::io::sync - Rust

Function iroh::blobs::store::bao_tree::io::sync::encode_ranges_validated

pub fn encode_ranges_validated<D, O, W>(
     data: D,
     outboard: O,
     ranges: &RangeSetRef<ChunkNum>,
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.outboard.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.outboard.html
index c74322e7eb..01ae97392c 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.outboard.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.outboard.html
@@ -1,4 +1,4 @@
-outboard in iroh::blobs::store::bao_tree::io::sync - Rust

Function iroh::blobs::store::bao_tree::io::sync::outboard

pub fn outboard(
+outboard in iroh::blobs::store::bao_tree::io::sync - Rust

Function iroh::blobs::store::bao_tree::io::sync::outboard

pub fn outboard(
     data: impl Read,
     tree: BaoTree,
     outboard: impl OutboardMut
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.outboard_post_order.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.outboard_post_order.html
index d03ae29ef6..9743576999 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.outboard_post_order.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.outboard_post_order.html
@@ -1,4 +1,4 @@
-outboard_post_order in iroh::blobs::store::bao_tree::io::sync - Rust

Function iroh::blobs::store::bao_tree::io::sync::outboard_post_order

pub fn outboard_post_order(
+outboard_post_order in iroh::blobs::store::bao_tree::io::sync - Rust

Function iroh::blobs::store::bao_tree::io::sync::outboard_post_order

pub fn outboard_post_order(
     data: impl Read,
     tree: BaoTree,
     outboard: impl Write
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.valid_outboard_ranges.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.valid_outboard_ranges.html
index ca66d8fdec..48e0f903cf 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.valid_outboard_ranges.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.valid_outboard_ranges.html
@@ -1,4 +1,4 @@
-valid_outboard_ranges in iroh::blobs::store::bao_tree::io::sync - Rust

Function iroh::blobs::store::bao_tree::io::sync::valid_outboard_ranges

pub fn valid_outboard_ranges<'a, O>(
+valid_outboard_ranges in iroh::blobs::store::bao_tree::io::sync - Rust

Function iroh::blobs::store::bao_tree::io::sync::valid_outboard_ranges

pub fn valid_outboard_ranges<'a, O>(
     outboard: O,
     ranges: &'a RangeSetRef<ChunkNum>
 ) -> impl IntoIterator<Item = Result<Range<ChunkNum>, Error>> + 'a
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.valid_ranges.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.valid_ranges.html index 8ce1aa1381..a54a7e42c4 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.valid_ranges.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/fn.valid_ranges.html @@ -1,4 +1,4 @@ -valid_ranges in iroh::blobs::store::bao_tree::io::sync - Rust

Function iroh::blobs::store::bao_tree::io::sync::valid_ranges

pub fn valid_ranges<'a, O, D>(
+valid_ranges in iroh::blobs::store::bao_tree::io::sync - Rust

Function iroh::blobs::store::bao_tree::io::sync::valid_ranges

pub fn valid_ranges<'a, O, D>(
     outboard: O,
     data: D,
     ranges: &'a RangeSetRef<ChunkNum>
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/index.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/index.html
index aa8e3302b0..9db37e0fbc 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/index.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/index.html
@@ -1,4 +1,4 @@
-iroh::blobs::store::bao_tree::io::sync - Rust

Module iroh::blobs::store::bao_tree::io::sync

Expand description

Sync IO operations

+iroh::blobs::store::bao_tree::io::sync - Rust

Module iroh::blobs::store::bao_tree::io::sync

Expand description

Sync IO operations

The traits to perform positioned io are re-exported from positioned-io.

Structs§

Traits§

  • Convenience trait to initialize an outboard from a data source.
  • A binary merkle tree for blake3 hashes of a blob.
  • A mutable outboard.
  • Trait for reading bytes at an offset.
  • Trait to get the size in bytes of an I/O object.
  • Trait for writing bytes at an offset.

Functions§

  • Copy an outboard to another outboard.
  • Decode a response into a file while updating an outboard.
  • Encode ranges relevant to a query from a reader and outboard to a writer
  • Encode ranges relevant to a query from a reader and outboard to a writer
  • Compute the outboard for the given data.
  • Compute the post order outboard for the given data, writing into a io::Write
  • Given just an outboard, compute all valid ranges.
  • Given a data file and an outboard, compute all valid ranges.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/struct.DecodeResponseIter.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/struct.DecodeResponseIter.html index 8bd0b777fc..8c7d60c278 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/struct.DecodeResponseIter.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/struct.DecodeResponseIter.html @@ -1,4 +1,4 @@ -DecodeResponseIter in iroh::blobs::store::bao_tree::io::sync - Rust

Struct iroh::blobs::store::bao_tree::io::sync::DecodeResponseIter

pub struct DecodeResponseIter<'a, R> { /* private fields */ }
Expand description

Iterator that can be used to decode a response to a range request

+DecodeResponseIter in iroh::blobs::store::bao_tree::io::sync - Rust

Struct iroh::blobs::store::bao_tree::io::sync::DecodeResponseIter

pub struct DecodeResponseIter<'a, R> { /* private fields */ }
Expand description

Iterator that can be used to decode a response to a range request

Implementations§

§

impl<'a, R> DecodeResponseIter<'a, R>
where R: Read,

pub fn new( root: Hash, @@ -247,14 +247,7 @@ function. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<I> IntoIterator for I
where +

source§

impl<I> IntoIterator for I
where I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<I> IteratorExt for I
where I: Iterator,

source§

fn transpose_into_fallible<T, E>(self) -> Convert<I>
where I: Iterator<Item = Result<T, E>>,

Convert an iterator of Results into FallibleIterator by transposition

diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.CreateOutboard.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.CreateOutboard.html index 18fb32a7ad..68c367dedc 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.CreateOutboard.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.CreateOutboard.html @@ -1,4 +1,4 @@ -CreateOutboard in iroh::blobs::store::bao_tree::io::sync - Rust

Trait iroh::blobs::store::bao_tree::io::sync::CreateOutboard

pub trait CreateOutboard {
+CreateOutboard in iroh::blobs::store::bao_tree::io::sync - Rust

Trait iroh::blobs::store::bao_tree::io::sync::CreateOutboard

pub trait CreateOutboard {
     // Required methods
     fn create_sized(
         data: impl Read,
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.Outboard.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.Outboard.html
index e13a3a1527..96ea9571b0 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.Outboard.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.Outboard.html
@@ -1,4 +1,4 @@
-Outboard in iroh::blobs::store::bao_tree::io::sync - Rust

Trait iroh::blobs::store::bao_tree::io::sync::Outboard

pub trait Outboard {
+Outboard in iroh::blobs::store::bao_tree::io::sync - Rust

Trait iroh::blobs::store::bao_tree::io::sync::Outboard

pub trait Outboard {
     // Required methods
     fn root(&self) -> Hash;
     fn tree(&self) -> BaoTree;
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.OutboardMut.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.OutboardMut.html
index 9e6ec3b2ac..43c1dab697 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.OutboardMut.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.OutboardMut.html
@@ -1,4 +1,4 @@
-OutboardMut in iroh::blobs::store::bao_tree::io::sync - Rust

Trait iroh::blobs::store::bao_tree::io::sync::OutboardMut

pub trait OutboardMut: Sized {
+OutboardMut in iroh::blobs::store::bao_tree::io::sync - Rust

Trait iroh::blobs::store::bao_tree::io::sync::OutboardMut

pub trait OutboardMut: Sized {
     // Required methods
     fn save(
         &mut self,
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.ReadAt.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.ReadAt.html
index 6d8de9b993..ea0e928c04 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.ReadAt.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.ReadAt.html
@@ -1,4 +1,4 @@
-ReadAt in iroh::blobs::store::bao_tree::io::sync - Rust

Trait iroh::blobs::store::bao_tree::io::sync::ReadAt

source ·
pub trait ReadAt {
+ReadAt in iroh::blobs::store::bao_tree::io::sync - Rust

Trait iroh::blobs::store::bao_tree::io::sync::ReadAt

source ·
pub trait ReadAt {
     // Required method
     fn read_at(&self, pos: u64, buf: &mut [u8]) -> Result<usize, Error>;
 
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.Size.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.Size.html
index 92ffc36000..9cb98728ac 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.Size.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.Size.html
@@ -1,4 +1,4 @@
-Size in iroh::blobs::store::bao_tree::io::sync - Rust

Trait iroh::blobs::store::bao_tree::io::sync::Size

source ·
pub trait Size {
+Size in iroh::blobs::store::bao_tree::io::sync - Rust

Trait iroh::blobs::store::bao_tree::io::sync::Size

source ·
pub trait Size {
     // Required method
     fn size(&self) -> Result<Option<u64>, Error>;
 }
Expand description

Trait to get the size in bytes of an I/O object.

diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.WriteAt.html b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.WriteAt.html index db2afe0fdd..7a28f3c4e2 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.WriteAt.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/io/sync/trait.WriteAt.html @@ -1,4 +1,4 @@ -WriteAt in iroh::blobs::store::bao_tree::io::sync - Rust

Trait iroh::blobs::store::bao_tree::io::sync::WriteAt

source ·
pub trait WriteAt {
+WriteAt in iroh::blobs::store::bao_tree::io::sync - Rust

Trait iroh::blobs::store::bao_tree::io::sync::WriteAt

source ·
pub trait WriteAt {
     // Required methods
     fn write_at(&mut self, pos: u64, buf: &[u8]) -> Result<usize, Error>;
     fn flush(&mut self) -> Result<(), Error>;
diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/iter/enum.BaoChunk.html b/pr/2674/docs/iroh/blobs/store/bao_tree/iter/enum.BaoChunk.html
index 0e6cc0947e..20a3ae538e 100644
--- a/pr/2674/docs/iroh/blobs/store/bao_tree/iter/enum.BaoChunk.html
+++ b/pr/2674/docs/iroh/blobs/store/bao_tree/iter/enum.BaoChunk.html
@@ -1,4 +1,4 @@
-BaoChunk in iroh::blobs::store::bao_tree::iter - Rust

Enum iroh::blobs::store::bao_tree::iter::BaoChunk

pub enum BaoChunk<R = ()> {
+BaoChunk in iroh::blobs::store::bao_tree::iter - Rust

Enum iroh::blobs::store::bao_tree::iter::BaoChunk

pub enum BaoChunk<R = ()> {
     Parent {
         node: TreeNode,
         is_root: bool,
@@ -92,14 +92,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/iter/index.html b/pr/2674/docs/iroh/blobs/store/bao_tree/iter/index.html index 028c53e7c3..9c5b4cf310 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/iter/index.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/iter/index.html @@ -1,4 +1,4 @@ -iroh::blobs::store::bao_tree::iter - Rust

Module iroh::blobs::store::bao_tree::iter

Expand description

Iterators over BaoTree nodes

+iroh::blobs::store::bao_tree::iter - Rust

Module iroh::blobs::store::bao_tree::iter

Expand description

Iterators over BaoTree nodes

Range iterators take a reference to the ranges, and therefore require a lifetime parameter. They can be used without lifetime parameters using self referencing structs.

Structs§

Enums§

  • A chunk describeds what to read or write next
\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.PostOrderChunkIter.html b/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.PostOrderChunkIter.html index a1f3a4101d..a2a5c171b4 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.PostOrderChunkIter.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.PostOrderChunkIter.html @@ -1,4 +1,4 @@ -PostOrderChunkIter in iroh::blobs::store::bao_tree::iter - Rust

Struct iroh::blobs::store::bao_tree::iter::PostOrderChunkIter

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

Iterator over all chunks in a BaoTree in post-order.

+PostOrderChunkIter in iroh::blobs::store::bao_tree::iter - Rust

Struct iroh::blobs::store::bao_tree::iter::PostOrderChunkIter

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

Iterator over all chunks in a BaoTree in post-order.

Implementations§

§

impl PostOrderChunkIter

pub fn new(tree: BaoTree) -> PostOrderChunkIter ⓘ

Create a new iterator over the tree.

Trait Implementations§

§

impl Debug for PostOrderChunkIter

§

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

Formats the value using the given formatter. Read more
§

impl Iterator for PostOrderChunkIter

§

type Item = BaoChunk

The type of the elements being iterated over.
§

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

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

fn next_chunk<const N: usize>( &mut self @@ -222,14 +222,7 @@ function. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<I> IntoIterator for I
where +

source§

impl<I> IntoIterator for I
where I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<I> IteratorExt for I
where I: Iterator,

source§

fn transpose_into_fallible<T, E>(self) -> Convert<I>
where I: Iterator<Item = Result<T, E>>,

Convert an iterator of Results into FallibleIterator by transposition

diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.PostOrderNodeIter.html b/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.PostOrderNodeIter.html index 8c8ec7e284..675ec11bda 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.PostOrderNodeIter.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.PostOrderNodeIter.html @@ -1,4 +1,4 @@ -PostOrderNodeIter in iroh::blobs::store::bao_tree::iter - Rust

Struct iroh::blobs::store::bao_tree::iter::PostOrderNodeIter

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

Iterator over all nodes in a tree in post-order.

+PostOrderNodeIter in iroh::blobs::store::bao_tree::iter - Rust

Struct iroh::blobs::store::bao_tree::iter::PostOrderNodeIter

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

Iterator over all nodes in a tree in post-order.

If you want to iterate only down to some level, you need to shift the tree before.

Implementations§

§

impl PostOrderNodeIter

pub fn new(root: TreeNode, len: TreeNode) -> PostOrderNodeIter ⓘ

Create a new iterator given a root node and a len

@@ -234,14 +234,7 @@ function. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<I> IntoIterator for I
where +

source§

impl<I> IntoIterator for I
where I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<I> IteratorExt for I
where I: Iterator,

source§

fn transpose_into_fallible<T, E>(self) -> Convert<I>
where I: Iterator<Item = Result<T, E>>,

Convert an iterator of Results into FallibleIterator by transposition

diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.PreOrderNodeIter.html b/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.PreOrderNodeIter.html index ceb2fb7927..e45d48ba36 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.PreOrderNodeIter.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.PreOrderNodeIter.html @@ -1,4 +1,4 @@ -PreOrderNodeIter in iroh::blobs::store::bao_tree::iter - Rust

Struct iroh::blobs::store::bao_tree::iter::PreOrderNodeIter

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

Iterator over all nodes in a BaoTree in pre-order.

+PreOrderNodeIter in iroh::blobs::store::bao_tree::iter - Rust

Struct iroh::blobs::store::bao_tree::iter::PreOrderNodeIter

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

Iterator over all nodes in a BaoTree in pre-order.

Implementations§

§

impl PreOrderNodeIter

pub fn new(root: TreeNode, len: TreeNode) -> PreOrderNodeIter ⓘ

Create a new iterator given a root node and a len

Trait Implementations§

§

impl Debug for PreOrderNodeIter

§

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

Formats the value using the given formatter. Read more
§

impl Iterator for PreOrderNodeIter

§

type Item = TreeNode

The type of the elements being iterated over.
§

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

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

fn next_chunk<const N: usize>( &mut self @@ -232,14 +232,7 @@ function. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<I> IntoIterator for I
where +

source§

impl<I> IntoIterator for I
where I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<I> IteratorExt for I
where I: Iterator,

source§

fn transpose_into_fallible<T, E>(self) -> Convert<I>
where I: Iterator<Item = Result<T, E>>,

Convert an iterator of Results into FallibleIterator by transposition

diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.PreOrderPartialChunkIterRef.html b/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.PreOrderPartialChunkIterRef.html index 84e873f3bc..0e934f92e8 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.PreOrderPartialChunkIterRef.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.PreOrderPartialChunkIterRef.html @@ -1,4 +1,4 @@ -PreOrderPartialChunkIterRef in iroh::blobs::store::bao_tree::iter - Rust

Struct iroh::blobs::store::bao_tree::iter::PreOrderPartialChunkIterRef

pub struct PreOrderPartialChunkIterRef<'a> { /* private fields */ }
Expand description

Iterator over all nodes in a BaoTree in pre-order that overlap with a given chunk range.

+PreOrderPartialChunkIterRef in iroh::blobs::store::bao_tree::iter - Rust

Struct iroh::blobs::store::bao_tree::iter::PreOrderPartialChunkIterRef

pub struct PreOrderPartialChunkIterRef<'a> { /* private fields */ }
Expand description

Iterator over all nodes in a BaoTree in pre-order that overlap with a given chunk range.

This is mostly used internally

Implementations§

§

impl<'a> PreOrderPartialChunkIterRef<'a>

pub fn new( tree: BaoTree, @@ -228,14 +228,7 @@ function. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<I> IntoIterator for I
where +

source§

impl<I> IntoIterator for I
where I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<I> IteratorExt for I
where I: Iterator,

source§

fn transpose_into_fallible<T, E>(self) -> Convert<I>
where I: Iterator<Item = Result<T, E>>,

Convert an iterator of Results into FallibleIterator by transposition

diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.ResponseIter.html b/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.ResponseIter.html index eea0a79b50..23ef0eba62 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.ResponseIter.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.ResponseIter.html @@ -1,4 +1,4 @@ -ResponseIter in iroh::blobs::store::bao_tree::iter - Rust

Struct iroh::blobs::store::bao_tree::iter::ResponseIter

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

The owned version of ResponseIterRef.

+ResponseIter in iroh::blobs::store::bao_tree::iter - Rust

Struct iroh::blobs::store::bao_tree::iter::ResponseIter

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

The owned version of ResponseIterRef.

Implementations§

§

impl ResponseIter

pub fn new(tree: BaoTree, ranges: RangeSet<[ChunkNum; 2]>) -> ResponseIter ⓘ

Create a new iterator over the tree.

pub fn tree(&self) -> BaoTree

The tree this iterator is iterating over.

Trait Implementations§

§

impl Debug for ResponseIter

§

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

Formats the value using the given formatter. Read more
§

impl Iterator for ResponseIter

§

type Item = BaoChunk

The type of the elements being iterated over.
§

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

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

fn next_chunk<const N: usize>( @@ -223,14 +223,7 @@ function. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<I> IntoIterator for I
where +

source§

impl<I> IntoIterator for I
where I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<I> IteratorExt for I
where I: Iterator,

source§

fn transpose_into_fallible<T, E>(self) -> Convert<I>
where I: Iterator<Item = Result<T, E>>,

Convert an iterator of Results into FallibleIterator by transposition

diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.ResponseIterRef.html b/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.ResponseIterRef.html index 723d385308..51ee255a19 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.ResponseIterRef.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/iter/struct.ResponseIterRef.html @@ -1,4 +1,4 @@ -ResponseIterRef in iroh::blobs::store::bao_tree::iter - Rust

Struct iroh::blobs::store::bao_tree::iter::ResponseIterRef

pub struct ResponseIterRef<'a> { /* private fields */ }
Expand description

An iterator that produces chunks in pre order.

+ResponseIterRef in iroh::blobs::store::bao_tree::iter - Rust

Struct iroh::blobs::store::bao_tree::iter::ResponseIterRef

pub struct ResponseIterRef<'a> { /* private fields */ }
Expand description

An iterator that produces chunks in pre order.

This wraps a PreOrderPartialIterRef and iterates over the chunk groups all the way down to individual chunks if needed.

Implementations§

§

impl<'a> ResponseIterRef<'a>

pub fn new( @@ -225,14 +225,7 @@ function. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<I> IntoIterator for I
where +

source§

impl<I> IntoIterator for I
where I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<I> IteratorExt for I
where I: Iterator,

source§

fn transpose_into_fallible<T, E>(self) -> Convert<I>
where I: Iterator<Item = Result<T, E>>,

Convert an iterator of Results into FallibleIterator by transposition

diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/struct.BaoTree.html b/pr/2674/docs/iroh/blobs/store/bao_tree/struct.BaoTree.html index 3f30e658ec..15bc02ee8d 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/struct.BaoTree.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/struct.BaoTree.html @@ -1,4 +1,4 @@ -BaoTree in iroh::blobs::store::bao_tree - Rust

Struct iroh::blobs::store::bao_tree::BaoTree

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

Defines a Bao tree.

+BaoTree in iroh::blobs::store::bao_tree - Rust

Struct iroh::blobs::store::bao_tree::BaoTree

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

Defines a Bao tree.

This is just the specification of the tree, it does not contain any actual data.

Usually trees are self-contained. This means that the tree starts at chunk 0, and the hash of the root node is computed with the is_root flag set to true.

@@ -83,14 +83,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,
source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/struct.BlockSize.html b/pr/2674/docs/iroh/blobs/store/bao_tree/struct.BlockSize.html index 39a1d5e7c2..d4f0bf66af 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/struct.BlockSize.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/struct.BlockSize.html @@ -1,4 +1,4 @@ -BlockSize in iroh::blobs::store::bao_tree - Rust

Struct iroh::blobs::store::bao_tree::BlockSize

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

A block size.

+BlockSize in iroh::blobs::store::bao_tree - Rust

Struct iroh::blobs::store::bao_tree::BlockSize

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

A block size.

Block sizes are powers of 2, with the smallest being 1024 bytes. They are encoded as the power of 2, minus 10, so 1 is 1024 bytes, 2 is 2048 bytes, etc.

Since only powers of 2 are valid, the log2 of the size in bytes / 1024 is given in the @@ -71,14 +71,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/struct.ChunkNum.html b/pr/2674/docs/iroh/blobs/store/bao_tree/struct.ChunkNum.html index d2ba1f844d..cdfb828b58 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/struct.ChunkNum.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/struct.ChunkNum.html @@ -1,4 +1,4 @@ -ChunkNum in iroh::blobs::store::bao_tree - Rust

Struct iroh::blobs::store::bao_tree::ChunkNum

#[repr(transparent)]
pub struct ChunkNum(pub u64);
Expand description

A number of blake3 chunks.

+ChunkNum in iroh::blobs::store::bao_tree - Rust

Struct iroh::blobs::store::bao_tree::ChunkNum

#[repr(transparent)]
pub struct ChunkNum(pub u64);
Expand description

A number of blake3 chunks.

This is a newtype for u64. The blake3 chunk size is 1024 bytes.

Tuple Fields§

§0: u64

Implementations§

§

impl ChunkNum

pub fn to_usize(self) -> usize

Convert to usize or panic if it doesn’t fit.

@@ -71,14 +71,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/struct.TreeNode.html b/pr/2674/docs/iroh/blobs/store/bao_tree/struct.TreeNode.html index cc62d533ed..8bbc9dab7a 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/struct.TreeNode.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/struct.TreeNode.html @@ -1,4 +1,4 @@ -TreeNode in iroh::blobs::store::bao_tree - Rust

Struct iroh::blobs::store::bao_tree::TreeNode

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

An u64 that defines a node in a bao tree.

+TreeNode in iroh::blobs::store::bao_tree - Rust

Struct iroh::blobs::store::bao_tree::TreeNode

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

An u64 that defines a node in a bao tree.

You typically don’t have to use this, but it can be useful for debugging and error handling. Hash validation errors contain a TreeNode that allows you to find the position where validation failed.

@@ -84,14 +84,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/type.ByteRanges.html b/pr/2674/docs/iroh/blobs/store/bao_tree/type.ByteRanges.html index c779f3d713..e98309be08 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/type.ByteRanges.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/type.ByteRanges.html @@ -1,2 +1,2 @@ -ByteRanges in iroh::blobs::store::bao_tree - Rust

Type Alias iroh::blobs::store::bao_tree::ByteRanges

pub type ByteRanges = RangeSet<[u64; 2]>;
Expand description

A set of byte ranges

+ByteRanges in iroh::blobs::store::bao_tree - Rust

Type Alias iroh::blobs::store::bao_tree::ByteRanges

pub type ByteRanges = RangeSet<[u64; 2]>;
Expand description

A set of byte ranges

Aliased Type§

struct ByteRanges(/* private fields */);
\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/type.ChunkRanges.html b/pr/2674/docs/iroh/blobs/store/bao_tree/type.ChunkRanges.html index c9aad2b5bc..e824207ddb 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/type.ChunkRanges.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/type.ChunkRanges.html @@ -1,2 +1,2 @@ -ChunkRanges in iroh::blobs::store::bao_tree - Rust

Type Alias iroh::blobs::store::bao_tree::ChunkRanges

pub type ChunkRanges = RangeSet<[ChunkNum; 2]>;
Expand description

A set of chunk ranges

+ChunkRanges in iroh::blobs::store::bao_tree - Rust

Type Alias iroh::blobs::store::bao_tree::ChunkRanges

pub type ChunkRanges = RangeSet<[ChunkNum; 2]>;
Expand description

A set of chunk ranges

Aliased Type§

struct ChunkRanges(/* private fields */);
\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/bao_tree/type.ChunkRangesRef.html b/pr/2674/docs/iroh/blobs/store/bao_tree/type.ChunkRangesRef.html index 45eff73a57..24b68ecc86 100644 --- a/pr/2674/docs/iroh/blobs/store/bao_tree/type.ChunkRangesRef.html +++ b/pr/2674/docs/iroh/blobs/store/bao_tree/type.ChunkRangesRef.html @@ -1,3 +1,3 @@ -ChunkRangesRef in iroh::blobs::store::bao_tree - Rust

Type Alias iroh::blobs::store::bao_tree::ChunkRangesRef

pub type ChunkRangesRef = RangeSetRef<ChunkNum>;
Expand description

A referenceable set of chunk ranges

+ChunkRangesRef in iroh::blobs::store::bao_tree - Rust

Type Alias iroh::blobs::store::bao_tree::ChunkRangesRef

pub type ChunkRangesRef = RangeSetRef<ChunkNum>;
Expand description

A referenceable set of chunk ranges

ChunkRanges implements AsRef<ChunkRangesRef>.

Aliased Type§

struct ChunkRangesRef(/* private fields */);
\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/enum.BaoBlobSize.html b/pr/2674/docs/iroh/blobs/store/enum.BaoBlobSize.html index 0c51449d78..79df7ebdec 100644 --- a/pr/2674/docs/iroh/blobs/store/enum.BaoBlobSize.html +++ b/pr/2674/docs/iroh/blobs/store/enum.BaoBlobSize.html @@ -1,4 +1,4 @@ -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

source ·
pub enum BaoBlobSize {
     Unverified(u64),
     Verified(u64),
 }
Expand description

The size of a bao file

@@ -63,14 +63,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/enum.ConsistencyCheckProgress.html b/pr/2674/docs/iroh/blobs/store/enum.ConsistencyCheckProgress.html index 69e9a94cac..4532943251 100644 --- a/pr/2674/docs/iroh/blobs/store/enum.ConsistencyCheckProgress.html +++ b/pr/2674/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

source ·
pub enum ConsistencyCheckProgress {
     Start,
     Update {
         message: String,
@@ -64,14 +64,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/enum.EntryStatus.html b/pr/2674/docs/iroh/blobs/store/enum.EntryStatus.html index 621917e418..a2ca686352 100644 --- a/pr/2674/docs/iroh/blobs/store/enum.EntryStatus.html +++ b/pr/2674/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

source ·
pub enum EntryStatus {
     Complete,
     Partial,
     NotFound,
@@ -56,14 +56,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/enum.Event.html b/pr/2674/docs/iroh/blobs/store/enum.Event.html index bc9b23da4d..6eae303c7d 100644 --- a/pr/2674/docs/iroh/blobs/store/enum.Event.html +++ b/pr/2674/docs/iroh/blobs/store/enum.Event.html @@ -1,4 +1,4 @@ -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

source ·
pub enum Event {
     GcStarted,
     GcCompleted,
 }
Expand description

Database events

@@ -54,14 +54,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/enum.ExportFormat.html b/pr/2674/docs/iroh/blobs/store/enum.ExportFormat.html index f7c73896d4..0965c679d7 100644 --- a/pr/2674/docs/iroh/blobs/store/enum.ExportFormat.html +++ b/pr/2674/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

source ·
pub enum ExportFormat {
     Blob,
     Collection,
 }
Expand description

The expected format of a hash being exported.

@@ -61,14 +61,7 @@ destination path.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/enum.ExportMode.html b/pr/2674/docs/iroh/blobs/store/enum.ExportMode.html index 47c643de54..ce9f452df4 100644 --- a/pr/2674/docs/iroh/blobs/store/enum.ExportMode.html +++ b/pr/2674/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

source ·
pub enum ExportMode {
     Copy,
     TryReference,
 }
Expand description

The import mode describes how files will be imported.

@@ -72,14 +72,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/enum.ExportProgress.html b/pr/2674/docs/iroh/blobs/store/enum.ExportProgress.html index 3e7016393a..5c2bd91ce9 100644 --- a/pr/2674/docs/iroh/blobs/store/enum.ExportProgress.html +++ b/pr/2674/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

source ·
pub enum ExportProgress {
     Start {
         id: u64,
         hash: Hash,
@@ -60,14 +60,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/enum.GcMarkEvent.html b/pr/2674/docs/iroh/blobs/store/enum.GcMarkEvent.html index 052b57d0e8..53d9497d19 100644 --- a/pr/2674/docs/iroh/blobs/store/enum.GcMarkEvent.html +++ b/pr/2674/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

source ·
pub enum GcMarkEvent {
     CustomDebug(String),
     CustomWarning(String, Option<Error>),
     Error(Error),
@@ -48,14 +48,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/enum.GcSweepEvent.html b/pr/2674/docs/iroh/blobs/store/enum.GcSweepEvent.html index f0ba30014f..e9aa048a51 100644 --- a/pr/2674/docs/iroh/blobs/store/enum.GcSweepEvent.html +++ b/pr/2674/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

source ·
pub enum GcSweepEvent {
     CustomDebug(String),
     CustomWarning(String, Option<Error>),
     Error(Error),
@@ -48,14 +48,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/enum.ImportMode.html b/pr/2674/docs/iroh/blobs/store/enum.ImportMode.html index 293fd5459a..3c3291a159 100644 --- a/pr/2674/docs/iroh/blobs/store/enum.ImportMode.html +++ b/pr/2674/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

source ·
pub enum ImportMode {
     Copy,
     TryReference,
 }
Expand description

The import mode describes how files will be imported.

@@ -71,14 +71,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/enum.ImportProgress.html b/pr/2674/docs/iroh/blobs/store/enum.ImportProgress.html index 15f5130ce4..87695042b4 100644 --- a/pr/2674/docs/iroh/blobs/store/enum.ImportProgress.html +++ b/pr/2674/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

source ·
pub enum ImportProgress {
     Found {
         id: u64,
         name: String,
@@ -77,14 +77,7 @@ is fully copied.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/enum.ReportLevel.html b/pr/2674/docs/iroh/blobs/store/enum.ReportLevel.html index d30d38f9b8..c25e0c9763 100644 --- a/pr/2674/docs/iroh/blobs/store/enum.ReportLevel.html +++ b/pr/2674/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

source ·
pub enum ReportLevel {
     Trace,
     Info,
     Warn,
@@ -72,14 +72,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/enum.ValidateProgress.html b/pr/2674/docs/iroh/blobs/store/enum.ValidateProgress.html index c03de31d15..cbb0ea811a 100644 --- a/pr/2674/docs/iroh/blobs/store/enum.ValidateProgress.html +++ b/pr/2674/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

source ·
pub enum ValidateProgress {
     Starting {
         total: u64,
     },
@@ -112,14 +112,7 @@ Otherwise it might be an url or something else to uniquely identify the entry.From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/fs/index.html b/pr/2674/docs/iroh/blobs/store/fs/index.html index 1f593df23e..5f8c514ce7 100644 --- a/pr/2674/docs/iroh/blobs/store/fs/index.html +++ b/pr/2674/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

source ·
Expand description

redb backed storage

Data can get into the store in two ways:

  1. import from local data
  2. @@ -51,5 +51,5 @@ handlers of the actor. This includes various redb related errors and io errors when reading or writing non-inlined data or outboard files.

    OuterError is an enum containing all the actor errors and in addition errors when communicating with the actor.

    -

Structs§

  • Options for transaction batching.
  • Parameters for importing from a flat store
  • Options for inlining small complete data or outboards.
  • Options for the file store.
  • Options for directories used by the file store.
  • Storage that is using a redb database for small files and files for +

Structs§

  • Options for transaction batching.
  • Options for inlining small complete data or outboards.
  • Options for the file store.
  • Options for directories used by the file store.
  • Storage that is using a redb database for small files and files for large files.

Type Aliases§

  • Use BaoFileHandle as the entry type for the map.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/fs/sidebar-items.js b/pr/2674/docs/iroh/blobs/store/fs/sidebar-items.js index 5c1f9a5364..dbdd3180d3 100644 --- a/pr/2674/docs/iroh/blobs/store/fs/sidebar-items.js +++ b/pr/2674/docs/iroh/blobs/store/fs/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"struct":["BatchOptions","FlatStorePaths","InlineOptions","Options","PathOptions","Store"],"type":["Entry"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"struct":["BatchOptions","InlineOptions","Options","PathOptions","Store"],"type":["Entry"]}; \ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/fs/struct.BatchOptions.html b/pr/2674/docs/iroh/blobs/store/fs/struct.BatchOptions.html index 8e40d7f880..d7018aba01 100644 --- a/pr/2674/docs/iroh/blobs/store/fs/struct.BatchOptions.html +++ b/pr/2674/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

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

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 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 @@ -52,14 +52,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/fs/struct.FlatStorePaths.html b/pr/2674/docs/iroh/blobs/store/fs/struct.FlatStorePaths.html deleted file mode 100644 index af0025d681..0000000000 --- a/pr/2674/docs/iroh/blobs/store/fs/struct.FlatStorePaths.html +++ /dev/null @@ -1,130 +0,0 @@ -FlatStorePaths in iroh::blobs::store::fs - Rust

Struct iroh::blobs::store::fs::FlatStorePaths

source ·
pub struct FlatStorePaths {
-    pub complete: PathBuf,
-    pub partial: PathBuf,
-    pub meta: PathBuf,
-}
Expand description

Parameters for importing from a flat store

-

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 - 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 - T: 'a,

§

fn implicit( - self, - class: Class, - constructed: bool, - tag: u32 -) -> TaggedParser<'a, Implicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where - T: 'a,

§

fn implicit( - self, - class: Class, - constructed: bool, - tag: u32 -) -> TaggedParser<'a, Implicit, Self, E>

source§

impl<T> Borrow<T> for T
where - T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where - T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Conv for T

§

fn conv<T>(self) -> T
where - Self: Into<T>,

Converts self into T using Into<T>. Read more
§

impl<T> FmtForward for T

§

fn fmt_binary(self) -> FmtBinary<Self>
where - Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
§

fn fmt_display(self) -> FmtDisplay<Self>
where - Self: Display,

Causes self to use its Display implementation when -Debug-formatted.
§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where - Self: LowerExp,

Causes self to use its LowerExp implementation when -Debug-formatted.
§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where - Self: LowerHex,

Causes self to use its LowerHex implementation when -Debug-formatted.
§

fn fmt_octal(self) -> FmtOctal<Self>
where - Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
§

fn fmt_pointer(self) -> FmtPointer<Self>
where - Self: Pointer,

Causes self to use its Pointer implementation when -Debug-formatted.
§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where - Self: UpperExp,

Causes self to use its UpperExp implementation when -Debug-formatted.
§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where - Self: UpperHex,

Causes self to use its UpperHex implementation when -Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where - &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

-
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an -Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an -Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

-

That is, this conversion is whatever the implementation of -From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where - T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where - Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where - R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where - R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where - Self: Borrow<B>, - B: 'a + ?Sized, - R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
§

fn pipe_borrow_mut<'a, B, R>( - &'a mut self, - func: impl FnOnce(&'a mut B) -> R -) -> R
where - Self: BorrowMut<B>, - B: 'a + ?Sized, - R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe -function. Read more
§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where - Self: AsRef<U>, - U: 'a + ?Sized, - R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where - Self: AsMut<U>, - U: 'a + ?Sized, - R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe -function.
§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where - Self: Deref<Target = T>, - T: 'a + ?Sized, - R: 'a,

Borrows self, then passes self.deref() into the pipe function.
§

fn pipe_deref_mut<'a, T, R>( - &'a mut self, - func: impl FnOnce(&'a mut T) -> R -) -> R
where - Self: DerefMut<Target = T> + Deref, - T: 'a + ?Sized, - R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe -function.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
§

impl<T> Tap for T

§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where - Self: Borrow<B>, - B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where - Self: BorrowMut<B>, - B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where - Self: AsRef<R>, - R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where - Self: AsMut<R>, - R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where - Self: Deref<Target = T>, - T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release -builds.
§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where - Self: Borrow<B>, - B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release -builds.
§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where - Self: BorrowMut<B>, - B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release -builds.
§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where - Self: AsRef<R>, - R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release -builds.
§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where - Self: AsMut<R>, - R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release -builds.
§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where - Self: Deref<Target = T>, - T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release -builds.
§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where - Self: DerefMut<Target = T> + Deref, - T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release -builds.
§

impl<T> TryConv for T

§

fn try_conv<T>(self) -> Result<T, Self::Error>
where - Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

impl<T, U> TryFrom<U> for T
where - U: Into<T>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where - U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where - V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where - S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a -WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a -WithDispatch wrapper. Read more
\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/fs/struct.InlineOptions.html b/pr/2674/docs/iroh/blobs/store/fs/struct.InlineOptions.html index 161a04fcbe..f9e14bcfd3 100644 --- a/pr/2674/docs/iroh/blobs/store/fs/struct.InlineOptions.html +++ b/pr/2674/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

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

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 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 @@ -50,14 +50,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/fs/struct.Options.html b/pr/2674/docs/iroh/blobs/store/fs/struct.Options.html index 7c6881cf2b..f926cac8dc 100644 --- a/pr/2674/docs/iroh/blobs/store/fs/struct.Options.html +++ b/pr/2674/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

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

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 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 @@ -50,14 +50,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/fs/struct.PathOptions.html b/pr/2674/docs/iroh/blobs/store/fs/struct.PathOptions.html index 52fea76b2a..15cf0800f7 100644 --- a/pr/2674/docs/iroh/blobs/store/fs/struct.PathOptions.html +++ b/pr/2674/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

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

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 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 @@ -50,14 +50,7 @@ atomically move temp files into place.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/fs/struct.Store.html b/pr/2674/docs/iroh/blobs/store/fs/struct.Store.html index 47bca8b2c4..5754a13a40 100644 --- a/pr/2674/docs/iroh/blobs/store/fs/struct.Store.html +++ b/pr/2674/docs/iroh/blobs/store/fs/struct.Store.html @@ -1,4 +1,4 @@ -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

source ·
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( &self, @@ -7,68 +7,64 @@ large files.

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( +

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( &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 import_flat_store( - &self, - paths: FlatStorePaths -) -> Result<bool, Error>

👎Deprecated since 0.23.0: Flat stores are deprecated and future versions will not be able to migrate.

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( +

source

pub async fn dump(&self) -> Result<(), Error>

Dump the entire content of the database to stdout.

+

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

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.
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( &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.

source§

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

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

fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

Temp tags
source§

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

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

impl Store for Store

source§

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

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

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

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 sync(&self) -> Result<(), Error>

Sync the store.
source§

async fn shutdown(&self)

Shutdown the store.
source§

fn import_reader( +) -> 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 sync(&self) -> Result<(), Error>

Sync the store.
source§

async fn shutdown(&self)

Shutdown the store.
source§

fn import_reader( &self, data: impl AsyncRead + Send + Unpin + 'static, format: BlobFormat, @@ -133,14 +129,7 @@ been imported, and hash sequences that have been created internally.

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/fs/type.Entry.html b/pr/2674/docs/iroh/blobs/store/fs/type.Entry.html index 7c6d7ebd76..8a7cc593eb 100644 --- a/pr/2674/docs/iroh/blobs/store/fs/type.Entry.html +++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/store/index.html b/pr/2674/docs/iroh/blobs/store/index.html index 02bb7cc5f1..3c0b274e41 100644 --- a/pr/2674/docs/iroh/blobs/store/index.html +++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/store/mem/index.html b/pr/2674/docs/iroh/blobs/store/mem/index.html index bcd270341e..c1e5e3a0a9 100644 --- a/pr/2674/docs/iroh/blobs/store/mem/index.html +++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/store/mem/struct.Entry.html b/pr/2674/docs/iroh/blobs/store/mem/struct.Entry.html index 489c58c7e5..2ae3a58bcd 100644 --- a/pr/2674/docs/iroh/blobs/store/mem/struct.Entry.html +++ b/pr/2674/docs/iroh/blobs/store/mem/struct.Entry.html @@ -1,4 +1,4 @@ -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

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

fn write_verifiable_stream<'a>( &'a self, offset: u64, @@ -47,14 +47,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/mem/struct.Store.html b/pr/2674/docs/iroh/blobs/store/mem/struct.Store.html index 0dddefa840..4f75922b08 100644 --- a/pr/2674/docs/iroh/blobs/store/mem/struct.Store.html +++ b/pr/2674/docs/iroh/blobs/store/mem/struct.Store.html @@ -1,4 +1,4 @@ -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

source ·
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 @@ -106,14 +106,7 @@ been imported, and hash sequences that have been created internally.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/range_collections/index.html b/pr/2674/docs/iroh/blobs/store/range_collections/index.html index 20db021780..e006577fe4 100644 --- a/pr/2674/docs/iroh/blobs/store/range_collections/index.html +++ b/pr/2674/docs/iroh/blobs/store/range_collections/index.html @@ -1,2 +1,2 @@ -iroh::blobs::store::range_collections - Rust

Crate iroh::blobs::store::range_collections

Expand description

A set of non-overlapping ranges, backed by SmallVec<T>

+iroh::blobs::store::range_collections - Rust

Crate iroh::blobs::store::range_collections

Expand description

A set of non-overlapping ranges, backed by SmallVec<T>

Modules§

Structs§

Type Aliases§

  • A range set that stores up to 2 boundaries inline
\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/range_collections/range_set/enum.RangeSetRange.html b/pr/2674/docs/iroh/blobs/store/range_collections/range_set/enum.RangeSetRange.html index 32ecedba74..d8d584da82 100644 --- a/pr/2674/docs/iroh/blobs/store/range_collections/range_set/enum.RangeSetRange.html +++ b/pr/2674/docs/iroh/blobs/store/range_collections/range_set/enum.RangeSetRange.html @@ -1,4 +1,4 @@ -RangeSetRange in iroh::blobs::store::range_collections::range_set - Rust
pub enum RangeSetRange<T> {
+RangeSetRange in iroh::blobs::store::range_collections::range_set - Rust
pub enum RangeSetRange<T> {
     Range(Range<T>),
     RangeFrom(RangeFrom<T>),
 }
Expand description

Range that can be part of a range set

@@ -64,14 +64,7 @@ Therefore some ranges types are not going to appear in a range set.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/range_collections/range_set/index.html b/pr/2674/docs/iroh/blobs/store/range_collections/range_set/index.html index 1953c4ae7c..2362be6935 100644 --- a/pr/2674/docs/iroh/blobs/store/range_collections/range_set/index.html +++ b/pr/2674/docs/iroh/blobs/store/range_collections/range_set/index.html @@ -1,2 +1,2 @@ -iroh::blobs::store::range_collections::range_set - Rust

Module iroh::blobs::store::range_collections::range_set

Expand description

A set of non-overlapping ranges

+iroh::blobs::store::range_collections::range_set - Rust

Module iroh::blobs::store::range_collections::range_set

Expand description

A set of non-overlapping ranges

Structs§

  • Iterator for the ranges in a range set
  • A set of non-overlapping ranges
  • A reference to a range set

Enums§

Traits§

Type Aliases§

  • A range set that stores up to 2 boundaries inline
\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/range_collections/range_set/struct.Iter.html b/pr/2674/docs/iroh/blobs/store/range_collections/range_set/struct.Iter.html index 2b37d15eb5..a868f410e1 100644 --- a/pr/2674/docs/iroh/blobs/store/range_collections/range_set/struct.Iter.html +++ b/pr/2674/docs/iroh/blobs/store/range_collections/range_set/struct.Iter.html @@ -1,4 +1,4 @@ -Iter in iroh::blobs::store::range_collections::range_set - Rust

Struct iroh::blobs::store::range_collections::range_set::Iter

pub struct Iter<'a, T>(/* private fields */);
Expand description

Iterator for the ranges in a range set

+Iter in iroh::blobs::store::range_collections::range_set - Rust

Struct iroh::blobs::store::range_collections::range_set::Iter

pub struct Iter<'a, T>(/* private fields */);
Expand description

Iterator for the ranges in a range set

Trait Implementations§

§

impl<'a, T> Iterator for Iter<'a, T>

§

type Item = RangeSetRange<&'a T>

The type of the elements being iterated over.
§

fn next(&mut self) -> Option<<Iter<'a, T> 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 @@ -222,14 +222,7 @@ function. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<I> IntoIterator for I
where +

source§

impl<I> IntoIterator for I
where I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<I> IteratorExt for I
where I: Iterator,

source§

fn transpose_into_fallible<T, E>(self) -> Convert<I>
where I: Iterator<Item = Result<T, E>>,

Convert an iterator of Results into FallibleIterator by transposition

diff --git a/pr/2674/docs/iroh/blobs/store/range_collections/range_set/struct.RangeSet.html b/pr/2674/docs/iroh/blobs/store/range_collections/range_set/struct.RangeSet.html index f7b949480b..e621e3299b 100644 --- a/pr/2674/docs/iroh/blobs/store/range_collections/range_set/struct.RangeSet.html +++ b/pr/2674/docs/iroh/blobs/store/range_collections/range_set/struct.RangeSet.html @@ -1,4 +1,4 @@ -RangeSet in iroh::blobs::store::range_collections::range_set - Rust

Struct iroh::blobs::store::range_collections::range_set::RangeSet

pub struct RangeSet<A>(/* private fields */)
+RangeSet in iroh::blobs::store::range_collections::range_set - Rust

Struct iroh::blobs::store::range_collections::range_set::RangeSet

pub struct RangeSet<A>(/* private fields */)
 where
     A: Array;
Expand description

§A set of non-overlapping ranges

let mut a: RangeSet2<i32> = RangeSet::from(10..);
@@ -270,14 +270,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/range_collections/range_set/struct.RangeSetRef.html b/pr/2674/docs/iroh/blobs/store/range_collections/range_set/struct.RangeSetRef.html index c5c5489ea9..d729b680e6 100644 --- a/pr/2674/docs/iroh/blobs/store/range_collections/range_set/struct.RangeSetRef.html +++ b/pr/2674/docs/iroh/blobs/store/range_collections/range_set/struct.RangeSetRef.html @@ -1,4 +1,4 @@ -RangeSetRef in iroh::blobs::store::range_collections::range_set - Rust

Struct iroh::blobs::store::range_collections::range_set::RangeSetRef

pub struct RangeSetRef<T>(/* private fields */);
Expand description

A reference to a range set

+RangeSetRef in iroh::blobs::store::range_collections::range_set - Rust

Struct iroh::blobs::store::range_collections::range_set::RangeSetRef

pub struct RangeSetRef<T>(/* private fields */);
Expand description

A reference to a range set

Implementations§

§

impl<T> RangeSetRef<T>

pub const fn empty() -> &'static RangeSetRef<T>

Create a new range set reference for an empty range set

pub const fn single(value: &T) -> &RangeSetRef<T>

Create a new range set reference for a single value

pub fn new(boundaries: &[T]) -> Option<&RangeSetRef<T>>
where diff --git a/pr/2674/docs/iroh/blobs/store/range_collections/range_set/trait.RangeSetEntry.html b/pr/2674/docs/iroh/blobs/store/range_collections/range_set/trait.RangeSetEntry.html index 350532daf3..5cc7f9e06b 100644 --- a/pr/2674/docs/iroh/blobs/store/range_collections/range_set/trait.RangeSetEntry.html +++ b/pr/2674/docs/iroh/blobs/store/range_collections/range_set/trait.RangeSetEntry.html @@ -1,4 +1,4 @@ -RangeSetEntry in iroh::blobs::store::range_collections::range_set - Rust
pub trait RangeSetEntry: Ord {
+RangeSetEntry in iroh::blobs::store::range_collections::range_set - Rust
pub trait RangeSetEntry: Ord {
     // Required methods
     fn min_value() -> Self;
     fn is_min_value(&self) -> bool;
diff --git a/pr/2674/docs/iroh/blobs/store/range_collections/range_set/type.RangeSet2.html b/pr/2674/docs/iroh/blobs/store/range_collections/range_set/type.RangeSet2.html
index 878f6e90c6..93e24ab1a8 100644
--- a/pr/2674/docs/iroh/blobs/store/range_collections/range_set/type.RangeSet2.html
+++ b/pr/2674/docs/iroh/blobs/store/range_collections/range_set/type.RangeSet2.html
@@ -1,2 +1,2 @@
-RangeSet2 in iroh::blobs::store::range_collections::range_set - Rust

Type Alias iroh::blobs::store::range_collections::range_set::RangeSet2

pub type RangeSet2<T> = RangeSet<[T; 2]>;
Expand description

A range set that stores up to 2 boundaries inline

+RangeSet2 in iroh::blobs::store::range_collections::range_set - Rust

Type Alias iroh::blobs::store::range_collections::range_set::RangeSet2

pub type RangeSet2<T> = RangeSet<[T; 2]>;
Expand description

A range set that stores up to 2 boundaries inline

Aliased Type§

struct RangeSet2<T>(/* private fields */);
\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/range_collections/struct.RangeSet.html b/pr/2674/docs/iroh/blobs/store/range_collections/struct.RangeSet.html index e46cc18630..7b82cdddcf 100644 --- a/pr/2674/docs/iroh/blobs/store/range_collections/struct.RangeSet.html +++ b/pr/2674/docs/iroh/blobs/store/range_collections/struct.RangeSet.html @@ -1,4 +1,4 @@ -RangeSet in iroh::blobs::store::range_collections - Rust

Struct iroh::blobs::store::range_collections::RangeSet

pub struct RangeSet<A>(/* private fields */)
+RangeSet in iroh::blobs::store::range_collections - Rust

Struct iroh::blobs::store::range_collections::RangeSet

pub struct RangeSet<A>(/* private fields */)
 where
     A: Array;
Expand description

§A set of non-overlapping ranges

let mut a: RangeSet2<i32> = RangeSet::from(10..);
@@ -270,14 +270,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/range_collections/struct.RangeSetRef.html b/pr/2674/docs/iroh/blobs/store/range_collections/struct.RangeSetRef.html index 5621afa3d2..9c9711c8b7 100644 --- a/pr/2674/docs/iroh/blobs/store/range_collections/struct.RangeSetRef.html +++ b/pr/2674/docs/iroh/blobs/store/range_collections/struct.RangeSetRef.html @@ -1,4 +1,4 @@ -RangeSetRef in iroh::blobs::store::range_collections - Rust

Struct iroh::blobs::store::range_collections::RangeSetRef

pub struct RangeSetRef<T>(/* private fields */);
Expand description

A reference to a range set

+RangeSetRef in iroh::blobs::store::range_collections - Rust

Struct iroh::blobs::store::range_collections::RangeSetRef

pub struct RangeSetRef<T>(/* private fields */);
Expand description

A reference to a range set

Implementations§

§

impl<T> RangeSetRef<T>

pub const fn empty() -> &'static RangeSetRef<T>

Create a new range set reference for an empty range set

pub const fn single(value: &T) -> &RangeSetRef<T>

Create a new range set reference for a single value

pub fn new(boundaries: &[T]) -> Option<&RangeSetRef<T>>
where diff --git a/pr/2674/docs/iroh/blobs/store/range_collections/type.RangeSet2.html b/pr/2674/docs/iroh/blobs/store/range_collections/type.RangeSet2.html index b6ef52b6b7..e0a664929f 100644 --- a/pr/2674/docs/iroh/blobs/store/range_collections/type.RangeSet2.html +++ b/pr/2674/docs/iroh/blobs/store/range_collections/type.RangeSet2.html @@ -1,2 +1,2 @@ -RangeSet2 in iroh::blobs::store::range_collections - Rust

Type Alias iroh::blobs::store::range_collections::RangeSet2

pub type RangeSet2<T> = RangeSet<[T; 2]>;
Expand description

A range set that stores up to 2 boundaries inline

+RangeSet2 in iroh::blobs::store::range_collections - Rust

Type Alias iroh::blobs::store::range_collections::RangeSet2

pub type RangeSet2<T> = RangeSet<[T; 2]>;
Expand description

A range set that stores up to 2 boundaries inline

Aliased Type§

struct RangeSet2<T>(/* private fields */);
\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/readonly_mem/index.html b/pr/2674/docs/iroh/blobs/store/readonly_mem/index.html index 97e3ce5b10..e1ed51d7bc 100644 --- a/pr/2674/docs/iroh/blobs/store/readonly_mem/index.html +++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/store/readonly_mem/struct.Entry.html b/pr/2674/docs/iroh/blobs/store/readonly_mem/struct.Entry.html index ac9e231e03..6e6000e7a4 100644 --- a/pr/2674/docs/iroh/blobs/store/readonly_mem/struct.Entry.html +++ b/pr/2674/docs/iroh/blobs/store/readonly_mem/struct.Entry.html @@ -1,4 +1,4 @@ -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.

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

fn write_verifiable_stream<'a>( &'a self, offset: u64, @@ -47,14 +47,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/readonly_mem/struct.Store.html b/pr/2674/docs/iroh/blobs/store/readonly_mem/struct.Store.html index 57ac4db763..341cff8347 100644 --- a/pr/2674/docs/iroh/blobs/store/readonly_mem/struct.Store.html +++ b/pr/2674/docs/iroh/blobs/store/readonly_mem/struct.Store.html @@ -1,4 +1,4 @@ -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

source ·
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.

@@ -123,14 +123,7 @@ been imported, and hash sequences that have been created internally.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/store/trait.BaoBatchWriter.html b/pr/2674/docs/iroh/blobs/store/trait.BaoBatchWriter.html index ccb5c5f071..5a8ebb7df4 100644 --- a/pr/2674/docs/iroh/blobs/store/trait.BaoBatchWriter.html +++ b/pr/2674/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

source ·
pub trait BaoBatchWriter {
     // Required methods
     fn write_batch(
         &mut self,
diff --git a/pr/2674/docs/iroh/blobs/store/trait.Map.html b/pr/2674/docs/iroh/blobs/store/trait.Map.html
index 3fbc55a2d8..0d79261980 100644
--- a/pr/2674/docs/iroh/blobs/store/trait.Map.html
+++ b/pr/2674/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

source ·
pub trait Map: Clone + Send + Sync + 'static {
     type Entry: MapEntry;
 
     // Required method
@@ -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§

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 diff --git a/pr/2674/docs/iroh/blobs/store/trait.MapEntry.html b/pr/2674/docs/iroh/blobs/store/trait.MapEntry.html index 323ef1e67a..8cc6582863 100644 --- a/pr/2674/docs/iroh/blobs/store/trait.MapEntry.html +++ b/pr/2674/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

source ·
pub trait MapEntry: Debug + Clone + Send + Sync + 'static {
     // Required methods
     fn hash(&self) -> Hash;
     fn size(&self) -> BaoBlobSize;
diff --git a/pr/2674/docs/iroh/blobs/store/trait.MapEntryMut.html b/pr/2674/docs/iroh/blobs/store/trait.MapEntryMut.html
index 3c3b57dd40..0d51dedd5f 100644
--- a/pr/2674/docs/iroh/blobs/store/trait.MapEntryMut.html
+++ b/pr/2674/docs/iroh/blobs/store/trait.MapEntryMut.html
@@ -1,4 +1,4 @@
-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

source ·
pub trait MapEntryMut: MapEntry {
     // Required method
     fn batch_writer(
         &self
diff --git a/pr/2674/docs/iroh/blobs/store/trait.MapMut.html b/pr/2674/docs/iroh/blobs/store/trait.MapMut.html
index 0d2f6eda73..ee941084fe 100644
--- a/pr/2674/docs/iroh/blobs/store/trait.MapMut.html
+++ b/pr/2674/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

source ·
pub trait MapMut: Map {
     type EntryMut: MapEntryMut;
 
     // Required methods
@@ -48,4 +48,4 @@ of the store the entry is present.

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

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 diff --git a/pr/2674/docs/iroh/blobs/store/trait.ReadableStore.html b/pr/2674/docs/iroh/blobs/store/trait.ReadableStore.html index 2ea56b7b93..5d87077deb 100644 --- a/pr/2674/docs/iroh/blobs/store/trait.ReadableStore.html +++ b/pr/2674/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

source ·
pub trait ReadableStore: Map {
     // Required methods
     fn blobs(
         &self
@@ -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§

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 diff --git a/pr/2674/docs/iroh/blobs/store/trait.Store.html b/pr/2674/docs/iroh/blobs/store/trait.Store.html index d6f95e649c..199d857b91 100644 --- a/pr/2674/docs/iroh/blobs/store/trait.Store.html +++ b/pr/2674/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

source ·
pub trait Store: ReadableStore + MapMut + Debug {
 
Show 15 methods // Required methods fn import_file( &self, @@ -151,4 +151,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§

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 diff --git a/pr/2674/docs/iroh/blobs/store/type.DbIter.html b/pr/2674/docs/iroh/blobs/store/type.DbIter.html index 8f7a59cca3..fc3ed602e3 100644 --- a/pr/2674/docs/iroh/blobs/store/type.DbIter.html +++ b/pr/2674/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

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.

Aliased Type§

struct DbIter<T>(/* private fields */);
\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/store/type.ExportProgressCb.html b/pr/2674/docs/iroh/blobs/store/type.ExportProgressCb.html index 476ca4f6fc..4adc23d623 100644 --- a/pr/2674/docs/iroh/blobs/store/type.ExportProgressCb.html +++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/struct.Hash.html b/pr/2674/docs/iroh/blobs/struct.Hash.html index ae99e2c578..888d151546 100644 --- a/pr/2674/docs/iroh/blobs/struct.Hash.html +++ b/pr/2674/docs/iroh/blobs/struct.Hash.html @@ -1,4 +1,4 @@ -Hash in iroh::blobs - Rust

Struct iroh::blobs::Hash

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

Hash type used throughout.

+Hash in iroh::blobs - Rust

Struct iroh::blobs::Hash

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

Hash type used throughout.

Implementations§

source§

impl Hash

source

pub const EMPTY: Hash = _

The hash for the empty byte range (b"").

source

pub fn new(buf: impl AsRef<[u8]>) -> Hash

Calculate the hash of the provided bytes.

source

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

Bytes of the hash.

@@ -6,10 +6,10 @@
source

pub fn to_hex(&self) -> String

Convert the hash to a hex string.

source

pub fn fmt_short(&self) -> String

Convert to a base32 string limited to the first 10 bytes for a friendly string 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

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 From<PayloadDigest> for Hash

source§

fn from(value: PayloadDigest) -> 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.
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 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, @@ -76,7 +76,7 @@ ordering. Read more

§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
§

fn fmt_list(self) -> FmtList<Self>
where - &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+ &'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FromRef<T> for T
where T: Clone,

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an @@ -86,14 +86,7 @@ ordering. Read more
From<T>,
source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/struct.HashAndFormat.html b/pr/2674/docs/iroh/blobs/struct.HashAndFormat.html index 3ce6e40290..b4ec952c7c 100644 --- a/pr/2674/docs/iroh/blobs/struct.HashAndFormat.html +++ b/pr/2674/docs/iroh/blobs/struct.HashAndFormat.html @@ -1,4 +1,4 @@ -HashAndFormat in iroh::blobs - Rust

Struct iroh::blobs::HashAndFormat

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

Struct iroh::blobs::HashAndFormat

source ·
pub struct HashAndFormat {
     pub hash: Hash,
     pub format: BlobFormat,
 }
Expand description

A hash and format pair

@@ -81,14 +81,7 @@ Implementations may return a view over data, or an owned type
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/struct.Tag.html b/pr/2674/docs/iroh/blobs/struct.Tag.html index ecafca07cf..6b1c1836c9 100644 --- a/pr/2674/docs/iroh/blobs/struct.Tag.html +++ b/pr/2674/docs/iroh/blobs/struct.Tag.html @@ -1,9 +1,9 @@ -Tag in iroh::blobs - Rust

Struct iroh::blobs::Tag

source ·
pub struct Tag(pub Bytes);
Expand description

A tag

+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>( __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
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 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 @@ -76,14 +76,7 @@ Implementations may return a view over data, or an owned type
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/struct.TempTag.html b/pr/2674/docs/iroh/blobs/struct.TempTag.html index 8461e017c3..be5fd94477 100644 --- a/pr/2674/docs/iroh/blobs/struct.TempTag.html +++ b/pr/2674/docs/iroh/blobs/struct.TempTag.html @@ -1,4 +1,4 @@ -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

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

@@ -53,14 +53,7 @@ phase are protected.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/enum.MemOrFile.html b/pr/2674/docs/iroh/blobs/util/enum.MemOrFile.html index 4b7fd1ee5a..09db1ea248 100644 --- a/pr/2674/docs/iroh/blobs/util/enum.MemOrFile.html +++ b/pr/2674/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

source ·
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 @@ -77,14 +77,7 @@ many bytes were read. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/enum.SetTagOption.html b/pr/2674/docs/iroh/blobs/util/enum.SetTagOption.html index 76e1ca115d..6101bdb066 100644 --- a/pr/2674/docs/iroh/blobs/util/enum.SetTagOption.html +++ b/pr/2674/docs/iroh/blobs/util/enum.SetTagOption.html @@ -1,4 +1,4 @@ -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

source ·
pub enum SetTagOption {
     Auto,
     Named(Tag),
 }
Expand description

Option for commands that allow setting a tag

@@ -68,14 +68,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/fn.total_bytes.html b/pr/2674/docs/iroh/blobs/util/fn.total_bytes.html index 581cfded65..8ce127d386 100644 --- a/pr/2674/docs/iroh/blobs/util/fn.total_bytes.html +++ b/pr/2674/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

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.

If some ranges are out of bounds, they will be clamped to the size.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/util/index.html b/pr/2674/docs/iroh/blobs/util/index.html index 3d9951b1ea..d011405f06 100644 --- a/pr/2674/docs/iroh/blobs/util/index.html +++ b/pr/2674/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

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

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/io/struct.TrackingWriter.html b/pr/2674/docs/iroh/blobs/util/io/struct.TrackingWriter.html index 585febccff..8866821c2b 100644 --- a/pr/2674/docs/iroh/blobs/util/io/struct.TrackingWriter.html +++ b/pr/2674/docs/iroh/blobs/util/io/struct.TrackingWriter.html @@ -1,4 +1,4 @@ -TrackingWriter in iroh::blobs::util::io - Rust

Struct iroh::blobs::util::io::TrackingWriter

source ·
pub struct TrackingWriter<W> { /* private fields */ }
Expand description

A writer that tracks the number of bytes written

+TrackingWriter in iroh::blobs::util::io - Rust

Struct iroh::blobs::util::io::TrackingWriter

source ·
pub struct TrackingWriter<W> { /* private fields */ }
Expand description

A writer that tracks the number of bytes written

Implementations§

source§

impl<W> TrackingWriter<W>

source

pub fn new(inner: W) -> TrackingWriter<W>

Wrap a writer in a tracking writer

source

pub fn bytes_written(&self) -> u64

Get the number of bytes written

source

pub fn into_parts(self) -> (W, u64)

Get the inner writer

@@ -131,14 +131,7 @@ cleanly. Read more
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/local_pool/enum.PanicMode.html b/pr/2674/docs/iroh/blobs/util/local_pool/enum.PanicMode.html index 98f6d8bb12..5709276774 100644 --- a/pr/2674/docs/iroh/blobs/util/local_pool/enum.PanicMode.html +++ b/pr/2674/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

source ·
pub enum PanicMode {
     LogAndContinue,
     Shutdown,
 }
Expand description

What to do when a panic occurs in a pool thread

@@ -56,14 +56,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/local_pool/enum.SpawnError.html b/pr/2674/docs/iroh/blobs/util/local_pool/enum.SpawnError.html index c4d017307f..f1cc369562 100644 --- a/pr/2674/docs/iroh/blobs/util/local_pool/enum.SpawnError.html +++ b/pr/2674/docs/iroh/blobs/util/local_pool/enum.SpawnError.html @@ -1,4 +1,4 @@ -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

source ·
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.

@@ -44,14 +44,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/local_pool/index.html b/pr/2674/docs/iroh/blobs/util/local_pool/index.html index 52c86e6b01..d3b1933694 100644 --- a/pr/2674/docs/iroh/blobs/util/local_pool/index.html +++ b/pr/2674/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

source ·
Expand description

A local task pool with proper shutdown

Structs§

Enums§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/util/local_pool/struct.Config.html b/pr/2674/docs/iroh/blobs/util/local_pool/struct.Config.html index 07381756e8..2dfe320a1c 100644 --- a/pr/2674/docs/iroh/blobs/util/local_pool/struct.Config.html +++ b/pr/2674/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

source ·
pub struct Config {
     pub threads: usize,
     pub thread_name_prefix: &'static str,
     pub panic_mode: PanicMode,
@@ -50,14 +50,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/local_pool/struct.LocalPool.html b/pr/2674/docs/iroh/blobs/util/local_pool/struct.LocalPool.html index 1bc139a4cb..e425700746 100644 --- a/pr/2674/docs/iroh/blobs/util/local_pool/struct.LocalPool.html +++ b/pr/2674/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

source ·
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 @@ -104,14 +104,7 @@ spawn a task in the pool.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/local_pool/struct.LocalPoolHandle.html b/pr/2674/docs/iroh/blobs/util/local_pool/struct.LocalPoolHandle.html index ea14525f10..ebd841f33e 100644 --- a/pr/2674/docs/iroh/blobs/util/local_pool/struct.LocalPoolHandle.html +++ b/pr/2674/docs/iroh/blobs/util/local_pool/struct.LocalPoolHandle.html @@ -1,4 +1,4 @@ -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

+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

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, @@ -77,14 +77,7 @@ spawn a task in the pool.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/local_pool/struct.Run.html b/pr/2674/docs/iroh/blobs/util/local_pool/struct.Run.html index 7ab2b444b0..c4a0f673ae 100644 --- a/pr/2674/docs/iroh/blobs/util/local_pool/struct.Run.html +++ b/pr/2674/docs/iroh/blobs/util/local_pool/struct.Run.html @@ -1,4 +1,4 @@ -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

source ·
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.

@@ -128,14 +128,7 @@ fluent call chains. Read more
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<F> IntoFuture for F
where +

source§

impl<F> IntoFuture for F
where F: Future,

§

type Output = <F as Future>::Output

The output that the future will produce on completion.
§

type IntoFuture = F

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

fn into_future(self) -> <F as IntoFuture>::IntoFuture

Creates a future from a value. Read more
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/progress/enum.ProgressSendError.html b/pr/2674/docs/iroh/blobs/util/progress/enum.ProgressSendError.html index 792f12f4b7..3555d8f0b5 100644 --- a/pr/2674/docs/iroh/blobs/util/progress/enum.ProgressSendError.html +++ b/pr/2674/docs/iroh/blobs/util/progress/enum.ProgressSendError.html @@ -1,4 +1,4 @@ -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

source ·
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.

@@ -47,14 +47,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/progress/index.html b/pr/2674/docs/iroh/blobs/util/progress/index.html index 44eb09ee69..dc60377c38 100644 --- a/pr/2674/docs/iroh/blobs/util/progress/index.html +++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/util/progress/struct.AsyncChannelProgressSender.html b/pr/2674/docs/iroh/blobs/util/progress/struct.AsyncChannelProgressSender.html index 458ce3f0ed..0bc0b98dbf 100644 --- a/pr/2674/docs/iroh/blobs/util/progress/struct.AsyncChannelProgressSender.html +++ b/pr/2674/docs/iroh/blobs/util/progress/struct.AsyncChannelProgressSender.html @@ -1,4 +1,4 @@ -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.

+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 @@ -62,14 +62,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/progress/struct.BoxedProgressSender.html b/pr/2674/docs/iroh/blobs/util/progress/struct.BoxedProgressSender.html index 612c8ce3d7..c27415c64a 100644 --- a/pr/2674/docs/iroh/blobs/util/progress/struct.BoxedProgressSender.html +++ b/pr/2674/docs/iroh/blobs/util/progress/struct.BoxedProgressSender.html @@ -1,4 +1,4 @@ -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

+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 @@ -50,14 +50,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/progress/struct.FallibleProgressSliceWriter.html b/pr/2674/docs/iroh/blobs/util/progress/struct.FallibleProgressSliceWriter.html index 301f42a0d2..6cfffe4279 100644 --- a/pr/2674/docs/iroh/blobs/util/progress/struct.FallibleProgressSliceWriter.html +++ b/pr/2674/docs/iroh/blobs/util/progress/struct.FallibleProgressSliceWriter.html @@ -1,4 +1,4 @@ -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

source ·
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.

@@ -71,14 +71,7 @@ an io::Result. If on_write returns an error, the downl U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/progress/struct.IgnoreProgressSender.html b/pr/2674/docs/iroh/blobs/util/progress/struct.IgnoreProgressSender.html index 23c2bedbae..3b3d93d813 100644 --- a/pr/2674/docs/iroh/blobs/util/progress/struct.IgnoreProgressSender.html +++ b/pr/2674/docs/iroh/blobs/util/progress/struct.IgnoreProgressSender.html @@ -1,4 +1,4 @@ -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.

+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 U: Send + Sync + 'static, @@ -54,14 +54,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/progress/struct.ProgressSliceWriter.html b/pr/2674/docs/iroh/blobs/util/progress/struct.ProgressSliceWriter.html index 5b5937163b..48103e82b2 100644 --- a/pr/2674/docs/iroh/blobs/util/progress/struct.ProgressSliceWriter.html +++ b/pr/2674/docs/iroh/blobs/util/progress/struct.ProgressSliceWriter.html @@ -1,4 +1,4 @@ -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

source ·
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 @@ -69,14 +69,7 @@ length of the data as the second param.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/progress/struct.WithFilterMap.html b/pr/2674/docs/iroh/blobs/util/progress/struct.WithFilterMap.html index 9d6d2c65a0..603c5d8c34 100644 --- a/pr/2674/docs/iroh/blobs/util/progress/struct.WithFilterMap.html +++ b/pr/2674/docs/iroh/blobs/util/progress/struct.WithFilterMap.html @@ -1,4 +1,4 @@ -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

source ·
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 I: ProgressSender, @@ -75,14 +75,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/progress/struct.WithMap.html b/pr/2674/docs/iroh/blobs/util/progress/struct.WithMap.html index 7b69d0502d..4de2bc5930 100644 --- a/pr/2674/docs/iroh/blobs/util/progress/struct.WithMap.html +++ b/pr/2674/docs/iroh/blobs/util/progress/struct.WithMap.html @@ -1,4 +1,4 @@ -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

source ·
pub struct WithMap<I, U, F>(/* private fields */)
 where
     I: ProgressSender,
     U: Send + Sync + 'static,
@@ -75,14 +75,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/progress/trait.IdGenerator.html b/pr/2674/docs/iroh/blobs/util/progress/trait.IdGenerator.html index 52f21740a0..719b6a9d26 100644 --- a/pr/2674/docs/iroh/blobs/util/progress/trait.IdGenerator.html +++ b/pr/2674/docs/iroh/blobs/util/progress/trait.IdGenerator.html @@ -1,4 +1,4 @@ -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

source ·
pub trait IdGenerator {
     // Required method
     fn new_id(&self) -> u64;
 }
Expand description

An id generator, to be combined with a progress sender.

diff --git a/pr/2674/docs/iroh/blobs/util/progress/trait.ProgressSender.html b/pr/2674/docs/iroh/blobs/util/progress/trait.ProgressSender.html index 9dca765686..669141feab 100644 --- a/pr/2674/docs/iroh/blobs/util/progress/trait.ProgressSender.html +++ b/pr/2674/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

source ·
pub trait ProgressSender: Debug + Clone + Send + Sync + 'static {
     type Msg: Send + Sync + 'static;
 
     // Required methods
@@ -110,4 +110,4 @@ They must also be unencumbered by lifetimes, which is ensured by the 'stat
     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 IgnoreProgressSender<T>
where - T: Send + Sync + 'static,

§

type Msg = T

\ No newline at end of file + T: Send + Sync + 'static,

§

type Msg = T

\ No newline at end of file diff --git a/pr/2674/docs/iroh/blobs/util/progress/type.ProgressSendResult.html b/pr/2674/docs/iroh/blobs/util/progress/type.ProgressSendResult.html index 1320d7d008..8a51ade447 100644 --- a/pr/2674/docs/iroh/blobs/util/progress/type.ProgressSendResult.html +++ b/pr/2674/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

source ·
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/2674/docs/iroh/blobs/util/struct.SparseMemFile.html b/pr/2674/docs/iroh/blobs/util/struct.SparseMemFile.html
index c24959dfe8..f0972ede45 100644
--- a/pr/2674/docs/iroh/blobs/util/struct.SparseMemFile.html
+++ b/pr/2674/docs/iroh/blobs/util/struct.SparseMemFile.html
@@ -1,4 +1,4 @@
-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

source ·
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.

@@ -1160,14 +1160,7 @@ ordering. Read more
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/struct.Tag.html b/pr/2674/docs/iroh/blobs/util/struct.Tag.html index 2ad7f3a3cf..a5271ff777 100644 --- a/pr/2674/docs/iroh/blobs/util/struct.Tag.html +++ b/pr/2674/docs/iroh/blobs/util/struct.Tag.html @@ -1,9 +1,9 @@ -Tag in iroh::blobs::util - Rust

Struct iroh::blobs::util::Tag

source ·
pub struct Tag(pub Bytes);
Expand description

A tag

+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>( __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
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 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 @@ -76,14 +76,7 @@ Implementations may return a view over data, or an owned type
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/struct.TempTag.html b/pr/2674/docs/iroh/blobs/util/struct.TempTag.html index dc3152eb30..6f71116e2c 100644 --- a/pr/2674/docs/iroh/blobs/util/struct.TempTag.html +++ b/pr/2674/docs/iroh/blobs/util/struct.TempTag.html @@ -1,4 +1,4 @@ -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

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

@@ -53,14 +53,7 @@ phase are protected.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/blobs/util/trait.TagCounter.html b/pr/2674/docs/iroh/blobs/util/trait.TagCounter.html index 87d5d88944..d4dec1e94f 100644 --- a/pr/2674/docs/iroh/blobs/util/trait.TagCounter.html +++ b/pr/2674/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

source ·
pub trait TagCounter: Sized + TagDrop {
     // Required method
     fn on_create(&self, inner: &HashAndFormat);
 
@@ -14,4 +14,4 @@ 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 +

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 diff --git a/pr/2674/docs/iroh/blobs/util/trait.TagDrop.html b/pr/2674/docs/iroh/blobs/util/trait.TagDrop.html index 3eaf669d7c..0b4ebe6f11 100644 --- a/pr/2674/docs/iroh/blobs/util/trait.TagDrop.html +++ b/pr/2674/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

source ·
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 +

Implementations on Foreign Types§

source§

impl TagDrop for RwLock<TempCounterMap>

source§

fn on_drop(&self, content: &HashAndFormat)

Implementors§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/client/authors/index.html b/pr/2674/docs/iroh/client/authors/index.html index 7bc3eccd99..36b1951523 100644 --- a/pr/2674/docs/iroh/client/authors/index.html +++ b/pr/2674/docs/iroh/client/authors/index.html @@ -1,4 +1,4 @@ -iroh::client::authors - Rust

Module iroh::client::authors

source ·
Expand description

API for author management.

+iroh::client::authors - Rust

Module iroh::client::authors

source ·
Expand description

API for author management.

The main entry point is the Client.

You obtain a Client via Iroh::authors().

Structs§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/client/authors/struct.Client.html b/pr/2674/docs/iroh/client/authors/struct.Client.html index 75505f309e..eae92877f5 100644 --- a/pr/2674/docs/iroh/client/authors/struct.Client.html +++ b/pr/2674/docs/iroh/client/authors/struct.Client.html @@ -1,4 +1,4 @@ -Client in iroh::client::authors - Rust

Struct iroh::client::authors::Client

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

Iroh authors client.

+Client in iroh::client::authors - Rust

Struct iroh::client::authors::Client

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

Iroh authors client.

Implementations§

source§

impl Client

source

pub async fn create(&self) -> Result<AuthorId>

Creates a new document author.

You likely want to save the returned AuthorId somewhere so that you can use this author again.

@@ -64,14 +64,7 @@ reloaded after a restart.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/enum.BlobStatus.html b/pr/2674/docs/iroh/client/blobs/enum.BlobStatus.html index fbf8e72e6d..4a4a664a29 100644 --- a/pr/2674/docs/iroh/client/blobs/enum.BlobStatus.html +++ b/pr/2674/docs/iroh/client/blobs/enum.BlobStatus.html @@ -1,4 +1,4 @@ -BlobStatus in iroh::client::blobs - Rust

Enum iroh::client::blobs::BlobStatus

source ·
pub enum BlobStatus {
+BlobStatus in iroh::client::blobs - Rust

Enum iroh::client::blobs::BlobStatus

source ·
pub enum BlobStatus {
     NotFound,
     Partial {
         size: BaoBlobSize,
@@ -64,14 +64,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/enum.DownloadMode.html b/pr/2674/docs/iroh/client/blobs/enum.DownloadMode.html index 185f809b95..76af099fb4 100644 --- a/pr/2674/docs/iroh/client/blobs/enum.DownloadMode.html +++ b/pr/2674/docs/iroh/client/blobs/enum.DownloadMode.html @@ -1,4 +1,4 @@ -DownloadMode in iroh::client::blobs - Rust

Enum iroh::client::blobs::DownloadMode

source ·
pub enum DownloadMode {
+DownloadMode in iroh::client::blobs - Rust

Enum iroh::client::blobs::DownloadMode

source ·
pub enum DownloadMode {
     Direct,
     Queued,
 }
Expand description

Set the mode for whether to directly start the download or add it to the download queue.

@@ -53,14 +53,7 @@ concurrency.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/enum.WrapOption.html b/pr/2674/docs/iroh/client/blobs/enum.WrapOption.html index 1d74951b82..0def1a71fb 100644 --- a/pr/2674/docs/iroh/client/blobs/enum.WrapOption.html +++ b/pr/2674/docs/iroh/client/blobs/enum.WrapOption.html @@ -1,4 +1,4 @@ -WrapOption in iroh::client::blobs - Rust

Enum iroh::client::blobs::WrapOption

source ·
pub enum WrapOption {
+WrapOption in iroh::client::blobs - Rust

Enum iroh::client::blobs::WrapOption

source ·
pub enum WrapOption {
     NoWrap,
     Wrap {
         name: Option<String>,
@@ -53,14 +53,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/index.html b/pr/2674/docs/iroh/client/blobs/index.html index 806339c3e1..0f8955e353 100644 --- a/pr/2674/docs/iroh/client/blobs/index.html +++ b/pr/2674/docs/iroh/client/blobs/index.html @@ -1,4 +1,4 @@ -iroh::client::blobs - Rust

Module iroh::client::blobs

source ·
Expand description

API for blobs management.

+iroh::client::blobs - Rust

Module iroh::client::blobs

source ·
Expand description

API for blobs management.

The main entry point is the Client.

You obtain a Client via Iroh::blobs().

§Interacting with the local blob store

§Importing data

diff --git a/pr/2674/docs/iroh/client/blobs/struct.AddDirOpts.html b/pr/2674/docs/iroh/client/blobs/struct.AddDirOpts.html index bc76aeaa36..fec819354b 100644 --- a/pr/2674/docs/iroh/client/blobs/struct.AddDirOpts.html +++ b/pr/2674/docs/iroh/client/blobs/struct.AddDirOpts.html @@ -1,4 +1,4 @@ -AddDirOpts in iroh::client::blobs - Rust

Struct iroh::client::blobs::AddDirOpts

source ·
pub struct AddDirOpts {
+AddDirOpts in iroh::client::blobs - Rust

Struct iroh::client::blobs::AddDirOpts

source ·
pub struct AddDirOpts {
     pub import_mode: ImportMode,
     pub wrap: WrapOption,
     pub io_parallelism: usize,
@@ -50,14 +50,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/struct.AddFileOpts.html b/pr/2674/docs/iroh/client/blobs/struct.AddFileOpts.html index 39d728110c..06a8899250 100644 --- a/pr/2674/docs/iroh/client/blobs/struct.AddFileOpts.html +++ b/pr/2674/docs/iroh/client/blobs/struct.AddFileOpts.html @@ -1,4 +1,4 @@ -AddFileOpts in iroh::client::blobs - Rust

Struct iroh::client::blobs::AddFileOpts

source ·
pub struct AddFileOpts {
+AddFileOpts in iroh::client::blobs - Rust

Struct iroh::client::blobs::AddFileOpts

source ·
pub struct AddFileOpts {
     pub import_mode: ImportMode,
     pub format: BlobFormat,
 }
Expand description

Options for adding a file as a blob

@@ -48,14 +48,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/struct.AddOutcome.html b/pr/2674/docs/iroh/client/blobs/struct.AddOutcome.html index 26092b277f..b3d5a9aaef 100644 --- a/pr/2674/docs/iroh/client/blobs/struct.AddOutcome.html +++ b/pr/2674/docs/iroh/client/blobs/struct.AddOutcome.html @@ -1,4 +1,4 @@ -AddOutcome in iroh::client::blobs - Rust

Struct iroh::client::blobs::AddOutcome

source ·
pub struct AddOutcome {
+AddOutcome in iroh::client::blobs - Rust

Struct iroh::client::blobs::AddOutcome

source ·
pub struct AddOutcome {
     pub hash: Hash,
     pub format: BlobFormat,
     pub size: u64,
@@ -52,14 +52,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/struct.AddProgress.html b/pr/2674/docs/iroh/client/blobs/struct.AddProgress.html index 7394cee9b3..8bda8690eb 100644 --- a/pr/2674/docs/iroh/client/blobs/struct.AddProgress.html +++ b/pr/2674/docs/iroh/client/blobs/struct.AddProgress.html @@ -1,4 +1,4 @@ -AddProgress in iroh::client::blobs - Rust

Struct iroh::client::blobs::AddProgress

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

Progress stream for blob add operations.

+AddProgress in iroh::client::blobs - Rust

Struct iroh::client::blobs::AddProgress

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

Progress stream for blob add operations.

Implementations§

source§

impl AddProgress

source

pub async fn finish(self) -> Result<AddOutcome>

Finish writing the stream, ignoring all intermediate progress events.

Returns a AddOutcome which contains a tag, format, hash and a size. When importing a single blob, this is the hash and size of that blob. @@ -150,14 +150,7 @@ fluent call chains. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<F> IntoFuture for F
where +

source§

impl<F> IntoFuture for F
where F: Future,

§

type Output = <F as Future>::Output

The output that the future will produce on completion.
§

type IntoFuture = F

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

fn into_future(self) -> <F as IntoFuture>::IntoFuture

Creates a future from a value. Read more
§

impl<S> IntoStream for S
where S: Stream,

§

type Item = <S as Stream>::Item

The type of the elements being iterated over.
§

type IntoStream = S

Which kind of stream are we turning this into?
§

fn into_stream(self) -> S

Creates a stream from a value.
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/struct.AddReaderOpts.html b/pr/2674/docs/iroh/client/blobs/struct.AddReaderOpts.html index ce050d7f56..e323bfac0a 100644 --- a/pr/2674/docs/iroh/client/blobs/struct.AddReaderOpts.html +++ b/pr/2674/docs/iroh/client/blobs/struct.AddReaderOpts.html @@ -1,4 +1,4 @@ -AddReaderOpts in iroh::client::blobs - Rust

Struct iroh::client::blobs::AddReaderOpts

source ·
pub struct AddReaderOpts {
+AddReaderOpts in iroh::client::blobs - Rust

Struct iroh::client::blobs::AddReaderOpts

source ·
pub struct AddReaderOpts {
     pub format: BlobFormat,
     pub chunk_size: usize,
 }
Expand description

Options for adding a directory as a collection

@@ -48,14 +48,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/struct.Batch.html b/pr/2674/docs/iroh/client/blobs/struct.Batch.html index 7ae249180a..a2587cd46a 100644 --- a/pr/2674/docs/iroh/client/blobs/struct.Batch.html +++ b/pr/2674/docs/iroh/client/blobs/struct.Batch.html @@ -1,4 +1,4 @@ -Batch in iroh::client::blobs - Rust

Struct iroh::client::blobs::Batch

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

A batch for write operations.

+Batch in iroh::client::blobs - Rust

Struct iroh::client::blobs::Batch

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

A batch for write operations.

This serves mostly as a scope for temporary tags.

It is not a transaction, so things in a batch are not atomic. Also, there is no isolation between batches.

@@ -122,14 +122,7 @@ an automatically generated name.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/struct.BlobInfo.html b/pr/2674/docs/iroh/client/blobs/struct.BlobInfo.html index 056705192f..f5eb72dcfa 100644 --- a/pr/2674/docs/iroh/client/blobs/struct.BlobInfo.html +++ b/pr/2674/docs/iroh/client/blobs/struct.BlobInfo.html @@ -1,4 +1,4 @@ -BlobInfo in iroh::client::blobs - Rust

Struct iroh::client::blobs::BlobInfo

source ·
pub struct BlobInfo {
+BlobInfo in iroh::client::blobs - Rust

Struct iroh::client::blobs::BlobInfo

source ·
pub struct BlobInfo {
     pub path: String,
     pub hash: Hash,
     pub size: u64,
@@ -50,14 +50,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/struct.Client.html b/pr/2674/docs/iroh/client/blobs/struct.Client.html index cdcea8a579..ecde1b8c65 100644 --- a/pr/2674/docs/iroh/client/blobs/struct.Client.html +++ b/pr/2674/docs/iroh/client/blobs/struct.Client.html @@ -1,4 +1,4 @@ -Client in iroh::client::blobs - Rust

Struct iroh::client::blobs::Client

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

Iroh blobs client.

+Client in iroh::client::blobs - Rust

Struct iroh::client::blobs::Client

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

Iroh blobs client.

Implementations§

source§

impl Client

source

pub async fn status(&self, hash: Hash) -> Result<BlobStatus>

Check if a blob is completely stored on the node.

Note that this will return false for blobs that are partially stored on the node.

@@ -162,14 +162,7 @@ node to remove data that is not tagged.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/struct.CollectionInfo.html b/pr/2674/docs/iroh/client/blobs/struct.CollectionInfo.html index 6f3b546299..755982693f 100644 --- a/pr/2674/docs/iroh/client/blobs/struct.CollectionInfo.html +++ b/pr/2674/docs/iroh/client/blobs/struct.CollectionInfo.html @@ -1,4 +1,4 @@ -CollectionInfo in iroh::client::blobs - Rust

Struct iroh::client::blobs::CollectionInfo

source ·
pub struct CollectionInfo {
+CollectionInfo in iroh::client::blobs - Rust

Struct iroh::client::blobs::CollectionInfo

source ·
pub struct CollectionInfo {
     pub tag: Tag,
     pub hash: Hash,
     pub total_blobs_count: Option<u64>,
@@ -54,14 +54,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/struct.DownloadOptions.html b/pr/2674/docs/iroh/client/blobs/struct.DownloadOptions.html index f5c7e3f71a..d405695c09 100644 --- a/pr/2674/docs/iroh/client/blobs/struct.DownloadOptions.html +++ b/pr/2674/docs/iroh/client/blobs/struct.DownloadOptions.html @@ -1,4 +1,4 @@ -DownloadOptions in iroh::client::blobs - Rust

Struct iroh::client::blobs::DownloadOptions

source ·
pub struct DownloadOptions {
+DownloadOptions in iroh::client::blobs - Rust

Struct iroh::client::blobs::DownloadOptions

source ·
pub struct DownloadOptions {
     pub format: BlobFormat,
     pub nodes: Vec<NodeAddr>,
     pub tag: SetTagOption,
@@ -58,14 +58,7 @@ if the concurrency limits permit.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/struct.DownloadOutcome.html b/pr/2674/docs/iroh/client/blobs/struct.DownloadOutcome.html index c654b8462a..ab9a0979ac 100644 --- a/pr/2674/docs/iroh/client/blobs/struct.DownloadOutcome.html +++ b/pr/2674/docs/iroh/client/blobs/struct.DownloadOutcome.html @@ -1,4 +1,4 @@ -DownloadOutcome in iroh::client::blobs - Rust

Struct iroh::client::blobs::DownloadOutcome

source ·
pub struct DownloadOutcome {
+DownloadOutcome in iroh::client::blobs - Rust

Struct iroh::client::blobs::DownloadOutcome

source ·
pub struct DownloadOutcome {
     pub local_size: u64,
     pub downloaded_size: u64,
     pub stats: Stats,
@@ -50,14 +50,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/struct.DownloadProgress.html b/pr/2674/docs/iroh/client/blobs/struct.DownloadProgress.html index 8f56d0f2d0..4ac03562c2 100644 --- a/pr/2674/docs/iroh/client/blobs/struct.DownloadProgress.html +++ b/pr/2674/docs/iroh/client/blobs/struct.DownloadProgress.html @@ -1,4 +1,4 @@ -DownloadProgress in iroh::client::blobs - Rust

Struct iroh::client::blobs::DownloadProgress

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

Progress stream for blob download operations.

+DownloadProgress in iroh::client::blobs - Rust

Struct iroh::client::blobs::DownloadProgress

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

Progress stream for blob download operations.

Implementations§

source§

impl DownloadProgress

source

pub fn new( stream: impl Stream<Item = Result<impl Into<BytesDownloadProgress>, impl Into<Error>>> + Send + Unpin + 'static ) -> Self

Create a DownloadProgress that can help you easily poll the BytesDownloadProgress stream from your download until it is finished or errors.

@@ -151,14 +151,7 @@ fluent call chains. Read more
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<F> IntoFuture for F
where +

source§

impl<F> IntoFuture for F
where F: Future,

§

type Output = <F as Future>::Output

The output that the future will produce on completion.
§

type IntoFuture = F

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

fn into_future(self) -> <F as IntoFuture>::IntoFuture

Creates a future from a value. Read more
§

impl<S> IntoStream for S
where S: Stream,

§

type Item = <S as Stream>::Item

The type of the elements being iterated over.
§

type IntoStream = S

Which kind of stream are we turning this into?
§

fn into_stream(self) -> S

Creates a stream from a value.
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/struct.ExportOutcome.html b/pr/2674/docs/iroh/client/blobs/struct.ExportOutcome.html index 0cc5b242e2..c2c6db61f5 100644 --- a/pr/2674/docs/iroh/client/blobs/struct.ExportOutcome.html +++ b/pr/2674/docs/iroh/client/blobs/struct.ExportOutcome.html @@ -1,4 +1,4 @@ -ExportOutcome in iroh::client::blobs - Rust

Struct iroh::client::blobs::ExportOutcome

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

Outcome of a blob export operation.

+ExportOutcome in iroh::client::blobs - Rust

Struct iroh::client::blobs::ExportOutcome

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

Outcome of a blob export operation.

Trait Implementations§

source§

impl Clone for ExportOutcome

source§

fn clone(&self) -> ExportOutcome

Returns a 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 ExportOutcome

source§

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

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

impl PartialEq for ExportOutcome

source§

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

source§

impl StructuralPartialEq for ExportOutcome

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where @@ -49,14 +49,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/struct.ExportProgress.html b/pr/2674/docs/iroh/client/blobs/struct.ExportProgress.html index dcf646e4e4..2165a0cfdf 100644 --- a/pr/2674/docs/iroh/client/blobs/struct.ExportProgress.html +++ b/pr/2674/docs/iroh/client/blobs/struct.ExportProgress.html @@ -1,4 +1,4 @@ -ExportProgress in iroh::client::blobs - Rust

Struct iroh::client::blobs::ExportProgress

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

Progress stream for blob export operations.

+ExportProgress in iroh::client::blobs - Rust

Struct iroh::client::blobs::ExportProgress

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

Progress stream for blob export operations.

Implementations§

source§

impl ExportProgress

source

pub fn new( stream: impl Stream<Item = Result<impl Into<BytesExportProgress>, impl Into<Error>>> + Send + Unpin + 'static ) -> Self

Create a ExportProgress that can help you easily poll the BytesExportProgress stream from your @@ -150,14 +150,7 @@ fluent call chains. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<F> IntoFuture for F
where +

source§

impl<F> IntoFuture for F
where F: Future,

§

type Output = <F as Future>::Output

The output that the future will produce on completion.
§

type IntoFuture = F

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

fn into_future(self) -> <F as IntoFuture>::IntoFuture

Creates a future from a value. Read more
§

impl<S> IntoStream for S
where S: Stream,

§

type Item = <S as Stream>::Item

The type of the elements being iterated over.
§

type IntoStream = S

Which kind of stream are we turning this into?
§

fn into_stream(self) -> S

Creates a stream from a value.
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/struct.IncompleteBlobInfo.html b/pr/2674/docs/iroh/client/blobs/struct.IncompleteBlobInfo.html index fb4e02c516..3697598056 100644 --- a/pr/2674/docs/iroh/client/blobs/struct.IncompleteBlobInfo.html +++ b/pr/2674/docs/iroh/client/blobs/struct.IncompleteBlobInfo.html @@ -1,4 +1,4 @@ -IncompleteBlobInfo in iroh::client::blobs - Rust

Struct iroh::client::blobs::IncompleteBlobInfo

source ·
pub struct IncompleteBlobInfo {
+IncompleteBlobInfo in iroh::client::blobs - Rust

Struct iroh::client::blobs::IncompleteBlobInfo

source ·
pub struct IncompleteBlobInfo {
     pub size: u64,
     pub expected_size: u64,
     pub hash: Hash,
@@ -50,14 +50,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/blobs/struct.Reader.html b/pr/2674/docs/iroh/client/blobs/struct.Reader.html index ffb3c94341..affb1b57d7 100644 --- a/pr/2674/docs/iroh/client/blobs/struct.Reader.html +++ b/pr/2674/docs/iroh/client/blobs/struct.Reader.html @@ -1,4 +1,4 @@ -Reader in iroh::client::blobs - Rust

Struct iroh::client::blobs::Reader

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

Data reader for a single blob.

+Reader in iroh::client::blobs - Rust

Struct iroh::client::blobs::Reader

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

Data reader for a single blob.

Implements [AsyncRead].

Implementations§

source§

impl Reader

source

pub fn size(&self) -> u64

Total size of this blob.

source

pub fn is_complete(&self) -> bool

Whether this blob has been downloaded completely.

@@ -135,14 +135,7 @@ discarding others if any.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<S> IntoStream for S
where +

§

impl<S> IntoStream for S
where S: Stream,

§

type Item = <S as Stream>::Item

The type of the elements being iterated over.
§

type IntoStream = S

Which kind of stream are we turning this into?
§

fn into_stream(self) -> S

Creates a stream from a value.
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/docs/enum.ImportProgress.html b/pr/2674/docs/iroh/client/docs/enum.ImportProgress.html index e00b67e002..248e112417 100644 --- a/pr/2674/docs/iroh/client/docs/enum.ImportProgress.html +++ b/pr/2674/docs/iroh/client/docs/enum.ImportProgress.html @@ -1,4 +1,4 @@ -ImportProgress in iroh::client::docs - Rust

Enum iroh::client::docs::ImportProgress

source ·
pub enum ImportProgress {
+ImportProgress in iroh::client::docs - Rust

Enum iroh::client::docs::ImportProgress

source ·
pub enum ImportProgress {
     Found {
         id: u64,
         name: String,
@@ -78,14 +78,7 @@ file as an entry in the doc.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/docs/enum.LiveEvent.html b/pr/2674/docs/iroh/client/docs/enum.LiveEvent.html index 10912ba3d4..2203056e38 100644 --- a/pr/2674/docs/iroh/client/docs/enum.LiveEvent.html +++ b/pr/2674/docs/iroh/client/docs/enum.LiveEvent.html @@ -1,4 +1,4 @@ -LiveEvent in iroh::client::docs - Rust

Enum iroh::client::docs::LiveEvent

source ·
pub enum LiveEvent {
+LiveEvent in iroh::client::docs - Rust

Enum iroh::client::docs::LiveEvent

source ·
pub enum LiveEvent {
     InsertLocal {
         entry: Entry,
     },
@@ -84,14 +84,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/docs/enum.Origin.html b/pr/2674/docs/iroh/client/docs/enum.Origin.html index 0e041842e2..44bbccd4d1 100644 --- a/pr/2674/docs/iroh/client/docs/enum.Origin.html +++ b/pr/2674/docs/iroh/client/docs/enum.Origin.html @@ -1,4 +1,4 @@ -Origin in iroh::client::docs - Rust

Enum iroh::client::docs::Origin

source ·
pub enum Origin {
+Origin in iroh::client::docs - Rust

Enum iroh::client::docs::Origin

source ·
pub enum Origin {
     Connect(SyncReason),
     Accept,
 }
Expand description

Why we performed a sync exchange

@@ -61,14 +61,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/docs/enum.ShareMode.html b/pr/2674/docs/iroh/client/docs/enum.ShareMode.html index 550bef5942..c02884efa9 100644 --- a/pr/2674/docs/iroh/client/docs/enum.ShareMode.html +++ b/pr/2674/docs/iroh/client/docs/enum.ShareMode.html @@ -1,11 +1,11 @@ -ShareMode in iroh::client::docs - Rust

Enum iroh::client::docs::ShareMode

source ·
pub enum ShareMode {
+ShareMode in iroh::client::docs - Rust

Enum iroh::client::docs::ShareMode

source ·
pub enum ShareMode {
     Read,
     Write,
 }
Expand description

Intended capability for document share tickets

Variants§

§

Read

Read-only access

§

Write

Write access

-

Trait Implementations§

source§

impl Clone for ShareMode

source§

fn clone(&self) -> ShareMode

Returns a 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 ShareMode

source§

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

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

impl<'de> Deserialize<'de> for ShareMode

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 ShareMode

source§

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

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

impl FromStr for ShareMode

§

type Err = FromStrError

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

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

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

impl Serialize for ShareMode

source§

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

Trait Implementations§

source§

impl Clone for ShareMode

source§

fn clone(&self) -> ShareMode

Returns a 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 ShareMode

source§

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

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

impl<'de> Deserialize<'de> for ShareMode

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 ShareMode

source§

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

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

impl FromStr for ShareMode

§

type Err = FromStrError

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

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

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

impl Serialize for ShareMode

source§

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

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where 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 @@ -50,14 +50,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/docs/enum.SyncReason.html b/pr/2674/docs/iroh/client/docs/enum.SyncReason.html index d6c2bfaa26..d8ce22defa 100644 --- a/pr/2674/docs/iroh/client/docs/enum.SyncReason.html +++ b/pr/2674/docs/iroh/client/docs/enum.SyncReason.html @@ -1,4 +1,4 @@ -SyncReason in iroh::client::docs - Rust

Enum iroh::client::docs::SyncReason

source ·
pub enum SyncReason {
+SyncReason in iroh::client::docs - Rust

Enum iroh::client::docs::SyncReason

source ·
pub enum SyncReason {
     DirectJoin,
     NewNeighbor,
     SyncReport,
@@ -65,14 +65,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/docs/index.html b/pr/2674/docs/iroh/client/docs/index.html index 837d69d77c..2ae999271f 100644 --- a/pr/2674/docs/iroh/client/docs/index.html +++ b/pr/2674/docs/iroh/client/docs/index.html @@ -1,4 +1,4 @@ -iroh::client::docs - Rust

Module iroh::client::docs

source ·
Expand description

API for document management.

+iroh::client::docs - Rust

Module iroh::client::docs

source ·
Expand description

API for document management.

The main entry point is the Client.

You obtain a Client via Iroh::docs().

Structs§

Enums§

  • Progress messages for an doc import operation
  • Events informing about actions of the live sync progress.
  • Why we performed a sync exchange
  • Intended capability for document share tickets
  • Why we started a sync request
\ No newline at end of file diff --git a/pr/2674/docs/iroh/client/docs/struct.Client.html b/pr/2674/docs/iroh/client/docs/struct.Client.html index 54beb293eb..2a67f06ef9 100644 --- a/pr/2674/docs/iroh/client/docs/struct.Client.html +++ b/pr/2674/docs/iroh/client/docs/struct.Client.html @@ -1,4 +1,4 @@ -Client in iroh::client::docs - Rust

Struct iroh::client::docs::Client

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

Iroh docs client.

+Client in iroh::client::docs - Rust

Struct iroh::client::docs::Client

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

Iroh docs client.

Implementations§

source§

impl Client

source

pub async fn create(&self) -> Result<Doc>

Creates a new document.

source

pub async fn drop_doc(&self, doc_id: NamespaceId) -> Result<()>

Deletes a document from the local node.

This is a destructive operation. Both the document secret key and all entries in the @@ -63,14 +63,7 @@ method after starting the node is guaranteed to not miss any sync events.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/docs/struct.Doc.html b/pr/2674/docs/iroh/client/docs/struct.Doc.html index 5b193d7de8..91d5033b79 100644 --- a/pr/2674/docs/iroh/client/docs/struct.Doc.html +++ b/pr/2674/docs/iroh/client/docs/struct.Doc.html @@ -1,4 +1,4 @@ -Doc in iroh::client::docs - Rust

Struct iroh::client::docs::Doc

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

Document handle

+Doc in iroh::client::docs - Rust

Struct iroh::client::docs::Doc

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

Document handle

Implementations§

source§

impl Doc

source

pub fn id(&self) -> NamespaceId

Returns the document id of this doc.

source

pub async fn close(&self) -> Result<()>

Closes the document.

source

pub async fn set_bytes( @@ -109,14 +109,7 @@ sufficient, and should not be overridden without very good reason.

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/docs/struct.Entry.html b/pr/2674/docs/iroh/client/docs/struct.Entry.html index f5d6b2f838..f663b7f217 100644 --- a/pr/2674/docs/iroh/client/docs/struct.Entry.html +++ b/pr/2674/docs/iroh/client/docs/struct.Entry.html @@ -1,4 +1,4 @@ -Entry in iroh::client::docs - Rust

Struct iroh::client::docs::Entry

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

A single entry in a Doc.

+Entry in iroh::client::docs - Rust

Struct iroh::client::docs::Entry

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

A single entry in a Doc.

Implementations§

source§

impl Entry

source

pub fn id(&self) -> &RecordIdentifier

Returns the RecordIdentifier for this entry.

source

pub fn author(&self) -> AuthorId

Returns the AuthorId of this entry.

source

pub fn content_hash(&self) -> Hash

Returns the Hash of the content data of this record.

@@ -16,7 +16,7 @@ ) -> Result<Bytes>

Reads all content of an Entry into a buffer.

You can pass either a Doc or the Iroh client by reference as client.

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<'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<Entry> for Entry

source§

fn from(value: Entry) -> Self

Converts to this type from the input type.
source§

impl From<SignedEntry> for Entry

source§

fn from(value: SignedEntry) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Entry

source§

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

source§

fn from(value: Entry) -> Self

Converts to this type from the input type.
source§

impl From<SignedEntry> for Entry

source§

fn from(value: SignedEntry) -> Self

Converts to this type from the input type.
source§

impl PartialEq for Entry

source§

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

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 Entry

source§

impl StructuralPartialEq for Entry

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 @@ -67,14 +67,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/docs/struct.ExportFileOutcome.html b/pr/2674/docs/iroh/client/docs/struct.ExportFileOutcome.html index fdf9a3801b..f80afa866e 100644 --- a/pr/2674/docs/iroh/client/docs/struct.ExportFileOutcome.html +++ b/pr/2674/docs/iroh/client/docs/struct.ExportFileOutcome.html @@ -1,4 +1,4 @@ -ExportFileOutcome in iroh::client::docs - Rust

Struct iroh::client::docs::ExportFileOutcome

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

Outcome of a Doc::export_file operation

+ExportFileOutcome in iroh::client::docs - Rust

Struct iroh::client::docs::ExportFileOutcome

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

Outcome of a Doc::export_file operation

Trait Implementations§

source§

impl Clone for ExportFileOutcome

source§

fn clone(&self) -> ExportFileOutcome

Returns a 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 ExportFileOutcome

source§

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

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

impl PartialEq for ExportFileOutcome

source§

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

source§

impl StructuralPartialEq for ExportFileOutcome

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where @@ -49,14 +49,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/docs/struct.ExportFileProgress.html b/pr/2674/docs/iroh/client/docs/struct.ExportFileProgress.html index 27d42ffdf0..3db02f7e7d 100644 --- a/pr/2674/docs/iroh/client/docs/struct.ExportFileProgress.html +++ b/pr/2674/docs/iroh/client/docs/struct.ExportFileProgress.html @@ -1,4 +1,4 @@ -ExportFileProgress in iroh::client::docs - Rust

Struct iroh::client::docs::ExportFileProgress

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

Progress stream for Doc::export_file.

+ExportFileProgress in iroh::client::docs - Rust

Struct iroh::client::docs::ExportFileProgress

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

Progress stream for Doc::export_file.

Implementations§

source§

impl ExportFileProgress

source

pub async fn finish(self) -> Result<ExportFileOutcome>

Iterates through the export progress stream, returning when the stream has completed.

Returns a ExportFileOutcome which contains a file path the data was written to and the size of the content.

Trait Implementations§

source§

impl Debug for ExportFileProgress

source§

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

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

impl Stream for ExportFileProgress

§

type Item = Result<ExportProgress, Error>

Values yielded by the stream.
source§

fn poll_next( @@ -70,14 +70,7 @@ discarding others if any.

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<S> IntoStream for S
where +

§

impl<S> IntoStream for S
where S: Stream,

§

type Item = <S as Stream>::Item

The type of the elements being iterated over.
§

type IntoStream = S

Which kind of stream are we turning this into?
§

fn into_stream(self) -> S

Creates a stream from a value.
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/docs/struct.ImportFileOutcome.html b/pr/2674/docs/iroh/client/docs/struct.ImportFileOutcome.html index 182de9ec67..4d91b0a12f 100644 --- a/pr/2674/docs/iroh/client/docs/struct.ImportFileOutcome.html +++ b/pr/2674/docs/iroh/client/docs/struct.ImportFileOutcome.html @@ -1,4 +1,4 @@ -ImportFileOutcome in iroh::client::docs - Rust

Struct iroh::client::docs::ImportFileOutcome

source ·
pub struct ImportFileOutcome {
+ImportFileOutcome in iroh::client::docs - Rust

Struct iroh::client::docs::ImportFileOutcome

source ·
pub struct ImportFileOutcome {
     pub hash: Hash,
     pub size: u64,
     pub key: Bytes,
@@ -56,14 +56,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/docs/struct.ImportFileProgress.html b/pr/2674/docs/iroh/client/docs/struct.ImportFileProgress.html index c21cd20c77..2799631df4 100644 --- a/pr/2674/docs/iroh/client/docs/struct.ImportFileProgress.html +++ b/pr/2674/docs/iroh/client/docs/struct.ImportFileProgress.html @@ -1,4 +1,4 @@ -ImportFileProgress in iroh::client::docs - Rust

Struct iroh::client::docs::ImportFileProgress

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

Progress stream for Doc::import_file.

+ImportFileProgress in iroh::client::docs - Rust

Struct iroh::client::docs::ImportFileProgress

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

Progress stream for Doc::import_file.

Implementations§

source§

impl ImportFileProgress

source

pub async fn finish(self) -> Result<ImportFileOutcome>

Finishes writing the stream, ignoring all intermediate progress events.

Returns a ImportFileOutcome which contains a tag, key, and hash and the size of the content.

@@ -71,14 +71,7 @@ discarding others if any.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<S> IntoStream for S
where +

§

impl<S> IntoStream for S
where S: Stream,

§

type Item = <S as Stream>::Item

The type of the elements being iterated over.
§

type IntoStream = S

Which kind of stream are we turning this into?
§

fn into_stream(self) -> S

Creates a stream from a value.
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/docs/struct.SyncEvent.html b/pr/2674/docs/iroh/client/docs/struct.SyncEvent.html index 4ce540f058..40ad1b07d3 100644 --- a/pr/2674/docs/iroh/client/docs/struct.SyncEvent.html +++ b/pr/2674/docs/iroh/client/docs/struct.SyncEvent.html @@ -1,4 +1,4 @@ -SyncEvent in iroh::client::docs - Rust

Struct iroh::client::docs::SyncEvent

source ·
pub struct SyncEvent {
+SyncEvent in iroh::client::docs - Rust

Struct iroh::client::docs::SyncEvent

source ·
pub struct SyncEvent {
     pub peer: PublicKey,
     pub origin: Origin,
     pub finished: SystemTime,
@@ -67,14 +67,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/gossip/enum.SubscribeResponse.html b/pr/2674/docs/iroh/client/gossip/enum.SubscribeResponse.html index 8cf23f489b..ded4f5d016 100644 --- a/pr/2674/docs/iroh/client/gossip/enum.SubscribeResponse.html +++ b/pr/2674/docs/iroh/client/gossip/enum.SubscribeResponse.html @@ -1,4 +1,4 @@ -SubscribeResponse in iroh::client::gossip - Rust

Enum iroh::client::gossip::SubscribeResponse

source ·
pub enum SubscribeResponse {
+SubscribeResponse in iroh::client::gossip - Rust

Enum iroh::client::gossip::SubscribeResponse

source ·
pub enum SubscribeResponse {
     Gossip(GossipEvent),
     Lagged,
 }
Expand description

Events emitted from a gossip topic with a lagging notification.

@@ -61,14 +61,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/gossip/enum.SubscribeUpdate.html b/pr/2674/docs/iroh/client/gossip/enum.SubscribeUpdate.html index 9f83c1c17b..ac9c74f355 100644 --- a/pr/2674/docs/iroh/client/gossip/enum.SubscribeUpdate.html +++ b/pr/2674/docs/iroh/client/gossip/enum.SubscribeUpdate.html @@ -1,4 +1,4 @@ -SubscribeUpdate in iroh::client::gossip - Rust

Enum iroh::client::gossip::SubscribeUpdate

source ·
pub enum SubscribeUpdate {
+SubscribeUpdate in iroh::client::gossip - Rust

Enum iroh::client::gossip::SubscribeUpdate

source ·
pub enum SubscribeUpdate {
     Broadcast(Bytes),
     BroadcastNeighbors(Bytes),
     JoinPeers(Vec<PublicKey>),
@@ -55,14 +55,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/gossip/index.html b/pr/2674/docs/iroh/client/gossip/index.html index 74d6dd27b8..4181bc403f 100644 --- a/pr/2674/docs/iroh/client/gossip/index.html +++ b/pr/2674/docs/iroh/client/gossip/index.html @@ -1,4 +1,4 @@ -iroh::client::gossip - Rust

Module iroh::client::gossip

source ·
Expand description

Gossip client.

+iroh::client::gossip - Rust

Module iroh::client::gossip

source ·
Expand description

Gossip client.

The gossip client allows you to subscribe to gossip topics and send updates to them.

The main entry point is the Client.

You obtain a Client via Iroh::gossip().

diff --git a/pr/2674/docs/iroh/client/gossip/struct.Client.html b/pr/2674/docs/iroh/client/gossip/struct.Client.html index 4002ca8ab0..56f4acd424 100644 --- a/pr/2674/docs/iroh/client/gossip/struct.Client.html +++ b/pr/2674/docs/iroh/client/gossip/struct.Client.html @@ -1,4 +1,4 @@ -Client in iroh::client::gossip - Rust

Struct iroh::client::gossip::Client

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

Iroh gossip client.

+Client in iroh::client::gossip - Rust

Struct iroh::client::gossip::Client

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

Iroh gossip client.

Implementations§

source§

impl Client

source

pub async fn subscribe_with_opts( &self, topic: TopicId, @@ -64,14 +64,7 @@ You can adjust the buffer size with the From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/gossip/struct.SubscribeOpts.html b/pr/2674/docs/iroh/client/gossip/struct.SubscribeOpts.html index 317c02c991..318cac2d2f 100644 --- a/pr/2674/docs/iroh/client/gossip/struct.SubscribeOpts.html +++ b/pr/2674/docs/iroh/client/gossip/struct.SubscribeOpts.html @@ -1,4 +1,4 @@ -SubscribeOpts in iroh::client::gossip - Rust

Struct iroh::client::gossip::SubscribeOpts

source ·
pub struct SubscribeOpts {
+SubscribeOpts in iroh::client::gossip - Rust

Struct iroh::client::gossip::SubscribeOpts

source ·
pub struct SubscribeOpts {
     pub bootstrap: BTreeSet<NodeId>,
     pub subscription_capacity: usize,
 }
Expand description

Options for subscribing to a gossip topic.

@@ -48,14 +48,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/gossip/struct.SubscribeRequest.html b/pr/2674/docs/iroh/client/gossip/struct.SubscribeRequest.html index 3f84583b57..50cc18b2d9 100644 --- a/pr/2674/docs/iroh/client/gossip/struct.SubscribeRequest.html +++ b/pr/2674/docs/iroh/client/gossip/struct.SubscribeRequest.html @@ -1,4 +1,4 @@ -SubscribeRequest in iroh::client::gossip - Rust

Struct iroh::client::gossip::SubscribeRequest

source ·
pub struct SubscribeRequest {
+SubscribeRequest in iroh::client::gossip - Rust

Struct iroh::client::gossip::SubscribeRequest

source ·
pub struct SubscribeRequest {
     pub topic: TopicId,
     pub bootstrap: BTreeSet<NodeId>,
     pub subscription_capacity: usize,
@@ -51,14 +51,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/index.html b/pr/2674/docs/iroh/client/index.html index 4df6b8b82d..7393ddc9da 100644 --- a/pr/2674/docs/iroh/client/index.html +++ b/pr/2674/docs/iroh/client/index.html @@ -1,3 +1,3 @@ -iroh::client - Rust

Module iroh::client

source ·
Expand description

Client to an Iroh node.

+iroh::client - Rust

Module iroh::client

source ·
Expand description

Client to an Iroh node.

See the documentation for Iroh for more information.

Re-exports§

Modules§

  • API for author management.
  • API for blobs management.
  • API for document management.
  • Gossip client.
  • API to manage the iroh networking stack.
  • API for tag management.

Structs§

  • An iroh client.
  • The RPC service for the iroh provider process.

Type Aliases§

  • Iroh rpc client - boxed so that we can have a concrete type.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/client/net/index.html b/pr/2674/docs/iroh/client/net/index.html index 310d2ca40f..336d2601d9 100644 --- a/pr/2674/docs/iroh/client/net/index.html +++ b/pr/2674/docs/iroh/client/net/index.html @@ -1,4 +1,4 @@ -iroh::client::net - Rust

Module iroh::client::net

source ·
Expand description

API to manage the iroh networking stack.

+iroh::client::net - Rust

Module iroh::client::net

source ·
Expand description

API to manage the iroh networking stack.

The main entry point is the Client.

You obtain a Client via Iroh::net().

The client can be used to get information about the node, such as the diff --git a/pr/2674/docs/iroh/client/net/struct.Client.html b/pr/2674/docs/iroh/client/net/struct.Client.html index bcb87b968b..391ef3aa81 100644 --- a/pr/2674/docs/iroh/client/net/struct.Client.html +++ b/pr/2674/docs/iroh/client/net/struct.Client.html @@ -1,4 +1,4 @@ -Client in iroh::client::net - Rust

Struct iroh::client::net::Client

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

Iroh netx Client.

+Client in iroh::client::net - Rust

Struct iroh::client::net::Client

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

Iroh netx Client.

Cheaply clonable and threadsafe. Use the iroh net::Client to access the iroh net methods from a different thread, process, or remote machine. The Iroh client dereferences to a node::Client, @@ -90,14 +90,7 @@ transferring the snapshot.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/net/struct.NodeStatus.html b/pr/2674/docs/iroh/client/net/struct.NodeStatus.html index c87f8732bb..177e0dc75b 100644 --- a/pr/2674/docs/iroh/client/net/struct.NodeStatus.html +++ b/pr/2674/docs/iroh/client/net/struct.NodeStatus.html @@ -1,4 +1,4 @@ -NodeStatus in iroh::client::net - Rust

Struct iroh::client::net::NodeStatus

source ·
pub struct NodeStatus {
+NodeStatus in iroh::client::net - Rust

Struct iroh::client::net::NodeStatus

source ·
pub struct NodeStatus {
     pub addr: NodeAddr,
     pub listen_addrs: Vec<SocketAddr>,
     pub version: String,
@@ -52,14 +52,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/struct.Iroh.html b/pr/2674/docs/iroh/client/struct.Iroh.html index ee82e59693..3c07db23e9 100644 --- a/pr/2674/docs/iroh/client/struct.Iroh.html +++ b/pr/2674/docs/iroh/client/struct.Iroh.html @@ -1,4 +1,4 @@ -Iroh in iroh::client - Rust

Struct iroh::client::Iroh

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

An iroh client.

+Iroh in iroh::client - Rust

Struct iroh::client::Iroh

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

An iroh client.

There are three ways to obtain this client, depending on which context you’re running in relative to the main Node:

    @@ -70,14 +70,7 @@ waiting for things to stop gracefully.

    U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/struct.RpcService.html b/pr/2674/docs/iroh/client/struct.RpcService.html index ae87d7682a..aaaa45bf5d 100644 --- a/pr/2674/docs/iroh/client/struct.RpcService.html +++ b/pr/2674/docs/iroh/client/struct.RpcService.html @@ -1,5 +1,5 @@ -RpcService in iroh::client - Rust

Struct iroh::client::RpcService

source ·
pub struct RpcService;
Expand description

The RPC service for the iroh provider process.

-

Trait Implementations§

source§

impl BidiStreamingMsg<RpcService> for SubscribeRequest

§

type Update = Command

The type for request updates Read more
§

type Response = Result<Event, RpcError>

The type for the response Read more
source§

impl Clone for RpcService

source§

fn clone(&self) -> RpcService

Returns a 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 RpcService

source§

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

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

impl Msg<RpcService> for SubscribeRequest

§

type Pattern = BidiStreaming

The interaction pattern for this message with this service.
source§

impl Service for RpcService

§

type Req = Request

Type of request messages
§

type Res = Response

Type of response messages

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +RpcService in iroh::client - Rust

Struct iroh::client::RpcService

source ·
pub struct RpcService;
Expand description

The RPC service for the iroh provider process.

+

Trait Implementations§

source§

impl BidiStreamingMsg<RpcService> for SubscribeRequest

§

type Update = Command

The type for request updates Read more
§

type Response = Result<Event, RpcError>

The type for the response Read more
source§

impl Clone for RpcService

source§

fn clone(&self) -> RpcService

Returns a 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 RpcService

source§

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

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

impl Msg<RpcService> for SubscribeRequest

§

type Pattern = BidiStreaming

The interaction pattern for this message with this service.
source§

impl Service for RpcService

§

type Req = Request

Type of request messages
§

type Res = Response

Type of response messages

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 @@ -43,14 +43,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/tags/index.html b/pr/2674/docs/iroh/client/tags/index.html index 2c9c166fd4..a606133de8 100644 --- a/pr/2674/docs/iroh/client/tags/index.html +++ b/pr/2674/docs/iroh/client/tags/index.html @@ -1,4 +1,4 @@ -iroh::client::tags - Rust

Module iroh::client::tags

source ·
Expand description

API for tag management.

+iroh::client::tags - Rust

Module iroh::client::tags

source ·
Expand description

API for tag management.

The purpose of tags is to mark information as important to prevent it from being garbage-collected (if the garbage collector is turned on). Currently this is used for blobs.

diff --git a/pr/2674/docs/iroh/client/tags/struct.Client.html b/pr/2674/docs/iroh/client/tags/struct.Client.html index 536a637f94..8087ef9aa8 100644 --- a/pr/2674/docs/iroh/client/tags/struct.Client.html +++ b/pr/2674/docs/iroh/client/tags/struct.Client.html @@ -1,4 +1,4 @@ -Client in iroh::client::tags - Rust

Struct iroh::client::tags::Client

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

Iroh tags client.

+Client in iroh::client::tags - Rust

Struct iroh::client::tags::Client

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

Iroh tags client.

Implementations§

source§

impl Client

source

pub async fn list(&self) -> Result<impl Stream<Item = Result<TagInfo>>>

Lists all tags.

source

pub async fn list_hash_seq(&self) -> Result<impl Stream<Item = Result<TagInfo>>>

Lists all tags with a hash_seq format.

source

pub async fn delete(&self, name: Tag) -> Result<()>

Deletes a tag.

@@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/tags/struct.TagInfo.html b/pr/2674/docs/iroh/client/tags/struct.TagInfo.html index 9dc6f90a85..54719acf6d 100644 --- a/pr/2674/docs/iroh/client/tags/struct.TagInfo.html +++ b/pr/2674/docs/iroh/client/tags/struct.TagInfo.html @@ -1,4 +1,4 @@ -TagInfo in iroh::client::tags - Rust

Struct iroh::client::tags::TagInfo

source ·
pub struct TagInfo {
+TagInfo in iroh::client::tags - Rust

Struct iroh::client::tags::TagInfo

source ·
pub struct TagInfo {
     pub name: Tag,
     pub format: BlobFormat,
     pub hash: Hash,
@@ -50,14 +50,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/client/type.RpcClient.html b/pr/2674/docs/iroh/client/type.RpcClient.html index 2eb9618047..36d940532a 100644 --- a/pr/2674/docs/iroh/client/type.RpcClient.html +++ b/pr/2674/docs/iroh/client/type.RpcClient.html @@ -1,2 +1,2 @@ -RpcClient in iroh::client - Rust

Type Alias iroh::client::RpcClient

source ·
pub type RpcClient = RpcClient<RpcService, Connection<RpcService>>;
Expand description

Iroh rpc client - boxed so that we can have a concrete type.

+RpcClient in iroh::client - Rust

Type Alias iroh::client::RpcClient

source ·
pub type RpcClient = RpcClient<RpcService, Connection<RpcService>>;
Expand description

Iroh rpc client - boxed so that we can have a concrete type.

Aliased Type§

struct RpcClient { /* private fields */ }

Trait Implementations§

source§

impl<'a> From<&'a Doc> for &'a RpcClient

source§

fn from(doc: &'a Doc) -> &'a RpcClient

Converts to this type from the input type.
source§

impl<'a> From<&'a Iroh> for &'a RpcClient

source§

fn from(client: &'a Iroh) -> &'a RpcClient

Converts to this type from the input type.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/docs/actor/index.html b/pr/2674/docs/iroh/docs/actor/index.html index e5df8b4327..2d5d2467e8 100644 --- a/pr/2674/docs/iroh/docs/actor/index.html +++ b/pr/2674/docs/iroh/docs/actor/index.html @@ -1,2 +1,2 @@ -iroh::docs::actor - Rust

Module iroh::docs::actor

source ·
Expand description

This contains an actor spawned on a separate thread to process replica and store operations.

+iroh::docs::actor - Rust

Module iroh::docs::actor

source ·
Expand description

This contains an actor spawned on a separate thread to process replica and store operations.

Structs§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/docs/actor/struct.OpenOpts.html b/pr/2674/docs/iroh/docs/actor/struct.OpenOpts.html index 2239bdef14..2abc927de2 100644 --- a/pr/2674/docs/iroh/docs/actor/struct.OpenOpts.html +++ b/pr/2674/docs/iroh/docs/actor/struct.OpenOpts.html @@ -1,4 +1,4 @@ -OpenOpts in iroh::docs::actor - Rust

Struct iroh::docs::actor::OpenOpts

source ·
pub struct OpenOpts {
+OpenOpts in iroh::docs::actor - Rust

Struct iroh::docs::actor::OpenOpts

source ·
pub struct OpenOpts {
     pub sync: bool,
     pub subscribe: Option<Sender<Event>>,
 }
Expand description

Options when opening a replica.

@@ -48,14 +48,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/actor/struct.OpenState.html b/pr/2674/docs/iroh/docs/actor/struct.OpenState.html index 57a2ed3955..3925f8d70f 100644 --- a/pr/2674/docs/iroh/docs/actor/struct.OpenState.html +++ b/pr/2674/docs/iroh/docs/actor/struct.OpenState.html @@ -1,4 +1,4 @@ -OpenState in iroh::docs::actor - Rust

Struct iroh::docs::actor::OpenState

source ·
pub struct OpenState {
+OpenState in iroh::docs::actor - Rust

Struct iroh::docs::actor::OpenState

source ·
pub struct OpenState {
     pub sync: bool,
     pub subscribers: usize,
     pub handles: usize,
@@ -63,14 +63,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/actor/struct.SyncHandle.html b/pr/2674/docs/iroh/docs/actor/struct.SyncHandle.html index b0f7ca7140..8bf151204b 100644 --- a/pr/2674/docs/iroh/docs/actor/struct.SyncHandle.html +++ b/pr/2674/docs/iroh/docs/actor/struct.SyncHandle.html @@ -1,4 +1,4 @@ -SyncHandle in iroh::docs::actor - Rust

Struct iroh::docs::actor::SyncHandle

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

The SyncHandle controls an actor thread which executes replica and store operations.

+SyncHandle in iroh::docs::actor - Rust

Struct iroh::docs::actor::SyncHandle

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

The SyncHandle controls an actor thread which executes replica and store operations.

The SyncHandle exposes async methods which all send messages into the actor thread, usually returning something via a return channel. The actor thread itself is a regular std::thread which processes incoming messages sequentially.

@@ -154,14 +154,7 @@ trigger a flush on its own.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/constant.MAX_TIMESTAMP_FUTURE_SHIFT.html b/pr/2674/docs/iroh/docs/constant.MAX_TIMESTAMP_FUTURE_SHIFT.html index 7ffb587ae7..c8415c8bc1 100644 --- a/pr/2674/docs/iroh/docs/constant.MAX_TIMESTAMP_FUTURE_SHIFT.html +++ b/pr/2674/docs/iroh/docs/constant.MAX_TIMESTAMP_FUTURE_SHIFT.html @@ -1,3 +1,3 @@ -MAX_TIMESTAMP_FUTURE_SHIFT in iroh::docs - Rust

Constant iroh::docs::MAX_TIMESTAMP_FUTURE_SHIFT

source ·
pub const MAX_TIMESTAMP_FUTURE_SHIFT: u64 = _; // 600_000u64
Expand description

Max time in the future from our wall clock time that we accept entries for. +MAX_TIMESTAMP_FUTURE_SHIFT in iroh::docs - Rust

Constant iroh::docs::MAX_TIMESTAMP_FUTURE_SHIFT

source ·
pub const MAX_TIMESTAMP_FUTURE_SHIFT: u64 = _; // 600_000u64
Expand description

Max time in the future from our wall clock time that we accept entries for. Value is 10 minutes.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/docs/engine/enum.DefaultAuthorStorage.html b/pr/2674/docs/iroh/docs/engine/enum.DefaultAuthorStorage.html index 061c255b77..80c6ea677c 100644 --- a/pr/2674/docs/iroh/docs/engine/enum.DefaultAuthorStorage.html +++ b/pr/2674/docs/iroh/docs/engine/enum.DefaultAuthorStorage.html @@ -1,4 +1,4 @@ -DefaultAuthorStorage in iroh::docs::engine - Rust

Enum iroh::docs::engine::DefaultAuthorStorage

source ·
pub enum DefaultAuthorStorage {
+DefaultAuthorStorage in iroh::docs::engine - Rust

Enum iroh::docs::engine::DefaultAuthorStorage

source ·
pub enum DefaultAuthorStorage {
     Mem,
     Persistent(PathBuf),
 }
Expand description

Where to persist the default author.

@@ -55,14 +55,7 @@ store.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/engine/enum.LiveEvent.html b/pr/2674/docs/iroh/docs/engine/enum.LiveEvent.html index 9f38ecff23..0807b18a65 100644 --- a/pr/2674/docs/iroh/docs/engine/enum.LiveEvent.html +++ b/pr/2674/docs/iroh/docs/engine/enum.LiveEvent.html @@ -1,4 +1,4 @@ -LiveEvent in iroh::docs::engine - Rust

Enum iroh::docs::engine::LiveEvent

source ·
pub enum LiveEvent {
+LiveEvent in iroh::docs::engine - Rust

Enum iroh::docs::engine::LiveEvent

source ·
pub enum LiveEvent {
     InsertLocal {
         entry: Entry,
     },
@@ -89,14 +89,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/engine/enum.Origin.html b/pr/2674/docs/iroh/docs/engine/enum.Origin.html index da341dee58..14714849b9 100644 --- a/pr/2674/docs/iroh/docs/engine/enum.Origin.html +++ b/pr/2674/docs/iroh/docs/engine/enum.Origin.html @@ -1,4 +1,4 @@ -Origin in iroh::docs::engine - Rust

Enum iroh::docs::engine::Origin

source ·
pub enum Origin {
+Origin in iroh::docs::engine - Rust

Enum iroh::docs::engine::Origin

source ·
pub enum Origin {
     Connect(SyncReason),
     Accept,
 }
Expand description

Why we performed a sync exchange

@@ -61,14 +61,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/engine/enum.SyncReason.html b/pr/2674/docs/iroh/docs/engine/enum.SyncReason.html index d2fe020925..c37e2505d6 100644 --- a/pr/2674/docs/iroh/docs/engine/enum.SyncReason.html +++ b/pr/2674/docs/iroh/docs/engine/enum.SyncReason.html @@ -1,4 +1,4 @@ -SyncReason in iroh::docs::engine - Rust

Enum iroh::docs::engine::SyncReason

source ·
pub enum SyncReason {
+SyncReason in iroh::docs::engine - Rust

Enum iroh::docs::engine::SyncReason

source ·
pub enum SyncReason {
     DirectJoin,
     NewNeighbor,
     SyncReport,
@@ -65,14 +65,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/engine/fn.entry_to_content_status.html b/pr/2674/docs/iroh/docs/engine/fn.entry_to_content_status.html index 1495757787..ace0c758ba 100644 --- a/pr/2674/docs/iroh/docs/engine/fn.entry_to_content_status.html +++ b/pr/2674/docs/iroh/docs/engine/fn.entry_to_content_status.html @@ -1,4 +1,4 @@ -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_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, Error>
 ) -> ContentStatus
Expand description

Converts an EntryStatus into a [‘ContentStatus’].

\ No newline at end of file diff --git a/pr/2674/docs/iroh/docs/engine/index.html b/pr/2674/docs/iroh/docs/engine/index.html index 55cb8d0031..1d7e9c7e0c 100644 --- a/pr/2674/docs/iroh/docs/engine/index.html +++ b/pr/2674/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.

+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 diff --git a/pr/2674/docs/iroh/docs/engine/struct.DefaultAuthor.html b/pr/2674/docs/iroh/docs/engine/struct.DefaultAuthor.html index 8414dfdc15..16b96d4e53 100644 --- a/pr/2674/docs/iroh/docs/engine/struct.DefaultAuthor.html +++ b/pr/2674/docs/iroh/docs/engine/struct.DefaultAuthor.html @@ -1,4 +1,4 @@ -DefaultAuthor in iroh::docs::engine - Rust

Struct iroh::docs::engine::DefaultAuthor

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

Persistent default author for a docs engine.

+DefaultAuthor in iroh::docs::engine - Rust

Struct iroh::docs::engine::DefaultAuthor

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

Persistent default author for a docs engine.

Implementations§

source§

impl DefaultAuthor

source

pub async fn load( storage: DefaultAuthorStorage, docs_store: &SyncHandle @@ -52,14 +52,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/engine/struct.Engine.html b/pr/2674/docs/iroh/docs/engine/struct.Engine.html index 747ddead90..1ed055962c 100644 --- a/pr/2674/docs/iroh/docs/engine/struct.Engine.html +++ b/pr/2674/docs/iroh/docs/engine/struct.Engine.html @@ -1,4 +1,4 @@ -Engine in iroh::docs::engine - Rust

Struct iroh::docs::engine::Engine

source ·
pub struct Engine {
+Engine in iroh::docs::engine - Rust

Struct iroh::docs::engine::Engine

source ·
pub struct Engine {
     pub endpoint: Endpoint,
     pub sync: SyncHandle,
     pub default_author: Arc<DefaultAuthor>,
@@ -83,14 +83,7 @@ they will receive None and no further events in case of rejoining t
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/engine/struct.SyncEvent.html b/pr/2674/docs/iroh/docs/engine/struct.SyncEvent.html index b660fe1655..d749456d65 100644 --- a/pr/2674/docs/iroh/docs/engine/struct.SyncEvent.html +++ b/pr/2674/docs/iroh/docs/engine/struct.SyncEvent.html @@ -1,4 +1,4 @@ -SyncEvent in iroh::docs::engine - Rust

Struct iroh::docs::engine::SyncEvent

source ·
pub struct SyncEvent {
+SyncEvent in iroh::docs::engine - Rust

Struct iroh::docs::engine::SyncEvent

source ·
pub struct SyncEvent {
     pub peer: PublicKey,
     pub origin: Origin,
     pub finished: SystemTime,
@@ -67,14 +67,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/enum.Capability.html b/pr/2674/docs/iroh/docs/enum.Capability.html index 052c780384..c9ff3e341d 100644 --- a/pr/2674/docs/iroh/docs/enum.Capability.html +++ b/pr/2674/docs/iroh/docs/enum.Capability.html @@ -1,4 +1,4 @@ -Capability in iroh::docs - Rust

Enum iroh::docs::Capability

source ·
pub enum Capability {
+Capability in iroh::docs - Rust

Enum iroh::docs::Capability

source ·
pub enum Capability {
     Write(NamespaceSecret),
     Read(NamespaceId),
 }
Expand description

The capability of the namespace.

@@ -64,14 +64,7 @@ Will fail if the From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/enum.CapabilityError.html b/pr/2674/docs/iroh/docs/enum.CapabilityError.html index 81dd579a9f..0e8007377b 100644 --- a/pr/2674/docs/iroh/docs/enum.CapabilityError.html +++ b/pr/2674/docs/iroh/docs/enum.CapabilityError.html @@ -1,4 +1,4 @@ -CapabilityError in iroh::docs - Rust

Enum iroh::docs::CapabilityError

source ·
pub enum CapabilityError {
+CapabilityError in iroh::docs - Rust

Enum iroh::docs::CapabilityError

source ·
pub enum CapabilityError {
     NamespaceMismatch,
 }
Expand description

Errors for capability operations

Variants§

§

NamespaceMismatch

Namespaces are not the same

@@ -44,14 +44,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/enum.CapabilityKind.html b/pr/2674/docs/iroh/docs/enum.CapabilityKind.html index 052a736706..5a0fa6b2aa 100644 --- a/pr/2674/docs/iroh/docs/enum.CapabilityKind.html +++ b/pr/2674/docs/iroh/docs/enum.CapabilityKind.html @@ -1,4 +1,4 @@ -CapabilityKind in iroh::docs - Rust

Enum iroh::docs::CapabilityKind

source ·
#[repr(u8)]
pub enum CapabilityKind { +CapabilityKind in iroh::docs - Rust

Enum iroh::docs::CapabilityKind

source ·
#[repr(u8)]
pub enum CapabilityKind { Write = 1, Read = 2, }
Expand description

Kind of capability of the namespace.

@@ -59,14 +59,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/enum.ContentStatus.html b/pr/2674/docs/iroh/docs/enum.ContentStatus.html index ec17493de6..51f3712975 100644 --- a/pr/2674/docs/iroh/docs/enum.ContentStatus.html +++ b/pr/2674/docs/iroh/docs/enum.ContentStatus.html @@ -1,4 +1,4 @@ -ContentStatus in iroh::docs - Rust

Enum iroh::docs::ContentStatus

source ·
pub enum ContentStatus {
+ContentStatus in iroh::docs - Rust

Enum iroh::docs::ContentStatus

source ·
pub enum ContentStatus {
     Complete,
     Incomplete,
     Missing,
@@ -63,14 +63,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/enum.Event.html b/pr/2674/docs/iroh/docs/enum.Event.html index c0e27605fb..9c8a62ae3f 100644 --- a/pr/2674/docs/iroh/docs/enum.Event.html +++ b/pr/2674/docs/iroh/docs/enum.Event.html @@ -1,4 +1,4 @@ -Event in iroh::docs - Rust

Enum iroh::docs::Event

source ·
pub enum Event {
+Event in iroh::docs - Rust

Enum iroh::docs::Event

source ·
pub enum Event {
     LocalInsert {
         namespace: NamespaceId,
         entry: SignedEntry,
@@ -64,14 +64,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/enum.InsertError.html b/pr/2674/docs/iroh/docs/enum.InsertError.html index b48871b140..6887567e0d 100644 --- a/pr/2674/docs/iroh/docs/enum.InsertError.html +++ b/pr/2674/docs/iroh/docs/enum.InsertError.html @@ -1,4 +1,4 @@ -InsertError in iroh::docs - Rust

Enum iroh::docs::InsertError

source ·
pub enum InsertError {
+InsertError in iroh::docs - Rust

Enum iroh::docs::InsertError

source ·
pub enum InsertError {
     Store(Error),
     Validation(ValidationFailure),
     NewerEntryExists,
@@ -12,7 +12,7 @@
 
§

EntryIsEmpty

Attempted to insert an empty entry.

§

ReadOnly

Replica is read only.

§

Closed

The replica is closed, no operations may be performed.

-

Trait Implementations§

source§

impl Debug for InsertError

source§

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

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

impl Display for InsertError

source§

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

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

impl Error for InsertError

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<ReadOnly> for InsertError

source§

fn from(value: ReadOnly) -> InsertError

Converts to this type from the input type.
source§

impl From<ValidationFailure> for InsertError

source§

fn from(source: ValidationFailure) -> InsertError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Debug for InsertError

source§

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

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

impl Display for InsertError

source§

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

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

impl Error for InsertError

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<ReadOnly> for InsertError

source§

fn from(value: ReadOnly) -> InsertError

Converts to this type from the input type.
source§

impl From<ValidationFailure> for InsertError

source§

fn from(source: ValidationFailure) -> InsertError

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 @@ -54,14 +54,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/enum.InsertOrigin.html b/pr/2674/docs/iroh/docs/enum.InsertOrigin.html index ba88188ada..ec6b826777 100644 --- a/pr/2674/docs/iroh/docs/enum.InsertOrigin.html +++ b/pr/2674/docs/iroh/docs/enum.InsertOrigin.html @@ -1,4 +1,4 @@ -InsertOrigin in iroh::docs - Rust

Enum iroh::docs::InsertOrigin

source ·
pub enum InsertOrigin {
+InsertOrigin in iroh::docs - Rust

Enum iroh::docs::InsertOrigin

source ·
pub enum InsertOrigin {
     Local,
     Sync {
         from: [u8; 32],
@@ -53,14 +53,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/enum.ValidationFailure.html b/pr/2674/docs/iroh/docs/enum.ValidationFailure.html index e8fbbb8403..568509cd02 100644 --- a/pr/2674/docs/iroh/docs/enum.ValidationFailure.html +++ b/pr/2674/docs/iroh/docs/enum.ValidationFailure.html @@ -1,4 +1,4 @@ -ValidationFailure in iroh::docs - Rust

Enum iroh::docs::ValidationFailure

source ·
pub enum ValidationFailure {
+ValidationFailure in iroh::docs - Rust

Enum iroh::docs::ValidationFailure

source ·
pub enum ValidationFailure {
     InvalidNamespace,
     BadSignature,
     TooFarInTheFuture,
@@ -50,14 +50,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/index.html b/pr/2674/docs/iroh/docs/index.html index e5f4d72dab..5ceddb2ae6 100644 --- a/pr/2674/docs/iroh/docs/index.html +++ b/pr/2674/docs/iroh/docs/index.html @@ -1,4 +1,4 @@ -iroh::docs - Rust

Crate iroh::docs

source ·
Expand description

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

+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 diff --git a/pr/2674/docs/iroh/docs/metrics/index.html b/pr/2674/docs/iroh/docs/metrics/index.html index bccafca7cc..8bb003b32c 100644 --- a/pr/2674/docs/iroh/docs/metrics/index.html +++ b/pr/2674/docs/iroh/docs/metrics/index.html @@ -1,2 +1,2 @@ -iroh::docs::metrics - Rust

Module iroh::docs::metrics

source ·
Expand description

Metrics for iroh-docs

+iroh::docs::metrics - Rust

Module iroh::docs::metrics

source ·
Expand description

Metrics for iroh-docs

Structs§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/docs/metrics/struct.Metrics.html b/pr/2674/docs/iroh/docs/metrics/struct.Metrics.html index dea3ca5b30..4e894897e5 100644 --- a/pr/2674/docs/iroh/docs/metrics/struct.Metrics.html +++ b/pr/2674/docs/iroh/docs/metrics/struct.Metrics.html @@ -1,4 +1,4 @@ -Metrics in iroh::docs::metrics - Rust

Struct iroh::docs::metrics::Metrics

source ·
pub struct Metrics {
Show 19 fields +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, @@ -65,14 +65,7 @@ Only records if this metric is registered in the global registry.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/net/constant.DOCS_ALPN.html b/pr/2674/docs/iroh/docs/net/constant.DOCS_ALPN.html index 49dee7de63..89129698d7 100644 --- a/pr/2674/docs/iroh/docs/net/constant.DOCS_ALPN.html +++ b/pr/2674/docs/iroh/docs/net/constant.DOCS_ALPN.html @@ -1,2 +1,2 @@ -DOCS_ALPN in iroh::docs::net - Rust

Constant iroh::docs::net::DOCS_ALPN

source ·
pub const DOCS_ALPN: &'static [u8];
Expand description

The ALPN identifier for the iroh-docs protocol

+DOCS_ALPN in iroh::docs::net - Rust

Constant iroh::docs::net::DOCS_ALPN

source ·
pub const DOCS_ALPN: &'static [u8];
Expand description

The ALPN identifier for the iroh-docs protocol

\ No newline at end of file diff --git a/pr/2674/docs/iroh/docs/net/enum.AbortReason.html b/pr/2674/docs/iroh/docs/net/enum.AbortReason.html index ec2ea24297..f08960322d 100644 --- a/pr/2674/docs/iroh/docs/net/enum.AbortReason.html +++ b/pr/2674/docs/iroh/docs/net/enum.AbortReason.html @@ -1,4 +1,4 @@ -AbortReason in iroh::docs::net - Rust

Enum iroh::docs::net::AbortReason

source ·
pub enum AbortReason {
+AbortReason in iroh::docs::net - Rust

Enum iroh::docs::net::AbortReason

source ·
pub enum AbortReason {
     NotFound,
     AlreadySyncing,
     InternalServerError,
@@ -63,14 +63,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/net/enum.AcceptError.html b/pr/2674/docs/iroh/docs/net/enum.AcceptError.html index bd45b336cd..f8794940a2 100644 --- a/pr/2674/docs/iroh/docs/net/enum.AcceptError.html +++ b/pr/2674/docs/iroh/docs/net/enum.AcceptError.html @@ -1,4 +1,4 @@ -AcceptError in iroh::docs::net - Rust

Enum iroh::docs::net::AcceptError

source ·
pub enum AcceptError {
+AcceptError in iroh::docs::net - Rust

Enum iroh::docs::net::AcceptError

source ·
pub enum AcceptError {
     Connect {
         error: Error,
     },
@@ -71,14 +71,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/net/enum.AcceptOutcome.html b/pr/2674/docs/iroh/docs/net/enum.AcceptOutcome.html index 910fe51679..7e138a2658 100644 --- a/pr/2674/docs/iroh/docs/net/enum.AcceptOutcome.html +++ b/pr/2674/docs/iroh/docs/net/enum.AcceptOutcome.html @@ -1,4 +1,4 @@ -AcceptOutcome in iroh::docs::net - Rust

Enum iroh::docs::net::AcceptOutcome

source ·
pub enum AcceptOutcome {
+AcceptOutcome in iroh::docs::net - Rust

Enum iroh::docs::net::AcceptOutcome

source ·
pub enum AcceptOutcome {
     Allow,
     Reject(AbortReason),
 }
Expand description

Whether we want to accept or reject an incoming sync request.

@@ -48,14 +48,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/net/enum.ConnectError.html b/pr/2674/docs/iroh/docs/net/enum.ConnectError.html index 38dd96862c..6bc913697f 100644 --- a/pr/2674/docs/iroh/docs/net/enum.ConnectError.html +++ b/pr/2674/docs/iroh/docs/net/enum.ConnectError.html @@ -1,4 +1,4 @@ -ConnectError in iroh::docs::net - Rust

Enum iroh::docs::net::ConnectError

source ·
pub enum ConnectError {
+ConnectError in iroh::docs::net - Rust

Enum iroh::docs::net::ConnectError

source ·
pub enum ConnectError {
     Connect {
         error: Error,
     },
@@ -56,14 +56,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/net/fn.connect_and_sync.html b/pr/2674/docs/iroh/docs/net/fn.connect_and_sync.html index c100ecfb77..ef8ffb8581 100644 --- a/pr/2674/docs/iroh/docs/net/fn.connect_and_sync.html +++ b/pr/2674/docs/iroh/docs/net/fn.connect_and_sync.html @@ -1,4 +1,4 @@ -connect_and_sync in iroh::docs::net - Rust

Function iroh::docs::net::connect_and_sync

source ·
pub async fn connect_and_sync(
+connect_and_sync in iroh::docs::net - Rust

Function iroh::docs::net::connect_and_sync

source ·
pub async fn connect_and_sync(
     endpoint: &Endpoint,
     sync: &SyncHandle,
     namespace: NamespaceId,
diff --git a/pr/2674/docs/iroh/docs/net/fn.handle_connection.html b/pr/2674/docs/iroh/docs/net/fn.handle_connection.html
index 732a4315f9..80d7eb921b 100644
--- a/pr/2674/docs/iroh/docs/net/fn.handle_connection.html
+++ b/pr/2674/docs/iroh/docs/net/fn.handle_connection.html
@@ -1,4 +1,4 @@
-handle_connection in iroh::docs::net - Rust

Function iroh::docs::net::handle_connection

source ·
pub async fn handle_connection<F, Fut>(
+handle_connection in iroh::docs::net - Rust

Function iroh::docs::net::handle_connection

source ·
pub async fn handle_connection<F, Fut>(
     sync: SyncHandle,
     connecting: Connecting,
     accept_cb: F
diff --git a/pr/2674/docs/iroh/docs/net/index.html b/pr/2674/docs/iroh/docs/net/index.html
index 10bd5afa19..a471f88525 100644
--- a/pr/2674/docs/iroh/docs/net/index.html
+++ b/pr/2674/docs/iroh/docs/net/index.html
@@ -1,2 +1,2 @@
-iroh::docs::net - Rust

Module iroh::docs::net

source ·
Expand description

Network implementation of the iroh-docs protocol

+iroh::docs::net - Rust

Module iroh::docs::net

source ·
Expand description

Network implementation of the iroh-docs protocol

Structs§

Enums§

  • Reason why we aborted an incoming sync request.
  • Errors that may occur on handling incoming sync connections.
  • Whether we want to accept or reject an incoming sync request.
  • Errors that may occur on outgoing sync requests.

Constants§

  • The ALPN identifier for the iroh-docs protocol

Functions§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/docs/net/struct.SyncFinished.html b/pr/2674/docs/iroh/docs/net/struct.SyncFinished.html index 334817a0c6..f0290d0409 100644 --- a/pr/2674/docs/iroh/docs/net/struct.SyncFinished.html +++ b/pr/2674/docs/iroh/docs/net/struct.SyncFinished.html @@ -1,4 +1,4 @@ -SyncFinished in iroh::docs::net - Rust

Struct iroh::docs::net::SyncFinished

source ·
pub struct SyncFinished {
+SyncFinished in iroh::docs::net - Rust

Struct iroh::docs::net::SyncFinished

source ·
pub struct SyncFinished {
     pub namespace: NamespaceId,
     pub peer: PublicKey,
     pub outcome: SyncOutcome,
@@ -52,14 +52,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/net/struct.Timings.html b/pr/2674/docs/iroh/docs/net/struct.Timings.html index 8d378e8046..ece13d8a87 100644 --- a/pr/2674/docs/iroh/docs/net/struct.Timings.html +++ b/pr/2674/docs/iroh/docs/net/struct.Timings.html @@ -1,4 +1,4 @@ -Timings in iroh::docs::net - Rust

Struct iroh::docs::net::Timings

source ·
pub struct Timings {
+Timings in iroh::docs::net - Rust

Struct iroh::docs::net::Timings

source ·
pub struct Timings {
     pub connect: Duration,
     pub process: Duration,
 }
Expand description

Time a sync operation took

@@ -48,14 +48,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/enum.AuthorFilter.html b/pr/2674/docs/iroh/docs/store/enum.AuthorFilter.html index 430854a523..326d560079 100644 --- a/pr/2674/docs/iroh/docs/store/enum.AuthorFilter.html +++ b/pr/2674/docs/iroh/docs/store/enum.AuthorFilter.html @@ -1,4 +1,4 @@ -AuthorFilter in iroh::docs::store - Rust

Enum iroh::docs::store::AuthorFilter

source ·
pub enum AuthorFilter {
+AuthorFilter in iroh::docs::store - Rust

Enum iroh::docs::store::AuthorFilter

source ·
pub enum AuthorFilter {
     Any,
     Exact(AuthorId),
 }
Expand description

Author matching.

@@ -62,14 +62,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/enum.DownloadPolicy.html b/pr/2674/docs/iroh/docs/store/enum.DownloadPolicy.html index 774b2e3a27..cca39863fe 100644 --- a/pr/2674/docs/iroh/docs/store/enum.DownloadPolicy.html +++ b/pr/2674/docs/iroh/docs/store/enum.DownloadPolicy.html @@ -1,4 +1,4 @@ -DownloadPolicy in iroh::docs::store - Rust

Enum iroh::docs::store::DownloadPolicy

source ·
pub enum DownloadPolicy {
+DownloadPolicy in iroh::docs::store - Rust

Enum iroh::docs::store::DownloadPolicy

source ·
pub enum DownloadPolicy {
     NothingExcept(Vec<FilterKind>),
     EverythingExcept(Vec<FilterKind>),
 }
Expand description

Download policy to decide which content blobs shall be downloaded.

@@ -62,14 +62,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/enum.FilterKind.html b/pr/2674/docs/iroh/docs/store/enum.FilterKind.html index dbda0fafe8..5b4661c5f0 100644 --- a/pr/2674/docs/iroh/docs/store/enum.FilterKind.html +++ b/pr/2674/docs/iroh/docs/store/enum.FilterKind.html @@ -1,4 +1,4 @@ -FilterKind in iroh::docs::store - Rust

Enum iroh::docs::store::FilterKind

source ·
pub enum FilterKind {
+FilterKind in iroh::docs::store - Rust

Enum iroh::docs::store::FilterKind

source ·
pub enum FilterKind {
     Prefix(Bytes),
     Exact(Bytes),
 }
Expand description

Filter strategy used in download policies.

@@ -62,14 +62,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/enum.ImportNamespaceOutcome.html b/pr/2674/docs/iroh/docs/store/enum.ImportNamespaceOutcome.html index 83faba3dc2..3a7a0063a5 100644 --- a/pr/2674/docs/iroh/docs/store/enum.ImportNamespaceOutcome.html +++ b/pr/2674/docs/iroh/docs/store/enum.ImportNamespaceOutcome.html @@ -1,4 +1,4 @@ -ImportNamespaceOutcome in iroh::docs::store - Rust

Enum iroh::docs::store::ImportNamespaceOutcome

source ·
pub enum ImportNamespaceOutcome {
+ImportNamespaceOutcome in iroh::docs::store - Rust

Enum iroh::docs::store::ImportNamespaceOutcome

source ·
pub enum ImportNamespaceOutcome {
     Inserted,
     Upgraded,
     NoChange,
@@ -50,14 +50,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/enum.KeyFilter.html b/pr/2674/docs/iroh/docs/store/enum.KeyFilter.html index 553a892eb3..1f2fa6ff56 100644 --- a/pr/2674/docs/iroh/docs/store/enum.KeyFilter.html +++ b/pr/2674/docs/iroh/docs/store/enum.KeyFilter.html @@ -1,4 +1,4 @@ -KeyFilter in iroh::docs::store - Rust

Enum iroh::docs::store::KeyFilter

source ·
pub enum KeyFilter {
+KeyFilter in iroh::docs::store - Rust

Enum iroh::docs::store::KeyFilter

source ·
pub enum KeyFilter {
     Any,
     Exact(Bytes),
     Prefix(Bytes),
@@ -65,14 +65,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/enum.OpenError.html b/pr/2674/docs/iroh/docs/store/enum.OpenError.html index f727229a1f..1373ed5c8c 100644 --- a/pr/2674/docs/iroh/docs/store/enum.OpenError.html +++ b/pr/2674/docs/iroh/docs/store/enum.OpenError.html @@ -1,4 +1,4 @@ -OpenError in iroh::docs::store - Rust

Enum iroh::docs::store::OpenError

source ·
pub enum OpenError {
+OpenError in iroh::docs::store - Rust

Enum iroh::docs::store::OpenError

source ·
pub enum OpenError {
     NotFound,
     Other(Error),
 }
Expand description

Error return from Store::open_replica

@@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/enum.SortBy.html b/pr/2674/docs/iroh/docs/store/enum.SortBy.html index 72d8f26966..6e6459f16f 100644 --- a/pr/2674/docs/iroh/docs/store/enum.SortBy.html +++ b/pr/2674/docs/iroh/docs/store/enum.SortBy.html @@ -1,4 +1,4 @@ -SortBy in iroh::docs::store - Rust

Enum iroh::docs::store::SortBy

source ·
pub enum SortBy {
+SortBy in iroh::docs::store - Rust

Enum iroh::docs::store::SortBy

source ·
pub enum SortBy {
     KeyAuthor,
     AuthorKey,
 }
Expand description

Fields by which the query can be sorted

@@ -55,14 +55,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/enum.SortDirection.html b/pr/2674/docs/iroh/docs/store/enum.SortDirection.html index 12bcf34e87..590a6854cf 100644 --- a/pr/2674/docs/iroh/docs/store/enum.SortDirection.html +++ b/pr/2674/docs/iroh/docs/store/enum.SortDirection.html @@ -1,4 +1,4 @@ -SortDirection in iroh::docs::store - Rust

Enum iroh::docs::store::SortDirection

source ·
pub enum SortDirection {
+SortDirection in iroh::docs::store - Rust

Enum iroh::docs::store::SortDirection

source ·
pub enum SortDirection {
     Asc,
     Desc,
 }
Expand description

Sort direction

@@ -55,14 +55,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/fs/index.html b/pr/2674/docs/iroh/docs/store/fs/index.html index 5533fd9936..632b02e72e 100644 --- a/pr/2674/docs/iroh/docs/store/fs/index.html +++ b/pr/2674/docs/iroh/docs/store/fs/index.html @@ -1,3 +1,3 @@ -iroh::docs::store::fs - Rust

Module iroh::docs::store::fs

source ·
Expand description

On disk storage for replicas.

+iroh::docs::store::fs - Rust

Module iroh::docs::store::fs

source ·
Expand description

On disk storage for replicas.

Structs§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/docs/store/fs/struct.ContentHashesIterator.html b/pr/2674/docs/iroh/docs/store/fs/struct.ContentHashesIterator.html index 8a9408fb92..98cfeb3eb0 100644 --- a/pr/2674/docs/iroh/docs/store/fs/struct.ContentHashesIterator.html +++ b/pr/2674/docs/iroh/docs/store/fs/struct.ContentHashesIterator.html @@ -1,4 +1,4 @@ -ContentHashesIterator in iroh::docs::store::fs - Rust

Struct iroh::docs::store::fs::ContentHashesIterator

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

Iterator for all content hashes

+ContentHashesIterator in iroh::docs::store::fs - Rust

Struct iroh::docs::store::fs::ContentHashesIterator

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

Iterator for all content hashes

Note that you might get duplicate hashes. Also, the iterator will keep a database snapshot open until it is dropped.

Also, this represents a snapshot of the database at the time of creation. @@ -234,14 +234,7 @@ function. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<I> IntoIterator for I
where +

source§

impl<I> IntoIterator for I
where I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<I> IteratorExt for I
where I: Iterator,

source§

fn transpose_into_fallible<T, E>(self) -> Convert<I>
where I: Iterator<Item = Result<T, E>>,

Convert an iterator of Results into FallibleIterator by transposition

diff --git a/pr/2674/docs/iroh/docs/store/fs/struct.LatestIterator.html b/pr/2674/docs/iroh/docs/store/fs/struct.LatestIterator.html index 692c7efa00..860816d55a 100644 --- a/pr/2674/docs/iroh/docs/store/fs/struct.LatestIterator.html +++ b/pr/2674/docs/iroh/docs/store/fs/struct.LatestIterator.html @@ -1,4 +1,4 @@ -LatestIterator in iroh::docs::store::fs - Rust

Struct iroh::docs::store::fs::LatestIterator

source ·
pub struct LatestIterator<'a>(/* private fields */);
Expand description

Iterator over the latest entry per author.

+LatestIterator in iroh::docs::store::fs - Rust

Struct iroh::docs::store::fs::LatestIterator

source ·
pub struct LatestIterator<'a>(/* private fields */);
Expand description

Iterator over the latest entry per author.

Trait Implementations§

source§

impl<'a> Debug for LatestIterator<'a>

source§

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

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

impl<'a> Iterator for LatestIterator<'a>

§

type Item = Result<(AuthorId, u64, Vec<u8>), Error>

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<LatestIterator<'a> 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 @@ -218,14 +218,7 @@ function. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<I> IntoIterator for I
where +

source§

impl<I> IntoIterator for I
where I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<I> IteratorExt for I
where I: Iterator,

source§

fn transpose_into_fallible<T, E>(self) -> Convert<I>
where I: Iterator<Item = Result<T, E>>,

Convert an iterator of Results into FallibleIterator by transposition

diff --git a/pr/2674/docs/iroh/docs/store/fs/struct.ParentIterator.html b/pr/2674/docs/iroh/docs/store/fs/struct.ParentIterator.html index a32614b852..c2e51a08c8 100644 --- a/pr/2674/docs/iroh/docs/store/fs/struct.ParentIterator.html +++ b/pr/2674/docs/iroh/docs/store/fs/struct.ParentIterator.html @@ -1,4 +1,4 @@ -ParentIterator in iroh::docs::store::fs - Rust

Struct iroh::docs::store::fs::ParentIterator

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

Iterator over parent entries, i.e. entries with the same namespace and author, and a key which +ParentIterator in iroh::docs::store::fs - Rust

Struct iroh::docs::store::fs::ParentIterator

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

Iterator over parent entries, i.e. entries with the same namespace and author, and a key which is a prefix of the key passed to the iterator.

Trait Implementations§

source§

impl Debug for ParentIterator

source§

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

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

impl Iterator for ParentIterator

§

type Item = Result<SignedEntry, Error>

The type of the elements being iterated over.
source§

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

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

fn next_chunk<const N: usize>( &mut self @@ -228,14 +228,7 @@ function. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<I> IntoIterator for I
where +

source§

impl<I> IntoIterator for I
where I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<I> IteratorExt for I
where I: Iterator,

source§

fn transpose_into_fallible<T, E>(self) -> Convert<I>
where I: Iterator<Item = Result<T, E>>,

Convert an iterator of Results into FallibleIterator by transposition

diff --git a/pr/2674/docs/iroh/docs/store/fs/struct.RecordsRange.html b/pr/2674/docs/iroh/docs/store/fs/struct.RecordsRange.html index 2a5d7c5e88..cefa0e81b1 100644 --- a/pr/2674/docs/iroh/docs/store/fs/struct.RecordsRange.html +++ b/pr/2674/docs/iroh/docs/store/fs/struct.RecordsRange.html @@ -1,4 +1,4 @@ -RecordsRange in iroh::docs::store::fs - Rust

Struct iroh::docs::store::fs::RecordsRange

source ·
pub struct RecordsRange<'a>(/* private fields */);
Expand description

An iterator over a range of entries from the records table.

+RecordsRange in iroh::docs::store::fs - Rust

Struct iroh::docs::store::fs::RecordsRange

source ·
pub struct RecordsRange<'a>(/* private fields */);
Expand description

An iterator over a range of entries from the records table.

Trait Implementations§

source§

impl<'a> Debug for RecordsRange<'a>

source§

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

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

impl<'a> Iterator for RecordsRange<'a>

§

type Item = Result<SignedEntry, Error>

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<RecordsRange<'a> 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 @@ -218,14 +218,7 @@ function. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<I> IntoIterator for I
where +

source§

impl<I> IntoIterator for I
where I: Iterator,

§

type Item = <I as Iterator>::Item

The type of the elements being iterated over.
§

type IntoIter = I

Which kind of iterator are we turning this into?
const: unstable · source§

fn into_iter(self) -> I

Creates an iterator from a value. Read more
source§

impl<I> IteratorExt for I
where I: Iterator,

source§

fn transpose_into_fallible<T, E>(self) -> Convert<I>
where I: Iterator<Item = Result<T, E>>,

Convert an iterator of Results into FallibleIterator by transposition

diff --git a/pr/2674/docs/iroh/docs/store/fs/struct.Store.html b/pr/2674/docs/iroh/docs/store/fs/struct.Store.html index ef4b37ae58..e21f7cd944 100644 --- a/pr/2674/docs/iroh/docs/store/fs/struct.Store.html +++ b/pr/2674/docs/iroh/docs/store/fs/struct.Store.html @@ -1,4 +1,4 @@ -Store in iroh::docs::store::fs - Rust

Struct iroh::docs::store::fs::Store

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

Manages the replicas and authors for an instance.

+Store in iroh::docs::store::fs - Rust

Struct iroh::docs::store::fs::Store

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

Manages the replicas and authors for an instance.

Implementations§

source§

impl Store

source

pub fn memory() -> Store

Create a new store in memory.

source

pub fn persistent(path: impl AsRef<Path>) -> Result<Store, Error>

Create or open a store from a path to a database file.

The file will be created if it does not exist, otherwise it will be opened.

@@ -138,14 +138,7 @@ that a replica cannot be removed while it is still open.

U: From<T>,
source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/fs/struct.StoreInstance.html b/pr/2674/docs/iroh/docs/store/fs/struct.StoreInstance.html index 5e99865bb5..7a9ca1a182 100644 --- a/pr/2674/docs/iroh/docs/store/fs/struct.StoreInstance.html +++ b/pr/2674/docs/iroh/docs/store/fs/struct.StoreInstance.html @@ -1,4 +1,4 @@ -StoreInstance in iroh::docs::store::fs - Rust

Struct iroh::docs::store::fs::StoreInstance

source ·
pub struct StoreInstance<'a> { /* private fields */ }
Expand description

A wrapper around Store for a specific NamespaceId

+StoreInstance in iroh::docs::store::fs - Rust

Struct iroh::docs::store::fs::StoreInstance

source ·
pub struct StoreInstance<'a> { /* private fields */ }
Expand description

A wrapper around Store for a specific NamespaceId

Trait Implementations§

source§

impl<'a> Debug for StoreInstance<'a>

source§

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

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

impl<'a> DownloadPolicyStore for StoreInstance<'a>

source§

fn get_download_policy( &mut self, namespace: &NamespaceId @@ -47,14 +47,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/index.html b/pr/2674/docs/iroh/docs/store/index.html index 2dfba9b19d..10be394196 100644 --- a/pr/2674/docs/iroh/docs/store/index.html +++ b/pr/2674/docs/iroh/docs/store/index.html @@ -1,3 +1,3 @@ -iroh::docs::store - Rust

Module iroh::docs::store

source ·
Expand description

Storage trait and implementation for iroh-docs documents

+iroh::docs::store - Rust

Module iroh::docs::store

source ·
Expand description

Storage trait and implementation for iroh-docs documents

Modules§

  • On disk storage for replicas.

Structs§

  • Query on all entries without aggregation.
  • In-memory key storage
  • Note: When using the SingleLatestPerKey query kind, the key filter is applied before the grouping, the author filter is applied after the grouping.
  • A query builder for document queries.
  • Query that only returns the latest entry for a key which has entries from multiple authors.
  • Manages the replicas and authors for an instance.

Enums§

Traits§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/docs/store/struct.FlatQuery.html b/pr/2674/docs/iroh/docs/store/struct.FlatQuery.html index bff36c8784..bb3f391b25 100644 --- a/pr/2674/docs/iroh/docs/store/struct.FlatQuery.html +++ b/pr/2674/docs/iroh/docs/store/struct.FlatQuery.html @@ -1,4 +1,4 @@ -FlatQuery in iroh::docs::store - Rust

Struct iroh::docs::store::FlatQuery

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

Query on all entries without aggregation.

+FlatQuery in iroh::docs::store - Rust

Struct iroh::docs::store::FlatQuery

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

Query on all entries without aggregation.

Trait Implementations§

source§

impl Clone for FlatQuery

source§

fn clone(&self) -> FlatQuery

Returns a 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 FlatQuery

source§

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

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

impl Default for FlatQuery

source§

fn default() -> FlatQuery

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

impl<'de> Deserialize<'de> for FlatQuery

source§

fn deserialize<__D>( __deserializer: __D ) -> Result<FlatQuery, <__D as Deserializer<'de>>::Error>
where @@ -50,14 +50,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/struct.MemPublicKeyStore.html b/pr/2674/docs/iroh/docs/store/struct.MemPublicKeyStore.html index 91064dcf3c..33ba5af9f9 100644 --- a/pr/2674/docs/iroh/docs/store/struct.MemPublicKeyStore.html +++ b/pr/2674/docs/iroh/docs/store/struct.MemPublicKeyStore.html @@ -1,4 +1,4 @@ -MemPublicKeyStore in iroh::docs::store - Rust

Struct iroh::docs::store::MemPublicKeyStore

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

In-memory key storage

+MemPublicKeyStore in iroh::docs::store - Rust

Struct iroh::docs::store::MemPublicKeyStore

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

In-memory key storage

Trait Implementations§

source§

impl Clone for MemPublicKeyStore

source§

fn clone(&self) -> MemPublicKeyStore

Returns a 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 MemPublicKeyStore

source§

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

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

impl Default for MemPublicKeyStore

source§

fn default() -> MemPublicKeyStore

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

impl PublicKeyStore for MemPublicKeyStore

source§

fn public_key(&self, bytes: &[u8; 32]) -> Result<VerifyingKey, Error>

Convert a byte array into a [VerifyingKey]. Read more
source§

fn namespace_key( &self, bytes: &NamespaceId @@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/struct.Query.html b/pr/2674/docs/iroh/docs/store/struct.Query.html index 15fb1f78f6..9fa0475c60 100644 --- a/pr/2674/docs/iroh/docs/store/struct.Query.html +++ b/pr/2674/docs/iroh/docs/store/struct.Query.html @@ -1,4 +1,4 @@ -Query in iroh::docs::store - Rust

Struct iroh::docs::store::Query

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

Note: When using the SingleLatestPerKey query kind, the key filter is applied before the +Query in iroh::docs::store - Rust

Struct iroh::docs::store::Query

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

Note: When using the SingleLatestPerKey query kind, the key filter is applied before the grouping, the author filter is applied after the grouping.

Implementations§

source§

impl Query

source

pub fn all() -> QueryBuilder<FlatQuery>

Query all records.

source

pub fn single_latest_per_key() -> QueryBuilder<SingleLatestPerKeyQuery>

Query only the latest entry for each key, omitting older entries if the entry was written @@ -11,7 +11,7 @@ to by multiple authors.

Trait Implementations§

source§

impl Clone for Query

source§

fn clone(&self) -> Query

Returns a 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 Query

source§

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

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

impl<'de> Deserialize<'de> for Query

source§

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

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

impl From<QueryBuilder<FlatQuery>> for Query

source§

fn from(builder: QueryBuilder<FlatQuery>) -> Query

Converts to this type from the input type.
source§

impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query

source§

fn from(builder: QueryBuilder<SingleLatestPerKeyQuery>) -> Query

Converts to this type from the input type.
source§

impl Serialize for Query

source§

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

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

impl From<QueryBuilder<FlatQuery>> for Query

source§

fn from(builder: QueryBuilder<FlatQuery>) -> Query

Converts to this type from the input type.
source§

impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query

source§

fn from(builder: QueryBuilder<SingleLatestPerKeyQuery>) -> Query

Converts to this type from the input type.
source§

impl Serialize for Query

source§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where @@ -59,14 +59,7 @@ to by multiple authors.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/struct.QueryBuilder.html b/pr/2674/docs/iroh/docs/store/struct.QueryBuilder.html index b49d02059d..57829de81d 100644 --- a/pr/2674/docs/iroh/docs/store/struct.QueryBuilder.html +++ b/pr/2674/docs/iroh/docs/store/struct.QueryBuilder.html @@ -1,4 +1,4 @@ -QueryBuilder in iroh::docs::store - Rust

Struct iroh::docs::store::QueryBuilder

source ·
pub struct QueryBuilder<K> { /* private fields */ }
Expand description

A query builder for document queries.

+QueryBuilder in iroh::docs::store - Rust

Struct iroh::docs::store::QueryBuilder

source ·
pub struct QueryBuilder<K> { /* private fields */ }
Expand description

A query builder for document queries.

Implementations§

source§

impl<K> QueryBuilder<K>

source

pub fn include_empty(self) -> QueryBuilder<K>

Call to include empty entries (deletion markers).

source

pub fn key_exact(self, key: impl AsRef<[u8]>) -> QueryBuilder<K>

Filter by exact key match.

source

pub fn key_prefix(self, key: impl AsRef<[u8]>) -> QueryBuilder<K>

Filter by key prefix.

@@ -21,7 +21,7 @@ Default direction is ascending.

source

pub fn build(self) -> Query

Build the query.

Trait Implementations§

source§

impl<K> Debug for QueryBuilder<K>
where K: Debug,

source§

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

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

impl<K> Default for QueryBuilder<K>
where - K: Default,

source§

fn default() -> QueryBuilder<K>

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

impl From<QueryBuilder<FlatQuery>> for Query

source§

fn from(builder: QueryBuilder<FlatQuery>) -> Query

Converts to this type from the input type.
source§

impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query

source§

fn from(builder: QueryBuilder<SingleLatestPerKeyQuery>) -> Query

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<K> !Freeze for QueryBuilder<K>

§

impl<K> RefUnwindSafe for QueryBuilder<K>
where + K: Default,

source§

fn default() -> QueryBuilder<K>

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

impl From<QueryBuilder<FlatQuery>> for Query

source§

fn from(builder: QueryBuilder<FlatQuery>) -> Query

Converts to this type from the input type.
source§

impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query

source§

fn from(builder: QueryBuilder<SingleLatestPerKeyQuery>) -> Query

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<K> !Freeze for QueryBuilder<K>

§

impl<K> RefUnwindSafe for QueryBuilder<K>
where K: RefUnwindSafe,

§

impl<K> Send for QueryBuilder<K>
where K: Send,

§

impl<K> Sync for QueryBuilder<K>
where K: Sync,

§

impl<K> Unpin for QueryBuilder<K>
where @@ -68,14 +68,7 @@ Default direction is ascending.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/struct.SingleLatestPerKeyQuery.html b/pr/2674/docs/iroh/docs/store/struct.SingleLatestPerKeyQuery.html index 7b7ef68ef3..487e401e89 100644 --- a/pr/2674/docs/iroh/docs/store/struct.SingleLatestPerKeyQuery.html +++ b/pr/2674/docs/iroh/docs/store/struct.SingleLatestPerKeyQuery.html @@ -1,4 +1,4 @@ -SingleLatestPerKeyQuery in iroh::docs::store - Rust

Struct iroh::docs::store::SingleLatestPerKeyQuery

source ·
pub struct SingleLatestPerKeyQuery {}
Expand description

Query that only returns the latest entry for a key which has entries from multiple authors.

+SingleLatestPerKeyQuery in iroh::docs::store - Rust

Struct iroh::docs::store::SingleLatestPerKeyQuery

source ·
pub struct SingleLatestPerKeyQuery {}
Expand description

Query that only returns the latest entry for a key which has entries from multiple authors.

Trait Implementations§

source§

impl Clone for SingleLatestPerKeyQuery

source§

fn clone(&self) -> SingleLatestPerKeyQuery

Returns a 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 SingleLatestPerKeyQuery

source§

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

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

impl Default for SingleLatestPerKeyQuery

source§

fn default() -> SingleLatestPerKeyQuery

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

impl<'de> Deserialize<'de> for SingleLatestPerKeyQuery

source§

fn deserialize<__D>( __deserializer: __D ) -> Result<SingleLatestPerKeyQuery, <__D as Deserializer<'de>>::Error>
where @@ -50,14 +50,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/struct.Store.html b/pr/2674/docs/iroh/docs/store/struct.Store.html index c14a409cc6..5224efa55a 100644 --- a/pr/2674/docs/iroh/docs/store/struct.Store.html +++ b/pr/2674/docs/iroh/docs/store/struct.Store.html @@ -1,4 +1,4 @@ -Store in iroh::docs::store - Rust

Struct iroh::docs::store::Store

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

Manages the replicas and authors for an instance.

+Store in iroh::docs::store - Rust

Struct iroh::docs::store::Store

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

Manages the replicas and authors for an instance.

Implementations§

source§

impl Store

source

pub fn memory() -> Store

Create a new store in memory.

source

pub fn persistent(path: impl AsRef<Path>) -> Result<Store, Error>

Create or open a store from a path to a database file.

The file will be created if it does not exist, otherwise it will be opened.

@@ -138,14 +138,7 @@ that a replica cannot be removed while it is still open.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/store/trait.DownloadPolicyStore.html b/pr/2674/docs/iroh/docs/store/trait.DownloadPolicyStore.html index 090408eadf..45b8e63f5b 100644 --- a/pr/2674/docs/iroh/docs/store/trait.DownloadPolicyStore.html +++ b/pr/2674/docs/iroh/docs/store/trait.DownloadPolicyStore.html @@ -1,4 +1,4 @@ -DownloadPolicyStore in iroh::docs::store - Rust

Trait iroh::docs::store::DownloadPolicyStore

source ·
pub trait DownloadPolicyStore {
+DownloadPolicyStore in iroh::docs::store - Rust

Trait iroh::docs::store::DownloadPolicyStore

source ·
pub trait DownloadPolicyStore {
     // Required method
     fn get_download_policy(
         &mut self,
diff --git a/pr/2674/docs/iroh/docs/store/trait.PublicKeyStore.html b/pr/2674/docs/iroh/docs/store/trait.PublicKeyStore.html
index 1801abef72..f8145314a5 100644
--- a/pr/2674/docs/iroh/docs/store/trait.PublicKeyStore.html
+++ b/pr/2674/docs/iroh/docs/store/trait.PublicKeyStore.html
@@ -1,4 +1,4 @@
-PublicKeyStore in iroh::docs::store - Rust

Trait iroh::docs::store::PublicKeyStore

source ·
pub trait PublicKeyStore {
+PublicKeyStore in iroh::docs::store - Rust

Trait iroh::docs::store::PublicKeyStore

source ·
pub trait PublicKeyStore {
     // Required method
     fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>;
 
@@ -22,4 +22,4 @@
 

New keys are inserted into the `PublicKeyStore and reused on subsequent calls.

Implementations on Foreign Types§

source§

impl PublicKeyStore for ()

source§

fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>

source§

impl<T> PublicKeyStore for &T
where T: PublicKeyStore,

source§

fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>

source§

impl<T> PublicKeyStore for &mut T
where - T: PublicKeyStore,

source§

fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>

Implementors§

\ No newline at end of file + T: PublicKeyStore,

source§

fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>

Implementors§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/docs/struct.Author.html b/pr/2674/docs/iroh/docs/struct.Author.html index c34b25d58b..2f938cf921 100644 --- a/pr/2674/docs/iroh/docs/struct.Author.html +++ b/pr/2674/docs/iroh/docs/struct.Author.html @@ -1,4 +1,4 @@ -Author in iroh::docs - Rust

Struct iroh::docs::Author

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

Author key to insert entries in a crate::Replica

+Author in iroh::docs - Rust

Struct iroh::docs::Author

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

Author key to insert entries in a crate::Replica

Internally, an author is a [SigningKey] which is used to sign entries.

Implementations§

source§

impl Author

source

pub fn new<R>(rng: &mut R) -> Author
where R: CryptoRngCore + ?Sized,

Create a new Author with a random key.

@@ -11,7 +11,7 @@

Trait Implementations§

source§

impl Clone for Author

source§

fn clone(&self) -> Author

Returns a 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 Author

source§

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

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

impl<'de> Deserialize<'de> for Author

source§

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

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

impl Display for Author

source§

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

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

impl From<&Author> for AuthorPublicKey

source§

fn from(value: &Author) -> AuthorPublicKey

Converts to this type from the input type.
source§

impl From<Author> for AuthorId

source§

fn from(value: Author) -> AuthorId

Converts to this type from the input type.
source§

impl From<Author> for AuthorPublicKey

source§

fn from(value: Author) -> AuthorPublicKey

Converts to this type from the input type.
source§

impl From<SigningKey> for Author

source§

fn from(signing_key: SigningKey) -> Author

Converts to this type from the input type.
source§

impl FromStr for Author

§

type Err = Error

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

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

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

impl Serialize for Author

source§

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

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

impl Display for Author

source§

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

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

impl From<&Author> for AuthorPublicKey

source§

fn from(value: &Author) -> AuthorPublicKey

Converts to this type from the input type.
source§

impl From<Author> for AuthorId

source§

fn from(value: Author) -> AuthorId

Converts to this type from the input type.
source§

impl From<Author> for AuthorPublicKey

source§

fn from(value: Author) -> AuthorPublicKey

Converts to this type from the input type.
source§

impl From<SigningKey> for Author

source§

fn from(signing_key: SigningKey) -> Author

Converts to this type from the input type.
source§

impl FromStr for Author

§

type Err = Error

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

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

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

impl Serialize for Author

source§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where @@ -59,14 +59,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/struct.AuthorHeads.html b/pr/2674/docs/iroh/docs/struct.AuthorHeads.html index 7e3a4c54f7..12cb42e31a 100644 --- a/pr/2674/docs/iroh/docs/struct.AuthorHeads.html +++ b/pr/2674/docs/iroh/docs/struct.AuthorHeads.html @@ -1,4 +1,4 @@ -AuthorHeads in iroh::docs - Rust

Struct iroh::docs::AuthorHeads

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

Timestamps of the latest entry for each author.

+AuthorHeads in iroh::docs - Rust

Struct iroh::docs::AuthorHeads

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

Timestamps of the latest entry for each author.

Implementations§

source§

impl AuthorHeads

source

pub fn insert(&mut self, author: AuthorId, timestamp: u64)

Insert a new timestamp.

source

pub fn len(&self) -> usize

Number of author-timestamp pairs.

source

pub fn is_empty(&self) -> bool

Whether this AuthorHeads is empty.

@@ -10,8 +10,8 @@

Will skip oldest entries if the size limit is reached. Returns a byte array with a maximum length of size_limit.

source

pub fn decode(bytes: &[u8]) -> Result<AuthorHeads, Error>

Decode from byte slice created with Self::encode.

-

Trait Implementations§

source§

impl Clone for AuthorHeads

source§

fn clone(&self) -> AuthorHeads

Returns a 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 AuthorHeads

source§

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

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

impl Default for AuthorHeads

source§

fn default() -> AuthorHeads

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

impl FromIterator<(AuthorId, u64)> for AuthorHeads

source§

fn from_iter<T>(iter: T) -> AuthorHeads
where - T: IntoIterator<Item = (AuthorId, u64)>,

Creates a value from an iterator. Read more
source§

impl FromIterator<(u64, AuthorId)> for AuthorHeads

source§

fn from_iter<T>(iter: T) -> AuthorHeads
where +

Trait Implementations§

source§

impl Clone for AuthorHeads

source§

fn clone(&self) -> AuthorHeads

Returns a 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 AuthorHeads

source§

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

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

impl Default for AuthorHeads

source§

fn default() -> AuthorHeads

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

impl FromIterator<(AuthorId, u64)> for AuthorHeads

source§

fn from_iter<T>(iter: T) -> AuthorHeads
where + T: IntoIterator<Item = (AuthorId, u64)>,

Creates a value from an iterator. Read more
source§

impl FromIterator<(u64, AuthorId)> for AuthorHeads

source§

fn from_iter<T>(iter: T) -> AuthorHeads
where T: IntoIterator<Item = (u64, AuthorId)>,

Creates a value from an iterator. Read more
source§

impl PartialEq for AuthorHeads

source§

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

source§

impl StructuralPartialEq for AuthorHeads

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where @@ -62,14 +62,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/struct.AuthorId.html b/pr/2674/docs/iroh/docs/struct.AuthorId.html index 53919d0763..b176e58d39 100644 --- a/pr/2674/docs/iroh/docs/struct.AuthorId.html +++ b/pr/2674/docs/iroh/docs/struct.AuthorId.html @@ -1,4 +1,4 @@ -AuthorId in iroh::docs - Rust

Struct iroh::docs::AuthorId

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

AuthorPublicKey in bytes

+AuthorId in iroh::docs - Rust

Struct iroh::docs::AuthorId

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

AuthorPublicKey in bytes

Implementations§

source§

impl AuthorId

source

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

Convert to byte array.

source

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

Convert to byte slice.

source

pub fn public_key<S>(&self, store: &S) -> Result<AuthorPublicKey, Error>
where @@ -11,7 +11,7 @@ representation of the key.

Trait Implementations§

source§

impl AsRef<[u8]> for AuthorId

source§

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

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

impl AsRef<[u8; 32]> for AuthorId

source§

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

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

impl Clone for AuthorId

source§

fn clone(&self) -> AuthorId

Returns a 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 AuthorId

source§

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

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

impl Default for AuthorId

source§

fn default() -> AuthorId

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

impl<'de> Deserialize<'de> for AuthorId

source§

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

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

impl Display for AuthorId

source§

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

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

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

source§

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

Converts to this type from the input type.
source§

impl From<&AuthorPublicKey> for AuthorId

source§

fn from(value: &AuthorPublicKey) -> AuthorId

Converts to this type from the input type.
source§

impl From<[u8; 32]> for AuthorId

source§

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

Converts to this type from the input type.
source§

impl From<Author> for AuthorId

source§

fn from(value: Author) -> AuthorId

Converts to this type from the input type.
source§

impl From<AuthorId> for [u8; 32]

source§

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

Converts to this type from the input type.
source§

impl From<AuthorId> for AuthorFilter

source§

fn from(value: AuthorId) -> AuthorFilter

Converts to this type from the input type.
source§

impl From<AuthorPublicKey> for AuthorId

source§

fn from(value: AuthorPublicKey) -> AuthorId

Converts to this type from the input type.
source§

impl FromStr for AuthorId

§

type Err = Error

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

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

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

impl Hash for AuthorId

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 AuthorId

source§

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

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

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

source§

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

Converts to this type from the input type.
source§

impl From<&AuthorPublicKey> for AuthorId

source§

fn from(value: &AuthorPublicKey) -> AuthorId

Converts to this type from the input type.
source§

impl From<[u8; 32]> for AuthorId

source§

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

Converts to this type from the input type.
source§

impl From<Author> for AuthorId

source§

fn from(value: Author) -> AuthorId

Converts to this type from the input type.
source§

impl From<AuthorId> for [u8; 32]

source§

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

Converts to this type from the input type.
source§

impl From<AuthorId> for AuthorFilter

source§

fn from(value: AuthorId) -> AuthorFilter

Converts to this type from the input type.
source§

impl From<AuthorPublicKey> for AuthorId

source§

fn from(value: AuthorPublicKey) -> AuthorId

Converts to this type from the input type.
source§

impl FromStr for AuthorId

§

type Err = Error

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

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

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

impl Hash for AuthorId

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 AuthorId

source§

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

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

fn max(self, other: Self) -> Self
where @@ -82,14 +82,7 @@ ordering. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/struct.AuthorPublicKey.html b/pr/2674/docs/iroh/docs/struct.AuthorPublicKey.html index 0c03c09be3..2dc8cacb31 100644 --- a/pr/2674/docs/iroh/docs/struct.AuthorPublicKey.html +++ b/pr/2674/docs/iroh/docs/struct.AuthorPublicKey.html @@ -1,4 +1,4 @@ -AuthorPublicKey in iroh::docs - Rust

Struct iroh::docs::AuthorPublicKey

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

Identifier for an Author

+AuthorPublicKey in iroh::docs - Rust

Struct iroh::docs::AuthorPublicKey

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

Identifier for an Author

This is the corresponding [VerifyingKey] for an author. It is used as an identifier, and can be used to verify Signatures.

Implementations§

source§

impl AuthorPublicKey

source

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

Verify that a signature matches the msg bytes and was created with the Author @@ -11,7 +11,7 @@ See [VerifyingKey::from_bytes] for details.

Trait Implementations§

source§

impl Clone for AuthorPublicKey

source§

fn clone(&self) -> AuthorPublicKey

Returns a 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 AuthorPublicKey

source§

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

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

impl Default for AuthorPublicKey

source§

fn default() -> AuthorPublicKey

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

impl<'de> Deserialize<'de> for AuthorPublicKey

source§

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

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

impl Display for AuthorPublicKey

source§

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

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

impl From<&Author> for AuthorPublicKey

source§

fn from(value: &Author) -> AuthorPublicKey

Converts to this type from the input type.
source§

impl From<&AuthorPublicKey> for AuthorId

source§

fn from(value: &AuthorPublicKey) -> AuthorId

Converts to this type from the input type.
source§

impl From<Author> for AuthorPublicKey

source§

fn from(value: Author) -> AuthorPublicKey

Converts to this type from the input type.
source§

impl From<AuthorPublicKey> for AuthorId

source§

fn from(value: AuthorPublicKey) -> AuthorId

Converts to this type from the input type.
source§

impl From<VerifyingKey> for AuthorPublicKey

source§

fn from(value: VerifyingKey) -> AuthorPublicKey

Converts to this type from the input type.
source§

impl FromStr for AuthorPublicKey

§

type Err = Error

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

fn from_str( + __D: Deserializer<'de>,

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

impl Display for AuthorPublicKey

source§

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

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

impl From<&Author> for AuthorPublicKey

source§

fn from(value: &Author) -> AuthorPublicKey

Converts to this type from the input type.
source§

impl From<&AuthorPublicKey> for AuthorId

source§

fn from(value: &AuthorPublicKey) -> AuthorId

Converts to this type from the input type.
source§

impl From<Author> for AuthorPublicKey

source§

fn from(value: Author) -> AuthorPublicKey

Converts to this type from the input type.
source§

impl From<AuthorPublicKey> for AuthorId

source§

fn from(value: AuthorPublicKey) -> AuthorId

Converts to this type from the input type.
source§

impl From<VerifyingKey> for AuthorPublicKey

source§

fn from(value: VerifyingKey) -> AuthorPublicKey

Converts to this type from the input type.
source§

impl FromStr for AuthorPublicKey

§

type Err = Error

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

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

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

impl Hash for AuthorPublicKey

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 @@ -79,14 +79,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/struct.DocTicket.html b/pr/2674/docs/iroh/docs/struct.DocTicket.html index 31a6221400..0da1346c38 100644 --- a/pr/2674/docs/iroh/docs/struct.DocTicket.html +++ b/pr/2674/docs/iroh/docs/struct.DocTicket.html @@ -1,4 +1,4 @@ -DocTicket in iroh::docs - Rust

Struct iroh::docs::DocTicket

source ·
pub struct DocTicket {
+DocTicket in iroh::docs - Rust

Struct iroh::docs::DocTicket

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

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

@@ -56,14 +56,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/struct.Entry.html b/pr/2674/docs/iroh/docs/struct.Entry.html index bda56f58e2..8e822dac92 100644 --- a/pr/2674/docs/iroh/docs/struct.Entry.html +++ b/pr/2674/docs/iroh/docs/struct.Entry.html @@ -1,4 +1,4 @@ -Entry in iroh::docs - Rust

Struct iroh::docs::Entry

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

A single entry in a Replica

+Entry in iroh::docs - Rust

Struct iroh::docs::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 of the entry’s content data, the size of this content data, and a timestamp.

@@ -81,14 +81,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/struct.EntrySignature.html b/pr/2674/docs/iroh/docs/struct.EntrySignature.html index ca43ebc11e..e5f7238be8 100644 --- a/pr/2674/docs/iroh/docs/struct.EntrySignature.html +++ b/pr/2674/docs/iroh/docs/struct.EntrySignature.html @@ -1,4 +1,4 @@ -EntrySignature in iroh::docs - Rust

Struct iroh::docs::EntrySignature

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

Signature over an entry.

+EntrySignature in iroh::docs - Rust

Struct iroh::docs::EntrySignature

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

Signature over an entry.

Implementations§

source§

impl EntrySignature

source

pub fn from_entry( entry: &Entry, namespace: &NamespaceSecret, @@ -68,14 +68,7 @@ sufficient, and should not be overridden without very good reason.

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/struct.NamespaceId.html b/pr/2674/docs/iroh/docs/struct.NamespaceId.html index 76fcfd142e..7651286667 100644 --- a/pr/2674/docs/iroh/docs/struct.NamespaceId.html +++ b/pr/2674/docs/iroh/docs/struct.NamespaceId.html @@ -1,4 +1,4 @@ -NamespaceId in iroh::docs - Rust

Struct iroh::docs::NamespaceId

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

NamespacePublicKey in bytes

+NamespaceId in iroh::docs - Rust

Struct iroh::docs::NamespaceId

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

Implementations§

source§

impl NamespaceId

source

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

Convert to byte array.

source

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

Convert to byte slice.

source

pub fn public_key<S>(&self, store: &S) -> Result<NamespacePublicKey, Error>
where @@ -11,7 +11,7 @@ representation of the key.

Trait Implementations§

source§

impl AsRef<[u8]> for NamespaceId

source§

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

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

impl AsRef<[u8; 32]> for NamespaceId

source§

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

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

impl Clone for NamespaceId

source§

fn clone(&self) -> NamespaceId

Returns a 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 NamespaceId

source§

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

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

impl Default for NamespaceId

source§

fn default() -> NamespaceId

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

impl<'de> Deserialize<'de> for NamespaceId

source§

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

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

impl Display for NamespaceId

source§

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

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

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

source§

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

Converts to this type from the input type.
source§

impl From<&NamespacePublicKey> for NamespaceId

source§

fn from(value: &NamespacePublicKey) -> NamespaceId

Converts to this type from the input type.
source§

impl From<[u8; 32]> for NamespaceId

source§

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

Converts to this type from the input type.
source§

impl From<NamespaceId> for [u8; 32]

source§

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

Converts to this type from the input type.
source§

impl From<NamespaceId> for Capability

source§

fn from(value: NamespaceId) -> Capability

Converts to this type from the input type.
source§

impl From<NamespacePublicKey> for NamespaceId

source§

fn from(value: NamespacePublicKey) -> NamespaceId

Converts to this type from the input type.
source§

impl From<NamespaceSecret> for NamespaceId

source§

fn from(value: NamespaceSecret) -> NamespaceId

Converts to this type from the input type.
source§

impl FromStr for NamespaceId

§

type Err = Error

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

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

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

impl Hash for NamespaceId

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 NamespaceId

source§

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

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

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

source§

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

Converts to this type from the input type.
source§

impl From<&NamespacePublicKey> for NamespaceId

source§

fn from(value: &NamespacePublicKey) -> NamespaceId

Converts to this type from the input type.
source§

impl From<[u8; 32]> for NamespaceId

source§

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

Converts to this type from the input type.
source§

impl From<NamespaceId> for [u8; 32]

source§

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

Converts to this type from the input type.
source§

impl From<NamespaceId> for Capability

source§

fn from(value: NamespaceId) -> Capability

Converts to this type from the input type.
source§

impl From<NamespacePublicKey> for NamespaceId

source§

fn from(value: NamespacePublicKey) -> NamespaceId

Converts to this type from the input type.
source§

impl From<NamespaceSecret> for NamespaceId

source§

fn from(value: NamespaceSecret) -> NamespaceId

Converts to this type from the input type.
source§

impl FromStr for NamespaceId

§

type Err = Error

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

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

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

impl Hash for NamespaceId

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 NamespaceId

source§

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

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

fn max(self, other: Self) -> Self
where @@ -82,14 +82,7 @@ ordering. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/struct.NamespacePublicKey.html b/pr/2674/docs/iroh/docs/struct.NamespacePublicKey.html index ce9e39be09..3283cf0383 100644 --- a/pr/2674/docs/iroh/docs/struct.NamespacePublicKey.html +++ b/pr/2674/docs/iroh/docs/struct.NamespacePublicKey.html @@ -1,4 +1,4 @@ -NamespacePublicKey in iroh::docs - Rust

Struct iroh::docs::NamespacePublicKey

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

The corresponding [VerifyingKey] for a NamespaceSecret. +NamespacePublicKey in iroh::docs - Rust

Struct iroh::docs::NamespacePublicKey

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

The corresponding [VerifyingKey] for a NamespaceSecret. It is used as an identifier, and can be used to verify Signatures.

Implementations§

source§

impl NamespacePublicKey

source

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

Verify that a signature matches the msg bytes and was created with the NamespaceSecret that corresponds to this NamespaceId.

@@ -10,7 +10,7 @@ See [VerifyingKey::from_bytes] for details.

Trait Implementations§

source§

impl Clone for NamespacePublicKey

source§

fn clone(&self) -> NamespacePublicKey

Returns a 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 NamespacePublicKey

source§

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

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

impl Default for NamespacePublicKey

source§

fn default() -> NamespacePublicKey

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

impl<'de> Deserialize<'de> for NamespacePublicKey

source§

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

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

impl Display for NamespacePublicKey

source§

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

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

impl From<&NamespacePublicKey> for NamespaceId

source§

fn from(value: &NamespacePublicKey) -> NamespaceId

Converts to this type from the input type.
source§

impl From<&NamespaceSecret> for NamespacePublicKey

source§

fn from(value: &NamespaceSecret) -> NamespacePublicKey

Converts to this type from the input type.
source§

impl From<NamespacePublicKey> for NamespaceId

source§

fn from(value: NamespacePublicKey) -> NamespaceId

Converts to this type from the input type.
source§

impl From<NamespaceSecret> for NamespacePublicKey

source§

fn from(value: NamespaceSecret) -> NamespacePublicKey

Converts to this type from the input type.
source§

impl From<VerifyingKey> for NamespacePublicKey

source§

fn from(value: VerifyingKey) -> NamespacePublicKey

Converts to this type from the input type.
source§

impl FromStr for NamespacePublicKey

§

type Err = Error

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

fn from_str( + __D: Deserializer<'de>,

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

impl Display for NamespacePublicKey

source§

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

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

impl From<&NamespacePublicKey> for NamespaceId

source§

fn from(value: &NamespacePublicKey) -> NamespaceId

Converts to this type from the input type.
source§

impl From<&NamespaceSecret> for NamespacePublicKey

source§

fn from(value: &NamespaceSecret) -> NamespacePublicKey

Converts to this type from the input type.
source§

impl From<NamespacePublicKey> for NamespaceId

source§

fn from(value: NamespacePublicKey) -> NamespaceId

Converts to this type from the input type.
source§

impl From<NamespaceSecret> for NamespacePublicKey

source§

fn from(value: NamespaceSecret) -> NamespacePublicKey

Converts to this type from the input type.
source§

impl From<VerifyingKey> for NamespacePublicKey

source§

fn from(value: VerifyingKey) -> NamespacePublicKey

Converts to this type from the input type.
source§

impl FromStr for NamespacePublicKey

§

type Err = Error

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

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

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

impl Hash for NamespacePublicKey

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 @@ -78,14 +78,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/struct.NamespaceSecret.html b/pr/2674/docs/iroh/docs/struct.NamespaceSecret.html index a64a12ae35..9714fc29f5 100644 --- a/pr/2674/docs/iroh/docs/struct.NamespaceSecret.html +++ b/pr/2674/docs/iroh/docs/struct.NamespaceSecret.html @@ -1,4 +1,4 @@ -NamespaceSecret in iroh::docs - Rust

Struct iroh::docs::NamespaceSecret

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

Namespace key of a crate::Replica.

+NamespaceSecret in iroh::docs - Rust

Struct iroh::docs::NamespaceSecret

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

Namespace key of a crate::Replica.

Holders of this key can insert new entries into a crate::Replica. Internally, a NamespaceSecret is a [SigningKey] which is used to sign entries.

Implementations§

source§

impl NamespaceSecret

source

pub fn new<R>(rng: &mut R) -> NamespaceSecret
where @@ -12,7 +12,7 @@ Internally, a Trait Implementations§

source§

impl Clone for NamespaceSecret

source§

fn clone(&self) -> NamespaceSecret

Returns a 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 NamespaceSecret

source§

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

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

impl<'de> Deserialize<'de> for NamespaceSecret

source§

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

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

impl Display for NamespaceSecret

source§

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

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

impl From<&NamespaceSecret> for NamespacePublicKey

source§

fn from(value: &NamespaceSecret) -> NamespacePublicKey

Converts to this type from the input type.
source§

impl From<NamespaceSecret> for Capability

source§

fn from(value: NamespaceSecret) -> Capability

Converts to this type from the input type.
source§

impl From<NamespaceSecret> for NamespaceId

source§

fn from(value: NamespaceSecret) -> NamespaceId

Converts to this type from the input type.
source§

impl From<NamespaceSecret> for NamespacePublicKey

source§

fn from(value: NamespaceSecret) -> NamespacePublicKey

Converts to this type from the input type.
source§

impl From<SigningKey> for NamespaceSecret

source§

fn from(signing_key: SigningKey) -> NamespaceSecret

Converts to this type from the input type.
source§

impl FromStr for NamespaceSecret

§

type Err = Error

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

fn from_str( + __D: Deserializer<'de>,

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

impl Display for NamespaceSecret

source§

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

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

impl From<&NamespaceSecret> for NamespacePublicKey

source§

fn from(value: &NamespaceSecret) -> NamespacePublicKey

Converts to this type from the input type.
source§

impl From<NamespaceSecret> for Capability

source§

fn from(value: NamespaceSecret) -> Capability

Converts to this type from the input type.
source§

impl From<NamespaceSecret> for NamespaceId

source§

fn from(value: NamespaceSecret) -> NamespaceId

Converts to this type from the input type.
source§

impl From<NamespaceSecret> for NamespacePublicKey

source§

fn from(value: NamespaceSecret) -> NamespacePublicKey

Converts to this type from the input type.
source§

impl From<SigningKey> for NamespaceSecret

source§

fn from(signing_key: SigningKey) -> NamespaceSecret

Converts to this type from the input type.
source§

impl FromStr for NamespaceSecret

§

type Err = Error

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

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

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

impl Serialize for NamespaceSecret

source§

fn serialize<__S>( &self, @@ -62,14 +62,7 @@ Internally, a From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/struct.ReadOnly.html b/pr/2674/docs/iroh/docs/struct.ReadOnly.html index 2c9a3feaf8..cc6b519461 100644 --- a/pr/2674/docs/iroh/docs/struct.ReadOnly.html +++ b/pr/2674/docs/iroh/docs/struct.ReadOnly.html @@ -1,4 +1,4 @@ -ReadOnly in iroh::docs - Rust

Struct iroh::docs::ReadOnly

source ·
pub struct ReadOnly;
Expand description

Error that occurs trying to access the NamespaceSecret of a read-only Capability.

+ReadOnly in iroh::docs - Rust

Struct iroh::docs::ReadOnly

source ·
pub struct ReadOnly;
Expand description

Error that occurs trying to access the NamespaceSecret of a read-only Capability.

Trait Implementations§

source§

impl Debug for ReadOnly

source§

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

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

impl Display for ReadOnly

source§

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

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

impl Error for ReadOnly

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<ReadOnly> for InsertError

source§

fn from(value: ReadOnly) -> InsertError

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 @@ -41,14 +41,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/struct.Record.html b/pr/2674/docs/iroh/docs/struct.Record.html index b18d8336e4..b6019117f4 100644 --- a/pr/2674/docs/iroh/docs/struct.Record.html +++ b/pr/2674/docs/iroh/docs/struct.Record.html @@ -1,4 +1,4 @@ -Record in iroh::docs - Rust

Struct iroh::docs::Record

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

The data part of an entry in a Replica.

+Record in iroh::docs - Rust

Struct iroh::docs::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) -> Record

Create a new record.

source

pub fn empty(timestamp: u64) -> Record

Create a tombstone record (empty content)

source

pub fn empty_current() -> Record

Create a tombstone record with the timestamp set to now.

@@ -73,14 +73,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/struct.RecordIdentifier.html b/pr/2674/docs/iroh/docs/struct.RecordIdentifier.html index 3446f56463..d1225b8d6b 100644 --- a/pr/2674/docs/iroh/docs/struct.RecordIdentifier.html +++ b/pr/2674/docs/iroh/docs/struct.RecordIdentifier.html @@ -1,4 +1,4 @@ -RecordIdentifier in iroh::docs - Rust

Struct iroh::docs::RecordIdentifier

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

The identifier of a record.

+RecordIdentifier in iroh::docs - Rust

Struct iroh::docs::RecordIdentifier

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

The identifier of a record.

Implementations§

source§

impl RecordIdentifier

source

pub fn new( namespace: impl Into<NamespaceId>, author: impl Into<AuthorId>, @@ -80,14 +80,7 @@ ordering. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/struct.Replica.html b/pr/2674/docs/iroh/docs/struct.Replica.html index 9056c875f2..0a49aa46e7 100644 --- a/pr/2674/docs/iroh/docs/struct.Replica.html +++ b/pr/2674/docs/iroh/docs/struct.Replica.html @@ -1,4 +1,4 @@ -Replica in iroh::docs - Rust

Struct iroh::docs::Replica

source ·
pub struct Replica<'a, I = Box<ReplicaInfo>> { /* private fields */ }
Expand description

Local representation of a mutable, synchronizable key-value store.

+Replica in iroh::docs - Rust

Struct iroh::docs::Replica

source ·
pub struct Replica<'a, I = Box<ReplicaInfo>> { /* private fields */ }
Expand description

Local representation of a mutable, synchronizable key-value store.

Implementations§

source§

impl<'a, I> Replica<'a, I>
where I: Deref<Target = ReplicaInfo> + DerefMut,

source

pub fn new(store: StoreInstance<'a>, info: I) -> Replica<'a, I>

Create a new replica.

source

pub fn insert( @@ -102,14 +102,7 @@ the replica is read only

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/struct.ReplicaInfo.html b/pr/2674/docs/iroh/docs/struct.ReplicaInfo.html index 617d9e7e9f..3b9857665b 100644 --- a/pr/2674/docs/iroh/docs/struct.ReplicaInfo.html +++ b/pr/2674/docs/iroh/docs/struct.ReplicaInfo.html @@ -1,4 +1,4 @@ -ReplicaInfo in iroh::docs - Rust

Struct iroh::docs::ReplicaInfo

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

In memory information about an open replica.

+ReplicaInfo in iroh::docs - Rust

Struct iroh::docs::ReplicaInfo

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

In memory information about an open replica.

Implementations§

source§

impl ReplicaInfo

source

pub fn new(capability: Capability) -> ReplicaInfo

Create a new replica.

source

pub fn subscribe(&mut self, sender: Sender<Event>)

Subscribe to insert events.

When subscribing to a replica, you must ensure that the corresponding [async_channel::Receiver] is @@ -68,14 +68,7 @@ It is a no-op if capability is a Capability::Read`.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/struct.SignedEntry.html b/pr/2674/docs/iroh/docs/struct.SignedEntry.html index 30f08edd6d..b92c6b060b 100644 --- a/pr/2674/docs/iroh/docs/struct.SignedEntry.html +++ b/pr/2674/docs/iroh/docs/struct.SignedEntry.html @@ -1,4 +1,4 @@ -SignedEntry in iroh::docs - Rust

Struct iroh::docs::SignedEntry

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

A signed entry.

+SignedEntry in iroh::docs - Rust

Struct iroh::docs::SignedEntry

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

A signed entry.

Implementations§

source§

impl SignedEntry

source

pub fn from_entry( entry: Entry, namespace: &NamespaceSecret, @@ -96,14 +96,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/struct.SyncOutcome.html b/pr/2674/docs/iroh/docs/struct.SyncOutcome.html index 645e11696e..e8236df442 100644 --- a/pr/2674/docs/iroh/docs/struct.SyncOutcome.html +++ b/pr/2674/docs/iroh/docs/struct.SyncOutcome.html @@ -1,4 +1,4 @@ -SyncOutcome in iroh::docs - Rust

Struct iroh::docs::SyncOutcome

source ·
pub struct SyncOutcome {
+SyncOutcome in iroh::docs - Rust

Struct iroh::docs::SyncOutcome

source ·
pub struct SyncOutcome {
     pub heads_received: AuthorHeads,
     pub num_recv: usize,
     pub num_sent: usize,
@@ -50,14 +50,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/constant.MAX_TIMESTAMP_FUTURE_SHIFT.html b/pr/2674/docs/iroh/docs/sync/constant.MAX_TIMESTAMP_FUTURE_SHIFT.html index a1ab0bb967..9678ca5753 100644 --- a/pr/2674/docs/iroh/docs/sync/constant.MAX_TIMESTAMP_FUTURE_SHIFT.html +++ b/pr/2674/docs/iroh/docs/sync/constant.MAX_TIMESTAMP_FUTURE_SHIFT.html @@ -1,3 +1,3 @@ -MAX_TIMESTAMP_FUTURE_SHIFT in iroh::docs::sync - Rust

Constant iroh::docs::sync::MAX_TIMESTAMP_FUTURE_SHIFT

source ·
pub const MAX_TIMESTAMP_FUTURE_SHIFT: u64 = _; // 600_000u64
Expand description

Max time in the future from our wall clock time that we accept entries for. +MAX_TIMESTAMP_FUTURE_SHIFT in iroh::docs::sync - Rust

Constant iroh::docs::sync::MAX_TIMESTAMP_FUTURE_SHIFT

source ·
pub const MAX_TIMESTAMP_FUTURE_SHIFT: u64 = _; // 600_000u64
Expand description

Max time in the future from our wall clock time that we accept entries for. Value is 10 minutes.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/docs/sync/enum.Capability.html b/pr/2674/docs/iroh/docs/sync/enum.Capability.html index 0077065d7f..9d2f813744 100644 --- a/pr/2674/docs/iroh/docs/sync/enum.Capability.html +++ b/pr/2674/docs/iroh/docs/sync/enum.Capability.html @@ -1,4 +1,4 @@ -Capability in iroh::docs::sync - Rust

Enum iroh::docs::sync::Capability

source ·
pub enum Capability {
+Capability in iroh::docs::sync - Rust

Enum iroh::docs::sync::Capability

source ·
pub enum Capability {
     Write(NamespaceSecret),
     Read(NamespaceId),
 }
Expand description

The capability of the namespace.

@@ -64,14 +64,7 @@ Will fail if the From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/enum.CapabilityError.html b/pr/2674/docs/iroh/docs/sync/enum.CapabilityError.html index 317a3c72b4..5ca7aa9256 100644 --- a/pr/2674/docs/iroh/docs/sync/enum.CapabilityError.html +++ b/pr/2674/docs/iroh/docs/sync/enum.CapabilityError.html @@ -1,4 +1,4 @@ -CapabilityError in iroh::docs::sync - Rust

Enum iroh::docs::sync::CapabilityError

source ·
pub enum CapabilityError {
+CapabilityError in iroh::docs::sync - Rust

Enum iroh::docs::sync::CapabilityError

source ·
pub enum CapabilityError {
     NamespaceMismatch,
 }
Expand description

Errors for capability operations

Variants§

§

NamespaceMismatch

Namespaces are not the same

@@ -44,14 +44,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/enum.CapabilityKind.html b/pr/2674/docs/iroh/docs/sync/enum.CapabilityKind.html index 21d69f031c..5a0d252dce 100644 --- a/pr/2674/docs/iroh/docs/sync/enum.CapabilityKind.html +++ b/pr/2674/docs/iroh/docs/sync/enum.CapabilityKind.html @@ -1,4 +1,4 @@ -CapabilityKind in iroh::docs::sync - Rust

Enum iroh::docs::sync::CapabilityKind

source ·
#[repr(u8)]
pub enum CapabilityKind { +CapabilityKind in iroh::docs::sync - Rust

Enum iroh::docs::sync::CapabilityKind

source ·
#[repr(u8)]
pub enum CapabilityKind { Write = 1, Read = 2, }
Expand description

Kind of capability of the namespace.

@@ -59,14 +59,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/enum.ContentStatus.html b/pr/2674/docs/iroh/docs/sync/enum.ContentStatus.html index 91dc20ea4f..5b03ee4885 100644 --- a/pr/2674/docs/iroh/docs/sync/enum.ContentStatus.html +++ b/pr/2674/docs/iroh/docs/sync/enum.ContentStatus.html @@ -1,4 +1,4 @@ -ContentStatus in iroh::docs::sync - Rust

Enum iroh::docs::sync::ContentStatus

source ·
pub enum ContentStatus {
+ContentStatus in iroh::docs::sync - Rust

Enum iroh::docs::sync::ContentStatus

source ·
pub enum ContentStatus {
     Complete,
     Incomplete,
     Missing,
@@ -63,14 +63,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/enum.Event.html b/pr/2674/docs/iroh/docs/sync/enum.Event.html index 59e73259c4..1e070f1b51 100644 --- a/pr/2674/docs/iroh/docs/sync/enum.Event.html +++ b/pr/2674/docs/iroh/docs/sync/enum.Event.html @@ -1,4 +1,4 @@ -Event in iroh::docs::sync - Rust

Enum iroh::docs::sync::Event

source ·
pub enum Event {
+Event in iroh::docs::sync - Rust

Enum iroh::docs::sync::Event

source ·
pub enum Event {
     LocalInsert {
         namespace: NamespaceId,
         entry: SignedEntry,
@@ -64,14 +64,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/enum.InsertError.html b/pr/2674/docs/iroh/docs/sync/enum.InsertError.html index 2bb0355fa9..97b410cd03 100644 --- a/pr/2674/docs/iroh/docs/sync/enum.InsertError.html +++ b/pr/2674/docs/iroh/docs/sync/enum.InsertError.html @@ -1,4 +1,4 @@ -InsertError in iroh::docs::sync - Rust

Enum iroh::docs::sync::InsertError

source ·
pub enum InsertError {
+InsertError in iroh::docs::sync - Rust

Enum iroh::docs::sync::InsertError

source ·
pub enum InsertError {
     Store(Error),
     Validation(ValidationFailure),
     NewerEntryExists,
@@ -12,7 +12,7 @@
 
§

EntryIsEmpty

Attempted to insert an empty entry.

§

ReadOnly

Replica is read only.

§

Closed

The replica is closed, no operations may be performed.

-

Trait Implementations§

source§

impl Debug for InsertError

source§

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

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

impl Display for InsertError

source§

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

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

impl Error for InsertError

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<ReadOnly> for InsertError

source§

fn from(value: ReadOnly) -> InsertError

Converts to this type from the input type.
source§

impl From<ValidationFailure> for InsertError

source§

fn from(source: ValidationFailure) -> InsertError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Debug for InsertError

source§

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

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

impl Display for InsertError

source§

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

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

impl Error for InsertError

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<ReadOnly> for InsertError

source§

fn from(value: ReadOnly) -> InsertError

Converts to this type from the input type.
source§

impl From<ValidationFailure> for InsertError

source§

fn from(source: ValidationFailure) -> InsertError

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 @@ -54,14 +54,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/enum.InsertOrigin.html b/pr/2674/docs/iroh/docs/sync/enum.InsertOrigin.html index cc8d59abae..a1814b504a 100644 --- a/pr/2674/docs/iroh/docs/sync/enum.InsertOrigin.html +++ b/pr/2674/docs/iroh/docs/sync/enum.InsertOrigin.html @@ -1,4 +1,4 @@ -InsertOrigin in iroh::docs::sync - Rust

Enum iroh::docs::sync::InsertOrigin

source ·
pub enum InsertOrigin {
+InsertOrigin in iroh::docs::sync - Rust

Enum iroh::docs::sync::InsertOrigin

source ·
pub enum InsertOrigin {
     Local,
     Sync {
         from: [u8; 32],
@@ -53,14 +53,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/enum.ValidationFailure.html b/pr/2674/docs/iroh/docs/sync/enum.ValidationFailure.html index bb4bfd4f75..794fd97339 100644 --- a/pr/2674/docs/iroh/docs/sync/enum.ValidationFailure.html +++ b/pr/2674/docs/iroh/docs/sync/enum.ValidationFailure.html @@ -1,4 +1,4 @@ -ValidationFailure in iroh::docs::sync - Rust

Enum iroh::docs::sync::ValidationFailure

source ·
pub enum ValidationFailure {
+ValidationFailure in iroh::docs::sync - Rust

Enum iroh::docs::sync::ValidationFailure

source ·
pub enum ValidationFailure {
     InvalidNamespace,
     BadSignature,
     TooFarInTheFuture,
@@ -50,14 +50,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/index.html b/pr/2674/docs/iroh/docs/sync/index.html index dc5a33ec21..efa75492b0 100644 --- a/pr/2674/docs/iroh/docs/sync/index.html +++ b/pr/2674/docs/iroh/docs/sync/index.html @@ -1,3 +1,3 @@ -iroh::docs::sync - Rust

Module iroh::docs::sync

source ·
Expand description

API for iroh-docs replicas

+iroh::docs::sync - Rust

Module iroh::docs::sync

source ·
Expand description

API for iroh-docs replicas

Structs§

Enums§

Constants§

Type Aliases§

  • Callback that may be set on a replica to determine the availability status for a content hash.
  • Byte representation of a PeerId from iroh-net.
  • Protocol message for the set reconciliation protocol.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/docs/sync/struct.AuthorHeads.html b/pr/2674/docs/iroh/docs/sync/struct.AuthorHeads.html index 410631008d..1cf9b2feaa 100644 --- a/pr/2674/docs/iroh/docs/sync/struct.AuthorHeads.html +++ b/pr/2674/docs/iroh/docs/sync/struct.AuthorHeads.html @@ -1,4 +1,4 @@ -AuthorHeads in iroh::docs::sync - Rust

Struct iroh::docs::sync::AuthorHeads

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

Timestamps of the latest entry for each author.

+AuthorHeads in iroh::docs::sync - Rust

Struct iroh::docs::sync::AuthorHeads

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

Timestamps of the latest entry for each author.

Implementations§

source§

impl AuthorHeads

source

pub fn insert(&mut self, author: AuthorId, timestamp: u64)

Insert a new timestamp.

source

pub fn len(&self) -> usize

Number of author-timestamp pairs.

source

pub fn is_empty(&self) -> bool

Whether this AuthorHeads is empty.

@@ -10,8 +10,8 @@

Will skip oldest entries if the size limit is reached. Returns a byte array with a maximum length of size_limit.

source

pub fn decode(bytes: &[u8]) -> Result<AuthorHeads, Error>

Decode from byte slice created with Self::encode.

-

Trait Implementations§

source§

impl Clone for AuthorHeads

source§

fn clone(&self) -> AuthorHeads

Returns a 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 AuthorHeads

source§

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

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

impl Default for AuthorHeads

source§

fn default() -> AuthorHeads

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

impl FromIterator<(AuthorId, u64)> for AuthorHeads

source§

fn from_iter<T>(iter: T) -> AuthorHeads
where - T: IntoIterator<Item = (AuthorId, u64)>,

Creates a value from an iterator. Read more
source§

impl FromIterator<(u64, AuthorId)> for AuthorHeads

source§

fn from_iter<T>(iter: T) -> AuthorHeads
where +

Trait Implementations§

source§

impl Clone for AuthorHeads

source§

fn clone(&self) -> AuthorHeads

Returns a 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 AuthorHeads

source§

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

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

impl Default for AuthorHeads

source§

fn default() -> AuthorHeads

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

impl FromIterator<(AuthorId, u64)> for AuthorHeads

source§

fn from_iter<T>(iter: T) -> AuthorHeads
where + T: IntoIterator<Item = (AuthorId, u64)>,

Creates a value from an iterator. Read more
source§

impl FromIterator<(u64, AuthorId)> for AuthorHeads

source§

fn from_iter<T>(iter: T) -> AuthorHeads
where T: IntoIterator<Item = (u64, AuthorId)>,

Creates a value from an iterator. Read more
source§

impl PartialEq for AuthorHeads

source§

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

source§

impl StructuralPartialEq for AuthorHeads

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where @@ -62,14 +62,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/struct.Entry.html b/pr/2674/docs/iroh/docs/sync/struct.Entry.html index 043877d0a0..7fa44a4385 100644 --- a/pr/2674/docs/iroh/docs/sync/struct.Entry.html +++ b/pr/2674/docs/iroh/docs/sync/struct.Entry.html @@ -1,4 +1,4 @@ -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

+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 of the entry’s content data, the size of this content data, and a timestamp.

@@ -81,14 +81,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/struct.EntrySignature.html b/pr/2674/docs/iroh/docs/sync/struct.EntrySignature.html index 20b1e98e1a..0dd8f6167d 100644 --- a/pr/2674/docs/iroh/docs/sync/struct.EntrySignature.html +++ b/pr/2674/docs/iroh/docs/sync/struct.EntrySignature.html @@ -1,4 +1,4 @@ -EntrySignature in iroh::docs::sync - Rust

Struct iroh::docs::sync::EntrySignature

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

Signature over an entry.

+EntrySignature in iroh::docs::sync - Rust

Struct iroh::docs::sync::EntrySignature

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

Signature over an entry.

Implementations§

source§

impl EntrySignature

source

pub fn from_entry( entry: &Entry, namespace: &NamespaceSecret, @@ -68,14 +68,7 @@ sufficient, and should not be overridden without very good reason.

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/struct.ReadOnly.html b/pr/2674/docs/iroh/docs/sync/struct.ReadOnly.html index bcfd22b4cb..b8b160e8cf 100644 --- a/pr/2674/docs/iroh/docs/sync/struct.ReadOnly.html +++ b/pr/2674/docs/iroh/docs/sync/struct.ReadOnly.html @@ -1,4 +1,4 @@ -ReadOnly in iroh::docs::sync - Rust

Struct iroh::docs::sync::ReadOnly

source ·
pub struct ReadOnly;
Expand description

Error that occurs trying to access the NamespaceSecret of a read-only Capability.

+ReadOnly in iroh::docs::sync - Rust

Struct iroh::docs::sync::ReadOnly

source ·
pub struct ReadOnly;
Expand description

Error that occurs trying to access the NamespaceSecret of a read-only Capability.

Trait Implementations§

source§

impl Debug for ReadOnly

source§

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

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

impl Display for ReadOnly

source§

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

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

impl Error for ReadOnly

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<ReadOnly> for InsertError

source§

fn from(value: ReadOnly) -> InsertError

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 @@ -41,14 +41,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/struct.Record.html b/pr/2674/docs/iroh/docs/sync/struct.Record.html index c928689504..e649ab0aa0 100644 --- a/pr/2674/docs/iroh/docs/sync/struct.Record.html +++ b/pr/2674/docs/iroh/docs/sync/struct.Record.html @@ -1,4 +1,4 @@ -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.

+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) -> Record

Create a new record.

source

pub fn empty(timestamp: u64) -> Record

Create a tombstone record (empty content)

source

pub fn empty_current() -> Record

Create a tombstone record with the timestamp set to now.

@@ -73,14 +73,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/struct.RecordIdentifier.html b/pr/2674/docs/iroh/docs/sync/struct.RecordIdentifier.html index 234c6e88e4..9b383d5d93 100644 --- a/pr/2674/docs/iroh/docs/sync/struct.RecordIdentifier.html +++ b/pr/2674/docs/iroh/docs/sync/struct.RecordIdentifier.html @@ -1,4 +1,4 @@ -RecordIdentifier in iroh::docs::sync - Rust

Struct iroh::docs::sync::RecordIdentifier

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

The identifier of a record.

+RecordIdentifier in iroh::docs::sync - Rust

Struct iroh::docs::sync::RecordIdentifier

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

The identifier of a record.

Implementations§

source§

impl RecordIdentifier

source

pub fn new( namespace: impl Into<NamespaceId>, author: impl Into<AuthorId>, @@ -80,14 +80,7 @@ ordering. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/struct.Replica.html b/pr/2674/docs/iroh/docs/sync/struct.Replica.html index c93bad5378..65a976c167 100644 --- a/pr/2674/docs/iroh/docs/sync/struct.Replica.html +++ b/pr/2674/docs/iroh/docs/sync/struct.Replica.html @@ -1,4 +1,4 @@ -Replica in iroh::docs::sync - Rust

Struct iroh::docs::sync::Replica

source ·
pub struct Replica<'a, I = Box<ReplicaInfo>> { /* private fields */ }
Expand description

Local representation of a mutable, synchronizable key-value store.

+Replica in iroh::docs::sync - Rust

Struct iroh::docs::sync::Replica

source ·
pub struct Replica<'a, I = Box<ReplicaInfo>> { /* private fields */ }
Expand description

Local representation of a mutable, synchronizable key-value store.

Implementations§

source§

impl<'a, I> Replica<'a, I>
where I: Deref<Target = ReplicaInfo> + DerefMut,

source

pub fn new(store: StoreInstance<'a>, info: I) -> Replica<'a, I>

Create a new replica.

source

pub fn insert( @@ -102,14 +102,7 @@ the replica is read only

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/struct.ReplicaInfo.html b/pr/2674/docs/iroh/docs/sync/struct.ReplicaInfo.html index e82a1a4e4b..c3b35f275a 100644 --- a/pr/2674/docs/iroh/docs/sync/struct.ReplicaInfo.html +++ b/pr/2674/docs/iroh/docs/sync/struct.ReplicaInfo.html @@ -1,4 +1,4 @@ -ReplicaInfo in iroh::docs::sync - Rust

Struct iroh::docs::sync::ReplicaInfo

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

In memory information about an open replica.

+ReplicaInfo in iroh::docs::sync - Rust

Struct iroh::docs::sync::ReplicaInfo

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

In memory information about an open replica.

Implementations§

source§

impl ReplicaInfo

source

pub fn new(capability: Capability) -> ReplicaInfo

Create a new replica.

source

pub fn subscribe(&mut self, sender: Sender<Event>)

Subscribe to insert events.

When subscribing to a replica, you must ensure that the corresponding [async_channel::Receiver] is @@ -68,14 +68,7 @@ It is a no-op if capability is a Capability::Read`.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/struct.SignedEntry.html b/pr/2674/docs/iroh/docs/sync/struct.SignedEntry.html index f46e814a62..ffafe705e4 100644 --- a/pr/2674/docs/iroh/docs/sync/struct.SignedEntry.html +++ b/pr/2674/docs/iroh/docs/sync/struct.SignedEntry.html @@ -1,4 +1,4 @@ -SignedEntry in iroh::docs::sync - Rust

Struct iroh::docs::sync::SignedEntry

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

A signed entry.

+SignedEntry in iroh::docs::sync - Rust

Struct iroh::docs::sync::SignedEntry

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

A signed entry.

Implementations§

source§

impl SignedEntry

source

pub fn from_entry( entry: Entry, namespace: &NamespaceSecret, @@ -96,14 +96,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/struct.SyncOutcome.html b/pr/2674/docs/iroh/docs/sync/struct.SyncOutcome.html index be390f1bc0..dd85c5db74 100644 --- a/pr/2674/docs/iroh/docs/sync/struct.SyncOutcome.html +++ b/pr/2674/docs/iroh/docs/sync/struct.SyncOutcome.html @@ -1,4 +1,4 @@ -SyncOutcome in iroh::docs::sync - Rust

Struct iroh::docs::sync::SyncOutcome

source ·
pub struct SyncOutcome {
+SyncOutcome in iroh::docs::sync - Rust

Struct iroh::docs::sync::SyncOutcome

source ·
pub struct SyncOutcome {
     pub heads_received: AuthorHeads,
     pub num_recv: usize,
     pub num_sent: usize,
@@ -50,14 +50,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/docs/sync/type.ContentStatusCallback.html b/pr/2674/docs/iroh/docs/sync/type.ContentStatusCallback.html index 0905407b57..6ce3548e5a 100644 --- a/pr/2674/docs/iroh/docs/sync/type.ContentStatusCallback.html +++ b/pr/2674/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>;
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>;
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/2674/docs/iroh/docs/sync/type.PeerIdBytes.html b/pr/2674/docs/iroh/docs/sync/type.PeerIdBytes.html index d386f3876c..74c9a373aa 100644 --- a/pr/2674/docs/iroh/docs/sync/type.PeerIdBytes.html +++ b/pr/2674/docs/iroh/docs/sync/type.PeerIdBytes.html @@ -1,2 +1,2 @@ -PeerIdBytes in iroh::docs::sync - Rust

Type Alias iroh::docs::sync::PeerIdBytes

source ·
pub type PeerIdBytes = [u8; 32];
Expand description

Byte representation of a PeerId from iroh-net.

+PeerIdBytes in iroh::docs::sync - Rust

Type Alias iroh::docs::sync::PeerIdBytes

source ·
pub type PeerIdBytes = [u8; 32];
Expand description

Byte representation of a PeerId from iroh-net.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/docs/sync/type.ProtocolMessage.html b/pr/2674/docs/iroh/docs/sync/type.ProtocolMessage.html index bf410cb956..de21c816ee 100644 --- a/pr/2674/docs/iroh/docs/sync/type.ProtocolMessage.html +++ b/pr/2674/docs/iroh/docs/sync/type.ProtocolMessage.html @@ -1,3 +1,3 @@ -ProtocolMessage in iroh::docs::sync - Rust

Type Alias iroh::docs::sync::ProtocolMessage

source ·
pub type ProtocolMessage = Message<SignedEntry>;
Expand description

Protocol message for the set reconciliation protocol.

+ProtocolMessage in iroh::docs::sync - Rust

Type Alias iroh::docs::sync::ProtocolMessage

source ·
pub type ProtocolMessage = Message<SignedEntry>;
Expand description

Protocol message for the set reconciliation protocol.

Can be serialized to bytes with serde to transfer between peers.

Aliased Type§

struct ProtocolMessage { /* private fields */ }
\ No newline at end of file diff --git a/pr/2674/docs/iroh/docs/type.ContentStatusCallback.html b/pr/2674/docs/iroh/docs/type.ContentStatusCallback.html index fc2ac88b50..1f2399714f 100644 --- a/pr/2674/docs/iroh/docs/type.ContentStatusCallback.html +++ b/pr/2674/docs/iroh/docs/type.ContentStatusCallback.html @@ -1,2 +1,2 @@ -ContentStatusCallback in iroh::docs - Rust

Type Alias iroh::docs::ContentStatusCallback

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

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

+ContentStatusCallback in iroh::docs - Rust

Type Alias iroh::docs::ContentStatusCallback

source ·
pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync>;
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/2674/docs/iroh/docs/type.PeerIdBytes.html b/pr/2674/docs/iroh/docs/type.PeerIdBytes.html index 5592bd6040..977ccd98e7 100644 --- a/pr/2674/docs/iroh/docs/type.PeerIdBytes.html +++ b/pr/2674/docs/iroh/docs/type.PeerIdBytes.html @@ -1,2 +1,2 @@ -PeerIdBytes in iroh::docs - Rust

Type Alias iroh::docs::PeerIdBytes

source ·
pub type PeerIdBytes = [u8; 32];
Expand description

Byte representation of a PeerId from iroh-net.

+PeerIdBytes in iroh::docs - Rust

Type Alias iroh::docs::PeerIdBytes

source ·
pub type PeerIdBytes = [u8; 32];
Expand description

Byte representation of a PeerId from iroh-net.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/docs/type.ProtocolMessage.html b/pr/2674/docs/iroh/docs/type.ProtocolMessage.html index 9e43432a8b..adacef687b 100644 --- a/pr/2674/docs/iroh/docs/type.ProtocolMessage.html +++ b/pr/2674/docs/iroh/docs/type.ProtocolMessage.html @@ -1,3 +1,3 @@ -ProtocolMessage in iroh::docs - Rust

Type Alias iroh::docs::ProtocolMessage

source ·
pub type ProtocolMessage = Message<SignedEntry>;
Expand description

Protocol message for the set reconciliation protocol.

+ProtocolMessage in iroh::docs - Rust

Type Alias iroh::docs::ProtocolMessage

source ·
pub type ProtocolMessage = Message<SignedEntry>;
Expand description

Protocol message for the set reconciliation protocol.

Can be serialized to bytes with serde to transfer between peers.

Aliased Type§

struct ProtocolMessage { /* private fields */ }
\ No newline at end of file diff --git a/pr/2674/docs/iroh/gossip/index.html b/pr/2674/docs/iroh/gossip/index.html index d8625c482f..4aa9a9d700 100644 --- a/pr/2674/docs/iroh/gossip/index.html +++ b/pr/2674/docs/iroh/gossip/index.html @@ -1,4 +1,4 @@ -iroh::gossip - Rust

Crate iroh::gossip

source ·
Expand description

Broadcast messages to peers subscribed to a topic

+iroh::gossip - Rust

Crate iroh::gossip

source ·
Expand description

Broadcast messages to peers subscribed to a topic

The crate is designed to be used from the iroh crate, which provides a high level interface, but can also be used standalone.

diff --git a/pr/2674/docs/iroh/gossip/metrics/index.html b/pr/2674/docs/iroh/gossip/metrics/index.html index 116f5100e6..fa9b7234c6 100644 --- a/pr/2674/docs/iroh/gossip/metrics/index.html +++ b/pr/2674/docs/iroh/gossip/metrics/index.html @@ -1,2 +1,2 @@ -iroh::gossip::metrics - Rust

Module iroh::gossip::metrics

source ·
Expand description

Metrics for iroh-gossip

+iroh::gossip::metrics - Rust

Module iroh::gossip::metrics

source ·
Expand description

Metrics for iroh-gossip

Structs§

  • Enum of metrics for the module
\ No newline at end of file diff --git a/pr/2674/docs/iroh/gossip/metrics/struct.Metrics.html b/pr/2674/docs/iroh/gossip/metrics/struct.Metrics.html index 091bfcb4f4..ef51c5a496 100644 --- a/pr/2674/docs/iroh/gossip/metrics/struct.Metrics.html +++ b/pr/2674/docs/iroh/gossip/metrics/struct.Metrics.html @@ -1,4 +1,4 @@ -Metrics in iroh::gossip::metrics - Rust

Struct iroh::gossip::metrics::Metrics

source ·
pub struct Metrics {
Show 18 fields +Metrics in iroh::gossip::metrics - Rust

Struct iroh::gossip::metrics::Metrics

source ·
pub struct Metrics {
Show 18 fields pub msgs_ctrl_sent: Counter, pub msgs_ctrl_recv: Counter, pub msgs_data_sent: Counter, @@ -64,14 +64,7 @@ Only records if this metric is registered in the global registry.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/net/constant.GOSSIP_ALPN.html b/pr/2674/docs/iroh/gossip/net/constant.GOSSIP_ALPN.html index 0d2bcf14f1..c156f1aa60 100644 --- a/pr/2674/docs/iroh/gossip/net/constant.GOSSIP_ALPN.html +++ b/pr/2674/docs/iroh/gossip/net/constant.GOSSIP_ALPN.html @@ -1,2 +1,2 @@ -GOSSIP_ALPN in iroh::gossip::net - Rust

Constant iroh::gossip::net::GOSSIP_ALPN

source ·
pub const GOSSIP_ALPN: &'static [u8];
Expand description

ALPN protocol name

+GOSSIP_ALPN in iroh::gossip::net - Rust

Constant iroh::gossip::net::GOSSIP_ALPN

source ·
pub const GOSSIP_ALPN: &'static [u8];
Expand description

ALPN protocol name

\ No newline at end of file diff --git a/pr/2674/docs/iroh/gossip/net/enum.Command.html b/pr/2674/docs/iroh/gossip/net/enum.Command.html index 9183a53e4f..4138ff1dba 100644 --- a/pr/2674/docs/iroh/gossip/net/enum.Command.html +++ b/pr/2674/docs/iroh/gossip/net/enum.Command.html @@ -1,4 +1,4 @@ -Command in iroh::gossip::net - Rust

Enum iroh::gossip::net::Command

source ·
pub enum Command {
+Command in iroh::gossip::net - Rust

Enum iroh::gossip::net::Command

source ·
pub enum Command {
     Broadcast(Bytes),
     BroadcastNeighbors(Bytes),
     JoinPeers(Vec<PublicKey>),
@@ -55,14 +55,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/net/enum.Event.html b/pr/2674/docs/iroh/gossip/net/enum.Event.html index d7dd03e7c4..7918467578 100644 --- a/pr/2674/docs/iroh/gossip/net/enum.Event.html +++ b/pr/2674/docs/iroh/gossip/net/enum.Event.html @@ -1,4 +1,4 @@ -Event in iroh::gossip::net - Rust

Enum iroh::gossip::net::Event

source ·
pub enum Event {
+Event in iroh::gossip::net - Rust

Enum iroh::gossip::net::Event

source ·
pub enum Event {
     Gossip(GossipEvent),
     Lagged,
 }
Expand description

Events emitted from a gossip topic with a lagging notification.

@@ -61,14 +61,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/net/enum.GossipEvent.html b/pr/2674/docs/iroh/gossip/net/enum.GossipEvent.html index 00125a6592..5c6dcff41c 100644 --- a/pr/2674/docs/iroh/gossip/net/enum.GossipEvent.html +++ b/pr/2674/docs/iroh/gossip/net/enum.GossipEvent.html @@ -1,4 +1,4 @@ -GossipEvent in iroh::gossip::net - Rust

Enum iroh::gossip::net::GossipEvent

source ·
pub enum GossipEvent {
+GossipEvent in iroh::gossip::net - Rust

Enum iroh::gossip::net::GossipEvent

source ·
pub enum GossipEvent {
     Joined(Vec<PublicKey>),
     NeighborUp(PublicKey),
     NeighborDown(PublicKey),
@@ -74,14 +74,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/net/index.html b/pr/2674/docs/iroh/gossip/net/index.html index ec9c7cba26..96a4acfaa6 100644 --- a/pr/2674/docs/iroh/gossip/net/index.html +++ b/pr/2674/docs/iroh/gossip/net/index.html @@ -1,2 +1,2 @@ -iroh::gossip::net - Rust

Module iroh::gossip::net

source ·
Expand description

Networking for the iroh-gossip protocol

+iroh::gossip::net - Rust

Module iroh::gossip::net

source ·
Expand description

Networking for the iroh-gossip protocol

Modules§

  • Utilities for iroh-gossip networking

Structs§

Enums§

  • Send a gossip message
  • Events emitted from a gossip topic with a lagging notification.
  • Events emitted from a gossip topic.

Constants§

Type Aliases§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/gossip/net/struct.Gossip.html b/pr/2674/docs/iroh/gossip/net/struct.Gossip.html index aaa115c128..8633956bcf 100644 --- a/pr/2674/docs/iroh/gossip/net/struct.Gossip.html +++ b/pr/2674/docs/iroh/gossip/net/struct.Gossip.html @@ -1,4 +1,4 @@ -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.

+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.

@@ -90,14 +90,7 @@ to us.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/net/struct.GossipReceiver.html b/pr/2674/docs/iroh/gossip/net/struct.GossipReceiver.html index 943167b831..d75cd43f58 100644 --- a/pr/2674/docs/iroh/gossip/net/struct.GossipReceiver.html +++ b/pr/2674/docs/iroh/gossip/net/struct.GossipReceiver.html @@ -1,4 +1,4 @@ -GossipReceiver in iroh::gossip::net - Rust

Struct iroh::gossip::net::GossipReceiver

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

Receiver for gossip events on a topic.

+GossipReceiver in iroh::gossip::net - Rust

Struct iroh::gossip::net::GossipReceiver

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

Receiver for gossip events on a topic.

This is a [Stream] of Events emitted from the topic.

Implementations§

source§

impl GossipReceiver

source

pub fn neighbors(&self) -> impl Iterator<Item = PublicKey>

Lists our current direct neighbors.

source

pub async fn joined(&mut self) -> Result<(), Error>

Waits until we are connected to at least one node.

@@ -76,14 +76,7 @@ discarding others if any.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<S> IntoStream for S
where +

§

impl<S> IntoStream for S
where S: Stream,

§

type Item = <S as Stream>::Item

The type of the elements being iterated over.
§

type IntoStream = S

Which kind of stream are we turning this into?
§

fn into_stream(self) -> S

Creates a stream from a value.
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/net/struct.GossipSender.html b/pr/2674/docs/iroh/gossip/net/struct.GossipSender.html index 20677ebf06..e069318d46 100644 --- a/pr/2674/docs/iroh/gossip/net/struct.GossipSender.html +++ b/pr/2674/docs/iroh/gossip/net/struct.GossipSender.html @@ -1,4 +1,4 @@ -GossipSender in iroh::gossip::net - Rust

Struct iroh::gossip::net::GossipSender

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

Sender for a gossip topic.

+GossipSender in iroh::gossip::net - Rust

Struct iroh::gossip::net::GossipSender

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

Sender for a gossip topic.

Implementations§

source§

impl GossipSender

source

pub async fn broadcast(&self, message: Bytes) -> Result<(), Error>

Broadcast a message to all nodes.

source

pub async fn broadcast_neighbors(&self, message: Bytes) -> Result<(), Error>

Broadcast a message to our direct neighbors.

source

pub async fn join_peers(&self, peers: Vec<PublicKey>) -> Result<(), Error>

Join a set of peers.

@@ -44,14 +44,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/net/struct.GossipTopic.html b/pr/2674/docs/iroh/gossip/net/struct.GossipTopic.html index 9d5835950e..22d5a6611d 100644 --- a/pr/2674/docs/iroh/gossip/net/struct.GossipTopic.html +++ b/pr/2674/docs/iroh/gossip/net/struct.GossipTopic.html @@ -1,4 +1,4 @@ -GossipTopic in iroh::gossip::net - Rust

Struct iroh::gossip::net::GossipTopic

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

Subscribed gossip topic.

+GossipTopic in iroh::gossip::net - Rust

Struct iroh::gossip::net::GossipTopic

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

Subscribed gossip topic.

This handle is a [Stream] of Events from the topic, and can be used to send messages.

It may be split into sender and receiver parts with Self::split.

Implementations§

source§

impl GossipTopic

source

pub fn split(self) -> (GossipSender, GossipReceiver)

Splits self into GossipSender and GossipReceiver parts.

@@ -75,14 +75,7 @@ discarding others if any.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<S> IntoStream for S
where +

§

impl<S> IntoStream for S
where S: Stream,

§

type Item = <S as Stream>::Item

The type of the elements being iterated over.
§

type IntoStream = S

Which kind of stream are we turning this into?
§

fn into_stream(self) -> S

Creates a stream from a value.
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/net/struct.JoinOptions.html b/pr/2674/docs/iroh/gossip/net/struct.JoinOptions.html index bd00c8a8e7..4cc1e9f0e8 100644 --- a/pr/2674/docs/iroh/gossip/net/struct.JoinOptions.html +++ b/pr/2674/docs/iroh/gossip/net/struct.JoinOptions.html @@ -1,4 +1,4 @@ -JoinOptions in iroh::gossip::net - Rust

Struct iroh::gossip::net::JoinOptions

source ·
pub struct JoinOptions {
+JoinOptions in iroh::gossip::net - Rust

Struct iroh::gossip::net::JoinOptions

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

Options for joining a gossip topic.

@@ -59,14 +59,7 @@ capacity.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/net/struct.Message.html b/pr/2674/docs/iroh/gossip/net/struct.Message.html index 813eb06551..699f753d4c 100644 --- a/pr/2674/docs/iroh/gossip/net/struct.Message.html +++ b/pr/2674/docs/iroh/gossip/net/struct.Message.html @@ -1,4 +1,4 @@ -Message in iroh::gossip::net - Rust

Struct iroh::gossip::net::Message

source ·
pub struct Message {
+Message in iroh::gossip::net - Rust

Struct iroh::gossip::net::Message

source ·
pub struct Message {
     pub content: Bytes,
     pub scope: DeliveryScope,
     pub delivered_from: PublicKey,
@@ -71,14 +71,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/net/type.CommandStream.html b/pr/2674/docs/iroh/gossip/net/type.CommandStream.html index e651859a0b..f31b7ac9a0 100644 --- a/pr/2674/docs/iroh/gossip/net/type.CommandStream.html +++ b/pr/2674/docs/iroh/gossip/net/type.CommandStream.html @@ -1,2 +1,2 @@ -CommandStream in iroh::gossip::net - Rust

Type Alias iroh::gossip::net::CommandStream

source ·
pub type CommandStream = Pin<Box<dyn Stream<Item = Command> + Send + Sync>>;
Expand description

A stream of commands for a gossip subscription.

+CommandStream in iroh::gossip::net - Rust

Type Alias iroh::gossip::net::CommandStream

source ·
pub type CommandStream = Pin<Box<dyn Stream<Item = Command> + Send + Sync>>;
Expand description

A stream of commands for a gossip subscription.

Aliased Type§

struct CommandStream { /* private fields */ }
\ No newline at end of file diff --git a/pr/2674/docs/iroh/gossip/net/type.ProtoCommand.html b/pr/2674/docs/iroh/gossip/net/type.ProtoCommand.html index 2d1630004a..1e56b92cba 100644 --- a/pr/2674/docs/iroh/gossip/net/type.ProtoCommand.html +++ b/pr/2674/docs/iroh/gossip/net/type.ProtoCommand.html @@ -1,4 +1,4 @@ -ProtoCommand in iroh::gossip::net - Rust

Type Alias iroh::gossip::net::ProtoCommand

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

Commands for the gossip protocol

+ProtoCommand in iroh::gossip::net - Rust

Type Alias iroh::gossip::net::ProtoCommand

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

Commands for the gossip protocol

Aliased Type§

enum ProtoCommand {
     Join(Vec<PublicKey>),
     Broadcast(Bytes, Scope),
diff --git a/pr/2674/docs/iroh/gossip/net/type.ProtoEvent.html b/pr/2674/docs/iroh/gossip/net/type.ProtoEvent.html
index 85f0798f42..78f230b756 100644
--- a/pr/2674/docs/iroh/gossip/net/type.ProtoEvent.html
+++ b/pr/2674/docs/iroh/gossip/net/type.ProtoEvent.html
@@ -1,4 +1,4 @@
-ProtoEvent in iroh::gossip::net - Rust

Type Alias iroh::gossip::net::ProtoEvent

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

Events emitted from the gossip protocol

+ProtoEvent in iroh::gossip::net - Rust

Type Alias iroh::gossip::net::ProtoEvent

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

Events emitted from the gossip protocol

Aliased Type§

enum ProtoEvent {
     NeighborUp(PublicKey),
     NeighborDown(PublicKey),
diff --git a/pr/2674/docs/iroh/gossip/net/util/fn.read_lp.html b/pr/2674/docs/iroh/gossip/net/util/fn.read_lp.html
index b34c8f329b..15046ee827 100644
--- a/pr/2674/docs/iroh/gossip/net/util/fn.read_lp.html
+++ b/pr/2674/docs/iroh/gossip/net/util/fn.read_lp.html
@@ -1,4 +1,4 @@
-read_lp in iroh::gossip::net::util - Rust

Function iroh::gossip::net::util::read_lp

source ·
pub async fn read_lp(
+read_lp in iroh::gossip::net::util - Rust

Function iroh::gossip::net::util::read_lp

source ·
pub async fn read_lp(
     reader: impl AsyncRead + Unpin,
     buffer: &mut BytesMut,
     max_message_size: usize
diff --git a/pr/2674/docs/iroh/gossip/net/util/fn.read_message.html b/pr/2674/docs/iroh/gossip/net/util/fn.read_message.html
index 6387d4dbd3..f560036feb 100644
--- a/pr/2674/docs/iroh/gossip/net/util/fn.read_message.html
+++ b/pr/2674/docs/iroh/gossip/net/util/fn.read_message.html
@@ -1,4 +1,4 @@
-read_message in iroh::gossip::net::util - Rust

Function iroh::gossip::net::util::read_message

source ·
pub async fn read_message(
+read_message in iroh::gossip::net::util - Rust

Function iroh::gossip::net::util::read_message

source ·
pub async fn read_message(
     reader: impl AsyncRead + Unpin,
     buffer: &mut BytesMut,
     max_message_size: usize
diff --git a/pr/2674/docs/iroh/gossip/net/util/fn.write_message.html b/pr/2674/docs/iroh/gossip/net/util/fn.write_message.html
index 5aba3fe627..c7defd789f 100644
--- a/pr/2674/docs/iroh/gossip/net/util/fn.write_message.html
+++ b/pr/2674/docs/iroh/gossip/net/util/fn.write_message.html
@@ -1,4 +1,4 @@
-write_message in iroh::gossip::net::util - Rust

Function iroh::gossip::net::util::write_message

source ·
pub async fn write_message<W>(
+write_message in iroh::gossip::net::util - Rust

Function iroh::gossip::net::util::write_message

source ·
pub async fn write_message<W>(
     writer: &mut W,
     buffer: &mut BytesMut,
     frame: &Message<PublicKey>,
diff --git a/pr/2674/docs/iroh/gossip/net/util/index.html b/pr/2674/docs/iroh/gossip/net/util/index.html
index 37ea83ca42..e908a9b424 100644
--- a/pr/2674/docs/iroh/gossip/net/util/index.html
+++ b/pr/2674/docs/iroh/gossip/net/util/index.html
@@ -1,2 +1,2 @@
-iroh::gossip::net::util - Rust

Module iroh::gossip::net::util

source ·
Expand description

Utilities for iroh-gossip networking

+iroh::gossip::net::util - Rust

Module iroh::gossip::net::util

source ·
Expand description

Utilities for iroh-gossip networking

Structs§

  • A TimerMap with an async method to wait for the next timer expiration.

Functions§

  • Reads a length prefixed message.
  • Read a length-prefixed message and decode as ProtoMessage;
  • Write a ProtoMessage as a length-prefixed, postcard-encoded message.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/gossip/net/util/struct.Timers.html b/pr/2674/docs/iroh/gossip/net/util/struct.Timers.html index 33bf87e5ee..a4ee9da33a 100644 --- a/pr/2674/docs/iroh/gossip/net/util/struct.Timers.html +++ b/pr/2674/docs/iroh/gossip/net/util/struct.Timers.html @@ -1,4 +1,4 @@ -Timers in iroh::gossip::net::util - Rust

Struct iroh::gossip::net::util::Timers

source ·
pub struct Timers<T> { /* private fields */ }
Expand description

A TimerMap with an async method to wait for the next timer expiration.

+Timers in iroh::gossip::net::util - Rust

Struct iroh::gossip::net::util::Timers

source ·
pub struct Timers<T> { /* private fields */ }
Expand description

A TimerMap with an async method to wait for the next timer expiration.

Implementations§

source§

impl<T> Timers<T>

source

pub fn new() -> Timers<T>

Create a new timer map

source

pub fn insert(&mut self, instant: Instant, item: T)

Insert a new entry at the specified instant

source

pub async fn wait_and_drain(&mut self) -> impl Iterator<Item = (Instant, T)>

Wait for the next timer to expire and return an iterator of all expired timers

@@ -51,14 +51,7 @@ this method should be awaited instead.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/enum.Command.html b/pr/2674/docs/iroh/gossip/proto/enum.Command.html index ec1425c95c..e7c9eb7191 100644 --- a/pr/2674/docs/iroh/gossip/proto/enum.Command.html +++ b/pr/2674/docs/iroh/gossip/proto/enum.Command.html @@ -1,4 +1,4 @@ -Command in iroh::gossip::proto - Rust

Enum iroh::gossip::proto::Command

source ·
pub enum Command<PI> {
+Command in iroh::gossip::proto - Rust

Enum iroh::gossip::proto::Command

source ·
pub enum Command<PI> {
     Join(Vec<PI>),
     Broadcast(Bytes, Scope),
     Quit,
@@ -59,14 +59,7 @@ but only become operational after the first join request by another peer.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/enum.DeliveryScope.html b/pr/2674/docs/iroh/gossip/proto/enum.DeliveryScope.html index 77fa84ca0f..a5ba4a8998 100644 --- a/pr/2674/docs/iroh/gossip/proto/enum.DeliveryScope.html +++ b/pr/2674/docs/iroh/gossip/proto/enum.DeliveryScope.html @@ -1,4 +1,4 @@ -DeliveryScope in iroh::gossip::proto - Rust

Enum iroh::gossip::proto::DeliveryScope

source ·
pub enum DeliveryScope {
+DeliveryScope in iroh::gossip::proto - Rust

Enum iroh::gossip::proto::DeliveryScope

source ·
pub enum DeliveryScope {
     Swarm(Round),
     Neighbors,
 }
Expand description

The scope to deliver the message to.

@@ -71,14 +71,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/enum.Event.html b/pr/2674/docs/iroh/gossip/proto/enum.Event.html index e6e5fc9222..0d85f1491f 100644 --- a/pr/2674/docs/iroh/gossip/proto/enum.Event.html +++ b/pr/2674/docs/iroh/gossip/proto/enum.Event.html @@ -1,4 +1,4 @@ -Event in iroh::gossip::proto - Rust

Enum iroh::gossip::proto::Event

source ·
pub enum Event<PI> {
+Event in iroh::gossip::proto - Rust

Enum iroh::gossip::proto::Event

source ·
pub enum Event<PI> {
     NeighborUp(PI),
     NeighborDown(PI),
     Received(GossipEvent<PI>),
@@ -12,7 +12,7 @@
     PI: Deserialize<'de>,

source§

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

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

impl<PI> From<Event<PI>> for Event<PI>

source§

fn from(value: Event<PI>) -> Event<PI>

Converts to this type from the input type.
source§

impl<PI> From<Event<PI>> for Event<PI>

source§

fn from(value: Event<PI>) -> Event<PI>

Converts to this type from the input type.
source§

impl From<Event<PublicKey>> for GossipEvent

source§

fn from(event: Event<PublicKey>) -> GossipEvent

Converts to this type from the input type.
source§

impl<PI> Ord for Event<PI>
where + __D: Deserializer<'de>,

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

impl<PI> From<Event<PI>> for Event<PI>

source§

fn from(value: Event<PI>) -> Event<PI>

Converts to this type from the input type.
source§

impl<PI> From<Event<PI>> for Event<PI>

source§

fn from(value: Event<PI>) -> Event<PI>

Converts to this type from the input type.
source§

impl From<Event<PublicKey>> for GossipEvent

source§

fn from(event: Event<PublicKey>) -> GossipEvent

Converts to this type from the input type.
source§

impl<PI> Ord for Event<PI>
where PI: Ord,

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 @@ -83,14 +83,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/enum.InEvent.html b/pr/2674/docs/iroh/gossip/proto/enum.InEvent.html index 714c1f463e..5b106116ac 100644 --- a/pr/2674/docs/iroh/gossip/proto/enum.InEvent.html +++ b/pr/2674/docs/iroh/gossip/proto/enum.InEvent.html @@ -1,4 +1,4 @@ -InEvent in iroh::gossip::proto - Rust

Enum iroh::gossip::proto::InEvent

source ·
pub enum InEvent<PI> {
+InEvent in iroh::gossip::proto - Rust

Enum iroh::gossip::proto::InEvent

source ·
pub enum InEvent<PI> {
     RecvMessage(PI, Message<PI>),
     Command(TopicId, Command<PI>),
     TimerExpired(Timer<PI>),
@@ -61,14 +61,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/enum.OutEvent.html b/pr/2674/docs/iroh/gossip/proto/enum.OutEvent.html index 8dc27609df..97acb46bb1 100644 --- a/pr/2674/docs/iroh/gossip/proto/enum.OutEvent.html +++ b/pr/2674/docs/iroh/gossip/proto/enum.OutEvent.html @@ -1,4 +1,4 @@ -OutEvent in iroh::gossip::proto - Rust

Enum iroh::gossip::proto::OutEvent

source ·
pub enum OutEvent<PI> {
+OutEvent in iroh::gossip::proto - Rust

Enum iroh::gossip::proto::OutEvent

source ·
pub enum OutEvent<PI> {
     SendMessage(PI, Message<PI>),
     EmitEvent(TopicId, Event<PI>),
     ScheduleTimer(Duration, Timer<PI>),
@@ -62,14 +62,7 @@ after the duration.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/enum.Scope.html b/pr/2674/docs/iroh/gossip/proto/enum.Scope.html index 16a6f8013d..8296f675c1 100644 --- a/pr/2674/docs/iroh/gossip/proto/enum.Scope.html +++ b/pr/2674/docs/iroh/gossip/proto/enum.Scope.html @@ -1,4 +1,4 @@ -Scope in iroh::gossip::proto - Rust

Enum iroh::gossip::proto::Scope

source ·
pub enum Scope {
+Scope in iroh::gossip::proto - Rust

Enum iroh::gossip::proto::Scope

source ·
pub enum Scope {
     Swarm,
     Neighbors,
 }
Expand description

The broadcast scope of a gossip message.

@@ -68,14 +68,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/index.html b/pr/2674/docs/iroh/gossip/proto/index.html index b156196bb9..a622286be2 100644 --- a/pr/2674/docs/iroh/gossip/proto/index.html +++ b/pr/2674/docs/iroh/gossip/proto/index.html @@ -1,4 +1,4 @@ -iroh::gossip::proto - Rust

Module iroh::gossip::proto

source ·
Expand description

Implementation of the iroh-gossip protocol, as an IO-less state machine

+iroh::gossip::proto - Rust

Module iroh::gossip::proto

source ·
Expand description

Implementation of the iroh-gossip protocol, as an IO-less state machine

This module implements the iroh-gossip protocol. The entry point is State, which contains the protocol state for a node.

The iroh-gossip protocol is made up from two parts: A swarm membership protocol, based on diff --git a/pr/2674/docs/iroh/gossip/proto/state/enum.InEvent.html b/pr/2674/docs/iroh/gossip/proto/state/enum.InEvent.html index e01b09430e..061e09dc50 100644 --- a/pr/2674/docs/iroh/gossip/proto/state/enum.InEvent.html +++ b/pr/2674/docs/iroh/gossip/proto/state/enum.InEvent.html @@ -1,4 +1,4 @@ -InEvent in iroh::gossip::proto::state - Rust

Enum iroh::gossip::proto::state::InEvent

source ·
pub enum InEvent<PI> {
+InEvent in iroh::gossip::proto::state - Rust

Enum iroh::gossip::proto::state::InEvent

source ·
pub enum InEvent<PI> {
     RecvMessage(PI, Message<PI>),
     Command(TopicId, Command<PI>),
     TimerExpired(Timer<PI>),
@@ -61,14 +61,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/state/enum.MessageKind.html b/pr/2674/docs/iroh/gossip/proto/state/enum.MessageKind.html index cede881ff1..cc689d1a4b 100644 --- a/pr/2674/docs/iroh/gossip/proto/state/enum.MessageKind.html +++ b/pr/2674/docs/iroh/gossip/proto/state/enum.MessageKind.html @@ -1,4 +1,4 @@ -MessageKind in iroh::gossip::proto::state - Rust

Enum iroh::gossip::proto::state::MessageKind

source ·
pub enum MessageKind {
+MessageKind in iroh::gossip::proto::state - Rust

Enum iroh::gossip::proto::state::MessageKind

source ·
pub enum MessageKind {
     Data,
     Control,
 }
Expand description

Whether this is a control or data message

@@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/state/enum.OutEvent.html b/pr/2674/docs/iroh/gossip/proto/state/enum.OutEvent.html index 2307cf3a98..144aa7b883 100644 --- a/pr/2674/docs/iroh/gossip/proto/state/enum.OutEvent.html +++ b/pr/2674/docs/iroh/gossip/proto/state/enum.OutEvent.html @@ -1,4 +1,4 @@ -OutEvent in iroh::gossip::proto::state - Rust

Enum iroh::gossip::proto::state::OutEvent

source ·
pub enum OutEvent<PI> {
+OutEvent in iroh::gossip::proto::state - Rust

Enum iroh::gossip::proto::state::OutEvent

source ·
pub enum OutEvent<PI> {
     SendMessage(PI, Message<PI>),
     EmitEvent(TopicId, Event<PI>),
     ScheduleTimer(Duration, Timer<PI>),
@@ -62,14 +62,7 @@ after the duration.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/state/index.html b/pr/2674/docs/iroh/gossip/proto/state/index.html index 5b490d5ac6..14350cbe70 100644 --- a/pr/2674/docs/iroh/gossip/proto/state/index.html +++ b/pr/2674/docs/iroh/gossip/proto/state/index.html @@ -1,2 +1,2 @@ -iroh::gossip::proto::state - Rust

Module iroh::gossip::proto::state

source ·
Expand description

The protocol state of the iroh-gossip protocol.

+iroh::gossip::proto::state - Rust

Module iroh::gossip::proto::state

source ·
Expand description

The protocol state of the iroh-gossip protocol.

Structs§

  • Protocol wire message
  • The state of the iroh-gossip protocol.
  • A timer to be registered into the runtime
  • The identifier for a topic

Enums§

  • Input event to the protocol state.
  • Whether this is a control or data message
  • Output event from the protocol state.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/gossip/proto/state/struct.Message.html b/pr/2674/docs/iroh/gossip/proto/state/struct.Message.html index f55c1c6d9e..f1a90a4508 100644 --- a/pr/2674/docs/iroh/gossip/proto/state/struct.Message.html +++ b/pr/2674/docs/iroh/gossip/proto/state/struct.Message.html @@ -1,4 +1,4 @@ -Message in iroh::gossip::proto::state - Rust

Struct iroh::gossip::proto::state::Message

source ·
pub struct Message<PI> { /* private fields */ }
Expand description

Protocol wire message

+Message in iroh::gossip::proto::state - Rust

Struct iroh::gossip::proto::state::Message

source ·
pub struct Message<PI> { /* private fields */ }
Expand description

Protocol wire message

This is the wire frame of the iroh-gossip protocol.

Implementations§

source§

impl<PI> Message<PI>

source

pub fn kind(&self) -> MessageKind

Get the kind of this message

source§

impl<PI> Message<PI>
where @@ -63,14 +63,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/state/struct.State.html b/pr/2674/docs/iroh/gossip/proto/state/struct.State.html index 70c5cbc26f..6aa5180c82 100644 --- a/pr/2674/docs/iroh/gossip/proto/state/struct.State.html +++ b/pr/2674/docs/iroh/gossip/proto/state/struct.State.html @@ -1,4 +1,4 @@ -State in iroh::gossip::proto::state - Rust

Struct iroh::gossip::proto::state::State

source ·
pub struct State<PI, R> { /* private fields */ }
Expand description

The state of the iroh-gossip protocol.

+State in iroh::gossip::proto::state - Rust

Struct iroh::gossip::proto::state::State

source ·
pub struct State<PI, R> { /* private fields */ }
Expand description

The state of the iroh-gossip protocol.

The implementation works as an IO-less state machine. The implementer injects events through Self::handle, which returns an iterator of OutEvents to be processed.

This struct contains a map of topic::State for each topic that was joined. It mostly acts as @@ -77,14 +77,7 @@ identical for all nodes in the network.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/state/struct.Timer.html b/pr/2674/docs/iroh/gossip/proto/state/struct.Timer.html index 8b04e1c0a4..bf251ad802 100644 --- a/pr/2674/docs/iroh/gossip/proto/state/struct.Timer.html +++ b/pr/2674/docs/iroh/gossip/proto/state/struct.Timer.html @@ -1,4 +1,4 @@ -Timer in iroh::gossip::proto::state - Rust

Struct iroh::gossip::proto::state::Timer

source ·
pub struct Timer<PI> { /* private fields */ }
Expand description

A timer to be registered into the runtime

+Timer in iroh::gossip::proto::state - Rust

Struct iroh::gossip::proto::state::Timer

source ·
pub struct Timer<PI> { /* private fields */ }
Expand description

A timer to be registered into the runtime

As the implementation of the protocol is an IO-less state machine, registering timers does not happen within the protocol implementation. Instead, these Timer structs are emitted as OutEvents. The implementer must register the timer in its runtime to be emitted on the specified Instant, @@ -55,14 +55,7 @@ and once triggered inject an From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/state/struct.TopicId.html b/pr/2674/docs/iroh/gossip/proto/state/struct.TopicId.html index 54a35829aa..a31d0ef979 100644 --- a/pr/2674/docs/iroh/gossip/proto/state/struct.TopicId.html +++ b/pr/2674/docs/iroh/gossip/proto/state/struct.TopicId.html @@ -1,4 +1,4 @@ -TopicId in iroh::gossip::proto::state - Rust

Struct iroh::gossip::proto::state::TopicId

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

The identifier for a topic

+TopicId in iroh::gossip::proto::state - Rust

Struct iroh::gossip::proto::state::TopicId

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

The identifier for a topic

Implementations§

source§

impl TopicId

source

pub const fn from_bytes(bytes: [u8; 32]) -> TopicId

Create from a byte array.

source

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

Get as byte slice.

Trait Implementations§

source§

impl AsRef<[u8]> for TopicId

source§

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

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

impl AsRef<[u8; 32]> for TopicId

source§

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

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

impl Clone for TopicId

source§

fn clone(&self) -> TopicId

Returns a 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 TopicId

source§

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

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

impl<'de> Deserialize<'de> for TopicId

source§

fn deserialize<__D>( @@ -74,14 +74,7 @@ ordering. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/struct.Config.html b/pr/2674/docs/iroh/gossip/proto/struct.Config.html index fc9ae6d2c6..78452c2a1d 100644 --- a/pr/2674/docs/iroh/gossip/proto/struct.Config.html +++ b/pr/2674/docs/iroh/gossip/proto/struct.Config.html @@ -1,4 +1,4 @@ -Config in iroh::gossip::proto - Rust

Struct iroh::gossip::proto::Config

source ·
pub struct Config {
+Config in iroh::gossip::proto - Rust

Struct iroh::gossip::proto::Config

source ·
pub struct Config {
     pub membership: Config,
     pub broadcast: Config,
     pub max_message_size: usize,
@@ -53,14 +53,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/struct.Message.html b/pr/2674/docs/iroh/gossip/proto/struct.Message.html index af2f8afe97..edc2a31343 100644 --- a/pr/2674/docs/iroh/gossip/proto/struct.Message.html +++ b/pr/2674/docs/iroh/gossip/proto/struct.Message.html @@ -1,4 +1,4 @@ -Message in iroh::gossip::proto - Rust

Struct iroh::gossip::proto::Message

source ·
pub struct Message<PI> { /* private fields */ }
Expand description

Protocol wire message

+Message in iroh::gossip::proto - Rust

Struct iroh::gossip::proto::Message

source ·
pub struct Message<PI> { /* private fields */ }
Expand description

Protocol wire message

This is the wire frame of the iroh-gossip protocol.

Implementations§

source§

impl<PI> Message<PI>

source

pub fn kind(&self) -> MessageKind

Get the kind of this message

source§

impl<PI> Message<PI>
where @@ -63,14 +63,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/struct.PeerData.html b/pr/2674/docs/iroh/gossip/proto/struct.PeerData.html index 764126e01b..7454b7ce5a 100644 --- a/pr/2674/docs/iroh/gossip/proto/struct.PeerData.html +++ b/pr/2674/docs/iroh/gossip/proto/struct.PeerData.html @@ -1,4 +1,4 @@ -PeerData in iroh::gossip::proto - Rust

Struct iroh::gossip::proto::PeerData

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

Opaque binary data that is transmitted on messages that introduce new peers.

+PeerData in iroh::gossip::proto - Rust

Struct iroh::gossip::proto::PeerData

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

Opaque binary data that is transmitted on messages that introduce new peers.

Implementations may use these bytes to supply addresses or other information needed to connect to a peer that is not included in the peer’s PeerIdentity.

Implementations§

source§

impl PeerData

source

pub fn new(data: impl Into<Bytes>) -> PeerData

Create a new PeerData from a byte buffer.

@@ -61,14 +61,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/struct.State.html b/pr/2674/docs/iroh/gossip/proto/struct.State.html index ae2400740d..a52130ae9c 100644 --- a/pr/2674/docs/iroh/gossip/proto/struct.State.html +++ b/pr/2674/docs/iroh/gossip/proto/struct.State.html @@ -1,4 +1,4 @@ -State in iroh::gossip::proto - Rust

Struct iroh::gossip::proto::State

source ·
pub struct State<PI, R> { /* private fields */ }
Expand description

The state of the iroh-gossip protocol.

+State in iroh::gossip::proto - Rust

Struct iroh::gossip::proto::State

source ·
pub struct State<PI, R> { /* private fields */ }
Expand description

The state of the iroh-gossip protocol.

The implementation works as an IO-less state machine. The implementer injects events through Self::handle, which returns an iterator of OutEvents to be processed.

This struct contains a map of topic::State for each topic that was joined. It mostly acts as @@ -77,14 +77,7 @@ identical for all nodes in the network.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/struct.Timer.html b/pr/2674/docs/iroh/gossip/proto/struct.Timer.html index 881d326d44..0a27447f1d 100644 --- a/pr/2674/docs/iroh/gossip/proto/struct.Timer.html +++ b/pr/2674/docs/iroh/gossip/proto/struct.Timer.html @@ -1,4 +1,4 @@ -Timer in iroh::gossip::proto - Rust

Struct iroh::gossip::proto::Timer

source ·
pub struct Timer<PI> { /* private fields */ }
Expand description

A timer to be registered into the runtime

+Timer in iroh::gossip::proto - Rust

Struct iroh::gossip::proto::Timer

source ·
pub struct Timer<PI> { /* private fields */ }
Expand description

A timer to be registered into the runtime

As the implementation of the protocol is an IO-less state machine, registering timers does not happen within the protocol implementation. Instead, these Timer structs are emitted as OutEvents. The implementer must register the timer in its runtime to be emitted on the specified Instant, @@ -55,14 +55,7 @@ and once triggered inject an From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/struct.TopicId.html b/pr/2674/docs/iroh/gossip/proto/struct.TopicId.html index 67ceaa37fa..be6a1522a2 100644 --- a/pr/2674/docs/iroh/gossip/proto/struct.TopicId.html +++ b/pr/2674/docs/iroh/gossip/proto/struct.TopicId.html @@ -1,4 +1,4 @@ -TopicId in iroh::gossip::proto - Rust

Struct iroh::gossip::proto::TopicId

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

The identifier for a topic

+TopicId in iroh::gossip::proto - Rust

Struct iroh::gossip::proto::TopicId

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

The identifier for a topic

Implementations§

source§

impl TopicId

source

pub const fn from_bytes(bytes: [u8; 32]) -> TopicId

Create from a byte array.

source

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

Get as byte slice.

Trait Implementations§

source§

impl AsRef<[u8]> for TopicId

source§

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

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

impl AsRef<[u8; 32]> for TopicId

source§

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

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

impl Clone for TopicId

source§

fn clone(&self) -> TopicId

Returns a 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 TopicId

source§

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

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

impl<'de> Deserialize<'de> for TopicId

source§

fn deserialize<__D>( @@ -74,14 +74,7 @@ ordering. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/topic/constant.DEFAULT_MAX_MESSAGE_SIZE.html b/pr/2674/docs/iroh/gossip/proto/topic/constant.DEFAULT_MAX_MESSAGE_SIZE.html index 1975403aba..2b42a48cc4 100644 --- a/pr/2674/docs/iroh/gossip/proto/topic/constant.DEFAULT_MAX_MESSAGE_SIZE.html +++ b/pr/2674/docs/iroh/gossip/proto/topic/constant.DEFAULT_MAX_MESSAGE_SIZE.html @@ -1,3 +1,3 @@ -DEFAULT_MAX_MESSAGE_SIZE in iroh::gossip::proto::topic - Rust

Constant iroh::gossip::proto::topic::DEFAULT_MAX_MESSAGE_SIZE

source ·
pub const DEFAULT_MAX_MESSAGE_SIZE: usize = 4096; // 4_096usize
Expand description

The default maximum size in bytes for a gossip message. +DEFAULT_MAX_MESSAGE_SIZE in iroh::gossip::proto::topic - Rust

Constant iroh::gossip::proto::topic::DEFAULT_MAX_MESSAGE_SIZE

source ·
pub const DEFAULT_MAX_MESSAGE_SIZE: usize = 4096; // 4_096usize
Expand description

The default maximum size in bytes for a gossip message. This is a sane but arbitrary default and can be changed in the Config.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/gossip/proto/topic/enum.Command.html b/pr/2674/docs/iroh/gossip/proto/topic/enum.Command.html index c262697bcb..6a8f59fcdd 100644 --- a/pr/2674/docs/iroh/gossip/proto/topic/enum.Command.html +++ b/pr/2674/docs/iroh/gossip/proto/topic/enum.Command.html @@ -1,4 +1,4 @@ -Command in iroh::gossip::proto::topic - Rust

Enum iroh::gossip::proto::topic::Command

source ·
pub enum Command<PI> {
+Command in iroh::gossip::proto::topic - Rust

Enum iroh::gossip::proto::topic::Command

source ·
pub enum Command<PI> {
     Join(Vec<PI>),
     Broadcast(Bytes, Scope),
     Quit,
@@ -59,14 +59,7 @@ but only become operational after the first join request by another peer.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/topic/enum.Event.html b/pr/2674/docs/iroh/gossip/proto/topic/enum.Event.html index a45b1b1078..0750804ec5 100644 --- a/pr/2674/docs/iroh/gossip/proto/topic/enum.Event.html +++ b/pr/2674/docs/iroh/gossip/proto/topic/enum.Event.html @@ -1,4 +1,4 @@ -Event in iroh::gossip::proto::topic - Rust

Enum iroh::gossip::proto::topic::Event

source ·
pub enum Event<PI> {
+Event in iroh::gossip::proto::topic - Rust

Enum iroh::gossip::proto::topic::Event

source ·
pub enum Event<PI> {
     NeighborUp(PI),
     NeighborDown(PI),
     Received(GossipEvent<PI>),
@@ -12,7 +12,7 @@
     PI: Deserialize<'de>,

source§

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

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

impl<PI> From<Event<PI>> for Event<PI>

source§

fn from(value: Event<PI>) -> Event<PI>

Converts to this type from the input type.
source§

impl<PI> From<Event<PI>> for Event<PI>

source§

fn from(value: Event<PI>) -> Event<PI>

Converts to this type from the input type.
source§

impl From<Event<PublicKey>> for GossipEvent

source§

fn from(event: Event<PublicKey>) -> GossipEvent

Converts to this type from the input type.
source§

impl<PI> Ord for Event<PI>
where + __D: Deserializer<'de>,

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

impl<PI> From<Event<PI>> for Event<PI>

source§

fn from(value: Event<PI>) -> Event<PI>

Converts to this type from the input type.
source§

impl<PI> From<Event<PI>> for Event<PI>

source§

fn from(value: Event<PI>) -> Event<PI>

Converts to this type from the input type.
source§

impl From<Event<PublicKey>> for GossipEvent

source§

fn from(event: Event<PublicKey>) -> GossipEvent

Converts to this type from the input type.
source§

impl<PI> Ord for Event<PI>
where PI: Ord,

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 @@ -83,14 +83,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/topic/enum.InEvent.html b/pr/2674/docs/iroh/gossip/proto/topic/enum.InEvent.html index 4d3fdac480..0665902aa8 100644 --- a/pr/2674/docs/iroh/gossip/proto/topic/enum.InEvent.html +++ b/pr/2674/docs/iroh/gossip/proto/topic/enum.InEvent.html @@ -1,4 +1,4 @@ -InEvent in iroh::gossip::proto::topic - Rust

Enum iroh::gossip::proto::topic::InEvent

source ·
pub enum InEvent<PI> {
+InEvent in iroh::gossip::proto::topic - Rust

Enum iroh::gossip::proto::topic::InEvent

source ·
pub enum InEvent<PI> {
     RecvMessage(PI, Message<PI>),
     Command(Command<PI>),
     TimerExpired(Timer<PI>),
@@ -61,14 +61,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/topic/enum.Message.html b/pr/2674/docs/iroh/gossip/proto/topic/enum.Message.html index 4b196c008f..6712a0257f 100644 --- a/pr/2674/docs/iroh/gossip/proto/topic/enum.Message.html +++ b/pr/2674/docs/iroh/gossip/proto/topic/enum.Message.html @@ -1,4 +1,4 @@ -Message in iroh::gossip::proto::topic - Rust

Enum iroh::gossip::proto::topic::Message

source ·
pub enum Message<PI> {
+Message in iroh::gossip::proto::topic - Rust

Enum iroh::gossip::proto::topic::Message

source ·
pub enum Message<PI> {
     Swarm(Message<PI>),
     Gossip(Message),
 }
Expand description

A protocol message for a particular topic

@@ -11,7 +11,7 @@ PI: Deserialize<'de>,

source§

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

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

impl<PI> From<Message<PI>> for Message<PI>

source§

fn from(value: Message<PI>) -> Message<PI>

Converts to this type from the input type.
source§

impl<PI> From<Message> for Message<PI>

source§

fn from(value: Message) -> Message<PI>

Converts to this type from the input type.
source§

impl<PI> PartialEq for Message<PI>
where + __D: Deserializer<'de>,

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

impl<PI> From<Message<PI>> for Message<PI>

source§

fn from(value: Message<PI>) -> Message<PI>

Converts to this type from the input type.
source§

impl<PI> From<Message> for Message<PI>

source§

fn from(value: Message) -> Message<PI>

Converts to this type from the input type.
source§

impl<PI> PartialEq for Message<PI>
where PI: PartialEq,

source§

fn eq(&self, other: &Message<PI>) -> 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<PI> Serialize for Message<PI>
where @@ -73,14 +73,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/topic/enum.OutEvent.html b/pr/2674/docs/iroh/gossip/proto/topic/enum.OutEvent.html index 4361a728cd..256ad99c84 100644 --- a/pr/2674/docs/iroh/gossip/proto/topic/enum.OutEvent.html +++ b/pr/2674/docs/iroh/gossip/proto/topic/enum.OutEvent.html @@ -1,4 +1,4 @@ -OutEvent in iroh::gossip::proto::topic - Rust

Enum iroh::gossip::proto::topic::OutEvent

source ·
pub enum OutEvent<PI> {
+OutEvent in iroh::gossip::proto::topic - Rust

Enum iroh::gossip::proto::topic::OutEvent

source ·
pub enum OutEvent<PI> {
     SendMessage(PI, Message<PI>),
     EmitEvent(Event<PI>),
     ScheduleTimer(Duration, Timer<PI>),
@@ -67,14 +67,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/topic/enum.Timer.html b/pr/2674/docs/iroh/gossip/proto/topic/enum.Timer.html index 09102b13c6..9a5f0e8ff6 100644 --- a/pr/2674/docs/iroh/gossip/proto/topic/enum.Timer.html +++ b/pr/2674/docs/iroh/gossip/proto/topic/enum.Timer.html @@ -1,4 +1,4 @@ -Timer in iroh::gossip::proto::topic - Rust

Enum iroh::gossip::proto::topic::Timer

source ·
pub enum Timer<PI> {
+Timer in iroh::gossip::proto::topic - Rust

Enum iroh::gossip::proto::topic::Timer

source ·
pub enum Timer<PI> {
     Swarm(Timer<PI>),
     Gossip(Timer),
 }
Expand description

A timer to be registered for a particular topic.

@@ -8,7 +8,7 @@ to the protocol through §

Gossip(Timer)

A timer for the gossip layer

Trait Implementations§

source§

impl<PI> Clone for Timer<PI>
where PI: Clone,

source§

fn clone(&self) -> Timer<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 for Timer<PI>
where - PI: Debug,

source§

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

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

impl<PI> From<Timer<PI>> for Timer<PI>

source§

fn from(value: Timer<PI>) -> Timer<PI>

Converts to this type from the input type.
source§

impl<PI> From<Timer> for Timer<PI>

source§

fn from(value: Timer) -> Timer<PI>

Converts to this type from the input type.
source§

impl<PI> PartialEq for Timer<PI>
where + PI: Debug,

source§

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

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

impl<PI> From<Timer<PI>> for Timer<PI>

source§

fn from(value: Timer<PI>) -> Timer<PI>

Converts to this type from the input type.
source§

impl<PI> From<Timer> for Timer<PI>

source§

fn from(value: Timer) -> Timer<PI>

Converts to this type from the input type.
source§

impl<PI> PartialEq for Timer<PI>
where PI: PartialEq,

source§

fn eq(&self, other: &Timer<PI>) -> 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<PI> Eq for Timer<PI>
where @@ -66,14 +66,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/topic/index.html b/pr/2674/docs/iroh/gossip/proto/topic/index.html index 469d502093..616671d647 100644 --- a/pr/2674/docs/iroh/gossip/proto/topic/index.html +++ b/pr/2674/docs/iroh/gossip/proto/topic/index.html @@ -1,3 +1,3 @@ -iroh::gossip::proto::topic - Rust

Module iroh::gossip::proto::topic

source ·
Expand description

This module contains the implementation of the gossiping protocol for an individual topic

+iroh::gossip::proto::topic - Rust

Module iroh::gossip::proto::topic

source ·
Expand description

This module contains the implementation of the gossiping protocol for an individual topic

Structs§

  • Protocol configuration
  • The topic state maintains the swarm membership and broadcast tree for a particular topic.
  • Statistics for the protocol state of a topic

Enums§

  • A command to the protocol state for a particular topic.
  • An event to be emitted to the application for a particular topic.
  • Input event to the topic state handler.
  • A protocol message for a particular topic
  • An output event from the state handler.
  • A timer to be registered for a particular topic.

Constants§

  • The default maximum size in bytes for a gossip message. This is a sane but arbitrary default and can be changed in the Config.

Traits§

  • A trait for a concrete type to push OutEvents to.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/gossip/proto/topic/struct.Config.html b/pr/2674/docs/iroh/gossip/proto/topic/struct.Config.html index ccd87f0933..baced7e83a 100644 --- a/pr/2674/docs/iroh/gossip/proto/topic/struct.Config.html +++ b/pr/2674/docs/iroh/gossip/proto/topic/struct.Config.html @@ -1,4 +1,4 @@ -Config in iroh::gossip::proto::topic - Rust

Struct iroh::gossip::proto::topic::Config

source ·
pub struct Config {
+Config in iroh::gossip::proto::topic - Rust

Struct iroh::gossip::proto::topic::Config

source ·
pub struct Config {
     pub membership: Config,
     pub broadcast: Config,
     pub max_message_size: usize,
@@ -53,14 +53,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/topic/struct.State.html b/pr/2674/docs/iroh/gossip/proto/topic/struct.State.html index cac0078486..2aadacf81b 100644 --- a/pr/2674/docs/iroh/gossip/proto/topic/struct.State.html +++ b/pr/2674/docs/iroh/gossip/proto/topic/struct.State.html @@ -1,4 +1,4 @@ -State in iroh::gossip::proto::topic - Rust

Struct iroh::gossip::proto::topic::State

source ·
pub struct State<PI, R> { /* private fields */ }
Expand description

The topic state maintains the swarm membership and broadcast tree for a particular topic.

+State in iroh::gossip::proto::topic - Rust

Struct iroh::gossip::proto::topic::State

source ·
pub struct State<PI, R> { /* private fields */ }
Expand description

The topic state maintains the swarm membership and broadcast tree for a particular topic.

Implementations§

source§

impl<PI> State<PI, StdRng>
where PI: PeerIdentity,

source

pub fn new( me: PI, @@ -79,14 +79,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/topic/struct.Stats.html b/pr/2674/docs/iroh/gossip/proto/topic/struct.Stats.html index ec336239d6..b357c903a3 100644 --- a/pr/2674/docs/iroh/gossip/proto/topic/struct.Stats.html +++ b/pr/2674/docs/iroh/gossip/proto/topic/struct.Stats.html @@ -1,4 +1,4 @@ -Stats in iroh::gossip::proto::topic - Rust

Struct iroh::gossip::proto::topic::Stats

source ·
pub struct Stats {
+Stats in iroh::gossip::proto::topic - Rust

Struct iroh::gossip::proto::topic::Stats

source ·
pub struct Stats {
     pub messages_sent: usize,
     pub messages_received: usize,
 }
Expand description

Statistics for the protocol state of a topic

@@ -48,14 +48,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/topic/trait.IO.html b/pr/2674/docs/iroh/gossip/proto/topic/trait.IO.html index 1be4995464..ecc6e5c7d0 100644 --- a/pr/2674/docs/iroh/gossip/proto/topic/trait.IO.html +++ b/pr/2674/docs/iroh/gossip/proto/topic/trait.IO.html @@ -1,4 +1,4 @@ -IO in iroh::gossip::proto::topic - Rust

Trait iroh::gossip::proto::topic::IO

source ·
pub trait IO<PI>
where +IO in iroh::gossip::proto::topic - Rust

Trait iroh::gossip::proto::topic::IO

source ·
pub trait IO<PI>
where PI: Clone,
{ // Required method fn push(&mut self, event: impl Into<OutEvent<PI>>); diff --git a/pr/2674/docs/iroh/gossip/proto/trait.IO.html b/pr/2674/docs/iroh/gossip/proto/trait.IO.html index 164b1e41e0..4608d8f49d 100644 --- a/pr/2674/docs/iroh/gossip/proto/trait.IO.html +++ b/pr/2674/docs/iroh/gossip/proto/trait.IO.html @@ -1,4 +1,4 @@ -IO in iroh::gossip::proto - Rust

Trait iroh::gossip::proto::IO

source ·
pub trait IO<PI>
where +IO in iroh::gossip::proto - Rust

Trait iroh::gossip::proto::IO

source ·
pub trait IO<PI>
where PI: Clone,
{ // Required method fn push(&mut self, event: impl Into<OutEvent<PI>>); diff --git a/pr/2674/docs/iroh/gossip/proto/trait.PeerIdentity.html b/pr/2674/docs/iroh/gossip/proto/trait.PeerIdentity.html index 71c066b318..ddf69a24d9 100644 --- a/pr/2674/docs/iroh/gossip/proto/trait.PeerIdentity.html +++ b/pr/2674/docs/iroh/gossip/proto/trait.PeerIdentity.html @@ -1,4 +1,4 @@ -PeerIdentity in iroh::gossip::proto - Rust

Trait iroh::gossip::proto::PeerIdentity

source ·
pub trait PeerIdentity: Hash + Eq + Copy + Debug + Serialize + DeserializeOwned { }
Expand description

The identifier for a peer.

+PeerIdentity in iroh::gossip::proto - Rust

Trait iroh::gossip::proto::PeerIdentity

source ·
pub trait PeerIdentity: Hash + Eq + Copy + Debug + Serialize + DeserializeOwned { }
Expand description

The identifier for a peer.

The protocol implementation is generic over this trait. When implementing the protocol, a concrete type must be chosen that will then be used throughout the implementation to identify and index individual peers.

diff --git a/pr/2674/docs/iroh/gossip/proto/util/index.html b/pr/2674/docs/iroh/gossip/proto/util/index.html index 91929872ee..a0d68aaffe 100644 --- a/pr/2674/docs/iroh/gossip/proto/util/index.html +++ b/pr/2674/docs/iroh/gossip/proto/util/index.html @@ -1,2 +1,2 @@ -iroh::gossip::proto::util - Rust

Module iroh::gossip::proto::util

source ·
Expand description

Utilities used in the protocol implementation

+iroh::gossip::proto::util - Rust

Module iroh::gossip::proto::util

source ·
Expand description

Utilities used in the protocol implementation

Structs§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/gossip/proto/util/struct.TimeBoundCache.html b/pr/2674/docs/iroh/gossip/proto/util/struct.TimeBoundCache.html index 154686bd13..f138265116 100644 --- a/pr/2674/docs/iroh/gossip/proto/util/struct.TimeBoundCache.html +++ b/pr/2674/docs/iroh/gossip/proto/util/struct.TimeBoundCache.html @@ -1,4 +1,4 @@ -TimeBoundCache in iroh::gossip::proto::util - Rust

Struct iroh::gossip::proto::util::TimeBoundCache

source ·
pub struct TimeBoundCache<K, V> { /* private fields */ }
Expand description

A hash map where entries expire after a time

+TimeBoundCache in iroh::gossip::proto::util - Rust

Struct iroh::gossip::proto::util::TimeBoundCache

source ·
pub struct TimeBoundCache<K, V> { /* private fields */ }
Expand description

A hash map where entries expire after a time

Implementations§

source§

impl<K, V> TimeBoundCache<K, V>
where K: Hash + Eq + Clone,

source

pub fn insert(&mut self, key: K, value: V, expires: Instant)

Insert an item into the cache, marked with an expiration time.

source

pub fn contains_key(&self, key: &K) -> bool

Returns true if the map contains a value for the specified key.

@@ -64,14 +64,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/gossip/proto/util/struct.TimerMap.html b/pr/2674/docs/iroh/gossip/proto/util/struct.TimerMap.html index a42f2449a8..776d575d4c 100644 --- a/pr/2674/docs/iroh/gossip/proto/util/struct.TimerMap.html +++ b/pr/2674/docs/iroh/gossip/proto/util/struct.TimerMap.html @@ -1,4 +1,4 @@ -TimerMap in iroh::gossip::proto::util - Rust

Struct iroh::gossip::proto::util::TimerMap

source ·
pub struct TimerMap<T>(/* private fields */);
Expand description

A BTreeMap with Instant as key. Allows to process expired items.

+TimerMap in iroh::gossip::proto::util - Rust

Struct iroh::gossip::proto::util::TimerMap

source ·
pub struct TimerMap<T>(/* private fields */);
Expand description

A BTreeMap with Instant as key. Allows to process expired items.

Implementations§

source§

impl<T> TimerMap<T>

source

pub fn new() -> TimerMap<T>

Create a new, empty TimerMap.

source

pub fn insert(&mut self, instant: Instant, item: T)

Insert a new entry at the specified instant.

source

pub fn drain_until( @@ -56,14 +56,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/index.html b/pr/2674/docs/iroh/index.html index 75ae94d161..198160d949 100644 --- a/pr/2674/docs/iroh/index.html +++ b/pr/2674/docs/iroh/index.html @@ -1,4 +1,4 @@ -iroh - Rust

Crate iroh

source ·
Expand description

Send data over the internet.

+iroh - Rust

Crate iroh

source ·
Expand description

Send data over the internet.

§Getting started

§Example

Create a new node and add some data to the blobs store. This data will be available over the network.

diff --git a/pr/2674/docs/iroh/metrics/fn.get_metrics.html b/pr/2674/docs/iroh/metrics/fn.get_metrics.html index 8d6cfb8536..71fe85d394 100644 --- a/pr/2674/docs/iroh/metrics/fn.get_metrics.html +++ b/pr/2674/docs/iroh/metrics/fn.get_metrics.html @@ -1,3 +1,3 @@ -get_metrics in iroh::metrics - Rust

Function iroh::metrics::get_metrics

source ·
pub fn get_metrics() -> Result<BTreeMap<String, CounterStats>>
Available on crate feature metrics only.
Expand description

Collect the current metrics into a hash map.

+get_metrics in iroh::metrics - Rust

Function iroh::metrics::get_metrics

source ·
pub fn get_metrics() -> Result<BTreeMap<String, CounterStats>>
Available on crate feature metrics only.
Expand description

Collect the current metrics into a hash map.

TODO: Only counters are supported for now, other metrics will be skipped without error.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/metrics/fn.try_init_metrics_collection.html b/pr/2674/docs/iroh/metrics/fn.try_init_metrics_collection.html index 21be28a7fb..ba0b6d8877 100644 --- a/pr/2674/docs/iroh/metrics/fn.try_init_metrics_collection.html +++ b/pr/2674/docs/iroh/metrics/fn.try_init_metrics_collection.html @@ -1,3 +1,3 @@ -try_init_metrics_collection in iroh::metrics - Rust

Function iroh::metrics::try_init_metrics_collection

source ·
pub fn try_init_metrics_collection() -> Result<()>
Available on crate feature metrics only.
Expand description

Initialize the global metrics collection.

+try_init_metrics_collection in iroh::metrics - Rust

Function iroh::metrics::try_init_metrics_collection

source ·
pub fn try_init_metrics_collection() -> Result<()>
Available on crate feature metrics only.
Expand description

Initialize the global metrics collection.

Will return an error if the global metrics collection was already initialized.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/metrics/index.html b/pr/2674/docs/iroh/metrics/index.html index 0da0b43d67..2f641525de 100644 --- a/pr/2674/docs/iroh/metrics/index.html +++ b/pr/2674/docs/iroh/metrics/index.html @@ -1,2 +1,2 @@ -iroh::metrics - Rust

Module iroh::metrics

source ·
Available on crate feature metrics only.
Expand description

Expose metrics module

+iroh::metrics - Rust

Module iroh::metrics

source ·
Available on crate feature metrics only.
Expand description

Expose metrics module

Structs§

  • Enum of metrics for the module

Functions§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/metrics/struct.Metrics.html b/pr/2674/docs/iroh/metrics/struct.Metrics.html index 1c0fcd9331..60c4b2ef91 100644 --- a/pr/2674/docs/iroh/metrics/struct.Metrics.html +++ b/pr/2674/docs/iroh/metrics/struct.Metrics.html @@ -1,4 +1,4 @@ -Metrics in iroh::metrics - Rust

Struct iroh::metrics::Metrics

source ·
pub struct Metrics {
+Metrics in iroh::metrics - Rust

Struct iroh::metrics::Metrics

source ·
pub struct Metrics {
     pub doc_gossip_tick_main: Counter,
     pub doc_gossip_tick_event: Counter,
     pub doc_gossip_tick_actor: Counter,
@@ -56,14 +56,7 @@ Only records if this metric is registered in the global registry.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/defaults/constant.DEFAULT_HTTPS_PORT.html b/pr/2674/docs/iroh/net/defaults/constant.DEFAULT_HTTPS_PORT.html index 30723ae734..e6244cc01c 100644 --- a/pr/2674/docs/iroh/net/defaults/constant.DEFAULT_HTTPS_PORT.html +++ b/pr/2674/docs/iroh/net/defaults/constant.DEFAULT_HTTPS_PORT.html @@ -1,2 +1,2 @@ -DEFAULT_HTTPS_PORT in iroh::net::defaults - Rust

Constant iroh::net::defaults::DEFAULT_HTTPS_PORT

source ·
pub const DEFAULT_HTTPS_PORT: u16 = 443; // 443u16
Expand description

The default HTTPS port used by the Relay server.

+DEFAULT_HTTPS_PORT in iroh::net::defaults - Rust

Constant iroh::net::defaults::DEFAULT_HTTPS_PORT

source ·
pub const DEFAULT_HTTPS_PORT: u16 = 443; // 443u16
Expand description

The default HTTPS port used by the Relay server.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/constant.DEFAULT_HTTP_PORT.html b/pr/2674/docs/iroh/net/defaults/constant.DEFAULT_HTTP_PORT.html index 9bc466cfde..61fca1cf5a 100644 --- a/pr/2674/docs/iroh/net/defaults/constant.DEFAULT_HTTP_PORT.html +++ b/pr/2674/docs/iroh/net/defaults/constant.DEFAULT_HTTP_PORT.html @@ -1,2 +1,2 @@ -DEFAULT_HTTP_PORT in iroh::net::defaults - Rust

Constant iroh::net::defaults::DEFAULT_HTTP_PORT

source ·
pub const DEFAULT_HTTP_PORT: u16 = 80; // 80u16
Expand description

The default HTTP port used by the Relay server.

+DEFAULT_HTTP_PORT in iroh::net::defaults - Rust

Constant iroh::net::defaults::DEFAULT_HTTP_PORT

source ·
pub const DEFAULT_HTTP_PORT: u16 = 80; // 80u16
Expand description

The default HTTP port used by the Relay server.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/constant.DEFAULT_METRICS_PORT.html b/pr/2674/docs/iroh/net/defaults/constant.DEFAULT_METRICS_PORT.html index 1a927ed6c1..5747d0f789 100644 --- a/pr/2674/docs/iroh/net/defaults/constant.DEFAULT_METRICS_PORT.html +++ b/pr/2674/docs/iroh/net/defaults/constant.DEFAULT_METRICS_PORT.html @@ -1,2 +1,2 @@ -DEFAULT_METRICS_PORT in iroh::net::defaults - Rust

Constant iroh::net::defaults::DEFAULT_METRICS_PORT

source ·
pub const DEFAULT_METRICS_PORT: u16 = 9090; // 9_090u16
Expand description

The default metrics port used by the Relay server.

+DEFAULT_METRICS_PORT in iroh::net::defaults - Rust

Constant iroh::net::defaults::DEFAULT_METRICS_PORT

source ·
pub const DEFAULT_METRICS_PORT: u16 = 9090; // 9_090u16
Expand description

The default metrics port used by the Relay server.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/constant.DEFAULT_STUN_PORT.html b/pr/2674/docs/iroh/net/defaults/constant.DEFAULT_STUN_PORT.html index 0f75122c1f..f544d6f97d 100644 --- a/pr/2674/docs/iroh/net/defaults/constant.DEFAULT_STUN_PORT.html +++ b/pr/2674/docs/iroh/net/defaults/constant.DEFAULT_STUN_PORT.html @@ -1,4 +1,4 @@ -DEFAULT_STUN_PORT in iroh::net::defaults - Rust

Constant iroh::net::defaults::DEFAULT_STUN_PORT

source ·
pub const DEFAULT_STUN_PORT: u16 = 3478; // 3_478u16
Expand description

The default STUN port used by the Relay server.

+DEFAULT_STUN_PORT in iroh::net::defaults - Rust

Constant iroh::net::defaults::DEFAULT_STUN_PORT

source ·
pub const DEFAULT_STUN_PORT: u16 = 3478; // 3_478u16
Expand description

The default STUN port used by the Relay server.

The STUN port as defined by RFC 8489

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/index.html b/pr/2674/docs/iroh/net/defaults/index.html index da2a33bb13..8c3e2f284f 100644 --- a/pr/2674/docs/iroh/net/defaults/index.html +++ b/pr/2674/docs/iroh/net/defaults/index.html @@ -1,2 +1,2 @@ -iroh::net::defaults - Rust

Module iroh::net::defaults

source ·
Expand description

Default values used in iroh-net

+iroh::net::defaults - Rust

Module iroh::net::defaults

source ·
Expand description

Default values used in iroh-net

Modules§

  • Production configuration.
  • Staging configuration.

Constants§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/prod/constant.AP_RELAY_HOSTNAME.html b/pr/2674/docs/iroh/net/defaults/prod/constant.AP_RELAY_HOSTNAME.html index 9586d90379..013749af32 100644 --- a/pr/2674/docs/iroh/net/defaults/prod/constant.AP_RELAY_HOSTNAME.html +++ b/pr/2674/docs/iroh/net/defaults/prod/constant.AP_RELAY_HOSTNAME.html @@ -1,2 +1,2 @@ -AP_RELAY_HOSTNAME in iroh::net::defaults::prod - Rust

Constant iroh::net::defaults::prod::AP_RELAY_HOSTNAME

source ·
pub const AP_RELAY_HOSTNAME: &'static str;
Expand description

Hostname of the default Asia-Pacific relay.

+AP_RELAY_HOSTNAME in iroh::net::defaults::prod - Rust

Constant iroh::net::defaults::prod::AP_RELAY_HOSTNAME

source ·
pub const AP_RELAY_HOSTNAME: &'static str;
Expand description

Hostname of the default Asia-Pacific relay.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/prod/constant.EU_RELAY_HOSTNAME.html b/pr/2674/docs/iroh/net/defaults/prod/constant.EU_RELAY_HOSTNAME.html index a413e4fd5b..83ead3e8a9 100644 --- a/pr/2674/docs/iroh/net/defaults/prod/constant.EU_RELAY_HOSTNAME.html +++ b/pr/2674/docs/iroh/net/defaults/prod/constant.EU_RELAY_HOSTNAME.html @@ -1,2 +1,2 @@ -EU_RELAY_HOSTNAME in iroh::net::defaults::prod - Rust

Constant iroh::net::defaults::prod::EU_RELAY_HOSTNAME

source ·
pub const EU_RELAY_HOSTNAME: &'static str;
Expand description

Hostname of the default EU relay.

+EU_RELAY_HOSTNAME in iroh::net::defaults::prod - Rust

Constant iroh::net::defaults::prod::EU_RELAY_HOSTNAME

source ·
pub const EU_RELAY_HOSTNAME: &'static str;
Expand description

Hostname of the default EU relay.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/prod/constant.NA_RELAY_HOSTNAME.html b/pr/2674/docs/iroh/net/defaults/prod/constant.NA_RELAY_HOSTNAME.html index 1c66c6b0c5..0102bbc7cb 100644 --- a/pr/2674/docs/iroh/net/defaults/prod/constant.NA_RELAY_HOSTNAME.html +++ b/pr/2674/docs/iroh/net/defaults/prod/constant.NA_RELAY_HOSTNAME.html @@ -1,2 +1,2 @@ -NA_RELAY_HOSTNAME in iroh::net::defaults::prod - Rust

Constant iroh::net::defaults::prod::NA_RELAY_HOSTNAME

source ·
pub const NA_RELAY_HOSTNAME: &'static str;
Expand description

Hostname of the default NA relay.

+NA_RELAY_HOSTNAME in iroh::net::defaults::prod - Rust

Constant iroh::net::defaults::prod::NA_RELAY_HOSTNAME

source ·
pub const NA_RELAY_HOSTNAME: &'static str;
Expand description

Hostname of the default NA relay.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/prod/fn.default_ap_relay_node.html b/pr/2674/docs/iroh/net/defaults/prod/fn.default_ap_relay_node.html index a7bdac91c8..9220700d45 100644 --- a/pr/2674/docs/iroh/net/defaults/prod/fn.default_ap_relay_node.html +++ b/pr/2674/docs/iroh/net/defaults/prod/fn.default_ap_relay_node.html @@ -1,2 +1,2 @@ -default_ap_relay_node in iroh::net::defaults::prod - Rust

Function iroh::net::defaults::prod::default_ap_relay_node

source ·
pub fn default_ap_relay_node() -> RelayNode
Expand description

Get the default RelayNode for Asia-Pacific

+default_ap_relay_node in iroh::net::defaults::prod - Rust

Function iroh::net::defaults::prod::default_ap_relay_node

source ·
pub fn default_ap_relay_node() -> RelayNode
Expand description

Get the default RelayNode for Asia-Pacific

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/prod/fn.default_eu_relay_node.html b/pr/2674/docs/iroh/net/defaults/prod/fn.default_eu_relay_node.html index 7d8dcff21e..0041b0d469 100644 --- a/pr/2674/docs/iroh/net/defaults/prod/fn.default_eu_relay_node.html +++ b/pr/2674/docs/iroh/net/defaults/prod/fn.default_eu_relay_node.html @@ -1,2 +1,2 @@ -default_eu_relay_node in iroh::net::defaults::prod - Rust

Function iroh::net::defaults::prod::default_eu_relay_node

source ·
pub fn default_eu_relay_node() -> RelayNode
Expand description

Get the default RelayNode for EU.

+default_eu_relay_node in iroh::net::defaults::prod - Rust

Function iroh::net::defaults::prod::default_eu_relay_node

source ·
pub fn default_eu_relay_node() -> RelayNode
Expand description

Get the default RelayNode for EU.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/prod/fn.default_na_relay_node.html b/pr/2674/docs/iroh/net/defaults/prod/fn.default_na_relay_node.html index b82495cc32..e271bb461a 100644 --- a/pr/2674/docs/iroh/net/defaults/prod/fn.default_na_relay_node.html +++ b/pr/2674/docs/iroh/net/defaults/prod/fn.default_na_relay_node.html @@ -1,2 +1,2 @@ -default_na_relay_node in iroh::net::defaults::prod - Rust

Function iroh::net::defaults::prod::default_na_relay_node

source ·
pub fn default_na_relay_node() -> RelayNode
Expand description

Get the default RelayNode for NA.

+default_na_relay_node in iroh::net::defaults::prod - Rust

Function iroh::net::defaults::prod::default_na_relay_node

source ·
pub fn default_na_relay_node() -> RelayNode
Expand description

Get the default RelayNode for NA.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/prod/fn.default_relay_map.html b/pr/2674/docs/iroh/net/defaults/prod/fn.default_relay_map.html index 290151b2b9..d95c4a257a 100644 --- a/pr/2674/docs/iroh/net/defaults/prod/fn.default_relay_map.html +++ b/pr/2674/docs/iroh/net/defaults/prod/fn.default_relay_map.html @@ -1,2 +1,2 @@ -default_relay_map in iroh::net::defaults::prod - Rust

Function iroh::net::defaults::prod::default_relay_map

source ·
pub fn default_relay_map() -> RelayMap
Expand description

Get the default RelayMap.

+default_relay_map in iroh::net::defaults::prod - Rust

Function iroh::net::defaults::prod::default_relay_map

source ·
pub fn default_relay_map() -> RelayMap
Expand description

Get the default RelayMap.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/prod/index.html b/pr/2674/docs/iroh/net/defaults/prod/index.html index 1ef10e9b74..04ca346928 100644 --- a/pr/2674/docs/iroh/net/defaults/prod/index.html +++ b/pr/2674/docs/iroh/net/defaults/prod/index.html @@ -1,2 +1,2 @@ -iroh::net::defaults::prod - Rust

Module iroh::net::defaults::prod

source ·
Expand description

Production configuration.

+iroh::net::defaults::prod - Rust

Module iroh::net::defaults::prod

source ·
Expand description

Production configuration.

Constants§

Functions§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/staging/constant.EU_RELAY_HOSTNAME.html b/pr/2674/docs/iroh/net/defaults/staging/constant.EU_RELAY_HOSTNAME.html index 9bbad6a139..c66d0ec817 100644 --- a/pr/2674/docs/iroh/net/defaults/staging/constant.EU_RELAY_HOSTNAME.html +++ b/pr/2674/docs/iroh/net/defaults/staging/constant.EU_RELAY_HOSTNAME.html @@ -1,2 +1,2 @@ -EU_RELAY_HOSTNAME in iroh::net::defaults::staging - Rust

Constant iroh::net::defaults::staging::EU_RELAY_HOSTNAME

source ·
pub const EU_RELAY_HOSTNAME: &'static str;
Expand description

Hostname of the default EU relay.

+EU_RELAY_HOSTNAME in iroh::net::defaults::staging - Rust

Constant iroh::net::defaults::staging::EU_RELAY_HOSTNAME

source ·
pub const EU_RELAY_HOSTNAME: &'static str;
Expand description

Hostname of the default EU relay.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/staging/constant.NA_RELAY_HOSTNAME.html b/pr/2674/docs/iroh/net/defaults/staging/constant.NA_RELAY_HOSTNAME.html index b1c1b0e9a9..e50c441fee 100644 --- a/pr/2674/docs/iroh/net/defaults/staging/constant.NA_RELAY_HOSTNAME.html +++ b/pr/2674/docs/iroh/net/defaults/staging/constant.NA_RELAY_HOSTNAME.html @@ -1,2 +1,2 @@ -NA_RELAY_HOSTNAME in iroh::net::defaults::staging - Rust

Constant iroh::net::defaults::staging::NA_RELAY_HOSTNAME

source ·
pub const NA_RELAY_HOSTNAME: &'static str;
Expand description

Hostname of the default NA relay.

+NA_RELAY_HOSTNAME in iroh::net::defaults::staging - Rust

Constant iroh::net::defaults::staging::NA_RELAY_HOSTNAME

source ·
pub const NA_RELAY_HOSTNAME: &'static str;
Expand description

Hostname of the default NA relay.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/staging/fn.default_eu_relay_node.html b/pr/2674/docs/iroh/net/defaults/staging/fn.default_eu_relay_node.html index 3f2dbd818b..440ea37db6 100644 --- a/pr/2674/docs/iroh/net/defaults/staging/fn.default_eu_relay_node.html +++ b/pr/2674/docs/iroh/net/defaults/staging/fn.default_eu_relay_node.html @@ -1,2 +1,2 @@ -default_eu_relay_node in iroh::net::defaults::staging - Rust

Function iroh::net::defaults::staging::default_eu_relay_node

source ·
pub fn default_eu_relay_node() -> RelayNode
Expand description

Get the default RelayNode for EU.

+default_eu_relay_node in iroh::net::defaults::staging - Rust

Function iroh::net::defaults::staging::default_eu_relay_node

source ·
pub fn default_eu_relay_node() -> RelayNode
Expand description

Get the default RelayNode for EU.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/staging/fn.default_na_relay_node.html b/pr/2674/docs/iroh/net/defaults/staging/fn.default_na_relay_node.html index b40741c2b0..b6651fe767 100644 --- a/pr/2674/docs/iroh/net/defaults/staging/fn.default_na_relay_node.html +++ b/pr/2674/docs/iroh/net/defaults/staging/fn.default_na_relay_node.html @@ -1,2 +1,2 @@ -default_na_relay_node in iroh::net::defaults::staging - Rust

Function iroh::net::defaults::staging::default_na_relay_node

source ·
pub fn default_na_relay_node() -> RelayNode
Expand description

Get the default RelayNode for NA.

+default_na_relay_node in iroh::net::defaults::staging - Rust

Function iroh::net::defaults::staging::default_na_relay_node

source ·
pub fn default_na_relay_node() -> RelayNode
Expand description

Get the default RelayNode for NA.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/staging/fn.default_relay_map.html b/pr/2674/docs/iroh/net/defaults/staging/fn.default_relay_map.html index 720d249963..a5c209c450 100644 --- a/pr/2674/docs/iroh/net/defaults/staging/fn.default_relay_map.html +++ b/pr/2674/docs/iroh/net/defaults/staging/fn.default_relay_map.html @@ -1,2 +1,2 @@ -default_relay_map in iroh::net::defaults::staging - Rust

Function iroh::net::defaults::staging::default_relay_map

source ·
pub fn default_relay_map() -> RelayMap
Expand description

Get the default RelayMap.

+default_relay_map in iroh::net::defaults::staging - Rust

Function iroh::net::defaults::staging::default_relay_map

source ·
pub fn default_relay_map() -> RelayMap
Expand description

Get the default RelayMap.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/defaults/staging/index.html b/pr/2674/docs/iroh/net/defaults/staging/index.html index 2c81ba4805..d1725eac06 100644 --- a/pr/2674/docs/iroh/net/defaults/staging/index.html +++ b/pr/2674/docs/iroh/net/defaults/staging/index.html @@ -1,4 +1,4 @@ -iroh::net::defaults::staging - Rust

Module iroh::net::defaults::staging

source ·
Expand description

Staging configuration.

+iroh::net::defaults::staging - Rust

Module iroh::net::defaults::staging

source ·
Expand description

Staging configuration.

Used by tests and might have incompatible changes deployed

Note: we have staging servers in EU and NA, but no corresponding staging server for AP at this time.

Constants§

Functions§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/dialer/index.html b/pr/2674/docs/iroh/net/dialer/index.html index 8fe4e2a1be..7613ac866f 100644 --- a/pr/2674/docs/iroh/net/dialer/index.html +++ b/pr/2674/docs/iroh/net/dialer/index.html @@ -1,2 +1,2 @@ -iroh::net::dialer - Rust

Module iroh::net::dialer

source ·
Expand description

A dialer to conveniently dial many nodes.

+iroh::net::dialer - Rust

Module iroh::net::dialer

source ·
Expand description

A dialer to conveniently dial many nodes.

Structs§

  • Dials nodes and maintains a queue of pending dials.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/dialer/struct.Dialer.html b/pr/2674/docs/iroh/net/dialer/struct.Dialer.html index 64f23eb3ae..f80949578e 100644 --- a/pr/2674/docs/iroh/net/dialer/struct.Dialer.html +++ b/pr/2674/docs/iroh/net/dialer/struct.Dialer.html @@ -1,4 +1,4 @@ -Dialer in iroh::net::dialer - Rust

Struct iroh::net::dialer::Dialer

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

Dials nodes and maintains a queue of pending dials.

+Dialer in iroh::net::dialer - Rust

Struct iroh::net::dialer::Dialer

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

Dials nodes and maintains a queue of pending dials.

The Dialer wraps an Endpoint, connects to nodes through the endpoint, stores the pending connect futures and emits finished connect results.

The Dialer also implements [Stream] to retrieve the dialled connections.

@@ -73,14 +73,7 @@ available. Read more
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<S> IntoStream for S
where +

§

impl<S> IntoStream for S
where S: Stream,

§

type Item = <S as Stream>::Item

The type of the elements being iterated over.
§

type IntoStream = S

Which kind of stream are we turning this into?
§

fn into_stream(self) -> S

Creates a stream from a value.
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html b/pr/2674/docs/iroh/net/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html index 43e4953c72..d02d53ef7e 100644 --- a/pr/2674/docs/iroh/net/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html +++ b/pr/2674/docs/iroh/net/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html @@ -1,2 +1,2 @@ -N0_DNS_NODE_ORIGIN_PROD in iroh::net::discovery::dns - Rust

Constant iroh::net::discovery::dns::N0_DNS_NODE_ORIGIN_PROD

source ·
pub const N0_DNS_NODE_ORIGIN_PROD: &'static str;
Expand description

The n0 testing DNS node origin, for production.

+N0_DNS_NODE_ORIGIN_PROD in iroh::net::discovery::dns - Rust

Constant iroh::net::discovery::dns::N0_DNS_NODE_ORIGIN_PROD

source ·
pub const N0_DNS_NODE_ORIGIN_PROD: &'static str;
Expand description

The n0 testing DNS node origin, for production.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html b/pr/2674/docs/iroh/net/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html index 4f53121815..f90fa9983a 100644 --- a/pr/2674/docs/iroh/net/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html +++ b/pr/2674/docs/iroh/net/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html @@ -1,2 +1,2 @@ -N0_DNS_NODE_ORIGIN_STAGING in iroh::net::discovery::dns - Rust

Constant iroh::net::discovery::dns::N0_DNS_NODE_ORIGIN_STAGING

source ·
pub const N0_DNS_NODE_ORIGIN_STAGING: &'static str;
Expand description

The n0 testing DNS node origin, for testing.

+N0_DNS_NODE_ORIGIN_STAGING in iroh::net::discovery::dns - Rust

Constant iroh::net::discovery::dns::N0_DNS_NODE_ORIGIN_STAGING

source ·
pub const N0_DNS_NODE_ORIGIN_STAGING: &'static str;
Expand description

The n0 testing DNS node origin, for testing.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/discovery/dns/constant.TEST_DNS_NODE_ORIGIN.html b/pr/2674/docs/iroh/net/discovery/dns/constant.TEST_DNS_NODE_ORIGIN.html index 0b4731362c..bd13b8ecd4 100644 --- a/pr/2674/docs/iroh/net/discovery/dns/constant.TEST_DNS_NODE_ORIGIN.html +++ b/pr/2674/docs/iroh/net/discovery/dns/constant.TEST_DNS_NODE_ORIGIN.html @@ -1,2 +1,2 @@ -TEST_DNS_NODE_ORIGIN in iroh::net::discovery::dns - Rust

Constant iroh::net::discovery::dns::TEST_DNS_NODE_ORIGIN

source ·
pub const TEST_DNS_NODE_ORIGIN: &'static str;
Expand description

Testing DNS node origin, must run server from crate::test_utils::DnsPkarrServer.

+TEST_DNS_NODE_ORIGIN in iroh::net::discovery::dns - Rust

Constant iroh::net::discovery::dns::TEST_DNS_NODE_ORIGIN

source ·
pub const TEST_DNS_NODE_ORIGIN: &'static str;
Expand description

Testing DNS node origin, must run server from crate::test_utils::DnsPkarrServer.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/discovery/dns/index.html b/pr/2674/docs/iroh/net/discovery/dns/index.html index 092472bf56..40a5c58b2f 100644 --- a/pr/2674/docs/iroh/net/discovery/dns/index.html +++ b/pr/2674/docs/iroh/net/discovery/dns/index.html @@ -1,2 +1,2 @@ -iroh::net::discovery::dns - Rust

Module iroh::net::discovery::dns

source ·
Expand description

DNS node discovery for iroh-net

+iroh::net::discovery::dns - Rust

Module iroh::net::discovery::dns

source ·
Expand description

DNS node discovery for iroh-net

Structs§

Constants§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/discovery/dns/struct.DnsDiscovery.html b/pr/2674/docs/iroh/net/discovery/dns/struct.DnsDiscovery.html index 640afae7c8..8d46c4463b 100644 --- a/pr/2674/docs/iroh/net/discovery/dns/struct.DnsDiscovery.html +++ b/pr/2674/docs/iroh/net/discovery/dns/struct.DnsDiscovery.html @@ -1,4 +1,4 @@ -DnsDiscovery in iroh::net::discovery::dns - Rust

Struct iroh::net::discovery::dns::DnsDiscovery

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

DNS node discovery

+DnsDiscovery in iroh::net::discovery::dns - Rust

Struct iroh::net::discovery::dns::DnsDiscovery

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

DNS node discovery

When asked to resolve a NodeId, this service performs a lookup in the Domain Name System (DNS).

It uses the Endpoint’s DNS resolver to query for TXT records under the domain _iroh.<z32-node-id>.<origin-domain>:

@@ -74,14 +74,7 @@ but for testing purposes.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/discovery/index.html b/pr/2674/docs/iroh/net/discovery/index.html index f31ee85de3..32fca4af8b 100644 --- a/pr/2674/docs/iroh/net/discovery/index.html +++ b/pr/2674/docs/iroh/net/discovery/index.html @@ -1,4 +1,4 @@ -iroh::net::discovery - Rust

Module iroh::net::discovery

source ·
Expand description

Node address discovery.

+iroh::net::discovery - Rust

Module iroh::net::discovery

source ·
Expand description

Node address discovery.

To connect to an iroh-net node a NodeAddr is needed, which needs to contain either a RelayUrl or one or more direct addresses. However it is often more desirable to be able to connect with only the NodeId, as Endpoint::connect_by_node_id does.

diff --git a/pr/2674/docs/iroh/net/discovery/local_swarm_discovery/index.html b/pr/2674/docs/iroh/net/discovery/local_swarm_discovery/index.html index 6c3e672582..18015c3831 100644 --- a/pr/2674/docs/iroh/net/discovery/local_swarm_discovery/index.html +++ b/pr/2674/docs/iroh/net/discovery/local_swarm_discovery/index.html @@ -1,4 +1,4 @@ -iroh::net::discovery::local_swarm_discovery - Rust

Module iroh::net::discovery::local_swarm_discovery

source ·
Expand description

A discovery service that uses an mdns-like service to discover local nodes.

+iroh::net::discovery::local_swarm_discovery - Rust

Module iroh::net::discovery::local_swarm_discovery

source ·
Expand description

A discovery service that uses an mdns-like service to discover local nodes.

This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed. See the swarm-discovery crate for more details.

Structs§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/discovery/local_swarm_discovery/struct.LocalSwarmDiscovery.html b/pr/2674/docs/iroh/net/discovery/local_swarm_discovery/struct.LocalSwarmDiscovery.html index 6a9303a76a..7121fc98ba 100644 --- a/pr/2674/docs/iroh/net/discovery/local_swarm_discovery/struct.LocalSwarmDiscovery.html +++ b/pr/2674/docs/iroh/net/discovery/local_swarm_discovery/struct.LocalSwarmDiscovery.html @@ -1,4 +1,4 @@ -LocalSwarmDiscovery in iroh::net::discovery::local_swarm_discovery - Rust
pub struct LocalSwarmDiscovery { /* private fields */ }
Expand description

Discovery using swarm-discovery, a variation on mdns

+LocalSwarmDiscovery in iroh::net::discovery::local_swarm_discovery - Rust
pub struct LocalSwarmDiscovery { /* private fields */ }
Expand description

Discovery using swarm-discovery, a variation on mdns

Implementations§

source§

impl LocalSwarmDiscovery

source

pub fn new(node_id: PublicKey) -> Result<LocalSwarmDiscovery, Error>

Create a new LocalSwarmDiscovery Service.

This starts a [Discoverer] that broadcasts your addresses and receives addresses from other nodes in your local network.

§Errors
@@ -51,14 +51,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/discovery/pkarr/constant.DEFAULT_PKARR_TTL.html b/pr/2674/docs/iroh/net/discovery/pkarr/constant.DEFAULT_PKARR_TTL.html index 5ada12fe5a..687c1c6f6e 100644 --- a/pr/2674/docs/iroh/net/discovery/pkarr/constant.DEFAULT_PKARR_TTL.html +++ b/pr/2674/docs/iroh/net/discovery/pkarr/constant.DEFAULT_PKARR_TTL.html @@ -1,4 +1,4 @@ -DEFAULT_PKARR_TTL in iroh::net::discovery::pkarr - Rust

Constant iroh::net::discovery::pkarr::DEFAULT_PKARR_TTL

source ·
pub const DEFAULT_PKARR_TTL: u32 = 30; // 30u32
Expand description

Default TTL for the records in the pkarr signed packet. TTL tells DNS caches +DEFAULT_PKARR_TTL in iroh::net::discovery::pkarr - Rust

Constant iroh::net::discovery::pkarr::DEFAULT_PKARR_TTL

source ·
pub const DEFAULT_PKARR_TTL: u32 = 30; // 30u32
Expand description

Default TTL for the records in the pkarr signed packet. TTL tells DNS caches how long to store a record. It is ignored by the iroh-dns-server as the home server keeps the records for the domain. When using the pkarr relay no DNS is involved and the setting is ignored.

diff --git a/pr/2674/docs/iroh/net/discovery/pkarr/constant.DEFAULT_REPUBLISH_INTERVAL.html b/pr/2674/docs/iroh/net/discovery/pkarr/constant.DEFAULT_REPUBLISH_INTERVAL.html index 93d17fa9ab..aefb4a2202 100644 --- a/pr/2674/docs/iroh/net/discovery/pkarr/constant.DEFAULT_REPUBLISH_INTERVAL.html +++ b/pr/2674/docs/iroh/net/discovery/pkarr/constant.DEFAULT_REPUBLISH_INTERVAL.html @@ -1,2 +1,2 @@ -DEFAULT_REPUBLISH_INTERVAL in iroh::net::discovery::pkarr - Rust

Constant iroh::net::discovery::pkarr::DEFAULT_REPUBLISH_INTERVAL

source ·
pub const DEFAULT_REPUBLISH_INTERVAL: Duration;
Expand description

Interval in which we will republish our node info even if unchanged: 5 minutes.

+DEFAULT_REPUBLISH_INTERVAL in iroh::net::discovery::pkarr - Rust

Constant iroh::net::discovery::pkarr::DEFAULT_REPUBLISH_INTERVAL

source ·
pub const DEFAULT_REPUBLISH_INTERVAL: Duration;
Expand description

Interval in which we will republish our node info even if unchanged: 5 minutes.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_PROD.html b/pr/2674/docs/iroh/net/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_PROD.html index f183448a56..830f4241b7 100644 --- a/pr/2674/docs/iroh/net/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_PROD.html +++ b/pr/2674/docs/iroh/net/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_PROD.html @@ -1,2 +1,2 @@ -N0_DNS_PKARR_RELAY_PROD in iroh::net::discovery::pkarr - Rust

Constant iroh::net::discovery::pkarr::N0_DNS_PKARR_RELAY_PROD

source ·
pub const N0_DNS_PKARR_RELAY_PROD: &'static str;
Expand description

The pkarr relay run by n0, for production.

+N0_DNS_PKARR_RELAY_PROD in iroh::net::discovery::pkarr - Rust

Constant iroh::net::discovery::pkarr::N0_DNS_PKARR_RELAY_PROD

source ·
pub const N0_DNS_PKARR_RELAY_PROD: &'static str;
Expand description

The pkarr relay run by n0, for production.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_STAGING.html b/pr/2674/docs/iroh/net/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_STAGING.html index 7051e8968c..e32d3f21d9 100644 --- a/pr/2674/docs/iroh/net/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_STAGING.html +++ b/pr/2674/docs/iroh/net/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_STAGING.html @@ -1,2 +1,2 @@ -N0_DNS_PKARR_RELAY_STAGING in iroh::net::discovery::pkarr - Rust

Constant iroh::net::discovery::pkarr::N0_DNS_PKARR_RELAY_STAGING

source ·
pub const N0_DNS_PKARR_RELAY_STAGING: &'static str;
Expand description

The pkarr relay run by n0, for testing.

+N0_DNS_PKARR_RELAY_STAGING in iroh::net::discovery::pkarr - Rust

Constant iroh::net::discovery::pkarr::N0_DNS_PKARR_RELAY_STAGING

source ·
pub const N0_DNS_PKARR_RELAY_STAGING: &'static str;
Expand description

The pkarr relay run by n0, for testing.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/discovery/pkarr/dht/index.html b/pr/2674/docs/iroh/net/discovery/pkarr/dht/index.html index 02fd815834..f572946921 100644 --- a/pr/2674/docs/iroh/net/discovery/pkarr/dht/index.html +++ b/pr/2674/docs/iroh/net/discovery/pkarr/dht/index.html @@ -1,4 +1,4 @@ -iroh::net::discovery::pkarr::dht - Rust

Module iroh::net::discovery::pkarr::dht

source ·
Expand description

§Pkarr based node discovery for iroh-net

+iroh::net::discovery::pkarr::dht - Rust

Module iroh::net::discovery::pkarr::dht

source ·
Expand description

§Pkarr based node discovery for iroh-net

Node discovery is being able to find connecting information about an iroh node based on just its node id.

This crate implements a discovery mechanism for iroh-net based on https://pkarr.org/.

TLDR: Each node publishes its address to the mainline DHT as a DNS packet, signed with its private key. diff --git a/pr/2674/docs/iroh/net/discovery/pkarr/dht/struct.Builder.html b/pr/2674/docs/iroh/net/discovery/pkarr/dht/struct.Builder.html index ff639485cc..9dbfc015a8 100644 --- a/pr/2674/docs/iroh/net/discovery/pkarr/dht/struct.Builder.html +++ b/pr/2674/docs/iroh/net/discovery/pkarr/dht/struct.Builder.html @@ -1,4 +1,4 @@ -Builder in iroh::net::discovery::pkarr::dht - Rust

Struct iroh::net::discovery::pkarr::dht::Builder

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

Builder for PkarrNodeDiscovery.

+Builder in iroh::net::discovery::pkarr::dht - Rust

Struct iroh::net::discovery::pkarr::dht::Builder

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

Builder for PkarrNodeDiscovery.

By default, publishing to the DHT is enabled, and relay publishing is disabled.

Implementations§

source§

impl Builder

source

pub fn client(self, client: PkarrClient) -> Builder

Explicitly set the pkarr client to use.

source

pub fn secret_key(self, secret_key: SecretKey) -> Builder

Set the secret key to use for signing the DNS packets.

@@ -53,14 +53,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/discovery/pkarr/dht/struct.DhtDiscovery.html b/pr/2674/docs/iroh/net/discovery/pkarr/dht/struct.DhtDiscovery.html index 258bbf9166..b4b24a18fd 100644 --- a/pr/2674/docs/iroh/net/discovery/pkarr/dht/struct.DhtDiscovery.html +++ b/pr/2674/docs/iroh/net/discovery/pkarr/dht/struct.DhtDiscovery.html @@ -1,4 +1,4 @@ -DhtDiscovery in iroh::net::discovery::pkarr::dht - Rust

Struct iroh::net::discovery::pkarr::dht::DhtDiscovery

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

A discovery mechanism for iroh-net based on https://pkarr.org/.

+DhtDiscovery in iroh::net::discovery::pkarr::dht - Rust

Struct iroh::net::discovery::pkarr::dht::DhtDiscovery

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

A discovery mechanism for iroh-net based on https://pkarr.org/.

TLDR: it stores node addresses in DNS records, signed by the node’s private key, and publishes them to the bittorrent mainline DHT.

Calling publish will start a background task that periodically publishes the node address.

@@ -51,14 +51,7 @@ and publishes them to the bittorrent mainline DHT.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/discovery/pkarr/index.html b/pr/2674/docs/iroh/net/discovery/pkarr/index.html index fe6c9d4a81..7a42c89e66 100644 --- a/pr/2674/docs/iroh/net/discovery/pkarr/index.html +++ b/pr/2674/docs/iroh/net/discovery/pkarr/index.html @@ -1,4 +1,4 @@ -iroh::net::discovery::pkarr - Rust

Module iroh::net::discovery::pkarr

source ·
Expand description

A discovery service which publishes and resolves node information to a pkarr relay.

+iroh::net::discovery::pkarr - Rust

Module iroh::net::discovery::pkarr

source ·
Expand description

A discovery service which publishes and resolves node information to a pkarr relay.

Modules§

  • Pkarr based node discovery for iroh-net

Structs§

Constants§

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/discovery/pkarr/struct.PkarrRelayClient.html b/pr/2674/docs/iroh/net/discovery/pkarr/struct.PkarrRelayClient.html index ab7ab51947..7caf90700d 100644 --- a/pr/2674/docs/iroh/net/discovery/pkarr/struct.PkarrRelayClient.html +++ b/pr/2674/docs/iroh/net/discovery/pkarr/struct.PkarrRelayClient.html @@ -1,4 +1,4 @@ -PkarrRelayClient in iroh::net::discovery::pkarr - Rust

Struct iroh::net::discovery::pkarr::PkarrRelayClient

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

A pkarr client to publish [pkarr::SignedPacket]s to a pkarr relay.

+PkarrRelayClient in iroh::net::discovery::pkarr - Rust

Struct iroh::net::discovery::pkarr::PkarrRelayClient

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

A pkarr client to publish [pkarr::SignedPacket]s to a pkarr relay.

Implementations§

source§

impl PkarrRelayClient

source

pub fn new(pkarr_relay_url: Url) -> PkarrRelayClient

Create a new client.

source

pub async fn resolve(&self, node_id: PublicKey) -> Result<SignedPacket, Error>

Resolve a [SignedPacket]

source

pub async fn publish(&self, signed_packet: &SignedPacket) -> Result<(), Error>

Publish a [SignedPacket]

@@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/discovery/pkarr/struct.PkarrResolver.html b/pr/2674/docs/iroh/net/discovery/pkarr/struct.PkarrResolver.html index b1abfa29f9..10605cb4f6 100644 --- a/pr/2674/docs/iroh/net/discovery/pkarr/struct.PkarrResolver.html +++ b/pr/2674/docs/iroh/net/discovery/pkarr/struct.PkarrResolver.html @@ -1,4 +1,4 @@ -PkarrResolver in iroh::net::discovery::pkarr - Rust

Struct iroh::net::discovery::pkarr::PkarrResolver

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

Resolve node info using a pkarr relay.

+PkarrResolver in iroh::net::discovery::pkarr - Rust

Struct iroh::net::discovery::pkarr::PkarrResolver

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

Resolve node info using a pkarr relay.

Pkarr stores signed DNS records in the mainline dht. These can be queried directly via the pkarr relay HTTP api or alternatively via a dns server that provides the pkarr records using DnsDiscovery. The main difference is that DnsDiscovery makes @@ -55,14 +55,7 @@ uses From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/discovery/struct.ConcurrentDiscovery.html b/pr/2674/docs/iroh/net/discovery/struct.ConcurrentDiscovery.html index 6eca912667..04a19e57d2 100644 --- a/pr/2674/docs/iroh/net/discovery/struct.ConcurrentDiscovery.html +++ b/pr/2674/docs/iroh/net/discovery/struct.ConcurrentDiscovery.html @@ -1,4 +1,4 @@ -ConcurrentDiscovery in iroh::net::discovery - Rust

Struct iroh::net::discovery::ConcurrentDiscovery

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

A discovery service that combines multiple discovery sources.

+ConcurrentDiscovery in iroh::net::discovery - Rust

Struct iroh::net::discovery::ConcurrentDiscovery

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

A discovery service that combines multiple discovery sources.

The discovery services will resolve concurrently.

Implementations§

source§

impl ConcurrentDiscovery

source

pub fn empty() -> ConcurrentDiscovery

Creates an empty ConcurrentDiscovery.

source

pub fn from_services(services: Vec<Box<dyn Discovery>>) -> ConcurrentDiscovery

Creates a new ConcurrentDiscovery.

@@ -50,14 +50,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/discovery/struct.DiscoveryItem.html b/pr/2674/docs/iroh/net/discovery/struct.DiscoveryItem.html index 511c31637a..c1a97a2b12 100644 --- a/pr/2674/docs/iroh/net/discovery/struct.DiscoveryItem.html +++ b/pr/2674/docs/iroh/net/discovery/struct.DiscoveryItem.html @@ -1,4 +1,4 @@ -DiscoveryItem in iroh::net::discovery - Rust

Struct iroh::net::discovery::DiscoveryItem

source ·
pub struct DiscoveryItem {
+DiscoveryItem in iroh::net::discovery - Rust

Struct iroh::net::discovery::DiscoveryItem

source ·
pub struct DiscoveryItem {
     pub provenance: &'static str,
     pub last_updated: Option<u64>,
     pub addr_info: AddrInfo,
@@ -52,14 +52,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/discovery/trait.Discovery.html b/pr/2674/docs/iroh/net/discovery/trait.Discovery.html index 2ec9c5cee1..bea90e2c41 100644 --- a/pr/2674/docs/iroh/net/discovery/trait.Discovery.html +++ b/pr/2674/docs/iroh/net/discovery/trait.Discovery.html @@ -1,4 +1,4 @@ -Discovery in iroh::net::discovery - Rust

Trait iroh::net::discovery::Discovery

source ·
pub trait Discovery: Debug + Send + Sync {
+Discovery in iroh::net::discovery - Rust

Trait iroh::net::discovery::Discovery

source ·
pub trait Discovery: Debug + Send + Sync {
     // Provided methods
     fn publish(&self, _info: &AddrInfo) { ... }
     fn resolve(
diff --git a/pr/2674/docs/iroh/net/dns/fn.default_resolver.html b/pr/2674/docs/iroh/net/dns/fn.default_resolver.html
index 438190e2e6..64da2bcb48 100644
--- a/pr/2674/docs/iroh/net/dns/fn.default_resolver.html
+++ b/pr/2674/docs/iroh/net/dns/fn.default_resolver.html
@@ -1,4 +1,4 @@
-default_resolver in iroh::net::dns - Rust

Function iroh::net::dns::default_resolver

source ·
pub fn default_resolver(
+default_resolver in iroh::net::dns - Rust

Function iroh::net::dns::default_resolver

source ·
pub fn default_resolver(
 ) -> &'static AsyncResolver<GenericConnector<TokioRuntimeProvider>>
Expand description

Get a reference to the default DNS resolver.

The default resolver can be cheaply cloned and is shared throughout the running process. It is configured to use the system’s DNS configuration.

diff --git a/pr/2674/docs/iroh/net/dns/fn.resolver.html b/pr/2674/docs/iroh/net/dns/fn.resolver.html index 46f68bc946..4c2d4082b5 100644 --- a/pr/2674/docs/iroh/net/dns/fn.resolver.html +++ b/pr/2674/docs/iroh/net/dns/fn.resolver.html @@ -1,3 +1,3 @@ -resolver in iroh::net::dns - Rust

Function iroh::net::dns::resolver

source ·
pub fn resolver(
+resolver in iroh::net::dns - Rust

Function iroh::net::dns::resolver

source ·
pub fn resolver(
 ) -> &'static AsyncResolver<GenericConnector<TokioRuntimeProvider>>
Expand description

Get the DNS resolver used within iroh-net.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/dns/index.html b/pr/2674/docs/iroh/net/dns/index.html index d7d21b8b13..e1a8077f9a 100644 --- a/pr/2674/docs/iroh/net/dns/index.html +++ b/pr/2674/docs/iroh/net/dns/index.html @@ -1,4 +1,4 @@ -iroh::net::dns - Rust

Module iroh::net::dns

source ·
Expand description

This module exports a DNS resolver, which is also the default resolver used in the +iroh::net::dns - Rust

Module iroh::net::dns

source ·
Expand description

This module exports a DNS resolver, which is also the default resolver used in the crate::Endpoint if no custom resolver is configured.

It also exports ResolverExt: A extension trait over DnsResolver to perform DNS queries by ipv4, ipv6, name and node_id. See the node_info module documentation for details on how diff --git a/pr/2674/docs/iroh/net/dns/node_info/constant.IROH_TXT_NAME.html b/pr/2674/docs/iroh/net/dns/node_info/constant.IROH_TXT_NAME.html index d0baf943c8..30f00fe9fd 100644 --- a/pr/2674/docs/iroh/net/dns/node_info/constant.IROH_TXT_NAME.html +++ b/pr/2674/docs/iroh/net/dns/node_info/constant.IROH_TXT_NAME.html @@ -1,2 +1,2 @@ -IROH_TXT_NAME in iroh::net::dns::node_info - Rust

Constant iroh::net::dns::node_info::IROH_TXT_NAME

source ·
pub const IROH_TXT_NAME: &'static str;
Expand description

The DNS name for the iroh TXT record.

+IROH_TXT_NAME in iroh::net::dns::node_info - Rust

Constant iroh::net::dns::node_info::IROH_TXT_NAME

source ·
pub const IROH_TXT_NAME: &'static str;
Expand description

The DNS name for the iroh TXT record.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/dns/node_info/enum.IrohAttr.html b/pr/2674/docs/iroh/net/dns/node_info/enum.IrohAttr.html index bd67664e04..5defdbb243 100644 --- a/pr/2674/docs/iroh/net/dns/node_info/enum.IrohAttr.html +++ b/pr/2674/docs/iroh/net/dns/node_info/enum.IrohAttr.html @@ -1,4 +1,4 @@ -IrohAttr in iroh::net::dns::node_info - Rust

Enum iroh::net::dns::node_info::IrohAttr

source ·
pub enum IrohAttr {
+IrohAttr in iroh::net::dns::node_info - Rust

Enum iroh::net::dns::node_info::IrohAttr

source ·
pub enum IrohAttr {
     Relay,
     Addr,
 }
Expand description

The attributes supported by iroh for IROH_TXT_NAME DNS resource records.

@@ -63,14 +63,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/dns/node_info/fn.from_z32.html b/pr/2674/docs/iroh/net/dns/node_info/fn.from_z32.html index d042923c81..7f111c7d6d 100644 --- a/pr/2674/docs/iroh/net/dns/node_info/fn.from_z32.html +++ b/pr/2674/docs/iroh/net/dns/node_info/fn.from_z32.html @@ -1,2 +1,2 @@ -from_z32 in iroh::net::dns::node_info - Rust

Function iroh::net::dns::node_info::from_z32

source ·
pub fn from_z32(s: &str) -> Result<PublicKey, Error>
Expand description

Parses a NodeId from [z-base-32] encoding.

+from_z32 in iroh::net::dns::node_info - Rust

Function iroh::net::dns::node_info::from_z32

source ·
pub fn from_z32(s: &str) -> Result<PublicKey, Error>
Expand description

Parses a NodeId from [z-base-32] encoding.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/dns/node_info/fn.to_z32.html b/pr/2674/docs/iroh/net/dns/node_info/fn.to_z32.html index b227bcc42f..12dd43b80c 100644 --- a/pr/2674/docs/iroh/net/dns/node_info/fn.to_z32.html +++ b/pr/2674/docs/iroh/net/dns/node_info/fn.to_z32.html @@ -1,2 +1,2 @@ -to_z32 in iroh::net::dns::node_info - Rust

Function iroh::net::dns::node_info::to_z32

source ·
pub fn to_z32(node_id: &PublicKey) -> String
Expand description

Encodes a NodeId in [z-base-32] encoding.

+to_z32 in iroh::net::dns::node_info - Rust

Function iroh::net::dns::node_info::to_z32

source ·
pub fn to_z32(node_id: &PublicKey) -> String
Expand description

Encodes a NodeId in [z-base-32] encoding.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/dns/node_info/index.html b/pr/2674/docs/iroh/net/dns/node_info/index.html index 44222e6602..4bbec2de2c 100644 --- a/pr/2674/docs/iroh/net/dns/node_info/index.html +++ b/pr/2674/docs/iroh/net/dns/node_info/index.html @@ -1,4 +1,4 @@ -iroh::net::dns::node_info - Rust

Module iroh::net::dns::node_info

source ·
Expand description

Support for handling DNS resource records for dialing by NodeId.

+iroh::net::dns::node_info - Rust

Module iroh::net::dns::node_info

source ·
Expand description

Support for handling DNS resource records for dialing by NodeId.

Dialing by NodeId is supported by iroh nodes publishing Pkarr records to DNS servers or the Mainline DHT. This module supports creating and parsing these records.

DNS records are published under the following names:

diff --git a/pr/2674/docs/iroh/net/dns/node_info/struct.NodeInfo.html b/pr/2674/docs/iroh/net/dns/node_info/struct.NodeInfo.html index de39bf688d..b874d2fa19 100644 --- a/pr/2674/docs/iroh/net/dns/node_info/struct.NodeInfo.html +++ b/pr/2674/docs/iroh/net/dns/node_info/struct.NodeInfo.html @@ -1,4 +1,4 @@ -NodeInfo in iroh::net::dns::node_info - Rust

Struct iroh::net::dns::node_info::NodeInfo

source ·
pub struct NodeInfo {
+NodeInfo in iroh::net::dns::node_info - Rust

Struct iroh::net::dns::node_info::NodeInfo

source ·
pub struct NodeInfo {
     pub node_id: PublicKey,
     pub relay_url: Option<Url>,
     pub direct_addresses: BTreeSet<SocketAddr>,
@@ -26,7 +26,7 @@
     origin: &str,
     ttl: u32
 ) -> Result<impl Iterator<Item = Record> + 'static, Error>

Converts into a [hickory_proto::rr::Record] DNS record.

-

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, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

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

impl From<&NodeInfo> for TxtAttrs<IrohAttr>

source§

fn from(info: &NodeInfo) -> TxtAttrs<IrohAttr>

Converts to this type from the input type.
source§

impl From<&TxtAttrs<IrohAttr>> for NodeInfo

source§

fn from(attrs: &TxtAttrs<IrohAttr>) -> NodeInfo

Converts to this type from the input type.
source§

impl From<NodeInfo> for AddrInfo

source§

fn from(value: NodeInfo) -> AddrInfo

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<TxtAttrs<IrohAttr>> for NodeInfo

source§

fn from(attrs: TxtAttrs<IrohAttr>) -> NodeInfo

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 +

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, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

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

impl From<&NodeInfo> for TxtAttrs<IrohAttr>

source§

fn from(info: &NodeInfo) -> TxtAttrs<IrohAttr>

Converts to this type from the input type.
source§

impl From<&TxtAttrs<IrohAttr>> for NodeInfo

source§

fn from(attrs: &TxtAttrs<IrohAttr>) -> NodeInfo

Converts to this type from the input type.
source§

impl From<NodeInfo> for AddrInfo

source§

fn from(value: NodeInfo) -> AddrInfo

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<TxtAttrs<IrohAttr>> for NodeInfo

source§

fn from(attrs: TxtAttrs<IrohAttr>) -> NodeInfo

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 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 @@ -76,14 +76,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/dns/node_info/struct.TxtAttrs.html b/pr/2674/docs/iroh/net/dns/node_info/struct.TxtAttrs.html index 10f6eabea8..3c68a54c62 100644 --- a/pr/2674/docs/iroh/net/dns/node_info/struct.TxtAttrs.html +++ b/pr/2674/docs/iroh/net/dns/node_info/struct.TxtAttrs.html @@ -1,4 +1,4 @@ -TxtAttrs in iroh::net::dns::node_info - Rust

Struct iroh::net::dns::node_info::TxtAttrs

source ·
pub struct TxtAttrs<T> { /* private fields */ }
Expand description

Attributes parsed from IROH_TXT_NAME TXT records.

+TxtAttrs in iroh::net::dns::node_info - Rust

Struct iroh::net::dns::node_info::TxtAttrs

source ·
pub struct TxtAttrs<T> { /* private fields */ }
Expand description

Attributes parsed from IROH_TXT_NAME TXT records.

This struct is generic over the key type. When using with String, this will parse all attributes. Can also be used with an enum, if it implements FromStr and Display.

@@ -84,14 +84,7 @@ all attributes. Can also be used with an enum, if it implements From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/dns/trait.ResolverExt.html b/pr/2674/docs/iroh/net/dns/trait.ResolverExt.html index c401832905..5552ad3620 100644 --- a/pr/2674/docs/iroh/net/dns/trait.ResolverExt.html +++ b/pr/2674/docs/iroh/net/dns/trait.ResolverExt.html @@ -1,4 +1,4 @@ -ResolverExt in iroh::net::dns - Rust

Trait iroh::net::dns::ResolverExt

source ·
pub trait ResolverExt {
+ResolverExt in iroh::net::dns - Rust

Trait iroh::net::dns::ResolverExt

source ·
pub trait ResolverExt {
     // Required methods
     fn lookup_ipv4<N>(
         &self,
diff --git a/pr/2674/docs/iroh/net/dns/type.DnsResolver.html b/pr/2674/docs/iroh/net/dns/type.DnsResolver.html
index ff95324adb..e9e62b7060 100644
--- a/pr/2674/docs/iroh/net/dns/type.DnsResolver.html
+++ b/pr/2674/docs/iroh/net/dns/type.DnsResolver.html
@@ -1,2 +1,2 @@
-DnsResolver in iroh::net::dns - Rust

Type Alias iroh::net::dns::DnsResolver

source ·
pub type DnsResolver = AsyncResolver<GenericConnector<TokioRuntimeProvider>>;
Expand description

The DNS resolver type used throughout iroh-net.

+DnsResolver in iroh::net::dns - Rust

Type Alias iroh::net::dns::DnsResolver

source ·
pub type DnsResolver = AsyncResolver<GenericConnector<TokioRuntimeProvider>>;
Expand description

The DNS resolver type used throughout iroh-net.

Aliased Type§

struct DnsResolver { /* private fields */ }
\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/endpoint/enum.ConnectionError.html b/pr/2674/docs/iroh/net/endpoint/enum.ConnectionError.html index 1cf6364414..3149e933a3 100644 --- a/pr/2674/docs/iroh/net/endpoint/enum.ConnectionError.html +++ b/pr/2674/docs/iroh/net/endpoint/enum.ConnectionError.html @@ -1,4 +1,4 @@ -ConnectionError in iroh::net::endpoint - Rust

Enum iroh::net::endpoint::ConnectionError

pub enum ConnectionError {
+ConnectionError in iroh::net::endpoint - Rust

Enum iroh::net::endpoint::ConnectionError

pub enum ConnectionError {
     VersionMismatch,
     TransportError(Error),
     ConnectionClosed(ConnectionClose),
@@ -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.
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 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 @@ -67,14 +67,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/enum.ConnectionType.html b/pr/2674/docs/iroh/net/endpoint/enum.ConnectionType.html index 7aa68ef92a..c7bd92a815 100644 --- a/pr/2674/docs/iroh/net/endpoint/enum.ConnectionType.html +++ b/pr/2674/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 @@ -67,14 +67,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/enum.ControlMsg.html b/pr/2674/docs/iroh/net/endpoint/enum.ControlMsg.html index da12600cc1..3c56a42c89 100644 --- a/pr/2674/docs/iroh/net/endpoint/enum.ControlMsg.html +++ b/pr/2674/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,
@@ -63,14 +63,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/enum.DirectAddrType.html b/pr/2674/docs/iroh/net/endpoint/enum.DirectAddrType.html index 9eb77230f4..d0d6f5e080 100644 --- a/pr/2674/docs/iroh/net/endpoint/enum.DirectAddrType.html +++ b/pr/2674/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 @@ -80,14 +80,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/enum.ReadError.html b/pr/2674/docs/iroh/net/endpoint/enum.ReadError.html index 2d2f814370..905e790f52 100644 --- a/pr/2674/docs/iroh/net/endpoint/enum.ReadError.html +++ b/pr/2674/docs/iroh/net/endpoint/enum.ReadError.html @@ -1,4 +1,4 @@ -ReadError in iroh::net::endpoint - Rust

Enum iroh::net::endpoint::ReadError

pub enum ReadError {
+ReadError in iroh::net::endpoint - Rust

Enum iroh::net::endpoint::ReadError

pub enum ReadError {
     Reset(VarInt),
     ConnectionLost(ConnectionError),
     UnknownStream,
@@ -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.
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 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 @@ -65,14 +65,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/enum.WriteError.html b/pr/2674/docs/iroh/net/endpoint/enum.WriteError.html index 4f8a29c853..8cc94e8b4a 100644 --- a/pr/2674/docs/iroh/net/endpoint/enum.WriteError.html +++ b/pr/2674/docs/iroh/net/endpoint/enum.WriteError.html @@ -1,4 +1,4 @@ -WriteError in iroh::net::endpoint - Rust

Enum iroh::net::endpoint::WriteError

pub enum WriteError {
+WriteError in iroh::net::endpoint - Rust

Enum iroh::net::endpoint::WriteError

pub enum WriteError {
     Stopped(VarInt),
     ConnectionLost(ConnectionError),
     UnknownStream,
@@ -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.
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 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 @@ -61,14 +61,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/fn.default_relay_mode.html b/pr/2674/docs/iroh/net/endpoint/fn.default_relay_mode.html index 5b267f15ce..27497cb6e9 100644 --- a/pr/2674/docs/iroh/net/endpoint/fn.default_relay_mode.html +++ b/pr/2674/docs/iroh/net/endpoint/fn.default_relay_mode.html @@ -1,4 +1,4 @@ -default_relay_mode in iroh::net::endpoint - Rust

Function iroh::net::endpoint::default_relay_mode

source ·
pub fn default_relay_mode() -> RelayMode
Expand description

Returns the default relay mode.

+default_relay_mode in iroh::net::endpoint - Rust

Function iroh::net::endpoint::default_relay_mode

source ·
pub fn default_relay_mode() -> RelayMode
Expand description

Returns the default relay mode.

If the IROH_FORCE_STAGING_RELAYS environment variable is set to 1, it will return RelayMode::Staging. Otherwise, it will return RelayMode::Default.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/endpoint/fn.get_remote_node_id.html b/pr/2674/docs/iroh/net/endpoint/fn.get_remote_node_id.html index 211cc8f96d..9605b97768 100644 --- a/pr/2674/docs/iroh/net/endpoint/fn.get_remote_node_id.html +++ b/pr/2674/docs/iroh/net/endpoint/fn.get_remote_node_id.html @@ -1,2 +1,2 @@ -get_remote_node_id in iroh::net::endpoint - Rust

Function iroh::net::endpoint::get_remote_node_id

source ·
pub fn get_remote_node_id(connection: &Connection) -> Result<PublicKey, Error>
Expand description

Extract the PublicKey from the peer’s TLS certificate.

+get_remote_node_id in iroh::net::endpoint - Rust

Function iroh::net::endpoint::get_remote_node_id

source ·
pub fn get_remote_node_id(connection: &Connection) -> Result<PublicKey, Error>
Expand description

Extract the PublicKey from the peer’s TLS certificate.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/endpoint/fn.make_server_config.html b/pr/2674/docs/iroh/net/endpoint/fn.make_server_config.html index 47f9c48ac6..a8cf3a0da4 100644 --- a/pr/2674/docs/iroh/net/endpoint/fn.make_server_config.html +++ b/pr/2674/docs/iroh/net/endpoint/fn.make_server_config.html @@ -1,4 +1,4 @@ -make_server_config in iroh::net::endpoint - Rust

Function iroh::net::endpoint::make_server_config

source ·
pub fn make_server_config(
+make_server_config in iroh::net::endpoint - Rust

Function iroh::net::endpoint::make_server_config

source ·
pub fn make_server_config(
     secret_key: &SecretKey,
     alpn_protocols: Vec<Vec<u8>>,
     transport_config: Arc<TransportConfig>,
diff --git a/pr/2674/docs/iroh/net/endpoint/index.html b/pr/2674/docs/iroh/net/endpoint/index.html
index a63da7496f..bbff5227eb 100644
--- a/pr/2674/docs/iroh/net/endpoint/index.html
+++ b/pr/2674/docs/iroh/net/endpoint/index.html
@@ -1,4 +1,4 @@
-iroh::net::endpoint - Rust

Module iroh::net::endpoint

source ·
Expand description

The Endpoint allows establishing connections to other iroh-net nodes.

+iroh::net::endpoint - Rust

Module iroh::net::endpoint

source ·
Expand description

The Endpoint allows establishing connections to other iroh-net nodes.

The Endpoint is the main API interface to manage a local iroh-net node. It allows connecting to and accepting connections from other nodes. See the module docs for more details on how iroh-net connections work.

diff --git a/pr/2674/docs/iroh/net/endpoint/struct.Accept.html b/pr/2674/docs/iroh/net/endpoint/struct.Accept.html index bca6760f21..c255b95e65 100644 --- a/pr/2674/docs/iroh/net/endpoint/struct.Accept.html +++ b/pr/2674/docs/iroh/net/endpoint/struct.Accept.html @@ -1,4 +1,4 @@ -Accept in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::Accept

source ·
pub struct Accept<'a> { /* private fields */ }
Expand description

Future produced by Endpoint::accept.

+Accept in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::Accept

source ·
pub struct Accept<'a> { /* private fields */ }
Expand description

Future produced by Endpoint::accept.

Trait Implementations§

source§

impl<'a> Debug for Accept<'a>

source§

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

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

impl<'a> Future for Accept<'a>

§

type Output = Option<Connecting>

The type of value produced on completion.
source§

fn poll( self: Pin<&mut Accept<'a>>, cx: &mut Context<'_> @@ -121,14 +121,7 @@ fluent call chains. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<F> IntoFuture for F
where +

source§

impl<F> IntoFuture for F
where F: Future,

§

type Output = <F as Future>::Output

The output that the future will produce on completion.
§

type IntoFuture = F

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

fn into_future(self) -> <F as IntoFuture>::IntoFuture

Creates a future from a value. Read more
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/struct.AddrInfo.html b/pr/2674/docs/iroh/net/endpoint/struct.AddrInfo.html index 7b798d2e03..f60300e913 100644 --- a/pr/2674/docs/iroh/net/endpoint/struct.AddrInfo.html +++ b/pr/2674/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

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

Network paths to contact an iroh-net node.

@@ -76,14 +76,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/struct.Builder.html b/pr/2674/docs/iroh/net/endpoint/struct.Builder.html index 9a91b6285b..ea1c0835d0 100644 --- a/pr/2674/docs/iroh/net/endpoint/struct.Builder.html +++ b/pr/2674/docs/iroh/net/endpoint/struct.Builder.html @@ -1,4 +1,4 @@ -Builder in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::Builder

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

Builder for Endpoint.

+Builder in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::Builder

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

Builder for Endpoint.

By default the endpoint will generate a new random SecretKey, which will result in a new NodeId.

To create the Endpoint call Builder::bind.

@@ -55,7 +55,7 @@ here to use a differently configured DNS resolver for this endpoint.

source

pub fn keylog(self, keylog: bool) -> Builder

Enables saving the TLS pre-master key for connections.

This key should normally remain secret but can be useful to debug networking issues by decrypting captured traffic.

-

If keylog is true then setting the KEYLOGFILE environment variable to a +

If keylog is true then setting the SSLKEYLOGFILE environment variable to a filename will result in this file being used to log the TLS pre-master keys.

source

pub fn insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Builder

Skip verification of SSL certificates from relay servers

May only be used in tests.

@@ -104,14 +104,7 @@ outgoing connections is less than this. Outgoing connections are unaffected.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/struct.Connecting.html b/pr/2674/docs/iroh/net/endpoint/struct.Connecting.html index eeb8fba8c2..d1f8be4955 100644 --- a/pr/2674/docs/iroh/net/endpoint/struct.Connecting.html +++ b/pr/2674/docs/iroh/net/endpoint/struct.Connecting.html @@ -1,4 +1,4 @@ -Connecting in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::Connecting

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

In-progress connection attempt future

+Connecting in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::Connecting

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

In-progress connection attempt future

Implementations§

source§

impl Connecting

source

pub fn into_0rtt(self) -> Result<(Connection, ZeroRttAccepted), Connecting>

Convert into a 0-RTT or 0.5-RTT connection at the cost of weakened security.

source

pub async fn handshake_data(&mut self) -> Result<Box<dyn Any>, ConnectionError>

Parameters negotiated during the handshake

source

pub fn local_ip(&self) -> Option<IpAddr>

The local IP address which was used when the peer established the connection.

@@ -126,14 +126,7 @@ fluent call chains. Read more
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<F> IntoFuture for F
where +

source§

impl<F> IntoFuture for F
where F: Future,

§

type Output = <F as Future>::Output

The output that the future will produce on completion.
§

type IntoFuture = F

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

fn into_future(self) -> <F as IntoFuture>::IntoFuture

Creates a future from a value. Read more
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/struct.Connection.html b/pr/2674/docs/iroh/net/endpoint/struct.Connection.html index c0673c7b3f..1172551a3b 100644 --- a/pr/2674/docs/iroh/net/endpoint/struct.Connection.html +++ b/pr/2674/docs/iroh/net/endpoint/struct.Connection.html @@ -1,4 +1,4 @@ -Connection in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::Connection

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

A QUIC connection.

+Connection in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::Connection

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

A QUIC connection.

If all references to a connection (including every clone of the Connection handle, streams of incoming streams, and the various stream types) have been dropped, then the connection will be automatically closed with an error_code of 0 and an empty reason. You can also close the @@ -137,14 +137,7 @@ strong and pseudorandom, and are suitable for use as keying material.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/struct.ConnectionTypeStream.html b/pr/2674/docs/iroh/net/endpoint/struct.ConnectionTypeStream.html index cc21b4f627..fa7956ec57 100644 --- a/pr/2674/docs/iroh/net/endpoint/struct.ConnectionTypeStream.html +++ b/pr/2674/docs/iroh/net/endpoint/struct.ConnectionTypeStream.html @@ -1,4 +1,4 @@ -ConnectionTypeStream in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::ConnectionTypeStream

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

Stream returning ConnectionTypes

+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<'_> @@ -60,14 +60,7 @@ available. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<S> IntoStream for S
where +

§

impl<S> IntoStream for S
where S: Stream,

§

type Item = <S as Stream>::Item

The type of the elements being iterated over.
§

type IntoStream = S

Which kind of stream are we turning this into?
§

fn into_stream(self) -> S

Creates a stream from a value.
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/struct.DirectAddr.html b/pr/2674/docs/iroh/net/endpoint/struct.DirectAddr.html index 73b43d89ed..3d05f14a7b 100644 --- a/pr/2674/docs/iroh/net/endpoint/struct.DirectAddr.html +++ b/pr/2674/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 @@ -67,14 +67,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/struct.DirectAddrInfo.html b/pr/2674/docs/iroh/net/endpoint/struct.DirectAddrInfo.html index 51aa24ed76..d3f1d7bcdc 100644 --- a/pr/2674/docs/iroh/net/endpoint/struct.DirectAddrInfo.html +++ b/pr/2674/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)>,
@@ -87,14 +87,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/struct.DirectAddrsStream.html b/pr/2674/docs/iroh/net/endpoint/struct.DirectAddrsStream.html index 7a50c4e22e..9f7c4a8833 100644 --- a/pr/2674/docs/iroh/net/endpoint/struct.DirectAddrsStream.html +++ b/pr/2674/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 @@ -60,14 +60,7 @@ available. Read more
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<S> IntoStream for S
where +

§

impl<S> IntoStream for S
where S: Stream,

§

type Item = <S as Stream>::Item

The type of the elements being iterated over.
§

type IntoStream = S

Which kind of stream are we turning this into?
§

fn into_stream(self) -> S

Creates a stream from a value.
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/struct.Endpoint.html b/pr/2674/docs/iroh/net/endpoint/struct.Endpoint.html index a27950de9c..3e2a75042d 100644 --- a/pr/2674/docs/iroh/net/endpoint/struct.Endpoint.html +++ b/pr/2674/docs/iroh/net/endpoint/struct.Endpoint.html @@ -1,4 +1,4 @@ -Endpoint in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::Endpoint

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

Controls an iroh-net node, establishing connections with other nodes.

+Endpoint in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::Endpoint

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

Controls an iroh-net node, establishing connections with other nodes.

This is the main API interface to create connections to, and accept connections from other iroh-net nodes. The connections are peer-to-peer and encrypted, a Relay server is used to make the connections reliable. See the [crate docs] for a more detailed @@ -223,14 +223,7 @@ TODO: Document error cases.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/struct.NodeAddr.html b/pr/2674/docs/iroh/net/endpoint/struct.NodeAddr.html index 75e20a9a72..4209f193d1 100644 --- a/pr/2674/docs/iroh/net/endpoint/struct.NodeAddr.html +++ b/pr/2674/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

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

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

@@ -106,14 +106,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/struct.RecvStream.html b/pr/2674/docs/iroh/net/endpoint/struct.RecvStream.html index 9692f38763..1bd57bce39 100644 --- a/pr/2674/docs/iroh/net/endpoint/struct.RecvStream.html +++ b/pr/2674/docs/iroh/net/endpoint/struct.RecvStream.html @@ -1,4 +1,4 @@ -RecvStream in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::RecvStream

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

A stream that can only be used to receive data

+RecvStream in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::RecvStream

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

A stream that can only be used to receive data

stop(0) is implicitly called on drop unless:

  • A variant of ReadError has been yielded by a read call
  • @@ -178,14 +178,7 @@ underlying reader. Read more
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/struct.RemoteInfo.html b/pr/2674/docs/iroh/net/endpoint/struct.RemoteInfo.html index 3826974b6b..f3d3216e24 100644 --- a/pr/2674/docs/iroh/net/endpoint/struct.RemoteInfo.html +++ b/pr/2674/docs/iroh/net/endpoint/struct.RemoteInfo.html @@ -1,4 +1,4 @@ -RemoteInfo in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::RemoteInfo

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

Struct iroh::net::endpoint::RemoteInfo

source ·
pub struct RemoteInfo {
     pub node_id: PublicKey,
     pub relay_url: Option<RelayUrlInfo>,
     pub addrs: Vec<DirectAddrInfo>,
@@ -23,8 +23,7 @@ from the remote node. Note that sending to the remote node does not imply
 the remote node received anything.

Implementations§

source§

impl RemoteInfo

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>

👎Deprecated since 0.23.0: access relay_url.last_alive directly instead

Returns the elapsed time since the relay path to the node last received data.

-
source

pub fn has_send_address(&self) -> bool

Whether there is a possible known network path to the remote node.

+
source

pub fn has_send_address(&self) -> bool

Whether there is a possible known network path to the remote node.

Note that this does not provide any guarantees of whether any network path is usable.

Trait Implementations§

source§

impl Clone for RemoteInfo

source§

fn clone(&self) -> RemoteInfo

Returns a 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 RemoteInfo

source§

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

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

impl<'de> Deserialize<'de> for RemoteInfo

source§

fn deserialize<__D>( @@ -84,14 +83,7 @@ sufficient, and should not be overridden without very good reason.

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/struct.SendStream.html b/pr/2674/docs/iroh/net/endpoint/struct.SendStream.html index 8fc1b6bc7c..559bc40ed3 100644 --- a/pr/2674/docs/iroh/net/endpoint/struct.SendStream.html +++ b/pr/2674/docs/iroh/net/endpoint/struct.SendStream.html @@ -1,4 +1,4 @@ -SendStream in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::SendStream

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

A stream that can only be used to send data

+SendStream in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::SendStream

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

A stream that can only be used to send data

If dropped, streams that haven’t been explicitly reset() will continue to (re)transmit previously written data until it has been fully acknowledged or the connection is closed.

Implementations§

§

impl SendStream

pub async fn write(&mut self, buf: &[u8]) -> Result<usize, WriteError>

Write bytes to the stream

@@ -154,14 +154,7 @@ cleanly. Read more
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/struct.TransportConfig.html b/pr/2674/docs/iroh/net/endpoint/struct.TransportConfig.html index d11f1e1307..e3ddd4c2f5 100644 --- a/pr/2674/docs/iroh/net/endpoint/struct.TransportConfig.html +++ b/pr/2674/docs/iroh/net/endpoint/struct.TransportConfig.html @@ -1,4 +1,4 @@ -TransportConfig in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::TransportConfig

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

Parameters governing the core QUIC state machine

+TransportConfig in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::TransportConfig

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

Parameters governing the core QUIC state machine

Default values should be suitable for most internet applications. Applications protocols which forbid remotely-initiated streams should set max_concurrent_bidi_streams and max_concurrent_uni_streams to zero.

@@ -189,14 +189,7 @@ startup, temporarily degrading performance.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/endpoint/struct.VarInt.html b/pr/2674/docs/iroh/net/endpoint/struct.VarInt.html index ef56cd2bae..ad722eb3bf 100644 --- a/pr/2674/docs/iroh/net/endpoint/struct.VarInt.html +++ b/pr/2674/docs/iroh/net/endpoint/struct.VarInt.html @@ -1,4 +1,4 @@ -VarInt in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::VarInt

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

An integer less than 2^62

+VarInt in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::VarInt

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

An integer less than 2^62

Values of this type are suitable for encoding as QUIC variable-length integer.

Implementations§

§

impl VarInt

pub const MAX: VarInt = _

The largest representable value

pub const MAX_SIZE: usize = 8usize

The largest encoded value length

@@ -71,14 +71,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/index.html b/pr/2674/docs/iroh/net/index.html index bd660d6dc9..37aa839d0e 100644 --- a/pr/2674/docs/iroh/net/index.html +++ b/pr/2674/docs/iroh/net/index.html @@ -1,4 +1,4 @@ -iroh::net - Rust

Crate iroh::net

source ·
Expand description

Peer-to-peer connectivity based on QUIC.

+iroh::net - Rust

Crate iroh::net

source ·
Expand description

Peer-to-peer connectivity based on QUIC.

iroh-net is a library to establish direct connectivity between peers. It exposes an interface to QUIC connections and streams to the user, while implementing direct connectivity using hole punching complemented by relay servers under the hood.

diff --git a/pr/2674/docs/iroh/net/key/constant.PUBLIC_KEY_LENGTH.html b/pr/2674/docs/iroh/net/key/constant.PUBLIC_KEY_LENGTH.html index ccd288041d..f113471a6d 100644 --- a/pr/2674/docs/iroh/net/key/constant.PUBLIC_KEY_LENGTH.html +++ b/pr/2674/docs/iroh/net/key/constant.PUBLIC_KEY_LENGTH.html @@ -1,2 +1,2 @@ -PUBLIC_KEY_LENGTH in iroh::net::key - Rust

Constant iroh::net::key::PUBLIC_KEY_LENGTH

pub const PUBLIC_KEY_LENGTH: usize = 32; // 32usize
Expand description

The length of an ed25519 PublicKey, in bytes.

+PUBLIC_KEY_LENGTH in iroh::net::key - Rust

Constant iroh::net::key::PUBLIC_KEY_LENGTH

pub const PUBLIC_KEY_LENGTH: usize = 32; // 32usize
Expand description

The length of an ed25519 PublicKey, in bytes.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/key/enum.KeyParsingError.html b/pr/2674/docs/iroh/net/key/enum.KeyParsingError.html index d0713a3803..a0a1f82aab 100644 --- a/pr/2674/docs/iroh/net/key/enum.KeyParsingError.html +++ b/pr/2674/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 {
+KeyParsingError in iroh::net::key - Rust

Enum iroh::net::key::KeyParsingError

source ·
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.

§

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§

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 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 @@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/key/index.html b/pr/2674/docs/iroh/net/key/index.html index efaca61be5..7b524b9a69 100644 --- a/pr/2674/docs/iroh/net/key/index.html +++ b/pr/2674/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

source ·
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/2674/docs/iroh/net/key/struct.PublicKey.html b/pr/2674/docs/iroh/net/key/struct.PublicKey.html index fd53eb840e..e45f4e9405 100644 --- a/pr/2674/docs/iroh/net/key/struct.PublicKey.html +++ b/pr/2674/docs/iroh/net/key/struct.PublicKey.html @@ -1,4 +1,4 @@ -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

source ·
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, @@ -19,7 +19,7 @@ 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

source§

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

Deserialize this value from the given Serde deserializer. Read 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
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.

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 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 @@ -94,14 +94,7 @@ ordering. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/key/struct.SecretKey.html b/pr/2674/docs/iroh/net/key/struct.SecretKey.html index 8f408a8bb2..ddbe820d4c 100644 --- a/pr/2674/docs/iroh/net/key/struct.SecretKey.html +++ b/pr/2674/docs/iroh/net/key/struct.SecretKey.html @@ -1,4 +1,4 @@ -SecretKey in iroh::net::key - Rust

Struct iroh::net::key::SecretKey

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

A secret key.

+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.

@@ -64,14 +64,7 @@ The public part can always be recovered.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/key/struct.SharedSecret.html b/pr/2674/docs/iroh/net/key/struct.SharedSecret.html index c4cdbe73bc..ed2813aeea 100644 --- a/pr/2674/docs/iroh/net/key/struct.SharedSecret.html +++ b/pr/2674/docs/iroh/net/key/struct.SharedSecret.html @@ -1,4 +1,4 @@ -SharedSecret in iroh::net::key - Rust

Struct iroh::net::key::SharedSecret

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

Shared Secret.

+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 @@ -43,14 +43,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/key/struct.Signature.html b/pr/2674/docs/iroh/net/key/struct.Signature.html index 1a2f3c2129..221003387b 100644 --- a/pr/2674/docs/iroh/net/key/struct.Signature.html +++ b/pr/2674/docs/iroh/net/key/struct.Signature.html @@ -1,4 +1,4 @@ -Signature in iroh::net::key - Rust

Struct iroh::net::key::Signature

#[repr(C)]
pub struct Signature { /* private fields */ }
Expand description

Ed25519 signature.

+Signature in iroh::net::key - Rust

Struct iroh::net::key::Signature

#[repr(C)]
pub struct Signature { /* private fields */ }
Expand description

Ed25519 signature.

This type represents a container for the byte serialization of an Ed25519 signature, and does not necessarily represent well-formed field or curve elements.

@@ -77,14 +77,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/key/type.NodeId.html b/pr/2674/docs/iroh/net/key/type.NodeId.html index f45cfd3e7e..4d1fa95f1b 100644 --- a/pr/2674/docs/iroh/net/key/type.NodeId.html +++ b/pr/2674/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

source ·
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/2674/docs/iroh/net/metrics/index.html b/pr/2674/docs/iroh/net/metrics/index.html index de749034dd..365897f77b 100644 --- a/pr/2674/docs/iroh/net/metrics/index.html +++ b/pr/2674/docs/iroh/net/metrics/index.html @@ -1,2 +1,2 @@ -iroh::net::metrics - Rust

Module iroh::net::metrics

source ·
Expand description

Co-locating all of the iroh-net metrics structs

+iroh::net::metrics - Rust

Module iroh::net::metrics

source ·
Expand description

Co-locating all of the iroh-net metrics structs

Structs§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/metrics/struct.MagicsockMetrics.html b/pr/2674/docs/iroh/net/metrics/struct.MagicsockMetrics.html index 08db58d316..b957710499 100644 --- a/pr/2674/docs/iroh/net/metrics/struct.MagicsockMetrics.html +++ b/pr/2674/docs/iroh/net/metrics/struct.MagicsockMetrics.html @@ -1,4 +1,4 @@ -MagicsockMetrics in iroh::net::metrics - Rust

Struct iroh::net::metrics::MagicsockMetrics

source ·
pub struct MagicsockMetrics {
Show 40 fields +MagicsockMetrics in iroh::net::metrics - Rust

Struct iroh::net::metrics::MagicsockMetrics

source ·
pub struct MagicsockMetrics {
Show 41 fields pub re_stun_calls: Counter, pub update_direct_addrs: Counter, pub send_ipv4: Counter, @@ -11,6 +11,7 @@ pub recv_data_ipv4: Counter, pub recv_data_ipv6: Counter, pub recv_datagrams: Counter, + pub recv_gro_datagrams: Counter, pub send_disco_udp: Counter, pub send_disco_relay: Counter, pub sent_disco_udp: Counter, @@ -41,11 +42,12 @@ pub actor_tick_other: Counter,
}
Expand description

Enum of metrics for the module

Fields§

§re_stun_calls: Counter§update_direct_addrs: Counter§send_ipv4: Counter§send_ipv6: Counter§send_relay: Counter§send_relay_error: Counter§send_data: Counter§send_data_network_down: Counter§recv_data_relay: Counter§recv_data_ipv4: Counter§recv_data_ipv6: Counter§recv_datagrams: Counter

Number of QUIC datagrams received.

+
§recv_gro_datagrams: Counter

Number of datagrams received using GRO

§send_disco_udp: Counter§send_disco_relay: Counter§sent_disco_udp: Counter§sent_disco_relay: Counter§sent_disco_ping: Counter§sent_disco_pong: Counter§sent_disco_call_me_maybe: Counter§recv_disco_bad_key: Counter§recv_disco_bad_parse: Counter§recv_disco_udp: Counter§recv_disco_relay: Counter§recv_disco_ping: Counter§recv_disco_pong: Counter§recv_disco_call_me_maybe: Counter§recv_disco_call_me_maybe_bad_disco: Counter§relay_home_change: Counter§num_direct_conns_added: Counter

The number of direct connections we have made to peers.

§num_direct_conns_removed: Counter

The number of direct connections we have lost to peers.

§num_relay_conns_added: Counter

The number of connections to peers we have added over relay.

§num_relay_conns_removed: Counter

The number of connections to peers we have removed over relay.

-
§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: 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<(), Error>

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

impl Default for Metrics

source§

fn default() -> Metrics

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 + 'static))>

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 +
§actor_tick_main: Counter§actor_tick_msg: Counter§actor_tick_re_stun: Counter§actor_tick_portmap_changed: Counter§actor_tick_direct_addr_heartbeat: Counter§actor_tick_direct_addr_update_receiver: Counter§actor_link_change: Counter§actor_tick_other: 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<(), Error>

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

impl Default for Metrics

source§

fn default() -> Metrics

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 + 'static))>

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.
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 @@ -91,14 +93,7 @@ Only records if this metric is registered in the global registry.

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/metrics/struct.NetcheckMetrics.html b/pr/2674/docs/iroh/net/metrics/struct.NetcheckMetrics.html index 5f2e70d4bf..3b1d4ad626 100644 --- a/pr/2674/docs/iroh/net/metrics/struct.NetcheckMetrics.html +++ b/pr/2674/docs/iroh/net/metrics/struct.NetcheckMetrics.html @@ -1,4 +1,4 @@ -NetcheckMetrics in iroh::net::metrics - Rust

Struct iroh::net::metrics::NetcheckMetrics

source ·
pub struct NetcheckMetrics {
+NetcheckMetrics in iroh::net::metrics - Rust

Struct iroh::net::metrics::NetcheckMetrics

source ·
pub struct NetcheckMetrics {
     pub stun_packets_dropped: Counter,
     pub stun_packets_sent_ipv4: Counter,
     pub stun_packets_sent_ipv6: Counter,
@@ -53,14 +53,7 @@ Only records if this metric is registered in the global registry.

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/metrics/struct.PortmapMetrics.html b/pr/2674/docs/iroh/net/metrics/struct.PortmapMetrics.html index 6ed27b9b07..c5b01d495c 100644 --- a/pr/2674/docs/iroh/net/metrics/struct.PortmapMetrics.html +++ b/pr/2674/docs/iroh/net/metrics/struct.PortmapMetrics.html @@ -1,4 +1,4 @@ -PortmapMetrics in iroh::net::metrics - Rust

Struct iroh::net::metrics::PortmapMetrics

source ·
pub struct PortmapMetrics {
+PortmapMetrics in iroh::net::metrics - Rust

Struct iroh::net::metrics::PortmapMetrics

source ·
pub struct PortmapMetrics {
     pub probes_started: Counter,
     pub local_port_updates: Counter,
     pub mapping_attempts: Counter,
@@ -57,14 +57,7 @@ Only records if this metric is registered in the global registry.

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/metrics/struct.RelayMetrics.html b/pr/2674/docs/iroh/net/metrics/struct.RelayMetrics.html index dda69f6bbf..83db49b0b9 100644 --- a/pr/2674/docs/iroh/net/metrics/struct.RelayMetrics.html +++ b/pr/2674/docs/iroh/net/metrics/struct.RelayMetrics.html @@ -1,4 +1,4 @@ -RelayMetrics in iroh::net::metrics - Rust

Struct iroh::net::metrics::RelayMetrics

source ·
pub struct RelayMetrics {
Show 19 fields +RelayMetrics in iroh::net::metrics - Rust

Struct iroh::net::metrics::RelayMetrics

source ·
pub struct RelayMetrics {
Show 19 fields pub bytes_sent: Counter, pub bytes_recv: Counter, pub send_packets_sent: Counter, @@ -84,14 +84,7 @@ Only records if this metric is registered in the global registry.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/net/enum.IpFamily.html b/pr/2674/docs/iroh/net/net/enum.IpFamily.html index 5dcecbf3ab..d975584f9d 100644 --- a/pr/2674/docs/iroh/net/net/enum.IpFamily.html +++ b/pr/2674/docs/iroh/net/net/enum.IpFamily.html @@ -1,4 +1,4 @@ -IpFamily in iroh::net::net - Rust

Enum iroh::net::net::IpFamily

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

Enum iroh::net::net::IpFamily

source ·
pub enum IpFamily {
     V4,
     V6,
 }
Expand description

Ip family selection between Ipv4 and Ipv6.

@@ -56,14 +56,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/net/index.html b/pr/2674/docs/iroh/net/net/index.html index b88f63272a..213b7a0a44 100644 --- a/pr/2674/docs/iroh/net/net/index.html +++ b/pr/2674/docs/iroh/net/net/index.html @@ -1,3 +1,3 @@ -iroh::net::net - Rust

Module iroh::net::net

source ·
Expand description

Networking related utilities

+iroh::net::net - Rust

Module iroh::net::net

source ·
Expand description

Networking related utilities

Modules§

  • IP address related utilities.
  • Monitoring of networking interfaces and route changes.

Structs§

  • Wrapper around a tokio UDP socket that handles the fact that on drop libc::close can block for UDP sockets.

Enums§

  • Ip family selection between Ipv4 and Ipv6.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/net/ip/fn.is_unicast_link_local.html b/pr/2674/docs/iroh/net/net/ip/fn.is_unicast_link_local.html index 2b940a7350..b2b97f53df 100644 --- a/pr/2674/docs/iroh/net/net/ip/fn.is_unicast_link_local.html +++ b/pr/2674/docs/iroh/net/net/ip/fn.is_unicast_link_local.html @@ -1,2 +1,2 @@ -is_unicast_link_local in iroh::net::net::ip - Rust

Function iroh::net::net::ip::is_unicast_link_local

source ·
pub const fn is_unicast_link_local(addr: Ipv6Addr) -> bool
Expand description

Returns true if the address is a unicast address with link-local scope, as defined in RFC 4291.

+is_unicast_link_local in iroh::net::net::ip - Rust

Function iroh::net::net::ip::is_unicast_link_local

source ·
pub const fn is_unicast_link_local(addr: Ipv6Addr) -> bool
Expand description

Returns true if the address is a unicast address with link-local scope, as defined in RFC 4291.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/net/ip/index.html b/pr/2674/docs/iroh/net/net/ip/index.html index 57cf182a3f..204bbd172e 100644 --- a/pr/2674/docs/iroh/net/net/ip/index.html +++ b/pr/2674/docs/iroh/net/net/ip/index.html @@ -1,2 +1,2 @@ -iroh::net::net::ip - Rust

Module iroh::net::net::ip

source ·
Expand description

IP address related utilities.

+iroh::net::net::ip - Rust

Module iroh::net::net::ip

source ·
Expand description

IP address related utilities.

Structs§

Functions§

  • Returns true if the address is a unicast address with link-local scope, as defined in RFC 4291.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/net/ip/struct.LocalAddresses.html b/pr/2674/docs/iroh/net/net/ip/struct.LocalAddresses.html index bd90e15a08..6a1d86c241 100644 --- a/pr/2674/docs/iroh/net/net/ip/struct.LocalAddresses.html +++ b/pr/2674/docs/iroh/net/net/ip/struct.LocalAddresses.html @@ -1,4 +1,4 @@ -LocalAddresses in iroh::net::net::ip - Rust

Struct iroh::net::net::ip::LocalAddresses

source ·
pub struct LocalAddresses {
+LocalAddresses in iroh::net::net::ip - Rust

Struct iroh::net::net::ip::LocalAddresses

source ·
pub struct LocalAddresses {
     pub loopback: Vec<IpAddr>,
     pub regular: Vec<IpAddr>,
 }
Expand description

List of machine’s IP addresses.

@@ -57,14 +57,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/net/netmon/index.html b/pr/2674/docs/iroh/net/net/netmon/index.html index 433fcadd71..7c1452fba6 100644 --- a/pr/2674/docs/iroh/net/net/netmon/index.html +++ b/pr/2674/docs/iroh/net/net/netmon/index.html @@ -1,2 +1,2 @@ -iroh::net::net::netmon - Rust

Module iroh::net::net::netmon

source ·
Expand description

Monitoring of networking interfaces and route changes.

+iroh::net::net::netmon - Rust

Module iroh::net::net::netmon

source ·
Expand description

Monitoring of networking interfaces and route changes.

Structs§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/net/netmon/struct.CallbackToken.html b/pr/2674/docs/iroh/net/net/netmon/struct.CallbackToken.html index 3aacddf793..6d88107a68 100644 --- a/pr/2674/docs/iroh/net/net/netmon/struct.CallbackToken.html +++ b/pr/2674/docs/iroh/net/net/netmon/struct.CallbackToken.html @@ -1,4 +1,4 @@ -CallbackToken in iroh::net::net::netmon - Rust

Struct iroh::net::net::netmon::CallbackToken

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

Token to remove a callback

+CallbackToken in iroh::net::net::netmon - Rust

Struct iroh::net::net::netmon::CallbackToken

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

Token to remove a callback

Trait Implementations§

source§

impl Clone for CallbackToken

source§

fn clone(&self) -> CallbackToken

Returns a 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 CallbackToken

source§

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

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

impl Hash for CallbackToken

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, @@ -52,14 +52,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/net/netmon/struct.Monitor.html b/pr/2674/docs/iroh/net/net/netmon/struct.Monitor.html index 53d6072112..f79e730eaf 100644 --- a/pr/2674/docs/iroh/net/net/netmon/struct.Monitor.html +++ b/pr/2674/docs/iroh/net/net/netmon/struct.Monitor.html @@ -1,4 +1,4 @@ -Monitor in iroh::net::net::netmon - Rust

Struct iroh::net::net::netmon::Monitor

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

Monitors networking interface and route changes.

+Monitor in iroh::net::net::netmon - Rust

Struct iroh::net::net::netmon::Monitor

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

Monitors networking interface and route changes.

Implementations§

source§

impl Monitor

source

pub async fn new() -> Result<Monitor, Error>

Create a new monitor.

source

pub async fn subscribe<F>(&self, callback: F) -> Result<CallbackToken, Error>
where F: Fn(bool) -> Pin<Box<dyn Future<Output = ()> + Send>> + 'static + Sync + Send,

Subscribe to network changes.

@@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/net/struct.UdpSocket.html b/pr/2674/docs/iroh/net/net/struct.UdpSocket.html index d0d1375a20..a70cb57bf5 100644 --- a/pr/2674/docs/iroh/net/net/struct.UdpSocket.html +++ b/pr/2674/docs/iroh/net/net/struct.UdpSocket.html @@ -1,4 +1,4 @@ -UdpSocket in iroh::net::net - Rust

Struct iroh::net::net::UdpSocket

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

Wrapper around a tokio UDP socket that handles the fact that +UdpSocket in iroh::net::net - Rust

Struct iroh::net::net::UdpSocket

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

Wrapper around a tokio UDP socket that handles the fact that on drop libc::close can block for UDP sockets.

Implementations§

source§

impl UdpSocket

source

pub fn bind_v4(port: u16) -> Result<UdpSocket, Error>

Bind only Ipv4 on any interface.

source

pub fn bind_v6(port: u16) -> Result<UdpSocket, Error>

Bind only Ipv6 on any interface.

@@ -1074,14 +1074,7 @@ index of the interface to join/leave (or 0 to indicate any interface).

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/netcheck/index.html b/pr/2674/docs/iroh/net/netcheck/index.html index f16e5cf96b..45fecb7c8b 100644 --- a/pr/2674/docs/iroh/net/netcheck/index.html +++ b/pr/2674/docs/iroh/net/netcheck/index.html @@ -1,4 +1,4 @@ -iroh::net::netcheck - Rust

Module iroh::net::netcheck

source ·
Expand description

Checks the network conditions from the current host.

+iroh::net::netcheck - Rust

Module iroh::net::netcheck

source ·
Expand description

Checks the network conditions from the current host.

Netcheck is responsible for finding out the network conditions of the current host, like whether it is connected to the internet via IPv4 and/or IPv6, what the NAT situation is etc.

diff --git a/pr/2674/docs/iroh/net/netcheck/struct.Client.html b/pr/2674/docs/iroh/net/netcheck/struct.Client.html index 51c1db0b19..b42a9ce511 100644 --- a/pr/2674/docs/iroh/net/netcheck/struct.Client.html +++ b/pr/2674/docs/iroh/net/netcheck/struct.Client.html @@ -1,4 +1,4 @@ -Client in iroh::net::netcheck - Rust

Struct iroh::net::netcheck::Client

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

Client to run netchecks.

+Client in iroh::net::netcheck - Rust

Struct iroh::net::netcheck::Client

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

Client to run netchecks.

Creating this creates a netcheck actor which runs in the background. Most of the time it is idle unless Client::get_report is called, which is the main interface.

The Client struct can be cloned and results multiple handles to the running actor. @@ -86,14 +86,7 @@ may not be as reliable.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/netcheck/struct.Metrics.html b/pr/2674/docs/iroh/net/netcheck/struct.Metrics.html index 249e71aaa3..b4fb6a8a59 100644 --- a/pr/2674/docs/iroh/net/netcheck/struct.Metrics.html +++ b/pr/2674/docs/iroh/net/netcheck/struct.Metrics.html @@ -1,4 +1,4 @@ -Metrics in iroh::net::netcheck - Rust

Struct iroh::net::netcheck::Metrics

source ·
pub struct Metrics {
+Metrics in iroh::net::netcheck - Rust

Struct iroh::net::netcheck::Metrics

source ·
pub struct Metrics {
     pub stun_packets_dropped: Counter,
     pub stun_packets_sent_ipv4: Counter,
     pub stun_packets_sent_ipv6: Counter,
@@ -53,14 +53,7 @@ Only records if this metric is registered in the global registry.

From<T>,
source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/netcheck/struct.RelayLatencies.html b/pr/2674/docs/iroh/net/netcheck/struct.RelayLatencies.html index 6b0fa689e0..1c6478eba2 100644 --- a/pr/2674/docs/iroh/net/netcheck/struct.RelayLatencies.html +++ b/pr/2674/docs/iroh/net/netcheck/struct.RelayLatencies.html @@ -1,4 +1,4 @@ -RelayLatencies in iroh::net::netcheck - Rust

Struct iroh::net::netcheck::RelayLatencies

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

Latencies per relay node.

+RelayLatencies in iroh::net::netcheck - Rust

Struct iroh::net::netcheck::RelayLatencies

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

Latencies per relay node.

Implementations§

source§

impl RelayLatencies

source

pub fn iter(&self) -> impl Iterator<Item = (&RelayUrl, Duration)>

Returns an iterator over all the relays and their latencies.

Trait Implementations§

source§

impl Clone for RelayLatencies

source§

fn clone(&self) -> RelayLatencies

Returns a 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 RelayLatencies

source§

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

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

impl Default for RelayLatencies

source§

fn default() -> RelayLatencies

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

impl PartialEq for RelayLatencies

source§

fn eq(&self, other: &RelayLatencies) -> 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 @@ -50,14 +50,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/netcheck/struct.Report.html b/pr/2674/docs/iroh/net/netcheck/struct.Report.html index 30f7ed84a5..2e0518b77d 100644 --- a/pr/2674/docs/iroh/net/netcheck/struct.Report.html +++ b/pr/2674/docs/iroh/net/netcheck/struct.Report.html @@ -1,4 +1,4 @@ -Report in iroh::net::netcheck - Rust

Struct iroh::net::netcheck::Report

source ·
pub struct Report {
Show 19 fields +Report in iroh::net::netcheck - Rust

Struct iroh::net::netcheck::Report

source ·
pub struct Report {
Show 19 fields pub udp: bool, pub ipv6: bool, pub ipv4: bool, @@ -93,14 +93,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/ping/enum.PingError.html b/pr/2674/docs/iroh/net/ping/enum.PingError.html index cab5c3780b..00e1edbb33 100644 --- a/pr/2674/docs/iroh/net/ping/enum.PingError.html +++ b/pr/2674/docs/iroh/net/ping/enum.PingError.html @@ -1,10 +1,10 @@ -PingError in iroh::net::ping - Rust

Enum iroh::net::ping::PingError

source ·
pub enum PingError {
+PingError in iroh::net::ping - Rust

Enum iroh::net::ping::PingError

source ·
pub enum PingError {
     Client(Error),
     Ping(SurgeError),
 }
Expand description

Whether this error was because we couldn’t create a client or a send error.

Variants§

§

Client(Error)

Could not create client, probably bind error.

§

Ping(SurgeError)

Could not send ping.

-

Trait Implementations§

source§

impl Debug for PingError

source§

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

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

impl Display for PingError

source§

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

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

impl Error for PingError

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 PingError

source§

fn from(source: Error) -> PingError

Converts to this type from the input type.
source§

impl From<SurgeError> for PingError

source§

fn from(source: SurgeError) -> PingError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Debug for PingError

source§

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

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

impl Display for PingError

source§

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

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

impl Error for PingError

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 PingError

source§

fn from(source: Error) -> PingError

Converts to this type from the input type.
source§

impl From<SurgeError> for PingError

source§

fn from(source: SurgeError) -> PingError

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 @@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/ping/index.html b/pr/2674/docs/iroh/net/ping/index.html index 9949f79256..9f1affdaf1 100644 --- a/pr/2674/docs/iroh/net/ping/index.html +++ b/pr/2674/docs/iroh/net/ping/index.html @@ -1,3 +1,3 @@ -iroh::net::ping - Rust

Module iroh::net::ping

source ·
Expand description

Allows sending ICMP echo requests to a host in order to determine network latency.

+iroh::net::ping - Rust

Module iroh::net::ping

source ·
Expand description

Allows sending ICMP echo requests to a host in order to determine network latency.

Structs§

  • Allows sending ICMP echo requests to a host in order to determine network latency. Will gracefully handle both IPv4 and IPv6.

Enums§

  • Whether this error was because we couldn’t create a client or a send error.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/ping/struct.Pinger.html b/pr/2674/docs/iroh/net/ping/struct.Pinger.html index 6cbde10803..99f2a709c0 100644 --- a/pr/2674/docs/iroh/net/ping/struct.Pinger.html +++ b/pr/2674/docs/iroh/net/ping/struct.Pinger.html @@ -1,4 +1,4 @@ -Pinger in iroh::net::ping - Rust

Struct iroh::net::ping::Pinger

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

Allows sending ICMP echo requests to a host in order to determine network latency. +Pinger in iroh::net::ping - Rust

Struct iroh::net::ping::Pinger

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

Allows sending ICMP echo requests to a host in order to determine network latency. Will gracefully handle both IPv4 and IPv6.

Implementations§

source§

impl Pinger

source

pub fn new() -> Pinger

Create a new Pinger.

source

pub async fn send( @@ -50,14 +50,7 @@ Will gracefully handle both IPv4 and IPv6.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/portmapper/index.html b/pr/2674/docs/iroh/net/portmapper/index.html index 96cad07b0e..60e9df80d0 100644 --- a/pr/2674/docs/iroh/net/portmapper/index.html +++ b/pr/2674/docs/iroh/net/portmapper/index.html @@ -1,2 +1,2 @@ -iroh::net::portmapper - Rust

Module iroh::net::portmapper

source ·
Expand description

Port mapping client and service.

+iroh::net::portmapper - Rust

Module iroh::net::portmapper

source ·
Expand description

Port mapping client and service.

Structs§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/portmapper/struct.Client.html b/pr/2674/docs/iroh/net/portmapper/struct.Client.html index a304f35c71..285d192db9 100644 --- a/pr/2674/docs/iroh/net/portmapper/struct.Client.html +++ b/pr/2674/docs/iroh/net/portmapper/struct.Client.html @@ -1,4 +1,4 @@ -Client in iroh::net::portmapper - Rust

Struct iroh::net::portmapper::Client

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

Port mapping client.

+Client in iroh::net::portmapper - Rust

Struct iroh::net::portmapper::Client

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

Port mapping client.

Implementations§

source§

impl Client

source

pub fn new(config: Config) -> Client

Create a new port mapping client.

source

pub fn probe(&self) -> Receiver<Result<ProbeOutput, String>>

Request a probe to the port mapping protocols.

Returns the [oneshot::Receiver] used to obtain the result of the probe.

@@ -51,14 +51,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/portmapper/struct.Config.html b/pr/2674/docs/iroh/net/portmapper/struct.Config.html index af9bc30fb8..c07c5d4786 100644 --- a/pr/2674/docs/iroh/net/portmapper/struct.Config.html +++ b/pr/2674/docs/iroh/net/portmapper/struct.Config.html @@ -1,4 +1,4 @@ -Config in iroh::net::portmapper - Rust

Struct iroh::net::portmapper::Config

source ·
pub struct Config {
+Config in iroh::net::portmapper - Rust

Struct iroh::net::portmapper::Config

source ·
pub struct Config {
     pub enable_upnp: bool,
     pub enable_pcp: bool,
     pub enable_nat_pmp: bool,
@@ -51,14 +51,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/portmapper/struct.Metrics.html b/pr/2674/docs/iroh/net/portmapper/struct.Metrics.html index 206b0ac914..0f8071b029 100644 --- a/pr/2674/docs/iroh/net/portmapper/struct.Metrics.html +++ b/pr/2674/docs/iroh/net/portmapper/struct.Metrics.html @@ -1,4 +1,4 @@ -Metrics in iroh::net::portmapper - Rust

Struct iroh::net::portmapper::Metrics

source ·
pub struct Metrics {
+Metrics in iroh::net::portmapper - Rust

Struct iroh::net::portmapper::Metrics

source ·
pub struct Metrics {
     pub probes_started: Counter,
     pub local_port_updates: Counter,
     pub mapping_attempts: Counter,
@@ -57,14 +57,7 @@ Only records if this metric is registered in the global registry.

From<T>,
source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/portmapper/struct.ProbeOutput.html b/pr/2674/docs/iroh/net/portmapper/struct.ProbeOutput.html index b280bcaf4f..ca02e62623 100644 --- a/pr/2674/docs/iroh/net/portmapper/struct.ProbeOutput.html +++ b/pr/2674/docs/iroh/net/portmapper/struct.ProbeOutput.html @@ -1,4 +1,4 @@ -ProbeOutput in iroh::net::portmapper - Rust

Struct iroh::net::portmapper::ProbeOutput

source ·
pub struct ProbeOutput {
+ProbeOutput in iroh::net::portmapper - Rust

Struct iroh::net::portmapper::ProbeOutput

source ·
pub struct ProbeOutput {
     pub upnp: bool,
     pub pcp: bool,
     pub nat_pmp: bool,
@@ -57,14 +57,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/portmapper/struct.Service.html b/pr/2674/docs/iroh/net/portmapper/struct.Service.html index 162502976e..d405d36571 100644 --- a/pr/2674/docs/iroh/net/portmapper/struct.Service.html +++ b/pr/2674/docs/iroh/net/portmapper/struct.Service.html @@ -1,4 +1,4 @@ -Service in iroh::net::portmapper - Rust

Struct iroh::net::portmapper::Service

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

A port mapping client.

+Service in iroh::net::portmapper - Rust

Struct iroh::net::portmapper::Service

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

A port mapping client.

Trait Implementations§

source§

impl Debug for Service

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 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 @@ -41,14 +41,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/constant.MAX_PACKET_SIZE.html b/pr/2674/docs/iroh/net/relay/constant.MAX_PACKET_SIZE.html index dfdd5fea94..1f43e298c6 100644 --- a/pr/2674/docs/iroh/net/relay/constant.MAX_PACKET_SIZE.html +++ b/pr/2674/docs/iroh/net/relay/constant.MAX_PACKET_SIZE.html @@ -1,4 +1,4 @@ -MAX_PACKET_SIZE in iroh::net::relay - Rust

Constant iroh::net::relay::MAX_PACKET_SIZE

source ·
pub const MAX_PACKET_SIZE: usize = _; // 65_536usize
Expand description

The maximum size of a packet sent over relay. +MAX_PACKET_SIZE in iroh::net::relay - Rust

Constant iroh::net::relay::MAX_PACKET_SIZE

source ·
pub const MAX_PACKET_SIZE: usize = _; // 65_536usize
Expand description

The maximum size of a packet sent over relay. (This only includes the data bytes visible to magicsock, not including its on-wire framing overhead)

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/relay/enum.HttpClientError.html b/pr/2674/docs/iroh/net/relay/enum.HttpClientError.html index aaf5c28cf7..7a3ea4e4d8 100644 --- a/pr/2674/docs/iroh/net/relay/enum.HttpClientError.html +++ b/pr/2674/docs/iroh/net/relay/enum.HttpClientError.html @@ -1,4 +1,4 @@ -HttpClientError in iroh::net::relay - Rust

Enum iroh::net::relay::HttpClientError

source ·
pub enum HttpClientError {
+HttpClientError in iroh::net::relay - Rust

Enum iroh::net::relay::HttpClientError

source ·
pub enum HttpClientError {
 
Show 26 variants Closed, NoClient, Send, @@ -52,7 +52,7 @@
§

DnsTimeout

There was a timeout resolving DNS.

§

ActorGone

The inner actor is gone, likely means things are shutdown.

§

WebsocketError(Error)

An error related to websockets, either errors with parsing ws messages or the handshake

-

Trait Implementations§

source§

impl Debug for ClientError

source§

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

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

impl Display for ClientError

source§

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

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

impl Error for ClientError

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 ClientError

source§

fn from(source: Error) -> ClientError

Converts to this type from the input type.
source§

impl From<Error> for ClientError

source§

fn from(source: Error) -> ClientError

Converts to this type from the input type.
source§

impl From<Error> for ClientError

source§

fn from(source: Error) -> ClientError

Converts to this type from the input type.
source§

impl From<Error> for ClientError

source§

fn from(source: Error) -> ClientError

Converts to this type from the input type.
source§

impl From<JoinError> for ClientError

source§

fn from(source: JoinError) -> ClientError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Debug for ClientError

source§

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

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

impl Display for ClientError

source§

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

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

impl Error for ClientError

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 ClientError

source§

fn from(source: Error) -> ClientError

Converts to this type from the input type.
source§

impl From<Error> for ClientError

source§

fn from(source: Error) -> ClientError

Converts to this type from the input type.
source§

impl From<Error> for ClientError

source§

fn from(source: Error) -> ClientError

Converts to this type from the input type.
source§

impl From<Error> for ClientError

source§

fn from(source: Error) -> ClientError

Converts to this type from the input type.
source§

impl From<JoinError> for ClientError

source§

fn from(source: JoinError) -> ClientError

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 @@ -94,14 +94,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/enum.ReceivedMessage.html b/pr/2674/docs/iroh/net/relay/enum.ReceivedMessage.html index d122b89a3c..4b606f0496 100644 --- a/pr/2674/docs/iroh/net/relay/enum.ReceivedMessage.html +++ b/pr/2674/docs/iroh/net/relay/enum.ReceivedMessage.html @@ -1,4 +1,4 @@ -ReceivedMessage in iroh::net::relay - Rust

Enum iroh::net::relay::ReceivedMessage

source ·
pub enum ReceivedMessage {
+ReceivedMessage in iroh::net::relay - Rust

Enum iroh::net::relay::ReceivedMessage

source ·
pub enum ReceivedMessage {
     ReceivedPacket {
         source: PublicKey,
         data: Bytes,
@@ -83,14 +83,7 @@ than a few seconds.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/enum.RelayMode.html b/pr/2674/docs/iroh/net/relay/enum.RelayMode.html index 479d158557..a0fc854625 100644 --- a/pr/2674/docs/iroh/net/relay/enum.RelayMode.html +++ b/pr/2674/docs/iroh/net/relay/enum.RelayMode.html @@ -1,4 +1,4 @@ -RelayMode in iroh::net::relay - Rust

Enum iroh::net::relay::RelayMode

source ·
pub enum RelayMode {
+RelayMode in iroh::net::relay - Rust

Enum iroh::net::relay::RelayMode

source ·
pub enum RelayMode {
     Disabled,
     Default,
     Staging,
@@ -60,14 +60,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/http/constant.RELAY_PATH.html b/pr/2674/docs/iroh/net/relay/http/constant.RELAY_PATH.html index 61d90ee731..933d735c0a 100644 --- a/pr/2674/docs/iroh/net/relay/http/constant.RELAY_PATH.html +++ b/pr/2674/docs/iroh/net/relay/http/constant.RELAY_PATH.html @@ -1,3 +1,3 @@ -RELAY_PATH in iroh::net::relay::http - Rust

Constant iroh::net::relay::http::RELAY_PATH

source ·
pub const RELAY_PATH: &'static str;
Expand description

The HTTP path under which the relay accepts relaying connections +RELAY_PATH in iroh::net::relay::http - Rust

Constant iroh::net::relay::http::RELAY_PATH

source ·
pub const RELAY_PATH: &'static str;
Expand description

The HTTP path under which the relay accepts relaying connections (over websockets and a custom upgrade protocol).

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/relay/http/constant.RELAY_PROBE_PATH.html b/pr/2674/docs/iroh/net/relay/http/constant.RELAY_PROBE_PATH.html index 58e9a382fe..6a1a4b1bfe 100644 --- a/pr/2674/docs/iroh/net/relay/http/constant.RELAY_PROBE_PATH.html +++ b/pr/2674/docs/iroh/net/relay/http/constant.RELAY_PROBE_PATH.html @@ -1,2 +1,2 @@ -RELAY_PROBE_PATH in iroh::net::relay::http - Rust

Constant iroh::net::relay::http::RELAY_PROBE_PATH

source ·
pub const RELAY_PROBE_PATH: &'static str;
Expand description

The HTTP path under which the relay allows doing latency queries for testing.

+RELAY_PROBE_PATH in iroh::net::relay::http - Rust

Constant iroh::net::relay::http::RELAY_PROBE_PATH

source ·
pub const RELAY_PROBE_PATH: &'static str;
Expand description

The HTTP path under which the relay allows doing latency queries for testing.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/relay/http/enum.Protocol.html b/pr/2674/docs/iroh/net/relay/http/enum.Protocol.html index 776bd6c00a..f2a16568af 100644 --- a/pr/2674/docs/iroh/net/relay/http/enum.Protocol.html +++ b/pr/2674/docs/iroh/net/relay/http/enum.Protocol.html @@ -1,4 +1,4 @@ -Protocol in iroh::net::relay::http - Rust

Enum iroh::net::relay::http::Protocol

source ·
pub enum Protocol {
+Protocol in iroh::net::relay::http - Rust

Enum iroh::net::relay::http::Protocol

source ·
pub enum Protocol {
     Relay,
     Websocket,
 }
Expand description

The HTTP upgrade protocol used for relaying.

@@ -57,14 +57,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/http/index.html b/pr/2674/docs/iroh/net/relay/http/index.html index 4ef4e72d4d..e8380f3307 100644 --- a/pr/2674/docs/iroh/net/relay/http/index.html +++ b/pr/2674/docs/iroh/net/relay/http/index.html @@ -1,3 +1,3 @@ -iroh::net::relay::http - Rust

Module iroh::net::relay::http

source ·
Expand description

HTTP-specific constants for the relay server and client.

+iroh::net::relay::http - Rust

Module iroh::net::relay::http

source ·
Expand description

HTTP-specific constants for the relay server and client.

Enums§

  • The HTTP upgrade protocol used for relaying.

Constants§

  • The HTTP path under which the relay accepts relaying connections (over websockets and a custom upgrade protocol).
  • The HTTP path under which the relay allows doing latency queries for testing.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/relay/index.html b/pr/2674/docs/iroh/net/relay/index.html index 1d7ce40af6..6c8114f99f 100644 --- a/pr/2674/docs/iroh/net/relay/index.html +++ b/pr/2674/docs/iroh/net/relay/index.html @@ -1,4 +1,4 @@ -iroh::net::relay - Rust

Module iroh::net::relay

source ·
Expand description

Package relay implements a revised version of the Designated Encrypted Relay for Packets (DERP) +iroh::net::relay - Rust

Module iroh::net::relay

source ·
Expand description

Package relay implements a revised version of the Designated Encrypted Relay for Packets (DERP) protocol written by Tailscale. The relay routes packets to clients using curve25519 keys as addresses. The relay is used to proxy encrypted QUIC packets through the relay servers when diff --git a/pr/2674/docs/iroh/net/relay/server/enum.CertConfig.html b/pr/2674/docs/iroh/net/relay/server/enum.CertConfig.html index 30e2586f0b..71f5313d70 100644 --- a/pr/2674/docs/iroh/net/relay/server/enum.CertConfig.html +++ b/pr/2674/docs/iroh/net/relay/server/enum.CertConfig.html @@ -1,4 +1,4 @@ -CertConfig in iroh::net::relay::server - Rust

Enum iroh::net::relay::server::CertConfig

source ·
pub enum CertConfig<EC, EA = EC>
where +CertConfig in iroh::net::relay::server - Rust

Enum iroh::net::relay::server::CertConfig

source ·
pub enum CertConfig<EC, EA = EC>
where EC: Debug, EA: Debug,
{ LetsEncrypt { @@ -58,14 +58,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/server/enum.MaybeTlsStreamServer.html b/pr/2674/docs/iroh/net/relay/server/enum.MaybeTlsStreamServer.html index 1711a01656..a57d9fa6bd 100644 --- a/pr/2674/docs/iroh/net/relay/server/enum.MaybeTlsStreamServer.html +++ b/pr/2674/docs/iroh/net/relay/server/enum.MaybeTlsStreamServer.html @@ -1,4 +1,4 @@ -MaybeTlsStreamServer in iroh::net::relay::server - Rust

Enum iroh::net::relay::server::MaybeTlsStreamServer

source ·
pub enum MaybeTlsStreamServer {
+MaybeTlsStreamServer in iroh::net::relay::server - Rust

Enum iroh::net::relay::server::MaybeTlsStreamServer

source ·
pub enum MaybeTlsStreamServer {
     Plain(TcpStream),
     Tls(TlsStream<TcpStream>),
 }
Expand description

The main underlying IO stream type used for the relay server.

@@ -188,14 +188,7 @@ cleanly. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/server/index.html b/pr/2674/docs/iroh/net/relay/server/index.html index 9bc98bbb09..bb3369f4c3 100644 --- a/pr/2674/docs/iroh/net/relay/server/index.html +++ b/pr/2674/docs/iroh/net/relay/server/index.html @@ -1,4 +1,4 @@ -iroh::net::relay::server - Rust

Module iroh::net::relay::server

source ·
Expand description

A fully-fledged iroh-relay server over HTTP or HTTPS.

+iroh::net::relay::server - Rust

Module iroh::net::relay::server

source ·
Expand description

A fully-fledged iroh-relay server over HTTP or HTTPS.

This module provides an API to run a full fledged iroh-relay server. It is primarily used by the iroh-relay binary in this crate. It can be used to run a relay server in other locations however.

diff --git a/pr/2674/docs/iroh/net/relay/server/struct.ClientConnHandler.html b/pr/2674/docs/iroh/net/relay/server/struct.ClientConnHandler.html index 4c6b13a867..49c03ab473 100644 --- a/pr/2674/docs/iroh/net/relay/server/struct.ClientConnHandler.html +++ b/pr/2674/docs/iroh/net/relay/server/struct.ClientConnHandler.html @@ -1,4 +1,4 @@ -ClientConnHandler in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::ClientConnHandler

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

Handle incoming connections to the Server.

+ClientConnHandler in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::ClientConnHandler

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

Handle incoming connections to the Server.

Created by the ServerActorTask by calling ServerActorTask::client_conn_handler.

Can be cheaply cloned.

Implementations§

source§

impl ClientConnHandler

source

pub async fn accept( @@ -61,14 +61,7 @@ and is unable to verify this one, or if there is some issue communicating with t U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/server/struct.Limits.html b/pr/2674/docs/iroh/net/relay/server/struct.Limits.html index b7c19a46ea..6032fdf4c0 100644 --- a/pr/2674/docs/iroh/net/relay/server/struct.Limits.html +++ b/pr/2674/docs/iroh/net/relay/server/struct.Limits.html @@ -1,4 +1,4 @@ -Limits in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::Limits

source ·
pub struct Limits {
+Limits in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::Limits

source ·
pub struct Limits {
     pub accept_conn_limit: Option<f64>,
     pub accept_conn_burst: Option<usize>,
 }
Expand description

Rate limits.

@@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/server/struct.Metrics.html b/pr/2674/docs/iroh/net/relay/server/struct.Metrics.html index 55d88a3891..64fbc820c4 100644 --- a/pr/2674/docs/iroh/net/relay/server/struct.Metrics.html +++ b/pr/2674/docs/iroh/net/relay/server/struct.Metrics.html @@ -1,4 +1,4 @@ -Metrics in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::Metrics

source ·
pub struct Metrics {
Show 19 fields +Metrics in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::Metrics

source ·
pub struct Metrics {
Show 19 fields pub bytes_sent: Counter, pub bytes_recv: Counter, pub send_packets_sent: Counter, @@ -84,14 +84,7 @@ Only records if this metric is registered in the global registry.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/server/struct.RelayConfig.html b/pr/2674/docs/iroh/net/relay/server/struct.RelayConfig.html index 4d8ab0b6f5..40eb19c250 100644 --- a/pr/2674/docs/iroh/net/relay/server/struct.RelayConfig.html +++ b/pr/2674/docs/iroh/net/relay/server/struct.RelayConfig.html @@ -1,4 +1,4 @@ -RelayConfig in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::RelayConfig

source ·
pub struct RelayConfig<EC, EA = EC>
where +RelayConfig in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::RelayConfig

source ·
pub struct RelayConfig<EC, EA = EC>
where EC: Debug, EA: Debug,
{ pub secret_key: SecretKey, @@ -62,14 +62,7 @@ TLS.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/server/struct.Server.html b/pr/2674/docs/iroh/net/relay/server/struct.Server.html index a0aea0f7e8..b0b141c5f9 100644 --- a/pr/2674/docs/iroh/net/relay/server/struct.Server.html +++ b/pr/2674/docs/iroh/net/relay/server/struct.Server.html @@ -1,4 +1,4 @@ -Server in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::Server

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

A running Relay + STUN server.

+Server in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::Server

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

A running Relay + STUN server.

This is a full Relay server, including STUN, Relay and various associated HTTP services.

Dropping this will stop the server.

Implementations§

source§

impl Server

source

pub async fn spawn<EC, EA>( @@ -56,14 +56,7 @@ case there is an error in the server before it is shut down.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/server/struct.ServerActorTask.html b/pr/2674/docs/iroh/net/relay/server/struct.ServerActorTask.html index 0631adc23f..0e62573282 100644 --- a/pr/2674/docs/iroh/net/relay/server/struct.ServerActorTask.html +++ b/pr/2674/docs/iroh/net/relay/server/struct.ServerActorTask.html @@ -1,4 +1,4 @@ -ServerActorTask in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::ServerActorTask

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

The task for a running server actor.

+ServerActorTask in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::ServerActorTask

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

The task for a running server actor.

Will forcefully abort the server actor loop when dropped. For stopping gracefully, use ServerActorTask::close.

Responsible for managing connections to relay Conns, sending packets from one client to another.

@@ -58,14 +58,7 @@ let the client skip a round trip during start-up.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/server/struct.ServerConfig.html b/pr/2674/docs/iroh/net/relay/server/struct.ServerConfig.html index b92a817340..0a201ab583 100644 --- a/pr/2674/docs/iroh/net/relay/server/struct.ServerConfig.html +++ b/pr/2674/docs/iroh/net/relay/server/struct.ServerConfig.html @@ -1,4 +1,4 @@ -ServerConfig in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::ServerConfig

source ·
pub struct ServerConfig<EC, EA = EC>
where +ServerConfig in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::ServerConfig

source ·
pub struct ServerConfig<EC, EA = EC>
where EC: Debug, EA: Debug,
{ pub relay: Option<RelayConfig<EC, EA>>, @@ -56,14 +56,7 @@ If not used dummy ones need to be provided, e.g. ServerConfig::<(), ()& U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/server/struct.StunConfig.html b/pr/2674/docs/iroh/net/relay/server/struct.StunConfig.html index 4d2e37ce91..75e3198545 100644 --- a/pr/2674/docs/iroh/net/relay/server/struct.StunConfig.html +++ b/pr/2674/docs/iroh/net/relay/server/struct.StunConfig.html @@ -1,4 +1,4 @@ -StunConfig in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::StunConfig

source ·
pub struct StunConfig {
+StunConfig in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::StunConfig

source ·
pub struct StunConfig {
     pub bind_addr: SocketAddr,
 }
Expand description

Configuration for the STUN server.

Fields§

§bind_addr: SocketAddr

The socket address on which the STUN server should bind.

@@ -45,14 +45,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/server/struct.TlsConfig.html b/pr/2674/docs/iroh/net/relay/server/struct.TlsConfig.html index 0cba24598f..72570a343f 100644 --- a/pr/2674/docs/iroh/net/relay/server/struct.TlsConfig.html +++ b/pr/2674/docs/iroh/net/relay/server/struct.TlsConfig.html @@ -1,4 +1,4 @@ -TlsConfig in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::TlsConfig

source ·
pub struct TlsConfig<EC, EA = EC>
where +TlsConfig in iroh::net::relay::server - Rust

Struct iroh::net::relay::server::TlsConfig

source ·
pub struct TlsConfig<EC, EA = EC>
where EC: Debug, EA: Debug,
{ pub https_bind_addr: SocketAddr, @@ -55,14 +55,7 @@ this is served on the From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/struct.HttpClient.html b/pr/2674/docs/iroh/net/relay/struct.HttpClient.html index c67ffd4eaa..25e92f4442 100644 --- a/pr/2674/docs/iroh/net/relay/struct.HttpClient.html +++ b/pr/2674/docs/iroh/net/relay/struct.HttpClient.html @@ -1,4 +1,4 @@ -HttpClient in iroh::net::relay - Rust

Struct iroh::net::relay::HttpClient

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

An HTTP Relay client.

+HttpClient in iroh::net::relay - Rust

Struct iroh::net::relay::HttpClient

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

An HTTP Relay client.

Cheaply clonable.

Implementations§

source§

impl Client

source

pub fn public_key(&self) -> PublicKey

The public key for this client

source

pub async fn connect(&self) -> Result<(Conn, usize), ClientError>

Connect to a relay Server and returns the underlying relay Client.

@@ -71,14 +71,7 @@ returning.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/struct.HttpClientBuilder.html b/pr/2674/docs/iroh/net/relay/struct.HttpClientBuilder.html index c011ea8efc..fd84190ac2 100644 --- a/pr/2674/docs/iroh/net/relay/struct.HttpClientBuilder.html +++ b/pr/2674/docs/iroh/net/relay/struct.HttpClientBuilder.html @@ -1,4 +1,4 @@ -HttpClientBuilder in iroh::net::relay - Rust

Struct iroh::net::relay::HttpClientBuilder

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

Build a Client.

+HttpClientBuilder in iroh::net::relay - Rust

Struct iroh::net::relay::HttpClientBuilder

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

Build a Client.

Implementations§

source§

impl ClientBuilder

source

pub fn new(url: impl Into<RelayUrl>) -> ClientBuilder

Create a new ClientBuilder

source

pub fn server_url(self, url: impl Into<RelayUrl>) -> ClientBuilder

Sets the server url

source

pub fn protocol(self, protocol: Protocol) -> ClientBuilder

Sets whether to connect to the relay via websockets or not. @@ -65,14 +65,7 @@ to the peer with this client’s From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/struct.HttpClientReceiver.html b/pr/2674/docs/iroh/net/relay/struct.HttpClientReceiver.html index 37fdb06242..6dfd513c85 100644 --- a/pr/2674/docs/iroh/net/relay/struct.HttpClientReceiver.html +++ b/pr/2674/docs/iroh/net/relay/struct.HttpClientReceiver.html @@ -1,4 +1,4 @@ -HttpClientReceiver in iroh::net::relay - Rust

Struct iroh::net::relay::HttpClientReceiver

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

Receiving end of a Client.

+HttpClientReceiver in iroh::net::relay - Rust

Struct iroh::net::relay::HttpClientReceiver

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

Receiving end of a Client.

Implementations§

source§

impl ClientReceiver

source

pub async fn recv( &mut self ) -> Option<Result<(ReceivedMessage, usize), ClientError>>

Reads a message from the server. Returns the message and the conn_get, or the number of @@ -45,14 +45,7 @@ re-connections this Client has ever made

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/struct.RelayConn.html b/pr/2674/docs/iroh/net/relay/struct.RelayConn.html index 927d2a35c0..a42f1668c5 100644 --- a/pr/2674/docs/iroh/net/relay/struct.RelayConn.html +++ b/pr/2674/docs/iroh/net/relay/struct.RelayConn.html @@ -1,4 +1,4 @@ -RelayConn in iroh::net::relay - Rust

Struct iroh::net::relay::RelayConn

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

A connection to a relay server.

+RelayConn in iroh::net::relay - Rust

Struct iroh::net::relay::RelayConn

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

A connection to a relay server.

Cheaply clonable. Call close to shut down the write loop and read functionality.

Implementations§

source§

impl Conn

source

pub async fn send(&self, dstkey: PublicKey, packet: Bytes) -> Result<(), Error>

Sends a packet to the node identified by dstkey

@@ -66,14 +66,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/struct.RelayMap.html b/pr/2674/docs/iroh/net/relay/struct.RelayMap.html index 0b29c51c38..b870c67183 100644 --- a/pr/2674/docs/iroh/net/relay/struct.RelayMap.html +++ b/pr/2674/docs/iroh/net/relay/struct.RelayMap.html @@ -1,4 +1,4 @@ -RelayMap in iroh::net::relay - Rust

Struct iroh::net::relay::RelayMap

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

Configuration of all the relay servers that can be used.

+RelayMap in iroh::net::relay - Rust

Struct iroh::net::relay::RelayMap

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

Configuration of all the relay servers that can be used.

Implementations§

source§

impl RelayMap

source

pub fn urls(&self) -> impl Iterator<Item = &RelayUrl>

Returns the sorted relay URLs.

source

pub fn empty() -> RelayMap

Create an empty relay map.

source

pub fn nodes(&self) -> impl Iterator<Item = &Arc<RelayNode>>

Returns an Iterator over all known nodes.

@@ -65,14 +65,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/struct.RelayNode.html b/pr/2674/docs/iroh/net/relay/struct.RelayNode.html index d99598f840..229f641b0f 100644 --- a/pr/2674/docs/iroh/net/relay/struct.RelayNode.html +++ b/pr/2674/docs/iroh/net/relay/struct.RelayNode.html @@ -1,4 +1,4 @@ -RelayNode in iroh::net::relay - Rust

Struct iroh::net::relay::RelayNode

source ·
pub struct RelayNode {
+RelayNode in iroh::net::relay - Rust

Struct iroh::net::relay::RelayNode

source ·
pub struct RelayNode {
     pub url: RelayUrl,
     pub stun_only: bool,
     pub stun_port: u16,
@@ -74,14 +74,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/relay/struct.RelayUrl.html b/pr/2674/docs/iroh/net/relay/struct.RelayUrl.html index 1cd42e9017..31f2716bc6 100644 --- a/pr/2674/docs/iroh/net/relay/struct.RelayUrl.html +++ b/pr/2674/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

source ·
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:

  • @@ -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 @@ -514,14 +514,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/struct.AddrInfo.html b/pr/2674/docs/iroh/net/struct.AddrInfo.html index 876c836106..a72296a7bc 100644 --- a/pr/2674/docs/iroh/net/struct.AddrInfo.html +++ b/pr/2674/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

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

Network paths to contact an iroh-net node.

@@ -76,14 +76,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/struct.Endpoint.html b/pr/2674/docs/iroh/net/struct.Endpoint.html index 4fe9eaaf48..6b4679c737 100644 --- a/pr/2674/docs/iroh/net/struct.Endpoint.html +++ b/pr/2674/docs/iroh/net/struct.Endpoint.html @@ -1,4 +1,4 @@ -Endpoint in iroh::net - Rust

Struct iroh::net::Endpoint

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

Controls an iroh-net node, establishing connections with other nodes.

+Endpoint in iroh::net - Rust

Struct iroh::net::Endpoint

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

Controls an iroh-net node, establishing connections with other nodes.

This is the main API interface to create connections to, and accept connections from other iroh-net nodes. The connections are peer-to-peer and encrypted, a Relay server is used to make the connections reliable. See the [crate docs] for a more detailed @@ -223,14 +223,7 @@ TODO: Document error cases.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/struct.NodeAddr.html b/pr/2674/docs/iroh/net/struct.NodeAddr.html index d57de71e69..46f66ef3ba 100644 --- a/pr/2674/docs/iroh/net/struct.NodeAddr.html +++ b/pr/2674/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

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

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

@@ -106,14 +106,7 @@ operator. From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/stun/enum.Error.html b/pr/2674/docs/iroh/net/stun/enum.Error.html index 72101c38d4..769bddbc4a 100644 --- a/pr/2674/docs/iroh/net/stun/enum.Error.html +++ b/pr/2674/docs/iroh/net/stun/enum.Error.html @@ -1,4 +1,4 @@ -Error in iroh::net::stun - Rust

Enum iroh::net::stun::Error

source ·
pub enum Error {
+Error in iroh::net::stun - Rust

Enum iroh::net::stun::Error

source ·
pub enum Error {
     InvalidMessage,
     NotBinding,
     NotSuccessResponse,
@@ -54,14 +54,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/stun/enum.MessageClass.html b/pr/2674/docs/iroh/net/stun/enum.MessageClass.html index 176c43e1ae..37a30dba1a 100644 --- a/pr/2674/docs/iroh/net/stun/enum.MessageClass.html +++ b/pr/2674/docs/iroh/net/stun/enum.MessageClass.html @@ -1,4 +1,4 @@ -MessageClass in iroh::net::stun - Rust

Enum iroh::net::stun::MessageClass

pub enum MessageClass {
+MessageClass in iroh::net::stun - Rust

Enum iroh::net::stun::MessageClass

pub enum MessageClass {
     Request,
     Indication,
     SuccessResponse,
@@ -65,14 +65,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/stun/enum.StunAttribute.html b/pr/2674/docs/iroh/net/stun/enum.StunAttribute.html index b249bcd045..e0dfd0cc2c 100644 --- a/pr/2674/docs/iroh/net/stun/enum.StunAttribute.html +++ b/pr/2674/docs/iroh/net/stun/enum.StunAttribute.html @@ -1,4 +1,4 @@ -StunAttribute in iroh::net::stun - Rust

Enum iroh::net::stun::StunAttribute

pub enum StunAttribute {
+StunAttribute in iroh::net::stun - Rust

Enum iroh::net::stun::StunAttribute

pub enum StunAttribute {
 
Show 16 variants Unknown(Unknown), AlternateServer(AlternateServer), ErrorCode(ErrorCode), @@ -157,14 +157,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/stun/fn.is.html b/pr/2674/docs/iroh/net/stun/fn.is.html index 1e626b499b..ac5d634a19 100644 --- a/pr/2674/docs/iroh/net/stun/fn.is.html +++ b/pr/2674/docs/iroh/net/stun/fn.is.html @@ -1,2 +1,2 @@ -is in iroh::net::stun - Rust

Function iroh::net::stun::is

source ·
pub fn is(b: &[u8]) -> bool
Expand description

Reports whether b is a STUN message.

+is in iroh::net::stun - Rust

Function iroh::net::stun::is

source ·
pub fn is(b: &[u8]) -> bool
Expand description

Reports whether b is a STUN message.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/stun/fn.parse_binding_request.html b/pr/2674/docs/iroh/net/stun/fn.parse_binding_request.html index e9b7f7dcb4..28451a0a49 100644 --- a/pr/2674/docs/iroh/net/stun/fn.parse_binding_request.html +++ b/pr/2674/docs/iroh/net/stun/fn.parse_binding_request.html @@ -1,2 +1,2 @@ -parse_binding_request in iroh::net::stun - Rust

Function iroh::net::stun::parse_binding_request

source ·
pub fn parse_binding_request(b: &[u8]) -> Result<TransactionId, Error>
Expand description

Parses a STUN binding request.

+parse_binding_request in iroh::net::stun - Rust

Function iroh::net::stun::parse_binding_request

source ·
pub fn parse_binding_request(b: &[u8]) -> Result<TransactionId, Error>
Expand description

Parses a STUN binding request.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/stun/fn.parse_response.html b/pr/2674/docs/iroh/net/stun/fn.parse_response.html index 8dd8cd7588..08ccd1d85f 100644 --- a/pr/2674/docs/iroh/net/stun/fn.parse_response.html +++ b/pr/2674/docs/iroh/net/stun/fn.parse_response.html @@ -1,3 +1,3 @@ -parse_response in iroh::net::stun - Rust

Function iroh::net::stun::parse_response

source ·
pub fn parse_response(b: &[u8]) -> Result<(TransactionId, SocketAddr), Error>
Expand description

Parses a successful binding response STUN packet. +parse_response in iroh::net::stun - Rust

Function iroh::net::stun::parse_response

source ·
pub fn parse_response(b: &[u8]) -> Result<(TransactionId, SocketAddr), Error>
Expand description

Parses a successful binding response STUN packet. The IP address is extracted from the XOR-MAPPED-ADDRESS attribute.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/stun/fn.request.html b/pr/2674/docs/iroh/net/stun/fn.request.html index 8d4614c209..03a518e352 100644 --- a/pr/2674/docs/iroh/net/stun/fn.request.html +++ b/pr/2674/docs/iroh/net/stun/fn.request.html @@ -1,2 +1,2 @@ -request in iroh::net::stun - Rust

Function iroh::net::stun::request

source ·
pub fn request(tx: TransactionId) -> Vec<u8> ⓘ
Expand description

Generates a binding request STUN packet.

+request in iroh::net::stun - Rust

Function iroh::net::stun::request

source ·
pub fn request(tx: TransactionId) -> Vec<u8> ⓘ
Expand description

Generates a binding request STUN packet.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/stun/fn.response.html b/pr/2674/docs/iroh/net/stun/fn.response.html index 87efce08be..299ade5d55 100644 --- a/pr/2674/docs/iroh/net/stun/fn.response.html +++ b/pr/2674/docs/iroh/net/stun/fn.response.html @@ -1,2 +1,2 @@ -response in iroh::net::stun - Rust

Function iroh::net::stun::response

source ·
pub fn response(tx: TransactionId, addr: SocketAddr) -> Vec<u8> ⓘ
Expand description

Generates a binding response.

+response in iroh::net::stun - Rust

Function iroh::net::stun::response

source ·
pub fn response(tx: TransactionId, addr: SocketAddr) -> Vec<u8> ⓘ
Expand description

Generates a binding response.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/stun/index.html b/pr/2674/docs/iroh/net/stun/index.html index 60288c86ff..d9316aa97c 100644 --- a/pr/2674/docs/iroh/net/stun/index.html +++ b/pr/2674/docs/iroh/net/stun/index.html @@ -1,4 +1,4 @@ -iroh::net::stun - Rust

Module iroh::net::stun

source ·
Expand description

STUN packets sending and receiving.

+iroh::net::stun - Rust

Module iroh::net::stun

source ·
Expand description

STUN packets sending and receiving.

Modules§

Structs§

  • Class used to decode STUN messages
  • Describes an error decoding a StunMessage
  • The transaction ID is a 96-bit identifier, used to uniquely identify STUN transactions. It primarily serves to correlate requests with responses, though it also plays a small role in helping to prevent diff --git a/pr/2674/docs/iroh/net/stun/methods/constant.BINDING.html b/pr/2674/docs/iroh/net/stun/methods/constant.BINDING.html index 4106ad5c59..fc580e6b5b 100644 --- a/pr/2674/docs/iroh/net/stun/methods/constant.BINDING.html +++ b/pr/2674/docs/iroh/net/stun/methods/constant.BINDING.html @@ -1,2 +1,2 @@ -BINDING in iroh::net::stun::methods - Rust

    Constant iroh::net::stun::methods::BINDING

    pub const BINDING: MessageMethod;
    Expand description

    Binding

    +BINDING in iroh::net::stun::methods - Rust

    Constant iroh::net::stun::methods::BINDING

    pub const BINDING: MessageMethod;
    Expand description

    Binding

    \ No newline at end of file diff --git a/pr/2674/docs/iroh/net/stun/methods/constant.RESERVED.html b/pr/2674/docs/iroh/net/stun/methods/constant.RESERVED.html index ac7e9a3e98..d800704d10 100644 --- a/pr/2674/docs/iroh/net/stun/methods/constant.RESERVED.html +++ b/pr/2674/docs/iroh/net/stun/methods/constant.RESERVED.html @@ -1,2 +1,2 @@ -RESERVED in iroh::net::stun::methods - Rust

    Constant iroh::net::stun::methods::RESERVED

    pub const RESERVED: MessageMethod;
    Expand description

    Reserved

    +RESERVED in iroh::net::stun::methods - Rust

    Constant iroh::net::stun::methods::RESERVED

    pub const RESERVED: MessageMethod;
    Expand description

    Reserved

    \ No newline at end of file diff --git a/pr/2674/docs/iroh/net/stun/methods/constant.SHARED_SECRET.html b/pr/2674/docs/iroh/net/stun/methods/constant.SHARED_SECRET.html index e741666aca..78e3c947c8 100644 --- a/pr/2674/docs/iroh/net/stun/methods/constant.SHARED_SECRET.html +++ b/pr/2674/docs/iroh/net/stun/methods/constant.SHARED_SECRET.html @@ -1,2 +1,2 @@ -SHARED_SECRET in iroh::net::stun::methods - Rust

    Constant iroh::net::stun::methods::SHARED_SECRET

    pub const SHARED_SECRET: MessageMethod;
    Expand description

    Shared secret

    +SHARED_SECRET in iroh::net::stun::methods - Rust

    Constant iroh::net::stun::methods::SHARED_SECRET

    pub const SHARED_SECRET: MessageMethod;
    Expand description

    Shared secret

    \ No newline at end of file diff --git a/pr/2674/docs/iroh/net/stun/methods/index.html b/pr/2674/docs/iroh/net/stun/methods/index.html index 945f023cbc..047d737948 100644 --- a/pr/2674/docs/iroh/net/stun/methods/index.html +++ b/pr/2674/docs/iroh/net/stun/methods/index.html @@ -1,2 +1,2 @@ -iroh::net::stun::methods - Rust

    Module iroh::net::stun::methods

    Expand description

    STUN Methods Registry

    +iroh::net::stun::methods - Rust

    Module iroh::net::stun::methods

    Expand description

    STUN Methods Registry

    Constants§

    \ No newline at end of file diff --git a/pr/2674/docs/iroh/net/stun/struct.MessageDecoder.html b/pr/2674/docs/iroh/net/stun/struct.MessageDecoder.html index 96482dc3cf..19ea21ee19 100644 --- a/pr/2674/docs/iroh/net/stun/struct.MessageDecoder.html +++ b/pr/2674/docs/iroh/net/stun/struct.MessageDecoder.html @@ -1,4 +1,4 @@ -MessageDecoder in iroh::net::stun - Rust

    Struct iroh::net::stun::MessageDecoder

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

    Class used to decode STUN messages

    +MessageDecoder in iroh::net::stun - Rust

    Struct iroh::net::stun::MessageDecoder

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

    Class used to decode STUN messages

    Implementations§

    §

    impl MessageDecoder

    pub fn decode( &self, buffer: &[u8] @@ -55,14 +55,7 @@ or an error describing the problem if the message could not be decoded.

    U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/stun/struct.StunDecodeError.html b/pr/2674/docs/iroh/net/stun/struct.StunDecodeError.html index 6cda30cecf..c15f10f1ae 100644 --- a/pr/2674/docs/iroh/net/stun/struct.StunDecodeError.html +++ b/pr/2674/docs/iroh/net/stun/struct.StunDecodeError.html @@ -1,4 +1,4 @@ -StunDecodeError in iroh::net::stun - Rust

Struct iroh::net::stun::StunDecodeError

pub struct StunDecodeError(pub StunErrorLevel);
Expand description

Describes an error decoding a StunMessage

+StunDecodeError in iroh::net::stun - Rust

Struct iroh::net::stun::StunDecodeError

pub struct StunDecodeError(pub StunErrorLevel);
Expand description

Describes an error decoding a StunMessage

Tuple Fields§

§0: StunErrorLevel

Trait Implementations§

§

impl Debug for StunDecodeError

§

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

Formats the value using the given formatter. Read more
§

impl Display for StunDecodeError

§

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

Formats the value using the given formatter. Read more
§

impl Error for StunDecodeError

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 @@ -41,14 +41,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/stun/struct.TransactionId.html b/pr/2674/docs/iroh/net/stun/struct.TransactionId.html index 9d1d036802..ed8b7ab141 100644 --- a/pr/2674/docs/iroh/net/stun/struct.TransactionId.html +++ b/pr/2674/docs/iroh/net/stun/struct.TransactionId.html @@ -1,4 +1,4 @@ -TransactionId in iroh::net::stun - Rust

Struct iroh::net::stun::TransactionId

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

The transaction ID is a 96-bit identifier, used to uniquely identify +TransactionId in iroh::net::stun - Rust

Struct iroh::net::stun::TransactionId

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

The transaction ID is a 96-bit identifier, used to uniquely identify STUN transactions. It primarily serves to correlate requests with responses, though it also plays a small role in helping to prevent certain types of attacks. The server also uses the transaction ID as @@ -1174,14 +1174,7 @@ ordering. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/test_utils/fn.create_dns_resolver.html b/pr/2674/docs/iroh/net/test_utils/fn.create_dns_resolver.html index 2ed6920939..305eb89487 100644 --- a/pr/2674/docs/iroh/net/test_utils/fn.create_dns_resolver.html +++ b/pr/2674/docs/iroh/net/test_utils/fn.create_dns_resolver.html @@ -1,4 +1,4 @@ -create_dns_resolver in iroh::net::test_utils - Rust

Function iroh::net::test_utils::create_dns_resolver

source ·
pub fn create_dns_resolver(
+create_dns_resolver in iroh::net::test_utils - Rust

Function iroh::net::test_utils::create_dns_resolver

source ·
pub fn create_dns_resolver(
     nameserver: SocketAddr
 ) -> Result<AsyncResolver<GenericConnector<TokioRuntimeProvider>>, Error>
Expand description

Create a DNS resolver with a single nameserver.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/test_utils/fn.run_relay_server.html b/pr/2674/docs/iroh/net/test_utils/fn.run_relay_server.html index 1cf7c1b022..7fe3504c11 100644 --- a/pr/2674/docs/iroh/net/test_utils/fn.run_relay_server.html +++ b/pr/2674/docs/iroh/net/test_utils/fn.run_relay_server.html @@ -1,4 +1,4 @@ -run_relay_server in iroh::net::test_utils - Rust

Function iroh::net::test_utils::run_relay_server

source ·
pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), Error>
Expand description

Runs a relay server with STUN enabled suitable for tests.

+run_relay_server in iroh::net::test_utils - Rust

Function iroh::net::test_utils::run_relay_server

source ·
pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), Error>
Expand description

Runs a relay server with STUN enabled suitable for tests.

The returned Url is the url of the relay server in the returned RelayMap. When dropped, the returned Server does will stop running.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/test_utils/index.html b/pr/2674/docs/iroh/net/test_utils/index.html index 0679a5cd96..e002006ce5 100644 --- a/pr/2674/docs/iroh/net/test_utils/index.html +++ b/pr/2674/docs/iroh/net/test_utils/index.html @@ -1,2 +1,2 @@ -iroh::net::test_utils - Rust

Module iroh::net::test_utils

source ·
Expand description

Internal utilities to support testing.

+iroh::net::test_utils - Rust

Module iroh::net::test_utils

source ·
Expand description

Internal utilities to support testing.

Structs§

Functions§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/test_utils/struct.CleanupDropGuard.html b/pr/2674/docs/iroh/net/test_utils/struct.CleanupDropGuard.html index b31236b906..a8e4e819c7 100644 --- a/pr/2674/docs/iroh/net/test_utils/struct.CleanupDropGuard.html +++ b/pr/2674/docs/iroh/net/test_utils/struct.CleanupDropGuard.html @@ -1,4 +1,4 @@ -CleanupDropGuard in iroh::net::test_utils - Rust

Struct iroh::net::test_utils::CleanupDropGuard

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

A drop guard to clean up test infrastructure.

+CleanupDropGuard in iroh::net::test_utils - Rust

Struct iroh::net::test_utils::CleanupDropGuard

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

A drop guard to clean up test infrastructure.

After dropping the test infrastructure will asynchronously shutdown and release its resources.

Trait Implementations§

source§

impl Debug for CleanupDropGuard

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 @@ -43,14 +43,7 @@ resources.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/test_utils/struct.DnsPkarrServer.html b/pr/2674/docs/iroh/net/test_utils/struct.DnsPkarrServer.html index 6de4ca3d58..d1fe2b0d69 100644 --- a/pr/2674/docs/iroh/net/test_utils/struct.DnsPkarrServer.html +++ b/pr/2674/docs/iroh/net/test_utils/struct.DnsPkarrServer.html @@ -1,4 +1,4 @@ -DnsPkarrServer in iroh::net::test_utils - Rust

Struct iroh::net::test_utils::DnsPkarrServer

source ·
pub struct DnsPkarrServer {
+DnsPkarrServer in iroh::net::test_utils - Rust

Struct iroh::net::test_utils::DnsPkarrServer

source ·
pub struct DnsPkarrServer {
     pub node_origin: String,
     pub nameserver: SocketAddr,
     pub pkarr_url: Url,
@@ -65,14 +65,7 @@ configured to use the test servers.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/ticket/index.html b/pr/2674/docs/iroh/net/ticket/index.html index 4264b682a1..83d58f6aab 100644 --- a/pr/2674/docs/iroh/net/ticket/index.html +++ b/pr/2674/docs/iroh/net/ticket/index.html @@ -1,2 +1,2 @@ -iroh::net::ticket - Rust

Module iroh::net::ticket

source ·
Expand description

Tickets supported by iroh-net

+iroh::net::ticket - Rust

Module iroh::net::ticket

source ·
Expand description

Tickets supported by iroh-net

Structs§

  • A token containing everything to get a file from the provider.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/ticket/struct.NodeTicket.html b/pr/2674/docs/iroh/net/ticket/struct.NodeTicket.html index 0448bc9b4e..80b5be4a75 100644 --- a/pr/2674/docs/iroh/net/ticket/struct.NodeTicket.html +++ b/pr/2674/docs/iroh/net/ticket/struct.NodeTicket.html @@ -1,8 +1,8 @@ -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

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

A token containing everything to get a file from the provider.

It is a single item which can be easily serialized and deserialized.

Implementations§

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

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

source§

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

Deserialize this value from the given Serde deserializer. Read more
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 @@ -11,7 +11,7 @@ sufficient, and should not be overridden without very good reason.
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
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 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 @@ -59,14 +59,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/tls/certificate/fn.generate.html b/pr/2674/docs/iroh/net/tls/certificate/fn.generate.html index 809a99d307..312be3618d 100644 --- a/pr/2674/docs/iroh/net/tls/certificate/fn.generate.html +++ b/pr/2674/docs/iroh/net/tls/certificate/fn.generate.html @@ -1,4 +1,4 @@ -generate in iroh::net::tls::certificate - Rust

Function iroh::net::tls::certificate::generate

source ·
pub fn generate(
+generate in iroh::net::tls::certificate - Rust

Function iroh::net::tls::certificate::generate

source ·
pub fn generate(
     identity_secret_key: &SecretKey
 ) -> Result<(Certificate, PrivateKey), GenError>
Expand description

Generates a self-signed TLS certificate that includes a libp2p-specific certificate extension containing the public key of the given secret key.

diff --git a/pr/2674/docs/iroh/net/tls/certificate/fn.parse.html b/pr/2674/docs/iroh/net/tls/certificate/fn.parse.html index 3c1107a6ec..2ce1f03ab2 100644 --- a/pr/2674/docs/iroh/net/tls/certificate/fn.parse.html +++ b/pr/2674/docs/iroh/net/tls/certificate/fn.parse.html @@ -1,4 +1,4 @@ -parse in iroh::net::tls::certificate - Rust

Function iroh::net::tls::certificate::parse

source ·
pub fn parse(
+parse in iroh::net::tls::certificate - Rust

Function iroh::net::tls::certificate::parse

source ·
pub fn parse(
     certificate: &Certificate
 ) -> Result<P2pCertificate<'_>, ParseError>
Expand description

Attempts to parse the provided bytes as a P2pCertificate.

For this to succeed, the certificate must contain the specified extension and the signature must diff --git a/pr/2674/docs/iroh/net/tls/certificate/index.html b/pr/2674/docs/iroh/net/tls/certificate/index.html index f2df76b5de..4aeec85f75 100644 --- a/pr/2674/docs/iroh/net/tls/certificate/index.html +++ b/pr/2674/docs/iroh/net/tls/certificate/index.html @@ -1,4 +1,4 @@ -iroh::net::tls::certificate - Rust

Module iroh::net::tls::certificate

source ·
Expand description

X.509 certificate handling.

+iroh::net::tls::certificate - Rust

Module iroh::net::tls::certificate

source ·
Expand description

X.509 certificate handling.

This module handles generation, signing, and verification of certificates.

Based on rust-libp2p/transports/tls/src/certificate.rs originally licensed under MIT by Parity Technologies (UK) Ltd.

diff --git a/pr/2674/docs/iroh/net/tls/certificate/struct.GenError.html b/pr/2674/docs/iroh/net/tls/certificate/struct.GenError.html index 075b73fa9c..6661b8f9d0 100644 --- a/pr/2674/docs/iroh/net/tls/certificate/struct.GenError.html +++ b/pr/2674/docs/iroh/net/tls/certificate/struct.GenError.html @@ -1,4 +1,4 @@ -GenError in iroh::net::tls::certificate - Rust

Struct iroh::net::tls::certificate::GenError

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

An error that occurs during certificate generation.

+GenError in iroh::net::tls::certificate - Rust

Struct iroh::net::tls::certificate::GenError

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

An error that occurs during certificate generation.

Trait Implementations§

source§

impl Debug for GenError

source§

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

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

impl Display for GenError

source§

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

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

impl Error for GenError

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 GenError

source§

fn from(source: Error) -> GenError

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 @@ -41,14 +41,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/tls/certificate/struct.P2pCertificate.html b/pr/2674/docs/iroh/net/tls/certificate/struct.P2pCertificate.html index bf465a9424..61777b3381 100644 --- a/pr/2674/docs/iroh/net/tls/certificate/struct.P2pCertificate.html +++ b/pr/2674/docs/iroh/net/tls/certificate/struct.P2pCertificate.html @@ -1,4 +1,4 @@ -P2pCertificate in iroh::net::tls::certificate - Rust

Struct iroh::net::tls::certificate::P2pCertificate

source ·
pub struct P2pCertificate<'a> { /* private fields */ }
Expand description

An X.509 certificate with a libp2p-specific extension +P2pCertificate in iroh::net::tls::certificate - Rust

Struct iroh::net::tls::certificate::P2pCertificate

source ·
pub struct P2pCertificate<'a> { /* private fields */ }
Expand description

An X.509 certificate with a libp2p-specific extension is used to secure libp2p connections.

Implementations§

source§

impl P2pCertificate<'_>

source

pub fn peer_id(&self) -> PublicKey

The PublicKey of the remote peer.

source

pub fn verify_signature( @@ -50,14 +50,7 @@ in the certificate.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/tls/certificate/struct.P2pExtension.html b/pr/2674/docs/iroh/net/tls/certificate/struct.P2pExtension.html index 323a49bb84..2e295d51d3 100644 --- a/pr/2674/docs/iroh/net/tls/certificate/struct.P2pExtension.html +++ b/pr/2674/docs/iroh/net/tls/certificate/struct.P2pExtension.html @@ -1,4 +1,4 @@ -P2pExtension in iroh::net::tls::certificate - Rust

Struct iroh::net::tls::certificate::P2pExtension

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

The contents of the specific libp2p extension, containing the public host key +P2pExtension in iroh::net::tls::certificate - Rust

Struct iroh::net::tls::certificate::P2pExtension

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

The contents of the specific libp2p extension, containing the public host key and a signature performed using the private host key.

Trait Implementations§

source§

impl Debug for P2pExtension

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 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 @@ -42,14 +42,7 @@ and a signature performed using the private host key.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/tls/certificate/struct.ParseError.html b/pr/2674/docs/iroh/net/tls/certificate/struct.ParseError.html index 0563b4c17e..85e6b9b272 100644 --- a/pr/2674/docs/iroh/net/tls/certificate/struct.ParseError.html +++ b/pr/2674/docs/iroh/net/tls/certificate/struct.ParseError.html @@ -1,4 +1,4 @@ -ParseError in iroh::net::tls::certificate - Rust

Struct iroh::net::tls::certificate::ParseError

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

An error that occurs during certificate parsing.

+ParseError in iroh::net::tls::certificate - Rust

Struct iroh::net::tls::certificate::ParseError

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

An error that occurs during certificate parsing.

Trait Implementations§

source§

impl Debug for ParseError

source§

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

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

impl Display for ParseError

source§

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

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

impl Error for ParseError

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 ParseError

source§

fn from(source: Error) -> ParseError

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 @@ -41,14 +41,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/tls/certificate/struct.VerificationError.html b/pr/2674/docs/iroh/net/tls/certificate/struct.VerificationError.html index 73356739e0..b99ffc83ee 100644 --- a/pr/2674/docs/iroh/net/tls/certificate/struct.VerificationError.html +++ b/pr/2674/docs/iroh/net/tls/certificate/struct.VerificationError.html @@ -1,4 +1,4 @@ -VerificationError in iroh::net::tls::certificate - Rust

Struct iroh::net::tls::certificate::VerificationError

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

An error that occurs during signature verification.

+VerificationError in iroh::net::tls::certificate - Rust

Struct iroh::net::tls::certificate::VerificationError

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

An error that occurs during signature verification.

Trait Implementations§

source§

impl Debug for VerificationError

source§

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

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

impl Display for VerificationError

source§

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

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

impl Error for VerificationError

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 VerificationError

source§

fn from(source: Error) -> VerificationError

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 @@ -41,14 +41,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/tls/fn.make_client_config.html b/pr/2674/docs/iroh/net/tls/fn.make_client_config.html index ac4957d1be..aea3a880b1 100644 --- a/pr/2674/docs/iroh/net/tls/fn.make_client_config.html +++ b/pr/2674/docs/iroh/net/tls/fn.make_client_config.html @@ -1,4 +1,4 @@ -make_client_config in iroh::net::tls - Rust

Function iroh::net::tls::make_client_config

source ·
pub fn make_client_config(
+make_client_config in iroh::net::tls - Rust

Function iroh::net::tls::make_client_config

source ·
pub fn make_client_config(
     secret_key: &SecretKey,
     remote_peer_id: Option<PublicKey>,
     alpn_protocols: Vec<Vec<u8>>,
diff --git a/pr/2674/docs/iroh/net/tls/fn.make_server_config.html b/pr/2674/docs/iroh/net/tls/fn.make_server_config.html
index 0c1bbbfbd2..1c1bf404b5 100644
--- a/pr/2674/docs/iroh/net/tls/fn.make_server_config.html
+++ b/pr/2674/docs/iroh/net/tls/fn.make_server_config.html
@@ -1,4 +1,4 @@
-make_server_config in iroh::net::tls - Rust

Function iroh::net::tls::make_server_config

source ·
pub fn make_server_config(
+make_server_config in iroh::net::tls - Rust

Function iroh::net::tls::make_server_config

source ·
pub fn make_server_config(
     secret_key: &SecretKey,
     alpn_protocols: Vec<Vec<u8>>,
     keylog: bool
diff --git a/pr/2674/docs/iroh/net/tls/index.html b/pr/2674/docs/iroh/net/tls/index.html
index 6c7818291b..8547e0109f 100644
--- a/pr/2674/docs/iroh/net/tls/index.html
+++ b/pr/2674/docs/iroh/net/tls/index.html
@@ -1,4 +1,4 @@
-iroh::net::tls - Rust

Module iroh::net::tls

source ·
Expand description

TLS configuration based on libp2p TLS specs.

+iroh::net::tls - Rust

Module iroh::net::tls

source ·
Expand description

TLS configuration based on libp2p TLS specs.

See https://github.com/libp2p/specs/blob/master/tls/tls.md. Based on rust-libp2p/transports/tls

Modules§

Functions§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/type.NodeId.html b/pr/2674/docs/iroh/net/type.NodeId.html index f1adb16902..a36d5189dc 100644 --- a/pr/2674/docs/iroh/net/type.NodeId.html +++ b/pr/2674/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

source ·
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/2674/docs/iroh/net/util/chain/fn.chain.html b/pr/2674/docs/iroh/net/util/chain/fn.chain.html index 6c272b0520..1e80599897 100644 --- a/pr/2674/docs/iroh/net/util/chain/fn.chain.html +++ b/pr/2674/docs/iroh/net/util/chain/fn.chain.html @@ -1,4 +1,4 @@ -chain in iroh::net::util::chain - Rust

Function iroh::net::util::chain::chain

source ·
pub fn chain<T, U>(first: T, second: U) -> Chain<T, U>
where +chain in iroh::net::util::chain - Rust

Function iroh::net::util::chain::chain

source ·
pub fn chain<T, U>(first: T, second: U) -> Chain<T, U>
where T: AsyncRead, U: AsyncRead,
Expand description

Chain two AsyncReads together.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/util/chain/index.html b/pr/2674/docs/iroh/net/util/chain/index.html index 7e1acc95b3..c154e1d240 100644 --- a/pr/2674/docs/iroh/net/util/chain/index.html +++ b/pr/2674/docs/iroh/net/util/chain/index.html @@ -1,2 +1,2 @@ -iroh::net::util::chain - Rust

Module iroh::net::util::chain

source ·
Expand description

IO utility to chain AsyncReads together.

+iroh::net::util::chain - Rust

Module iroh::net::util::chain

source ·
Expand description

IO utility to chain AsyncReads together.

Structs§

Functions§

  • Chain two AsyncReads together.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/util/chain/struct.Chain.html b/pr/2674/docs/iroh/net/util/chain/struct.Chain.html index d97f411994..3612de57e8 100644 --- a/pr/2674/docs/iroh/net/util/chain/struct.Chain.html +++ b/pr/2674/docs/iroh/net/util/chain/struct.Chain.html @@ -1,4 +1,4 @@ -Chain in iroh::net::util::chain - Rust

Struct iroh::net::util::chain::Chain

source ·
pub struct Chain<T, U> { /* private fields */ }
Expand description

Stream for the chain method.

+Chain in iroh::net::util::chain - Rust

Struct iroh::net::util::chain::Chain

source ·
pub struct Chain<T, U> { /* private fields */ }
Expand description

Stream for the chain method.

Implementations§

source§

impl<T, U> Chain<T, U>
where T: AsyncRead, U: AsyncRead,

source

pub fn get_ref(&self) -> (&T, &U)

Gets references to the underlying readers in this Chain.

@@ -153,14 +153,7 @@ underlying reader. Read more
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/util/index.html b/pr/2674/docs/iroh/net/util/index.html index a53a2a0932..a1143b71ab 100644 --- a/pr/2674/docs/iroh/net/util/index.html +++ b/pr/2674/docs/iroh/net/util/index.html @@ -1,3 +1,3 @@ -iroh::net::util - Rust

Module iroh::net::util

source ·
Expand description

Utilities used in iroh-net

+iroh::net::util - Rust

Module iroh::net::util

source ·
Expand description

Utilities used in iroh-net

Modules§

  • IO utility to chain AsyncReads together.

Structs§

  • A join handle that owns the task it is running, and aborts it when dropped.
  • Holds a handle to a task and aborts it on drop.
  • Resolves to pending if the inner is None.
  • A join handle that owns the task it is running, and aborts it when dropped. It is cloneable and will abort when the last instance is dropped.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/net/util/struct.AbortingJoinHandle.html b/pr/2674/docs/iroh/net/util/struct.AbortingJoinHandle.html index 5e245c26c8..96632a504b 100644 --- a/pr/2674/docs/iroh/net/util/struct.AbortingJoinHandle.html +++ b/pr/2674/docs/iroh/net/util/struct.AbortingJoinHandle.html @@ -1,4 +1,4 @@ -AbortingJoinHandle in iroh::net::util - Rust

Struct iroh::net::util::AbortingJoinHandle

source ·
pub struct AbortingJoinHandle<T> { /* private fields */ }
Expand description

A join handle that owns the task it is running, and aborts it when dropped.

+AbortingJoinHandle in iroh::net::util - Rust

Struct iroh::net::util::AbortingJoinHandle

source ·
pub struct AbortingJoinHandle<T> { /* private fields */ }
Expand description

A join handle that owns the task it is running, and aborts it when dropped.

Methods from Deref<Target = JoinHandle<T>>§

pub fn abort(&self)

Abort the task associated with the handle.

Awaiting a cancelled task might complete as usual if the task was already completed at the time it was cancelled, but most likely it @@ -203,14 +203,7 @@ fluent call chains. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<F> IntoFuture for F
where +

source§

impl<F> IntoFuture for F
where F: Future,

§

type Output = <F as Future>::Output

The output that the future will produce on completion.
§

type IntoFuture = F

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

fn into_future(self) -> <F as IntoFuture>::IntoFuture

Creates a future from a value. Read more
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/util/struct.CancelOnDrop.html b/pr/2674/docs/iroh/net/util/struct.CancelOnDrop.html index 45d3534d9b..77aae3cbe8 100644 --- a/pr/2674/docs/iroh/net/util/struct.CancelOnDrop.html +++ b/pr/2674/docs/iroh/net/util/struct.CancelOnDrop.html @@ -1,4 +1,4 @@ -CancelOnDrop in iroh::net::util - Rust

Struct iroh::net::util::CancelOnDrop

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

Holds a handle to a task and aborts it on drop.

+CancelOnDrop in iroh::net::util - Rust

Struct iroh::net::util::CancelOnDrop

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

Holds a handle to a task and aborts it on drop.

See [tokio::task::AbortHandle].

Implementations§

source§

impl CancelOnDrop

source

pub fn new(task_name: &'static str, handle: AbortHandle) -> CancelOnDrop

Create a CancelOnDrop with a name and a handle to a task.

Trait Implementations§

source§

impl Debug for CancelOnDrop

source§

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

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

impl Drop for CancelOnDrop

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 @@ -43,14 +43,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/util/struct.MaybeFuture.html b/pr/2674/docs/iroh/net/util/struct.MaybeFuture.html index 4401267350..4525f89512 100644 --- a/pr/2674/docs/iroh/net/util/struct.MaybeFuture.html +++ b/pr/2674/docs/iroh/net/util/struct.MaybeFuture.html @@ -1,4 +1,4 @@ -MaybeFuture in iroh::net::util - Rust

Struct iroh::net::util::MaybeFuture

source ·
pub struct MaybeFuture<T> {
+MaybeFuture in iroh::net::util - Rust

Struct iroh::net::util::MaybeFuture

source ·
pub struct MaybeFuture<T> {
     pub inner: Option<T>,
 }
Expand description

Resolves to pending if the inner is None.

Fields§

§inner: Option<T>

Future to be polled.

@@ -131,14 +131,7 @@ fluent call chains. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<F> IntoFuture for F
where +

source§

impl<F> IntoFuture for F
where F: Future,

§

type Output = <F as Future>::Output

The output that the future will produce on completion.
§

type IntoFuture = F

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

fn into_future(self) -> <F as IntoFuture>::IntoFuture

Creates a future from a value. Read more
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/net/util/struct.SharedAbortingJoinHandle.html b/pr/2674/docs/iroh/net/util/struct.SharedAbortingJoinHandle.html index 270ece65ad..dc64fcf0cd 100644 --- a/pr/2674/docs/iroh/net/util/struct.SharedAbortingJoinHandle.html +++ b/pr/2674/docs/iroh/net/util/struct.SharedAbortingJoinHandle.html @@ -1,4 +1,4 @@ -SharedAbortingJoinHandle in iroh::net::util - Rust

Struct iroh::net::util::SharedAbortingJoinHandle

source ·
pub struct SharedAbortingJoinHandle<T>
where +SharedAbortingJoinHandle in iroh::net::util - Rust

Struct iroh::net::util::SharedAbortingJoinHandle

source ·
pub struct SharedAbortingJoinHandle<T>
where T: Clone + Send,
{ /* private fields */ }
Expand description

A join handle that owns the task it is running, and aborts it when dropped. It is cloneable and will abort when the last instance is dropped.

Trait Implementations§

source§

impl<T> Clone for SharedAbortingJoinHandle<T>
where @@ -131,14 +131,7 @@ fluent call chains. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

impl<F> IntoFuture for F
where +

source§

impl<F> IntoFuture for F
where F: Future,

§

type Output = <F as Future>::Output

The output that the future will produce on completion.
§

type IntoFuture = F

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

fn into_future(self) -> <F as IntoFuture>::IntoFuture

Creates a future from a value. Read more
§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/node/constant.DEFAULT_RPC_ADDR.html b/pr/2674/docs/iroh/node/constant.DEFAULT_RPC_ADDR.html index 5fe4ebd1a3..9f1bec7506 100644 --- a/pr/2674/docs/iroh/node/constant.DEFAULT_RPC_ADDR.html +++ b/pr/2674/docs/iroh/node/constant.DEFAULT_RPC_ADDR.html @@ -1,2 +1,2 @@ -DEFAULT_RPC_ADDR in iroh::node - Rust

Constant iroh::node::DEFAULT_RPC_ADDR

source ·
pub const DEFAULT_RPC_ADDR: SocketAddr;
Expand description

The default bind addr of the RPC .

+DEFAULT_RPC_ADDR in iroh::node - Rust

Constant iroh::node::DEFAULT_RPC_ADDR

source ·
pub const DEFAULT_RPC_ADDR: SocketAddr;
Expand description

The default bind addr of the RPC .

\ No newline at end of file diff --git a/pr/2674/docs/iroh/node/enum.DiscoveryConfig.html b/pr/2674/docs/iroh/node/enum.DiscoveryConfig.html index faac742d1f..6fbf27afca 100644 --- a/pr/2674/docs/iroh/node/enum.DiscoveryConfig.html +++ b/pr/2674/docs/iroh/node/enum.DiscoveryConfig.html @@ -1,4 +1,4 @@ -DiscoveryConfig in iroh::node - Rust

Enum iroh::node::DiscoveryConfig

source ·
pub enum DiscoveryConfig {
+DiscoveryConfig in iroh::node - Rust

Enum iroh::node::DiscoveryConfig

source ·
pub enum DiscoveryConfig {
     None,
     Default,
     Custom(Box<dyn Discovery>),
@@ -68,14 +68,7 @@ configure it here as a custom discovery mechanism (From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/node/enum.DocsStorage.html b/pr/2674/docs/iroh/node/enum.DocsStorage.html index 0a4d72ea8c..6ed84a5f08 100644 --- a/pr/2674/docs/iroh/node/enum.DocsStorage.html +++ b/pr/2674/docs/iroh/node/enum.DocsStorage.html @@ -1,4 +1,4 @@ -DocsStorage in iroh::node - Rust

Enum iroh::node::DocsStorage

source ·
pub enum DocsStorage {
+DocsStorage in iroh::node - Rust

Enum iroh::node::DocsStorage

source ·
pub enum DocsStorage {
     Disabled,
     Memory,
     Persistent(PathBuf),
@@ -50,14 +50,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/node/enum.GcPolicy.html b/pr/2674/docs/iroh/node/enum.GcPolicy.html index bcf32190e6..1faa3c86ed 100644 --- a/pr/2674/docs/iroh/node/enum.GcPolicy.html +++ b/pr/2674/docs/iroh/node/enum.GcPolicy.html @@ -1,14 +1,14 @@ -GcPolicy in iroh::node - Rust

Enum iroh::node::GcPolicy

source ·
pub enum GcPolicy {
+GcPolicy in iroh::node - Rust

Enum iroh::node::GcPolicy

source ·
pub enum GcPolicy {
     Disabled,
     Interval(Duration),
 }
Expand description

Policy for garbage collection.

Variants§

§

Disabled

Garbage collection is disabled.

§

Interval(Duration)

Garbage collection is run at the given interval.

-

Trait Implementations§

source§

impl Clone for GcPolicy

source§

fn clone(&self) -> GcPolicy

Returns a 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 GcPolicy

source§

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

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

impl Default for GcPolicy

source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for GcPolicy

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 GcPolicy

source§

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

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

Trait Implementations§

source§

impl Clone for GcPolicy

source§

fn clone(&self) -> GcPolicy

Returns a 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 GcPolicy

source§

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

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

impl Default for GcPolicy

source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for GcPolicy

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 GcPolicy

source§

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

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 GcPolicy

source§

impl Eq for GcPolicy

source§

impl StructuralPartialEq for GcPolicy

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 GcPolicy

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 GcPolicy

source§

impl Eq for GcPolicy

source§

impl StructuralPartialEq for GcPolicy

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 @@ -56,14 +56,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/node/enum.RpcStatus.html b/pr/2674/docs/iroh/node/enum.RpcStatus.html index 8f1034da28..16c7fc42c6 100644 --- a/pr/2674/docs/iroh/node/enum.RpcStatus.html +++ b/pr/2674/docs/iroh/node/enum.RpcStatus.html @@ -1,4 +1,4 @@ -RpcStatus in iroh::node - Rust

Enum iroh::node::RpcStatus

source ·
pub enum RpcStatus {
+RpcStatus in iroh::node - Rust

Enum iroh::node::RpcStatus

source ·
pub enum RpcStatus {
     Stopped,
     Running {
         port: u16,
@@ -56,14 +56,7 @@
     U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/node/enum.StorageConfig.html b/pr/2674/docs/iroh/node/enum.StorageConfig.html index 23bab9a4af..cec69c71bf 100644 --- a/pr/2674/docs/iroh/node/enum.StorageConfig.html +++ b/pr/2674/docs/iroh/node/enum.StorageConfig.html @@ -1,4 +1,4 @@ -StorageConfig in iroh::node - Rust

Enum iroh::node::StorageConfig

source ·
pub enum StorageConfig {
+StorageConfig in iroh::node - Rust

Enum iroh::node::StorageConfig

source ·
pub enum StorageConfig {
     Mem,
     Persistent(PathBuf),
 }
Expand description

Configuration for storage.

@@ -46,14 +46,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/node/index.html b/pr/2674/docs/iroh/node/index.html index 7e05e1ca1d..553aa7665b 100644 --- a/pr/2674/docs/iroh/node/index.html +++ b/pr/2674/docs/iroh/node/index.html @@ -1,4 +1,4 @@ -iroh::node - Rust

Module iroh::node

source ·
Expand description

Node API

+iroh::node - Rust

Module iroh::node

source ·
Expand description

Node API

An iroh node is a server that is identified by an Ed25519 keypair and is globally reachable via the node id, which is the public key of the keypair.

diff --git a/pr/2674/docs/iroh/node/struct.Builder.html b/pr/2674/docs/iroh/node/struct.Builder.html index 80754144d2..aa8b2f6c1a 100644 --- a/pr/2674/docs/iroh/node/struct.Builder.html +++ b/pr/2674/docs/iroh/node/struct.Builder.html @@ -1,4 +1,4 @@ -Builder in iroh::node - Rust

Struct iroh::node::Builder

source ·
pub struct Builder<D>
where +Builder in iroh::node - Rust

Struct iroh::node::Builder

source ·
pub struct Builder<D>
where D: Map,
{ /* private fields */ }
Expand description

Builder for the Node.

You must supply a blob store and a document store.

Blob store implementations are available in iroh_blobs::store. @@ -18,25 +18,25 @@ using DocsStorage, storage: StorageConfig ) -> Self

Creates a new builder for Node using the given databases.

-
source§

impl<D> Builder<D>
where +

source§

impl<D> Builder<D>
where D: BaoStore,

source

pub fn blobs_events(self, blob_events: impl Into<EventSender>) -> Self

Configure a blob events sender. This will replace the previous blob event sender. By default, no events are sent.

To define an event sender, implement the iroh_blobs::provider::CustomEventSender trait.

-
source

pub async fn persist(self, root: impl AsRef<Path>) -> Result<Builder<Store>>

Persist all node data in the provided directory.

-
source

pub fn rpc_endpoint( +

source

pub async fn persist(self, root: impl AsRef<Path>) -> Result<Builder<Store>>

Persist all node data in the provided directory.

+
source

pub fn rpc_endpoint( self, value: IrohServerEndpoint, rpc_addr: Option<SocketAddr> ) -> Self

Configure rpc endpoint.

-
source

pub async fn enable_rpc(self) -> Result<Builder<D>>

Configure the default iroh rpc endpoint, on the default address.

-
source

pub async fn enable_rpc_with_addr( +

source

pub async fn enable_rpc(self) -> Result<Builder<D>>

Configure the default iroh rpc endpoint, on the default address.

+
source

pub async fn enable_rpc_with_addr( self, rpc_addr: SocketAddr ) -> Result<Builder<D>>

Configure the default iroh rpc endpoint.

-
source

pub fn gc_policy(self, gc_policy: GcPolicy) -> Self

Sets the garbage collection policy.

+
source

pub fn gc_policy(self, gc_policy: GcPolicy) -> Self

Sets the garbage collection policy.

By default garbage collection is disabled.

-
source

pub fn disable_docs(self) -> Self

Disables documents support on this node completely.

-
source

pub fn relay_mode(self, relay_mode: RelayMode) -> Self

Sets the relay servers to assist in establishing connectivity.

+
source

pub fn disable_docs(self) -> Self

Disables documents support on this node completely.

+
source

pub fn relay_mode(self, relay_mode: RelayMode) -> Self

Sets the relay servers to assist in establishing connectivity.

Relay servers are used to discover other nodes by PublicKey and also help establish connections between peers by being an initial relay for traffic while assisting in holepunching to establish a direct connection between peers.

@@ -46,33 +46,33 @@ configured relay node. If an invalid §Usage during tests

Note that while the default is RelayMode::Default, when using cfg(test) or when the test-utils cargo feature RelayMode::Staging is the default.

-
source

pub fn node_discovery(self, config: DiscoveryConfig) -> Self

Sets the node discovery mechanism.

+
source

pub fn node_discovery(self, config: DiscoveryConfig) -> Self

Sets the node discovery mechanism.

Node discovery enables connecting to other peers by only the NodeId. This usually works by the nodes publishing their RelayUrl and/or their direct addresses to some publicly available service.

See DiscoveryConfig::default for the defaults, note that the defaults change when using cfg(test).

-
source

pub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self

Optionally set a custom DNS resolver to use for the magic endpoint.

+
source

pub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self

Optionally set a custom DNS resolver to use for the magic endpoint.

The DNS resolver is used to resolve relay hostnames, and node addresses if DnsDiscovery is configured (which is the default).

By default, all magic endpoints share a DNS resolver, which is configured to use the host system’s DNS configuration. You can pass a custom instance of DnsResolver here to use a differently configured DNS resolver for this endpoint.

-
source

pub fn bind_port(self, port: u16) -> Self

Binds the node service to a different socket.

+
source

pub fn bind_port(self, port: u16) -> Self

Binds the node service to a different socket.

By default it binds to 127.0.0.1:11204.

-
source

pub fn secret_key(self, secret_key: SecretKey) -> Self

Uses the given SecretKey for the PublicKey instead of a newly generated one.

-
source

pub fn insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Self

Skip verification of SSL certificates from relay servers

+
source

pub fn secret_key(self, secret_key: SecretKey) -> Self

Uses the given SecretKey for the PublicKey instead of a newly generated one.

+
source

pub fn insecure_skip_relay_cert_verify(self, skip_verify: bool) -> Self

Skip verification of SSL certificates from relay servers

May only be used in tests.

-
source

pub fn register_gc_done_cb(self, cb: Box<dyn Fn() + Send>) -> Self

Register a callback for when GC is done.

-
source

pub fn keylog(self, keylog: bool) -> Self

Whether to log the SSL pre-master key.

+
source

pub fn register_gc_done_cb(self, cb: Box<dyn Fn() + Send>) -> Self

Register a callback for when GC is done.

+
source

pub fn keylog(self, keylog: bool) -> Self

Whether to log the SSL pre-master key.

If true and the SSLKEYLOGFILE environment variable is the path to a file this file will be used to log the SSL pre-master key. This is useful to inspect captured traffic.

-
source

pub async fn spawn(self) -> Result<Node<D>>

Spawns the Node in a tokio task.

+
source

pub async fn spawn(self) -> Result<Node<D>>

Spawns the Node in a tokio task.

This will create the underlying network server and spawn a tokio task accepting connections. The returned Node can be used to control the task as well as get information about it.

-
source

pub async fn build(self) -> Result<ProtocolBuilder<D>>

Builds a node without spawning it.

+
source

pub async fn build(self) -> Result<ProtocolBuilder<D>>

Builds a node without spawning it.

Returns a ProtocolBuilder, on which custom protocols can be registered with ProtocolBuilder::accept. To spawn the node, call ProtocolBuilder::spawn.

Trait Implementations§

source§

impl<D> Debug for Builder<D>
where @@ -119,14 +119,7 @@ get information about it.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/node/struct.Node.html b/pr/2674/docs/iroh/node/struct.Node.html index 0d1bd1a7d9..0382b82539 100644 --- a/pr/2674/docs/iroh/node/struct.Node.html +++ b/pr/2674/docs/iroh/node/struct.Node.html @@ -1,38 +1,38 @@ -Node in iroh::node - Rust

Struct iroh::node::Node

source ·
pub struct Node<D> { /* private fields */ }
Expand description

A server which implements the iroh node.

+Node in iroh::node - Rust

Struct iroh::node::Node

source ·
pub struct Node<D> { /* private fields */ }
Expand description

A server which implements the iroh node.

Clients can connect to this server and requests hashes from it.

The only way to create this is by using the Builder::spawn. You can use Node::memory or Node::persistent to create a suitable Builder.

This runs a tokio task which can be aborted and joined if desired. To join the task await the Node struct directly, it will complete when the task completes. If this is dropped the node task is not stopped but keeps running.

-

Implementations§

source§

impl Node<Store>

source

pub fn memory() -> Builder<Store>

Returns a new builder for the Node, by default configured to run in memory.

+

Implementations§

source§

impl Node<Store>

source

pub fn memory() -> Builder<Store>

Returns a new builder for the Node, by default configured to run in memory.

Once done with the builder call Builder::spawn to create the node.

-
source§

impl Node<Store>

source

pub async fn persistent(root: impl AsRef<Path>) -> Result<Builder<Store>>

Returns a new builder for the Node, configured to persist all data +

source§

impl Node<Store>

source

pub async fn persistent(root: impl AsRef<Path>) -> Result<Builder<Store>>

Returns a new builder for the Node, configured to persist all data from the given path.

Once done with the builder call Builder::spawn to create the node.

-
source§

impl<D: BaoStore> Node<D>

source

pub fn endpoint(&self) -> &Endpoint

Returns the Endpoint of the node.

+
source§

impl<D: BaoStore> Node<D>

source

pub fn endpoint(&self) -> &Endpoint

Returns the Endpoint of the node.

This can be used to establish connections to other nodes under any ALPNs other than the iroh internal ones. This is useful for some advanced use cases.

-
source

pub fn local_address(&self) -> Vec<SocketAddr>

The address on which the node socket is bound.

+
source

pub fn local_address(&self) -> Vec<SocketAddr>

The address on which the node socket is bound.

Note that this could be an unspecified address, if you need an address on which you can contact the node consider using Node::local_endpoint_addresses. However the port will always be the concrete port.

-
source

pub fn local_endpoints(&self) -> DirectAddrsStream

Lists the local endpoint of this node.

-
source

pub async fn local_endpoint_addresses(&self) -> Result<Vec<SocketAddr>>

Convenience method to get just the addr part of Node::local_endpoints.

-
source

pub fn node_id(&self) -> PublicKey

Returns the PublicKey of the node.

-
source

pub fn client(&self) -> &Iroh

Return a client to control this node over an in-memory channel.

-
source

pub fn local_pool_handle(&self) -> &LocalPoolHandle

Returns a reference to the used LocalPoolHandle.

-
source

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

Get the relay server we are connected to.

-
source

pub fn my_rpc_addr(&self) -> Option<SocketAddr>

Returns Some(addr) if an RPC endpoint is running, None otherwise.

-
source

pub async fn shutdown(self) -> Result<()>

Shutdown the node.

+
source

pub fn local_endpoints(&self) -> DirectAddrsStream

Lists the local endpoint of this node.

+
source

pub async fn local_endpoint_addresses(&self) -> Result<Vec<SocketAddr>>

Convenience method to get just the addr part of Node::local_endpoints.

+
source

pub fn node_id(&self) -> PublicKey

Returns the PublicKey of the node.

+
source

pub fn client(&self) -> &Iroh

Return a client to control this node over an in-memory channel.

+
source

pub fn local_pool_handle(&self) -> &LocalPoolHandle

Returns a reference to the used LocalPoolHandle.

+
source

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

Get the relay server we are connected to.

+
source

pub fn my_rpc_addr(&self) -> Option<SocketAddr>

Returns Some(addr) if an RPC endpoint is running, None otherwise.

+
source

pub async fn shutdown(self) -> Result<()>

Shutdown the node.

This does not gracefully terminate currently: all connections are closed and anything in-transit is lost. The shutdown behaviour will become more graceful in the future.

Returns a future that completes once all tasks terminated and all resources are closed. The future resolves to an error if the main task panicked.

-
source

pub fn cancel_token(&self) -> CancellationToken

Returns a token that can be used to cancel the node.

-
source

pub fn get_protocol<P: ProtocolHandler>(&self, alpn: &[u8]) -> Option<Arc<P>>

Returns a protocol handler for an ALPN.

+
source

pub fn cancel_token(&self) -> CancellationToken

Returns a token that can be used to cancel the node.

+
source

pub fn get_protocol<P: ProtocolHandler>(&self, alpn: &[u8]) -> Option<Arc<P>>

Returns a protocol handler for an ALPN.

This downcasts to the concrete type and returns None if the handler registered for alpn does not match the passed type.

Methods from Deref<Target = Iroh>§

source

pub fn blobs(&self) -> &Client

Returns the blobs client.

@@ -46,7 +46,7 @@ does not match the passed type.

waiting for things to stop gracefully.

source

pub async fn stats(&self) -> Result<BTreeMap<String, CounterStats>>

Fetches statistics of the running node.

source

pub async fn status(&self) -> Result<NodeStatus>

Fetches status information about this node.

-

Trait Implementations§

source§

impl<D: Clone> Clone for Node<D>

source§

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

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

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

Performs copy-assignment from source. Read more
source§

impl<D: Debug> Debug for Node<D>

source§

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

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

impl<D> Deref for Node<D>

§

type Target = Iroh

The resulting type after dereferencing.
source§

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

Dereferences the value.

Auto Trait Implementations§

§

impl<D> Freeze for Node<D>

§

impl<D> !RefUnwindSafe for Node<D>

§

impl<D> Send for Node<D>
where +

Trait Implementations§

source§

impl<D: Clone> Clone for Node<D>

source§

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

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

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

Performs copy-assignment from source. Read more
source§

impl<D: Debug> Debug for Node<D>

source§

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

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

impl<D> Deref for Node<D>

§

type Target = Iroh

The resulting type after dereferencing.
source§

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

Dereferences the value.

Auto Trait Implementations§

§

impl<D> Freeze for Node<D>

§

impl<D> !RefUnwindSafe for Node<D>

§

impl<D> Send for Node<D>
where D: Sync + Send,

§

impl<D> Sync for Node<D>
where D: Sync + Send,

§

impl<D> Unpin for Node<D>

§

impl<D> !UnwindSafe for Node<D>

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 @@ -92,14 +92,7 @@ waiting for things to stop gracefully.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/node/struct.ProtocolBuilder.html b/pr/2674/docs/iroh/node/struct.ProtocolBuilder.html index d4f39f4185..d5cb19e33b 100644 --- a/pr/2674/docs/iroh/node/struct.ProtocolBuilder.html +++ b/pr/2674/docs/iroh/node/struct.ProtocolBuilder.html @@ -1,10 +1,10 @@ -ProtocolBuilder in iroh::node - Rust

Struct iroh::node::ProtocolBuilder

source ·
pub struct ProtocolBuilder<D> { /* private fields */ }
Expand description

A node that is initialized but not yet spawned.

+ProtocolBuilder in iroh::node - Rust

Struct iroh::node::ProtocolBuilder

source ·
pub struct ProtocolBuilder<D> { /* private fields */ }
Expand description

A node that is initialized but not yet spawned.

This is returned from Builder::build and may be used to register custom protocols with Self::accept. It provides access to the services which are already started, the node’s endpoint and a client to the node.

Note that RPC calls performed with client returned from Self::client will not complete until the node is spawned.

-

Implementations§

source§

impl<D: Store> ProtocolBuilder<D>

source

pub fn accept( +

Implementations§

source§

impl<D: Store> ProtocolBuilder<D>

source

pub fn accept( self, alpn: &'static [u8], handler: Arc<dyn ProtocolHandler> @@ -39,20 +39,20 @@ until the node is spawned.

.accept(MY_ALPN, Arc::new(handler)) .spawn() .await?;

-
source

pub fn client(&self) -> &Iroh

Returns a client to control this node over an in-memory channel.

+
source

pub fn client(&self) -> &Iroh

Returns a client to control this node over an in-memory channel.

Note that RPC calls performed with the client will not complete until the node is spawned.

-
source

pub fn endpoint(&self) -> &Endpoint

Returns the Endpoint of the node.

-
source

pub fn blobs_db(&self) -> &D

Returns the crate::blobs::store::Store used by the node.

-
source

pub fn local_pool_handle(&self) -> &LocalPoolHandle

Returns a reference to the used LocalPoolHandle.

-
source

pub fn downloader(&self) -> &Downloader

Returns a reference to the Downloader used by the node.

-
source

pub fn gossip(&self) -> &Gossip

Returns a reference to the Gossip handle used by the node.

-
source

pub fn get_protocol<P: ProtocolHandler>(&self, alpn: &[u8]) -> Option<Arc<P>>

Returns a protocol handler for an ALPN.

+
source

pub fn endpoint(&self) -> &Endpoint

Returns the Endpoint of the node.

+
source

pub fn blobs_db(&self) -> &D

Returns the crate::blobs::store::Store used by the node.

+
source

pub fn local_pool_handle(&self) -> &LocalPoolHandle

Returns a reference to the used LocalPoolHandle.

+
source

pub fn downloader(&self) -> &Downloader

Returns a reference to the Downloader used by the node.

+
source

pub fn gossip(&self) -> &Gossip

Returns a reference to the Gossip handle used by the node.

+
source

pub fn get_protocol<P: ProtocolHandler>(&self, alpn: &[u8]) -> Option<Arc<P>>

Returns a protocol handler for an ALPN.

This downcasts to the concrete type and returns None if the handler registered for alpn does not match the passed type.

-
source

pub async fn spawn(self) -> Result<Node<D>>

Spawns the node and starts accepting connections.

-

Trait Implementations§

source§

impl<D> Debug for ProtocolBuilder<D>
where - Arc<NodeInner<D>>: Debug,

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<D> Freeze for ProtocolBuilder<D>

§

impl<D> !RefUnwindSafe for ProtocolBuilder<D>

§

impl<D> Send for ProtocolBuilder<D>
where +

source

pub async fn spawn(self) -> Result<Node<D>>

Spawns the node and starts accepting connections.

+

Trait Implementations§

source§

impl<D> Debug for ProtocolBuilder<D>
where + Arc<NodeInner<D>>: Debug,

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<D> Freeze for ProtocolBuilder<D>

§

impl<D> !RefUnwindSafe for ProtocolBuilder<D>

§

impl<D> Send for ProtocolBuilder<D>
where D: Sync + Send,

§

impl<D> !Sync for ProtocolBuilder<D>

§

impl<D> Unpin for ProtocolBuilder<D>

§

impl<D> !UnwindSafe for ProtocolBuilder<D>

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 @@ -95,14 +95,7 @@ does not match the passed type.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/node/trait.ProtocolHandler.html b/pr/2674/docs/iroh/node/trait.ProtocolHandler.html index 42b3cfe5fd..559ae20d91 100644 --- a/pr/2674/docs/iroh/node/trait.ProtocolHandler.html +++ b/pr/2674/docs/iroh/node/trait.ProtocolHandler.html @@ -1,4 +1,4 @@ -ProtocolHandler in iroh::node - Rust

Trait iroh::node::ProtocolHandler

source ·
pub trait ProtocolHandler: Send + Sync + IntoArcAny + Debug + 'static {
+ProtocolHandler in iroh::node - Rust

Trait iroh::node::ProtocolHandler

source ·
pub trait ProtocolHandler: Send + Sync + IntoArcAny + Debug + 'static {
     // Required method
     fn accept(self: Arc<Self>, conn: Connecting) -> BoxedFuture<Result<()>>;
 
diff --git a/pr/2674/docs/iroh/node/type.FsNode.html b/pr/2674/docs/iroh/node/type.FsNode.html
index 3135afa286..51bc9c4b17 100644
--- a/pr/2674/docs/iroh/node/type.FsNode.html
+++ b/pr/2674/docs/iroh/node/type.FsNode.html
@@ -1,5 +1,5 @@
-FsNode in iroh::node - Rust

Type Alias iroh::node::FsNode

source ·
pub type FsNode = Node<Store>;
Expand description

Persistent node.

-

Aliased Type§

struct FsNode { /* private fields */ }

Implementations§

source§

impl FsNode

source

pub async fn persistent(root: impl AsRef<Path>) -> Result<Builder<Store>>

Returns a new builder for the Node, configured to persist all data +FsNode in iroh::node - Rust

Type Alias iroh::node::FsNode

source ·
pub type FsNode = Node<Store>;
Expand description

Persistent node.

+

Aliased Type§

struct FsNode { /* private fields */ }

Implementations§

source§

impl FsNode

source

pub async fn persistent(root: impl AsRef<Path>) -> Result<Builder<Store>>

Returns a new builder for the Node, configured to persist all data from the given path.

Once done with the builder call Builder::spawn to create the node.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/node/type.IrohServerEndpoint.html b/pr/2674/docs/iroh/node/type.IrohServerEndpoint.html index d5f725f394..4a03987d27 100644 --- a/pr/2674/docs/iroh/node/type.IrohServerEndpoint.html +++ b/pr/2674/docs/iroh/node/type.IrohServerEndpoint.html @@ -1,3 +1,3 @@ -IrohServerEndpoint in iroh::node - Rust

Type Alias iroh::node::IrohServerEndpoint

source ·
pub type IrohServerEndpoint = ServerEndpoint<Request, Response>;
Expand description

The quic-rpc server endpoint for the iroh node.

+IrohServerEndpoint in iroh::node - Rust

Type Alias iroh::node::IrohServerEndpoint

source ·
pub type IrohServerEndpoint = ServerEndpoint<Request, Response>;
Expand description

The quic-rpc server endpoint for the iroh node.

We use a boxed endpoint here to allow having a concrete type for the server endpoint.

Aliased Type§

struct IrohServerEndpoint(/* private fields */);
\ No newline at end of file diff --git a/pr/2674/docs/iroh/node/type.MemNode.html b/pr/2674/docs/iroh/node/type.MemNode.html index 8c98c6bb80..3d355b461e 100644 --- a/pr/2674/docs/iroh/node/type.MemNode.html +++ b/pr/2674/docs/iroh/node/type.MemNode.html @@ -1,4 +1,4 @@ -MemNode in iroh::node - Rust

Type Alias iroh::node::MemNode

source ·
pub type MemNode = Node<Store>;
Expand description

In memory node.

-

Aliased Type§

struct MemNode { /* private fields */ }

Implementations§

source§

impl MemNode

source

pub fn memory() -> Builder<Store>

Returns a new builder for the Node, by default configured to run in memory.

+MemNode in iroh::node - Rust

Type Alias iroh::node::MemNode

source ·
pub type MemNode = Node<Store>;
Expand description

In memory node.

+

Aliased Type§

struct MemNode { /* private fields */ }

Implementations§

source§

impl MemNode

source

pub fn memory() -> Builder<Store>

Returns a new builder for the Node, by default configured to run in memory.

Once done with the builder call Builder::spawn to create the node.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/util/fs/fn.canonicalized_path_to_string.html b/pr/2674/docs/iroh/util/fs/fn.canonicalized_path_to_string.html index c2a32f19f3..aff263bd0d 100644 --- a/pr/2674/docs/iroh/util/fs/fn.canonicalized_path_to_string.html +++ b/pr/2674/docs/iroh/util/fs/fn.canonicalized_path_to_string.html @@ -1,4 +1,4 @@ -canonicalized_path_to_string in iroh::util::fs - Rust

Function iroh::util::fs::canonicalized_path_to_string

source ·
pub fn canonicalized_path_to_string(
+canonicalized_path_to_string in iroh::util::fs - Rust

Function iroh::util::fs::canonicalized_path_to_string

source ·
pub fn canonicalized_path_to_string(
     path: impl AsRef<Path>,
     must_be_relative: bool
 ) -> Result<String>
Expand description

This function converts an already canonicalized path to a string.

diff --git a/pr/2674/docs/iroh/util/fs/fn.key_to_path.html b/pr/2674/docs/iroh/util/fs/fn.key_to_path.html index 5dbd8247b9..456988ebc9 100644 --- a/pr/2674/docs/iroh/util/fs/fn.key_to_path.html +++ b/pr/2674/docs/iroh/util/fs/fn.key_to_path.html @@ -1,4 +1,4 @@ -key_to_path in iroh::util::fs - Rust

Function iroh::util::fs::key_to_path

source ·
pub fn key_to_path(
+key_to_path in iroh::util::fs - Rust

Function iroh::util::fs::key_to_path

source ·
pub fn key_to_path(
     key: impl AsRef<[u8]>,
     prefix: Option<String>,
     root: Option<PathBuf>
diff --git a/pr/2674/docs/iroh/util/fs/fn.load_secret_key.html b/pr/2674/docs/iroh/util/fs/fn.load_secret_key.html
index 1e86c9b9b0..f7d9ab312c 100644
--- a/pr/2674/docs/iroh/util/fs/fn.load_secret_key.html
+++ b/pr/2674/docs/iroh/util/fs/fn.load_secret_key.html
@@ -1,3 +1,3 @@
-load_secret_key in iroh::util::fs - Rust

Function iroh::util::fs::load_secret_key

source ·
pub async fn load_secret_key(key_path: PathBuf) -> Result<SecretKey>
Expand description

Loads a SecretKey from the provided file, or stores a newly generated one +load_secret_key in iroh::util::fs - Rust

Function iroh::util::fs::load_secret_key

source ·
pub async fn load_secret_key(key_path: PathBuf) -> Result<SecretKey>
Expand description

Loads a SecretKey from the provided file, or stores a newly generated one at the given location.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/util/fs/fn.path_content_info.html b/pr/2674/docs/iroh/util/fs/fn.path_content_info.html index f7a8949416..f6971d8bc9 100644 --- a/pr/2674/docs/iroh/util/fs/fn.path_content_info.html +++ b/pr/2674/docs/iroh/util/fs/fn.path_content_info.html @@ -1,2 +1,2 @@ -path_content_info in iroh::util::fs - Rust

Function iroh::util::fs::path_content_info

source ·
pub fn path_content_info(path: impl AsRef<Path>) -> Result<PathContent>
Expand description

Walks the directory to get the total size and number of files in directory or file

+path_content_info in iroh::util::fs - Rust

Function iroh::util::fs::path_content_info

source ·
pub fn path_content_info(path: impl AsRef<Path>) -> Result<PathContent>
Expand description

Walks the directory to get the total size and number of files in directory or file

\ No newline at end of file diff --git a/pr/2674/docs/iroh/util/fs/fn.path_to_key.html b/pr/2674/docs/iroh/util/fs/fn.path_to_key.html index d8f766b46a..808cf523f6 100644 --- a/pr/2674/docs/iroh/util/fs/fn.path_to_key.html +++ b/pr/2674/docs/iroh/util/fs/fn.path_to_key.html @@ -1,4 +1,4 @@ -path_to_key in iroh::util::fs - Rust

Function iroh::util::fs::path_to_key

source ·
pub fn path_to_key(
+path_to_key in iroh::util::fs - Rust

Function iroh::util::fs::path_to_key

source ·
pub fn path_to_key(
     path: impl AsRef<Path>,
     prefix: Option<String>,
     root: Option<PathBuf>
diff --git a/pr/2674/docs/iroh/util/fs/fn.relative_canonicalized_path_to_string.html b/pr/2674/docs/iroh/util/fs/fn.relative_canonicalized_path_to_string.html
index e9a836ad18..810b521552 100644
--- a/pr/2674/docs/iroh/util/fs/fn.relative_canonicalized_path_to_string.html
+++ b/pr/2674/docs/iroh/util/fs/fn.relative_canonicalized_path_to_string.html
@@ -1,4 +1,4 @@
-relative_canonicalized_path_to_string in iroh::util::fs - Rust

Function iroh::util::fs::relative_canonicalized_path_to_string

source ·
pub fn relative_canonicalized_path_to_string(
+relative_canonicalized_path_to_string in iroh::util::fs - Rust

Function iroh::util::fs::relative_canonicalized_path_to_string

source ·
pub fn relative_canonicalized_path_to_string(
     path: impl AsRef<Path>
 ) -> Result<String>
Expand description

This function converts a canonicalized relative path to a string, returning an error if the path is not valid unicode.

diff --git a/pr/2674/docs/iroh/util/fs/fn.scan_dir.html b/pr/2674/docs/iroh/util/fs/fn.scan_dir.html index c9e7c36237..e06bb7d9e3 100644 --- a/pr/2674/docs/iroh/util/fs/fn.scan_dir.html +++ b/pr/2674/docs/iroh/util/fs/fn.scan_dir.html @@ -1,2 +1,2 @@ -scan_dir in iroh::util::fs - Rust

Function iroh::util::fs::scan_dir

source ·
pub fn scan_dir(root: PathBuf, wrap: WrapOption) -> Result<Vec<DataSource>>
Expand description

Create data sources from a directory.

+scan_dir in iroh::util::fs - Rust

Function iroh::util::fs::scan_dir

source ·
pub fn scan_dir(root: PathBuf, wrap: WrapOption) -> Result<Vec<DataSource>>
Expand description

Create data sources from a directory.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/util/fs/fn.scan_path.html b/pr/2674/docs/iroh/util/fs/fn.scan_path.html index bb6c0776cc..1a0d911f70 100644 --- a/pr/2674/docs/iroh/util/fs/fn.scan_path.html +++ b/pr/2674/docs/iroh/util/fs/fn.scan_path.html @@ -1,2 +1,2 @@ -scan_path in iroh::util::fs - Rust

Function iroh::util::fs::scan_path

source ·
pub fn scan_path(path: PathBuf, wrap: WrapOption) -> Result<Vec<DataSource>>
Expand description

Create data sources from a path.

+scan_path in iroh::util::fs - Rust

Function iroh::util::fs::scan_path

source ·
pub fn scan_path(path: PathBuf, wrap: WrapOption) -> Result<Vec<DataSource>>
Expand description

Create data sources from a path.

\ No newline at end of file diff --git a/pr/2674/docs/iroh/util/fs/index.html b/pr/2674/docs/iroh/util/fs/index.html index 54000319de..785605e32f 100644 --- a/pr/2674/docs/iroh/util/fs/index.html +++ b/pr/2674/docs/iroh/util/fs/index.html @@ -1,4 +1,4 @@ -iroh::util::fs - Rust

Module iroh::util::fs

source ·
Expand description

Utilities for filesystem operations.

+iroh::util::fs - Rust

Module iroh::util::fs

source ·
Expand description

Utilities for filesystem operations.

Structs§

Functions§

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/util/fs/struct.PathContent.html b/pr/2674/docs/iroh/util/fs/struct.PathContent.html index 74fdf78540..ffc808f33c 100644 --- a/pr/2674/docs/iroh/util/fs/struct.PathContent.html +++ b/pr/2674/docs/iroh/util/fs/struct.PathContent.html @@ -1,4 +1,4 @@ -PathContent in iroh::util::fs - Rust

Struct iroh::util::fs::PathContent

source ·
pub struct PathContent {
+PathContent in iroh::util::fs - Rust

Struct iroh::util::fs::PathContent

source ·
pub struct PathContent {
     pub size: u64,
     pub files: u64,
 }
Expand description

Information about the content on a path

@@ -48,14 +48,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/util/index.html b/pr/2674/docs/iroh/util/index.html index 051c56aac4..0afdfc45ad 100644 --- a/pr/2674/docs/iroh/util/index.html +++ b/pr/2674/docs/iroh/util/index.html @@ -1,2 +1,2 @@ -iroh::util - Rust

Module iroh::util

source ·
Expand description

Utilities for working with iroh.

+iroh::util - Rust

Module iroh::util

source ·
Expand description

Utilities for working with iroh.

Modules§

  • Utilities for filesystem operations.
  • Utilities for working with tokio io
  • Configuration paths for iroh.
  • Generic utilities to track progress of data transfers.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/util/io/enum.BaoValidationError.html b/pr/2674/docs/iroh/util/io/enum.BaoValidationError.html index 65353b4f63..cfded11734 100644 --- a/pr/2674/docs/iroh/util/io/enum.BaoValidationError.html +++ b/pr/2674/docs/iroh/util/io/enum.BaoValidationError.html @@ -1,11 +1,11 @@ -BaoValidationError in iroh::util::io - Rust

Enum iroh::util::io::BaoValidationError

source ·
pub enum BaoValidationError {
+BaoValidationError in iroh::util::io - Rust

Enum iroh::util::io::BaoValidationError

source ·
pub enum BaoValidationError {
     IoError(Error),
     EncodeError(EncodeError),
 }
Expand description

Todo: gather more information about validation errors. E.g. offset

io::Error should be just the fallback when a more specific error is not available.

Variants§

§

IoError(Error)

Generic io error. We were unable to read the data.

§

EncodeError(EncodeError)

The data failed to validate

-

Trait Implementations§

source§

impl Debug for BaoValidationError

source§

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

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

impl Display for BaoValidationError

source§

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

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

impl Error for BaoValidationError

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<EncodeError> for BaoValidationError

source§

fn from(source: EncodeError) -> Self

Converts to this type from the input type.
source§

impl From<Error> for BaoValidationError

source§

fn from(source: Error) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Debug for BaoValidationError

source§

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

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

impl Display for BaoValidationError

source§

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

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

impl Error for BaoValidationError

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<EncodeError> for BaoValidationError

source§

fn from(source: EncodeError) -> Self

Converts to this type from the input type.
source§

impl From<Error> for BaoValidationError

source§

fn from(source: Error) -> Self

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 @@ -47,14 +47,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/util/io/index.html b/pr/2674/docs/iroh/util/io/index.html index 8e1daf0164..2cefc390a8 100644 --- a/pr/2674/docs/iroh/util/io/index.html +++ b/pr/2674/docs/iroh/util/io/index.html @@ -1,2 +1,2 @@ -iroh::util::io - Rust

Module iroh::util::io

source ·
Expand description

Utilities for working with tokio io

+iroh::util::io - Rust

Module iroh::util::io

source ·
Expand description

Utilities for working with tokio io

Enums§

\ No newline at end of file diff --git a/pr/2674/docs/iroh/util/path/enum.IrohPaths.html b/pr/2674/docs/iroh/util/path/enum.IrohPaths.html index dc9ae71c8c..746867e9bf 100644 --- a/pr/2674/docs/iroh/util/path/enum.IrohPaths.html +++ b/pr/2674/docs/iroh/util/path/enum.IrohPaths.html @@ -1,4 +1,4 @@ -IrohPaths in iroh::util::path - Rust

Enum iroh::util::path::IrohPaths

source ·
pub enum IrohPaths {
+IrohPaths in iroh::util::path - Rust

Enum iroh::util::path::IrohPaths

source ·
pub enum IrohPaths {
     SecretKey,
     BaoStoreDir,
     DocsDatabase,
@@ -15,7 +15,7 @@
 
§

RpcLock

Path to RPC lock file, containing the RPC port if running.

§

DefaultAuthor

Path to the iroh_docs::AuthorId of the node’s default author

Implementations§

source§

impl IrohPaths

source

pub fn with_root(self, root: impl AsRef<Path>) -> PathBuf

Get the path for this IrohPaths by joining the name to a root directory.

-

Trait Implementations§

source§

impl AsRef<Path> for IrohPaths

source§

fn as_ref(&self) -> &Path

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

impl AsRef<str> for IrohPaths

source§

fn as_ref(&self) -> &str

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

impl Clone for IrohPaths

source§

fn clone(&self) -> IrohPaths

Returns a 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 IrohPaths

source§

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

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

impl Display for IrohPaths

source§

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

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

impl FromStr for IrohPaths

§

type Err = ParseError

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

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

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

impl PartialEq for IrohPaths

source§

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

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

Trait Implementations§

source§

impl AsRef<Path> for IrohPaths

source§

fn as_ref(&self) -> &Path

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

impl AsRef<str> for IrohPaths

source§

fn as_ref(&self) -> &str

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

impl Clone for IrohPaths

source§

fn clone(&self) -> IrohPaths

Returns a 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 IrohPaths

source§

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

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

impl Display for IrohPaths

source§

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

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

impl FromStr for IrohPaths

§

type Err = ParseError

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

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

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

impl PartialEq for IrohPaths

source§

fn eq(&self, other: &IrohPaths) -> 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 TryFrom<&str> for IrohPaths

§

type Error = ParseError

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

fn try_from(s: &str) -> Result<IrohPaths, <Self as TryFrom<&str>>::Error>

Performs the conversion.
source§

impl Copy for IrohPaths

source§

impl Eq for IrohPaths

source§

impl StructuralPartialEq for IrohPaths

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 @@ -65,14 +65,7 @@ sufficient, and should not be overridden without very good reason.
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/util/path/index.html b/pr/2674/docs/iroh/util/path/index.html index a4fe500cd6..a407950ca9 100644 --- a/pr/2674/docs/iroh/util/path/index.html +++ b/pr/2674/docs/iroh/util/path/index.html @@ -1,2 +1,2 @@ -iroh::util::path - Rust

Module iroh::util::path

source ·
Expand description

Configuration paths for iroh.

+iroh::util::path - Rust

Module iroh::util::path

source ·
Expand description

Configuration paths for iroh.

Enums§

  • Paths to files or directories used by Iroh.
\ No newline at end of file diff --git a/pr/2674/docs/iroh/util/progress/index.html b/pr/2674/docs/iroh/util/progress/index.html index c23337a103..1ea4a9893d 100644 --- a/pr/2674/docs/iroh/util/progress/index.html +++ b/pr/2674/docs/iroh/util/progress/index.html @@ -1,4 +1,4 @@ -iroh::util::progress - Rust

Module iroh::util::progress

source ·
Expand description

Generic utilities to track progress of data transfers.

+iroh::util::progress - Rust

Module iroh::util::progress

source ·
Expand description

Generic utilities to track progress of data transfers.

This is not especially specific to iroh but can be helpful together with it. The ProgressEmitter has a ProgressEmitter::wrap_async_read method which can make it easy to track process of transfers.

diff --git a/pr/2674/docs/iroh/util/progress/struct.Progress.html b/pr/2674/docs/iroh/util/progress/struct.Progress.html index f41b3de410..ec5cef748d 100644 --- a/pr/2674/docs/iroh/util/progress/struct.Progress.html +++ b/pr/2674/docs/iroh/util/progress/struct.Progress.html @@ -1,4 +1,4 @@ -Progress in iroh::util::progress - Rust

Struct iroh::util::progress::Progress

source ·
pub struct Progress<T>(/* private fields */);
Expand description

A sender for progress messages.

+Progress in iroh::util::progress - Rust

Struct iroh::util::progress::Progress

source ·
pub struct Progress<T>(/* private fields */);
Expand description

A sender for progress messages.

This may optionally be a no-op if the Progress::none constructor is used.

Implementations§

source§

impl<T: Debug + Send + Sync + 'static> Progress<T>

source

pub fn new(sender: Sender<T>) -> Self

Create a new progress sender.

source

pub fn none() -> Self

Create a no-op progress sender.

@@ -51,14 +51,7 @@ U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/util/progress/struct.ProgressAsyncReader.html b/pr/2674/docs/iroh/util/progress/struct.ProgressAsyncReader.html index 3f926a91b9..f24ca17f23 100644 --- a/pr/2674/docs/iroh/util/progress/struct.ProgressAsyncReader.html +++ b/pr/2674/docs/iroh/util/progress/struct.ProgressAsyncReader.html @@ -1,4 +1,4 @@ -ProgressAsyncReader in iroh::util::progress - Rust

Struct iroh::util::progress::ProgressAsyncReader

source ·
pub struct ProgressAsyncReader<R: AsyncRead + Unpin> { /* private fields */ }
Expand description

A wrapper around [AsyncRead] which increments a ProgressEmitter.

+ProgressAsyncReader in iroh::util::progress - Rust

Struct iroh::util::progress::ProgressAsyncReader

source ·
pub struct ProgressAsyncReader<R: AsyncRead + Unpin> { /* private fields */ }
Expand description

A wrapper around [AsyncRead] which increments a ProgressEmitter.

This can be used just like the underlying [AsyncRead] but increments progress for each byte read. Create this using ProgressEmitter::wrap_async_read.

Trait Implementations§

source§

impl<R> AsyncRead for ProgressAsyncReader<R>
where @@ -109,14 +109,7 @@ underlying reader. Read more

From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/util/progress/struct.ProgressEmitter.html b/pr/2674/docs/iroh/util/progress/struct.ProgressEmitter.html index becc5db038..977ab2664f 100644 --- a/pr/2674/docs/iroh/util/progress/struct.ProgressEmitter.html +++ b/pr/2674/docs/iroh/util/progress/struct.ProgressEmitter.html @@ -1,4 +1,4 @@ -ProgressEmitter in iroh::util::progress - Rust

Struct iroh::util::progress::ProgressEmitter

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

A generic progress event emitter.

+ProgressEmitter in iroh::util::progress - Rust

Struct iroh::util::progress::ProgressEmitter

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

A generic progress event emitter.

It is created with a total value to reach and at which increments progress should be emitted. E.g. when downloading a file of any size but you want percentage increments you would create ProgressEmitter::new(file_size_in_bytes, 100) and @@ -61,14 +61,7 @@ from 1..steps.

U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh/util/progress/struct.ProgressWriter.html b/pr/2674/docs/iroh/util/progress/struct.ProgressWriter.html index 1da9d97c5e..113efd881d 100644 --- a/pr/2674/docs/iroh/util/progress/struct.ProgressWriter.html +++ b/pr/2674/docs/iroh/util/progress/struct.ProgressWriter.html @@ -1,4 +1,4 @@ -ProgressWriter in iroh::util::progress - Rust

Struct iroh::util::progress::ProgressWriter

source ·
pub struct ProgressWriter<W> { /* private fields */ }
Expand description

A writer that tries to send the total number of bytes written after each write

+ProgressWriter in iroh::util::progress - Rust

Struct iroh::util::progress::ProgressWriter

source ·
pub struct ProgressWriter<W> { /* private fields */ }
Expand description

A writer that tries to send the total number of bytes written after each write

It sends the total number instead of just an increment so the update is self-contained

Implementations§

source§

impl<W> ProgressWriter<W>

source

pub fn new(inner: W) -> (Self, Receiver<u64>)

Create a new ProgressWriter from an inner writer

source

pub fn into_inner(self) -> W

Return the inner writer

@@ -121,14 +121,7 @@ cleanly. Read more
From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> -if into_left is true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where - F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> -if into_left(&self) returns true. -Converts self into a Right variant of Either<Self, Self> -otherwise. Read more
§

impl<T> Pipe for T
where +

§

impl<T> Pipe for T
where T: ?Sized,

§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where diff --git a/pr/2674/docs/iroh_base/all.html b/pr/2674/docs/iroh_base/all.html index b2057e4a75..f76cb28680 100644 --- a/pr/2674/docs/iroh_base/all.html +++ b/pr/2674/docs/iroh_base/all.html @@ -1 +1 @@ -List of all items in this crate
\ No newline at end of file +List of all items in this crate
\ No newline at end of file diff --git a/pr/2674/docs/iroh_base/base32/enum.DecodeKind.html b/pr/2674/docs/iroh_base/base32/enum.DecodeKind.html index 39439910c6..7e2d16a556 100644 --- a/pr/2674/docs/iroh_base/base32/enum.DecodeKind.html +++ b/pr/2674/docs/iroh_base/base32/enum.DecodeKind.html @@ -1,4 +1,4 @@ -DecodeKind in iroh_base::base32 - Rust

Enum iroh_base::base32::DecodeKind

pub enum DecodeKind {
+DecodeKind in iroh_base::base32 - Rust

Enum iroh_base::base32::DecodeKind

pub enum DecodeKind {
     Length,
     Symbol,
     Trailing,
diff --git a/pr/2674/docs/iroh_base/base32/enum.HexOrBase32ParseError.html b/pr/2674/docs/iroh_base/base32/enum.HexOrBase32ParseError.html
index dc293db949..16603f1bfb 100644
--- a/pr/2674/docs/iroh_base/base32/enum.HexOrBase32ParseError.html
+++ b/pr/2674/docs/iroh_base/base32/enum.HexOrBase32ParseError.html
@@ -1,10 +1,10 @@
-HexOrBase32ParseError in iroh_base::base32 - Rust

Enum iroh_base::base32::HexOrBase32ParseError

source ·
pub enum HexOrBase32ParseError {
+HexOrBase32ParseError in iroh_base::base32 - Rust

Enum iroh_base::base32::HexOrBase32ParseError

source ·
pub enum HexOrBase32ParseError {
     Base32(DecodeError),
     Hex(FromHexError),
 }
Expand description

Error when parsing a hex or base32 string.

Variants§

§

Base32(DecodeError)

Error when decoding the base32.

§

Hex(FromHexError)

Error when decoding the public key.

-

Trait Implementations§

source§

impl Debug for HexOrBase32ParseError

source§

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

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

impl Display for HexOrBase32ParseError

source§

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

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

impl Error for HexOrBase32ParseError

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<DecodeError> for HexOrBase32ParseError

source§

fn from(source: DecodeError) -> Self

Converts to this type from the input type.
source§

impl From<FromHexError> for HexOrBase32ParseError

source§

fn from(source: FromHexError) -> Self

Converts to this type from the input type.
source§

impl From<HexOrBase32ParseError> for KeyParsingError

source§

fn from(source: HexOrBase32ParseError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Debug for HexOrBase32ParseError

source§

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

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

impl Display for HexOrBase32ParseError

source§

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

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

impl Error for HexOrBase32ParseError

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<DecodeError> for HexOrBase32ParseError

source§

fn from(source: DecodeError) -> Self

Converts to this type from the input type.
source§

impl From<FromHexError> for HexOrBase32ParseError

source§

fn from(source: FromHexError) -> Self

Converts to this type from the input type.
source§

impl From<HexOrBase32ParseError> for KeyParsingError

source§

fn from(source: HexOrBase32ParseError) -> Self

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

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/pr/2674/docs/iroh_base/base32/fn.fmt.html b/pr/2674/docs/iroh_base/base32/fn.fmt.html index 7632a3f1d9..5898ef662d 100644 --- a/pr/2674/docs/iroh_base/base32/fn.fmt.html +++ b/pr/2674/docs/iroh_base/base32/fn.fmt.html @@ -1,2 +1,2 @@ -fmt in iroh_base::base32 - Rust

Function iroh_base::base32::fmt

source ·
pub fn fmt(bytes: impl AsRef<[u8]>) -> String
Expand description

Convert to a base32 string

+fmt in iroh_base::base32 - Rust

Function iroh_base::base32::fmt

source ·
pub fn fmt(bytes: impl AsRef<[u8]>) -> String
Expand description

Convert to a base32 string

\ No newline at end of file diff --git a/pr/2674/docs/iroh_base/base32/fn.fmt_append.html b/pr/2674/docs/iroh_base/base32/fn.fmt_append.html index 78d6b8bf26..da8320daf6 100644 --- a/pr/2674/docs/iroh_base/base32/fn.fmt_append.html +++ b/pr/2674/docs/iroh_base/base32/fn.fmt_append.html @@ -1,2 +1,2 @@ -fmt_append in iroh_base::base32 - Rust

Function iroh_base::base32::fmt_append

source ·
pub fn fmt_append(bytes: impl AsRef<[u8]>, out: &mut String)
Expand description

Convert to a base32 string and append out out

+fmt_append in iroh_base::base32 - Rust

Function iroh_base::base32::fmt_append

source ·
pub fn fmt_append(bytes: impl AsRef<[u8]>, out: &mut String)
Expand description

Convert to a base32 string and append out out

\ No newline at end of file diff --git a/pr/2674/docs/iroh_base/base32/fn.fmt_short.html b/pr/2674/docs/iroh_base/base32/fn.fmt_short.html index b3a0509fd1..0753dddb66 100644 --- a/pr/2674/docs/iroh_base/base32/fn.fmt_short.html +++ b/pr/2674/docs/iroh_base/base32/fn.fmt_short.html @@ -1,2 +1,2 @@ -fmt_short in iroh_base::base32 - Rust

Function iroh_base::base32::fmt_short

source ·
pub fn fmt_short(bytes: impl AsRef<[u8]>) -> String
Expand description

Convert to a base32 string limited to the first 10 bytes

+fmt_short in iroh_base::base32 - Rust

Function iroh_base::base32::fmt_short

source ·
pub fn fmt_short(bytes: impl AsRef<[u8]>) -> String
Expand description

Convert to a base32 string limited to the first 10 bytes

\ No newline at end of file diff --git a/pr/2674/docs/iroh_base/base32/fn.parse_array.html b/pr/2674/docs/iroh_base/base32/fn.parse_array.html index f4554dea12..807479ac4d 100644 --- a/pr/2674/docs/iroh_base/base32/fn.parse_array.html +++ b/pr/2674/docs/iroh_base/base32/fn.parse_array.html @@ -1,2 +1,2 @@ -parse_array in iroh_base::base32 - Rust

Function iroh_base::base32::parse_array

source ·
pub fn parse_array<const N: usize>(input: &str) -> Result<[u8; N], DecodeError>
Expand description

Parse from a base32 string into a byte array

+parse_array in iroh_base::base32 - Rust

Function iroh_base::base32::parse_array

source ·
pub fn parse_array<const N: usize>(input: &str) -> Result<[u8; N], DecodeError>
Expand description

Parse from a base32 string into a byte array

\ No newline at end of file diff --git a/pr/2674/docs/iroh_base/base32/fn.parse_array_hex_or_base32.html b/pr/2674/docs/iroh_base/base32/fn.parse_array_hex_or_base32.html index 62e68c9b20..98b185db11 100644 --- a/pr/2674/docs/iroh_base/base32/fn.parse_array_hex_or_base32.html +++ b/pr/2674/docs/iroh_base/base32/fn.parse_array_hex_or_base32.html @@ -1,4 +1,4 @@ -parse_array_hex_or_base32 in iroh_base::base32 - Rust

Function iroh_base::base32::parse_array_hex_or_base32

source ·
pub fn parse_array_hex_or_base32<const LEN: usize>(
+parse_array_hex_or_base32 in iroh_base::base32 - Rust

Function iroh_base::base32::parse_array_hex_or_base32

source ·
pub fn parse_array_hex_or_base32<const LEN: usize>(
     input: &str
 ) -> Result<[u8; LEN], HexOrBase32ParseError>
Expand description

Parse a fixed length hex or base32 string into a byte array

For fixed length we can know the encoding by the length of the string.

diff --git a/pr/2674/docs/iroh_base/base32/fn.parse_vec.html b/pr/2674/docs/iroh_base/base32/fn.parse_vec.html index e5cd50db2c..953241d7d0 100644 --- a/pr/2674/docs/iroh_base/base32/fn.parse_vec.html +++ b/pr/2674/docs/iroh_base/base32/fn.parse_vec.html @@ -1,2 +1,2 @@ -parse_vec in iroh_base::base32 - Rust

Function iroh_base::base32::parse_vec

source ·
pub fn parse_vec(input: &str) -> Result<Vec<u8>, DecodeError>
Expand description

Decode form a base32 string to a vector of bytes

+parse_vec in iroh_base::base32 - Rust

Function iroh_base::base32::parse_vec

source ·
pub fn parse_vec(input: &str) -> Result<Vec<u8>, DecodeError>
Expand description

Decode form a base32 string to a vector of bytes

\ No newline at end of file diff --git a/pr/2674/docs/iroh_base/base32/index.html b/pr/2674/docs/iroh_base/base32/index.html index 4306f13a2b..f8e197c741 100644 --- a/pr/2674/docs/iroh_base/base32/index.html +++ b/pr/2674/docs/iroh_base/base32/index.html @@ -1 +1 @@ -iroh_base::base32 - Rust

Module iroh_base::base32

source ·

Structs§

Enums§

Functions§

  • Convert to a base32 string
  • Convert to a base32 string and append out out
  • Convert to a base32 string limited to the first 10 bytes
  • Parse from a base32 string into a byte array
  • Parse a fixed length hex or base32 string into a byte array
  • Decode form a base32 string to a vector of bytes
\ No newline at end of file +iroh_base::base32 - Rust

Module iroh_base::base32

source ·

Structs§

Enums§

Functions§

  • Convert to a base32 string
  • Convert to a base32 string and append out out
  • Convert to a base32 string limited to the first 10 bytes
  • Parse from a base32 string into a byte array
  • Parse a fixed length hex or base32 string into a byte array
  • Decode form a base32 string to a vector of bytes
\ No newline at end of file diff --git a/pr/2674/docs/iroh_base/base32/struct.DecodeError.html b/pr/2674/docs/iroh_base/base32/struct.DecodeError.html index 274e65a854..2cd09d5489 100644 --- a/pr/2674/docs/iroh_base/base32/struct.DecodeError.html +++ b/pr/2674/docs/iroh_base/base32/struct.DecodeError.html @@ -1,11 +1,11 @@ -DecodeError in iroh_base::base32 - Rust

Struct iroh_base::base32::DecodeError

pub struct DecodeError {
+DecodeError in iroh_base::base32 - Rust

Struct iroh_base::base32::DecodeError

pub struct DecodeError {
     pub position: usize,
     pub kind: DecodeKind,
 }
Expand description

Decoding error

Fields§

§position: usize

Error position

This position is always a valid input position and represents the first encountered error.

§kind: DecodeKind

Error kind

-

Trait Implementations§

§

impl Clone for DecodeError

§

fn clone(&self) -> DecodeError

Returns a 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 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

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

source§

fn from(source: DecodeError) -> Self

Converts to this type from the input type.
source§

impl From<DecodeError> for HexOrBase32ParseError

source§

fn from(source: DecodeError) -> Self

Converts to this type from the input type.
§

impl PartialEq for DecodeError

§

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

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

Trait Implementations§

§

impl Clone for DecodeError

§

fn clone(&self) -> DecodeError

Returns a 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 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

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

source§

fn from(source: DecodeError) -> Self

Converts to this type from the input type.
source§

impl From<DecodeError> for HexOrBase32ParseError

source§

fn from(source: DecodeError) -> Self

Converts to this type from the input type.
§

impl PartialEq for DecodeError

§

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

§

impl Eq for DecodeError

§

impl StructuralPartialEq for DecodeError

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

impl<T> Borrow<T> for T
where diff --git a/pr/2674/docs/iroh_base/hash/enum.BlobFormat.html b/pr/2674/docs/iroh_base/hash/enum.BlobFormat.html index 03e080cb95..eccfbb96ad 100644 --- a/pr/2674/docs/iroh_base/hash/enum.BlobFormat.html +++ b/pr/2674/docs/iroh_base/hash/enum.BlobFormat.html @@ -1,4 +1,4 @@ -BlobFormat in iroh_base::hash - Rust

Enum iroh_base::hash::BlobFormat

source ·
pub enum BlobFormat {
+BlobFormat in iroh_base::hash - Rust

Enum iroh_base::hash::BlobFormat

source ·
pub enum BlobFormat {
     Raw,
     HashSeq,
 }
Expand description

A format identifier

@@ -6,8 +6,8 @@
§

HashSeq

A sequence of BLAKE3 hashes

Implementations§

source§

impl BlobFormat

source

pub const fn is_raw(&self) -> bool

Is raw format

source

pub const fn is_hash_seq(&self) -> bool

Is hash seq format

-

Trait Implementations§

source§

impl Clone for BlobFormat

source§

fn clone(&self) -> BlobFormat

Returns a 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 BlobFormat

source§

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

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

impl Default for BlobFormat

source§

fn default() -> BlobFormat

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

impl<'de> Deserialize<'de> for BlobFormat

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 BlobFormat

source§

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

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

impl From<BlobFormat> for u64

source§

fn from(value: BlobFormat) -> Self

Converts to this type from the input type.
source§

impl Hash for BlobFormat

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 BlobFormat

source§

fn clone(&self) -> BlobFormat

Returns a 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 BlobFormat

source§

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

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

impl Default for BlobFormat

source§

fn default() -> BlobFormat

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

impl<'de> Deserialize<'de> for BlobFormat

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 BlobFormat

source§

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

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

impl From<BlobFormat> for u64

source§

fn from(value: BlobFormat) -> Self

Converts to this type from the input type.
source§

impl Hash for BlobFormat

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 MaxSize for BlobFormat

source§

const POSTCARD_MAX_SIZE: usize = 1usize

The maximum possible size that the serialization of this type can have, in bytes.
source§

impl Ord for BlobFormat

source§

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

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/2674/docs/iroh_base/hash/index.html b/pr/2674/docs/iroh_base/hash/index.html index 05aaaabfc5..b28b603039 100644 --- a/pr/2674/docs/iroh_base/hash/index.html +++ b/pr/2674/docs/iroh_base/hash/index.html @@ -1,2 +1,2 @@ -iroh_base::hash - Rust

Module iroh_base::hash

source ·
Expand description

The blake3 hash used in Iroh.

+iroh_base::hash - Rust

Module iroh_base::hash

source ·
Expand description

The blake3 hash used in Iroh.

Structs§

Enums§

\ No newline at end of file diff --git a/pr/2674/docs/iroh_base/hash/struct.Hash.html b/pr/2674/docs/iroh_base/hash/struct.Hash.html index a5e43cefd0..7e21ac9ed8 100644 --- a/pr/2674/docs/iroh_base/hash/struct.Hash.html +++ b/pr/2674/docs/iroh_base/hash/struct.Hash.html @@ -1,4 +1,4 @@ -Hash in iroh_base::hash - Rust

Struct iroh_base::hash::Hash

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

Hash type used throughout.

+Hash in iroh_base::hash - Rust

Struct iroh_base::hash::Hash

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

Hash type used throughout.

Implementations§

source§

impl Hash

source

pub const EMPTY: Hash = _

The hash for the empty byte range (b"").

source

pub fn new(buf: impl AsRef<[u8]>) -> Self

Calculate the hash of the provided bytes.

source

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

Bytes of the hash.

@@ -6,8 +6,8 @@
source

pub fn to_hex(&self) -> String

Convert the hash to a hex string.

source

pub fn fmt_short(&self) -> String

Convert to a base32 string limited to the first 10 bytes for a friendly string 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

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

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

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 Hash

source§

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

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

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

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 32]> for Hash

source§

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

Converts to this type from the input type.
source§

impl From<Hash> for [u8; 32]

source§

fn from(value: Hash) -> Self

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Self

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Self

Converts to this type from the input type.
source§

impl FromStr for Hash

§

type Err = HexOrBase32ParseError

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 Hash for Hash

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

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

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

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 Hash

source§

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

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

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

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 32]> for Hash

source§

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

Converts to this type from the input type.
source§

impl From<Hash> for [u8; 32]

source§

fn from(value: Hash) -> Self

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Self

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Self

Converts to this type from the input type.
source§

impl FromStr for Hash

§

type Err = HexOrBase32ParseError

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 Hash for Hash

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 Key for Hash

source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
source§

impl MaxSize for Hash

source§

const POSTCARD_MAX_SIZE: usize = 32usize

The maximum possible size that the serialization of this type can have, in bytes.
source§

impl Ord for Hash

source§

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/2674/docs/iroh_base/hash/struct.HashAndFormat.html b/pr/2674/docs/iroh_base/hash/struct.HashAndFormat.html index 00ec7ac1e5..f2ceaaeceb 100644 --- a/pr/2674/docs/iroh_base/hash/struct.HashAndFormat.html +++ b/pr/2674/docs/iroh_base/hash/struct.HashAndFormat.html @@ -1,4 +1,4 @@ -HashAndFormat in iroh_base::hash - Rust

Struct iroh_base::hash::HashAndFormat

source ·
pub struct HashAndFormat {
+HashAndFormat in iroh_base::hash - Rust

Struct iroh_base::hash::HashAndFormat

source ·
pub struct HashAndFormat {
     pub hash: Hash,
     pub format: BlobFormat,
 }
Expand description

A hash and format pair

diff --git a/pr/2674/docs/iroh_base/index.html b/pr/2674/docs/iroh_base/index.html index e6a54923cc..5536685bde 100644 --- a/pr/2674/docs/iroh_base/index.html +++ b/pr/2674/docs/iroh_base/index.html @@ -1,2 +1,2 @@ -iroh_base - Rust

Crate iroh_base

source ·
Expand description

Base types and utilities for Iroh

+iroh_base - Rust

Crate iroh_base

source ·
Expand description

Base types and utilities for Iroh

Modules§

\ No newline at end of file diff --git a/pr/2674/docs/iroh_base/key/constant.PUBLIC_KEY_LENGTH.html b/pr/2674/docs/iroh_base/key/constant.PUBLIC_KEY_LENGTH.html index 550800eb15..8bea551703 100644 --- a/pr/2674/docs/iroh_base/key/constant.PUBLIC_KEY_LENGTH.html +++ b/pr/2674/docs/iroh_base/key/constant.PUBLIC_KEY_LENGTH.html @@ -1,2 +1,2 @@ -PUBLIC_KEY_LENGTH in iroh_base::key - Rust

Constant iroh_base::key::PUBLIC_KEY_LENGTH

pub const PUBLIC_KEY_LENGTH: usize = 32; // 32usize
Expand description

The length of an ed25519 PublicKey, in bytes.

+PUBLIC_KEY_LENGTH in iroh_base::key - Rust

Constant iroh_base::key::PUBLIC_KEY_LENGTH

pub const PUBLIC_KEY_LENGTH: usize = 32; // 32usize
Expand description

The length of an ed25519 PublicKey, in bytes.

\ No newline at end of file diff --git a/pr/2674/docs/iroh_base/key/enum.KeyParsingError.html b/pr/2674/docs/iroh_base/key/enum.KeyParsingError.html index ffb2174413..e6668b5a73 100644 --- a/pr/2674/docs/iroh_base/key/enum.KeyParsingError.html +++ b/pr/2674/docs/iroh_base/key/enum.KeyParsingError.html @@ -1,10 +1,10 @@ -KeyParsingError in iroh_base::key - Rust

Enum iroh_base::key::KeyParsingError

source ·
pub enum KeyParsingError {
+KeyParsingError in iroh_base::key - Rust

Enum iroh_base::key::KeyParsingError

source ·
pub enum KeyParsingError {
     Base32(HexOrBase32ParseError),
     Key(SignatureError),
 }
Expand description

Error when deserialising a PublicKey or a SecretKey.

Variants§

§

Base32(HexOrBase32ParseError)

Error when decoding the base32.

§

Key(SignatureError)

Error when decoding the public key.

-

Trait Implementations§

source§

impl Debug for KeyParsingError

source§

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

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

impl Display for KeyParsingError

source§

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

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: SignatureError) -> Self

Converts to this type from the input type.
source§

impl From<HexOrBase32ParseError> for KeyParsingError

source§

fn from(source: HexOrBase32ParseError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

source§

impl Debug for KeyParsingError

source§

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

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

impl Display for KeyParsingError

source§

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

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: SignatureError) -> Self

Converts to this type from the input type.
source§

impl From<HexOrBase32ParseError> for KeyParsingError

source§

fn from(source: HexOrBase32ParseError) -> Self

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

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/pr/2674/docs/iroh_base/key/index.html b/pr/2674/docs/iroh_base/key/index.html index f78e78b21c..389e38ce4b 100644 --- a/pr/2674/docs/iroh_base/key/index.html +++ b/pr/2674/docs/iroh_base/key/index.html @@ -1,2 +1,2 @@ -iroh_base::key - Rust

Module iroh_base::key

source ·
Expand description

Cryptographic key handling for iroh-net.

+iroh_base::key - Rust

Module iroh_base::key

source ·
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/2674/docs/iroh_base/key/struct.PublicKey.html b/pr/2674/docs/iroh_base/key/struct.PublicKey.html index 1d4876ba58..7739229076 100644 --- a/pr/2674/docs/iroh_base/key/struct.PublicKey.html +++ b/pr/2674/docs/iroh_base/key/struct.PublicKey.html @@ -1,4 +1,4 @@ -PublicKey in iroh_base::key - Rust

Struct iroh_base::key::PublicKey

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

A public key.

+PublicKey in iroh_base::key - Rust

Struct iroh_base::key::PublicKey

source ·
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, @@ -21,7 +21,7 @@ See [VerifyingKey::from_bytes] for details.

source

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

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

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

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 PublicKey

source§

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

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

impl From<PublicKey> for NodeAddr

source§

fn from(node_id: NodeId) -> Self

Converts to this type from the input type.
source§

impl From<VerifyingKey> for PublicKey

source§

fn from(verifying_key: VerifyingKey) -> Self

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

impl Display for PublicKey

source§

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

Formats the value using the given formatter. Read more
source§

impl From<PublicKey> for NodeAddr

source§

fn from(node_id: NodeId) -> Self

Converts to this type from the input type.
source§

impl From<VerifyingKey> for PublicKey

source§

fn from(verifying_key: VerifyingKey) -> Self

Converts to this type from the input type.
source§

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<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for PublicKey

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, diff --git a/pr/2674/docs/iroh_base/key/struct.SecretKey.html b/pr/2674/docs/iroh_base/key/struct.SecretKey.html index 3387ad1762..a1e48006df 100644 --- a/pr/2674/docs/iroh_base/key/struct.SecretKey.html +++ b/pr/2674/docs/iroh_base/key/struct.SecretKey.html @@ -1,4 +1,4 @@ -SecretKey in iroh_base::key - Rust

Struct iroh_base::key::SecretKey

source ·
pub struct SecretKey { /* private fields */ }
Expand description

A secret key.

+SecretKey in iroh_base::key - Rust

Struct iroh_base::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() -> Self

Generate a new SecretKey with the default randomness generator.

diff --git a/pr/2674/docs/iroh_base/key/struct.SharedSecret.html b/pr/2674/docs/iroh_base/key/struct.SharedSecret.html index e88d61be3a..1e20f6c0cf 100644 --- a/pr/2674/docs/iroh_base/key/struct.SharedSecret.html +++ b/pr/2674/docs/iroh_base/key/struct.SharedSecret.html @@ -1,4 +1,4 @@ -SharedSecret in iroh_base::key - Rust

Struct iroh_base::key::SharedSecret

source ·
pub struct SharedSecret(/* private fields */);
Expand description

Shared Secret.

+SharedSecret in iroh_base::key - Rust

Struct iroh_base::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<()>

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

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/2674/docs/iroh_base/key/struct.Signature.html b/pr/2674/docs/iroh_base/key/struct.Signature.html index a684c3776f..fbf364ee7b 100644 --- a/pr/2674/docs/iroh_base/key/struct.Signature.html +++ b/pr/2674/docs/iroh_base/key/struct.Signature.html @@ -1,4 +1,4 @@ -Signature in iroh_base::key - Rust

Struct iroh_base::key::Signature

#[repr(C)]
pub struct Signature { /* private fields */ }
Expand description

Ed25519 signature.

+Signature in iroh_base::key - Rust

Struct iroh_base::key::Signature

#[repr(C)]
pub struct Signature { /* private fields */ }
Expand description

Ed25519 signature.

This type represents a container for the byte serialization of an Ed25519 signature, and does not necessarily represent well-formed field or curve elements.

diff --git a/pr/2674/docs/iroh_base/key/type.NodeId.html b/pr/2674/docs/iroh_base/key/type.NodeId.html index 0c56912710..0d79a6c5ea 100644 --- a/pr/2674/docs/iroh_base/key/type.NodeId.html +++ b/pr/2674/docs/iroh_base/key/type.NodeId.html @@ -1,4 +1,4 @@ -NodeId in iroh_base::key - Rust

Type Alias iroh_base::key::NodeId

source ·
pub type NodeId = PublicKey;
Expand description

The identifier for a node in the (iroh) network.

+NodeId in iroh_base::key - Rust

Type Alias iroh_base::key::NodeId

source ·
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/2674/docs/iroh_base/node_addr/enum.AddrInfoOptions.html b/pr/2674/docs/iroh_base/node_addr/enum.AddrInfoOptions.html index bb7f87c1cb..4113eb7dd4 100644 --- a/pr/2674/docs/iroh_base/node_addr/enum.AddrInfoOptions.html +++ b/pr/2674/docs/iroh_base/node_addr/enum.AddrInfoOptions.html @@ -1,4 +1,4 @@ -AddrInfoOptions in iroh_base::node_addr - Rust

Enum iroh_base::node_addr::AddrInfoOptions

source ·
pub enum AddrInfoOptions {
+AddrInfoOptions in iroh_base::node_addr - Rust

Enum iroh_base::node_addr::AddrInfoOptions

source ·
pub enum AddrInfoOptions {
     Id,
     RelayAndAddresses,
     Relay,
diff --git a/pr/2674/docs/iroh_base/node_addr/index.html b/pr/2674/docs/iroh_base/node_addr/index.html
index 270ac4af61..da28cb3454 100644
--- a/pr/2674/docs/iroh_base/node_addr/index.html
+++ b/pr/2674/docs/iroh_base/node_addr/index.html
@@ -1,4 +1,4 @@
-iroh_base::node_addr - Rust

Module iroh_base::node_addr

source ·
Expand description

Addressing for iroh nodes.

+iroh_base::node_addr - Rust

Module iroh_base::node_addr

source ·
Expand description

Addressing for iroh nodes.

This module contains some common addressing types for iroh. A node is uniquely identified by the NodeId but that does not make it addressable on the network layer. For this the addition of a RelayUrl and/or direct addresses are required.

diff --git a/pr/2674/docs/iroh_base/node_addr/struct.AddrInfo.html b/pr/2674/docs/iroh_base/node_addr/struct.AddrInfo.html index 0e87a914a2..b45706d0b1 100644 --- a/pr/2674/docs/iroh_base/node_addr/struct.AddrInfo.html +++ b/pr/2674/docs/iroh_base/node_addr/struct.AddrInfo.html @@ -1,4 +1,4 @@ -AddrInfo in iroh_base::node_addr - Rust

Struct iroh_base::node_addr::AddrInfo

source ·
pub struct AddrInfo {
+AddrInfo in iroh_base::node_addr - Rust

Struct iroh_base::node_addr::AddrInfo

source ·
pub struct AddrInfo {
     pub relay_url: Option<RelayUrl>,
     pub direct_addresses: BTreeSet<SocketAddr>,
 }
Expand description

Network paths to contact an iroh-net node.

diff --git a/pr/2674/docs/iroh_base/node_addr/struct.NodeAddr.html b/pr/2674/docs/iroh_base/node_addr/struct.NodeAddr.html index 7a65618197..546271e019 100644 --- a/pr/2674/docs/iroh_base/node_addr/struct.NodeAddr.html +++ b/pr/2674/docs/iroh_base/node_addr/struct.NodeAddr.html @@ -1,4 +1,4 @@ -NodeAddr in iroh_base::node_addr - Rust

Struct iroh_base::node_addr::NodeAddr

source ·
pub struct NodeAddr {
+NodeAddr in iroh_base::node_addr - Rust

Struct iroh_base::node_addr::NodeAddr

source ·
pub struct NodeAddr {
     pub node_id: NodeId,
     pub info: AddrInfo,
 }
Expand description

Network-level addressing information for an iroh-net node.

diff --git a/pr/2674/docs/iroh_base/node_addr/struct.RelayUrl.html b/pr/2674/docs/iroh_base/node_addr/struct.RelayUrl.html index 8212e36b9b..9c7b48e80e 100644 --- a/pr/2674/docs/iroh_base/node_addr/struct.RelayUrl.html +++ b/pr/2674/docs/iroh_base/node_addr/struct.RelayUrl.html @@ -1,4 +1,4 @@ -RelayUrl in iroh_base::node_addr - Rust

Struct iroh_base::node_addr::RelayUrl

source ·
pub struct RelayUrl(/* private fields */);
Expand description

A URL identifying a relay server.

+RelayUrl in iroh_base::node_addr - Rust

Struct iroh_base::node_addr::RelayUrl

source ·
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,11 +441,11 @@ 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

Formats the value using the given formatter. Read more
source§

impl Deref for RelayUrl

Dereferences to the wrapped Url.

+

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

Formats the value using the given formatter. Read more
source§

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) -> &Self::Target

Dereferences the value.
source§

impl<'de> Deserialize<'de> for RelayUrl

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 RelayUrl

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<RelayUrl> for Url

source§

fn from(value: RelayUrl) -> Self

Converts to this type from the input type.
source§

impl From<Url> for RelayUrl

source§

fn from(url: Url) -> Self

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

Formats the value using the given formatter. Read more
source§

impl From<RelayUrl> for Url

source§

fn from(value: RelayUrl) -> Self

Converts to this type from the input type.
source§

impl From<Url> for RelayUrl

source§

fn from(url: Url) -> Self

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<Self, Self::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for RelayUrl

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 diff --git a/pr/2674/docs/iroh_base/rpc/index.html b/pr/2674/docs/iroh_base/rpc/index.html index 15b1d420b4..4de3647760 100644 --- a/pr/2674/docs/iroh_base/rpc/index.html +++ b/pr/2674/docs/iroh_base/rpc/index.html @@ -1 +1 @@ -iroh_base::rpc - Rust

Module iroh_base::rpc

source ·

Structs§

  • A serializable error type for use in RPC responses.

Type Aliases§

  • A serializable result type for use in RPC responses.
\ No newline at end of file +iroh_base::rpc - Rust

Module iroh_base::rpc

source ·

Structs§

  • A serializable error type for use in RPC responses.

Type Aliases§

  • A serializable result type for use in RPC responses.
\ No newline at end of file diff --git a/pr/2674/docs/iroh_base/rpc/struct.RpcError.html b/pr/2674/docs/iroh_base/rpc/struct.RpcError.html index 0eeaf428fd..09a33ab52e 100644 --- a/pr/2674/docs/iroh_base/rpc/struct.RpcError.html +++ b/pr/2674/docs/iroh_base/rpc/struct.RpcError.html @@ -1,6 +1,6 @@ -RpcError in iroh_base::rpc - Rust

Struct iroh_base::rpc::RpcError

source ·
pub struct RpcError(/* private fields */);
Expand description

A serializable error type for use in RPC responses.

+RpcError in iroh_base::rpc - Rust

Struct iroh_base::rpc::RpcError

source ·
pub struct RpcError(/* private fields */);
Expand description

A serializable error type for use in RPC responses.

Trait Implementations§

source§

impl Clone for RpcError

source§

fn clone(&self) -> Self

Returns a 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 RpcError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for RpcError

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 RpcError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for RpcError

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<Error> for RpcError

source§

fn from(e: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for RpcError

source§

fn from(e: Error) -> Self

Converts to this type from the input type.
source§

impl Serialize for RpcError

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for RpcError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for RpcError

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<Error> for RpcError

source§

fn from(e: Error) -> Self

Converts to this type from the input type.
source§

impl From<Error> for RpcError

source§

fn from(e: Error) -> Self

Converts to this type from the input type.
source§

impl Serialize for RpcError

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where diff --git a/pr/2674/docs/iroh_base/rpc/type.RpcResult.html b/pr/2674/docs/iroh_base/rpc/type.RpcResult.html index 6e9ea7d902..0675fed0a1 100644 --- a/pr/2674/docs/iroh_base/rpc/type.RpcResult.html +++ b/pr/2674/docs/iroh_base/rpc/type.RpcResult.html @@ -1,4 +1,4 @@ -RpcResult in iroh_base::rpc - Rust

Type Alias iroh_base::rpc::RpcResult

source ·
pub type RpcResult<T> = Result<T, RpcError>;
Expand description

A serializable result type for use in RPC responses.

+RpcResult in iroh_base::rpc - Rust

Type Alias iroh_base::rpc::RpcResult

source ·
pub type RpcResult<T> = Result<T, RpcError>;
Expand description

A serializable result type for use in RPC responses.

Aliased Type§

enum RpcResult<T> {
     Ok(T),
     Err(RpcError),
diff --git a/pr/2674/docs/iroh_base/ticket/enum.Error.html b/pr/2674/docs/iroh_base/ticket/enum.Error.html
index 2b9e96228a..c7f7d3b11a 100644
--- a/pr/2674/docs/iroh_base/ticket/enum.Error.html
+++ b/pr/2674/docs/iroh_base/ticket/enum.Error.html
@@ -1,4 +1,4 @@
-Error in iroh_base::ticket - Rust

Enum iroh_base::ticket::Error

source ·
pub enum Error {
+Error in iroh_base::ticket - Rust

Enum iroh_base::ticket::Error

source ·
pub enum Error {
     Kind {
         expected: &'static str,
     },
diff --git a/pr/2674/docs/iroh_base/ticket/index.html b/pr/2674/docs/iroh_base/ticket/index.html
index 8276c1b0d6..c48df9850b 100644
--- a/pr/2674/docs/iroh_base/ticket/index.html
+++ b/pr/2674/docs/iroh_base/ticket/index.html
@@ -1,3 +1,3 @@
-iroh_base::ticket - Rust

Module iroh_base::ticket

source ·

Structs§

  • A token containing everything to get a file from the provider.
  • A token containing everything to get a file from the provider.

Enums§

  • An error deserializing an iroh ticket.

Traits§