From de08088fc5ffd3a409baddefa9295613f7b36a8f Mon Sep 17 00:00:00 2001 From: Frando Date: Tue, 13 Aug 2024 12:26:33 +0000 Subject: [PATCH] deploy: 21cc473abe2909167bc780d55885b80c965506b4 --- pr/2616/docs/help.html | 2 +- .../base32/enum.HexOrBase32ParseError.html | 4 +- pr/2616/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/2616/docs/iroh/base/base32/index.html | 2 +- .../iroh/base/base32/struct.DecodeError.html | 2 +- .../docs/iroh/base/hash/enum.BlobFormat.html | 24 ++--- pr/2616/docs/iroh/base/hash/index.html | 2 +- pr/2616/docs/iroh/base/hash/struct.Hash.html | 38 ++++---- .../iroh/base/hash/struct.HashAndFormat.html | 30 +++--- pr/2616/docs/iroh/base/index.html | 2 +- .../iroh/base/key/enum.KeyParsingError.html | 4 +- pr/2616/docs/iroh/base/key/index.html | 2 +- .../docs/iroh/base/key/struct.PublicKey.html | 32 +++---- .../docs/iroh/base/key/struct.SecretKey.html | 26 ++--- .../iroh/base/key/struct.SharedSecret.html | 8 +- pr/2616/docs/iroh/base/key/type.NodeId.html | 2 +- .../base/node_addr/enum.AddrInfoOptions.html | 12 +-- pr/2616/docs/iroh/base/node_addr/index.html | 2 +- .../iroh/base/node_addr/struct.AddrInfo.html | 18 ++-- .../iroh/base/node_addr/struct.NodeAddr.html | 28 +++--- .../iroh/base/node_addr/struct.RelayUrl.html | 20 ++-- pr/2616/docs/iroh/base/rpc/index.html | 2 +- .../docs/iroh/base/rpc/struct.RpcError.html | 6 +- .../docs/iroh/base/rpc/type.RpcResult.html | 2 +- pr/2616/docs/iroh/base/ticket/enum.Error.html | 4 +- pr/2616/docs/iroh/base/ticket/index.html | 2 +- .../iroh/base/ticket/struct.BlobTicket.html | 22 ++--- .../iroh/base/ticket/struct.NodeTicket.html | 14 +-- .../docs/iroh/base/ticket/trait.Ticket.html | 14 +-- .../iroh/blobs/constant.IROH_BLOCK_SIZE.html | 2 +- .../blobs/downloader/enum.DownloadError.html | 4 +- .../blobs/downloader/enum.FailureAction.html | 4 +- .../iroh/blobs/downloader/enum.GetOutput.html | 6 +- pr/2616/docs/iroh/blobs/downloader/index.html | 2 +- .../downloader/struct.ConcurrencyLimits.html | 4 +- .../downloader/struct.DownloadHandle.html | 4 +- .../blobs/downloader/struct.DownloadKind.html | 14 +-- .../downloader/struct.DownloadRequest.html | 8 +- .../blobs/downloader/struct.Downloader.html | 14 +-- .../blobs/downloader/struct.IntentId.html | 12 +-- .../blobs/downloader/struct.RetryConfig.html | 4 +- .../iroh/blobs/downloader/trait.Dialer.html | 14 +-- .../iroh/blobs/downloader/trait.Getter.html | 8 +- .../blobs/downloader/trait.NeedsConn.html | 6 +- pr/2616/docs/iroh/blobs/enum.BlobFormat.html | 24 ++--- .../blobs/export/enum.ExportProgress.html | 6 +- pr/2616/docs/iroh/blobs/export/fn.export.html | 2 +- .../iroh/blobs/export/fn.export_blob.html | 2 +- .../blobs/export/fn.export_collection.html | 2 +- pr/2616/docs/iroh/blobs/export/index.html | 2 +- .../iroh/blobs/format/collection/index.html | 2 +- .../format/collection/struct.Collection.html | 40 ++++---- .../format/collection/trait.SimpleStore.html | 4 +- pr/2616/docs/iroh/blobs/format/index.html | 2 +- .../docs/iroh/blobs/get/db/enum.BlobId.html | 18 ++-- .../docs/iroh/blobs/get/db/enum.BlobInfo.html | 16 ++-- .../blobs/get/db/enum.DownloadProgress.html | 6 +- .../docs/iroh/blobs/get/db/enum.GetState.html | 4 +- .../docs/iroh/blobs/get/db/fn.blob_info.html | 2 +- .../docs/iroh/blobs/get/db/fn.get_to_db.html | 2 +- .../blobs/get/db/fn.get_to_db_in_steps.html | 2 +- .../iroh/blobs/get/db/fn.valid_ranges.html | 2 +- pr/2616/docs/iroh/blobs/get/db/index.html | 2 +- .../get/db/struct.GetStateNeedsConn.html | 6 +- .../iroh/blobs/get/enum.GetResponseError.html | 4 +- .../iroh/blobs/get/error/enum.GetError.html | 4 +- pr/2616/docs/iroh/blobs/get/error/index.html | 2 +- .../get/fsm/enum.AtBlobHeaderNextError.html | 4 +- .../blobs/get/fsm/enum.BlobContentNext.html | 6 +- .../blobs/get/fsm/enum.ConnectedNext.html | 4 +- .../get/fsm/enum.ConnectedNextError.html | 4 +- .../iroh/blobs/get/fsm/enum.DecodeError.html | 4 +- .../iroh/blobs/get/fsm/enum.EndBlobNext.html | 4 +- pr/2616/docs/iroh/blobs/get/fsm/fn.start.html | 2 +- pr/2616/docs/iroh/blobs/get/fsm/index.html | 2 +- .../blobs/get/fsm/struct.AtBlobContent.html | 24 ++--- .../blobs/get/fsm/struct.AtBlobHeader.html | 22 ++--- .../iroh/blobs/get/fsm/struct.AtClosing.html | 6 +- .../blobs/get/fsm/struct.AtConnected.html | 6 +- .../iroh/blobs/get/fsm/struct.AtEndBlob.html | 6 +- .../iroh/blobs/get/fsm/struct.AtInitial.html | 8 +- .../blobs/get/fsm/struct.AtStartChild.html | 12 +-- .../blobs/get/fsm/struct.AtStartRoot.html | 12 +-- pr/2616/docs/iroh/blobs/get/index.html | 2 +- .../blobs/get/progress/enum.BlobProgress.html | 10 +- .../docs/iroh/blobs/get/progress/index.html | 2 +- .../blobs/get/progress/struct.BlobState.html | 12 +-- .../get/progress/struct.TransferState.html | 20 ++-- .../blobs/get/progress/type.ProgressId.html | 2 +- .../blobs/get/request/fn.get_chunk_probe.html | 2 +- .../request/fn.get_hash_seq_and_sizes.html | 2 +- .../get/request/fn.get_unverified_size.html | 2 +- .../get/request/fn.get_verified_size.html | 2 +- .../request/fn.random_hash_seq_ranges.html | 2 +- .../docs/iroh/blobs/get/request/index.html | 2 +- pr/2616/docs/iroh/blobs/get/struct.Stats.html | 12 +-- .../iroh/blobs/hashseq/fn.parse_hash_seq.html | 2 +- pr/2616/docs/iroh/blobs/hashseq/index.html | 2 +- .../iroh/blobs/hashseq/struct.HashSeq.html | 20 ++-- .../blobs/hashseq/struct.HashSeqIter.html | 4 +- .../blobs/hashseq/struct.HashSeqStream.html | 8 +- pr/2616/docs/iroh/blobs/index.html | 2 +- pr/2616/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 | 10 +- .../iroh/blobs/protocol/enum.Request.html | 10 +- pr/2616/docs/iroh/blobs/protocol/index.html | 2 +- .../blobs/protocol/struct.GetRequest.html | 20 ++-- .../struct.NonEmptyRequestRangeSpecIter.html | 4 +- .../iroh/blobs/protocol/struct.RangeSpec.html | 24 ++--- .../blobs/protocol/struct.RangeSpecSeq.html | 28 +++--- .../protocol/struct.UnknownErrorCode.html | 4 +- .../iroh/blobs/provider/enum.AddProgress.html | 6 +- .../docs/iroh/blobs/provider/enum.Event.html | 4 +- .../iroh/blobs/provider/enum.SentStatus.html | 6 +- .../blobs/provider/fn.handle_connection.html | 2 +- .../iroh/blobs/provider/fn.handle_get.html | 2 +- .../iroh/blobs/provider/fn.read_request.html | 2 +- .../iroh/blobs/provider/fn.send_blob.html | 2 +- .../provider/fn.transfer_collection.html | 2 +- pr/2616/docs/iroh/blobs/provider/index.html | 2 +- .../blobs/provider/struct.ResponseWriter.html | 6 +- .../blobs/provider/struct.TransferStats.html | 4 +- .../blobs/provider/trait.EventSender.html | 4 +- .../store/bao_tree/blake3/struct.Hash.html | 2 +- .../store/bao_tree/io/enum.DecodeError.html | 2 +- .../io/fsm/trait.AsyncSliceWriter.html | 4 +- .../store/bao_tree/io/sync/trait.ReadAt.html | 2 +- .../store/bao_tree/io/sync/trait.Size.html | 2 +- .../store/bao_tree/io/sync/trait.WriteAt.html | 2 +- .../iroh/blobs/store/enum.BaoBlobSize.html | 14 +-- .../store/enum.ConsistencyCheckProgress.html | 6 +- .../iroh/blobs/store/enum.EntryStatus.html | 6 +- pr/2616/docs/iroh/blobs/store/enum.Event.html | 6 +- .../iroh/blobs/store/enum.ExportFormat.html | 6 +- .../iroh/blobs/store/enum.ExportMode.html | 10 +- .../iroh/blobs/store/enum.ExportProgress.html | 4 +- .../iroh/blobs/store/enum.GcMarkEvent.html | 4 +- .../iroh/blobs/store/enum.GcSweepEvent.html | 4 +- .../iroh/blobs/store/enum.ImportMode.html | 6 +- .../iroh/blobs/store/enum.ImportProgress.html | 4 +- .../iroh/blobs/store/enum.ReportLevel.html | 14 +-- .../blobs/store/enum.ValidateProgress.html | 6 +- pr/2616/docs/iroh/blobs/store/fs/index.html | 2 +- .../blobs/store/fs/struct.BatchOptions.html | 4 +- .../blobs/store/fs/struct.FlatStorePaths.html | 4 +- .../blobs/store/fs/struct.InlineOptions.html | 8 +- .../iroh/blobs/store/fs/struct.Options.html | 4 +- .../blobs/store/fs/struct.PathOptions.html | 4 +- .../iroh/blobs/store/fs/struct.Store.html | 54 +++++------ .../docs/iroh/blobs/store/fs/type.Entry.html | 2 +- pr/2616/docs/iroh/blobs/store/index.html | 2 +- pr/2616/docs/iroh/blobs/store/mem/index.html | 2 +- .../iroh/blobs/store/mem/struct.Entry.html | 4 +- .../iroh/blobs/store/mem/struct.Store.html | 34 +++---- .../iroh/blobs/store/readonly_mem/index.html | 2 +- .../store/readonly_mem/struct.Entry.html | 4 +- .../store/readonly_mem/struct.Store.html | 44 ++++----- .../blobs/store/trait.BaoBatchWriter.html | 12 +-- pr/2616/docs/iroh/blobs/store/trait.Map.html | 8 +- .../docs/iroh/blobs/store/trait.MapEntry.html | 14 +-- .../iroh/blobs/store/trait.MapEntryMut.html | 6 +- .../docs/iroh/blobs/store/trait.MapMut.html | 16 ++-- .../iroh/blobs/store/trait.ReadableStore.html | 16 ++-- .../docs/iroh/blobs/store/trait.Store.html | 30 +++--- .../docs/iroh/blobs/store/type.DbIter.html | 2 +- .../blobs/store/type.ExportProgressCb.html | 2 +- pr/2616/docs/iroh/blobs/struct.Hash.html | 38 ++++---- .../docs/iroh/blobs/struct.HashAndFormat.html | 30 +++--- pr/2616/docs/iroh/blobs/struct.Tag.html | 24 ++--- pr/2616/docs/iroh/blobs/struct.TempTag.html | 14 +-- .../docs/iroh/blobs/util/enum.MemOrFile.html | 26 ++--- .../iroh/blobs/util/enum.SetTagOption.html | 14 +-- .../docs/iroh/blobs/util/fn.total_bytes.html | 2 +- pr/2616/docs/iroh/blobs/util/index.html | 2 +- pr/2616/docs/iroh/blobs/util/io/index.html | 2 +- .../blobs/util/io/struct.TrackingReader.html | 14 +-- .../blobs/util/io/struct.TrackingWriter.html | 20 ++-- .../blobs/util/local_pool/enum.PanicMode.html | 6 +- .../util/local_pool/enum.SpawnError.html | 4 +- .../iroh/blobs/util/local_pool/index.html | 2 +- .../blobs/util/local_pool/struct.Config.html | 4 +- .../util/local_pool/struct.LocalPool.html | 28 +++--- .../local_pool/struct.LocalPoolHandle.html | 16 ++-- .../blobs/util/local_pool/struct.Run.html | 8 +- .../util/progress/enum.ProgressSendError.html | 4 +- .../docs/iroh/blobs/util/progress/index.html | 2 +- .../struct.AsyncChannelProgressSender.html | 20 ++-- .../progress/struct.BoxedProgressSender.html | 12 +-- .../struct.FallibleProgressSliceWriter.html | 16 ++-- .../progress/struct.FlumeProgressSender.html | 20 ++-- .../progress/struct.IgnoreProgressSender.html | 10 +- .../progress/struct.ProgressSliceWriter.html | 16 ++-- .../util/progress/struct.WithFilterMap.html | 14 +-- .../blobs/util/progress/struct.WithMap.html | 14 +-- .../util/progress/trait.IdGenerator.html | 14 +-- .../util/progress/trait.ProgressSender.html | 40 ++++---- .../progress/type.ProgressSendResult.html | 2 +- .../iroh/blobs/util/struct.SparseMemFile.html | 14 +-- pr/2616/docs/iroh/blobs/util/struct.Tag.html | 24 ++--- .../docs/iroh/blobs/util/struct.TempTag.html | 14 +-- .../iroh/blobs/util/trait.TagCounter.html | 10 +- .../docs/iroh/blobs/util/trait.TagDrop.html | 6 +- .../docs/iroh/client/docs/enum.Origin.html | 10 +- .../iroh/client/docs/enum.SyncReason.html | 10 +- .../iroh/client/docs/struct.SyncEvent.html | 10 +- .../client/gossip/enum.SubscribeResponse.html | 10 +- .../client/gossip/enum.SubscribeUpdate.html | 6 +- pr/2616/docs/iroh/docs/actor/index.html | 2 +- .../docs/iroh/docs/actor/struct.OpenOpts.html | 8 +- .../iroh/docs/actor/struct.OpenState.html | 10 +- .../iroh/docs/actor/struct.SyncHandle.html | 52 +++++----- .../constant.MAX_TIMESTAMP_FUTURE_SHIFT.html | 2 +- .../engine/enum.DefaultAuthorStorage.html | 8 +- .../docs/iroh/docs/engine/enum.LiveEvent.html | 10 +- .../docs/iroh/docs/engine/enum.Origin.html | 10 +- .../iroh/docs/engine/enum.SyncReason.html | 10 +- .../engine/fn.entry_to_content_status.html | 2 +- pr/2616/docs/iroh/docs/engine/index.html | 2 +- .../docs/engine/struct.DefaultAuthor.html | 10 +- .../docs/iroh/docs/engine/struct.Engine.html | 16 ++-- .../iroh/docs/engine/struct.SyncEvent.html | 10 +- pr/2616/docs/iroh/docs/enum.Capability.html | 18 ++-- .../docs/iroh/docs/enum.CapabilityError.html | 4 +- .../docs/iroh/docs/enum.CapabilityKind.html | 12 +-- .../docs/iroh/docs/enum.ContentStatus.html | 10 +- pr/2616/docs/iroh/docs/enum.Event.html | 4 +- pr/2616/docs/iroh/docs/enum.InsertError.html | 4 +- pr/2616/docs/iroh/docs/enum.InsertOrigin.html | 4 +- .../iroh/docs/enum.ValidationFailure.html | 4 +- pr/2616/docs/iroh/docs/index.html | 2 +- pr/2616/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 | 10 +- .../docs/iroh/docs/net/enum.AcceptError.html | 8 +- .../iroh/docs/net/enum.AcceptOutcome.html | 4 +- .../docs/iroh/docs/net/enum.ConnectError.html | 4 +- .../iroh/docs/net/fn.connect_and_sync.html | 2 +- .../iroh/docs/net/fn.handle_connection.html | 2 +- pr/2616/docs/iroh/docs/net/index.html | 2 +- .../iroh/docs/net/struct.SyncFinished.html | 4 +- .../docs/iroh/docs/net/struct.Timings.html | 4 +- .../iroh/docs/store/enum.AuthorFilter.html | 12 +-- .../iroh/docs/store/enum.DownloadPolicy.html | 12 +-- .../docs/iroh/docs/store/enum.FilterKind.html | 12 +-- .../store/enum.ImportNamespaceOutcome.html | 4 +- .../docs/iroh/docs/store/enum.KeyFilter.html | 14 +-- .../docs/iroh/docs/store/enum.OpenError.html | 4 +- pr/2616/docs/iroh/docs/store/enum.SortBy.html | 8 +- .../iroh/docs/store/enum.SortDirection.html | 8 +- pr/2616/docs/iroh/docs/store/fs/index.html | 2 +- .../fs/struct.ContentHashesIterator.html | 6 +- .../docs/store/fs/struct.LatestIterator.html | 4 +- .../docs/store/fs/struct.ParentIterator.html | 4 +- .../docs/store/fs/struct.RecordsRange.html | 4 +- .../docs/iroh/docs/store/fs/struct.Store.html | 60 ++++++------ .../docs/store/fs/struct.StoreInstance.html | 8 +- pr/2616/docs/iroh/docs/store/index.html | 2 +- .../iroh/docs/store/struct.FlatQuery.html | 6 +- .../docs/store/struct.MemPublicKeyStore.html | 6 +- .../docs/iroh/docs/store/struct.Query.html | 20 ++-- .../iroh/docs/store/struct.QueryBuilder.html | 28 +++--- .../store/struct.SingleLatestPerKeyQuery.html | 6 +- .../docs/iroh/docs/store/struct.Store.html | 60 ++++++------ .../docs/store/trait.DownloadPolicyStore.html | 10 +- .../iroh/docs/store/trait.PublicKeyStore.html | 14 +-- pr/2616/docs/iroh/docs/struct.Author.html | 20 ++-- .../docs/iroh/docs/struct.AuthorHeads.html | 28 +++--- pr/2616/docs/iroh/docs/struct.AuthorId.html | 30 +++--- .../iroh/docs/struct.AuthorPublicKey.html | 28 +++--- pr/2616/docs/iroh/docs/struct.DocTicket.html | 10 +- pr/2616/docs/iroh/docs/struct.Entry.html | 44 ++++----- .../docs/iroh/docs/struct.EntrySignature.html | 14 +-- .../docs/iroh/docs/struct.NamespaceId.html | 30 +++--- .../iroh/docs/struct.NamespacePublicKey.html | 28 +++--- .../iroh/docs/struct.NamespaceSecret.html | 22 ++--- pr/2616/docs/iroh/docs/struct.ReadOnly.html | 4 +- pr/2616/docs/iroh/docs/struct.Record.html | 32 +++---- .../iroh/docs/struct.RecordIdentifier.html | 30 +++--- pr/2616/docs/iroh/docs/struct.Replica.html | 30 +++--- .../docs/iroh/docs/struct.ReplicaInfo.html | 18 ++-- .../docs/iroh/docs/struct.SignedEntry.html | 60 ++++++------ .../docs/iroh/docs/struct.SyncOutcome.html | 4 +- .../constant.MAX_TIMESTAMP_FUTURE_SHIFT.html | 2 +- .../docs/iroh/docs/sync/enum.Capability.html | 18 ++-- .../iroh/docs/sync/enum.CapabilityError.html | 4 +- .../iroh/docs/sync/enum.CapabilityKind.html | 12 +-- .../iroh/docs/sync/enum.ContentStatus.html | 10 +- pr/2616/docs/iroh/docs/sync/enum.Event.html | 4 +- .../docs/iroh/docs/sync/enum.InsertError.html | 4 +- .../iroh/docs/sync/enum.InsertOrigin.html | 4 +- .../docs/sync/enum.ValidationFailure.html | 4 +- pr/2616/docs/iroh/docs/sync/index.html | 2 +- .../iroh/docs/sync/struct.AuthorHeads.html | 28 +++--- pr/2616/docs/iroh/docs/sync/struct.Entry.html | 44 ++++----- .../iroh/docs/sync/struct.EntrySignature.html | 14 +-- .../docs/iroh/docs/sync/struct.ReadOnly.html | 4 +- .../docs/iroh/docs/sync/struct.Record.html | 32 +++---- .../docs/sync/struct.RecordIdentifier.html | 30 +++--- .../docs/iroh/docs/sync/struct.Replica.html | 30 +++--- .../iroh/docs/sync/struct.ReplicaInfo.html | 18 ++-- .../iroh/docs/sync/struct.SignedEntry.html | 60 ++++++------ .../iroh/docs/sync/struct.SyncOutcome.html | 4 +- .../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/2616/docs/iroh/docs/type.PeerIdBytes.html | 2 +- .../docs/iroh/docs/type.ProtocolMessage.html | 2 +- pr/2616/docs/iroh/gossip/index.html | 2 +- pr/2616/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/2616/docs/iroh/gossip/net/enum.Event.html | 10 +- .../iroh/gossip/net/enum.GossipEvent.html | 14 +-- pr/2616/docs/iroh/gossip/net/index.html | 2 +- .../docs/iroh/gossip/net/struct.Gossip.html | 18 ++-- .../gossip/net/struct.GossipReceiver.html | 10 +- .../iroh/gossip/net/struct.GossipSender.html | 10 +- .../iroh/gossip/net/struct.GossipTopic.html | 14 +-- .../iroh/gossip/net/struct.JoinOptions.html | 8 +- .../docs/iroh/gossip/net/struct.Message.html | 14 +-- .../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/2616/docs/iroh/gossip/net/util/index.html | 2 +- .../iroh/gossip/net/util/struct.Timers.html | 12 +-- .../docs/iroh/gossip/proto/enum.Command.html | 8 +- .../iroh/gossip/proto/enum.DeliveryScope.html | 16 ++-- .../docs/iroh/gossip/proto/enum.Event.html | 30 +++--- .../docs/iroh/gossip/proto/enum.InEvent.html | 8 +- .../docs/iroh/gossip/proto/enum.OutEvent.html | 8 +- .../docs/iroh/gossip/proto/enum.Scope.html | 14 +-- pr/2616/docs/iroh/gossip/proto/index.html | 2 +- .../iroh/gossip/proto/state/enum.InEvent.html | 8 +- .../gossip/proto/state/enum.MessageKind.html | 4 +- .../gossip/proto/state/enum.OutEvent.html | 8 +- .../docs/iroh/gossip/proto/state/index.html | 2 +- .../gossip/proto/state/struct.Message.html | 20 ++-- .../iroh/gossip/proto/state/struct.State.html | 24 ++--- .../iroh/gossip/proto/state/struct.Timer.html | 8 +- .../gossip/proto/state/struct.TopicId.html | 24 ++--- .../docs/iroh/gossip/proto/struct.Config.html | 4 +- .../iroh/gossip/proto/struct.Message.html | 20 ++-- .../iroh/gossip/proto/struct.PeerData.html | 16 ++-- .../docs/iroh/gossip/proto/struct.State.html | 24 ++--- .../docs/iroh/gossip/proto/struct.Timer.html | 8 +- .../iroh/gossip/proto/struct.TopicId.html | 24 ++--- .../constant.DEFAULT_MAX_MESSAGE_SIZE.html | 2 +- .../iroh/gossip/proto/topic/enum.Command.html | 8 +- .../iroh/gossip/proto/topic/enum.Event.html | 30 +++--- .../iroh/gossip/proto/topic/enum.InEvent.html | 8 +- .../iroh/gossip/proto/topic/enum.Message.html | 24 ++--- .../gossip/proto/topic/enum.OutEvent.html | 12 +-- .../iroh/gossip/proto/topic/enum.Timer.html | 14 +-- .../docs/iroh/gossip/proto/topic/index.html | 2 +- .../gossip/proto/topic/struct.Config.html | 4 +- .../iroh/gossip/proto/topic/struct.State.html | 24 ++--- .../iroh/gossip/proto/topic/struct.Stats.html | 4 +- .../iroh/gossip/proto/topic/trait.IO.html | 10 +- pr/2616/docs/iroh/gossip/proto/trait.IO.html | 10 +- .../iroh/gossip/proto/trait.PeerIdentity.html | 4 +- .../docs/iroh/gossip/proto/util/index.html | 2 +- .../proto/util/struct.TimeBoundCache.html | 26 ++--- .../gossip/proto/util/struct.TimerMap.html | 20 ++-- pr/2616/docs/iroh/metrics/struct.Metrics.html | 24 ++--- .../docs/iroh/net/dialer/struct.Dialer.html | 2 +- .../net/endpoint/enum.ConnectionError.html | 2 +- .../iroh/net/endpoint/enum.ReadError.html | 2 +- .../iroh/net/endpoint/enum.WriteError.html | 2 +- .../iroh/net/endpoint/struct.AddrInfo.html | 18 ++-- .../iroh/net/endpoint/struct.Connection.html | 2 +- .../iroh/net/endpoint/struct.NodeAddr.html | 28 +++--- .../docs/iroh/net/endpoint/struct.VarInt.html | 4 +- .../iroh/net/key/enum.KeyParsingError.html | 4 +- pr/2616/docs/iroh/net/key/index.html | 2 +- .../docs/iroh/net/key/struct.PublicKey.html | 32 +++---- .../docs/iroh/net/key/struct.SecretKey.html | 26 ++--- .../iroh/net/key/struct.SharedSecret.html | 8 +- pr/2616/docs/iroh/net/key/type.NodeId.html | 2 +- .../net/metrics/struct.MagicsockMetrics.html | 94 +++++++++---------- .../net/metrics/struct.NetcheckMetrics.html | 18 ++-- .../net/metrics/struct.PortmapMetrics.html | 26 ++--- .../iroh/net/metrics/struct.RelayMetrics.html | 80 ++++++++-------- .../iroh/net/netcheck/struct.Metrics.html | 18 ++-- .../iroh/net/portmapper/struct.Metrics.html | 26 ++--- .../iroh/net/relay/server/struct.Metrics.html | 80 ++++++++-------- .../docs/iroh/net/relay/struct.RelayUrl.html | 20 ++-- pr/2616/docs/iroh/net/struct.AddrInfo.html | 18 ++-- pr/2616/docs/iroh/net/struct.NodeAddr.html | 28 +++--- .../iroh/net/ticket/struct.NodeTicket.html | 14 +-- pr/2616/docs/iroh/net/type.NodeId.html | 2 +- .../iroh_docs/actor/struct.SyncHandle.html | 2 +- .../docs/iroh_docs/engine/enum.LiveEvent.html | 16 ++-- .../engine/fn.entry_to_content_status.html | 2 +- pr/2616/docs/iroh_docs/engine/index.html | 2 +- .../docs/iroh_docs/engine/struct.Engine.html | 8 +- .../iroh_docs/engine/struct.SyncEvent.html | 4 +- pr/2616/docs/iroh_docs/index.html | 2 +- .../iroh_docs/metrics/struct.Metrics.html | 42 ++++----- .../docs/iroh_docs/net/enum.AcceptError.html | 16 ++-- .../iroh_docs/net/fn.connect_and_sync.html | 2 +- .../iroh_docs/net/fn.handle_connection.html | 2 +- .../iroh_docs/net/struct.SyncFinished.html | 4 +- .../fs/struct.ContentHashesIterator.html | 2 +- pr/2616/docs/iroh_docs/struct.AuthorId.html | 2 +- .../iroh_docs/struct.AuthorPublicKey.html | 2 +- pr/2616/docs/iroh_docs/struct.DocTicket.html | 10 +- .../docs/iroh_docs/struct.NamespaceId.html | 2 +- .../iroh_docs/struct.NamespacePublicKey.html | 2 +- pr/2616/docs/iroh_docs/sync/struct.Entry.html | 4 +- .../docs/iroh_docs/sync/struct.Record.html | 6 +- .../docs/iroh_docs/sync/struct.Replica.html | 4 +- .../iroh_docs/sync/struct.SignedEntry.html | 4 +- .../sync/type.ContentStatusCallback.html | 2 +- .../iroh_net/endpoint/struct.AddrInfo.html | 18 ++-- .../iroh_net/endpoint/struct.NodeAddr.html | 28 +++--- .../iroh_net/key/enum.KeyParsingError.html | 8 +- pr/2616/docs/iroh_net/key/index.html | 2 +- .../docs/iroh_net/key/struct.PublicKey.html | 30 +++--- .../docs/iroh_net/key/struct.SecretKey.html | 26 ++--- .../iroh_net/key/struct.SharedSecret.html | 8 +- pr/2616/docs/iroh_net/key/type.NodeId.html | 2 +- .../metrics/struct.MagicsockMetrics.html | 94 +++++++++---------- .../iroh_net/netcheck/struct.Metrics.html | 18 ++-- .../iroh_net/portmapper/struct.Metrics.html | 26 ++--- .../iroh_net/relay/server/struct.Metrics.html | 80 ++++++++-------- .../docs/iroh_net/relay/struct.RelayUrl.html | 20 ++-- pr/2616/docs/iroh_net/struct.AddrInfo.html | 18 ++-- pr/2616/docs/iroh_net/struct.NodeAddr.html | 28 +++--- .../iroh_net/ticket/struct.NodeTicket.html | 14 +-- pr/2616/docs/iroh_net/type.NodeId.html | 2 +- .../iroh_net_bench/enum.EndpointSelector.html | 4 +- .../docs/iroh_net_bench/iroh/fn.client.html | 2 +- .../iroh/fn.connect_client.html | 4 +- .../docs/iroh_net_bench/iroh/fn.server.html | 2 +- .../iroh/fn.server_endpoint.html | 2 +- .../metrics/struct.StunMetrics.html | 24 ++--- pr/2616/docs/iroh_relay/struct.Config.html | 4 +- pr/2616/docs/iroh_willow/all.html | 2 +- .../iroh_willow/engine/struct.AcceptOpts.html | 6 +- .../engine/struct.ActorHandle.html | 4 +- .../iroh_willow/engine/struct.Engine.html | 2 +- .../iroh_willow/form/enum.PayloadForm.html | 10 +- .../data_model/struct.PayloadDigest.html | 6 +- .../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 | 6 +- .../docs/iroh_willow/proto/keys/index.html | 2 +- .../proto/keys/struct.NamespaceId.html | 38 ++++---- .../proto/keys/struct.NamespacePublicKey.html | 37 ++++---- .../proto/keys/struct.NamespaceSecretKey.html | 26 ++--- .../proto/keys/struct.NamespaceSignature.html | 36 +++---- .../iroh_willow/proto/keys/struct.UserId.html | 40 ++++---- .../proto/keys/struct.UserPublicKey.html | 38 ++++---- .../proto/keys/struct.UserSecretKey.html | 26 ++--- .../proto/keys/struct.UserSignature.html | 36 +++---- .../meadowcap/fn.is_authorised_write.html | 2 +- .../proto/meadowcap/fn.is_wider_than.html | 2 +- .../iroh_willow/proto/meadowcap/index.html | 2 +- .../proto/meadowcap/serde_encoding/index.html | 2 +- .../struct.SerdeMcCapability.html | 10 +- .../struct.SerdeMcSubspaceCapability.html | 6 +- .../struct.SerdeReadAuthorisation.html | 10 +- .../proto/meadowcap/sidebar-items.js | 2 +- .../meadowcap/struct.ReadAuthorisation.html | 14 +-- .../proto/meadowcap/trait.IsCommunal.html | 5 + .../meadowcap/type.FailedDelegationError.html | 2 +- .../proto/meadowcap/type.McCapability.html | 2 +- .../meadowcap/type.McSubspaceCapability.html | 2 +- .../proto/meadowcap/type.NamespaceId.html | 2 +- .../store/memory/struct.Store.html | 2 +- .../store/traits/trait.Storage.html | 4 +- pr/2616/docs/search-index.js | 2 +- .../iroh_willow/iroh_willow-desc-0-.js | 2 +- pr/2616/docs/settings.html | 2 +- .../docs/src/iroh_willow/proto/keys.rs.html | 26 ++--- .../src/iroh_willow/proto/meadowcap.rs.html | 14 +-- .../trait.impl/core/convert/trait.From.js | 2 +- .../iroh_base/ticket/trait.Ticket.js | 2 +- .../iroh_metrics/core/trait.Metric.js | 8 +- .../trait.impl/meadowcap/trait.IsCommunal.js | 2 +- .../iroh/gossip/proto/enum.Command.js | 2 +- .../type.impl/iroh/gossip/proto/enum.Event.js | 2 +- .../iroh/net/key/struct.PublicKey.js | 2 +- .../iroh_net/key/struct.PublicKey.js | 2 +- .../proto/keys/struct.NamespaceId.js | 2 +- .../proto/keys/struct.NamespacePublicKey.js | 2 +- .../proto/keys/struct.NamespaceSignature.js | 2 +- .../iroh_willow/proto/keys/struct.UserId.js | 2 +- .../proto/keys/struct.UserPublicKey.js | 2 +- .../proto/keys/struct.UserSignature.js | 2 +- .../struct.SerdeMcCapability.js | 2 +- .../struct.SerdeMcSubspaceCapability.js | 2 +- .../proto/meadowcap/type.McCapability.js | 2 +- .../meadowcap/type.McSubspaceCapability.js | 2 +- .../struct.McAuthorisationToken.js | 2 +- .../mc_capability/enum.McCapability.js | 2 +- .../struct.McSubspaceCapability.js | 2 +- pr/2616/docs/type.impl/std/primitive.array.js | 6 +- 513 files changed, 2838 insertions(+), 2844 deletions(-) create mode 100644 pr/2616/docs/iroh_willow/proto/meadowcap/trait.IsCommunal.html diff --git a/pr/2616/docs/help.html b/pr/2616/docs/help.html index 49d451041f..522384bdd1 100644 --- a/pr/2616/docs/help.html +++ b/pr/2616/docs/help.html @@ -1 +1 @@ -Help

Rustdoc help

Back
\ No newline at end of file +Help

Rustdoc help

Back
\ No newline at end of file diff --git a/pr/2616/docs/iroh/base/base32/enum.HexOrBase32ParseError.html b/pr/2616/docs/iroh/base/base32/enum.HexOrBase32ParseError.html index c7d82acb2c..5124c6711f 100644 --- a/pr/2616/docs/iroh/base/base32/enum.HexOrBase32ParseError.html +++ b/pr/2616/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

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§

§

impl Debug for HexOrBase32ParseError

§

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

Formats the value using the given formatter. Read more
§

impl Display for HexOrBase32ParseError

§

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

Formats the value using the given formatter. Read more
§

impl Error for HexOrBase32ParseError

§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<DecodeError> for HexOrBase32ParseError

§

fn from(source: DecodeError) -> HexOrBase32ParseError

Converts to this type from the input type.
§

impl From<FromHexError> for HexOrBase32ParseError

§

fn from(source: FromHexError) -> HexOrBase32ParseError

Converts to this type from the input type.
§

impl From<HexOrBase32ParseError> for KeyParsingError

§

fn from(source: HexOrBase32ParseError) -> KeyParsingError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/base/base32/fn.fmt.html b/pr/2616/docs/iroh/base/base32/fn.fmt.html index c30d914c65..06bda61bfa 100644 --- a/pr/2616/docs/iroh/base/base32/fn.fmt.html +++ b/pr/2616/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

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/2616/docs/iroh/base/base32/fn.fmt_append.html b/pr/2616/docs/iroh/base/base32/fn.fmt_append.html index 44cc9ea822..abd0858b73 100644 --- a/pr/2616/docs/iroh/base/base32/fn.fmt_append.html +++ b/pr/2616/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

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/2616/docs/iroh/base/base32/fn.fmt_short.html b/pr/2616/docs/iroh/base/base32/fn.fmt_short.html index 7093283864..288d2a7419 100644 --- a/pr/2616/docs/iroh/base/base32/fn.fmt_short.html +++ b/pr/2616/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

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/2616/docs/iroh/base/base32/fn.parse_array.html b/pr/2616/docs/iroh/base/base32/fn.parse_array.html index 14fd44d7b3..954d256a71 100644 --- a/pr/2616/docs/iroh/base/base32/fn.parse_array.html +++ b/pr/2616/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

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/2616/docs/iroh/base/base32/fn.parse_array_hex_or_base32.html b/pr/2616/docs/iroh/base/base32/fn.parse_array_hex_or_base32.html index 2e8ebe0472..fd7aa3e1da 100644 --- a/pr/2616/docs/iroh/base/base32/fn.parse_array_hex_or_base32.html +++ b/pr/2616/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

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/2616/docs/iroh/base/base32/fn.parse_vec.html b/pr/2616/docs/iroh/base/base32/fn.parse_vec.html index de93d59a71..803e670b16 100644 --- a/pr/2616/docs/iroh/base/base32/fn.parse_vec.html +++ b/pr/2616/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

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/2616/docs/iroh/base/base32/index.html b/pr/2616/docs/iroh/base/base32/index.html index e7d4e8d86b..b9ca713cf5 100644 --- a/pr/2616/docs/iroh/base/base32/index.html +++ b/pr/2616/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

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/2616/docs/iroh/base/base32/struct.DecodeError.html b/pr/2616/docs/iroh/base/base32/struct.DecodeError.html index d8ff80e51b..ba2857390c 100644 --- a/pr/2616/docs/iroh/base/base32/struct.DecodeError.html +++ b/pr/2616/docs/iroh/base/base32/struct.DecodeError.html @@ -5,7 +5,7 @@

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
§

impl From<DecodeError> for Error

§

fn from(source: DecodeError) -> Error

Converts to this type from the input type.
§

impl From<DecodeError> for HexOrBase32ParseError

§

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 diff --git a/pr/2616/docs/iroh/base/hash/enum.BlobFormat.html b/pr/2616/docs/iroh/base/hash/enum.BlobFormat.html index f4e3920475..a6e33b7e6b 100644 --- a/pr/2616/docs/iroh/base/hash/enum.BlobFormat.html +++ b/pr/2616/docs/iroh/base/hash/enum.BlobFormat.html @@ -1,30 +1,30 @@ -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

pub enum BlobFormat {
     Raw,
     HashSeq,
 }
Expand description

A format identifier

Variants§

§

Raw

Raw blob

§

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<(), Error>

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

Implementations§

§

impl BlobFormat

pub const fn is_raw(&self) -> bool

Is raw format

+

pub const fn is_hash_seq(&self) -> bool

Is hash seq format

+

Trait Implementations§

§

impl Clone for BlobFormat

§

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
§

impl Debug for BlobFormat

§

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

Formats the value using the given formatter. Read more
§

impl Default for BlobFormat

§

fn default() -> BlobFormat

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

impl<'de> Deserialize<'de> for BlobFormat

§

fn deserialize<__D>( __deserializer: __D ) -> Result<BlobFormat, <__D as Deserializer<'de>>::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<(), Error>

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

impl Hash for BlobFormat

source§

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

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

impl Display for BlobFormat

§

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

Formats the value using the given formatter. Read more
§

impl Hash for BlobFormat

§

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

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

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

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

impl MaxSize for 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 + Self: Sized,

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

impl MaxSize for BlobFormat

§

const POSTCARD_MAX_SIZE: usize = 1usize

The maximum possible size that the serialization of this +type can have, in bytes.
§

impl Ord for BlobFormat

§

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 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 BlobFormat

source§

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

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for BlobFormat

§

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

source§

fn partial_cmp(&self, other: &BlobFormat) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for BlobFormat

§

fn partial_cmp(&self, other: &BlobFormat) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for BlobFormat

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for BlobFormat

§

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

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

impl Copy for BlobFormat

source§

impl Eq for BlobFormat

source§

impl StructuralPartialEq for BlobFormat

Auto Trait Implementations§

Blanket Implementations§

source§

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

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

impl Copy for BlobFormat

§

impl Eq for BlobFormat

§

impl StructuralPartialEq for BlobFormat

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 @@ -149,7 +149,7 @@ builds.

Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T

§

impl<T> RpcError for T
where T: Debug + Display + Send + Sync + Unpin + 'static,

§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,

source§

impl<T> RuleType for T
where diff --git a/pr/2616/docs/iroh/base/hash/index.html b/pr/2616/docs/iroh/base/hash/index.html index 70cded2f5a..8ada099a79 100644 --- a/pr/2616/docs/iroh/base/hash/index.html +++ b/pr/2616/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

Expand description

The blake3 hash used in Iroh.

Structs§

Enums§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/base/hash/struct.Hash.html b/pr/2616/docs/iroh/base/hash/struct.Hash.html index 0cd849ae27..57dd6901dc 100644 --- a/pr/2616/docs/iroh/base/hash/struct.Hash.html +++ b/pr/2616/docs/iroh/base/hash/struct.Hash.html @@ -1,37 +1,37 @@ -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.

-
source

pub const fn from_bytes(bytes: [u8; 32]) -> Hash

Create a Hash from its raw bytes representation.

-
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 +Hash in iroh::base::hash - Rust

Struct iroh::base::hash::Hash

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

Hash type used throughout.

+

Implementations§

§

impl Hash

pub const EMPTY: Hash = _

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

+

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

Calculate the hash of the provided bytes.

+

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

Bytes of the hash.

+

pub const fn from_bytes(bytes: [u8; 32]) -> Hash

Create a Hash from its raw bytes representation.

+

pub fn to_hex(&self) -> String

Convert the hash to a hex string.

+

pub fn fmt_short(&self) -> String

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

§

impl AsRef<[u8]> for Hash

§

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

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

impl Borrow<[u8]> for Hash

§

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

Immutably borrows from an owned value. Read more
§

impl Borrow<[u8; 32]> for Hash

§

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

Immutably borrows from an owned value. Read more
§

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<'de> Deserialize<'de> for Hash

§

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

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

impl Display for Hash

source§

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

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

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

source§

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

Converts to this type from the input type.
source§

impl From<[u8; 32]> for Hash

source§

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

Converts to this type from the input type.
source§

impl From<Hash> for [u8; 32]

source§

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

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
source§

impl FromIterator<Hash> for HashSeq

source§

fn from_iter<T>(iter: T) -> HashSeq
where - 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 + D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. 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(value: &[u8; 32]) -> Hash

Converts to this type from the input type.
§

impl From<[u8; 32]> for Hash

§

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

Converts to this type from the input type.
§

impl From<Hash> for [u8; 32]

§

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

Converts to this type from the input type.
§

impl From<Hash> for Hash

§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
§

impl From<Hash> for Hash

§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
§

impl From<Hash> for Hash

§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
§

impl FromIterator<Hash> for HashSeq

§

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

Creates a value from an iterator. Read more
§

impl FromStr for Hash

§

type Err = HexOrBase32ParseError

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
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: &Hash) -> Ordering

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

fn max(self, other: Self) -> Self
where + Self: Sized,

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

impl Key for Hash

§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
§

impl MaxSize for Hash

§

const POSTCARD_MAX_SIZE: usize = 32usize

The maximum possible size that the serialization of this +type can have, in bytes.
§

impl Ord for Hash

§

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

source§

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

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for Hash

§

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

source§

fn partial_cmp(&self, other: &Hash) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for Hash

§

fn partial_cmp(&self, other: &Hash) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for Hash

source§

fn serialize<S>( +operator. Read more

§

impl Serialize for Hash

§

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

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

impl Value for Hash

§

type SelfType<'a> = Hash

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = &'a [u8; 32]

source§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
source§

fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>
where + S: Serializer,

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

impl Value for Hash

§

type SelfType<'a> = Hash

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = &'a [u8; 32]

§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
§

fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>
where Hash: 'a,

Deserializes data -Implementations may return a view over data, or an owned type
source§

fn as_bytes<'a, 'b>( +Implementations may return a view over data, or an owned type

§

fn as_bytes<'a, 'b>( value: &'a <Hash as Value>::SelfType<'b> ) -> <Hash as Value>::AsBytes<'a>
where 'b: 'a, - Hash: 'a + 'b,

Serialize the value to a slice
source§

fn type_name() -> TypeName

Globally unique identifier for this type
source§

impl Copy for Hash

source§

impl Eq for Hash

source§

impl StructuralPartialEq for Hash

Auto Trait Implementations§

§

impl Freeze for Hash

§

impl RefUnwindSafe for Hash

§

impl Send for Hash

§

impl Sync for Hash

§

impl Unpin for Hash

§

impl UnwindSafe for Hash

Blanket Implementations§

source§

impl<T> Any for T
where + Hash: 'a + 'b,

Serialize the value to a slice
§

fn type_name() -> TypeName

Globally unique identifier for this type
§

impl Copy for Hash

§

impl Eq for Hash

§

impl StructuralPartialEq for Hash

Auto Trait Implementations§

§

impl Freeze for Hash

§

impl RefUnwindSafe for Hash

§

impl Send for Hash

§

impl Sync for Hash

§

impl Unpin for Hash

§

impl UnwindSafe for Hash

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<A, T> AsBits<T> for A
where A: AsRef<[T]>, T: BitStore,

§

fn as_bits<O>(&self) -> &BitSlice<T, O>
where @@ -166,7 +166,7 @@ letters are used (e.g. F9B4CA)

Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T

§

impl<T> RpcError for T
where T: Debug + Display + Send + Sync + Unpin + 'static,

§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,

source§

impl<T> RuleType for T
where diff --git a/pr/2616/docs/iroh/base/hash/struct.HashAndFormat.html b/pr/2616/docs/iroh/base/hash/struct.HashAndFormat.html index 683b868d4e..d1653c75ae 100644 --- a/pr/2616/docs/iroh/base/hash/struct.HashAndFormat.html +++ b/pr/2616/docs/iroh/base/hash/struct.HashAndFormat.html @@ -1,37 +1,37 @@ -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

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

A hash and format pair

Fields§

§hash: Hash

The hash

§format: BlobFormat

The format

-

Implementations§

source§

impl HashAndFormat

source

pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat

Create a new hash and format pair.

-
source

pub fn raw(hash: Hash) -> HashAndFormat

Create a new hash and format pair, using the default (raw) format.

-
source

pub fn hash_seq(hash: Hash) -> HashAndFormat

Create a new hash and format pair, using the collection format.

-

Trait Implementations§

source§

impl Clone for HashAndFormat

source§

fn clone(&self) -> HashAndFormat

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for HashAndFormat

source§

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

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

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

Implementations§

§

impl HashAndFormat

pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat

Create a new hash and format pair.

+

pub fn raw(hash: Hash) -> HashAndFormat

Create a new hash and format pair, using the default (raw) format.

+

pub fn hash_seq(hash: Hash) -> HashAndFormat

Create a new hash and format pair, using the collection format.

+

Trait Implementations§

§

impl Clone for HashAndFormat

§

fn clone(&self) -> HashAndFormat

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

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

Performs copy-assignment from source. Read more
§

impl Debug for HashAndFormat

§

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

Formats the value using the given formatter. Read more
§

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

§

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

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

impl Display for HashAndFormat

source§

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

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

impl From<DownloadKind> for HashAndFormat

source§

fn from(value: DownloadKind) -> HashAndFormat

Converts to this type from the input type.
source§

impl From<HashAndFormat> for DownloadKind

source§

fn from(value: HashAndFormat) -> DownloadKind

Converts to this type from the input type.
source§

impl From<HashAndFormat> for HashAndFormat

source§

fn from(value: HashAndFormat) -> HashAndFormat

Converts to this type from the input type.
source§

impl FromStr for HashAndFormat

§

type Err = Error

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

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

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

impl Hash for HashAndFormat

source§

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

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

impl Display for HashAndFormat

§

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

Formats the value using the given formatter. Read more
§

impl From<DownloadKind> for HashAndFormat

§

fn from(value: DownloadKind) -> HashAndFormat

Converts to this type from the input type.
§

impl From<HashAndFormat> for DownloadKind

§

fn from(value: HashAndFormat) -> DownloadKind

Converts to this type from the input type.
§

impl From<HashAndFormat> for HashAndFormat

§

fn from(value: HashAndFormat) -> HashAndFormat

Converts to this type from the input type.
§

impl FromStr for HashAndFormat

§

type Err = Error

The associated error which can be returned from parsing.
§

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

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

impl Hash for HashAndFormat

§

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

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

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

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

impl MaxSize for HashAndFormat

source§

const POSTCARD_MAX_SIZE: usize = 33usize

The maximum possible size that the serialization of this -type can have, in bytes.
source§

impl Ord for HashAndFormat

source§

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

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

fn max(self, other: Self) -> Self
where + Self: Sized,

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

impl MaxSize for HashAndFormat

§

const POSTCARD_MAX_SIZE: usize = 33usize

The maximum possible size that the serialization of this +type can have, in bytes.
§

impl Ord for HashAndFormat

§

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

source§

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

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for HashAndFormat

§

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

source§

fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for HashAndFormat

§

fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for HashAndFormat

source§

fn serialize<S>( +operator. Read more

§

impl Serialize for HashAndFormat

§

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

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

impl Value for HashAndFormat

§

type SelfType<'a> = HashAndFormat

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = [u8; 33]

source§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
source§

fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>
where + S: Serializer,

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

impl Value for HashAndFormat

§

type SelfType<'a> = HashAndFormat

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = [u8; 33]

§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
§

fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>
where HashAndFormat: 'a,

Deserializes data -Implementations may return a view over data, or an owned type
source§

fn as_bytes<'a, 'b>( +Implementations may return a view over data, or an owned type

§

fn as_bytes<'a, 'b>( value: &'a <HashAndFormat as Value>::SelfType<'b> ) -> <HashAndFormat as Value>::AsBytes<'a>
where 'b: 'a, - HashAndFormat: 'a + 'b,

Serialize the value to a slice
source§

fn type_name() -> TypeName

Globally unique identifier for this type
source§

impl Copy for HashAndFormat

source§

impl Eq for HashAndFormat

source§

impl StructuralPartialEq for HashAndFormat

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + HashAndFormat: 'a + 'b,

Serialize the value to a slice
§

fn type_name() -> TypeName

Globally unique identifier for this type
§

impl Copy for HashAndFormat

§

impl Eq for HashAndFormat

§

impl StructuralPartialEq for HashAndFormat

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 @@ -156,7 +156,7 @@ builds.

Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T

§

impl<T> RpcError for T
where T: Debug + Display + Send + Sync + Unpin + 'static,

§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,

source§

impl<T> RuleType for T
where diff --git a/pr/2616/docs/iroh/base/index.html b/pr/2616/docs/iroh/base/index.html index 45a60cc9b7..94ade161a7 100644 --- a/pr/2616/docs/iroh/base/index.html +++ b/pr/2616/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

Expand description

Base types and utilities for Iroh

Modules§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/base/key/enum.KeyParsingError.html b/pr/2616/docs/iroh/base/key/enum.KeyParsingError.html index bd428c08e6..a63d5fb918 100644 --- a/pr/2616/docs/iroh/base/key/enum.KeyParsingError.html +++ b/pr/2616/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

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§

§

impl Debug for KeyParsingError

§

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

Formats the value using the given formatter. Read more
§

impl Display for KeyParsingError

§

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

Formats the value using the given formatter. Read more
§

impl Error for KeyParsingError

§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<Error> for KeyParsingError

§

fn from(source: Error) -> KeyParsingError

Converts to this type from the input type.
§

impl From<HexOrBase32ParseError> for KeyParsingError

§

fn from(source: HexOrBase32ParseError) -> KeyParsingError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/base/key/index.html b/pr/2616/docs/iroh/base/key/index.html index c2374ad8a6..d458d74fce 100644 --- a/pr/2616/docs/iroh/base/key/index.html +++ b/pr/2616/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

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/2616/docs/iroh/base/key/struct.PublicKey.html b/pr/2616/docs/iroh/base/key/struct.PublicKey.html index 21abbf5a87..5c95ac4654 100644 --- a/pr/2616/docs/iroh/base/key/struct.PublicKey.html +++ b/pr/2616/docs/iroh/base/key/struct.PublicKey.html @@ -1,45 +1,45 @@ -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

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

A public key.

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

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

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

-

Implementations§

source§

impl PublicKey

source

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

Get this public key as a byte array.

-
source

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

Construct a PublicKey from a slice of bytes.

+

Implementations§

§

impl PublicKey

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

Get this public key as a byte array.

+

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

Construct a PublicKey from a slice of bytes.

§Warning

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

-
source

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

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

+

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

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

§Return

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

-
source

pub fn fmt_short(&self) -> String

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

pub fn fmt_short(&self) -> String

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

-

Trait Implementations§

source§

impl AsRef<[u8]> for PublicKey

source§

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

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

impl Clone for PublicKey

source§

fn clone(&self) -> PublicKey

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for PublicKey

source§

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

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

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

Trait Implementations§

§

impl AsRef<[u8]> for PublicKey

§

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

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

impl Clone for PublicKey

§

fn clone(&self) -> PublicKey

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

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

Performs copy-assignment from source. Read more
§

impl Debug for PublicKey

§

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

Formats the value using the given formatter. Read more
§

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

§

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

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

impl Display for PublicKey

source§

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

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

impl From<PublicKey> for NodeAddr

source§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
source§

impl From<VerifyingKey> for PublicKey

source§

fn from(verifying_key: VerifyingKey) -> PublicKey

Converts to this type from the input type.
source§

impl FromStr for PublicKey

Deserialises the PublicKey from it’s base32 encoding.

+ D: Deserializer<'de>,

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

impl Display for PublicKey

§

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

Formats the value using the given formatter. Read more
§

impl From<PublicKey> for NodeAddr

§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
§

impl From<VerifyingKey> for PublicKey

§

fn from(verifying_key: VerifyingKey) -> PublicKey

Converts to this type from the input type.
§

impl FromStr for PublicKey

Deserialises the PublicKey from it’s base32 encoding.

Display is capable of serialising this format.

-
§

type Err = KeyParsingError

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

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

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

impl Hash for PublicKey

source§

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

type Err = KeyParsingError

The associated error which can be returned from parsing.
§

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

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

§

impl Hash for PublicKey

§

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

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

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

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

impl Ord for PublicKey

source§

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

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

fn max(self, other: Self) -> Self
where + Self: Sized,

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

impl Ord for PublicKey

§

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

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

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for PublicKey

source§

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

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for PublicKey

§

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

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

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

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

impl PartialOrd for PublicKey

source§

fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for PublicKey

§

fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for PublicKey

source§

fn serialize<S>( +operator. Read more

§

impl Serialize for PublicKey

§

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

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

impl TryFrom<&[u8]> for PublicKey

§

type Error = Error

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

fn try_from( + S: Serializer,

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

impl TryFrom<&[u8]> for PublicKey

§

type Error = Error

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

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

Performs the conversion.
source§

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

§

type Error = Error

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

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

Performs the conversion.
§

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

§

type Error = Error

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

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

Performs the conversion.
source§

impl Copy for PublicKey

source§

impl Eq for PublicKey

source§

impl StructuralPartialEq for PublicKey

Auto Trait Implementations§

Blanket Implementations§

source§

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

Performs the conversion.
§

impl Copy for PublicKey

§

impl Eq for PublicKey

§

impl StructuralPartialEq for PublicKey

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<A, T> AsBits<T> for A
where A: AsRef<[T]>, T: BitStore,

§

fn as_bits<O>(&self) -> &BitSlice<T, O>
where @@ -174,7 +174,7 @@ letters are used (e.g. F9B4CA)

Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T

§

impl<T> RpcError for T
where T: Debug + Display + Send + Sync + Unpin + 'static,

§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,

source§

impl<T> RuleType for T
where diff --git a/pr/2616/docs/iroh/base/key/struct.SecretKey.html b/pr/2616/docs/iroh/base/key/struct.SecretKey.html index 3b4db83394..7c16708f10 100644 --- a/pr/2616/docs/iroh/base/key/struct.SecretKey.html +++ b/pr/2616/docs/iroh/base/key/struct.SecretKey.html @@ -1,24 +1,24 @@ -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.

-
source

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

Struct iroh::base::key::SecretKey

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

A secret key.

+

Implementations§

§

impl SecretKey

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

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

+
§

impl SecretKey

pub fn public(&self) -> PublicKey

The public key of this SecretKey.

+

pub fn generate() -> SecretKey

Generate a new SecretKey with the default randomness generator.

+

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

Generate a new SecretKey with a randomness generator.

-
source

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

Serialise this key to OpenSSH format.

-
source

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

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

Serialise this key to OpenSSH format.

+

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

Deserialise this key from OpenSSH format.

-
source

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

Sign the given message and return a digital signature

-
source

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

Convert this to the bytes representing the secret part. +

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

Sign the given message and return a digital signature

+

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

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

-
source

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

Create a secret key from its byte representation.

-

Trait Implementations§

source§

impl Clone for SecretKey

source§

fn clone(&self) -> SecretKey

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for SecretKey

source§

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

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

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

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

Create a secret key from its byte representation.

+

Trait Implementations§

§

impl Clone for SecretKey

§

fn clone(&self) -> SecretKey

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

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

Performs copy-assignment from source. Read more
§

impl Debug for SecretKey

§

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

Formats the value using the given formatter. Read more
§

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

§

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

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

impl Display for SecretKey

source§

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

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

impl From<[u8; 32]> for SecretKey

source§

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

Converts to this type from the input type.
source§

impl From<SigningKey> for SecretKey

source§

fn from(secret: SigningKey) -> SecretKey

Converts to this type from the input type.
source§

impl FromStr for SecretKey

§

type Err = KeyParsingError

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

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

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

impl Serialize for SecretKey

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

impl Display for SecretKey

§

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

Formats the value using the given formatter. Read more
§

impl From<[u8; 32]> for SecretKey

§

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

Converts to this type from the input type.
§

impl From<SigningKey> for SecretKey

§

fn from(secret: SigningKey) -> SecretKey

Converts to this type from the input type.
§

impl FromStr for SecretKey

§

type Err = KeyParsingError

The associated error which can be returned from parsing.
§

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

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

impl Serialize for SecretKey

§

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

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

impl TryFrom<&[u8]> for SecretKey

§

type Error = Error

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

fn try_from( + S: Serializer,

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

impl TryFrom<&[u8]> for SecretKey

§

type Error = Error

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

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

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/base/key/struct.SharedSecret.html b/pr/2616/docs/iroh/base/key/struct.SharedSecret.html index c147e4145b..3fd7ced6ff 100644 --- a/pr/2616/docs/iroh/base/key/struct.SharedSecret.html +++ b/pr/2616/docs/iroh/base/key/struct.SharedSecret.html @@ -1,7 +1,7 @@ -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 +SharedSecret in iroh::base::key - Rust

Struct iroh::base::key::SharedSecret

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

Shared Secret.

+

Implementations§

§

impl SharedSecret

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

Seals the provided cleartext.

+

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

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

+

Trait Implementations§

§

impl Debug for SharedSecret

§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/base/key/type.NodeId.html b/pr/2616/docs/iroh/base/key/type.NodeId.html index fdf7d085bb..8a115d0e9d 100644 --- a/pr/2616/docs/iroh/base/key/type.NodeId.html +++ b/pr/2616/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

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/2616/docs/iroh/base/node_addr/enum.AddrInfoOptions.html b/pr/2616/docs/iroh/base/node_addr/enum.AddrInfoOptions.html index 9ee6705116..2e56eefc27 100644 --- a/pr/2616/docs/iroh/base/node_addr/enum.AddrInfoOptions.html +++ b/pr/2616/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

pub enum AddrInfoOptions {
     Id,
     RelayAndAddresses,
     Relay,
@@ -9,18 +9,18 @@
 
§

RelayAndAddresses

Includes both the relay URL and the direct addresses.

§

Relay

Only includes the relay URL.

§

Addresses

Only includes the direct addresses.

-

Trait Implementations§

source§

impl Clone for AddrInfoOptions

source§

fn clone(&self) -> AddrInfoOptions

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

source§

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

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

impl Default for AddrInfoOptions

source§

fn default() -> AddrInfoOptions

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

impl<'de> Deserialize<'de> for AddrInfoOptions

Trait Implementations§

§

impl Clone for AddrInfoOptions

§

fn clone(&self) -> AddrInfoOptions

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

§

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

Formats the value using the given formatter. Read more
§

impl Default for AddrInfoOptions

§

fn default() -> AddrInfoOptions

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

impl<'de> Deserialize<'de> for AddrInfoOptions

§

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

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

impl Display for AddrInfoOptions

source§

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

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

impl FromStr for AddrInfoOptions

§

type Err = FromStrError

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

§

impl Display for AddrInfoOptions

§

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

Formats the value using the given formatter. Read more
§

impl FromStr for AddrInfoOptions

§

type Err = FromStrError

The associated error which can be returned from parsing.
§

fn from_str( src: &str -) -> Result<AddrInfoOptions, <AddrInfoOptions as FromStr>::Err>

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

impl PartialEq for AddrInfoOptions

source§

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

This method tests for self and other values to be equal, and is used +) -> Result<AddrInfoOptions, <AddrInfoOptions as FromStr>::Err>

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

impl PartialEq for AddrInfoOptions

§

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

source§

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

§

impl Serialize for AddrInfoOptions

§

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

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

impl Copy for AddrInfoOptions

source§

impl Eq for AddrInfoOptions

source§

impl StructuralPartialEq for AddrInfoOptions

Auto Trait Implementations§

Blanket Implementations§

source§

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

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

impl Copy for AddrInfoOptions

§

impl Eq for AddrInfoOptions

§

impl StructuralPartialEq for AddrInfoOptions

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/base/node_addr/index.html b/pr/2616/docs/iroh/base/node_addr/index.html index 239f4fa5d4..696e9f5ff9 100644 --- a/pr/2616/docs/iroh/base/node_addr/index.html +++ b/pr/2616/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

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/2616/docs/iroh/base/node_addr/struct.AddrInfo.html b/pr/2616/docs/iroh/base/node_addr/struct.AddrInfo.html index 1bf65d1d6d..57f02154e5 100644 --- a/pr/2616/docs/iroh/base/node_addr/struct.AddrInfo.html +++ b/pr/2616/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

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

Network paths to contact an iroh-net node.

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

Fields§

§relay_url: Option<RelayUrl>

The node’s home relay url.

§direct_addresses: BTreeSet<SocketAddr>

Socket addresses where the peer might be reached directly.

-

Implementations§

source§

impl AddrInfo

source

pub fn is_empty(&self) -> bool

Returns whether this addressing information is empty.

-
source

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

Applies the options to self.

+

Implementations§

§

impl AddrInfo

pub fn is_empty(&self) -> bool

Returns whether this addressing information is empty.

+

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

Applies the options to self.

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

-

Trait Implementations§

source§

impl Clone for AddrInfo

source§

fn clone(&self) -> AddrInfo

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for AddrInfo

source§

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

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

impl Default for AddrInfo

source§

fn default() -> AddrInfo

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

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

Trait Implementations§

§

impl Clone for AddrInfo

§

fn clone(&self) -> AddrInfo

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

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

Performs copy-assignment from source. Read more
§

impl Debug for AddrInfo

§

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

Formats the value using the given formatter. Read more
§

impl Default for AddrInfo

§

fn default() -> AddrInfo

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

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

§

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

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

impl From<NodeInfo> for AddrInfo

source§

fn from(value: NodeInfo) -> AddrInfo

Converts to this type from the input type.
source§

impl Ord for AddrInfo

source§

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

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

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

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

impl From<NodeInfo> for AddrInfo

source§

fn from(value: NodeInfo) -> AddrInfo

Converts to this type from the input type.
§

impl Ord for AddrInfo

§

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

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

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for AddrInfo

source§

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

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for AddrInfo

§

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

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

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

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

impl PartialOrd for AddrInfo

source§

fn partial_cmp(&self, other: &AddrInfo) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for AddrInfo

§

fn partial_cmp(&self, other: &AddrInfo) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for AddrInfo

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for AddrInfo

§

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

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

impl Eq for AddrInfo

source§

impl StructuralPartialEq for AddrInfo

Auto Trait Implementations§

Blanket Implementations§

source§

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

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

impl Eq for AddrInfo

§

impl StructuralPartialEq for AddrInfo

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/base/node_addr/struct.NodeAddr.html b/pr/2616/docs/iroh/base/node_addr/struct.NodeAddr.html index 66dff9d3c7..cbd493a82a 100644 --- a/pr/2616/docs/iroh/base/node_addr/struct.NodeAddr.html +++ b/pr/2616/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

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

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

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

Fields§

§node_id: PublicKey

The node’s identifier.

§info: AddrInfo

Addressing information to connect to Self::node_id.

-

Implementations§

source§

impl NodeAddr

source

pub fn new(node_id: PublicKey) -> NodeAddr

Creates a new NodeAddr with empty AddrInfo.

-
source

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

Adds a relay url to the node’s AddrInfo.

-
source

pub fn with_direct_addresses( +

Implementations§

§

impl NodeAddr

pub fn new(node_id: PublicKey) -> NodeAddr

Creates a new NodeAddr with empty AddrInfo.

+

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

Adds a relay url to the node’s AddrInfo.

+

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

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

-
source

pub fn from_parts( +

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

Creates a new NodeAddr from its parts.

-
source

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

Applies the options to self.

+

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

Applies the options to self.

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

-
source

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

Returns the direct addresses of this peer.

-
source

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

Returns the relay url of this peer.

-

Trait Implementations§

source§

impl Clone for NodeAddr

source§

fn clone(&self) -> NodeAddr

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for NodeAddr

source§

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

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

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

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

Returns the direct addresses of this peer.

+

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

Returns the relay url of this peer.

+

Trait Implementations§

§

impl Clone for NodeAddr

§

fn clone(&self) -> NodeAddr

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

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

Performs copy-assignment from source. Read more
§

impl Debug for NodeAddr

§

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

Formats the value using the given formatter. Read more
§

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

§

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

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

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

source§

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

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(info: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<PublicKey> for NodeAddr

source§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
source§

impl Ord for NodeAddr

source§

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

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

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

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

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

§

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

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(info: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
§

impl From<PublicKey> for NodeAddr

§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
§

impl Ord for NodeAddr

§

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

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

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for NodeAddr

source§

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

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,
Restrict a value to a certain interval. Read more
§

impl PartialEq for NodeAddr

§

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

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

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

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

impl PartialOrd for NodeAddr

source§

fn partial_cmp(&self, other: &NodeAddr) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for NodeAddr

§

fn partial_cmp(&self, other: &NodeAddr) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for NodeAddr

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for NodeAddr

§

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

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

impl Eq for NodeAddr

source§

impl StructuralPartialEq for NodeAddr

Auto Trait Implementations§

Blanket Implementations§

source§

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

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

impl Eq for NodeAddr

§

impl StructuralPartialEq for NodeAddr

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/base/node_addr/struct.RelayUrl.html b/pr/2616/docs/iroh/base/node_addr/struct.RelayUrl.html index 6c8e755962..0749c043d4 100644 --- a/pr/2616/docs/iroh/base/node_addr/struct.RelayUrl.html +++ b/pr/2616/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

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:

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

    -

Trait Implementations§

source§

impl Clone for RelayUrl

source§

fn clone(&self) -> RelayUrl

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for RelayUrl

source§

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

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

impl Deref for RelayUrl

Dereferences to the wrapped Url.

+

Trait Implementations§

§

impl Clone for RelayUrl

§

fn clone(&self) -> RelayUrl

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

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

Performs copy-assignment from source. Read more
§

impl Debug for RelayUrl

§

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

Formats the value using the given formatter. Read more
§

impl Deref for RelayUrl

Dereferences to the wrapped Url.

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

-
§

type Target = Url

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

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

§

type Target = Url

The resulting type after dereferencing.
§

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

Dereferences the value.
§

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

§

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

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

impl Display for RelayUrl

source§

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

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

impl From<RelayUrl> for Url

source§

fn from(value: RelayUrl) -> Url

Converts to this type from the input type.
source§

impl From<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
§

impl Display for RelayUrl

§

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

Formats the value using the given formatter. Read more
§

impl From<RelayUrl> for Url

§

fn from(value: RelayUrl) -> Url

Converts to this type from the input type.
source§

impl From<RelayUrlInfo> for RelayUrl

source§

fn from(value: RelayUrlInfo) -> RelayUrl

Converts to this type from the input type.
§

impl From<Url> for RelayUrl

§

fn from(url: Url) -> RelayUrl

Converts to this type from the input type.
§

impl FromStr for RelayUrl

Support for parsing strings directly.

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

-
§

type Err = Error

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

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

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

impl Hash for RelayUrl

source§

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

type Err = Error

The associated error which can be returned from parsing.
§

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

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

§

impl Hash for RelayUrl

§

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

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

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

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

impl Ord for RelayUrl

source§

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

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

fn max(self, other: Self) -> Self
where + Self: Sized,

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

impl Ord for RelayUrl

§

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

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

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for RelayUrl

source§

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

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,
Restrict a value to a certain interval. Read more
§

impl PartialEq for RelayUrl

§

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

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

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

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

impl PartialOrd for RelayUrl

source§

fn partial_cmp(&self, other: &RelayUrl) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for RelayUrl

§

fn partial_cmp(&self, other: &RelayUrl) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for RelayUrl

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for RelayUrl

§

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

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

impl Eq for RelayUrl

source§

impl StructuralPartialEq for RelayUrl

Auto Trait Implementations§

Blanket Implementations§

source§

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

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

impl Eq for RelayUrl

§

impl StructuralPartialEq for RelayUrl

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/base/rpc/index.html b/pr/2616/docs/iroh/base/rpc/index.html index 50e743d367..0225a83156 100644 --- a/pr/2616/docs/iroh/base/rpc/index.html +++ b/pr/2616/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

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/2616/docs/iroh/base/rpc/struct.RpcError.html b/pr/2616/docs/iroh/base/rpc/struct.RpcError.html index 009e9bc8f6..499c98be59 100644 --- a/pr/2616/docs/iroh/base/rpc/struct.RpcError.html +++ b/pr/2616/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.

-

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>( +RpcError in iroh::base::rpc - Rust

Struct iroh::base::rpc::RpcError

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

A serializable error type for use in RPC responses.

+

Trait Implementations§

§

impl Clone for RpcError

§

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
§

impl Debug for RpcError

§

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

Formats the value using the given formatter. Read more
§

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

§

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
§

impl Display for RpcError

§

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

Formats the value using the given formatter. Read more
§

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
§

impl From<Error> for RpcError

§

fn from(e: Error) -> RpcError

Converts to this type from the input type.
§

impl From<Error> for RpcError

§

fn from(e: Error) -> RpcError

Converts to this type from the input type.
§

impl Serialize for RpcError

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/base/rpc/type.RpcResult.html b/pr/2616/docs/iroh/base/rpc/type.RpcResult.html index a5ed31e2ad..1e0d11a815 100644 --- a/pr/2616/docs/iroh/base/rpc/type.RpcResult.html +++ b/pr/2616/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

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/2616/docs/iroh/base/ticket/enum.Error.html b/pr/2616/docs/iroh/base/ticket/enum.Error.html
index 2e32d7ab0d..2dc1c4f0c0 100644
--- a/pr/2616/docs/iroh/base/ticket/enum.Error.html
+++ b/pr/2616/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

pub enum Error {
     Kind {
         expected: &'static str,
     },
@@ -10,7 +10,7 @@
 

Fields

§expected: &'static str
§

Postcard(Error)

This looks like a ticket, but postcard deserialization failed.

§

Encoding(DecodeError)

This looks like a ticket, but base32 decoding failed.

§

Verify(&'static str)

Verification of the deserialized bytes failed.

-

Trait Implementations§

source§

impl Debug for Error

source§

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

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

impl Display for Error

source§

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

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

impl Error for Error

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

source§

fn from(source: Error) -> Error

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for Error

§

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

Formats the value using the given formatter. Read more
§

impl Display for Error

§

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

Formats the value using the given formatter. Read more
§

impl Error for Error

§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<DecodeError> for Error

§

fn from(source: DecodeError) -> Error

Converts to this type from the input type.
§

impl From<Error> for Error

§

fn from(source: Error) -> Error

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for Error

§

impl RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl UnwindSafe for Error

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/base/ticket/index.html b/pr/2616/docs/iroh/base/ticket/index.html index f9865410bc..6026f41e2f 100644 --- a/pr/2616/docs/iroh/base/ticket/index.html +++ b/pr/2616/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§

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

impl Display for BlobTicket

§

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

Formats the value using the given formatter. Read more
§

impl FromStr for BlobTicket

§

type Err = Error

The associated error which can be returned from parsing.
§

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

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

impl PartialEq for BlobTicket

§

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

source§

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

§

impl Serialize for BlobTicket

§

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

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

impl Ticket for 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
§

impl Ticket for BlobTicket

§

const KIND: &'static str = "blob"

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

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

Serialize to bytes used in the base32 string representation.
§

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

Deserialize from the base32 string representation bytes.
§

fn serialize(&self) -> String

Serialize to string.
§

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

Deserialize from a string.
§

impl Eq for BlobTicket

§

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 diff --git a/pr/2616/docs/iroh/base/ticket/struct.NodeTicket.html b/pr/2616/docs/iroh/base/ticket/struct.NodeTicket.html index a75ece8fc1..fa7b18da30 100644 --- a/pr/2616/docs/iroh/base/ticket/struct.NodeTicket.html +++ b/pr/2616/docs/iroh/base/ticket/struct.NodeTicket.html @@ -1,17 +1,17 @@ -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

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

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

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

-

Implementations§

source§

impl NodeTicket

source

pub fn new(node: NodeAddr) -> Result<NodeTicket, Error>

Creates a new ticket.

-
source

pub fn node_addr(&self) -> &NodeAddr

The NodeAddr of the provider for this ticket.

-

Trait Implementations§

source§

impl Clone for NodeTicket

source§

fn clone(&self) -> NodeTicket

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for NodeTicket

source§

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

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

impl<'de> Deserialize<'de> for NodeTicket

Implementations§

§

impl NodeTicket

pub fn new(node: NodeAddr) -> Result<NodeTicket, Error>

Creates a new ticket.

+

pub fn node_addr(&self) -> &NodeAddr

The NodeAddr of the provider for this ticket.

+

Trait Implementations§

§

impl Clone for NodeTicket

§

fn clone(&self) -> NodeTicket

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

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

Performs copy-assignment from source. Read more
§

impl Debug for NodeTicket

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NodeTicket

§

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

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

impl Display for NodeTicket

source§

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

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

impl FromStr for NodeTicket

§

type Err = Error

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

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

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

impl PartialEq for NodeTicket

source§

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

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

Deserialize this value from the given Serde deserializer. Read more

§

impl Display for NodeTicket

§

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

Formats the value using the given formatter. Read more
§

impl FromStr for NodeTicket

§

type Err = Error

The associated error which can be returned from parsing.
§

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

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

impl PartialEq for NodeTicket

§

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

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

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

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

impl Serialize for NodeTicket

source§

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

§

impl Serialize for NodeTicket

§

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

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

impl Ticket for NodeTicket

source§

const KIND: &'static str = "node"

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

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

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

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

Deserialize from the base32 string representation bytes.
source§

fn serialize(&self) -> String

Serialize to string.
source§

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

Deserialize from a string.
source§

impl Eq for NodeTicket

source§

impl StructuralPartialEq for NodeTicket

Auto Trait Implementations§

Blanket Implementations§

source§

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

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

impl Ticket for NodeTicket

§

const KIND: &'static str = "node"

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

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

Serialize to bytes used in the base32 string representation.
§

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

Deserialize from the base32 string representation bytes.
§

fn serialize(&self) -> String

Serialize to string.
§

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

Deserialize from a string.
§

impl Eq for NodeTicket

§

impl StructuralPartialEq for NodeTicket

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/base/ticket/trait.Ticket.html b/pr/2616/docs/iroh/base/ticket/trait.Ticket.html index b1cb87cc80..1215e159db 100644 --- a/pr/2616/docs/iroh/base/ticket/trait.Ticket.html +++ b/pr/2616/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

pub trait Ticket: Sized {
     const KIND: &'static str;
 
     // Required methods
@@ -17,10 +17,10 @@ ticket will be prepended to the string to make it somewhat self describing.

versioning, others might not.

The serialization format for converting the ticket from and to bytes is left to the implementer. We recommend using postcard for serialization.

-

Required Associated Constants§

source

const KIND: &'static str

String prefix describing the kind of iroh ticket.

+

Required Associated Constants§

const KIND: &'static str

String prefix describing the kind of iroh ticket.

This should be lower case ascii characters.

-

Required Methods§

source

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

Serialize to bytes used in the base32 string representation.

-
source

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

Deserialize from the base32 string representation bytes.

-

Provided Methods§

source

fn serialize(&self) -> String

Serialize to string.

-
source

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

Deserialize from a string.

-

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Ticket for DocTicket

source§

const KIND: &'static str = "doc"

source§

impl Ticket for NodeTicket

source§

const KIND: &'static str = "node"

source§

impl Ticket for BlobTicket

source§

const KIND: &'static str = "blob"

\ No newline at end of file +

Required Methods§

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

Serialize to bytes used in the base32 string representation.

+

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

Deserialize from the base32 string representation bytes.

+

Provided Methods§

fn serialize(&self) -> String

Serialize to string.

+

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

Deserialize from a string.

+

Object Safety§

This trait is not object safe.

Implementors§

§

impl Ticket for DocTicket

§

const KIND: &'static str = "doc"

§

impl Ticket for NodeTicket

§

const KIND: &'static str = "node"

§

impl Ticket for BlobTicket

§

const KIND: &'static str = "blob"

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html b/pr/2616/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html index 4e0567ca36..f6de841885 100644 --- a/pr/2616/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html +++ b/pr/2616/docs/iroh/blobs/constant.IROH_BLOCK_SIZE.html @@ -1,2 +1,2 @@ -IROH_BLOCK_SIZE in iroh::blobs - Rust

Constant iroh::blobs::IROH_BLOCK_SIZE

source ·
pub const IROH_BLOCK_SIZE: BlockSize;
Expand description

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

+IROH_BLOCK_SIZE in iroh::blobs - Rust

Constant iroh::blobs::IROH_BLOCK_SIZE

pub const IROH_BLOCK_SIZE: BlockSize;
Expand description

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

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

Enum iroh::blobs::downloader::DownloadError

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

Enum iroh::blobs::downloader::DownloadError

pub enum DownloadError {
     DownloadFailed,
     Cancelled,
     NoProviders,
@@ -8,7 +8,7 @@
 
§

Cancelled

The download was cancelled by us

§

NoProviders

No provider nodes found

§

ActorClosed

Failed to receive response from service.

-

Trait Implementations§

source§

impl Clone for DownloadError

source§

fn clone(&self) -> DownloadError

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for DownloadError

source§

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

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

impl Display for DownloadError

source§

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

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

impl Error for DownloadError

1.30.0 · source§

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

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

fn description(&self) -> &str

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

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

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

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

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

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for DownloadError

§

fn clone(&self) -> DownloadError

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

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

Performs copy-assignment from source. Read more
§

impl Debug for DownloadError

§

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

Formats the value using the given formatter. Read more
§

impl Display for DownloadError

§

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

Formats the value using the given formatter. Read more
§

impl Error for DownloadError

1.30.0 · source§

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

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

fn description(&self) -> &str

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

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

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

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

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

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/downloader/enum.FailureAction.html b/pr/2616/docs/iroh/blobs/downloader/enum.FailureAction.html index 45f23ad191..514ae32cf4 100644 --- a/pr/2616/docs/iroh/blobs/downloader/enum.FailureAction.html +++ b/pr/2616/docs/iroh/blobs/downloader/enum.FailureAction.html @@ -1,4 +1,4 @@ -FailureAction in iroh::blobs::downloader - Rust

Enum iroh::blobs::downloader::FailureAction

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

Enum iroh::blobs::downloader::FailureAction

pub enum FailureAction {
     AllIntentsDropped,
     AbortRequest(Error),
     DropPeer(Error),
@@ -8,7 +8,7 @@
 
§

AbortRequest(Error)

An error occurred that prevents the request from being retried at all.

§

DropPeer(Error)

An error occurred that suggests the node should not be used in general.

§

RetryLater(Error)

An error occurred in which neither the node nor the request are at fault.

-

Trait Implementations§

source§

impl Debug for FailureAction

source§

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

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

impl From<GetError> for FailureAction

source§

fn from(e: GetError) -> FailureAction

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for FailureAction

§

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

Formats the value using the given formatter. Read more
§

impl From<GetError> for FailureAction

§

fn from(e: GetError) -> FailureAction

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/downloader/enum.GetOutput.html b/pr/2616/docs/iroh/blobs/downloader/enum.GetOutput.html index f07ab0307f..73bbfaf7f6 100644 --- a/pr/2616/docs/iroh/blobs/downloader/enum.GetOutput.html +++ b/pr/2616/docs/iroh/blobs/downloader/enum.GetOutput.html @@ -1,11 +1,11 @@ -GetOutput in iroh::blobs::downloader - Rust

Enum iroh::blobs::downloader::GetOutput

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

Enum iroh::blobs::downloader::GetOutput

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

Output returned from Getter::get.

Variants§

§

Complete(Stats)

The request is already complete in the local store.

§

NeedsConn(N)

The request needs a connection to continue.

-

Trait Implementations§

source§

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

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

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

Trait Implementations§

§

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

§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<N> Freeze for GetOutput<N>
where N: Freeze,

§

impl<N> RefUnwindSafe for GetOutput<N>
where N: RefUnwindSafe,

§

impl<N> Send for GetOutput<N>
where N: Send,

§

impl<N> Sync for GetOutput<N>
where diff --git a/pr/2616/docs/iroh/blobs/downloader/index.html b/pr/2616/docs/iroh/blobs/downloader/index.html index 347ce882f3..1c91431206 100644 --- a/pr/2616/docs/iroh/blobs/downloader/index.html +++ b/pr/2616/docs/iroh/blobs/downloader/index.html @@ -1,4 +1,4 @@ -iroh::blobs::downloader - Rust

Module iroh::blobs::downloader

source ·
Expand description

Handle downloading blobs and collections concurrently and from nodes.

+iroh::blobs::downloader - Rust

Module iroh::blobs::downloader

Expand description

Handle downloading blobs and collections concurrently and from nodes.

The Downloader interacts with four main components to this end.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more

source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T

§

impl<T> RpcError for T
where T: Debug + Display + Send + Sync + Unpin + 'static,

§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,

source§

impl<T> RuleType for T
where diff --git a/pr/2616/docs/iroh/blobs/export/enum.ExportProgress.html b/pr/2616/docs/iroh/blobs/export/enum.ExportProgress.html index a3bc654797..e4345722c8 100644 --- a/pr/2616/docs/iroh/blobs/export/enum.ExportProgress.html +++ b/pr/2616/docs/iroh/blobs/export/enum.ExportProgress.html @@ -1,4 +1,4 @@ -ExportProgress in iroh::blobs::export - Rust

Enum iroh::blobs::export::ExportProgress

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

Enum iroh::blobs::export::ExportProgress

pub enum ExportProgress {
     Found {
         id: u64,
         hash: Hash,
@@ -31,10 +31,10 @@ to the specified out path.

Fields

§id: u64

Unique id of the entry that is being exported.

§

AllDone

We are done with the whole operation.

§

Abort(RpcError)

We got an error and need to abort.

-

Trait Implementations§

source§

impl Clone for ExportProgress

source§

fn clone(&self) -> ExportProgress

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for ExportProgress

source§

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

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

impl<'de> Deserialize<'de> for ExportProgress

Trait Implementations§

§

impl Clone for ExportProgress

§

fn clone(&self) -> ExportProgress

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

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for ExportProgress

§

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

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

impl Serialize for ExportProgress

source§

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

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

impl Serialize for ExportProgress

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/blobs/export/fn.export.html b/pr/2616/docs/iroh/blobs/export/fn.export.html index d009f3b2b7..209c6abd03 100644 --- a/pr/2616/docs/iroh/blobs/export/fn.export.html +++ b/pr/2616/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

pub async fn export<D>(
     db: &D,
     hash: Hash,
     outpath: PathBuf,
diff --git a/pr/2616/docs/iroh/blobs/export/fn.export_blob.html b/pr/2616/docs/iroh/blobs/export/fn.export_blob.html
index 643f99db62..a0f5d670d1 100644
--- a/pr/2616/docs/iroh/blobs/export/fn.export_blob.html
+++ b/pr/2616/docs/iroh/blobs/export/fn.export_blob.html
@@ -1,4 +1,4 @@
-export_blob in iroh::blobs::export - Rust

Function iroh::blobs::export::export_blob

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

Function iroh::blobs::export::export_blob

pub async fn export_blob<D>(
     db: &D,
     hash: Hash,
     outpath: PathBuf,
diff --git a/pr/2616/docs/iroh/blobs/export/fn.export_collection.html b/pr/2616/docs/iroh/blobs/export/fn.export_collection.html
index 71b6692a0d..af38c15e87 100644
--- a/pr/2616/docs/iroh/blobs/export/fn.export_collection.html
+++ b/pr/2616/docs/iroh/blobs/export/fn.export_collection.html
@@ -1,4 +1,4 @@
-export_collection in iroh::blobs::export - Rust

Function iroh::blobs::export::export_collection

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

Function iroh::blobs::export::export_collection

pub async fn export_collection<D>(
     db: &D,
     hash: Hash,
     outpath: PathBuf,
diff --git a/pr/2616/docs/iroh/blobs/export/index.html b/pr/2616/docs/iroh/blobs/export/index.html
index b5100b73a9..5d603bba61 100644
--- a/pr/2616/docs/iroh/blobs/export/index.html
+++ b/pr/2616/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

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/2616/docs/iroh/blobs/format/collection/index.html b/pr/2616/docs/iroh/blobs/format/collection/index.html index 09692a2b2a..934db16299 100644 --- a/pr/2616/docs/iroh/blobs/format/collection/index.html +++ b/pr/2616/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

Expand description

The collection type used by iroh

Structs§

Traits§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/format/collection/struct.Collection.html b/pr/2616/docs/iroh/blobs/format/collection/struct.Collection.html index c91a854f1d..893c8aac7d 100644 --- a/pr/2616/docs/iroh/blobs/format/collection/struct.Collection.html +++ b/pr/2616/docs/iroh/blobs/format/collection/struct.Collection.html @@ -1,51 +1,51 @@ -Collection in iroh::blobs::format::collection - Rust

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

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

A collection of blobs

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

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

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

A collection of blobs

Note that the format is subject to change.

-

Implementations§

source§

impl Collection

source

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

The header for the collection format.

+

Implementations§

§

impl Collection

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

The header for the collection format.

This is the start of the metadata blob.

-
source

pub fn to_blobs(&self) -> impl DoubleEndedIterator

Convert the collection to an iterator of blobs, with the last being the +

pub fn to_blobs(&self) -> impl DoubleEndedIterator

Convert the collection to an iterator of blobs, with the last being the root blob.

To persist the collection, write all the blobs to storage, and use the hash of the last blob as the collection hash.

-
source

pub async fn read_fsm( +

pub async fn read_fsm( fsm_at_start_root: AtStartRoot ) -> Result<(EndBlobNext, HashSeq, Collection), Error>

Read the collection from a get fsm.

Returns the fsm at the start of the first child blob (if any), the links array, and the collection.

-
source

pub async fn read_fsm_all( +

pub async fn read_fsm_all( fsm_at_start_root: AtStartRoot ) -> Result<(Collection, BTreeMap<u64, Bytes>, Stats), Error>

Read the collection and all it’s children from a get fsm.

Returns the collection, a map from blob offsets to bytes, and the stats.

-
source

pub async fn load( +

pub async fn load( root: Hash, store: &impl SimpleStore ) -> Result<Collection, Error>

Create a new collection from a hash sequence and metadata.

-
source

pub async fn load_db<D>(db: &D, root: &Hash) -> Result<Collection, Error>
where +

pub async fn load_db<D>(db: &D, root: &Hash) -> Result<Collection, Error>
where D: Map,

Load a collection from a store given a root hash

This assumes that both the links and the metadata of the collection is stored in the store. It does not require that all child blobs are stored in the store.

-
source

pub async fn store<D>(self, db: &D) -> Result<TempTag, Error>
where +

pub async fn store<D>(self, db: &D) -> Result<TempTag, Error>
where D: Store,

Store a collection in a store. returns the root hash of the collection as a TempTag.

-
source

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

Iterate over the blobs in this collection

-
source

pub fn len(&self) -> usize

Get the number of blobs in this collection

-
source

pub fn is_empty(&self) -> bool

Check if this collection is empty

-
source

pub fn push(&mut self, name: String, hash: Hash)

Add the given blob to the collection.

-

Trait Implementations§

source§

impl Clone for Collection

source§

fn clone(&self) -> Collection

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

source§

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

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

impl Default for Collection

source§

fn default() -> Collection

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

impl<'de> Deserialize<'de> for Collection

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

Iterate over the blobs in this collection

+

pub fn len(&self) -> usize

Get the number of blobs in this collection

+

pub fn is_empty(&self) -> bool

Check if this collection is empty

+

pub fn push(&mut self, name: String, hash: Hash)

Add the given blob to the collection.

+

Trait Implementations§

§

impl Clone for Collection

§

fn clone(&self) -> Collection

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

§

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

Formats the value using the given formatter. Read more
§

impl Default for Collection

§

fn default() -> Collection

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

impl<'de> Deserialize<'de> for Collection

§

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

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

impl<K, V> Extend<(K, V)> for Collection
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl<K, V> Extend<(K, V)> for Collection
where K: Into<String>, - V: Into<Hash>,

source§

fn extend<T>(&mut self, iter: T)
where - T: IntoIterator<Item = (K, V)>,

Extends a collection with the contents of an iterator. Read more
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
source§

impl<K, V> FromIterator<(K, V)> for Collection
where + V: Into<Hash>,

§

fn extend<T>(&mut self, iter: T)
where + T: IntoIterator<Item = (K, V)>,

Extends a collection with the contents of an iterator. Read more
source§

fn extend_one(&mut self, item: A)

🔬This is a nightly-only experimental API. (extend_one)
Extends a collection with exactly one element.
source§

fn extend_reserve(&mut self, additional: usize)

🔬This is a nightly-only experimental API. (extend_one)
Reserves capacity in a collection for the given number of additional elements. Read more
§

impl<K, V> FromIterator<(K, V)> for Collection
where K: Into<String>, - V: Into<Hash>,

source§

fn from_iter<T>(iter: T) -> Collection
where - T: IntoIterator<Item = (K, V)>,

Creates a value from an iterator. Read more
source§

impl Index<usize> for Collection

§

type Output = (String, Hash)

The returned type after indexing.
source§

fn index(&self, index: usize) -> &<Collection as Index<usize>>::Output

Performs the indexing (container[index]) operation. Read more
source§

impl IntoIterator for Collection

§

type Item = (String, Hash)

The type of the elements being iterated over.
§

type IntoIter = IntoIter<<Collection as IntoIterator>::Item>

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

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

Creates an iterator from a value. Read more
source§

impl PartialEq for Collection

source§

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

This method tests for self and other values to be equal, and is used + V: Into<Hash>,
§

fn from_iter<T>(iter: T) -> Collection
where + T: IntoIterator<Item = (K, V)>,

Creates a value from an iterator. Read more
§

impl Index<usize> for Collection

§

type Output = (String, Hash)

The returned type after indexing.
§

fn index(&self, index: usize) -> &<Collection as Index<usize>>::Output

Performs the indexing (container[index]) operation. Read more
§

impl IntoIterator for Collection

§

type Item = (String, Hash)

The type of the elements being iterated over.
§

type IntoIter = IntoIter<<Collection as IntoIterator>::Item>

Which kind of iterator are we turning this into?
§

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

Creates an iterator from a value. Read more
§

impl PartialEq for Collection

§

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

This method tests for self and other values to be equal, and is used by ==.
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 Collection

source§

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

§

impl Serialize for Collection

§

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

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

impl StructuralPartialEq for Collection

Auto Trait Implementations§

Blanket Implementations§

source§

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

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

impl StructuralPartialEq for Collection

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/format/collection/trait.SimpleStore.html b/pr/2616/docs/iroh/blobs/format/collection/trait.SimpleStore.html index 7db40c9122..f1f23a14fe 100644 --- a/pr/2616/docs/iroh/blobs/format/collection/trait.SimpleStore.html +++ b/pr/2616/docs/iroh/blobs/format/collection/trait.SimpleStore.html @@ -1,9 +1,9 @@ -SimpleStore in iroh::blobs::format::collection - Rust

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

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

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

pub trait SimpleStore {
     // Required method
     fn load(
         &self,
         hash: Hash
     ) -> impl Future<Output = Result<Bytes, Error>> + Send;
 }
Expand description

A simple store trait for loading blobs

-

Required Methods§

source

fn load(&self, hash: Hash) -> impl Future<Output = Result<Bytes, Error>> + Send

Load a blob from the store

+

Required Methods§

fn load(&self, hash: Hash) -> impl Future<Output = Result<Bytes, Error>> + Send

Load a blob from the store

Object Safety§

This trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/format/index.html b/pr/2616/docs/iroh/blobs/format/index.html index 556b45cc6d..4d957f0c6f 100644 --- a/pr/2616/docs/iroh/blobs/format/index.html +++ b/pr/2616/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

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/2616/docs/iroh/blobs/get/db/enum.BlobId.html b/pr/2616/docs/iroh/blobs/get/db/enum.BlobId.html index 1dca88bf46..b3a9c777e6 100644 --- a/pr/2616/docs/iroh/blobs/get/db/enum.BlobId.html +++ b/pr/2616/docs/iroh/blobs/get/db/enum.BlobId.html @@ -1,27 +1,27 @@ -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

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

The id of a blob in a transfer

Variants§

§

Root

The root blob (child id 0)

§

Child(NonZero<u64>)

A child blob (child id > 0)

-

Trait Implementations§

source§

impl Clone for BlobId

source§

fn clone(&self) -> BlobId

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

source§

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

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

impl<'de> Deserialize<'de> for BlobId

Trait Implementations§

§

impl Clone for BlobId

§

fn clone(&self) -> BlobId

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

§

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

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for BlobId

§

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

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

impl Hash for BlobId

source§

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

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

impl Hash for BlobId

§

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 BlobId

source§

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

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

fn max(self, other: Self) -> Self
where + Self: Sized,

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

impl Ord for BlobId

§

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

source§

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

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for BlobId

§

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

source§

fn partial_cmp(&self, other: &BlobId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for BlobId

§

fn partial_cmp(&self, other: &BlobId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

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

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

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

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

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

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

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

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for BlobId

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for BlobId

§

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

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

impl Copy for BlobId

source§

impl Eq for BlobId

source§

impl StructuralPartialEq for BlobId

Auto Trait Implementations§

§

impl Freeze for BlobId

§

impl RefUnwindSafe for BlobId

§

impl Send for BlobId

§

impl Sync for BlobId

§

impl Unpin for BlobId

§

impl UnwindSafe for BlobId

Blanket Implementations§

source§

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

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

impl Copy for BlobId

§

impl Eq for BlobId

§

impl StructuralPartialEq for BlobId

Auto Trait Implementations§

§

impl Freeze for BlobId

§

impl RefUnwindSafe for BlobId

§

impl Send for BlobId

§

impl Sync for BlobId

§

impl Unpin for BlobId

§

impl UnwindSafe for BlobId

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where @@ -145,7 +145,7 @@ builds.

Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T

§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,

source§

impl<T> RuleType for T
where T: Copy + Debug + Eq + Hash + Ord,

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/get/db/enum.BlobInfo.html b/pr/2616/docs/iroh/blobs/get/db/enum.BlobInfo.html index 014144a368..a659f263b6 100644 --- a/pr/2616/docs/iroh/blobs/get/db/enum.BlobInfo.html +++ b/pr/2616/docs/iroh/blobs/get/db/enum.BlobInfo.html @@ -1,4 +1,4 @@ -BlobInfo in iroh::blobs::get::db - Rust

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

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

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

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

Fields

§entry: <D as MapMut>::EntryMut

The partial entry.

§valid_ranges: RangeSet<[ChunkNum; 2]>

The ranges that are available locally.

§

Missing

we don’t have the blob at all

-

Implementations§

source§

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

source

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

The size of the blob, if known.

-
source

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

Ranges that are valid locally.

+

Implementations§

§

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

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

The size of the blob, if known.

+

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

Ranges that are valid locally.

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

-
source

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

Ranges that are missing locally and need to be requested.

+

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

Ranges that are missing locally and need to be requested.

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

-

Trait Implementations§

source§

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

Trait Implementations§

§

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

source§

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

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

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

Performs copy-assignment from source. Read more
source§

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

§

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

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

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

Performs copy-assignment from source. Read more
§

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

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

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

§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

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

§

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

§

impl<D> Send for BlobInfo<D>

§

impl<D> Sync for BlobInfo<D>

§

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

§

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

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

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

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

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

This will be the last message in the stream.

§

Abort(RpcError)

We got an error and need to abort.

This will be the last message in the stream.

-

Trait Implementations§

source§

impl Clone for DownloadProgress

source§

fn clone(&self) -> DownloadProgress

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for DownloadProgress

source§

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

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

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

Trait Implementations§

§

impl Clone for DownloadProgress

§

fn clone(&self) -> DownloadProgress

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

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

Performs copy-assignment from source. Read more
§

impl Debug for DownloadProgress

§

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

Formats the value using the given formatter. Read more
§

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

§

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

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

impl Serialize for DownloadProgress

source§

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

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

impl Serialize for DownloadProgress

§

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

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

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

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

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

Output of get_to_db_in_steps.

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

§

NeedsConn(GetStateNeedsConn)

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

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

-

Trait Implementations§

source§

impl Debug for GetState

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for GetState

§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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

§

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

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

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

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

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

Get information about a blob in a store.

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

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/get/db/fn.get_to_db.html b/pr/2616/docs/iroh/blobs/get/db/fn.get_to_db.html index 72ed867d9e..2d915880bf 100644 --- a/pr/2616/docs/iroh/blobs/get/db/fn.get_to_db.html +++ b/pr/2616/docs/iroh/blobs/get/db/fn.get_to_db.html @@ -1,4 +1,4 @@ -get_to_db in iroh::blobs::get::db - Rust

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

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

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

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

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

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

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

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

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

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

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

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

Given a partial entry, get the valid ranges.

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

Module iroh::blobs::get::db

source ·
Expand description

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

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

Module iroh::blobs::get::db

Expand description

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

Structs§

Enums§

Functions§

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

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

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

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

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

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

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

-

Implementations§

source§

impl GetStateNeedsConn

source

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

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

-

Trait Implementations§

source§

impl Debug for GetStateNeedsConn

source§

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

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

impl NeedsConn<Connection> for GetStateNeedsConn

Implementations§

§

impl GetStateNeedsConn

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

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

+

Trait Implementations§

§

impl Debug for GetStateNeedsConn

§

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

Formats the value using the given formatter. Read more
§

impl NeedsConn<Connection> for GetStateNeedsConn

§

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

Proceeds the download with the given connection.

Auto Trait Implementations§

Blanket Implementations§

source§

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

Enum iroh::blobs::get::GetResponseError

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

Enum iroh::blobs::get::GetResponseError

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

Read(ReadError)

Error when reading from the stream

§

Decode(DecodeError)

Error when decoding, e.g. hash mismatch

§

Generic(Error)

A generic error

-

Trait Implementations§

source§

impl Debug for GetResponseError

source§

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

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

impl Display for GetResponseError

source§

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

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

impl Error for GetResponseError

source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<ConnectionError> for GetResponseError

source§

fn from(source: ConnectionError) -> GetResponseError

Converts to this type from the input type.
source§

impl From<DecodeError> for GetResponseError

source§

fn from(cause: DecodeError) -> GetResponseError

Converts to this type from the input type.
source§

impl From<Error> for GetResponseError

source§

fn from(cause: Error) -> GetResponseError

Converts to this type from the input type.
source§

impl From<Error> for GetResponseError

source§

fn from(cause: Error) -> GetResponseError

Converts to this type from the input type.
source§

impl From<ReadError> for GetResponseError

source§

fn from(source: ReadError) -> GetResponseError

Converts to this type from the input type.
source§

impl From<WriteError> for GetResponseError

source§

fn from(source: WriteError) -> GetResponseError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for GetResponseError

§

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

Formats the value using the given formatter. Read more
§

impl Display for GetResponseError

§

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

Formats the value using the given formatter. Read more
§

impl Error for GetResponseError

§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<ConnectionError> for GetResponseError

§

fn from(source: ConnectionError) -> GetResponseError

Converts to this type from the input type.
§

impl From<DecodeError> for GetResponseError

§

fn from(cause: DecodeError) -> GetResponseError

Converts to this type from the input type.
§

impl From<Error> for GetResponseError

§

fn from(cause: Error) -> GetResponseError

Converts to this type from the input type.
§

impl From<Error> for GetResponseError

§

fn from(cause: Error) -> GetResponseError

Converts to this type from the input type.
§

impl From<ReadError> for GetResponseError

§

fn from(source: ReadError) -> GetResponseError

Converts to this type from the input type.
§

impl From<WriteError> for GetResponseError

§

fn from(source: WriteError) -> GetResponseError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

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

§

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

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

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

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

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

Io(Error)

Network or IO operation failed.

§

BadRequest(Error)

Our download request is invalid.

§

LocalFailure(Error)

Operation failed on the local node.

-

Trait Implementations§

source§

impl Debug for GetError

source§

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

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

impl Display for GetError

source§

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

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

impl Error for GetError

source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<AtBlobHeaderNextError> for GetError

source§

fn from(value: AtBlobHeaderNextError) -> GetError

Converts to this type from the input type.
source§

impl From<ConnectedNextError> for GetError

source§

fn from(value: ConnectedNextError) -> GetError

Converts to this type from the input type.
source§

impl From<ConnectionError> for GetError

source§

fn from(value: ConnectionError) -> GetError

Converts to this type from the input type.
source§

impl From<DecodeError> for GetError

source§

fn from(value: DecodeError) -> GetError

Converts to this type from the input type.
source§

impl From<Error> for GetError

source§

fn from(value: Error) -> GetError

Converts to this type from the input type.
source§

impl From<GetError> for FailureAction

source§

fn from(e: GetError) -> FailureAction

Converts to this type from the input type.
source§

impl From<ProgressSendError> for GetError

source§

fn from(value: ProgressSendError) -> GetError

Converts to this type from the input type.
source§

impl From<ReadError> for GetError

source§

fn from(value: ReadError) -> GetError

Converts to this type from the input type.
source§

impl From<WriteError> for GetError

source§

fn from(value: WriteError) -> GetError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for GetError

§

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

Formats the value using the given formatter. Read more
§

impl Display for GetError

§

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

Formats the value using the given formatter. Read more
§

impl Error for GetError

§

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

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

fn description(&self) -> &str

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

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

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<AtBlobHeaderNextError> for GetError

§

fn from(value: AtBlobHeaderNextError) -> GetError

Converts to this type from the input type.
§

impl From<ConnectedNextError> for GetError

§

fn from(value: ConnectedNextError) -> GetError

Converts to this type from the input type.
§

impl From<ConnectionError> for GetError

§

fn from(value: ConnectionError) -> GetError

Converts to this type from the input type.
§

impl From<DecodeError> for GetError

§

fn from(value: DecodeError) -> GetError

Converts to this type from the input type.
§

impl From<Error> for GetError

§

fn from(value: Error) -> GetError

Converts to this type from the input type.
§

impl From<GetError> for FailureAction

§

fn from(e: GetError) -> FailureAction

Converts to this type from the input type.
§

impl From<ProgressSendError> for GetError

§

fn from(value: ProgressSendError) -> GetError

Converts to this type from the input type.
§

impl From<ReadError> for GetError

§

fn from(value: ReadError) -> GetError

Converts to this type from the input type.
§

impl From<WriteError> for GetError

§

fn from(value: WriteError) -> GetError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/error/index.html b/pr/2616/docs/iroh/blobs/get/error/index.html index 107318af40..d3e5c98952 100644 --- a/pr/2616/docs/iroh/blobs/get/error/index.html +++ b/pr/2616/docs/iroh/blobs/get/error/index.html @@ -1,2 +1,2 @@ -iroh::blobs::get::error - Rust

Module iroh::blobs::get::error

source ·
Expand description

Error returned from get operations

+iroh::blobs::get::error - Rust

Module iroh::blobs::get::error

Expand description

Error returned from get operations

Enums§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/get/fsm/enum.AtBlobHeaderNextError.html b/pr/2616/docs/iroh/blobs/get/fsm/enum.AtBlobHeaderNextError.html index 2e928912a7..4d3fabe5b2 100644 --- a/pr/2616/docs/iroh/blobs/get/fsm/enum.AtBlobHeaderNextError.html +++ b/pr/2616/docs/iroh/blobs/get/fsm/enum.AtBlobHeaderNextError.html @@ -1,4 +1,4 @@ -AtBlobHeaderNextError in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::AtBlobHeaderNextError

source ·
pub enum AtBlobHeaderNextError {
+AtBlobHeaderNextError in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::AtBlobHeaderNextError

pub enum AtBlobHeaderNextError {
     NotFound,
     Read(ReadError),
     Io(Error),
@@ -7,7 +7,7 @@
 

This indicates that the provider does not have the requested data.

§

Read(ReadError)

Quinn read error when reading the size header

§

Io(Error)

Generic io error

-

Trait Implementations§

source§

impl Debug for AtBlobHeaderNextError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for AtBlobHeaderNextError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for AtBlobHeaderNextError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<AtBlobHeaderNextError> for DecodeError

source§

fn from(cause: AtBlobHeaderNextError) -> DecodeError

Converts to this type from the input type.
source§

impl From<AtBlobHeaderNextError> for GetError

source§

fn from(value: AtBlobHeaderNextError) -> GetError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for AtBlobHeaderNextError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for AtBlobHeaderNextError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for AtBlobHeaderNextError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<AtBlobHeaderNextError> for DecodeError

§

fn from(cause: AtBlobHeaderNextError) -> DecodeError

Converts to this type from the input type.
§

impl From<AtBlobHeaderNextError> for GetError

§

fn from(value: AtBlobHeaderNextError) -> GetError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/fsm/enum.BlobContentNext.html b/pr/2616/docs/iroh/blobs/get/fsm/enum.BlobContentNext.html index 3503bc2b26..bab8a4b209 100644 --- a/pr/2616/docs/iroh/blobs/get/fsm/enum.BlobContentNext.html +++ b/pr/2616/docs/iroh/blobs/get/fsm/enum.BlobContentNext.html @@ -1,12 +1,12 @@ -BlobContentNext in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::BlobContentNext

source ·
pub enum BlobContentNext {
+BlobContentNext in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::BlobContentNext

pub enum BlobContentNext {
     More((AtBlobContent, Result<BaoContentItem, DecodeError>)),
     Done(AtEndBlob),
 }
Expand description

The next state after reading a content item

Variants§

§

More((AtBlobContent, Result<BaoContentItem, DecodeError>))

We expect more content

§

Done(AtEndBlob)

We are done with this blob

-

Trait Implementations§

source§

impl Debug for BlobContentNext

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext

Trait Implementations§

§

impl Debug for BlobContentNext

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<(AtBlobContent, Result<BaoContentItem, DecodeError>)> for BlobContentNext

§

fn from( value: (AtBlobContent, Result<BaoContentItem, DecodeError>) -) -> BlobContentNext

Converts to this type from the input type.
source§

impl From<AtEndBlob> for BlobContentNext

source§

fn from(value: AtEndBlob) -> BlobContentNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +) -> BlobContentNext

Converts to this type from the input type.

§

impl From<AtEndBlob> for BlobContentNext

§

fn from(value: AtEndBlob) -> BlobContentNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/fsm/enum.ConnectedNext.html b/pr/2616/docs/iroh/blobs/get/fsm/enum.ConnectedNext.html index ca147e3b3e..9259e107cf 100644 --- a/pr/2616/docs/iroh/blobs/get/fsm/enum.ConnectedNext.html +++ b/pr/2616/docs/iroh/blobs/get/fsm/enum.ConnectedNext.html @@ -1,4 +1,4 @@ -ConnectedNext in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::ConnectedNext

source ·
pub enum ConnectedNext {
+ConnectedNext in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::ConnectedNext

pub enum ConnectedNext {
     StartRoot(AtStartRoot),
     StartChild(AtStartChild),
     Closing(AtClosing),
@@ -6,7 +6,7 @@
 

Variants§

§

StartRoot(AtStartRoot)

First response is either a collection or a single blob

§

StartChild(AtStartChild)

First response is a child

§

Closing(AtClosing)

Request is empty

-

Trait Implementations§

source§

impl Debug for ConnectedNext

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<AtClosing> for ConnectedNext

source§

fn from(value: AtClosing) -> ConnectedNext

Converts to this type from the input type.
source§

impl From<AtStartChild> for ConnectedNext

source§

fn from(value: AtStartChild) -> ConnectedNext

Converts to this type from the input type.
source§

impl From<AtStartRoot> for ConnectedNext

source§

fn from(value: AtStartRoot) -> ConnectedNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for ConnectedNext

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<AtClosing> for ConnectedNext

§

fn from(value: AtClosing) -> ConnectedNext

Converts to this type from the input type.
§

impl From<AtStartChild> for ConnectedNext

§

fn from(value: AtStartChild) -> ConnectedNext

Converts to this type from the input type.
§

impl From<AtStartRoot> for ConnectedNext

§

fn from(value: AtStartRoot) -> ConnectedNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/fsm/enum.ConnectedNextError.html b/pr/2616/docs/iroh/blobs/get/fsm/enum.ConnectedNextError.html index 9f9c3b7400..3b5e9e891b 100644 --- a/pr/2616/docs/iroh/blobs/get/fsm/enum.ConnectedNextError.html +++ b/pr/2616/docs/iroh/blobs/get/fsm/enum.ConnectedNextError.html @@ -1,4 +1,4 @@ -ConnectedNextError in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::ConnectedNextError

source ·
pub enum ConnectedNextError {
+ConnectedNextError in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::ConnectedNextError

pub enum ConnectedNextError {
     PostcardSer(Error),
     RequestTooBig,
     Write(WriteError),
@@ -8,7 +8,7 @@
 
§

RequestTooBig

The serialized request is too long to be sent

§

Write(WriteError)

Error when writing the request to the SendStream.

§

Io(Error)

A generic io error

-

Trait Implementations§

source§

impl Debug for ConnectedNextError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for ConnectedNextError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for ConnectedNextError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<ConnectedNextError> for GetError

source§

fn from(value: ConnectedNextError) -> GetError

Converts to this type from the input type.
source§

impl From<WriteError> for ConnectedNextError

source§

fn from(source: WriteError) -> ConnectedNextError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for ConnectedNextError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ConnectedNextError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ConnectedNextError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<ConnectedNextError> for GetError

§

fn from(value: ConnectedNextError) -> GetError

Converts to this type from the input type.
§

impl From<WriteError> for ConnectedNextError

§

fn from(source: WriteError) -> ConnectedNextError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/fsm/enum.DecodeError.html b/pr/2616/docs/iroh/blobs/get/fsm/enum.DecodeError.html index 6a5b81bad2..29aa6988ba 100644 --- a/pr/2616/docs/iroh/blobs/get/fsm/enum.DecodeError.html +++ b/pr/2616/docs/iroh/blobs/get/fsm/enum.DecodeError.html @@ -1,4 +1,4 @@ -DecodeError in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::DecodeError

source ·
pub enum DecodeError {
+DecodeError in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::DecodeError

pub enum DecodeError {
     NotFound,
     ParentNotFound(TreeNode),
     LeafNotFound(ChunkNum),
@@ -30,7 +30,7 @@ is not actually a §

LeafHashMismatch(ChunkNum)

The hash of a leaf did not match the expected hash

§

Read(ReadError)

Error when reading from the stream

§

Io(Error)

A generic io error

-

Trait Implementations§

source§

impl Debug for DecodeError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for DecodeError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for DecodeError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<AtBlobHeaderNextError> for DecodeError

source§

fn from(cause: AtBlobHeaderNextError) -> DecodeError

Converts to this type from the input type.
source§

impl From<DecodeError> for DecodeError

source§

fn from(value: DecodeError) -> DecodeError

Converts to this type from the input type.
source§

impl From<DecodeError> for GetError

source§

fn from(value: DecodeError) -> GetError

Converts to this type from the input type.
source§

impl From<Error> for DecodeError

source§

fn from(source: Error) -> DecodeError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for DecodeError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for DecodeError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for DecodeError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<AtBlobHeaderNextError> for DecodeError

§

fn from(cause: AtBlobHeaderNextError) -> DecodeError

Converts to this type from the input type.
§

impl From<DecodeError> for DecodeError

§

fn from(value: DecodeError) -> DecodeError

Converts to this type from the input type.
§

impl From<DecodeError> for GetError

§

fn from(value: DecodeError) -> GetError

Converts to this type from the input type.
§

impl From<Error> for DecodeError

§

fn from(source: Error) -> DecodeError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/fsm/enum.EndBlobNext.html b/pr/2616/docs/iroh/blobs/get/fsm/enum.EndBlobNext.html index c1dbb2a47b..c7af162b34 100644 --- a/pr/2616/docs/iroh/blobs/get/fsm/enum.EndBlobNext.html +++ b/pr/2616/docs/iroh/blobs/get/fsm/enum.EndBlobNext.html @@ -1,10 +1,10 @@ -EndBlobNext in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::EndBlobNext

source ·
pub enum EndBlobNext {
+EndBlobNext in iroh::blobs::get::fsm - Rust

Enum iroh::blobs::get::fsm::EndBlobNext

pub enum EndBlobNext {
     MoreChildren(AtStartChild),
     Closing(AtClosing),
 }
Expand description

The next state after the end of a blob

Variants§

§

MoreChildren(AtStartChild)

Response is expected to have more children

§

Closing(AtClosing)

No more children expected

-

Trait Implementations§

source§

impl Debug for EndBlobNext

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<AtClosing> for EndBlobNext

source§

fn from(value: AtClosing) -> EndBlobNext

Converts to this type from the input type.
source§

impl From<AtStartChild> for EndBlobNext

source§

fn from(value: AtStartChild) -> EndBlobNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for EndBlobNext

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<AtClosing> for EndBlobNext

§

fn from(value: AtClosing) -> EndBlobNext

Converts to this type from the input type.
§

impl From<AtStartChild> for EndBlobNext

§

fn from(value: AtStartChild) -> EndBlobNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/fsm/fn.start.html b/pr/2616/docs/iroh/blobs/get/fsm/fn.start.html index 38fa58c4d6..04d1e9fbcb 100644 --- a/pr/2616/docs/iroh/blobs/get/fsm/fn.start.html +++ b/pr/2616/docs/iroh/blobs/get/fsm/fn.start.html @@ -1,2 +1,2 @@ -start in iroh::blobs::get::fsm - Rust

Function iroh::blobs::get::fsm::start

source ·
pub fn start(connection: Connection, request: GetRequest) -> AtInitial
Expand description

The entry point of the get response machine

+start in iroh::blobs::get::fsm - Rust

Function iroh::blobs::get::fsm::start

pub fn start(connection: Connection, request: GetRequest) -> AtInitial
Expand description

The entry point of the get response machine

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/get/fsm/index.html b/pr/2616/docs/iroh/blobs/get/fsm/index.html index b33f3d85ff..57f9043a65 100644 --- a/pr/2616/docs/iroh/blobs/get/fsm/index.html +++ b/pr/2616/docs/iroh/blobs/get/fsm/index.html @@ -1,4 +1,4 @@ -iroh::blobs::get::fsm - Rust

Module iroh::blobs::get::fsm

source ·
Expand description

Finite state machine for get responses.

+iroh::blobs::get::fsm - Rust

Module iroh::blobs::get::fsm

Expand description

Finite state machine for get responses.

This is the low level API for getting data from a peer.

diff --git a/pr/2616/docs/iroh/blobs/get/fsm/struct.AtBlobContent.html b/pr/2616/docs/iroh/blobs/get/fsm/struct.AtBlobContent.html index ea60d1db26..4eb6a3dd37 100644 --- a/pr/2616/docs/iroh/blobs/get/fsm/struct.AtBlobContent.html +++ b/pr/2616/docs/iroh/blobs/get/fsm/struct.AtBlobContent.html @@ -1,18 +1,18 @@ -AtBlobContent in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtBlobContent

source ·
pub struct AtBlobContent { /* private fields */ }
Expand description

State while we are reading content

-

Implementations§

source§

impl AtBlobContent

source

pub async fn next(self) -> BlobContentNext

Read the next item, either content, an error, or the end of the blob

-
source

pub fn tree(&self) -> BaoTree

The geometry of the tree we are currently reading.

-
source

pub fn hash(&self) -> Hash

The hash of the blob we are reading.

-
source

pub fn offset(&self) -> u64

The current offset of the blob we are reading.

-
source

pub async fn drain(self) -> Result<AtEndBlob, DecodeError>

Drain the response and throw away the result

-
source

pub async fn concatenate_into_vec( +AtBlobContent in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtBlobContent

pub struct AtBlobContent { /* private fields */ }
Expand description

State while we are reading content

+

Implementations§

§

impl AtBlobContent

pub async fn next(self) -> BlobContentNext

Read the next item, either content, an error, or the end of the blob

+

pub fn tree(&self) -> BaoTree

The geometry of the tree we are currently reading.

+

pub fn hash(&self) -> Hash

The hash of the blob we are reading.

+

pub fn offset(&self) -> u64

The current offset of the blob we are reading.

+

pub async fn drain(self) -> Result<AtEndBlob, DecodeError>

Drain the response and throw away the result

+

pub async fn concatenate_into_vec( self ) -> Result<(AtEndBlob, Vec<u8>), DecodeError>

Concatenate the entire response into a vec

-
source

pub async fn write_all_batch<B>( +

pub async fn write_all_batch<B>( self, writer: B ) -> Result<AtEndBlob, DecodeError>
where B: BaoBatchWriter,

Write the entire stream for this blob to a batch writer.

-
source

pub async fn write_all_with_outboard<D, O>( +

pub async fn write_all_with_outboard<D, O>( self, outboard: Option<O>, data: D @@ -21,10 +21,10 @@ O: OutboardMut,

Write the entire blob to a slice writer and to an optional outboard.

The outboard is only written to if the blob is larger than a single chunk group.

-
source

pub async fn write_all<D>(self, data: D) -> Result<AtEndBlob, DecodeError>
where +

pub async fn write_all<D>(self, data: D) -> Result<AtEndBlob, DecodeError>

Write the entire blob to a slice writer.

-
source

pub fn finish(self) -> AtClosing

Immediately finish the get response without reading further

-

Trait Implementations§

source§

impl Debug for AtBlobContent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

pub fn finish(self) -> AtClosing

Immediately finish the get response without reading further

+

Trait Implementations§

§

impl Debug for AtBlobContent

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/fsm/struct.AtBlobHeader.html b/pr/2616/docs/iroh/blobs/get/fsm/struct.AtBlobHeader.html index 60e57e5de7..450871fb0e 100644 --- a/pr/2616/docs/iroh/blobs/get/fsm/struct.AtBlobHeader.html +++ b/pr/2616/docs/iroh/blobs/get/fsm/struct.AtBlobHeader.html @@ -1,14 +1,14 @@ -AtBlobHeader in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtBlobHeader

source ·
pub struct AtBlobHeader { /* private fields */ }
Expand description

State before reading a size header

-

Implementations§

source§

impl AtBlobHeader

source

pub async fn next(self) -> Result<(AtBlobContent, u64), AtBlobHeaderNextError>

Read the size header, returning it and going into the Content state.

-
source

pub async fn drain(self) -> Result<AtEndBlob, DecodeError>

Drain the response and throw away the result

-
source

pub async fn concatenate_into_vec( +AtBlobHeader in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtBlobHeader

pub struct AtBlobHeader { /* private fields */ }
Expand description

State before reading a size header

+

Implementations§

§

impl AtBlobHeader

pub async fn next(self) -> Result<(AtBlobContent, u64), AtBlobHeaderNextError>

Read the size header, returning it and going into the Content state.

+

pub async fn drain(self) -> Result<AtEndBlob, DecodeError>

Drain the response and throw away the result

+

pub async fn concatenate_into_vec( self ) -> Result<(AtEndBlob, Vec<u8>), DecodeError>

Concatenate the entire response into a vec

For a request that does not request the complete blob, this will just concatenate the ranges that were requested.

-
source

pub async fn write_all<D>(self, data: D) -> Result<AtEndBlob, DecodeError>
where +

pub async fn write_all<D>(self, data: D) -> Result<AtEndBlob, DecodeError>

Write the entire blob to a slice writer.

-
source

pub async fn write_all_with_outboard<D, O>( +

pub async fn write_all_with_outboard<D, O>( self, outboard: Option<O>, data: D @@ -17,15 +17,15 @@ concatenate the ranges that were requested.

O: OutboardMut,

Write the entire blob to a slice writer and to an optional outboard.

The outboard is only written to if the blob is larger than a single chunk group.

-
source

pub async fn write_all_batch<B>( +

pub async fn write_all_batch<B>( self, batch: B ) -> Result<AtEndBlob, DecodeError>
where B: BaoBatchWriter,

Write the entire stream for this blob to a batch writer.

-
source

pub fn hash(&self) -> Hash

The hash of the blob we are reading.

-
source

pub fn ranges(&self) -> &RangeSet<[ChunkNum; 2]>

The ranges we have requested for the current hash.

-
source

pub fn offset(&self) -> u64

The current offset of the blob we are reading.

-

Trait Implementations§

source§

impl Debug for AtBlobHeader

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

pub fn hash(&self) -> Hash

The hash of the blob we are reading.

+

pub fn ranges(&self) -> &RangeSet<[ChunkNum; 2]>

The ranges we have requested for the current hash.

+

pub fn offset(&self) -> u64

The current offset of the blob we are reading.

+

Trait Implementations§

§

impl Debug for AtBlobHeader

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/fsm/struct.AtClosing.html b/pr/2616/docs/iroh/blobs/get/fsm/struct.AtClosing.html index 2c059a0c8a..7d003daf60 100644 --- a/pr/2616/docs/iroh/blobs/get/fsm/struct.AtClosing.html +++ b/pr/2616/docs/iroh/blobs/get/fsm/struct.AtClosing.html @@ -1,6 +1,6 @@ -AtClosing in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtClosing

source ·
pub struct AtClosing { /* private fields */ }
Expand description

State when finishing the get response

-

Implementations§

source§

impl AtClosing

source

pub async fn next(self) -> Result<Stats, ReadError>

Finish the get response, returning statistics

-

Trait Implementations§

source§

impl Debug for AtClosing

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<AtClosing> for ConnectedNext

source§

fn from(value: AtClosing) -> ConnectedNext

Converts to this type from the input type.
source§

impl From<AtClosing> for EndBlobNext

source§

fn from(value: AtClosing) -> EndBlobNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +AtClosing in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtClosing

pub struct AtClosing { /* private fields */ }
Expand description

State when finishing the get response

+

Implementations§

§

impl AtClosing

pub async fn next(self) -> Result<Stats, ReadError>

Finish the get response, returning statistics

+

Trait Implementations§

§

impl Debug for AtClosing

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<AtClosing> for ConnectedNext

§

fn from(value: AtClosing) -> ConnectedNext

Converts to this type from the input type.
§

impl From<AtClosing> for EndBlobNext

§

fn from(value: AtClosing) -> EndBlobNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/fsm/struct.AtConnected.html b/pr/2616/docs/iroh/blobs/get/fsm/struct.AtConnected.html index 8252422a08..2239de8916 100644 --- a/pr/2616/docs/iroh/blobs/get/fsm/struct.AtConnected.html +++ b/pr/2616/docs/iroh/blobs/get/fsm/struct.AtConnected.html @@ -1,9 +1,9 @@ -AtConnected in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtConnected

source ·
pub struct AtConnected { /* private fields */ }
Expand description

State of the get response machine after the handshake has been sent

-

Implementations§

source§

impl AtConnected

source

pub async fn next(self) -> Result<ConnectedNext, ConnectedNextError>

Send the request and move to the next state

+AtConnected in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtConnected

pub struct AtConnected { /* private fields */ }
Expand description

State of the get response machine after the handshake has been sent

+

Implementations§

§

impl AtConnected

pub async fn next(self) -> Result<ConnectedNext, ConnectedNextError>

Send the request and move to the next state

The next state will be either StartRoot or StartChild depending on whether the request requests part of the collection or not.

If the request is empty, this can also move directly to Finished.

-

Trait Implementations§

source§

impl Debug for AtConnected

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for AtConnected

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/fsm/struct.AtEndBlob.html b/pr/2616/docs/iroh/blobs/get/fsm/struct.AtEndBlob.html index 885f76623e..3679d3696a 100644 --- a/pr/2616/docs/iroh/blobs/get/fsm/struct.AtEndBlob.html +++ b/pr/2616/docs/iroh/blobs/get/fsm/struct.AtEndBlob.html @@ -1,6 +1,6 @@ -AtEndBlob in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtEndBlob

source ·
pub struct AtEndBlob { /* private fields */ }
Expand description

State after we have read all the content for a blob

-

Implementations§

source§

impl AtEndBlob

source

pub fn next(self) -> EndBlobNext

Read the next child, or finish

-

Trait Implementations§

source§

impl Debug for AtEndBlob

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<AtEndBlob> for BlobContentNext

source§

fn from(value: AtEndBlob) -> BlobContentNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +AtEndBlob in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtEndBlob

pub struct AtEndBlob { /* private fields */ }
Expand description

State after we have read all the content for a blob

+

Implementations§

§

impl AtEndBlob

pub fn next(self) -> EndBlobNext

Read the next child, or finish

+

Trait Implementations§

§

impl Debug for AtEndBlob

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<AtEndBlob> for BlobContentNext

§

fn from(value: AtEndBlob) -> BlobContentNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/fsm/struct.AtInitial.html b/pr/2616/docs/iroh/blobs/get/fsm/struct.AtInitial.html index 54945f8c6b..ac91c8151e 100644 --- a/pr/2616/docs/iroh/blobs/get/fsm/struct.AtInitial.html +++ b/pr/2616/docs/iroh/blobs/get/fsm/struct.AtInitial.html @@ -1,9 +1,9 @@ -AtInitial in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtInitial

source ·
pub struct AtInitial { /* private fields */ }
Expand description

Initial state of the get response machine

-

Implementations§

source§

impl AtInitial

source

pub fn new(connection: Connection, request: GetRequest) -> AtInitial

Create a new get response

+AtInitial in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtInitial

pub struct AtInitial { /* private fields */ }
Expand description

Initial state of the get response machine

+

Implementations§

§

impl AtInitial

pub fn new(connection: Connection, request: GetRequest) -> AtInitial

Create a new get response

connection is an existing connection request is the request to be sent

-
source

pub async fn next(self) -> Result<AtConnected, ConnectionError>

Initiate a new bidi stream to use for the get response

-

Trait Implementations§

source§

impl Debug for AtInitial

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

pub async fn next(self) -> Result<AtConnected, ConnectionError>

Initiate a new bidi stream to use for the get response

+

Trait Implementations§

§

impl Debug for AtInitial

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/fsm/struct.AtStartChild.html b/pr/2616/docs/iroh/blobs/get/fsm/struct.AtStartChild.html index 5f358b509d..d480205498 100644 --- a/pr/2616/docs/iroh/blobs/get/fsm/struct.AtStartChild.html +++ b/pr/2616/docs/iroh/blobs/get/fsm/struct.AtStartChild.html @@ -1,16 +1,16 @@ -AtStartChild in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtStartChild

source ·
pub struct AtStartChild { /* private fields */ }
Expand description

State of the get response when we start reading a child

-

Implementations§

source§

impl AtStartChild

source

pub fn child_offset(&self) -> u64

The offset of the child we are currently reading

+AtStartChild in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtStartChild

pub struct AtStartChild { /* private fields */ }
Expand description

State of the get response when we start reading a child

+

Implementations§

§

impl AtStartChild

pub fn child_offset(&self) -> u64

The offset of the child we are currently reading

This must be used to determine the hash needed to call next. If this is larger than the number of children in the collection, you can call finish to stop reading the response.

-
source

pub fn ranges(&self) -> &RangeSet<[ChunkNum; 2]>

The ranges we have requested for the child

-
source

pub fn next(self, hash: Hash) -> AtBlobHeader

Go into the next state, reading the header

+

pub fn ranges(&self) -> &RangeSet<[ChunkNum; 2]>

The ranges we have requested for the child

+

pub fn next(self, hash: Hash) -> AtBlobHeader

Go into the next state, reading the header

This requires passing in the hash of the child for validation

-
source

pub fn finish(self) -> AtClosing

Finish the get response without reading further

+

pub fn finish(self) -> AtClosing

Finish the get response without reading further

This is used if you know that there are no more children from having read the collection, or when you want to stop reading the response early.

-

Trait Implementations§

source§

impl Debug for AtStartChild

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<AtStartChild> for ConnectedNext

source§

fn from(value: AtStartChild) -> ConnectedNext

Converts to this type from the input type.
source§

impl From<AtStartChild> for EndBlobNext

source§

fn from(value: AtStartChild) -> EndBlobNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for AtStartChild

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<AtStartChild> for ConnectedNext

§

fn from(value: AtStartChild) -> ConnectedNext

Converts to this type from the input type.
§

impl From<AtStartChild> for EndBlobNext

§

fn from(value: AtStartChild) -> EndBlobNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/fsm/struct.AtStartRoot.html b/pr/2616/docs/iroh/blobs/get/fsm/struct.AtStartRoot.html index 5b19c4136a..1d6359f944 100644 --- a/pr/2616/docs/iroh/blobs/get/fsm/struct.AtStartRoot.html +++ b/pr/2616/docs/iroh/blobs/get/fsm/struct.AtStartRoot.html @@ -1,10 +1,10 @@ -AtStartRoot in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtStartRoot

source ·
pub struct AtStartRoot { /* private fields */ }
Expand description

State of the get response when we start reading a collection

-

Implementations§

source§

impl AtStartRoot

source

pub fn ranges(&self) -> &RangeSet<[ChunkNum; 2]>

The ranges we have requested for the child

-
source

pub fn hash(&self) -> Hash

Hash of the root blob

-
source

pub fn next(self) -> AtBlobHeader

Go into the next state, reading the header

+AtStartRoot in iroh::blobs::get::fsm - Rust

Struct iroh::blobs::get::fsm::AtStartRoot

pub struct AtStartRoot { /* private fields */ }
Expand description

State of the get response when we start reading a collection

+

Implementations§

§

impl AtStartRoot

pub fn ranges(&self) -> &RangeSet<[ChunkNum; 2]>

The ranges we have requested for the child

+

pub fn hash(&self) -> Hash

Hash of the root blob

+

pub fn next(self) -> AtBlobHeader

Go into the next state, reading the header

For the collection we already know the hash, since it was part of the request

-
source

pub fn finish(self) -> AtClosing

Finish the get response without reading further

-

Trait Implementations§

source§

impl Debug for AtStartRoot

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<AtStartRoot> for ConnectedNext

source§

fn from(value: AtStartRoot) -> ConnectedNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

pub fn finish(self) -> AtClosing

Finish the get response without reading further

+

Trait Implementations§

§

impl Debug for AtStartRoot

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<AtStartRoot> for ConnectedNext

§

fn from(value: AtStartRoot) -> ConnectedNext

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/index.html b/pr/2616/docs/iroh/blobs/get/index.html index 459ccccc86..befb5d147b 100644 --- a/pr/2616/docs/iroh/blobs/get/index.html +++ b/pr/2616/docs/iroh/blobs/get/index.html @@ -1,4 +1,4 @@ -iroh::blobs::get - Rust

Module iroh::blobs::get

source ·
Expand description

The client side API

+iroh::blobs::get - Rust

Module iroh::blobs::get

Expand description

The client side API

To get data, create a connection using iroh-net or use any quinn connection that was obtained in another way.

Create a request describing the data you want to get.

diff --git a/pr/2616/docs/iroh/blobs/get/progress/enum.BlobProgress.html b/pr/2616/docs/iroh/blobs/get/progress/enum.BlobProgress.html index ad6b039588..950ab76049 100644 --- a/pr/2616/docs/iroh/blobs/get/progress/enum.BlobProgress.html +++ b/pr/2616/docs/iroh/blobs/get/progress/enum.BlobProgress.html @@ -1,4 +1,4 @@ -BlobProgress in iroh::blobs::get::progress - Rust

Enum iroh::blobs::get::progress::BlobProgress

source ·
pub enum BlobProgress {
+BlobProgress in iroh::blobs::get::progress - Rust

Enum iroh::blobs::get::progress::BlobProgress

pub enum BlobProgress {
     Pending,
     Progressing(u64),
     Done,
@@ -6,16 +6,16 @@
 

Variants§

§

Pending

Download is pending

§

Progressing(u64)

Download is in progress

§

Done

Download has finished

-

Trait Implementations§

source§

impl Clone for BlobProgress

source§

fn clone(&self) -> BlobProgress

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BlobProgress

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for BlobProgress

source§

fn default() -> BlobProgress

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for BlobProgress

Trait Implementations§

§

impl Clone for BlobProgress

§

fn clone(&self) -> BlobProgress

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for BlobProgress

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for BlobProgress

§

fn default() -> BlobProgress

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for BlobProgress

§

fn deserialize<__D>( __deserializer: __D ) -> Result<BlobProgress, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for BlobProgress

source§

fn eq(&self, other: &BlobProgress) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for BlobProgress

§

fn eq(&self, other: &BlobProgress) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for BlobProgress

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for BlobProgress

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for BlobProgress

source§

impl StructuralPartialEq for BlobProgress

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for BlobProgress

§

impl StructuralPartialEq for BlobProgress

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/progress/index.html b/pr/2616/docs/iroh/blobs/get/progress/index.html index 886396f59c..247908b5de 100644 --- a/pr/2616/docs/iroh/blobs/get/progress/index.html +++ b/pr/2616/docs/iroh/blobs/get/progress/index.html @@ -1,2 +1,2 @@ -iroh::blobs::get::progress - Rust

Module iroh::blobs::get::progress

source ·
Expand description

Types for get progress state management.

+iroh::blobs::get::progress - Rust

Module iroh::blobs::get::progress

Expand description

Types for get progress state management.

Structs§

Enums§

Type Aliases§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/get/progress/struct.BlobState.html b/pr/2616/docs/iroh/blobs/get/progress/struct.BlobState.html index fb78e54e89..c78b113670 100644 --- a/pr/2616/docs/iroh/blobs/get/progress/struct.BlobState.html +++ b/pr/2616/docs/iroh/blobs/get/progress/struct.BlobState.html @@ -1,4 +1,4 @@ -BlobState in iroh::blobs::get::progress - Rust

Struct iroh::blobs::get::progress::BlobState

source ·
pub struct BlobState {
+BlobState in iroh::blobs::get::progress - Rust

Struct iroh::blobs::get::progress::BlobState

pub struct BlobState {
     pub hash: Hash,
     pub size: Option<BaoBlobSize>,
     pub progress: BlobProgress,
@@ -11,17 +11,17 @@ received the size from the remote.

§progress: BlobProgress

The current state of the blob transfer.

§local_ranges: Option<RangeSpec>

Ranges already available locally at the time of starting the transfer.

§child_count: Option<u64>

Number of children (only applies to hashseqs, None for raw blobs).

-

Implementations§

source§

impl BlobState

source

pub fn new(hash: Hash) -> BlobState

Create a new BlobState.

-

Trait Implementations§

source§

impl Clone for BlobState

source§

fn clone(&self) -> BlobState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BlobState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for BlobState

Implementations§

§

impl BlobState

pub fn new(hash: Hash) -> BlobState

Create a new BlobState.

+

Trait Implementations§

§

impl Clone for BlobState

§

fn clone(&self) -> BlobState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for BlobState

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for BlobState

§

fn deserialize<__D>( __deserializer: __D ) -> Result<BlobState, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for BlobState

source§

fn eq(&self, other: &BlobState) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl PartialEq for BlobState

§

fn eq(&self, other: &BlobState) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for BlobState

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for BlobState

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for BlobState

source§

impl StructuralPartialEq for BlobState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

§

impl Eq for BlobState

§

impl StructuralPartialEq for BlobState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/progress/struct.TransferState.html b/pr/2616/docs/iroh/blobs/get/progress/struct.TransferState.html index 54d1a157a6..d3282c913a 100644 --- a/pr/2616/docs/iroh/blobs/get/progress/struct.TransferState.html +++ b/pr/2616/docs/iroh/blobs/get/progress/struct.TransferState.html @@ -1,4 +1,4 @@ -TransferState in iroh::blobs::get::progress - Rust

Struct iroh::blobs::get::progress::TransferState

source ·
pub struct TransferState {
+TransferState in iroh::blobs::get::progress - Rust

Struct iroh::blobs::get::progress::TransferState

pub struct TransferState {
     pub root: BlobState,
     pub connected: bool,
     pub children: HashMap<NonZero<u64>, BlobState>,
@@ -10,21 +10,21 @@
 
§children: HashMap<NonZero<u64>, BlobState>

Children if the root blob is a hash seq, empty for raw blobs

§current: Option<BlobId>

Child being transferred at the moment.

§progress_id_to_blob: HashMap<u64, BlobId>

Progress ids for individual blobs.

-

Implementations§

source§

impl TransferState

source

pub fn new(root_hash: Hash) -> TransferState

Create a new, empty transfer state.

-
source§

impl TransferState

source

pub fn root(&self) -> &BlobState

Get state of the root blob of this transfer.

-
source

pub fn get_blob(&self, blob_id: &BlobId) -> Option<&BlobState>

Get a blob state by its BlobId in this transfer.

-
source

pub fn get_current(&self) -> Option<&BlobState>

Get the blob state currently being transferred.

-
source

pub fn on_progress(&mut self, event: DownloadProgress)

Update the state with a new DownloadProgress event for this transfer.

-

Trait Implementations§

source§

impl Clone for TransferState

source§

fn clone(&self) -> TransferState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TransferState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for TransferState

Implementations§

§

impl TransferState

pub fn new(root_hash: Hash) -> TransferState

Create a new, empty transfer state.

+
§

impl TransferState

pub fn root(&self) -> &BlobState

Get state of the root blob of this transfer.

+

pub fn get_blob(&self, blob_id: &BlobId) -> Option<&BlobState>

Get a blob state by its BlobId in this transfer.

+

pub fn get_current(&self) -> Option<&BlobState>

Get the blob state currently being transferred.

+

pub fn on_progress(&mut self, event: DownloadProgress)

Update the state with a new DownloadProgress event for this transfer.

+

Trait Implementations§

§

impl Clone for TransferState

§

fn clone(&self) -> TransferState

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for TransferState

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for TransferState

§

fn deserialize<__D>( __deserializer: __D ) -> Result<TransferState, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for TransferState

source§

fn eq(&self, other: &TransferState) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl PartialEq for TransferState

§

fn eq(&self, other: &TransferState) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for TransferState

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for TransferState

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for TransferState

source§

impl StructuralPartialEq for TransferState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for TransferState

§

impl StructuralPartialEq for TransferState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/get/progress/type.ProgressId.html b/pr/2616/docs/iroh/blobs/get/progress/type.ProgressId.html index 27f7a051d0..48225a0887 100644 --- a/pr/2616/docs/iroh/blobs/get/progress/type.ProgressId.html +++ b/pr/2616/docs/iroh/blobs/get/progress/type.ProgressId.html @@ -1,2 +1,2 @@ -ProgressId in iroh::blobs::get::progress - Rust

Type Alias iroh::blobs::get::progress::ProgressId

source ·
pub type ProgressId = u64;
Expand description

The identifier for progress events.

+ProgressId in iroh::blobs::get::progress - Rust

Type Alias iroh::blobs::get::progress::ProgressId

pub type ProgressId = u64;
Expand description

The identifier for progress events.

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/get/request/fn.get_chunk_probe.html b/pr/2616/docs/iroh/blobs/get/request/fn.get_chunk_probe.html index 3266a415ff..c550229a87 100644 --- a/pr/2616/docs/iroh/blobs/get/request/fn.get_chunk_probe.html +++ b/pr/2616/docs/iroh/blobs/get/request/fn.get_chunk_probe.html @@ -1,4 +1,4 @@ -get_chunk_probe in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::get_chunk_probe

source ·
pub async fn get_chunk_probe(
+get_chunk_probe in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::get_chunk_probe

pub async fn get_chunk_probe(
     connection: &Connection,
     hash: &Hash,
     chunk: ChunkNum
diff --git a/pr/2616/docs/iroh/blobs/get/request/fn.get_hash_seq_and_sizes.html b/pr/2616/docs/iroh/blobs/get/request/fn.get_hash_seq_and_sizes.html
index f7d27932e2..3a84ce6dea 100644
--- a/pr/2616/docs/iroh/blobs/get/request/fn.get_hash_seq_and_sizes.html
+++ b/pr/2616/docs/iroh/blobs/get/request/fn.get_hash_seq_and_sizes.html
@@ -1,4 +1,4 @@
-get_hash_seq_and_sizes in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::get_hash_seq_and_sizes

source ·
pub async fn get_hash_seq_and_sizes(
+get_hash_seq_and_sizes in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::get_hash_seq_and_sizes

pub async fn get_hash_seq_and_sizes(
     connection: &Connection,
     hash: &Hash,
     max_size: u64
diff --git a/pr/2616/docs/iroh/blobs/get/request/fn.get_unverified_size.html b/pr/2616/docs/iroh/blobs/get/request/fn.get_unverified_size.html
index 6911f4517e..dcef227b4e 100644
--- a/pr/2616/docs/iroh/blobs/get/request/fn.get_unverified_size.html
+++ b/pr/2616/docs/iroh/blobs/get/request/fn.get_unverified_size.html
@@ -1,4 +1,4 @@
-get_unverified_size in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::get_unverified_size

source ·
pub async fn get_unverified_size(
+get_unverified_size in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::get_unverified_size

pub async fn get_unverified_size(
     connection: &Connection,
     hash: &Hash
 ) -> Result<(u64, Stats), Error>
Expand description

Get the claimed size of a blob from a peer.

diff --git a/pr/2616/docs/iroh/blobs/get/request/fn.get_verified_size.html b/pr/2616/docs/iroh/blobs/get/request/fn.get_verified_size.html index 4ec72ec1f6..48e68f4537 100644 --- a/pr/2616/docs/iroh/blobs/get/request/fn.get_verified_size.html +++ b/pr/2616/docs/iroh/blobs/get/request/fn.get_verified_size.html @@ -1,4 +1,4 @@ -get_verified_size in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::get_verified_size

source ·
pub async fn get_verified_size(
+get_verified_size in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::get_verified_size

pub async fn get_verified_size(
     connection: &Connection,
     hash: &Hash
 ) -> Result<(u64, Stats), Error>
Expand description

Get the verified size of a blob from a peer.

diff --git a/pr/2616/docs/iroh/blobs/get/request/fn.random_hash_seq_ranges.html b/pr/2616/docs/iroh/blobs/get/request/fn.random_hash_seq_ranges.html index 92cb2b4de5..76f9253f40 100644 --- a/pr/2616/docs/iroh/blobs/get/request/fn.random_hash_seq_ranges.html +++ b/pr/2616/docs/iroh/blobs/get/request/fn.random_hash_seq_ranges.html @@ -1,4 +1,4 @@ -random_hash_seq_ranges in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::random_hash_seq_ranges

source ·
pub fn random_hash_seq_ranges(sizes: &[u64], rng: impl Rng) -> RangeSpecSeq
Expand description

Given a sequence of sizes of children, generate a range spec that selects a +random_hash_seq_ranges in iroh::blobs::get::request - Rust

Function iroh::blobs::get::request::random_hash_seq_ranges

pub fn random_hash_seq_ranges(sizes: &[u64], rng: impl Rng) -> RangeSpecSeq
Expand description

Given a sequence of sizes of children, generate a range spec that selects a random chunk of a random child.

The random chunk is chosen uniformly from the chunks of the children, so larger children are more likely to be selected.

diff --git a/pr/2616/docs/iroh/blobs/get/request/index.html b/pr/2616/docs/iroh/blobs/get/request/index.html index 8effc3b76a..a28298696a 100644 --- a/pr/2616/docs/iroh/blobs/get/request/index.html +++ b/pr/2616/docs/iroh/blobs/get/request/index.html @@ -1,4 +1,4 @@ -iroh::blobs::get::request - Rust

Module iroh::blobs::get::request

source ·
Expand description

Utilities for complex get requests.

+iroh::blobs::get::request - Rust

Module iroh::blobs::get::request

Expand description

Utilities for complex get requests.

Functions§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/get/struct.Stats.html b/pr/2616/docs/iroh/blobs/get/struct.Stats.html index bcedca1ee2..21d7ba4365 100644 --- a/pr/2616/docs/iroh/blobs/get/struct.Stats.html +++ b/pr/2616/docs/iroh/blobs/get/struct.Stats.html @@ -1,4 +1,4 @@ -Stats in iroh::blobs::get - Rust

Struct iroh::blobs::get::Stats

source ·
pub struct Stats {
+Stats in iroh::blobs::get - Rust

Struct iroh::blobs::get::Stats

pub struct Stats {
     pub bytes_written: u64,
     pub bytes_read: u64,
     pub elapsed: Duration,
@@ -6,17 +6,17 @@
 

Fields§

§bytes_written: u64

The number of bytes written

§bytes_read: u64

The number of bytes read

§elapsed: Duration

The time it took to transfer the data

-

Implementations§

source§

impl Stats

source

pub fn mbits(&self) -> f64

Transfer rate in megabits per second

-

Trait Implementations§

source§

impl Clone for Stats

source§

fn clone(&self) -> Stats

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Stats

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Stats

source§

fn default() -> Stats

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Stats

Implementations§

§

impl Stats

pub fn mbits(&self) -> f64

Transfer rate in megabits per second

+

Trait Implementations§

§

impl Clone for Stats

§

fn clone(&self) -> Stats

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Stats

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Stats

§

fn default() -> Stats

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for Stats

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Stats, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for Stats

source§

fn eq(&self, other: &Stats) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl PartialEq for Stats

§

fn eq(&self, other: &Stats) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Stats

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for Stats

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for Stats

source§

impl StructuralPartialEq for Stats

Auto Trait Implementations§

§

impl Freeze for Stats

§

impl RefUnwindSafe for Stats

§

impl Send for Stats

§

impl Sync for Stats

§

impl Unpin for Stats

§

impl UnwindSafe for Stats

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

§

impl Eq for Stats

§

impl StructuralPartialEq for Stats

Auto Trait Implementations§

§

impl Freeze for Stats

§

impl RefUnwindSafe for Stats

§

impl Send for Stats

§

impl Sync for Stats

§

impl Unpin for Stats

§

impl UnwindSafe for Stats

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/hashseq/fn.parse_hash_seq.html b/pr/2616/docs/iroh/blobs/hashseq/fn.parse_hash_seq.html index cad55867ae..cf2e708b46 100644 --- a/pr/2616/docs/iroh/blobs/hashseq/fn.parse_hash_seq.html +++ b/pr/2616/docs/iroh/blobs/hashseq/fn.parse_hash_seq.html @@ -1,4 +1,4 @@ -parse_hash_seq in iroh::blobs::hashseq - Rust

Function iroh::blobs::hashseq::parse_hash_seq

source ·
pub async fn parse_hash_seq<'a, R>(
+parse_hash_seq in iroh::blobs::hashseq - Rust

Function iroh::blobs::hashseq::parse_hash_seq

pub async fn parse_hash_seq<'a, R>(
     reader: R
 ) -> Result<(HashSeqStream, u64), Error>
where R: AsyncSliceReader + 'a,
Expand description

Parse a sequence of hashes.

diff --git a/pr/2616/docs/iroh/blobs/hashseq/index.html b/pr/2616/docs/iroh/blobs/hashseq/index.html index 65d8dda668..0ab1a4606d 100644 --- a/pr/2616/docs/iroh/blobs/hashseq/index.html +++ b/pr/2616/docs/iroh/blobs/hashseq/index.html @@ -1,2 +1,2 @@ -iroh::blobs::hashseq - Rust

Module iroh::blobs::hashseq

source ·
Expand description

traits related to collections of blobs

+iroh::blobs::hashseq - Rust

Module iroh::blobs::hashseq

Expand description

traits related to collections of blobs

Structs§

Functions§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/hashseq/struct.HashSeq.html b/pr/2616/docs/iroh/blobs/hashseq/struct.HashSeq.html index e8d34d36be..4ceecb83e8 100644 --- a/pr/2616/docs/iroh/blobs/hashseq/struct.HashSeq.html +++ b/pr/2616/docs/iroh/blobs/hashseq/struct.HashSeq.html @@ -1,13 +1,13 @@ -HashSeq in iroh::blobs::hashseq - Rust

Struct iroh::blobs::hashseq::HashSeq

source ·
pub struct HashSeq(/* private fields */);
Expand description

A sequence of links, backed by a [Bytes] object.

-

Implementations§

source§

impl HashSeq

source

pub fn new(bytes: Bytes) -> Option<HashSeq>

Create a new sequence of hashes.

-
source

pub fn iter(&self) -> impl Iterator<Item = Hash>

Iterate over the hashes in this sequence.

-
source

pub fn len(&self) -> usize

Get the number of hashes in this sequence.

-
source

pub fn is_empty(&self) -> bool

Check if this sequence is empty.

-
source

pub fn get(&self, index: usize) -> Option<Hash>

Get the hash at the given index.

-
source

pub fn pop_front(&mut self) -> Option<Hash>

Get and remove the first hash in this sequence.

-
source

pub fn into_inner(self) -> Bytes

Get the underlying bytes.

-

Trait Implementations§

source§

impl Clone for HashSeq

source§

fn clone(&self) -> HashSeq

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for HashSeq

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl FromIterator<Hash> for HashSeq

source§

fn from_iter<T>(iter: T) -> HashSeq
where - T: IntoIterator<Item = Hash>,

Creates a value from an iterator. Read more
source§

impl IntoIterator for HashSeq

§

type Item = Hash

The type of the elements being iterated over.
§

type IntoIter = HashSeqIter

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> <HashSeq as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
source§

impl TryFrom<Bytes> for HashSeq

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from(bytes: Bytes) -> Result<HashSeq, <HashSeq as TryFrom<Bytes>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +HashSeq in iroh::blobs::hashseq - Rust

Struct iroh::blobs::hashseq::HashSeq

pub struct HashSeq(/* private fields */);
Expand description

A sequence of links, backed by a [Bytes] object.

+

Implementations§

§

impl HashSeq

pub fn new(bytes: Bytes) -> Option<HashSeq>

Create a new sequence of hashes.

+

pub fn iter(&self) -> impl Iterator<Item = Hash>

Iterate over the hashes in this sequence.

+

pub fn len(&self) -> usize

Get the number of hashes in this sequence.

+

pub fn is_empty(&self) -> bool

Check if this sequence is empty.

+

pub fn get(&self, index: usize) -> Option<Hash>

Get the hash at the given index.

+

pub fn pop_front(&mut self) -> Option<Hash>

Get and remove the first hash in this sequence.

+

pub fn into_inner(self) -> Bytes

Get the underlying bytes.

+

Trait Implementations§

§

impl Clone for HashSeq

§

fn clone(&self) -> HashSeq

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for HashSeq

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl FromIterator<Hash> for HashSeq

§

fn from_iter<T>(iter: T) -> HashSeq
where + T: IntoIterator<Item = Hash>,

Creates a value from an iterator. Read more
§

impl IntoIterator for HashSeq

§

type Item = Hash

The type of the elements being iterated over.
§

type IntoIter = HashSeqIter

Which kind of iterator are we turning this into?
§

fn into_iter(self) -> <HashSeq as IntoIterator>::IntoIter

Creates an iterator from a value. Read more
§

impl TryFrom<Bytes> for HashSeq

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from(bytes: Bytes) -> Result<HashSeq, <HashSeq as TryFrom<Bytes>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/hashseq/struct.HashSeqIter.html b/pr/2616/docs/iroh/blobs/hashseq/struct.HashSeqIter.html index 0fa221f8bb..51a6f007ee 100644 --- a/pr/2616/docs/iroh/blobs/hashseq/struct.HashSeqIter.html +++ b/pr/2616/docs/iroh/blobs/hashseq/struct.HashSeqIter.html @@ -1,5 +1,5 @@ -HashSeqIter in iroh::blobs::hashseq - Rust

Struct iroh::blobs::hashseq::HashSeqIter

source ·
pub struct HashSeqIter(/* private fields */);
Expand description

Iterator over the hashes in a HashSeq.

-

Trait Implementations§

source§

impl Clone for HashSeqIter

source§

fn clone(&self) -> HashSeqIter ⓘ

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for HashSeqIter

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Iterator for HashSeqIter

§

type Item = Hash

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<HashSeqIter as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( +HashSeqIter in iroh::blobs::hashseq - Rust

Struct iroh::blobs::hashseq::HashSeqIter

pub struct HashSeqIter(/* private fields */);
Expand description

Iterator over the hashes in a HashSeq.

+

Trait Implementations§

§

impl Clone for HashSeqIter

§

fn clone(&self) -> HashSeqIter ⓘ

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for HashSeqIter

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Iterator for HashSeqIter

§

type Item = Hash

The type of the elements being iterated over.
§

fn next(&mut self) -> Option<<HashSeqIter as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( &mut self ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
1.0.0 · source§

fn count(self) -> usize
where diff --git a/pr/2616/docs/iroh/blobs/hashseq/struct.HashSeqStream.html b/pr/2616/docs/iroh/blobs/hashseq/struct.HashSeqStream.html index 7fd78c049d..5e369ab96a 100644 --- a/pr/2616/docs/iroh/blobs/hashseq/struct.HashSeqStream.html +++ b/pr/2616/docs/iroh/blobs/hashseq/struct.HashSeqStream.html @@ -1,8 +1,8 @@ -HashSeqStream in iroh::blobs::hashseq - Rust

Struct iroh::blobs::hashseq::HashSeqStream

source ·
pub struct HashSeqStream(/* private fields */);
Expand description

Stream over the hashes in a HashSeq.

+HashSeqStream in iroh::blobs::hashseq - Rust

Struct iroh::blobs::hashseq::HashSeqStream

pub struct HashSeqStream(/* private fields */);
Expand description

Stream over the hashes in a HashSeq.

todo: make this wrap a reader instead of a HashSeq.

-

Implementations§

source§

impl HashSeqStream

source

pub async fn next(&mut self) -> Result<Option<Hash>, Error>

Get the next hash in the sequence.

-
source

pub async fn skip(&mut self, n: u64) -> Result<(), Error>

Skip a number of hashes in the sequence.

-

Trait Implementations§

source§

impl Clone for HashSeqStream

source§

fn clone(&self) -> HashSeqStream

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for HashSeqStream

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Implementations§

§

impl HashSeqStream

pub async fn next(&mut self) -> Result<Option<Hash>, Error>

Get the next hash in the sequence.

+

pub async fn skip(&mut self, n: u64) -> Result<(), Error>

Skip a number of hashes in the sequence.

+

Trait Implementations§

§

impl Clone for HashSeqStream

§

fn clone(&self) -> HashSeqStream

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for HashSeqStream

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/index.html b/pr/2616/docs/iroh/blobs/index.html index 88a4ad27aa..aeae4eebd4 100644 --- a/pr/2616/docs/iroh/blobs/index.html +++ b/pr/2616/docs/iroh/blobs/index.html @@ -1,4 +1,4 @@ -iroh::blobs - Rust

Crate iroh::blobs

source ·
Expand description

Blobs layer for iroh.

+iroh::blobs - Rust

Crate iroh::blobs

Expand description

Blobs layer for iroh.

Modules§

§

impl TryFrom<VarInt> for Closed

§

type Error = UnknownErrorCode

The type returned in the event of a conversion error.
§

fn try_from(value: VarInt) -> Result<Closed, <Closed as TryFrom<VarInt>>::Error>

Performs the conversion.
§

impl Copy for Closed

§

impl Eq for Closed

§

impl StructuralPartialEq for Closed

Auto Trait Implementations§

§

impl Freeze for Closed

§

impl RefUnwindSafe for Closed

§

impl Send for Closed

§

impl Sync for Closed

§

impl Unpin for Closed

§

impl UnwindSafe for Closed

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/protocol/enum.Request.html b/pr/2616/docs/iroh/blobs/protocol/enum.Request.html index 37a3beface..dc3c4d8207 100644 --- a/pr/2616/docs/iroh/blobs/protocol/enum.Request.html +++ b/pr/2616/docs/iroh/blobs/protocol/enum.Request.html @@ -1,17 +1,17 @@ -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

pub enum Request {
     Get(GetRequest),
 }
Expand description

A request to the provider

Variants§

§

Get(GetRequest)

A get request for a blob or collection

-

Trait Implementations§

source§

impl Clone for Request

source§

fn clone(&self) -> Request

Returns a 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 Request

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Request

Trait Implementations§

§

impl Clone for Request

§

fn clone(&self) -> Request

Returns a 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 Request

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Request

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Request, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<GetRequest> for Request

source§

fn from(value: GetRequest) -> Request

Converts to this type from the input type.
source§

impl PartialEq for Request

source§

fn eq(&self, other: &Request) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl From<GetRequest> for Request

§

fn from(value: GetRequest) -> Request

Converts to this type from the input type.
§

impl PartialEq for Request

§

fn eq(&self, other: &Request) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Request

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for Request

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for Request

source§

impl StructuralPartialEq for Request

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

§

impl Eq for Request

§

impl StructuralPartialEq for Request

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/protocol/index.html b/pr/2616/docs/iroh/blobs/protocol/index.html index 526f42e4f1..356a1c2053 100644 --- a/pr/2616/docs/iroh/blobs/protocol/index.html +++ b/pr/2616/docs/iroh/blobs/protocol/index.html @@ -1,4 +1,4 @@ -iroh::blobs::protocol - Rust

Module iroh::blobs::protocol

source ·
Expand description

Protocol for transferring content-addressed blobs and collections over quic +iroh::blobs::protocol - Rust

Module iroh::blobs::protocol

Expand description

Protocol for transferring content-addressed blobs and collections over quic connections. This can be used either with normal quic connections when using the quinn crate or with magicsock connections when using the iroh-net crate.

diff --git a/pr/2616/docs/iroh/blobs/protocol/struct.GetRequest.html b/pr/2616/docs/iroh/blobs/protocol/struct.GetRequest.html index 44eb3fc147..f595b21757 100644 --- a/pr/2616/docs/iroh/blobs/protocol/struct.GetRequest.html +++ b/pr/2616/docs/iroh/blobs/protocol/struct.GetRequest.html @@ -1,27 +1,27 @@ -GetRequest in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::GetRequest

source ·
pub struct GetRequest {
+GetRequest in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::GetRequest

pub struct GetRequest {
     pub hash: Hash,
     pub ranges: RangeSpecSeq,
 }
Expand description

A request

Fields§

§hash: Hash

blake3 hash

§ranges: RangeSpecSeq

The range of data to request

The first element is the parent, all subsequent elements are children.

-

Implementations§

source§

impl GetRequest

source

pub fn new(hash: Hash, ranges: RangeSpecSeq) -> GetRequest

Request a blob or collection with specified ranges

-
source

pub fn all(hash: Hash) -> GetRequest

Request a collection and all its children

-
source

pub fn single(hash: Hash) -> GetRequest

Request just a single blob

-
source

pub fn last_chunk(hash: Hash) -> GetRequest

Request the last chunk of a single blob

+

Implementations§

§

impl GetRequest

pub fn new(hash: Hash, ranges: RangeSpecSeq) -> GetRequest

Request a blob or collection with specified ranges

+

pub fn all(hash: Hash) -> GetRequest

Request a collection and all its children

+

pub fn single(hash: Hash) -> GetRequest

Request just a single blob

+

pub fn last_chunk(hash: Hash) -> GetRequest

Request the last chunk of a single blob

This can be used to get the verified size of a blob.

-
source

pub fn last_chunks(hash: Hash) -> GetRequest

Request the last chunk for all children

+

pub fn last_chunks(hash: Hash) -> GetRequest

Request the last chunk for all children

This can be used to get the verified size of all children.

-

Trait Implementations§

source§

impl Clone for GetRequest

source§

fn clone(&self) -> GetRequest

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GetRequest

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for GetRequest

Trait Implementations§

§

impl Clone for GetRequest

§

fn clone(&self) -> GetRequest

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for GetRequest

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for GetRequest

§

fn deserialize<__D>( __deserializer: __D ) -> Result<GetRequest, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<GetRequest> for Request

source§

fn from(value: GetRequest) -> Request

Converts to this type from the input type.
source§

impl PartialEq for GetRequest

source§

fn eq(&self, other: &GetRequest) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl From<GetRequest> for Request

§

fn from(value: GetRequest) -> Request

Converts to this type from the input type.
§

impl PartialEq for GetRequest

§

fn eq(&self, other: &GetRequest) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for GetRequest

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for GetRequest

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for GetRequest

source§

impl StructuralPartialEq for GetRequest

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for GetRequest

§

impl StructuralPartialEq for GetRequest

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/protocol/struct.NonEmptyRequestRangeSpecIter.html b/pr/2616/docs/iroh/blobs/protocol/struct.NonEmptyRequestRangeSpecIter.html index eb300d4cea..1de76375c1 100644 --- a/pr/2616/docs/iroh/blobs/protocol/struct.NonEmptyRequestRangeSpecIter.html +++ b/pr/2616/docs/iroh/blobs/protocol/struct.NonEmptyRequestRangeSpecIter.html @@ -1,6 +1,6 @@ -NonEmptyRequestRangeSpecIter in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::NonEmptyRequestRangeSpecIter

source ·
pub struct NonEmptyRequestRangeSpecIter<'a> { /* private fields */ }
Expand description

An iterator over blobs in the sequence with a non-empty range specs.

+NonEmptyRequestRangeSpecIter in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::NonEmptyRequestRangeSpecIter

pub struct NonEmptyRequestRangeSpecIter<'a> { /* private fields */ }
Expand description

An iterator over blobs in the sequence with a non-empty range specs.

default is what to use if the children of this RequestRangeSpec are empty.

-

Trait Implementations§

source§

impl<'a> Debug for NonEmptyRequestRangeSpecIter<'a>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'a> Iterator for NonEmptyRequestRangeSpecIter<'a>

§

type Item = (u64, &'a RangeSpec)

The type of the elements being iterated over.
source§

fn next( +

Trait Implementations§

§

impl<'a> Debug for NonEmptyRequestRangeSpecIter<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a> Iterator for NonEmptyRequestRangeSpecIter<'a>

§

type Item = (u64, &'a RangeSpec)

The type of the elements being iterated over.
§

fn next( &mut self ) -> Option<<NonEmptyRequestRangeSpecIter<'a> as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( &mut self diff --git a/pr/2616/docs/iroh/blobs/protocol/struct.RangeSpec.html b/pr/2616/docs/iroh/blobs/protocol/struct.RangeSpec.html index a6aad1be1d..ae68d46f8d 100644 --- a/pr/2616/docs/iroh/blobs/protocol/struct.RangeSpec.html +++ b/pr/2616/docs/iroh/blobs/protocol/struct.RangeSpec.html @@ -1,4 +1,4 @@ -RangeSpec in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::RangeSpec

source ·
pub struct RangeSpec(/* private fields */);
Expand description

A chunk range specification as a sequence of chunk offsets.

+RangeSpec in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::RangeSpec

pub struct RangeSpec(/* private fields */);
Expand description

A chunk range specification as a sequence of chunk offsets.

Offsets encode alternating spans starting on 0, where the first span is always deselected.

§Examples:

@@ -29,26 +29,26 @@ selected.

This is a SmallVec so we can avoid allocations for the very common case of a single chunk range.

-

Implementations§

source§

impl RangeSpec

source

pub fn new(ranges: impl AsRef<RangeSetRef<ChunkNum>>) -> RangeSpec

Creates a new RangeSpec from a range set.

-
source

pub const EMPTY: RangeSpec = _

A RangeSpec selecting nothing from the blob.

+

Implementations§

§

impl RangeSpec

pub fn new(ranges: impl AsRef<RangeSetRef<ChunkNum>>) -> RangeSpec

Creates a new RangeSpec from a range set.

+

pub const EMPTY: RangeSpec = _

A RangeSpec selecting nothing from the blob.

This is called “empty” because the representation is an empty set.

-
source

pub fn all() -> RangeSpec

Creates a RangeSpec selecting the entire blob.

-
source

pub fn is_empty(&self) -> bool

Checks if this RangeSpec does not select any chunks in the blob.

-
source

pub fn is_all(&self) -> bool

Checks if this RangeSpec selects all chunks in the blob.

-
source

pub fn to_chunk_ranges(&self) -> RangeSet<[ChunkNum; 2]>

Creates a ChunkRanges from this RangeSpec.

-

Trait Implementations§

source§

impl Clone for RangeSpec

source§

fn clone(&self) -> RangeSpec

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RangeSpec

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for RangeSpec

pub fn all() -> RangeSpec

Creates a RangeSpec selecting the entire blob.

+

pub fn is_empty(&self) -> bool

Checks if this RangeSpec does not select any chunks in the blob.

+

pub fn is_all(&self) -> bool

Checks if this RangeSpec selects all chunks in the blob.

+

pub fn to_chunk_ranges(&self) -> RangeSet<[ChunkNum; 2]>

Creates a ChunkRanges from this RangeSpec.

+

Trait Implementations§

§

impl Clone for RangeSpec

§

fn clone(&self) -> RangeSpec

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for RangeSpec

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for RangeSpec

§

fn deserialize<__D>( __deserializer: __D ) -> Result<RangeSpec, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Hash for RangeSpec

source§

fn hash<__H>(&self, state: &mut __H)
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Hash for RangeSpec

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for RangeSpec

source§

fn eq(&self, other: &RangeSpec) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl PartialEq for RangeSpec

§

fn eq(&self, other: &RangeSpec) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for RangeSpec

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for RangeSpec

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for RangeSpec

source§

impl StructuralPartialEq for RangeSpec

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

§

impl Eq for RangeSpec

§

impl StructuralPartialEq for RangeSpec

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/protocol/struct.RangeSpecSeq.html b/pr/2616/docs/iroh/blobs/protocol/struct.RangeSpecSeq.html index 1b4ad340b4..12e6dbc52d 100644 --- a/pr/2616/docs/iroh/blobs/protocol/struct.RangeSpecSeq.html +++ b/pr/2616/docs/iroh/blobs/protocol/struct.RangeSpecSeq.html @@ -1,4 +1,4 @@ -RangeSpecSeq in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::RangeSpecSeq

source ·
pub struct RangeSpecSeq(/* private fields */);
Expand description

A chunk range specification for a sequence of blobs.

+RangeSpecSeq in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::RangeSpecSeq

pub struct RangeSpecSeq(/* private fields */);
Expand description

A chunk range specification for a sequence of blobs.

To select chunks in a sequence of blobs this is encoded as a sequence of (blob_offset, range_spec) tuples. Offsets are interpreted in an accumulating fashion.

§Example:

Suppose two RangeSpecs range_a and range_b.

@@ -31,45 +31,45 @@ previous range appears.

This is a smallvec so that we can avoid allocations in the common case of a single child range.

-

Implementations§

source§

impl RangeSpecSeq

source

pub const fn empty() -> RangeSpecSeq

A RangeSpecSeq containing no chunks from any blobs in the sequence.

+

Implementations§

§

impl RangeSpecSeq

pub const fn empty() -> RangeSpecSeq

A RangeSpecSeq containing no chunks from any blobs in the sequence.

RangeSpecSeq::iter, will return an empty range forever.

-
source

pub fn as_single(&self) -> Option<(u64, &RangeSpec)>

If this range seq describes a range for a single item, returns the offset +

pub fn as_single(&self) -> Option<(u64, &RangeSpec)>

If this range seq describes a range for a single item, returns the offset and range spec for that item

-
source

pub fn all() -> RangeSpecSeq

A RangeSpecSeq containing all chunks from all blobs.

+

pub fn all() -> RangeSpecSeq

A RangeSpecSeq containing all chunks from all blobs.

RangeSpecSeq::iter, will return a full range forever.

-
source

pub fn from_ranges( +

pub fn from_ranges( ranges: impl IntoIterator<Item = impl AsRef<RangeSetRef<ChunkNum>>> ) -> RangeSpecSeq

Convenience function to create a RangeSpecSeq from a finite sequence of range sets.

-
source

pub fn from_ranges_infinite( +

pub fn from_ranges_infinite( ranges: impl IntoIterator<Item = impl AsRef<RangeSetRef<ChunkNum>>> ) -> RangeSpecSeq

Convenience function to create a RangeSpecSeq from a sequence of range sets.

Compared to RangeSpecSeq::from_ranges, this will not add an empty range spec at the end, so the final range spec will repeat forever.

-
source

pub fn new(children: impl IntoIterator<Item = RangeSpec>) -> RangeSpecSeq

Creates a new range spec sequence from a sequence of range specs.

+

pub fn new(children: impl IntoIterator<Item = RangeSpec>) -> RangeSpecSeq

Creates a new range spec sequence from a sequence of range specs.

This will merge adjacent range specs with the same value and thus make sure that the resulting sequence is as compact as possible.

-
source

pub fn iter(&self) -> RequestRangeSpecIter<'_>

An infinite iterator of range specs for blobs in the sequence.

+

pub fn iter(&self) -> RequestRangeSpecIter<'_>

An infinite iterator of range specs for blobs in the sequence.

Each item yielded by the iterator is the RangeSpec for a blob in the sequence. Thus the first call to .next() returns the range spec for the first blob, the next call returns the range spec of the second blob, etc.

-
source

pub fn iter_non_empty(&self) -> NonEmptyRequestRangeSpecIter<'_> ⓘ

An iterator over blobs in the sequence with a non-empty range spec.

+

pub fn iter_non_empty(&self) -> NonEmptyRequestRangeSpecIter<'_> ⓘ

An iterator over blobs in the sequence with a non-empty range spec.

This iterator will only yield items for blobs which have at least one chunk selected.

This iterator is infinite if the RangeSpecSeq ends on a non-empty RangeSpec, that is all further blobs have selected chunks spans.

-

Trait Implementations§

source§

impl Clone for RangeSpecSeq

source§

fn clone(&self) -> RangeSpecSeq

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RangeSpecSeq

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for RangeSpecSeq

Trait Implementations§

§

impl Clone for RangeSpecSeq

§

fn clone(&self) -> RangeSpecSeq

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for RangeSpecSeq

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for RangeSpecSeq

§

fn deserialize<__D>( __deserializer: __D ) -> Result<RangeSpecSeq, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Hash for RangeSpecSeq

source§

fn hash<__H>(&self, state: &mut __H)
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Hash for RangeSpecSeq

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq for RangeSpecSeq

source§

fn eq(&self, other: &RangeSpecSeq) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more

§

impl PartialEq for RangeSpecSeq

§

fn eq(&self, other: &RangeSpecSeq) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for RangeSpecSeq

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for RangeSpecSeq

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for RangeSpecSeq

source§

impl StructuralPartialEq for RangeSpecSeq

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for RangeSpecSeq

§

impl StructuralPartialEq for RangeSpecSeq

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/protocol/struct.UnknownErrorCode.html b/pr/2616/docs/iroh/blobs/protocol/struct.UnknownErrorCode.html index 5557f0643b..2ca6aa47af 100644 --- a/pr/2616/docs/iroh/blobs/protocol/struct.UnknownErrorCode.html +++ b/pr/2616/docs/iroh/blobs/protocol/struct.UnknownErrorCode.html @@ -1,5 +1,5 @@ -UnknownErrorCode in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::UnknownErrorCode

source ·
pub struct UnknownErrorCode(/* private fields */);
Expand description

Unknown error_code, can not be converted into Closed.

-

Trait Implementations§

source§

impl Debug for UnknownErrorCode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for UnknownErrorCode

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for UnknownErrorCode

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +UnknownErrorCode in iroh::blobs::protocol - Rust

Struct iroh::blobs::protocol::UnknownErrorCode

pub struct UnknownErrorCode(/* private fields */);
Expand description

Unknown error_code, can not be converted into Closed.

+

Trait Implementations§

§

impl Debug for UnknownErrorCode

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for UnknownErrorCode

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for UnknownErrorCode

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/provider/enum.AddProgress.html b/pr/2616/docs/iroh/blobs/provider/enum.AddProgress.html index 42e586cc5d..eabbd320d7 100644 --- a/pr/2616/docs/iroh/blobs/provider/enum.AddProgress.html +++ b/pr/2616/docs/iroh/blobs/provider/enum.AddProgress.html @@ -1,4 +1,4 @@ -AddProgress in iroh::blobs::provider - Rust

Enum iroh::blobs::provider::AddProgress

source ·
pub enum AddProgress {
+AddProgress in iroh::blobs::provider - Rust

Enum iroh::blobs::provider::AddProgress

pub enum AddProgress {
     Found {
         id: u64,
         name: String,
@@ -35,10 +35,10 @@
 
§tag: Tag

The tag of the added data.

§

Abort(RpcError)

We got an error and need to abort.

This will be the last message in the stream.

-

Trait Implementations§

source§

impl Debug for AddProgress

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for AddProgress

Trait Implementations§

§

impl Debug for AddProgress

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for AddProgress

§

fn deserialize<__D>( __deserializer: __D ) -> Result<AddProgress, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for AddProgress

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl Serialize for AddProgress

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/blobs/provider/enum.Event.html b/pr/2616/docs/iroh/blobs/provider/enum.Event.html index b5d2364918..d41e69014c 100644 --- a/pr/2616/docs/iroh/blobs/provider/enum.Event.html +++ b/pr/2616/docs/iroh/blobs/provider/enum.Event.html @@ -1,4 +1,4 @@ -Event in iroh::blobs::provider - Rust

Enum iroh::blobs::provider::Event

source ·
pub enum Event {
+Event in iroh::blobs::provider - Rust

Enum iroh::blobs::provider::Event

pub enum Event {
     TaggedBlobAdded {
         hash: Hash,
         format: BlobFormat,
@@ -73,7 +73,7 @@
 
§request_id: u64

An identifier uniquely identifying this request.

§stats: Option<Box<TransferStats>>

statistics about the transfer. This is None if the transfer was aborted before any data was sent.

-

Trait Implementations§

source§

impl Clone for Event

source§

fn clone(&self) -> Event

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Event

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for Event

§

fn clone(&self) -> Event

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Event

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/provider/enum.SentStatus.html b/pr/2616/docs/iroh/blobs/provider/enum.SentStatus.html index accd0b9592..bbf4b995b3 100644 --- a/pr/2616/docs/iroh/blobs/provider/enum.SentStatus.html +++ b/pr/2616/docs/iroh/blobs/provider/enum.SentStatus.html @@ -1,12 +1,12 @@ -SentStatus in iroh::blobs::provider - Rust

Enum iroh::blobs::provider::SentStatus

source ·
pub enum SentStatus {
+SentStatus in iroh::blobs::provider - Rust

Enum iroh::blobs::provider::SentStatus

pub enum SentStatus {
     Sent,
     NotFound,
 }
Expand description

Status of a send operation

Variants§

§

Sent

The requested data was sent

§

NotFound

The requested data was not found

-

Trait Implementations§

source§

impl Clone for SentStatus

source§

fn clone(&self) -> SentStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SentStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq for SentStatus

source§

fn eq(&self, other: &SentStatus) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for SentStatus

§

fn clone(&self) -> SentStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for SentStatus

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq for SentStatus

§

fn eq(&self, other: &SentStatus) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Eq for SentStatus

source§

impl StructuralPartialEq for SentStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

§

impl Eq for SentStatus

§

impl StructuralPartialEq for SentStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/provider/fn.handle_connection.html b/pr/2616/docs/iroh/blobs/provider/fn.handle_connection.html index d4ef5663da..5c54d0ec8c 100644 --- a/pr/2616/docs/iroh/blobs/provider/fn.handle_connection.html +++ b/pr/2616/docs/iroh/blobs/provider/fn.handle_connection.html @@ -1,4 +1,4 @@ -handle_connection in iroh::blobs::provider - Rust

Function iroh::blobs::provider::handle_connection

source ·
pub async fn handle_connection<D, E>(
+handle_connection in iroh::blobs::provider - Rust

Function iroh::blobs::provider::handle_connection

pub async fn handle_connection<D, E>(
     connection: Connection,
     db: D,
     events: E,
diff --git a/pr/2616/docs/iroh/blobs/provider/fn.handle_get.html b/pr/2616/docs/iroh/blobs/provider/fn.handle_get.html
index 01e149e555..2fa18a8c71 100644
--- a/pr/2616/docs/iroh/blobs/provider/fn.handle_get.html
+++ b/pr/2616/docs/iroh/blobs/provider/fn.handle_get.html
@@ -1,4 +1,4 @@
-handle_get in iroh::blobs::provider - Rust

Function iroh::blobs::provider::handle_get

source ·
pub async fn handle_get<D, E>(
+handle_get in iroh::blobs::provider - Rust

Function iroh::blobs::provider::handle_get

pub async fn handle_get<D, E>(
     db: D,
     request: GetRequest,
     writer: ResponseWriter<E>
diff --git a/pr/2616/docs/iroh/blobs/provider/fn.read_request.html b/pr/2616/docs/iroh/blobs/provider/fn.read_request.html
index 7e3c773133..19e4cb5ae2 100644
--- a/pr/2616/docs/iroh/blobs/provider/fn.read_request.html
+++ b/pr/2616/docs/iroh/blobs/provider/fn.read_request.html
@@ -1,4 +1,4 @@
-read_request in iroh::blobs::provider - Rust

Function iroh::blobs::provider::read_request

source ·
pub async fn read_request(reader: RecvStream) -> Result<Request, Error>
Expand description

Read the request from the getter.

+read_request in iroh::blobs::provider - Rust

Function iroh::blobs::provider::read_request

pub async fn read_request(reader: RecvStream) -> Result<Request, Error>
Expand description

Read the request from the getter.

Will fail if there is an error while reading, if the reader contains more data than the Request, or if no valid request is sent.

When successful, the buffer is empty after this function call.

diff --git a/pr/2616/docs/iroh/blobs/provider/fn.send_blob.html b/pr/2616/docs/iroh/blobs/provider/fn.send_blob.html index c8c35af7c6..edf786032a 100644 --- a/pr/2616/docs/iroh/blobs/provider/fn.send_blob.html +++ b/pr/2616/docs/iroh/blobs/provider/fn.send_blob.html @@ -1,4 +1,4 @@ -send_blob in iroh::blobs::provider - Rust

Function iroh::blobs::provider::send_blob

source ·
pub async fn send_blob<D, W>(
+send_blob in iroh::blobs::provider - Rust

Function iroh::blobs::provider::send_blob

pub async fn send_blob<D, W>(
     db: &D,
     hash: Hash,
     ranges: &RangeSpec,
diff --git a/pr/2616/docs/iroh/blobs/provider/fn.transfer_collection.html b/pr/2616/docs/iroh/blobs/provider/fn.transfer_collection.html
index e884f4196a..3d0d232922 100644
--- a/pr/2616/docs/iroh/blobs/provider/fn.transfer_collection.html
+++ b/pr/2616/docs/iroh/blobs/provider/fn.transfer_collection.html
@@ -1,4 +1,4 @@
-transfer_collection in iroh::blobs::provider - Rust

Function iroh::blobs::provider::transfer_collection

source ·
pub async fn transfer_collection<D, E>(
+transfer_collection in iroh::blobs::provider - Rust

Function iroh::blobs::provider::transfer_collection

pub async fn transfer_collection<D, E>(
     request: GetRequest,
     db: &D,
     writer: &mut ResponseWriter<E>,
diff --git a/pr/2616/docs/iroh/blobs/provider/index.html b/pr/2616/docs/iroh/blobs/provider/index.html
index d5382a396e..1079cb743c 100644
--- a/pr/2616/docs/iroh/blobs/provider/index.html
+++ b/pr/2616/docs/iroh/blobs/provider/index.html
@@ -1,2 +1,2 @@
-iroh::blobs::provider - Rust

Module iroh::blobs::provider

source ·
Expand description

The server side API

+iroh::blobs::provider - Rust

Module iroh::blobs::provider

Expand description

The server side API

Structs§

  • A helper struct that combines a quinn::SendStream with auxiliary information
  • The stats for a transfer of a collection or blob.

Enums§

  • Progress updates for the add operation.
  • Events emitted by the provider informing about the current status.
  • Status of a send operation

Traits§

Functions§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/provider/struct.ResponseWriter.html b/pr/2616/docs/iroh/blobs/provider/struct.ResponseWriter.html index 5c190de92f..79b66355e3 100644 --- a/pr/2616/docs/iroh/blobs/provider/struct.ResponseWriter.html +++ b/pr/2616/docs/iroh/blobs/provider/struct.ResponseWriter.html @@ -1,6 +1,6 @@ -ResponseWriter in iroh::blobs::provider - Rust

Struct iroh::blobs::provider::ResponseWriter

source ·
pub struct ResponseWriter<E> { /* private fields */ }
Expand description

A helper struct that combines a quinn::SendStream with auxiliary information

-

Trait Implementations§

source§

impl<E> Debug for ResponseWriter<E>
where - E: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<E> Freeze for ResponseWriter<E>
where +ResponseWriter in iroh::blobs::provider - Rust

Struct iroh::blobs::provider::ResponseWriter

pub struct ResponseWriter<E> { /* private fields */ }
Expand description

A helper struct that combines a quinn::SendStream with auxiliary information

+

Trait Implementations§

§

impl<E> Debug for ResponseWriter<E>
where + E: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<E> Freeze for ResponseWriter<E>
where E: Freeze,

§

impl<E> !RefUnwindSafe for ResponseWriter<E>

§

impl<E> Send for ResponseWriter<E>
where E: Send,

§

impl<E> Sync for ResponseWriter<E>
where E: Sync,

§

impl<E> Unpin for ResponseWriter<E>
where diff --git a/pr/2616/docs/iroh/blobs/provider/struct.TransferStats.html b/pr/2616/docs/iroh/blobs/provider/struct.TransferStats.html index f29bfcabe6..2e06ab7e5c 100644 --- a/pr/2616/docs/iroh/blobs/provider/struct.TransferStats.html +++ b/pr/2616/docs/iroh/blobs/provider/struct.TransferStats.html @@ -1,4 +1,4 @@ -TransferStats in iroh::blobs::provider - Rust

Struct iroh::blobs::provider::TransferStats

source ·
pub struct TransferStats {
+TransferStats in iroh::blobs::provider - Rust

Struct iroh::blobs::provider::TransferStats

pub struct TransferStats {
     pub send: StreamWriterStats,
     pub read: SliceReaderStats,
     pub duration: Duration,
@@ -6,7 +6,7 @@
 

Fields§

§send: StreamWriterStats

Stats for sending to the client.

§read: SliceReaderStats

Stats for reading from disk.

§duration: Duration

The total duration of the transfer.

-

Trait Implementations§

source§

impl Clone for TransferStats

source§

fn clone(&self) -> TransferStats

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for TransferStats

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for TransferStats

source§

fn default() -> TransferStats

Returns the “default value” for a type. Read more
source§

impl Copy for TransferStats

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for TransferStats

§

fn clone(&self) -> TransferStats

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for TransferStats

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for TransferStats

§

fn default() -> TransferStats

Returns the “default value” for a type. Read more
§

impl Copy for TransferStats

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/provider/trait.EventSender.html b/pr/2616/docs/iroh/blobs/provider/trait.EventSender.html index 34f9515780..c930157c1b 100644 --- a/pr/2616/docs/iroh/blobs/provider/trait.EventSender.html +++ b/pr/2616/docs/iroh/blobs/provider/trait.EventSender.html @@ -1,6 +1,6 @@ -EventSender in iroh::blobs::provider - Rust

Trait iroh::blobs::provider::EventSender

source ·
pub trait EventSender: Clone + Sync + Send + 'static {
+EventSender in iroh::blobs::provider - Rust

Trait iroh::blobs::provider::EventSender

pub trait EventSender: Clone + Sync + Send + 'static {
     // Required method
     fn send(&self, event: Event) -> Pin<Box<dyn Future<Output = ()> + Send>>;
 }
Expand description

Trait for sending events.

-

Required Methods§

source

fn send(&self, event: Event) -> Pin<Box<dyn Future<Output = ()> + Send>>

Send an event.

+

Required Methods§

fn send(&self, event: Event) -> Pin<Box<dyn Future<Output = ()> + Send>>

Send an event.

Object Safety§

This trait is not object safe.

Implementors§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/bao_tree/blake3/struct.Hash.html b/pr/2616/docs/iroh/blobs/store/bao_tree/blake3/struct.Hash.html index a240f427df..d06b4129fa 100644 --- a/pr/2616/docs/iroh/blobs/store/bao_tree/blake3/struct.Hash.html +++ b/pr/2616/docs/iroh/blobs/store/bao_tree/blake3/struct.Hash.html @@ -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.
§

impl From<Hash> for Hash

§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
§

impl From<Hash> for Hash

§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
§

impl 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.

diff --git a/pr/2616/docs/iroh/blobs/store/bao_tree/io/enum.DecodeError.html b/pr/2616/docs/iroh/blobs/store/bao_tree/io/enum.DecodeError.html index 615eace88d..cb2512fe3c 100644 --- a/pr/2616/docs/iroh/blobs/store/bao_tree/io/enum.DecodeError.html +++ b/pr/2616/docs/iroh/blobs/store/bao_tree/io/enum.DecodeError.html @@ -10,7 +10,7 @@
§

ParentHashMismatch(TreeNode)

The hash of a parent did not match the expected hash

§

LeafHashMismatch(ChunkNum)

The hash of a leaf did not match the expected hash

§

Io(Error)

There was an error reading from the underlying io

-

Trait Implementations§

§

impl Debug for DecodeError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for DecodeError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for DecodeError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<DecodeError> for DecodeError

source§

fn from(value: DecodeError) -> DecodeError

Converts to this type from the input type.
source§

impl From<DecodeError> for GetResponseError

source§

fn from(cause: DecodeError) -> GetResponseError

Converts to this type from the input type.
§

impl From<Error> for DecodeError

§

fn from(e: Error) -> DecodeError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for DecodeError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for DecodeError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for DecodeError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<DecodeError> for DecodeError

§

fn from(value: DecodeError) -> DecodeError

Converts to this type from the input type.
§

impl From<DecodeError> for GetResponseError

§

fn from(cause: DecodeError) -> GetResponseError

Converts to this type from the input type.
§

impl From<Error> for DecodeError

§

fn from(e: Error) -> DecodeError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceWriter.html b/pr/2616/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceWriter.html index 31cde98cbc..3419b5d4cc 100644 --- a/pr/2616/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceWriter.html +++ b/pr/2616/docs/iroh/blobs/store/bao_tree/io/fsm/trait.AsyncSliceWriter.html @@ -55,8 +55,8 @@ Other than that it is equivalent to Result<(), Error>

§

async fn set_len(&mut self, len: u64) -> Result<(), Error>

§

async fn sync(&mut self) -> Result<(), Error>

Implementors§

§

impl AsyncSliceWriter for File

§

impl<W> AsyncSliceWriter for ConcatenateSliceWriter<W>
where W: AsyncWrite + Unpin + 'static,

§

impl<W> AsyncSliceWriter for TrackingSliceWriter<W>
where - W: AsyncSliceWriter,

source§

impl<W, F> AsyncSliceWriter for FallibleProgressSliceWriter<W, F>
where + W: AsyncSliceWriter,

§

impl<W, F> AsyncSliceWriter for FallibleProgressSliceWriter<W, F>
where W: AsyncSliceWriter + 'static, - F: Fn(u64, usize) -> Result<(), Error> + 'static,

source§

impl<W, F> AsyncSliceWriter for ProgressSliceWriter<W, F>
where + F: Fn(u64, usize) -> Result<(), Error> + 'static,

§

impl<W, F> AsyncSliceWriter for ProgressSliceWriter<W, F>
where W: AsyncSliceWriter + 'static, F: FnMut(u64, usize) + 'static,

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/bao_tree/io/sync/trait.ReadAt.html b/pr/2616/docs/iroh/blobs/store/bao_tree/io/sync/trait.ReadAt.html index 22c9d58a4b..0f0d11ee5a 100644 --- a/pr/2616/docs/iroh/blobs/store/bao_tree/io/sync/trait.ReadAt.html +++ b/pr/2616/docs/iroh/blobs/store/bao_tree/io/sync/trait.ReadAt.html @@ -35,5 +35,5 @@ for details.

R: ReadAt,

source§

fn read_at(&self, pos: u64, buf: &mut [u8]) -> Result<usize, Error>

source§

impl<'a, R> ReadAt for &'a R
where R: ReadAt + ?Sized,

source§

fn read_at(&self, pos: u64, buf: &mut [u8]) -> Result<usize, Error>

source§

impl<'a, R> ReadAt for &'a mut R
where R: ReadAt + ?Sized,

source§

fn read_at(&self, pos: u64, buf: &mut [u8]) -> Result<usize, Error>

source§

impl<R> ReadAt for Box<R>
where - R: ReadAt + ?Sized,

source§

fn read_at(&self, pos: u64, buf: &mut [u8]) -> Result<usize, Error>

Implementors§

source§

fn read_at(&self, pos: u64, buf: &mut [u8]) -> Result<usize, Error>

Implementors§

§

impl ReadAt for MemOrFile<Bytes, File>

§

impl ReadAt for SparseMemFile

source§

impl ReadAt for RandomAccessFile

source§

impl<I> ReadAt for Slice<I>
where I: ReadAt,

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/bao_tree/io/sync/trait.Size.html b/pr/2616/docs/iroh/blobs/store/bao_tree/io/sync/trait.Size.html index 4a0d82cef6..228bf3f7a1 100644 --- a/pr/2616/docs/iroh/blobs/store/bao_tree/io/sync/trait.Size.html +++ b/pr/2616/docs/iroh/blobs/store/bao_tree/io/sync/trait.Size.html @@ -25,4 +25,4 @@ for pipes.

S: Size,

source§

impl<'a, S> Size for &'a S
where S: Size + ?Sized,

source§

impl<'a, S> Size for &'a mut S
where S: Size + ?Sized,

source§

impl<S> Size for Box<S>
where - S: Size + ?Sized,

Implementors§

\ No newline at end of file + S: Size + ?Sized,

Implementors§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/bao_tree/io/sync/trait.WriteAt.html b/pr/2616/docs/iroh/blobs/store/bao_tree/io/sync/trait.WriteAt.html index db2afe0fdd..95e036634d 100644 --- a/pr/2616/docs/iroh/blobs/store/bao_tree/io/sync/trait.WriteAt.html +++ b/pr/2616/docs/iroh/blobs/store/bao_tree/io/sync/trait.WriteAt.html @@ -41,5 +41,5 @@ for details.

Implementations on Foreign Types§

source§

impl WriteAt for Vec<u8>

source§

fn write_at(&mut self, pos: u64, buf: &[u8]) -> Result<usize, Error>

source§

fn flush(&mut self) -> Result<(), Error>

source§

impl WriteAt for File

source§

fn write_at(&mut self, pos: u64, buf: &[u8]) -> Result<usize, Error>

source§

fn flush(&mut self) -> Result<(), Error>

source§

impl<'a> WriteAt for &'a mut [u8]

source§

fn write_at(&mut self, pos: u64, buf: &[u8]) -> Result<usize, Error>

source§

fn flush(&mut self) -> Result<(), Error>

source§

impl<'a, W> WriteAt for &'a RefCell<W>
where W: WriteAt,

source§

fn write_at(&mut self, pos: u64, buf: &[u8]) -> Result<usize, Error>

source§

fn flush(&mut self) -> Result<(), Error>

source§

impl<'a, W> WriteAt for &'a mut W
where W: WriteAt + ?Sized,

source§

fn write_at(&mut self, pos: u64, buf: &[u8]) -> Result<usize, Error>

source§

fn flush(&mut self) -> Result<(), Error>

source§

impl<R> WriteAt for Box<R>
where - R: WriteAt + ?Sized,

source§

fn write_at(&mut self, pos: u64, buf: &[u8]) -> Result<usize, Error>

source§

fn flush(&mut self) -> Result<(), Error>

Implementors§

source§

fn write_at(&mut self, pos: u64, buf: &[u8]) -> Result<usize, Error>

source§

fn flush(&mut self) -> Result<(), Error>

Implementors§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/enum.BaoBlobSize.html b/pr/2616/docs/iroh/blobs/store/enum.BaoBlobSize.html index 1bf98fa59d..af5fc55e3f 100644 --- a/pr/2616/docs/iroh/blobs/store/enum.BaoBlobSize.html +++ b/pr/2616/docs/iroh/blobs/store/enum.BaoBlobSize.html @@ -1,21 +1,21 @@ -BaoBlobSize in iroh::blobs::store - Rust

Enum iroh::blobs::store::BaoBlobSize

source ·
pub enum BaoBlobSize {
+BaoBlobSize in iroh::blobs::store - Rust

Enum iroh::blobs::store::BaoBlobSize

pub enum BaoBlobSize {
     Unverified(u64),
     Verified(u64),
 }
Expand description

The size of a bao file

Variants§

§

Unverified(u64)

A remote side told us the size, but we have insufficient data to verify it.

§

Verified(u64)

We have verified the size.

-

Implementations§

source§

impl BaoBlobSize

source

pub fn new(size: u64, verified: bool) -> BaoBlobSize

Create a new BaoFileSize with the given size and verification status.

-
source

pub fn value(&self) -> u64

Get just the value, no matter if it is verified or not.

-

Trait Implementations§

source§

impl Clone for BaoBlobSize

source§

fn clone(&self) -> BaoBlobSize

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for BaoBlobSize

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for BaoBlobSize

Implementations§

§

impl BaoBlobSize

pub fn new(size: u64, verified: bool) -> BaoBlobSize

Create a new BaoFileSize with the given size and verification status.

+

pub fn value(&self) -> u64

Get just the value, no matter if it is verified or not.

+

Trait Implementations§

§

impl Clone for BaoBlobSize

§

fn clone(&self) -> BaoBlobSize

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for BaoBlobSize

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for BaoBlobSize

§

fn deserialize<__D>( __deserializer: __D ) -> Result<BaoBlobSize, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for BaoBlobSize

source§

fn eq(&self, other: &BaoBlobSize) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for BaoBlobSize

§

fn eq(&self, other: &BaoBlobSize) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for BaoBlobSize

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for BaoBlobSize

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for BaoBlobSize

source§

impl Eq for BaoBlobSize

source§

impl StructuralPartialEq for BaoBlobSize

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for BaoBlobSize

§

impl Eq for BaoBlobSize

§

impl StructuralPartialEq for BaoBlobSize

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/store/enum.ConsistencyCheckProgress.html b/pr/2616/docs/iroh/blobs/store/enum.ConsistencyCheckProgress.html index 6a0b83a3a7..3b6d787508 100644 --- a/pr/2616/docs/iroh/blobs/store/enum.ConsistencyCheckProgress.html +++ b/pr/2616/docs/iroh/blobs/store/enum.ConsistencyCheckProgress.html @@ -1,4 +1,4 @@ -ConsistencyCheckProgress in iroh::blobs::store - Rust

Enum iroh::blobs::store::ConsistencyCheckProgress

source ·
pub enum ConsistencyCheckProgress {
+ConsistencyCheckProgress in iroh::blobs::store - Rust

Enum iroh::blobs::store::ConsistencyCheckProgress

pub enum ConsistencyCheckProgress {
     Start,
     Update {
         message: String,
@@ -15,10 +15,10 @@
 
§level: ReportLevel

The level of the message

§

Done

Consistency check ended

§

Abort(RpcError)

We got an error and need to abort.

-

Trait Implementations§

source§

impl Debug for ConsistencyCheckProgress

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ConsistencyCheckProgress

Trait Implementations§

§

impl Debug for ConsistencyCheckProgress

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for ConsistencyCheckProgress

§

fn deserialize<__D>( __deserializer: __D ) -> Result<ConsistencyCheckProgress, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for ConsistencyCheckProgress

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Serialize for ConsistencyCheckProgress

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/blobs/store/enum.EntryStatus.html b/pr/2616/docs/iroh/blobs/store/enum.EntryStatus.html index 1706aa8b68..4ef885fe2d 100644 --- a/pr/2616/docs/iroh/blobs/store/enum.EntryStatus.html +++ b/pr/2616/docs/iroh/blobs/store/enum.EntryStatus.html @@ -1,4 +1,4 @@ -EntryStatus in iroh::blobs::store - Rust

Enum iroh::blobs::store::EntryStatus

source ·
pub enum EntryStatus {
+EntryStatus in iroh::blobs::store - Rust

Enum iroh::blobs::store::EntryStatus

pub enum EntryStatus {
     Complete,
     Partial,
     NotFound,
@@ -6,9 +6,9 @@
 

Variants§

§

Complete

The entry is completely available.

§

Partial

The entry is partially available.

§

NotFound

The entry is not in the store.

-

Trait Implementations§

source§

impl Clone for EntryStatus

source§

fn clone(&self) -> EntryStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for EntryStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq for EntryStatus

source§

fn eq(&self, other: &EntryStatus) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for EntryStatus

§

fn clone(&self) -> EntryStatus

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for EntryStatus

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq for EntryStatus

§

fn eq(&self, other: &EntryStatus) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Eq for EntryStatus

source§

impl StructuralPartialEq for EntryStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

§

impl Eq for EntryStatus

§

impl StructuralPartialEq for EntryStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/store/enum.Event.html b/pr/2616/docs/iroh/blobs/store/enum.Event.html index 8e8a039c46..1c6257d5a2 100644 --- a/pr/2616/docs/iroh/blobs/store/enum.Event.html +++ b/pr/2616/docs/iroh/blobs/store/enum.Event.html @@ -1,12 +1,12 @@ -Event in iroh::blobs::store - Rust

Enum iroh::blobs::store::Event

source ·
pub enum Event {
+Event in iroh::blobs::store - Rust

Enum iroh::blobs::store::Event

pub enum Event {
     GcStarted,
     GcCompleted,
 }
Expand description

Database events

Variants§

§

GcStarted

A GC was started

§

GcCompleted

A GC was completed

-

Trait Implementations§

source§

impl Clone for Event

source§

fn clone(&self) -> Event

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Event

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq for Event

source§

fn eq(&self, other: &Event) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for Event

§

fn clone(&self) -> Event

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Event

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq for Event

§

fn eq(&self, other: &Event) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Eq for Event

source§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

§

impl Eq for Event

§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/store/enum.ExportFormat.html b/pr/2616/docs/iroh/blobs/store/enum.ExportFormat.html index 5a0219231a..c74e4ed756 100644 --- a/pr/2616/docs/iroh/blobs/store/enum.ExportFormat.html +++ b/pr/2616/docs/iroh/blobs/store/enum.ExportFormat.html @@ -1,4 +1,4 @@ -ExportFormat in iroh::blobs::store - Rust

Enum iroh::blobs::store::ExportFormat

source ·
pub enum ExportFormat {
+ExportFormat in iroh::blobs::store - Rust

Enum iroh::blobs::store::ExportFormat

pub enum ExportFormat {
     Blob,
     Collection,
 }
Expand description

The expected format of a hash being exported.

@@ -10,10 +10,10 @@ collection metadata, all other children of the collection will be exported to a file each, with their collection name treated as a relative path to the export destination path.

If the blob cannot be parsed as a collection, the operation will fail.

-

Trait Implementations§

source§

impl Clone for ExportFormat

source§

fn clone(&self) -> ExportFormat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ExportFormat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for ExportFormat

source§

fn default() -> ExportFormat

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ExportFormat

Trait Implementations§

§

impl Clone for ExportFormat

§

fn clone(&self) -> ExportFormat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ExportFormat

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for ExportFormat

§

fn default() -> ExportFormat

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for ExportFormat

§

fn deserialize<__D>( __deserializer: __D ) -> Result<ExportFormat, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for ExportFormat

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl Serialize for ExportFormat

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/blobs/store/enum.ExportMode.html b/pr/2616/docs/iroh/blobs/store/enum.ExportMode.html index b4a8037e68..feecbc57d7 100644 --- a/pr/2616/docs/iroh/blobs/store/enum.ExportMode.html +++ b/pr/2616/docs/iroh/blobs/store/enum.ExportMode.html @@ -1,4 +1,4 @@ -ExportMode in iroh::blobs::store - Rust

Enum iroh::blobs::store::ExportMode

source ·
pub enum ExportMode {
+ExportMode in iroh::blobs::store - Rust

Enum iroh::blobs::store::ExportMode

pub enum ExportMode {
     Copy,
     TryReference,
 }
Expand description

The import mode describes how files will be imported.

@@ -15,16 +15,16 @@ the database.

the file might be modified in the target directory after it has been exported.

Stores are allowed to ignore this mode and always copy the file, e.g. if the file is very small or if the store does not support referencing files.

-

Trait Implementations§

source§

impl Clone for ExportMode

source§

fn clone(&self) -> ExportMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ExportMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for ExportMode

source§

fn default() -> ExportMode

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for ExportMode

Trait Implementations§

§

impl Clone for ExportMode

§

fn clone(&self) -> ExportMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ExportMode

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for ExportMode

§

fn default() -> ExportMode

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for ExportMode

§

fn deserialize<__D>( __deserializer: __D ) -> Result<ExportMode, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for ExportMode

source§

fn eq(&self, other: &ExportMode) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for ExportMode

§

fn eq(&self, other: &ExportMode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for ExportMode

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for ExportMode

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for ExportMode

source§

impl Eq for ExportMode

source§

impl StructuralPartialEq for ExportMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for ExportMode

§

impl Eq for ExportMode

§

impl StructuralPartialEq for ExportMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/store/enum.ExportProgress.html b/pr/2616/docs/iroh/blobs/store/enum.ExportProgress.html index 4ad4e408cd..365ecf0c70 100644 --- a/pr/2616/docs/iroh/blobs/store/enum.ExportProgress.html +++ b/pr/2616/docs/iroh/blobs/store/enum.ExportProgress.html @@ -1,4 +1,4 @@ -ExportProgress in iroh::blobs::store - Rust

Enum iroh::blobs::store::ExportProgress

source ·
pub enum ExportProgress {
+ExportProgress in iroh::blobs::store - Rust

Enum iroh::blobs::store::ExportProgress

pub enum ExportProgress {
     Start {
         id: u64,
         hash: Hash,
@@ -18,7 +18,7 @@
 

This will be omitted if the store can move the file or use copy on write

There will be multiple of these messages for an id

Fields

§id: u64
§offset: u64
§

Done

Done exporting

-

Fields

§id: u64

Trait Implementations§

source§

impl Debug for ExportProgress

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Fields

§id: u64

Trait Implementations§

§

impl Debug for ExportProgress

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/store/enum.GcMarkEvent.html b/pr/2616/docs/iroh/blobs/store/enum.GcMarkEvent.html index 9ddc7e0671..ae669e8f26 100644 --- a/pr/2616/docs/iroh/blobs/store/enum.GcMarkEvent.html +++ b/pr/2616/docs/iroh/blobs/store/enum.GcMarkEvent.html @@ -1,4 +1,4 @@ -GcMarkEvent in iroh::blobs::store - Rust

Enum iroh::blobs::store::GcMarkEvent

source ·
pub enum GcMarkEvent {
+GcMarkEvent in iroh::blobs::store - Rust

Enum iroh::blobs::store::GcMarkEvent

pub enum GcMarkEvent {
     CustomDebug(String),
     CustomWarning(String, Option<Error>),
     Error(Error),
@@ -6,7 +6,7 @@
 

Variants§

§

CustomDebug(String)

A custom event (info)

§

CustomWarning(String, Option<Error>)

A custom non critical error

§

Error(Error)

An unrecoverable error during GC

-

Trait Implementations§

source§

impl Debug for GcMarkEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for GcMarkEvent

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/store/enum.GcSweepEvent.html b/pr/2616/docs/iroh/blobs/store/enum.GcSweepEvent.html index a61fdbbe05..fb4b0af4d0 100644 --- a/pr/2616/docs/iroh/blobs/store/enum.GcSweepEvent.html +++ b/pr/2616/docs/iroh/blobs/store/enum.GcSweepEvent.html @@ -1,4 +1,4 @@ -GcSweepEvent in iroh::blobs::store - Rust

Enum iroh::blobs::store::GcSweepEvent

source ·
pub enum GcSweepEvent {
+GcSweepEvent in iroh::blobs::store - Rust

Enum iroh::blobs::store::GcSweepEvent

pub enum GcSweepEvent {
     CustomDebug(String),
     CustomWarning(String, Option<Error>),
     Error(Error),
@@ -6,7 +6,7 @@
 

Variants§

§

CustomDebug(String)

A custom event (debug)

§

CustomWarning(String, Option<Error>)

A custom non critical error

§

Error(Error)

An unrecoverable error during GC

-

Trait Implementations§

source§

impl Debug for GcSweepEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for GcSweepEvent

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/store/enum.ImportMode.html b/pr/2616/docs/iroh/blobs/store/enum.ImportMode.html index f3deea6532..0d53353506 100644 --- a/pr/2616/docs/iroh/blobs/store/enum.ImportMode.html +++ b/pr/2616/docs/iroh/blobs/store/enum.ImportMode.html @@ -1,4 +1,4 @@ -ImportMode in iroh::blobs::store - Rust

Enum iroh::blobs::store::ImportMode

source ·
pub enum ImportMode {
+ImportMode in iroh::blobs::store - Rust

Enum iroh::blobs::store::ImportMode

pub enum ImportMode {
     Copy,
     TryReference,
 }
Expand description

The import mode describes how files will be imported.

@@ -14,9 +14,9 @@ after it has been imported.

the file might be modified after it has been imported.

Stores are allowed to ignore this mode and always copy the file, e.g. if the file is very small or if the store does not support referencing files.

-

Trait Implementations§

source§

impl Clone for ImportMode

source§

fn clone(&self) -> ImportMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ImportMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for ImportMode

source§

fn default() -> ImportMode

Returns the “default value” for a type. Read more
source§

impl PartialEq for ImportMode

source§

fn eq(&self, other: &ImportMode) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for ImportMode

§

fn clone(&self) -> ImportMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ImportMode

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for ImportMode

§

fn default() -> ImportMode

Returns the “default value” for a type. Read more
§

impl PartialEq for ImportMode

§

fn eq(&self, other: &ImportMode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for ImportMode

source§

impl Eq for ImportMode

source§

impl StructuralPartialEq for ImportMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

§

impl Copy for ImportMode

§

impl Eq for ImportMode

§

impl StructuralPartialEq for ImportMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/store/enum.ImportProgress.html b/pr/2616/docs/iroh/blobs/store/enum.ImportProgress.html index bfa3a527a7..952d7fe253 100644 --- a/pr/2616/docs/iroh/blobs/store/enum.ImportProgress.html +++ b/pr/2616/docs/iroh/blobs/store/enum.ImportProgress.html @@ -1,4 +1,4 @@ -ImportProgress in iroh::blobs::store - Rust

Enum iroh::blobs::store::ImportProgress

source ·
pub enum ImportProgress {
+ImportProgress in iroh::blobs::store - Rust

Enum iroh::blobs::store::ImportProgress

pub enum ImportProgress {
     Found {
         id: u64,
         name: String,
@@ -35,7 +35,7 @@ is fully copied.

There will be multiple of these messages for an id

Fields

§id: u64
§offset: u64
§

OutboardDone

Done computing the outboard

This comes after Size and zero or more OutboardProgress messages

-

Fields

§id: u64
§hash: Hash

Trait Implementations§

source§

impl Debug for ImportProgress

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Fields

§id: u64
§hash: Hash

Trait Implementations§

§

impl Debug for ImportProgress

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/store/enum.ReportLevel.html b/pr/2616/docs/iroh/blobs/store/enum.ReportLevel.html index 2da1418662..31f7e87d3c 100644 --- a/pr/2616/docs/iroh/blobs/store/enum.ReportLevel.html +++ b/pr/2616/docs/iroh/blobs/store/enum.ReportLevel.html @@ -1,4 +1,4 @@ -ReportLevel in iroh::blobs::store - Rust

Enum iroh::blobs::store::ReportLevel

source ·
pub enum ReportLevel {
+ReportLevel in iroh::blobs::store - Rust

Enum iroh::blobs::store::ReportLevel

pub enum ReportLevel {
     Trace,
     Info,
     Warn,
@@ -8,21 +8,21 @@
 
§

Info

Info messages

§

Warn

Warnings, something is not quite right

§

Error

Errors, something is very wrong

-

Trait Implementations§

source§

impl Clone for ReportLevel

source§

fn clone(&self) -> ReportLevel

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ReportLevel

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ReportLevel

Trait Implementations§

§

impl Clone for ReportLevel

§

fn clone(&self) -> ReportLevel

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ReportLevel

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for ReportLevel

§

fn deserialize<__D>( __deserializer: __D ) -> Result<ReportLevel, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for ReportLevel

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Ord for ReportLevel

source§

fn cmp(&self, other: &ReportLevel) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for ReportLevel

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Ord for ReportLevel

§

fn cmp(&self, other: &ReportLevel) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for ReportLevel

source§

fn eq(&self, other: &ReportLevel) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more

§

impl PartialEq for ReportLevel

§

fn eq(&self, other: &ReportLevel) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for ReportLevel

source§

fn partial_cmp(&self, other: &ReportLevel) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for ReportLevel

§

fn partial_cmp(&self, other: &ReportLevel) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for ReportLevel

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for ReportLevel

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for ReportLevel

source§

impl Eq for ReportLevel

source§

impl StructuralPartialEq for ReportLevel

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

§

impl Copy for ReportLevel

§

impl Eq for ReportLevel

§

impl StructuralPartialEq for ReportLevel

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/store/enum.ValidateProgress.html b/pr/2616/docs/iroh/blobs/store/enum.ValidateProgress.html index 43dc44d43b..8a156ffef3 100644 --- a/pr/2616/docs/iroh/blobs/store/enum.ValidateProgress.html +++ b/pr/2616/docs/iroh/blobs/store/enum.ValidateProgress.html @@ -1,4 +1,4 @@ -ValidateProgress in iroh::blobs::store - Rust

Enum iroh::blobs::store::ValidateProgress

source ·
pub enum ValidateProgress {
+ValidateProgress in iroh::blobs::store - Rust

Enum iroh::blobs::store::ValidateProgress

pub enum ValidateProgress {
     Starting {
         total: u64,
     },
@@ -63,10 +63,10 @@ Otherwise it might be an url or something else to uniquely identify the entry.
§ranges: RangeSpec

Available ranges.

§

AllDone

We are done with the whole operation.

§

Abort(RpcError)

We got an error and need to abort.

-

Trait Implementations§

source§

impl Debug for ValidateProgress

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ValidateProgress

Trait Implementations§

§

impl Debug for ValidateProgress

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for ValidateProgress

§

fn deserialize<__D>( __deserializer: __D ) -> Result<ValidateProgress, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for ValidateProgress

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Serialize for ValidateProgress

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/blobs/store/fs/index.html b/pr/2616/docs/iroh/blobs/store/fs/index.html index 1f593df23e..4829ce9255 100644 --- a/pr/2616/docs/iroh/blobs/store/fs/index.html +++ b/pr/2616/docs/iroh/blobs/store/fs/index.html @@ -1,4 +1,4 @@ -iroh::blobs::store::fs - Rust

Module iroh::blobs::store::fs

source ·
Expand description

redb backed storage

+iroh::blobs::store::fs - Rust

Module iroh::blobs::store::fs

Expand description

redb backed storage

Data can get into the store in two ways:

  1. import from local data
  2. diff --git a/pr/2616/docs/iroh/blobs/store/fs/struct.BatchOptions.html b/pr/2616/docs/iroh/blobs/store/fs/struct.BatchOptions.html index 96a07709ac..d8c86f611b 100644 --- a/pr/2616/docs/iroh/blobs/store/fs/struct.BatchOptions.html +++ b/pr/2616/docs/iroh/blobs/store/fs/struct.BatchOptions.html @@ -1,4 +1,4 @@ -BatchOptions in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::BatchOptions

    source ·
    pub struct BatchOptions {
    +BatchOptions in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::BatchOptions

    pub struct BatchOptions {
         pub max_read_batch: usize,
         pub max_read_duration: Duration,
         pub max_write_batch: usize,
    @@ -8,7 +8,7 @@
     
    §max_read_duration: Duration

    Maximum duration to wait before committing a read transaction.

    §max_write_batch: usize

    Maximum number of actor messages to batch before committing write transaction.

    §max_write_duration: Duration

    Maximum duration to wait before committing a write transaction.

    -

    Trait Implementations§

    source§

    impl Clone for BatchOptions

    source§

    fn clone(&self) -> BatchOptions

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for BatchOptions

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for BatchOptions

    source§

    fn default() -> BatchOptions

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Clone for BatchOptions

    §

    fn clone(&self) -> BatchOptions

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for BatchOptions

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for BatchOptions

    §

    fn default() -> BatchOptions

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh/blobs/store/fs/struct.FlatStorePaths.html b/pr/2616/docs/iroh/blobs/store/fs/struct.FlatStorePaths.html index b8a18f05c0..87fc6484f2 100644 --- a/pr/2616/docs/iroh/blobs/store/fs/struct.FlatStorePaths.html +++ b/pr/2616/docs/iroh/blobs/store/fs/struct.FlatStorePaths.html @@ -1,4 +1,4 @@ -FlatStorePaths in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::FlatStorePaths

    source ·
    pub struct FlatStorePaths {
    +FlatStorePaths in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::FlatStorePaths

    pub struct FlatStorePaths {
         pub complete: PathBuf,
         pub partial: PathBuf,
         pub meta: PathBuf,
    @@ -6,7 +6,7 @@
     

    Fields§

    §complete: PathBuf

    Complete data files

    §partial: PathBuf

    Partial data files

    §meta: PathBuf

    Metadata files such as the tags table

    -

    Trait Implementations§

    source§

    impl Debug for FlatStorePaths

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Debug for FlatStorePaths

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh/blobs/store/fs/struct.InlineOptions.html b/pr/2616/docs/iroh/blobs/store/fs/struct.InlineOptions.html index e700075476..54d25dbc7c 100644 --- a/pr/2616/docs/iroh/blobs/store/fs/struct.InlineOptions.html +++ b/pr/2616/docs/iroh/blobs/store/fs/struct.InlineOptions.html @@ -1,12 +1,12 @@ -InlineOptions in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::InlineOptions

    source ·
    pub struct InlineOptions {
    +InlineOptions in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::InlineOptions

    pub struct InlineOptions {
         pub max_data_inlined: u64,
         pub max_outboard_inlined: u64,
     }
    Expand description

    Options for inlining small complete data or outboards.

    Fields§

    §max_data_inlined: u64

    Maximum data size to inline.

    §max_outboard_inlined: u64

    Maximum outboard size to inline.

    -

    Implementations§

    source§

    impl InlineOptions

    source

    pub const NO_INLINE: InlineOptions = _

    Do not inline anything, ever.

    -
    source

    pub const ALWAYS_INLINE: InlineOptions = _

    Always inline everything

    -

    Trait Implementations§

    source§

    impl Clone for InlineOptions

    source§

    fn clone(&self) -> InlineOptions

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for InlineOptions

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for InlineOptions

    source§

    fn default() -> InlineOptions

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Implementations§

    §

    impl InlineOptions

    pub const NO_INLINE: InlineOptions = _

    Do not inline anything, ever.

    +

    pub const ALWAYS_INLINE: InlineOptions = _

    Always inline everything

    +

    Trait Implementations§

    §

    impl Clone for InlineOptions

    §

    fn clone(&self) -> InlineOptions

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for InlineOptions

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for InlineOptions

    §

    fn default() -> InlineOptions

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh/blobs/store/fs/struct.Options.html b/pr/2616/docs/iroh/blobs/store/fs/struct.Options.html index 931bbeede3..17fd8215fc 100644 --- a/pr/2616/docs/iroh/blobs/store/fs/struct.Options.html +++ b/pr/2616/docs/iroh/blobs/store/fs/struct.Options.html @@ -1,4 +1,4 @@ -Options in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::Options

    source ·
    pub struct Options {
    +Options in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::Options

    pub struct Options {
         pub path: PathOptions,
         pub inline: InlineOptions,
         pub batch: BatchOptions,
    @@ -6,7 +6,7 @@
     

    Fields§

    §path: PathOptions

    Path options.

    §inline: InlineOptions

    Inline storage options.

    §batch: BatchOptions

    Transaction batching options.

    -

    Trait Implementations§

    source§

    impl Clone for Options

    source§

    fn clone(&self) -> Options

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Options

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Clone for Options

    §

    fn clone(&self) -> Options

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Options

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh/blobs/store/fs/struct.PathOptions.html b/pr/2616/docs/iroh/blobs/store/fs/struct.PathOptions.html index 10b38de740..b37d7c6a5f 100644 --- a/pr/2616/docs/iroh/blobs/store/fs/struct.PathOptions.html +++ b/pr/2616/docs/iroh/blobs/store/fs/struct.PathOptions.html @@ -1,4 +1,4 @@ -PathOptions in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::PathOptions

    source ·
    pub struct PathOptions {
    +PathOptions in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::PathOptions

    pub struct PathOptions {
         pub data_path: PathBuf,
         pub temp_path: PathBuf,
     }
    Expand description

    Options for directories used by the file store.

    @@ -6,7 +6,7 @@
    §temp_path: PathBuf

    Path to the directory where temp files are stored. This must be on the same device as data_path, since we need to atomically move temp files into place.

    -

    Trait Implementations§

    source§

    impl Clone for PathOptions

    source§

    fn clone(&self) -> PathOptions

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for PathOptions

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Clone for PathOptions

    §

    fn clone(&self) -> PathOptions

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for PathOptions

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh/blobs/store/fs/struct.Store.html b/pr/2616/docs/iroh/blobs/store/fs/struct.Store.html index 75a01ada69..9c92e0c8b3 100644 --- a/pr/2616/docs/iroh/blobs/store/fs/struct.Store.html +++ b/pr/2616/docs/iroh/blobs/store/fs/struct.Store.html @@ -1,87 +1,87 @@ -Store in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::Store

    source ·
    pub struct Store(/* private fields */);
    Expand description

    Storage that is using a redb database for small files and files for +Store in iroh::blobs::store::fs - Rust

    Struct iroh::blobs::store::fs::Store

    pub struct Store(/* private fields */);
    Expand description

    Storage that is using a redb database for small files and files for large files.

    -

    Implementations§

    source§

    impl Store

    source

    pub async fn transform_entries( +

    Implementations§

    §

    impl Store

    pub async fn transform_entries( &self, transform: impl Fn(Hash, EntryData) -> Option<EntryData> + Send + Sync ) -> Result<(), Error>

    Transform all entries in the store. This is for testing and can be used to get the store in a wrong state.

    -
    source

    pub fn owned_data_path(&self, hash: &Hash) -> PathBuf

    Owned data path

    -
    source

    pub fn owned_outboard_path(&self, hash: &Hash) -> PathBuf

    Owned outboard path

    -
    source§

    impl Store

    source

    pub async fn load(root: impl AsRef<Path>) -> Result<Store, Error>

    Load or create a new store.

    -
    source

    pub async fn new(path: PathBuf, options: Options) -> Result<Store, Error>

    Create a new store with custom options.

    -
    source

    pub async fn update_inline_options( +

    pub fn owned_data_path(&self, hash: &Hash) -> PathBuf

    Owned data path

    +

    pub fn owned_outboard_path(&self, hash: &Hash) -> PathBuf

    Owned outboard path

    +
    §

    impl Store

    pub async fn load(root: impl AsRef<Path>) -> Result<Store, Error>

    Load or create a new store.

    +

    pub async fn new(path: PathBuf, options: Options) -> Result<Store, Error>

    Create a new store with custom options.

    +

    pub async fn update_inline_options( &self, inline_options: InlineOptions, reapply: bool ) -> Result<(), Error>

    Update the inline options.

    When reapply is true, the new options will be applied to all existing entries.

    -
    source

    pub async fn dump(&self) -> Result<(), Error>

    Dump the entire content of the database to stdout.

    -
    source

    pub async fn sync(&self) -> Result<(), Error>

    Ensure that all operations before the sync are processed and persisted.

    +

    pub async fn dump(&self) -> Result<(), Error>

    Dump the entire content of the database to stdout.

    +

    pub async fn sync(&self) -> Result<(), Error>

    Ensure that all operations before the sync are processed and persisted.

    This is done by closing any open write transaction.

    -
    source

    pub async fn import_flat_store( +

    pub async fn import_flat_store( &self, paths: FlatStorePaths ) -> Result<bool, Error>

    Import from a v0 or v1 flat store, for backwards compatibility.

    -

    Trait Implementations§

    source§

    impl Clone for Store

    source§

    fn clone(&self) -> Store

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Store

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Map for Store

    §

    type Entry = BaoFileHandle

    The entry type. An entry is a cheaply cloneable handle that can be used -to open readers for both the data and the outboard
    source§

    async fn get(&self, hash: &Hash) -> Result<Option<<Store as Map>::Entry>, Error>

    Get an entry for a hash. Read more
    source§

    impl MapMut for Store

    §

    type EntryMut = BaoFileHandle

    An entry that is possibly writable
    source§

    async fn get_or_create( +

    Trait Implementations§

    §

    impl Clone for Store

    §

    fn clone(&self) -> Store

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Store

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Map for Store

    §

    type Entry = BaoFileHandle

    The entry type. An entry is a cheaply cloneable handle that can be used +to open readers for both the data and the outboard
    §

    async fn get(&self, hash: &Hash) -> Result<Option<<Store as Map>::Entry>, Error>

    Get an entry for a hash. Read more
    §

    impl MapMut for Store

    §

    type EntryMut = BaoFileHandle

    An entry that is possibly writable
    §

    async fn get_or_create( &self, hash: Hash, _size: u64 -) -> Result<<Store as MapMut>::EntryMut, Error>

    Get an existing partial entry, or create a new one. Read more
    source§

    async fn entry_status(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Find out if the data behind a hash is complete, partial, or not present. Read more
    source§

    async fn get_mut( +) -> Result<<Store as MapMut>::EntryMut, Error>

    Get an existing partial entry, or create a new one. Read more
    §

    async fn entry_status(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Find out if the data behind a hash is complete, partial, or not present. Read more
    §

    async fn get_mut( &self, hash: &Hash -) -> Result<Option<<Store as MapMut>::EntryMut>, Error>

    Get an existing entry as an EntryMut. Read more
    source§

    async fn insert_complete( +) -> Result<Option<<Store as MapMut>::EntryMut>, Error>

    Get an existing entry as an EntryMut. Read more
    §

    async fn insert_complete( &self, entry: <Store as MapMut>::EntryMut -) -> Result<(), Error>

    Upgrade a partial entry to a complete entry.
    source§

    fn entry_status_sync(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Sync version of entry_status, for the doc sync engine until we can get rid of it. Read more
    source§

    impl ReadableStore for Store

    source§

    async fn blobs( +) -> Result<(), Error>

    Upgrade a partial entry to a complete entry.
    §

    fn entry_status_sync(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Sync version of entry_status, for the doc sync engine until we can get rid of it. Read more
    §

    impl ReadableStore for Store

    §

    async fn blobs( &self ) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list all blobs in the database. This includes both raw blobs that have -been imported, and hash sequences that have been created internally.
    source§

    async fn partial_blobs( +been imported, and hash sequences that have been created internally.

    §

    async fn partial_blobs( &self -) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list partial blobs in the database
    source§

    async fn tags( +) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list partial blobs in the database
    §

    async fn tags( &self -) -> Result<Box<dyn Iterator<Item = Result<(Tag, HashAndFormat), Error>> + Send + Sync>, Error>

    list all tags (collections or other explicitly added things) in the database
    source§

    fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

    Temp tags
    source§

    async fn consistency_check( +) -> Result<Box<dyn Iterator<Item = Result<(Tag, HashAndFormat), Error>> + Send + Sync>, Error>

    list all tags (collections or other explicitly added things) in the database
    §

    fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

    Temp tags
    §

    async fn consistency_check( &self, repair: bool, tx: BoxedProgressSender<ConsistencyCheckProgress> -) -> Result<(), Error>

    Perform a consistency check on the database
    source§

    async fn export( +) -> Result<(), Error>

    Perform a consistency check on the database
    §

    async fn export( &self, hash: Hash, target: PathBuf, mode: ExportMode, progress: Box<dyn Fn(u64) -> Result<(), Error> + Send + Sync> -) -> Result<(), Error>

    This trait method extracts a file to a local path. Read more
    source§

    impl Store for Store

    source§

    async fn import_file( +) -> Result<(), Error>

    This trait method extracts a file to a local path. Read more
    §

    impl Store for Store

    §

    async fn import_file( &self, path: PathBuf, mode: ImportMode, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> Result<(TempTag, u64), Error>

    This trait method imports a file from a local path. Read more
    source§

    async fn import_bytes( +) -> Result<(TempTag, u64), Error>

    This trait method imports a file from a local path. Read more
    §

    async fn import_bytes( &self, data: Bytes, format: BlobFormat -) -> Result<TempTag, Error>

    Import data from memory. Read more
    source§

    async fn import_stream( +) -> Result<TempTag, Error>

    Import data from memory. Read more
    §

    async fn import_stream( &self, data: impl Stream<Item = Result<Bytes, Error>> + Unpin + Send + 'static, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> Result<(TempTag, u64), Error>

    Import data from a stream of bytes.
    source§

    async fn set_tag( +) -> Result<(TempTag, u64), Error>

    Import data from a stream of bytes.
    §

    async fn set_tag( &self, name: Tag, hash: Option<HashAndFormat> -) -> Result<(), Error>

    Set a tag
    source§

    async fn create_tag(&self, hash: HashAndFormat) -> Result<Tag, Error>

    Create a new tag
    source§

    async fn delete(&self, hashes: Vec<Hash>) -> Result<(), Error>

    physically delete the given hashes from the store.
    source§

    async fn gc_start(&self) -> Result<(), Error>

    Notify the store that a new gc phase is about to start. Read more
    source§

    fn temp_tag(&self, value: HashAndFormat) -> TempTag

    Create a temporary pin for this store
    source§

    async fn shutdown(&self)

    Shutdown the store.
    source§

    fn import_reader( +) -> Result<(), Error>

    Set a tag
    §

    async fn create_tag(&self, hash: HashAndFormat) -> Result<Tag, Error>

    Create a new tag
    §

    async fn delete(&self, hashes: Vec<Hash>) -> Result<(), Error>

    physically delete the given hashes from the store.
    §

    async fn gc_start(&self) -> Result<(), Error>

    Notify the store that a new gc phase is about to start. Read more
    §

    fn temp_tag(&self, value: HashAndFormat) -> TempTag

    Create a temporary pin for this store
    §

    async fn shutdown(&self)

    Shutdown the store.
    §

    fn import_reader( &self, data: impl AsyncRead + Send + Unpin + 'static, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> impl Future<Output = Result<(TempTag, u64), Error>> + Send

    Import data from an async byte reader.
    source§

    fn gc_mark( +) -> impl Future<Output = Result<(TempTag, u64), Error>> + Send

    Import data from an async byte reader.
    §

    fn gc_mark( &self, live: &mut BTreeSet<Hash> -) -> impl Stream<Item = GcMarkEvent> + Unpin

    Traverse all roots recursively and mark them as live. Read more
    source§

    fn gc_sweep( +) -> impl Stream<Item = GcMarkEvent> + Unpin

    Traverse all roots recursively and mark them as live. Read more
    §

    fn gc_sweep( &self, live: &BTreeSet<Hash> -) -> impl Stream<Item = GcSweepEvent> + Unpin

    Remove all blobs that are not marked as live. Read more
    source§

    fn validate( +) -> impl Stream<Item = GcSweepEvent> + Unpin

    Remove all blobs that are not marked as live. Read more
    §

    fn validate( &self, repair: bool, tx: BoxedProgressSender<ValidateProgress> diff --git a/pr/2616/docs/iroh/blobs/store/fs/type.Entry.html b/pr/2616/docs/iroh/blobs/store/fs/type.Entry.html index 7c6d7ebd76..15a2df9b0a 100644 --- a/pr/2616/docs/iroh/blobs/store/fs/type.Entry.html +++ b/pr/2616/docs/iroh/blobs/store/fs/type.Entry.html @@ -1,2 +1,2 @@ -Entry in iroh::blobs::store::fs - Rust

    Type Alias iroh::blobs::store::fs::Entry

    source ·
    pub type Entry = BaoFileHandle;
    Expand description

    Use BaoFileHandle as the entry type for the map.

    +Entry in iroh::blobs::store::fs - Rust

    Type Alias iroh::blobs::store::fs::Entry

    pub type Entry = BaoFileHandle;
    Expand description

    Use BaoFileHandle as the entry type for the map.

    Aliased Type§

    struct Entry(/* private fields */);
    \ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/index.html b/pr/2616/docs/iroh/blobs/store/index.html index 156678122c..67dbe8bcd2 100644 --- a/pr/2616/docs/iroh/blobs/store/index.html +++ b/pr/2616/docs/iroh/blobs/store/index.html @@ -1,3 +1,3 @@ -iroh::blobs::store - Rust

    Module iroh::blobs::store

    source ·
    Expand description

    Implementations of blob stores

    +iroh::blobs::store - Rust

    Module iroh::blobs::store

    Expand description

    Implementations of blob stores

    Modules§

    • Efficient BLAKE3 based verified streaming
    • redb backed storage
    • A full in memory database for iroh-blobs
    • A set of non-overlapping ranges, backed by SmallVec<T>
    • A readonly in memory database for iroh-blobs, usable for testing and sharing static data.

    Enums§

    Traits§

    • An async batch interface for writing bao content items to a pair of data and outboard.
    • A generic map from hashes to bao blobs (blobs with bao outboards).
    • An entry for one hash in a bao map
    • A partial entry
    • A mutable bao map.
    • Extension of Map to add misc methods used by the rpc calls.
    • The mutable part of a Bao store.

    Type Aliases§

    \ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/mem/index.html b/pr/2616/docs/iroh/blobs/store/mem/index.html index bcd270341e..cf4dd31a4c 100644 --- a/pr/2616/docs/iroh/blobs/store/mem/index.html +++ b/pr/2616/docs/iroh/blobs/store/mem/index.html @@ -1,4 +1,4 @@ -iroh::blobs::store::mem - Rust

    Module iroh::blobs::store::mem

    source ·
    Expand description

    A full in memory database for iroh-blobs

    +iroh::blobs::store::mem - Rust

    Module iroh::blobs::store::mem

    Expand description

    A full in memory database for iroh-blobs

    Main entry point is Store.

    Structs§

    • An in memory entry
    • A fully featured in memory database for iroh-blobs, including support for partial blobs.
    \ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/mem/struct.Entry.html b/pr/2616/docs/iroh/blobs/store/mem/struct.Entry.html index 41606dbd73..4c1c7f55f4 100644 --- a/pr/2616/docs/iroh/blobs/store/mem/struct.Entry.html +++ b/pr/2616/docs/iroh/blobs/store/mem/struct.Entry.html @@ -1,5 +1,5 @@ -Entry in iroh::blobs::store::mem - Rust

    Struct iroh::blobs::store::mem::Entry

    source ·
    pub struct Entry { /* private fields */ }
    Expand description

    An in memory entry

    -

    Trait Implementations§

    source§

    impl Clone for Entry

    source§

    fn clone(&self) -> Entry

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Entry

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl MapEntry for Entry

    source§

    fn hash(&self) -> Hash

    The hash of the entry.
    source§

    fn size(&self) -> BaoBlobSize

    The size of the entry.
    source§

    fn is_complete(&self) -> bool

    Returns true if the entry is complete. Read more
    source§

    async fn outboard(&self) -> Result<impl Outboard, Error>

    A future that resolves to a reader that can be used to read the outboard
    source§

    async fn data_reader(&self) -> Result<impl AsyncSliceReader, Error>

    A future that resolves to a reader that can be used to read the data
    source§

    impl MapEntryMut for Entry

    source§

    async fn batch_writer(&self) -> Result<impl BaoBatchWriter, Error>

    Get a batch writer

    Auto Trait Implementations§

    §

    impl Freeze for Entry

    §

    impl RefUnwindSafe for Entry

    §

    impl Send for Entry

    §

    impl Sync for Entry

    §

    impl Unpin for Entry

    §

    impl UnwindSafe for Entry

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +Entry in iroh::blobs::store::mem - Rust

    Struct iroh::blobs::store::mem::Entry

    pub struct Entry { /* private fields */ }
    Expand description

    An in memory entry

    +

    Trait Implementations§

    §

    impl Clone for Entry

    §

    fn clone(&self) -> Entry

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Entry

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl MapEntry for Entry

    §

    fn hash(&self) -> Hash

    The hash of the entry.
    §

    fn size(&self) -> BaoBlobSize

    The size of the entry.
    §

    fn is_complete(&self) -> bool

    Returns true if the entry is complete. Read more
    §

    async fn outboard(&self) -> Result<impl Outboard, Error>

    A future that resolves to a reader that can be used to read the outboard
    §

    async fn data_reader(&self) -> Result<impl AsyncSliceReader, Error>

    A future that resolves to a reader that can be used to read the data
    §

    impl MapEntryMut for Entry

    §

    async fn batch_writer(&self) -> Result<impl BaoBatchWriter, Error>

    Get a batch writer

    Auto Trait Implementations§

    §

    impl Freeze for Entry

    §

    impl RefUnwindSafe for Entry

    §

    impl Send for Entry

    §

    impl Sync for Entry

    §

    impl Unpin for Entry

    §

    impl UnwindSafe for Entry

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh/blobs/store/mem/struct.Store.html b/pr/2616/docs/iroh/blobs/store/mem/struct.Store.html index d330fe00d1..a98ff77e3d 100644 --- a/pr/2616/docs/iroh/blobs/store/mem/struct.Store.html +++ b/pr/2616/docs/iroh/blobs/store/mem/struct.Store.html @@ -1,58 +1,58 @@ -Store in iroh::blobs::store::mem - Rust

    Struct iroh::blobs::store::mem::Store

    source ·
    pub struct Store { /* private fields */ }
    Expand description

    A fully featured in memory database for iroh-blobs, including support for +Store in iroh::blobs::store::mem - Rust

    Struct iroh::blobs::store::mem::Store

    pub struct Store { /* private fields */ }
    Expand description

    A fully featured in memory database for iroh-blobs, including support for partial blobs.

    -

    Implementations§

    source§

    impl Store

    source

    pub fn new() -> Store

    Create a new in memory store

    -

    Trait Implementations§

    source§

    impl Clone for Store

    source§

    fn clone(&self) -> Store

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Store

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Store

    source§

    fn default() -> Store

    Returns the “default value” for a type. Read more
    source§

    impl Map for Store

    §

    type Entry = Entry

    The entry type. An entry is a cheaply cloneable handle that can be used -to open readers for both the data and the outboard
    source§

    async fn get(&self, hash: &Hash) -> Result<Option<<Store as Map>::Entry>, Error>

    Get an entry for a hash. Read more
    source§

    impl MapMut for Store

    §

    type EntryMut = Entry

    An entry that is possibly writable
    source§

    async fn get_mut( +

    Implementations§

    §

    impl Store

    pub fn new() -> Store

    Create a new in memory store

    +

    Trait Implementations§

    §

    impl Clone for Store

    §

    fn clone(&self) -> Store

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Store

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for Store

    §

    fn default() -> Store

    Returns the “default value” for a type. Read more
    §

    impl Map for Store

    §

    type Entry = Entry

    The entry type. An entry is a cheaply cloneable handle that can be used +to open readers for both the data and the outboard
    §

    async fn get(&self, hash: &Hash) -> Result<Option<<Store as Map>::Entry>, Error>

    Get an entry for a hash. Read more
    §

    impl MapMut for Store

    §

    type EntryMut = Entry

    An entry that is possibly writable
    §

    async fn get_mut( &self, hash: &Hash -) -> Result<Option<<Store as MapMut>::EntryMut>, Error>

    Get an existing entry as an EntryMut. Read more
    source§

    async fn get_or_create(&self, hash: Hash, _size: u64) -> Result<Entry, Error>

    Get an existing partial entry, or create a new one. Read more
    source§

    async fn entry_status(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Find out if the data behind a hash is complete, partial, or not present. Read more
    source§

    fn entry_status_sync(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Sync version of entry_status, for the doc sync engine until we can get rid of it. Read more
    source§

    async fn insert_complete(&self, entry: Entry) -> Result<(), Error>

    Upgrade a partial entry to a complete entry.
    source§

    impl ReadableStore for Store

    source§

    async fn blobs( +) -> Result<Option<<Store as MapMut>::EntryMut>, Error>

    Get an existing entry as an EntryMut. Read more
    §

    async fn get_or_create(&self, hash: Hash, _size: u64) -> Result<Entry, Error>

    Get an existing partial entry, or create a new one. Read more
    §

    async fn entry_status(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Find out if the data behind a hash is complete, partial, or not present. Read more
    §

    fn entry_status_sync(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Sync version of entry_status, for the doc sync engine until we can get rid of it. Read more
    §

    async fn insert_complete(&self, entry: Entry) -> Result<(), Error>

    Upgrade a partial entry to a complete entry.
    §

    impl ReadableStore for Store

    §

    async fn blobs( &self ) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list all blobs in the database. This includes both raw blobs that have -been imported, and hash sequences that have been created internally.
    source§

    async fn partial_blobs( +been imported, and hash sequences that have been created internally.

    §

    async fn partial_blobs( &self -) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list partial blobs in the database
    source§

    async fn tags( +) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list partial blobs in the database
    §

    async fn tags( &self -) -> Result<Box<dyn Iterator<Item = Result<(Tag, HashAndFormat), Error>> + Send + Sync>, Error>

    list all tags (collections or other explicitly added things) in the database
    source§

    fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

    Temp tags
    source§

    async fn consistency_check( +) -> Result<Box<dyn Iterator<Item = Result<(Tag, HashAndFormat), Error>> + Send + Sync>, Error>

    list all tags (collections or other explicitly added things) in the database
    §

    fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

    Temp tags
    §

    async fn consistency_check( &self, _repair: bool, _tx: BoxedProgressSender<ConsistencyCheckProgress> -) -> Result<(), Error>

    Perform a consistency check on the database
    source§

    async fn export( +) -> Result<(), Error>

    Perform a consistency check on the database
    §

    async fn export( &self, hash: Hash, target: PathBuf, mode: ExportMode, progress: Box<dyn Fn(u64) -> Result<(), Error> + Send + Sync> -) -> Result<(), Error>

    This trait method extracts a file to a local path. Read more
    source§

    impl Store for Store

    source§

    async fn import_file( +) -> Result<(), Error>

    This trait method extracts a file to a local path. Read more
    §

    impl Store for Store

    §

    async fn import_file( &self, path: PathBuf, _mode: ImportMode, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> Result<(TempTag, u64), Error>

    This trait method imports a file from a local path. Read more
    source§

    async fn import_stream( +) -> Result<(TempTag, u64), Error>

    This trait method imports a file from a local path. Read more
    §

    async fn import_stream( &self, data: impl Stream<Item = Result<Bytes, Error>> + Unpin + Send + 'static, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> Result<(TempTag, u64), Error>

    Import data from a stream of bytes.
    source§

    async fn import_bytes( +) -> Result<(TempTag, u64), Error>

    Import data from a stream of bytes.
    §

    async fn import_bytes( &self, bytes: Bytes, format: BlobFormat -) -> Result<TempTag, Error>

    Import data from memory. Read more
    source§

    async fn set_tag( +) -> Result<TempTag, Error>

    Import data from memory. Read more
    §

    async fn set_tag( &self, name: Tag, value: Option<HashAndFormat> -) -> Result<(), Error>

    Set a tag
    source§

    async fn create_tag(&self, hash: HashAndFormat) -> Result<Tag, Error>

    Create a new tag
    source§

    fn temp_tag(&self, tag: HashAndFormat) -> TempTag

    Create a temporary pin for this store
    source§

    async fn gc_start(&self) -> Result<(), Error>

    Notify the store that a new gc phase is about to start. Read more
    source§

    async fn delete(&self, hashes: Vec<Hash>) -> Result<(), Error>

    physically delete the given hashes from the store.
    source§

    async fn shutdown(&self)

    Shutdown the store.
    source§

    fn import_reader( +) -> Result<(), Error>

    Set a tag
    §

    async fn create_tag(&self, hash: HashAndFormat) -> Result<Tag, Error>

    Create a new tag
    §

    fn temp_tag(&self, tag: HashAndFormat) -> TempTag

    Create a temporary pin for this store
    §

    async fn gc_start(&self) -> Result<(), Error>

    Notify the store that a new gc phase is about to start. Read more
    §

    async fn delete(&self, hashes: Vec<Hash>) -> Result<(), Error>

    physically delete the given hashes from the store.
    §

    async fn shutdown(&self)

    Shutdown the store.
    §

    fn import_reader( &self, data: impl AsyncRead + Send + Unpin + 'static, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> impl Future<Output = Result<(TempTag, u64), Error>> + Send

    Import data from an async byte reader.
    source§

    fn gc_mark( +) -> impl Future<Output = Result<(TempTag, u64), Error>> + Send

    Import data from an async byte reader.
    §

    fn gc_mark( &self, live: &mut BTreeSet<Hash> -) -> impl Stream<Item = GcMarkEvent> + Unpin

    Traverse all roots recursively and mark them as live. Read more
    source§

    fn gc_sweep( +) -> impl Stream<Item = GcMarkEvent> + Unpin

    Traverse all roots recursively and mark them as live. Read more
    §

    fn gc_sweep( &self, live: &BTreeSet<Hash> -) -> impl Stream<Item = GcSweepEvent> + Unpin

    Remove all blobs that are not marked as live. Read more
    source§

    fn validate( +) -> impl Stream<Item = GcSweepEvent> + Unpin

    Remove all blobs that are not marked as live. Read more
    §

    fn validate( &self, repair: bool, tx: BoxedProgressSender<ValidateProgress> diff --git a/pr/2616/docs/iroh/blobs/store/readonly_mem/index.html b/pr/2616/docs/iroh/blobs/store/readonly_mem/index.html index 97e3ce5b10..a32a4a44ba 100644 --- a/pr/2616/docs/iroh/blobs/store/readonly_mem/index.html +++ b/pr/2616/docs/iroh/blobs/store/readonly_mem/index.html @@ -1,3 +1,3 @@ -iroh::blobs::store::readonly_mem - Rust

    Module iroh::blobs::store::readonly_mem

    source ·
    Expand description

    A readonly in memory database for iroh-blobs, usable for testing and sharing static data.

    +iroh::blobs::store::readonly_mem - Rust

    Module iroh::blobs::store::readonly_mem

    Expand description

    A readonly in memory database for iroh-blobs, usable for testing and sharing static data.

    Main entry point is Store.

    Structs§

    \ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/readonly_mem/struct.Entry.html b/pr/2616/docs/iroh/blobs/store/readonly_mem/struct.Entry.html index 16fae98cef..04b4f24d7b 100644 --- a/pr/2616/docs/iroh/blobs/store/readonly_mem/struct.Entry.html +++ b/pr/2616/docs/iroh/blobs/store/readonly_mem/struct.Entry.html @@ -1,5 +1,5 @@ -Entry in iroh::blobs::store::readonly_mem - Rust

    Struct iroh::blobs::store::readonly_mem::Entry

    source ·
    pub struct Entry { /* private fields */ }
    Expand description

    The MapEntry implementation for Store.

    -

    Trait Implementations§

    source§

    impl Clone for Entry

    source§

    fn clone(&self) -> Entry

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Entry

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl MapEntry for Entry

    source§

    fn hash(&self) -> Hash

    The hash of the entry.
    source§

    fn size(&self) -> BaoBlobSize

    The size of the entry.
    source§

    async fn outboard(&self) -> Result<impl Outboard, Error>

    A future that resolves to a reader that can be used to read the outboard
    source§

    async fn data_reader(&self) -> Result<impl AsyncSliceReader, Error>

    A future that resolves to a reader that can be used to read the data
    source§

    fn is_complete(&self) -> bool

    Returns true if the entry is complete. Read more
    source§

    impl MapEntryMut for Entry

    source§

    async fn batch_writer(&self) -> Result<impl BaoBatchWriter, Error>

    Get a batch writer

    Auto Trait Implementations§

    §

    impl !Freeze for Entry

    §

    impl RefUnwindSafe for Entry

    §

    impl Send for Entry

    §

    impl Sync for Entry

    §

    impl Unpin for Entry

    §

    impl UnwindSafe for Entry

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +Entry in iroh::blobs::store::readonly_mem - Rust

    Struct iroh::blobs::store::readonly_mem::Entry

    pub struct Entry { /* private fields */ }
    Expand description

    The MapEntry implementation for Store.

    +

    Trait Implementations§

    §

    impl Clone for Entry

    §

    fn clone(&self) -> Entry

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Entry

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl MapEntry for Entry

    §

    fn hash(&self) -> Hash

    The hash of the entry.
    §

    fn size(&self) -> BaoBlobSize

    The size of the entry.
    §

    async fn outboard(&self) -> Result<impl Outboard, Error>

    A future that resolves to a reader that can be used to read the outboard
    §

    async fn data_reader(&self) -> Result<impl AsyncSliceReader, Error>

    A future that resolves to a reader that can be used to read the data
    §

    fn is_complete(&self) -> bool

    Returns true if the entry is complete. Read more
    §

    impl MapEntryMut for Entry

    §

    async fn batch_writer(&self) -> Result<impl BaoBatchWriter, Error>

    Get a batch writer

    Auto Trait Implementations§

    §

    impl !Freeze for Entry

    §

    impl RefUnwindSafe for Entry

    §

    impl Send for Entry

    §

    impl Sync for Entry

    §

    impl Unpin for Entry

    §

    impl UnwindSafe for Entry

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh/blobs/store/readonly_mem/struct.Store.html b/pr/2616/docs/iroh/blobs/store/readonly_mem/struct.Store.html index 8ee33a6feb..b3be806718 100644 --- a/pr/2616/docs/iroh/blobs/store/readonly_mem/struct.Store.html +++ b/pr/2616/docs/iroh/blobs/store/readonly_mem/struct.Store.html @@ -1,75 +1,75 @@ -Store in iroh::blobs::store::readonly_mem - Rust

    Struct iroh::blobs::store::readonly_mem::Store

    source ·
    pub struct Store(/* private fields */);
    Expand description

    A readonly in memory database for iroh-blobs.

    +Store in iroh::blobs::store::readonly_mem - Rust

    Struct iroh::blobs::store::readonly_mem::Store

    pub struct Store(/* private fields */);
    Expand description

    A readonly in memory database for iroh-blobs.

    This is basically just a HashMap, so it does not allow for any modifications unless you have a mutable reference to it.

    It is therefore useful mostly for testing and sharing static data.

    -

    Implementations§

    source§

    impl Store

    source

    pub fn new( +

    Implementations§

    §

    impl Store

    pub fn new( entries: impl IntoIterator<Item = (impl Into<String>, impl AsRef<[u8]>)> ) -> (Store, BTreeMap<String, Hash>)

    Create a new Store from a sequence of entries.

    Returns the database and a map of names to computed blake3 hashes. In case of duplicate names, the last entry is used.

    -
    source

    pub fn insert(&mut self, data: impl AsRef<[u8]>) -> Hash

    Insert a new entry into the database, and return the hash of the entry.

    +

    pub fn insert(&mut self, data: impl AsRef<[u8]>) -> Hash

    Insert a new entry into the database, and return the hash of the entry.

    If the database was shared before, this will make a copy.

    -
    source

    pub fn insert_many( +

    pub fn insert_many( &mut self, items: impl IntoIterator<Item = impl AsRef<[u8]>> ) -> Option<Hash>

    Insert multiple entries into the database, and return the hash of the last entry.

    -
    source

    pub fn get_content(&self, hash: &Hash) -> Option<Bytes>

    Get the bytes associated with a hash, if they exist.

    -

    Trait Implementations§

    source§

    impl Clone for Store

    source§

    fn clone(&self) -> Store

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Store

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for Store

    source§

    fn default() -> Store

    Returns the “default value” for a type. Read more
    source§

    impl<K, V> FromIterator<(K, V)> for Store
    where +

    pub fn get_content(&self, hash: &Hash) -> Option<Bytes>

    Get the bytes associated with a hash, if they exist.

    +

    Trait Implementations§

    §

    impl Clone for Store

    §

    fn clone(&self) -> Store

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Store

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for Store

    §

    fn default() -> Store

    Returns the “default value” for a type. Read more
    §

    impl<K, V> FromIterator<(K, V)> for Store
    where K: Into<String>, - V: AsRef<[u8]>,

    source§

    fn from_iter<T>(iter: T) -> Store
    where - T: IntoIterator<Item = (K, V)>,

    Creates a value from an iterator. Read more
    source§

    impl Map for Store

    §

    type Entry = Entry

    The entry type. An entry is a cheaply cloneable handle that can be used -to open readers for both the data and the outboard
    source§

    async fn get(&self, hash: &Hash) -> Result<Option<<Store as Map>::Entry>, Error>

    Get an entry for a hash. Read more
    source§

    impl MapMut for Store

    §

    type EntryMut = Entry

    An entry that is possibly writable
    source§

    async fn get_mut( + V: AsRef<[u8]>,

    §

    fn from_iter<T>(iter: T) -> Store
    where + T: IntoIterator<Item = (K, V)>,

    Creates a value from an iterator. Read more
    §

    impl Map for Store

    §

    type Entry = Entry

    The entry type. An entry is a cheaply cloneable handle that can be used +to open readers for both the data and the outboard
    §

    async fn get(&self, hash: &Hash) -> Result<Option<<Store as Map>::Entry>, Error>

    Get an entry for a hash. Read more
    §

    impl MapMut for Store

    §

    type EntryMut = Entry

    An entry that is possibly writable
    §

    async fn get_mut( &self, hash: &Hash -) -> Result<Option<<Store as MapMut>::EntryMut>, Error>

    Get an existing entry as an EntryMut. Read more
    source§

    async fn get_or_create(&self, _hash: Hash, _size: u64) -> Result<Entry, Error>

    Get an existing partial entry, or create a new one. Read more
    source§

    fn entry_status_sync(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Sync version of entry_status, for the doc sync engine until we can get rid of it. Read more
    source§

    async fn entry_status(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Find out if the data behind a hash is complete, partial, or not present. Read more
    source§

    async fn insert_complete(&self, _entry: Entry) -> Result<(), Error>

    Upgrade a partial entry to a complete entry.
    source§

    impl ReadableStore for Store

    source§

    async fn blobs( +) -> Result<Option<<Store as MapMut>::EntryMut>, Error>

    Get an existing entry as an EntryMut. Read more
    §

    async fn get_or_create(&self, _hash: Hash, _size: u64) -> Result<Entry, Error>

    Get an existing partial entry, or create a new one. Read more
    §

    fn entry_status_sync(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Sync version of entry_status, for the doc sync engine until we can get rid of it. Read more
    §

    async fn entry_status(&self, hash: &Hash) -> Result<EntryStatus, Error>

    Find out if the data behind a hash is complete, partial, or not present. Read more
    §

    async fn insert_complete(&self, _entry: Entry) -> Result<(), Error>

    Upgrade a partial entry to a complete entry.
    §

    impl ReadableStore for Store

    §

    async fn blobs( &self ) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list all blobs in the database. This includes both raw blobs that have -been imported, and hash sequences that have been created internally.
    source§

    async fn tags( +been imported, and hash sequences that have been created internally.

    §

    async fn tags( &self -) -> Result<Box<dyn Iterator<Item = Result<(Tag, HashAndFormat), Error>> + Send + Sync>, Error>

    list all tags (collections or other explicitly added things) in the database
    source§

    fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

    Temp tags
    source§

    async fn consistency_check( +) -> Result<Box<dyn Iterator<Item = Result<(Tag, HashAndFormat), Error>> + Send + Sync>, Error>

    list all tags (collections or other explicitly added things) in the database
    §

    fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

    Temp tags
    §

    async fn consistency_check( &self, _repair: bool, _tx: BoxedProgressSender<ConsistencyCheckProgress> -) -> Result<(), Error>

    Perform a consistency check on the database
    source§

    async fn export( +) -> Result<(), Error>

    Perform a consistency check on the database
    §

    async fn export( &self, hash: Hash, target: PathBuf, mode: ExportMode, progress: Box<dyn Fn(u64) -> Result<(), Error> + Send + Sync> -) -> Result<(), Error>

    This trait method extracts a file to a local path. Read more
    source§

    async fn partial_blobs( +) -> Result<(), Error>

    This trait method extracts a file to a local path. Read more
    §

    async fn partial_blobs( &self -) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list partial blobs in the database
    source§

    impl Store for Store

    source§

    async fn import_bytes( +) -> Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>

    list partial blobs in the database
    §

    impl Store for Store

    §

    async fn import_bytes( &self, bytes: Bytes, format: BlobFormat ) -> Result<TempTag, Error>

    import a byte slice

    -
    source§

    async fn import_file( +

    §

    async fn import_file( &self, data: PathBuf, mode: ImportMode, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> Result<(TempTag, u64), Error>

    This trait method imports a file from a local path. Read more
    source§

    async fn import_stream( +) -> Result<(TempTag, u64), Error>

    This trait method imports a file from a local path. Read more
    §

    async fn import_stream( &self, data: impl Stream<Item = Result<Bytes, Error>> + Unpin + Send, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> Result<(TempTag, u64), Error>

    Import data from a stream of bytes.
    source§

    async fn set_tag( +) -> Result<(TempTag, u64), Error>

    Import data from a stream of bytes.
    §

    async fn set_tag( &self, _name: Tag, _hash: Option<HashAndFormat> -) -> Result<(), Error>

    Set a tag
    source§

    async fn create_tag(&self, _hash: HashAndFormat) -> Result<Tag, Error>

    Create a new tag
    source§

    fn temp_tag(&self, inner: HashAndFormat) -> TempTag

    Create a temporary pin for this store
    source§

    async fn gc_start(&self) -> Result<(), Error>

    Notify the store that a new gc phase is about to start. Read more
    source§

    async fn delete(&self, _hashes: Vec<Hash>) -> Result<(), Error>

    physically delete the given hashes from the store.
    source§

    async fn shutdown(&self)

    Shutdown the store.
    source§

    fn import_reader( +) -> Result<(), Error>

    Set a tag
    §

    async fn create_tag(&self, _hash: HashAndFormat) -> Result<Tag, Error>

    Create a new tag
    §

    fn temp_tag(&self, inner: HashAndFormat) -> TempTag

    Create a temporary pin for this store
    §

    async fn gc_start(&self) -> Result<(), Error>

    Notify the store that a new gc phase is about to start. Read more
    §

    async fn delete(&self, _hashes: Vec<Hash>) -> Result<(), Error>

    physically delete the given hashes from the store.
    §

    async fn shutdown(&self)

    Shutdown the store.
    §

    fn import_reader( &self, data: impl AsyncRead + Send + Unpin + 'static, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator -) -> impl Future<Output = Result<(TempTag, u64), Error>> + Send

    Import data from an async byte reader.
    source§

    fn gc_mark( +) -> impl Future<Output = Result<(TempTag, u64), Error>> + Send

    Import data from an async byte reader.
    §

    fn gc_mark( &self, live: &mut BTreeSet<Hash> -) -> impl Stream<Item = GcMarkEvent> + Unpin

    Traverse all roots recursively and mark them as live. Read more
    source§

    fn gc_sweep( +) -> impl Stream<Item = GcMarkEvent> + Unpin

    Traverse all roots recursively and mark them as live. Read more
    §

    fn gc_sweep( &self, live: &BTreeSet<Hash> -) -> impl Stream<Item = GcSweepEvent> + Unpin

    Remove all blobs that are not marked as live. Read more
    source§

    fn validate( +) -> impl Stream<Item = GcSweepEvent> + Unpin

    Remove all blobs that are not marked as live. Read more
    §

    fn validate( &self, repair: bool, tx: BoxedProgressSender<ValidateProgress> diff --git a/pr/2616/docs/iroh/blobs/store/trait.BaoBatchWriter.html b/pr/2616/docs/iroh/blobs/store/trait.BaoBatchWriter.html index f1317a0511..5effbd1452 100644 --- a/pr/2616/docs/iroh/blobs/store/trait.BaoBatchWriter.html +++ b/pr/2616/docs/iroh/blobs/store/trait.BaoBatchWriter.html @@ -1,4 +1,4 @@ -BaoBatchWriter in iroh::blobs::store - Rust

    Trait iroh::blobs::store::BaoBatchWriter

    source ·
    pub trait BaoBatchWriter {
    +BaoBatchWriter in iroh::blobs::store - Rust

    Trait iroh::blobs::store::BaoBatchWriter

    pub trait BaoBatchWriter {
         // Required methods
         fn write_batch(
             &mut self,
    @@ -10,7 +10,7 @@
     outboard.

    Details like the chunk group size and the actual storage location are left to the implementation.

    -

    Required Methods§

    Required Methods§

    fn write_batch( &mut self, size: u64, batch: Vec<BaoContentItem> @@ -29,13 +29,13 @@ leaf items in the batch.

    parent nodes and a leaf.

    Batch is a vec so it can be moved into a task, which is unfortunately necessary in typical io code.

    -

    source

    fn sync(&mut self) -> impl Future<Output = Result<(), Error>>

    Sync the written data to permanent storage, if applicable. +

    fn sync(&mut self) -> impl Future<Output = Result<(), Error>>

    Sync the written data to permanent storage, if applicable. E.g. for a file based implementation, this would call sync_data on all files.

    -

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl<W> BaoBatchWriter for &mut W
    where +

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    §

    impl<W> BaoBatchWriter for &mut W
    where W: BaoBatchWriter,

    Implement BaoBatchWriter for mutable references

    -
    §

    async fn write_batch( &mut self, size: u64, batch: Vec<BaoContentItem> -) -> Result<(), Error>

    source§

    async fn sync(&mut self) -> Result<(), Error>

    Implementors§

    \ No newline at end of file +) -> Result<(), Error>

    §

    async fn sync(&mut self) -> Result<(), Error>

    Implementors§

    \ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/trait.Map.html b/pr/2616/docs/iroh/blobs/store/trait.Map.html index c90c0ba8db..806983eabf 100644 --- a/pr/2616/docs/iroh/blobs/store/trait.Map.html +++ b/pr/2616/docs/iroh/blobs/store/trait.Map.html @@ -1,4 +1,4 @@ -Map in iroh::blobs::store - Rust

    Trait iroh::blobs::store::Map

    source ·
    pub trait Map: Clone + Send + Sync + 'static {
    +Map in iroh::blobs::store - Rust

    Trait iroh::blobs::store::Map

    pub trait Map: Clone + Send + Sync + 'static {
         type Entry: MapEntry;
     
         // Required method
    @@ -12,9 +12,9 @@ also implement Required Associated Types§

    source

    type Entry: MapEntry

    The entry type. An entry is a cheaply cloneable handle that can be used +

    Required Associated Types§

    type Entry: MapEntry

    The entry type. An entry is a cheaply cloneable handle that can be used to open readers for both the data and the outboard

    -

    Required Methods§

    source

    fn get( +

    Required Methods§

    fn get( &self, hash: &Hash ) -> impl Future<Output = Result<Option<Self::Entry>, Error>> + Send

    Get an entry for a hash.

    @@ -22,4 +22,4 @@ to open readers for both the data and the outboard

    is an entry. Creating an entry should be cheap, any expensive ops should be deferred to the creation of the actual readers.

    It is not guaranteed that the entry is complete.

    -

    Object Safety§

    This trait is not object safe.

    Implementors§

    source§

    impl Map for iroh::blobs::store::fs::Store

    §

    type Entry = BaoFileHandle

    source§

    impl Map for iroh::blobs::store::mem::Store

    §

    type Entry = Entry

    source§

    impl Map for iroh::blobs::store::readonly_mem::Store

    §

    type Entry = Entry

    \ No newline at end of file +

    Object Safety§

    This trait is not object safe.

    Implementors§

    §

    impl Map for iroh::blobs::store::fs::Store

    §

    type Entry = BaoFileHandle

    §

    impl Map for iroh::blobs::store::mem::Store

    §

    type Entry = Entry

    §

    impl Map for iroh::blobs::store::readonly_mem::Store

    §

    type Entry = Entry

    \ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/trait.MapEntry.html b/pr/2616/docs/iroh/blobs/store/trait.MapEntry.html index a6be832a6c..c06d43e576 100644 --- a/pr/2616/docs/iroh/blobs/store/trait.MapEntry.html +++ b/pr/2616/docs/iroh/blobs/store/trait.MapEntry.html @@ -1,4 +1,4 @@ -MapEntry in iroh::blobs::store - Rust

    Trait iroh::blobs::store::MapEntry

    source ·
    pub trait MapEntry: Debug + Clone + Send + Sync + 'static {
    +MapEntry in iroh::blobs::store - Rust

    Trait iroh::blobs::store::MapEntry

    pub trait MapEntry: Debug + Clone + Send + Sync + 'static {
         // Required methods
         fn hash(&self) -> Hash;
         fn size(&self) -> BaoBlobSize;
    @@ -14,13 +14,13 @@
     reader pair. Creating the reader is async and may fail. The futures that
     create the readers must be Send, but the readers themselves don’t have to
     be.

    -

    Required Methods§

    source

    fn hash(&self) -> Hash

    The hash of the entry.

    -
    source

    fn size(&self) -> BaoBlobSize

    The size of the entry.

    -
    source

    fn is_complete(&self) -> bool

    Returns true if the entry is complete.

    +

    Required Methods§

    fn hash(&self) -> Hash

    The hash of the entry.

    +

    fn size(&self) -> BaoBlobSize

    The size of the entry.

    +

    fn is_complete(&self) -> bool

    Returns true if the entry is complete.

    Note that this does not actually verify if the bytes on disk are complete, it only checks if the entry was marked as complete in the store.

    -
    source

    fn outboard(&self) -> impl Future<Output = Result<impl Outboard, Error>> + Send

    A future that resolves to a reader that can be used to read the outboard

    -
    source

    fn data_reader( +

    fn outboard(&self) -> impl Future<Output = Result<impl Outboard, Error>> + Send

    A future that resolves to a reader that can be used to read the outboard

    +

    fn data_reader( &self ) -> impl Future<Output = Result<impl AsyncSliceReader, Error>> + Send

    A future that resolves to a reader that can be used to read the data

    -

    Object Safety§

    This trait is not object safe.

    Implementors§

    source§

    impl MapEntry for iroh::blobs::store::mem::Entry

    source§

    impl MapEntry for iroh::blobs::store::readonly_mem::Entry

    \ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementors§

§

impl MapEntry for iroh::blobs::store::mem::Entry

§

impl MapEntry for iroh::blobs::store::readonly_mem::Entry

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/trait.MapEntryMut.html b/pr/2616/docs/iroh/blobs/store/trait.MapEntryMut.html index e1d5d67b3a..f9cc966ca4 100644 --- a/pr/2616/docs/iroh/blobs/store/trait.MapEntryMut.html +++ b/pr/2616/docs/iroh/blobs/store/trait.MapEntryMut.html @@ -1,10 +1,10 @@ -MapEntryMut in iroh::blobs::store - Rust

Trait iroh::blobs::store::MapEntryMut

source ·
pub trait MapEntryMut: MapEntry {
+MapEntryMut in iroh::blobs::store - Rust

Trait iroh::blobs::store::MapEntryMut

pub trait MapEntryMut: MapEntry {
     // Required method
     fn batch_writer(
         &self
     ) -> impl Future<Output = Result<impl BaoBatchWriter, Error>> + Send;
 }
Expand description

A partial entry

-

Required Methods§

Required Methods§

fn batch_writer( &self ) -> impl Future<Output = Result<impl BaoBatchWriter, Error>> + Send

Get a batch writer

-

Object Safety§

This trait is not object safe.

Implementors§

source§

impl MapEntryMut for iroh::blobs::store::mem::Entry

source§

impl MapEntryMut for iroh::blobs::store::readonly_mem::Entry

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementors§

§

impl MapEntryMut for iroh::blobs::store::mem::Entry

§

impl MapEntryMut for iroh::blobs::store::readonly_mem::Entry

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/trait.MapMut.html b/pr/2616/docs/iroh/blobs/store/trait.MapMut.html index 106bb7d65e..1d18b429f9 100644 --- a/pr/2616/docs/iroh/blobs/store/trait.MapMut.html +++ b/pr/2616/docs/iroh/blobs/store/trait.MapMut.html @@ -1,4 +1,4 @@ -MapMut in iroh::blobs::store - Rust

Trait iroh::blobs::store::MapMut

source ·
pub trait MapMut: Map {
+MapMut in iroh::blobs::store - Rust

Trait iroh::blobs::store::MapMut

pub trait MapMut: Map {
     type EntryMut: MapEntryMut;
 
     // Required methods
@@ -22,30 +22,30 @@
     ) -> impl Future<Output = Result<(), Error>> + Send;
 }
Expand description

A mutable bao map.

This extends the readonly Map trait with methods to create and modify entries.

-

Required Associated Types§

source

type EntryMut: MapEntryMut

An entry that is possibly writable

-

Required Methods§

Required Associated Types§

type EntryMut: MapEntryMut

An entry that is possibly writable

+

Required Methods§

fn get_mut( &self, hash: &Hash ) -> impl Future<Output = Result<Option<Self::EntryMut>, Error>> + Send

Get an existing entry as an EntryMut.

For implementations where EntryMut and Entry are the same type, this is just an alias for get.

-
source

fn get_or_create( +

fn get_or_create( &self, hash: Hash, size: u64 ) -> impl Future<Output = Result<Self::EntryMut, Error>> + Send

Get an existing partial entry, or create a new one.

We need to know the size of the partial entry. This might produce an error e.g. if there is not enough space on disk.

-
source

fn entry_status( +

fn entry_status( &self, hash: &Hash ) -> impl Future<Output = Result<EntryStatus, Error>> + Send

Find out if the data behind a hash is complete, partial, or not present.

Note that this does not actually verify the on-disc data, but only checks in which section of the store the entry is present.

-
source

fn entry_status_sync(&self, hash: &Hash) -> Result<EntryStatus, Error>

Sync version of entry_status, for the doc sync engine until we can get rid of it.

+

fn entry_status_sync(&self, hash: &Hash) -> Result<EntryStatus, Error>

Sync version of entry_status, for the doc sync engine until we can get rid of it.

Don’t count on this to be efficient.

-
source

fn insert_complete( +

fn insert_complete( &self, entry: Self::EntryMut ) -> impl Future<Output = Result<(), Error>> + Send

Upgrade a partial entry to a complete entry.

-

Object Safety§

This trait is not object safe.

Implementors§

source§

impl MapMut for iroh::blobs::store::fs::Store

§

type EntryMut = BaoFileHandle

source§

impl MapMut for iroh::blobs::store::mem::Store

source§

impl MapMut for iroh::blobs::store::readonly_mem::Store

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementors§

§

impl MapMut for iroh::blobs::store::fs::Store

§

type EntryMut = BaoFileHandle

§

impl MapMut for iroh::blobs::store::mem::Store

§

impl MapMut for iroh::blobs::store::readonly_mem::Store

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/trait.ReadableStore.html b/pr/2616/docs/iroh/blobs/store/trait.ReadableStore.html index 17fd0a24d6..a2eeaba375 100644 --- a/pr/2616/docs/iroh/blobs/store/trait.ReadableStore.html +++ b/pr/2616/docs/iroh/blobs/store/trait.ReadableStore.html @@ -1,4 +1,4 @@ -ReadableStore in iroh::blobs::store - Rust

Trait iroh::blobs::store::ReadableStore

source ·
pub trait ReadableStore: Map {
+ReadableStore in iroh::blobs::store - Rust

Trait iroh::blobs::store::ReadableStore

pub trait ReadableStore: Map {
     // Required methods
     fn blobs(
         &self
@@ -23,23 +23,23 @@
         progress: Box<dyn Fn(u64) -> Result<(), Error> + Send + Sync>
     ) -> impl Future<Output = Result<(), Error>> + Send;
 }
Expand description

Extension of Map to add misc methods used by the rpc calls.

-

Required Methods§

Required Methods§

fn blobs( &self ) -> impl Future<Output = Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>> + Send

list all blobs in the database. This includes both raw blobs that have been imported, and hash sequences that have been created internally.

-
source

fn tags( +

fn tags( &self ) -> impl Future<Output = Result<Box<dyn Iterator<Item = Result<(Tag, HashAndFormat), Error>> + Send + Sync>, Error>> + Send

list all tags (collections or other explicitly added things) in the database

-
source

fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

Temp tags

-
source

fn consistency_check( +

fn temp_tags(&self) -> Box<dyn Iterator<Item = HashAndFormat> + Send + Sync>

Temp tags

+

fn consistency_check( &self, repair: bool, tx: BoxedProgressSender<ConsistencyCheckProgress> ) -> impl Future<Output = Result<(), Error>> + Send

Perform a consistency check on the database

-
source

fn partial_blobs( +

fn partial_blobs( &self ) -> impl Future<Output = Result<Box<dyn Iterator<Item = Result<Hash, Error>> + Send + Sync>, Error>> + Send

list partial blobs in the database

-
source

fn export( +

fn export( &self, hash: Hash, target: PathBuf, @@ -50,4 +50,4 @@ been imported, and hash sequences that have been created internally.

target is the path to the target file mode is a hint how the file should be exported. progress is a callback that is called with the total number of bytes that have been written

-

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ReadableStore for iroh::blobs::store::fs::Store

source§

impl ReadableStore for iroh::blobs::store::mem::Store

source§

impl ReadableStore for iroh::blobs::store::readonly_mem::Store

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementors§

§

impl ReadableStore for iroh::blobs::store::fs::Store

§

impl ReadableStore for iroh::blobs::store::mem::Store

§

impl ReadableStore for iroh::blobs::store::readonly_mem::Store

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/trait.Store.html b/pr/2616/docs/iroh/blobs/store/trait.Store.html index f3dc830eb0..ea79e5847a 100644 --- a/pr/2616/docs/iroh/blobs/store/trait.Store.html +++ b/pr/2616/docs/iroh/blobs/store/trait.Store.html @@ -1,4 +1,4 @@ -Store in iroh::blobs::store - Rust

Trait iroh::blobs::store::Store

source ·
pub trait Store: ReadableStore + MapMut + Debug {
+Store in iroh::blobs::store - Rust

Trait iroh::blobs::store::Store

pub trait Store: ReadableStore + MapMut + Debug {
 
Show 13 methods // Required methods fn import_file( &self, @@ -56,7 +56,7 @@ tx: BoxedProgressSender<ValidateProgress> ) -> impl Future<Output = Result<(), Error>> + Send { ... }
}
Expand description

The mutable part of a Bao store.

-

Required Methods§

Required Methods§

fn import_file( &self, data: PathBuf, mode: ImportMode, @@ -71,43 +71,43 @@ consumer of the progress messages is dropped, subsequent attempts to send progre will fail.

Returns the hash of the imported file. The reason to have this method is that some database implementations might be able to import a file without copying it.

-

source

fn import_bytes( +

fn import_bytes( &self, bytes: Bytes, format: BlobFormat ) -> impl Future<Output = Result<TempTag, Error>> + Send

Import data from memory.

It is a special case of import that does not use the file system.

-
source

fn import_stream( +

fn import_stream( &self, data: impl Stream<Item = Result<Bytes, Error>> + Send + Unpin + 'static, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator ) -> impl Future<Output = Result<(TempTag, u64), Error>> + Send

Import data from a stream of bytes.

-
source

fn set_tag( +

fn set_tag( &self, name: Tag, hash: Option<HashAndFormat> ) -> impl Future<Output = Result<(), Error>> + Send

Set a tag

-
source

fn create_tag( +

fn create_tag( &self, hash: HashAndFormat ) -> impl Future<Output = Result<Tag, Error>> + Send

Create a new tag

-
source

fn temp_tag(&self, value: HashAndFormat) -> TempTag

Create a temporary pin for this store

-
source

fn gc_start(&self) -> impl Future<Output = Result<(), Error>> + Send

Notify the store that a new gc phase is about to start.

+

fn temp_tag(&self, value: HashAndFormat) -> TempTag

Create a temporary pin for this store

+

fn gc_start(&self) -> impl Future<Output = Result<(), Error>> + Send

Notify the store that a new gc phase is about to start.

This should not fail unless the store is shut down or otherwise in a bad state. The gc task will shut itself down if this fails.

-
source

fn delete( +

fn delete( &self, hashes: Vec<Hash> ) -> impl Future<Output = Result<(), Error>> + Send

physically delete the given hashes from the store.

-
source

fn shutdown(&self) -> impl Future<Output = ()> + Send

Shutdown the store.

-

Provided Methods§

fn shutdown(&self) -> impl Future<Output = ()> + Send

Shutdown the store.

+

Provided Methods§

fn import_reader( &self, data: impl AsyncRead + Send + Unpin + 'static, format: BlobFormat, progress: impl ProgressSender<Msg = ImportProgress> + IdGenerator ) -> impl Future<Output = Result<(TempTag, u64), Error>> + Send

Import data from an async byte reader.

-
source

fn gc_mark( +

fn gc_mark( &self, live: &mut BTreeSet<Hash> ) -> impl Stream<Item = GcMarkEvent> + Unpin

Traverse all roots recursively and mark them as live.

@@ -117,14 +117,14 @@ to some live data being missed.

The implementation of this method should do the minimum amount of work to determine the live set. Actual deletion of garbage should be done in the gc_sweep phase.

-
source

fn gc_sweep( +

fn gc_sweep( &self, live: &BTreeSet<Hash> ) -> impl Stream<Item = GcSweepEvent> + Unpin

Remove all blobs that are not marked as live.

Poll this stream to completion to perform a full gc sweep. Not polling this stream to completion just means that some garbage will remain in the database.

Sweeping might take long, but it can safely be done in the background.

-
source

fn validate( +

fn validate( &self, repair: bool, tx: BoxedProgressSender<ValidateProgress> @@ -132,4 +132,4 @@ to completion just means that some garbage will remain in the database.

This will check that the file and outboard content is correct for all complete entries, and output valid ranges for all partial entries.

It will not check the internal consistency of the database.

-

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Store for iroh::blobs::store::fs::Store

source§

impl Store for iroh::blobs::store::mem::Store

source§

impl Store for iroh::blobs::store::readonly_mem::Store

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementors§

§

impl Store for iroh::blobs::store::fs::Store

§

impl Store for iroh::blobs::store::mem::Store

§

impl Store for iroh::blobs::store::readonly_mem::Store

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/type.DbIter.html b/pr/2616/docs/iroh/blobs/store/type.DbIter.html index 6ac50984e8..5fd044e48f 100644 --- a/pr/2616/docs/iroh/blobs/store/type.DbIter.html +++ b/pr/2616/docs/iroh/blobs/store/type.DbIter.html @@ -1,2 +1,2 @@ -DbIter in iroh::blobs::store - Rust

Type Alias iroh::blobs::store::DbIter

source ·
pub type DbIter<T> = Box<dyn Iterator<Item = Result<T, Error>> + Send + Sync>;
Expand description

A fallible but owned iterator over the entries in a store.

+DbIter in iroh::blobs::store - Rust

Type Alias iroh::blobs::store::DbIter

pub type DbIter<T> = Box<dyn Iterator<Item = Result<T, Error>> + Send + Sync>;
Expand description

A fallible but owned iterator over the entries in a store.

Aliased Type§

struct DbIter<T>(/* private fields */);
\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/store/type.ExportProgressCb.html b/pr/2616/docs/iroh/blobs/store/type.ExportProgressCb.html index b460becf1f..ea8755f106 100644 --- a/pr/2616/docs/iroh/blobs/store/type.ExportProgressCb.html +++ b/pr/2616/docs/iroh/blobs/store/type.ExportProgressCb.html @@ -1,2 +1,2 @@ -ExportProgressCb in iroh::blobs::store - Rust

Type Alias iroh::blobs::store::ExportProgressCb

source ·
pub type ExportProgressCb = Box<dyn Fn(u64) -> Result<(), Error> + Send + Sync>;
Expand description

Export trogress callback

+ExportProgressCb in iroh::blobs::store - Rust

Type Alias iroh::blobs::store::ExportProgressCb

pub type ExportProgressCb = Box<dyn Fn(u64) -> Result<(), Error> + Send + Sync>;
Expand description

Export trogress callback

Aliased Type§

struct ExportProgressCb(/* private fields */);
\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/struct.Hash.html b/pr/2616/docs/iroh/blobs/struct.Hash.html index a1856eff4c..693dc4bc36 100644 --- a/pr/2616/docs/iroh/blobs/struct.Hash.html +++ b/pr/2616/docs/iroh/blobs/struct.Hash.html @@ -1,37 +1,37 @@ -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.

-
source

pub const fn from_bytes(bytes: [u8; 32]) -> Hash

Create a Hash from its raw bytes representation.

-
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 +Hash in iroh::blobs - Rust

Struct iroh::blobs::Hash

pub struct Hash(/* private fields */);
Expand description

Hash type used throughout.

+

Implementations§

§

impl Hash

pub const EMPTY: Hash = _

The hash for the empty byte range (b"").

+

pub fn new(buf: impl AsRef<[u8]>) -> Hash

Calculate the hash of the provided bytes.

+

pub fn as_bytes(&self) -> &[u8; 32]

Bytes of the hash.

+

pub const fn from_bytes(bytes: [u8; 32]) -> Hash

Create a Hash from its raw bytes representation.

+

pub fn to_hex(&self) -> String

Convert the hash to a hex string.

+

pub fn fmt_short(&self) -> String

Convert to a base32 string limited to the first 10 bytes for a friendly string representation of the 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§

§

impl AsRef<[u8]> for Hash

§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Borrow<[u8]> for Hash

§

fn borrow(&self) -> &[u8] ⓘ

Immutably borrows from an owned value. Read more
§

impl Borrow<[u8; 32]> for Hash

§

fn borrow(&self) -> &[u8; 32]

Immutably borrows from an owned value. Read more
§

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<'de> Deserialize<'de> for Hash

§

fn deserialize<D>( deserializer: D ) -> Result<Hash, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Hash

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<&[u8; 32]> for Hash

source§

fn from(value: &[u8; 32]) -> Hash

Converts to this type from the input type.
source§

impl From<[u8; 32]> for Hash

source§

fn from(value: [u8; 32]) -> Hash

Converts to this type from the input type.
source§

impl From<Hash> for [u8; 32]

source§

fn from(value: Hash) -> [u8; 32]

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
source§

impl From<Hash> for Hash

source§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
source§

impl FromIterator<Hash> for HashSeq

source§

fn from_iter<T>(iter: T) -> HashSeq
where - 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 + D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. 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(value: &[u8; 32]) -> Hash

Converts to this type from the input type.
§

impl From<[u8; 32]> for Hash

§

fn from(value: [u8; 32]) -> Hash

Converts to this type from the input type.
§

impl From<Hash> for [u8; 32]

§

fn from(value: Hash) -> [u8; 32]

Converts to this type from the input type.
§

impl From<Hash> for Hash

§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
§

impl From<Hash> for Hash

§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
§

impl From<Hash> for Hash

§

fn from(value: Hash) -> Hash

Converts to this type from the input type.
§

impl FromIterator<Hash> for HashSeq

§

fn from_iter<T>(iter: T) -> HashSeq
where + T: IntoIterator<Item = Hash>,

Creates a value from an iterator. Read more
§

impl FromStr for Hash

§

type Err = HexOrBase32ParseError

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
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: &Hash) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Key for Hash

§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
§

impl MaxSize for Hash

§

const POSTCARD_MAX_SIZE: usize = 32usize

The maximum possible size that the serialization of this +type can have, in bytes.
§

impl Ord for Hash

§

fn cmp(&self, other: &Hash) -> 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 Hash

source§

fn eq(&self, other: &Hash) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,
Restrict a value to a certain interval. Read more
§

impl PartialEq for Hash

§

fn eq(&self, other: &Hash) -> 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 Hash

source§

fn partial_cmp(&self, other: &Hash) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for Hash

§

fn partial_cmp(&self, other: &Hash) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for Hash

source§

fn serialize<S>( +operator. Read more

§

impl Serialize for Hash

§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where - S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Value for Hash

§

type SelfType<'a> = Hash

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = &'a [u8; 32]

source§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
source§

fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>
where + S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Value for Hash

§

type SelfType<'a> = Hash

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = &'a [u8; 32]

§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
§

fn from_bytes<'a>(data: &'a [u8]) -> <Hash as Value>::SelfType<'a>
where Hash: 'a,

Deserializes data -Implementations may return a view over data, or an owned type
source§

fn as_bytes<'a, 'b>( +Implementations may return a view over data, or an owned type

§

fn as_bytes<'a, 'b>( value: &'a <Hash as Value>::SelfType<'b> ) -> <Hash as Value>::AsBytes<'a>
where 'b: 'a, - Hash: 'a + 'b,

Serialize the value to a slice
source§

fn type_name() -> TypeName

Globally unique identifier for this type
source§

impl Copy for Hash

source§

impl Eq for Hash

source§

impl StructuralPartialEq for Hash

Auto Trait Implementations§

§

impl Freeze for Hash

§

impl RefUnwindSafe for Hash

§

impl Send for Hash

§

impl Sync for Hash

§

impl Unpin for Hash

§

impl UnwindSafe for Hash

Blanket Implementations§

source§

impl<T> Any for T
where + Hash: 'a + 'b,

Serialize the value to a slice
§

fn type_name() -> TypeName

Globally unique identifier for this type
§

impl Copy for Hash

§

impl Eq for Hash

§

impl StructuralPartialEq for Hash

Auto Trait Implementations§

§

impl Freeze for Hash

§

impl RefUnwindSafe for Hash

§

impl Send for Hash

§

impl Sync for Hash

§

impl Unpin for Hash

§

impl UnwindSafe for Hash

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<A, T> AsBits<T> for A
where A: AsRef<[T]>, T: BitStore,

§

fn as_bits<O>(&self) -> &BitSlice<T, O>
where @@ -166,7 +166,7 @@ letters are used (e.g. F9B4CA)

Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T

§

impl<T> RpcError for T
where T: Debug + Display + Send + Sync + Unpin + 'static,

§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,

source§

impl<T> RuleType for T
where diff --git a/pr/2616/docs/iroh/blobs/struct.HashAndFormat.html b/pr/2616/docs/iroh/blobs/struct.HashAndFormat.html index 9f2d2100e8..43c3682fd1 100644 --- a/pr/2616/docs/iroh/blobs/struct.HashAndFormat.html +++ b/pr/2616/docs/iroh/blobs/struct.HashAndFormat.html @@ -1,37 +1,37 @@ -HashAndFormat in iroh::blobs - Rust

Struct iroh::blobs::HashAndFormat

source ·
pub struct HashAndFormat {
+HashAndFormat in iroh::blobs - Rust

Struct iroh::blobs::HashAndFormat

pub struct HashAndFormat {
     pub hash: Hash,
     pub format: BlobFormat,
 }
Expand description

A hash and format pair

Fields§

§hash: Hash

The hash

§format: BlobFormat

The format

-

Implementations§

source§

impl HashAndFormat

source

pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat

Create a new hash and format pair.

-
source

pub fn raw(hash: Hash) -> HashAndFormat

Create a new hash and format pair, using the default (raw) format.

-
source

pub fn hash_seq(hash: Hash) -> HashAndFormat

Create a new hash and format pair, using the collection format.

-

Trait Implementations§

source§

impl Clone for HashAndFormat

source§

fn clone(&self) -> HashAndFormat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for HashAndFormat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for HashAndFormat

Implementations§

§

impl HashAndFormat

pub fn new(hash: Hash, format: BlobFormat) -> HashAndFormat

Create a new hash and format pair.

+

pub fn raw(hash: Hash) -> HashAndFormat

Create a new hash and format pair, using the default (raw) format.

+

pub fn hash_seq(hash: Hash) -> HashAndFormat

Create a new hash and format pair, using the collection format.

+

Trait Implementations§

§

impl Clone for HashAndFormat

§

fn clone(&self) -> HashAndFormat

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for HashAndFormat

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for HashAndFormat

§

fn deserialize<D>( deserializer: D ) -> Result<HashAndFormat, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for HashAndFormat

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<DownloadKind> for HashAndFormat

source§

fn from(value: DownloadKind) -> HashAndFormat

Converts to this type from the input type.
source§

impl From<HashAndFormat> for DownloadKind

source§

fn from(value: HashAndFormat) -> DownloadKind

Converts to this type from the input type.
source§

impl From<HashAndFormat> for HashAndFormat

source§

fn from(value: HashAndFormat) -> HashAndFormat

Converts to this type from the input type.
source§

impl FromStr for HashAndFormat

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<HashAndFormat, <HashAndFormat as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for HashAndFormat

source§

fn hash<__H>(&self, state: &mut __H)
where + D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for HashAndFormat

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<DownloadKind> for HashAndFormat

§

fn from(value: DownloadKind) -> HashAndFormat

Converts to this type from the input type.
§

impl From<HashAndFormat> for DownloadKind

§

fn from(value: HashAndFormat) -> DownloadKind

Converts to this type from the input type.
§

impl From<HashAndFormat> for HashAndFormat

§

fn from(value: HashAndFormat) -> HashAndFormat

Converts to this type from the input type.
§

impl FromStr for HashAndFormat

§

type Err = Error

The associated error which can be returned from parsing.
§

fn from_str(s: &str) -> Result<HashAndFormat, <HashAndFormat as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl Hash for HashAndFormat

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl MaxSize for HashAndFormat

source§

const POSTCARD_MAX_SIZE: usize = 33usize

The maximum possible size that the serialization of this -type can have, in bytes.
source§

impl Ord for HashAndFormat

source§

fn cmp(&self, other: &HashAndFormat) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl MaxSize for HashAndFormat

§

const POSTCARD_MAX_SIZE: usize = 33usize

The maximum possible size that the serialization of this +type can have, in bytes.
§

impl Ord for HashAndFormat

§

fn cmp(&self, other: &HashAndFormat) -> 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 HashAndFormat

source§

fn eq(&self, other: &HashAndFormat) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for HashAndFormat

§

fn eq(&self, other: &HashAndFormat) -> 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 HashAndFormat

source§

fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for HashAndFormat

§

fn partial_cmp(&self, other: &HashAndFormat) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for HashAndFormat

source§

fn serialize<S>( +operator. Read more

§

impl Serialize for HashAndFormat

§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where - S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Value for HashAndFormat

§

type SelfType<'a> = HashAndFormat

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = [u8; 33]

source§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
source§

fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>
where + S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Value for HashAndFormat

§

type SelfType<'a> = HashAndFormat

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = [u8; 33]

§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
§

fn from_bytes<'a>(data: &'a [u8]) -> <HashAndFormat as Value>::SelfType<'a>
where HashAndFormat: 'a,

Deserializes data -Implementations may return a view over data, or an owned type
source§

fn as_bytes<'a, 'b>( +Implementations may return a view over data, or an owned type

§

fn as_bytes<'a, 'b>( value: &'a <HashAndFormat as Value>::SelfType<'b> ) -> <HashAndFormat as Value>::AsBytes<'a>
where 'b: 'a, - HashAndFormat: 'a + 'b,

Serialize the value to a slice
source§

fn type_name() -> TypeName

Globally unique identifier for this type
source§

impl Copy for HashAndFormat

source§

impl Eq for HashAndFormat

source§

impl StructuralPartialEq for HashAndFormat

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + HashAndFormat: 'a + 'b,

Serialize the value to a slice
§

fn type_name() -> TypeName

Globally unique identifier for this type
§

impl Copy for HashAndFormat

§

impl Eq for HashAndFormat

§

impl StructuralPartialEq for HashAndFormat

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 @@ -156,7 +156,7 @@ builds.

Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T

§

impl<T> RpcError for T
where T: Debug + Display + Send + Sync + Unpin + 'static,

§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,

source§

impl<T> RuleType for T
where diff --git a/pr/2616/docs/iroh/blobs/struct.Tag.html b/pr/2616/docs/iroh/blobs/struct.Tag.html index 8d30cbe9d9..e6e916bf90 100644 --- a/pr/2616/docs/iroh/blobs/struct.Tag.html +++ b/pr/2616/docs/iroh/blobs/struct.Tag.html @@ -1,32 +1,32 @@ -Tag in iroh::blobs - Rust

Struct iroh::blobs::Tag

source ·
pub struct Tag(pub Bytes);
Expand description

A tag

-

Tuple Fields§

§0: Bytes

Implementations§

source§

impl Tag

source

pub fn auto(time: SystemTime, exists: impl Fn(&[u8]) -> bool) -> Tag

Create a new tag that does not exist yet.

-

Trait Implementations§

source§

impl Borrow<[u8]> for Tag

source§

fn borrow(&self) -> &[u8] ⓘ

Immutably borrows from an owned value. Read more
source§

impl Clone for Tag

source§

fn clone(&self) -> Tag

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Tag

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Tag

source§

fn deserialize<__D>( +Tag in iroh::blobs - Rust

Struct iroh::blobs::Tag

pub struct Tag(pub Bytes);
Expand description

A tag

+

Tuple Fields§

§0: Bytes

Implementations§

§

impl Tag

pub fn auto(time: SystemTime, exists: impl Fn(&[u8]) -> bool) -> Tag

Create a new tag that does not exist yet.

+

Trait Implementations§

§

impl Borrow<[u8]> for Tag

§

fn borrow(&self) -> &[u8] ⓘ

Immutably borrows from an owned value. Read more
§

impl Clone for Tag

§

fn clone(&self) -> Tag

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Tag

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Tag

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Tag, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Tag

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<&str> for Tag

source§

fn from(value: &str) -> Tag

Converts to this type from the input type.
source§

impl From<Bytes> for Tag

source§

fn from(value: Bytes) -> Tag

Converts to this type from the input type.
source§

impl From<String> for Tag

source§

fn from(value: String) -> Tag

Converts to this type from the input type.
source§

impl Key for Tag

source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
source§

impl Ord for Tag

source§

fn cmp(&self, other: &Tag) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for Tag

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<&str> for Tag

§

fn from(value: &str) -> Tag

Converts to this type from the input type.
§

impl From<Bytes> for Tag

§

fn from(value: Bytes) -> Tag

Converts to this type from the input type.
§

impl From<String> for Tag

§

fn from(value: String) -> Tag

Converts to this type from the input type.
§

impl Key for Tag

§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
§

impl Ord for Tag

§

fn cmp(&self, other: &Tag) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Tag

source§

fn eq(&self, other: &Tag) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for Tag

§

fn eq(&self, other: &Tag) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Tag

source§

fn partial_cmp(&self, other: &Tag) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for Tag

§

fn partial_cmp(&self, other: &Tag) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl RedbKey for Tag

source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
source§

impl RedbValue for Tag

§

type SelfType<'a> = Tag

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = Bytes

source§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
source§

fn from_bytes<'a>(data: &'a [u8]) -> <Tag as RedbValue>::SelfType<'a>
where +operator. Read more

§

impl RedbKey for Tag

§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
§

impl RedbValue for Tag

§

type SelfType<'a> = Tag

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = Bytes

§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
§

fn from_bytes<'a>(data: &'a [u8]) -> <Tag as RedbValue>::SelfType<'a>
where Tag: 'a,

Deserializes data -Implementations may return a view over data, or an owned type
source§

fn as_bytes<'a, 'b>( +Implementations may return a view over data, or an owned type

§

fn as_bytes<'a, 'b>( value: &'a <Tag as RedbValue>::SelfType<'b> ) -> <Tag as RedbValue>::AsBytes<'a>
where 'b: 'a, - Tag: 'a + 'b,

Serialize the value to a slice
source§

fn type_name() -> TypeName

Globally unique identifier for this type
source§

impl Serialize for Tag

source§

fn serialize<__S>( + Tag: 'a + 'b,

Serialize the value to a slice
§

fn type_name() -> TypeName

Globally unique identifier for this type
§

impl Serialize for Tag

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Value for Tag

§

type SelfType<'a> = Tag

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = Bytes

source§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
source§

fn from_bytes<'a>(data: &'a [u8]) -> <Tag as Value>::SelfType<'a>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Value for Tag

§

type SelfType<'a> = Tag

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = Bytes

§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
§

fn from_bytes<'a>(data: &'a [u8]) -> <Tag as Value>::SelfType<'a>
where Tag: 'a,

Deserializes data -Implementations may return a view over data, or an owned type
source§

fn as_bytes<'a, 'b>( +Implementations may return a view over data, or an owned type

§

fn as_bytes<'a, 'b>( value: &'a <Tag as Value>::SelfType<'b> ) -> <Tag as Value>::AsBytes<'a>
where 'b: 'a, - Tag: 'a + 'b,

Serialize the value to a slice
source§

fn type_name() -> TypeName

Globally unique identifier for this type
source§

impl Eq for Tag

source§

impl StructuralPartialEq for Tag

Auto Trait Implementations§

§

impl !Freeze for Tag

§

impl RefUnwindSafe for Tag

§

impl Send for Tag

§

impl Sync for Tag

§

impl Unpin for Tag

§

impl UnwindSafe for Tag

Blanket Implementations§

source§

impl<T> Any for T
where + Tag: 'a + 'b,

Serialize the value to a slice
§

fn type_name() -> TypeName

Globally unique identifier for this type
§

impl Eq for Tag

§

impl StructuralPartialEq for Tag

Auto Trait Implementations§

§

impl !Freeze for Tag

§

impl RefUnwindSafe for Tag

§

impl Send for Tag

§

impl Sync for Tag

§

impl Unpin for Tag

§

impl UnwindSafe for Tag

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/struct.TempTag.html b/pr/2616/docs/iroh/blobs/struct.TempTag.html index cf712addb2..efbd3fc836 100644 --- a/pr/2616/docs/iroh/blobs/struct.TempTag.html +++ b/pr/2616/docs/iroh/blobs/struct.TempTag.html @@ -1,16 +1,16 @@ -TempTag in iroh::blobs - Rust

Struct iroh::blobs::TempTag

source ·
pub struct TempTag { /* private fields */ }
Expand description

A hash and format pair that is protected from garbage collection.

+TempTag in iroh::blobs - Rust

Struct iroh::blobs::TempTag

pub struct TempTag { /* private fields */ }
Expand description

A hash and format pair that is protected from garbage collection.

If format is raw, this will protect just the blob If format is collection, this will protect the collection and all blobs in it

-

Implementations§

source§

impl TempTag

source

pub fn new(inner: HashAndFormat, on_drop: Option<Weak<dyn TagDrop>>) -> TempTag

Create a new temp tag for the given hash and format

+

Implementations§

§

impl TempTag

pub fn new(inner: HashAndFormat, on_drop: Option<Weak<dyn TagDrop>>) -> TempTag

Create a new temp tag for the given hash and format

This should only be used by store implementations.

The caller is responsible for increasing the refcount on creation and to make sure that temp tags that are created between a mark phase and a sweep phase are protected.

-
source

pub fn inner(&self) -> &HashAndFormat

The hash of the pinned item

-
source

pub fn hash(&self) -> &Hash

The hash of the pinned item

-
source

pub fn format(&self) -> BlobFormat

The format of the pinned item

-
source

pub fn leak(self)

Keep the item alive until the end of the process

-

Trait Implementations§

source§

impl Debug for TempTag

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Drop for TempTag

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

pub fn inner(&self) -> &HashAndFormat

The hash of the pinned item

+

pub fn hash(&self) -> &Hash

The hash of the pinned item

+

pub fn format(&self) -> BlobFormat

The format of the pinned item

+

pub fn leak(self)

Keep the item alive until the end of the process

+

Trait Implementations§

§

impl Debug for TempTag

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Drop for TempTag

§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/util/enum.MemOrFile.html b/pr/2616/docs/iroh/blobs/util/enum.MemOrFile.html index a52dd441d4..60e66a428a 100644 --- a/pr/2616/docs/iroh/blobs/util/enum.MemOrFile.html +++ b/pr/2616/docs/iroh/blobs/util/enum.MemOrFile.html @@ -1,4 +1,4 @@ -MemOrFile in iroh::blobs::util - Rust

Enum iroh::blobs::util::MemOrFile

source ·
pub enum MemOrFile<M, F> {
+MemOrFile in iroh::blobs::util - Rust

Enum iroh::blobs::util::MemOrFile

pub enum MemOrFile<M, F> {
     Mem(M),
     File(F),
 }
Expand description

This is a general purpose Either, just like Result, except that the two cases @@ -6,24 +6,24 @@ are Mem for something that is in memory, and File for something that is somewher external and only available via io.

Variants§

§

Mem(M)

We got it all in memory

§

File(F)

A file

-

Implementations§

source§

impl<M, F> MemOrFile<M, (F, u64)>
where +

Implementations§

§

impl<M, F> MemOrFile<M, (F, u64)>
where M: AsRef<[u8]>,

Helper methods for a common way to use MemOrFile, where the memory part is something like a slice, and the file part is a tuple consisiting of path or file and size.

-
source

pub fn size(&self) -> u64

Get the size of the MemOrFile

-
source§

impl<M, F> MemOrFile<M, F>

source

pub fn as_ref(&self) -> MemOrFile<&M, &F>

Turn a reference to a MemOrFile into a MemOrFile of references

-
source

pub fn is_mem(&self) -> bool

True if this is a Mem

-
source

pub fn mem(&self) -> Option<&M>

Get the mem part

-
source

pub fn map_file<F2>(self, f: impl FnOnce(F) -> F2) -> MemOrFile<M, F2>

Map the file part of this MemOrFile

-
source

pub fn try_map_file<F2, E>( +

pub fn size(&self) -> u64

Get the size of the MemOrFile

+
§

impl<M, F> MemOrFile<M, F>

pub fn as_ref(&self) -> MemOrFile<&M, &F>

Turn a reference to a MemOrFile into a MemOrFile of references

+

pub fn is_mem(&self) -> bool

True if this is a Mem

+

pub fn mem(&self) -> Option<&M>

Get the mem part

+

pub fn map_file<F2>(self, f: impl FnOnce(F) -> F2) -> MemOrFile<M, F2>

Map the file part of this MemOrFile

+

pub fn try_map_file<F2, E>( self, f: impl FnOnce(F) -> Result<F2, E> ) -> Result<MemOrFile<M, F2>, E>

Try to map the file part of this MemOrFile

-
source

pub fn map_mem<M2>(self, f: impl FnOnce(M) -> M2) -> MemOrFile<M2, F>

Map the memory part of this MemOrFile

-

Trait Implementations§

source§

impl<M, F> Debug for MemOrFile<M, F>
where +

pub fn map_mem<M2>(self, f: impl FnOnce(M) -> M2) -> MemOrFile<M2, F>

Map the memory part of this MemOrFile

+

Trait Implementations§

§

impl<M, F> Debug for MemOrFile<M, F>
where M: Debug, - F: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<M, F> Default for MemOrFile<M, F>
where - M: Default,

source§

fn default() -> MemOrFile<M, F>

Returns the “default value” for a type. Read more
source§

impl ReadAt for MemOrFile<Bytes, File>

source§

fn read_at(&self, offset: u64, buf: &mut [u8]) -> Result<usize, Error>

Reads bytes from an offset in this source into a buffer, returning how -many bytes were read. Read more
source§

fn read_exact_at(&self, pos: u64, buf: &mut [u8]) -> Result<(), Error>

Reads the exact number of bytes required to fill buf from an offset. Read more
source§

impl Size for MemOrFile<Bytes, File>

source§

fn size(&self) -> Result<Option<u64>, Error>

Get the size of this object, in bytes. Read more

Auto Trait Implementations§

§

impl<M, F> Freeze for MemOrFile<M, F>
where + F: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<M, F> Default for MemOrFile<M, F>
where + M: Default,

§

fn default() -> MemOrFile<M, F>

Returns the “default value” for a type. Read more
§

impl ReadAt for MemOrFile<Bytes, File>

§

fn read_at(&self, offset: u64, buf: &mut [u8]) -> Result<usize, Error>

Reads bytes from an offset in this source into a buffer, returning how +many bytes were read. Read more
source§

fn read_exact_at(&self, pos: u64, buf: &mut [u8]) -> Result<(), Error>

Reads the exact number of bytes required to fill buf from an offset. Read more
§

impl Size for MemOrFile<Bytes, File>

§

fn size(&self) -> Result<Option<u64>, Error>

Get the size of this object, in bytes. Read more

Auto Trait Implementations§

§

impl<M, F> Freeze for MemOrFile<M, F>
where M: Freeze, F: Freeze,

§

impl<M, F> RefUnwindSafe for MemOrFile<M, F>
where M: RefUnwindSafe, diff --git a/pr/2616/docs/iroh/blobs/util/enum.SetTagOption.html b/pr/2616/docs/iroh/blobs/util/enum.SetTagOption.html index 0ca8885597..b807d38b81 100644 --- a/pr/2616/docs/iroh/blobs/util/enum.SetTagOption.html +++ b/pr/2616/docs/iroh/blobs/util/enum.SetTagOption.html @@ -1,24 +1,24 @@ -SetTagOption in iroh::blobs::util - Rust

Enum iroh::blobs::util::SetTagOption

source ·
pub enum SetTagOption {
+SetTagOption in iroh::blobs::util - Rust

Enum iroh::blobs::util::SetTagOption

pub enum SetTagOption {
     Auto,
     Named(Tag),
 }
Expand description

Option for commands that allow setting a tag

Variants§

§

Auto

A tag will be automatically generated

§

Named(Tag)

The tag is explicitly named

-

Trait Implementations§

source§

impl Clone for SetTagOption

source§

fn clone(&self) -> SetTagOption

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SetTagOption

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SetTagOption

Trait Implementations§

§

impl Clone for SetTagOption

§

fn clone(&self) -> SetTagOption

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for SetTagOption

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for SetTagOption

§

fn deserialize<__D>( __deserializer: __D ) -> Result<SetTagOption, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Ord for SetTagOption

source§

fn cmp(&self, other: &SetTagOption) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Ord for SetTagOption

§

fn cmp(&self, other: &SetTagOption) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for SetTagOption

source§

fn eq(&self, other: &SetTagOption) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for SetTagOption

§

fn eq(&self, other: &SetTagOption) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for SetTagOption

source§

fn partial_cmp(&self, other: &SetTagOption) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for SetTagOption

§

fn partial_cmp(&self, other: &SetTagOption) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for SetTagOption

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for SetTagOption

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for SetTagOption

source§

impl StructuralPartialEq for SetTagOption

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for SetTagOption

§

impl StructuralPartialEq for SetTagOption

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/util/fn.total_bytes.html b/pr/2616/docs/iroh/blobs/util/fn.total_bytes.html index c999317b77..ccb70e1c17 100644 --- a/pr/2616/docs/iroh/blobs/util/fn.total_bytes.html +++ b/pr/2616/docs/iroh/blobs/util/fn.total_bytes.html @@ -1,3 +1,3 @@ -total_bytes in iroh::blobs::util - Rust

Function iroh::blobs::util::total_bytes

source ·
pub fn total_bytes(ranges: RangeSet<[ChunkNum; 2]>, size: u64) -> u64
Expand description

Get the number of bytes given a set of chunk ranges and the total size.

+total_bytes in iroh::blobs::util - Rust

Function iroh::blobs::util::total_bytes

pub fn total_bytes(ranges: RangeSet<[ChunkNum; 2]>, size: u64) -> u64
Expand description

Get the number of bytes given a set of chunk ranges and the total size.

If some ranges are out of bounds, they will be clamped to the size.

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/util/index.html b/pr/2616/docs/iroh/blobs/util/index.html index 69d4744de0..fd88c747d7 100644 --- a/pr/2616/docs/iroh/blobs/util/index.html +++ b/pr/2616/docs/iroh/blobs/util/index.html @@ -1,4 +1,4 @@ -iroh::blobs::util - Rust

Module iroh::blobs::util

source ·
Expand description

Utility functions and types.

+iroh::blobs::util - Rust

Module iroh::blobs::util

Expand description

Utility functions and types.

Modules§

  • Utilities for working with tokio io
  • A local task pool with proper shutdown
  • Utilities for reporting progress.

Structs§

  • A file that is sparse in memory
  • A tag
  • A hash and format pair that is protected from garbage collection.

Enums§

  • This is a general purpose Either, just like Result, except that the two cases are Mem for something that is in memory, and File for something that is somewhere external and only available via io.
  • Option for commands that allow setting a tag

Traits§

§

impl<W> Debug for TrackingWriter<W>
where + W: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<W> Freeze for TrackingWriter<W>
where W: Freeze,

§

impl<W> RefUnwindSafe for TrackingWriter<W>
where W: RefUnwindSafe,

§

impl<W> Send for TrackingWriter<W>
where W: Send,

§

impl<W> Sync for TrackingWriter<W>
where diff --git a/pr/2616/docs/iroh/blobs/util/local_pool/enum.PanicMode.html b/pr/2616/docs/iroh/blobs/util/local_pool/enum.PanicMode.html index 749a2a889c..be094033c8 100644 --- a/pr/2616/docs/iroh/blobs/util/local_pool/enum.PanicMode.html +++ b/pr/2616/docs/iroh/blobs/util/local_pool/enum.PanicMode.html @@ -1,4 +1,4 @@ -PanicMode in iroh::blobs::util::local_pool - Rust

Enum iroh::blobs::util::local_pool::PanicMode

source ·
pub enum PanicMode {
+PanicMode in iroh::blobs::util::local_pool - Rust

Enum iroh::blobs::util::local_pool::PanicMode

pub enum PanicMode {
     LogAndContinue,
     Shutdown,
 }
Expand description

What to do when a panic occurs in a pool thread

@@ -6,9 +6,9 @@

The panic will be re-thrown when the pool is dropped.

§

Shutdown

Log the panic and immediately shut down the pool.

The panic will be re-thrown when the pool is dropped.

-

Trait Implementations§

source§

impl Clone for PanicMode

source§

fn clone(&self) -> PanicMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PanicMode

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq for PanicMode

source§

fn eq(&self, other: &PanicMode) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for PanicMode

§

fn clone(&self) -> PanicMode

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for PanicMode

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl PartialEq for PanicMode

§

fn eq(&self, other: &PanicMode) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for PanicMode

source§

impl Eq for PanicMode

source§

impl StructuralPartialEq for PanicMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +sufficient, and should not be overridden without very good reason.

§

impl Copy for PanicMode

§

impl Eq for PanicMode

§

impl StructuralPartialEq for PanicMode

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/util/local_pool/enum.SpawnError.html b/pr/2616/docs/iroh/blobs/util/local_pool/enum.SpawnError.html index a29dbe4f79..0a6739b4fd 100644 --- a/pr/2616/docs/iroh/blobs/util/local_pool/enum.SpawnError.html +++ b/pr/2616/docs/iroh/blobs/util/local_pool/enum.SpawnError.html @@ -1,8 +1,8 @@ -SpawnError in iroh::blobs::util::local_pool - Rust

Enum iroh::blobs::util::local_pool::SpawnError

source ·
pub enum SpawnError {
+SpawnError in iroh::blobs::util::local_pool - Rust

Enum iroh::blobs::util::local_pool::SpawnError

pub enum SpawnError {
     Cancelled,
 }
Expand description

Errors for spawn failures

Variants§

§

Cancelled

Task was dropped, either due to a panic or because the pool was shut down.

-

Trait Implementations§

source§

impl Debug for SpawnError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for SpawnError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for SpawnError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for SpawnError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for SpawnError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for SpawnError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/util/local_pool/index.html b/pr/2616/docs/iroh/blobs/util/local_pool/index.html index 7026793052..e8b0828214 100644 --- a/pr/2616/docs/iroh/blobs/util/local_pool/index.html +++ b/pr/2616/docs/iroh/blobs/util/local_pool/index.html @@ -1,2 +1,2 @@ -iroh::blobs::util::local_pool - Rust

Module iroh::blobs::util::local_pool

source ·
Expand description

A local task pool with proper shutdown

+iroh::blobs::util::local_pool - Rust

Module iroh::blobs::util::local_pool

Expand description

A local task pool with proper shutdown

Structs§

Enums§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/util/local_pool/struct.Config.html b/pr/2616/docs/iroh/blobs/util/local_pool/struct.Config.html index 6df5ba1b61..2b09967678 100644 --- a/pr/2616/docs/iroh/blobs/util/local_pool/struct.Config.html +++ b/pr/2616/docs/iroh/blobs/util/local_pool/struct.Config.html @@ -1,4 +1,4 @@ -Config in iroh::blobs::util::local_pool - Rust

Struct iroh::blobs::util::local_pool::Config

source ·
pub struct Config {
+Config in iroh::blobs::util::local_pool - Rust

Struct iroh::blobs::util::local_pool::Config

pub struct Config {
     pub threads: usize,
     pub thread_name_prefix: &'static str,
     pub panic_mode: PanicMode,
@@ -6,7 +6,7 @@
 

Fields§

§threads: usize

Number of threads in the pool

§thread_name_prefix: &'static str

Prefix for thread names

§panic_mode: PanicMode

Ignore panics in pool threads

-

Trait Implementations§

source§

impl Clone for Config

source§

fn clone(&self) -> Config

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Config

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Config

source§

fn default() -> Config

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for Config

§

fn clone(&self) -> Config

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Config

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Config

§

fn default() -> Config

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/util/local_pool/struct.LocalPool.html b/pr/2616/docs/iroh/blobs/util/local_pool/struct.LocalPool.html index 4c61122702..899d2a623d 100644 --- a/pr/2616/docs/iroh/blobs/util/local_pool/struct.LocalPool.html +++ b/pr/2616/docs/iroh/blobs/util/local_pool/struct.LocalPool.html @@ -1,4 +1,4 @@ -LocalPool in iroh::blobs::util::local_pool - Rust

Struct iroh::blobs::util::local_pool::LocalPool

source ·
pub struct LocalPool { /* private fields */ }
Expand description

A local task pool with proper shutdown

+LocalPool in iroh::blobs::util::local_pool - Rust

Struct iroh::blobs::util::local_pool::LocalPool

pub struct LocalPool { /* private fields */ }
Expand description

A local task pool with proper shutdown

Unlike LocalPoolHandle, this pool will join all its threads when dropped, ensuring that all Drop @@ -11,58 +11,58 @@ able to run to completion before drop exits.

and then wait for all threads to finish executing their loops before returning. This means that all currently executing tasks will be allowed to run to completion.

-

Implementations§

source§

impl LocalPool

source

pub fn single() -> LocalPool

Create a new local pool with a single std thread.

-
source

pub fn new(config: Config) -> LocalPool

Create a new local pool with the given config.

+

Implementations§

§

impl LocalPool

pub fn single() -> LocalPool

Create a new local pool with a single std thread.

+

pub fn new(config: Config) -> LocalPool

Create a new local pool with the given config.

This will use the current tokio runtime handle, so it must be called from within a tokio runtime.

-
source

pub fn handle(&self) -> &LocalPoolHandle

Get a cheaply cloneable handle to the pool

+

pub fn handle(&self) -> &LocalPoolHandle

Get a cheaply cloneable handle to the pool

This is not strictly necessary since we implement deref for LocalPoolHandle, but makes getting a handle more explicit.

-
source

pub async fn cancelled(&self)

A future that resolves when the pool is cancelled

-
source

pub async fn shutdown(self)

Immediately stop polling all tasks and wait for all threads to finish.

+

pub async fn cancelled(&self)

A future that resolves when the pool is cancelled

+

pub async fn shutdown(self)

Immediately stop polling all tasks and wait for all threads to finish.

This is like drop, but waits for thread completion asynchronously.

If there was a panic on any of the threads, it will be re-thrown here.

-
source

pub async fn finish(self)

Gently shut down the pool

+

pub async fn finish(self)

Gently shut down the pool

Notifies all the pool threads to shut down and waits for them to finish.

If you just want to drop the pool without giving the threads a chance to process their remaining tasks, just use Self::shutdown.

If you want to wait for only a limited time for the tasks to finish, you can race this function with a timeout.

-

Methods from Deref<Target = LocalPoolHandle>§

source

pub fn waiting_tasks(&self) -> usize

Get the number of tasks in the queue

+

Methods from Deref<Target = LocalPoolHandle>§

pub fn waiting_tasks(&self) -> usize

Get the number of tasks in the queue

This is not the number of tasks being executed, but the number of tasks waiting to be scheduled for execution. If this number is high, it indicates that the pool is very busy.

You might want to use this to throttle or reject requests.

-
source

pub fn try_spawn<T, F, Fut>(&self, gen: F) -> Result<Run<T>, SpawnError>
where +

pub fn try_spawn<T, F, Fut>(&self, gen: F) -> Result<Run<T>, SpawnError>
where F: FnOnce() -> Fut + Send + 'static, Fut: Future<Output = T> + 'static, T: Send + 'static,

Spawn a task in the pool and return a future that resolves when the task is done.

If you don’t care about the result, prefer LocalPoolHandle::spawn_detached since it is more efficient.

-
source

pub fn try_spawn_detached<F, Fut>(&self, gen: F) -> Result<(), SpawnError>
where +

pub fn try_spawn_detached<F, Fut>(&self, gen: F) -> Result<(), SpawnError>
where F: FnOnce() -> Fut + Send + 'static, Fut: Future<Output = ()> + 'static,

Spawn a task in the pool.

The task will run to completion unless the pool is shut down or the task panics. In case of panic, the pool will either log the panic and continue or immediately shut down, depending on the PanicMode.

-
source

pub fn spawn<T, F, Fut>(&self, gen: F) -> Run<T> ⓘ
where +

pub fn spawn<T, F, Fut>(&self, gen: F) -> Run<T> ⓘ
where F: FnOnce() -> Fut + Send + 'static, Fut: Future<Output = T> + 'static, T: Send + 'static,

Spawn a task in the pool and await the result.

Like LocalPoolHandle::try_spawn, but panics if the pool is shut down.

-
source

pub fn spawn_detached<F, Fut>(&self, gen: F)
where +

pub fn spawn_detached<F, Fut>(&self, gen: F)
where F: FnOnce() -> Fut + Send + 'static, Fut: Future<Output = ()> + 'static,

Spawn a task in the pool.

Like LocalPoolHandle::try_spawn_detached, but panics if the pool is shut down.

-
source

pub fn try_spawn_detached_boxed( +

pub fn try_spawn_detached_boxed( &self, gen: Box<dyn FnOnce() -> Pin<Box<dyn Future<Output = ()>>> + Send> ) -> Result<(), SpawnError>

Spawn a task in the pool.

This is like LocalPoolHandle::try_spawn_detached, but assuming that the generator function is already boxed. This is the lowest overhead way to spawn a task in the pool.

-

Trait Implementations§

source§

impl Debug for LocalPool

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for LocalPool

source§

fn default() -> LocalPool

Returns the “default value” for a type. Read more
source§

impl Deref for LocalPool

§

type Target = LocalPoolHandle

The resulting type after dereferencing.
source§

fn deref(&self) -> &<LocalPool as Deref>::Target

Dereferences the value.
source§

impl Drop for LocalPool

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for LocalPool

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for LocalPool

§

fn default() -> LocalPool

Returns the “default value” for a type. Read more
§

impl Deref for LocalPool

§

type Target = LocalPoolHandle

The resulting type after dereferencing.
§

fn deref(&self) -> &<LocalPool as Deref>::Target

Dereferences the value.
§

impl Drop for LocalPool

§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/util/local_pool/struct.LocalPoolHandle.html b/pr/2616/docs/iroh/blobs/util/local_pool/struct.LocalPoolHandle.html index b28f54646b..d6d0e8cfa3 100644 --- a/pr/2616/docs/iroh/blobs/util/local_pool/struct.LocalPoolHandle.html +++ b/pr/2616/docs/iroh/blobs/util/local_pool/struct.LocalPoolHandle.html @@ -1,39 +1,39 @@ -LocalPoolHandle in iroh::blobs::util::local_pool - Rust

Struct iroh::blobs::util::local_pool::LocalPoolHandle

source ·
pub struct LocalPoolHandle { /* private fields */ }
Expand description

A handle to a LocalPool

-

Implementations§

source§

impl LocalPoolHandle

source

pub fn waiting_tasks(&self) -> usize

Get the number of tasks in the queue

+LocalPoolHandle in iroh::blobs::util::local_pool - Rust

Struct iroh::blobs::util::local_pool::LocalPoolHandle

pub struct LocalPoolHandle { /* private fields */ }
Expand description

A handle to a LocalPool

+

Implementations§

§

impl LocalPoolHandle

pub fn waiting_tasks(&self) -> usize

Get the number of tasks in the queue

This is not the number of tasks being executed, but the number of tasks waiting to be scheduled for execution. If this number is high, it indicates that the pool is very busy.

You might want to use this to throttle or reject requests.

-
source

pub fn try_spawn<T, F, Fut>(&self, gen: F) -> Result<Run<T>, SpawnError>
where +

pub fn try_spawn<T, F, Fut>(&self, gen: F) -> Result<Run<T>, SpawnError>
where F: FnOnce() -> Fut + Send + 'static, Fut: Future<Output = T> + 'static, T: Send + 'static,

Spawn a task in the pool and return a future that resolves when the task is done.

If you don’t care about the result, prefer LocalPoolHandle::spawn_detached since it is more efficient.

-
source

pub fn try_spawn_detached<F, Fut>(&self, gen: F) -> Result<(), SpawnError>
where +

pub fn try_spawn_detached<F, Fut>(&self, gen: F) -> Result<(), SpawnError>
where F: FnOnce() -> Fut + Send + 'static, Fut: Future<Output = ()> + 'static,

Spawn a task in the pool.

The task will run to completion unless the pool is shut down or the task panics. In case of panic, the pool will either log the panic and continue or immediately shut down, depending on the PanicMode.

-
source

pub fn spawn<T, F, Fut>(&self, gen: F) -> Run<T> ⓘ
where +

pub fn spawn<T, F, Fut>(&self, gen: F) -> Run<T> ⓘ
where F: FnOnce() -> Fut + Send + 'static, Fut: Future<Output = T> + 'static, T: Send + 'static,

Spawn a task in the pool and await the result.

Like LocalPoolHandle::try_spawn, but panics if the pool is shut down.

-
source

pub fn spawn_detached<F, Fut>(&self, gen: F)
where +

pub fn spawn_detached<F, Fut>(&self, gen: F)
where F: FnOnce() -> Fut + Send + 'static, Fut: Future<Output = ()> + 'static,

Spawn a task in the pool.

Like LocalPoolHandle::try_spawn_detached, but panics if the pool is shut down.

-
source

pub fn try_spawn_detached_boxed( +

pub fn try_spawn_detached_boxed( &self, gen: Box<dyn FnOnce() -> Pin<Box<dyn Future<Output = ()>>> + Send> ) -> Result<(), SpawnError>

Spawn a task in the pool.

This is like LocalPoolHandle::try_spawn_detached, but assuming that the generator function is already boxed. This is the lowest overhead way to spawn a task in the pool.

-

Trait Implementations§

source§

impl Clone for LocalPoolHandle

source§

fn clone(&self) -> LocalPoolHandle

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LocalPoolHandle

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for LocalPoolHandle

§

fn clone(&self) -> LocalPoolHandle

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for LocalPoolHandle

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/util/local_pool/struct.Run.html b/pr/2616/docs/iroh/blobs/util/local_pool/struct.Run.html index 8d057337e7..02dd03c410 100644 --- a/pr/2616/docs/iroh/blobs/util/local_pool/struct.Run.html +++ b/pr/2616/docs/iroh/blobs/util/local_pool/struct.Run.html @@ -1,11 +1,11 @@ -Run in iroh::blobs::util::local_pool - Rust

Struct iroh::blobs::util::local_pool::Run

source ·
pub struct Run<T>(/* private fields */);
Expand description

Future returned by LocalPoolHandle::spawn and LocalPoolHandle::try_spawn.

+Run in iroh::blobs::util::local_pool - Rust

Struct iroh::blobs::util::local_pool::Run

pub struct Run<T>(/* private fields */);
Expand description

Future returned by LocalPoolHandle::spawn and LocalPoolHandle::try_spawn.

Dropping this future will immediately cancel the task. The task can fail if the pool is shut down or if the task panics. In both cases the future will resolve to SpawnError::Cancelled.

-

Implementations§

source§

impl<T> Run<T>

source

pub fn abort(&mut self)

Abort the task

+

Implementations§

§

impl<T> Run<T>

pub fn abort(&mut self)

Abort the task

Dropping the future will also abort the task.

-

Trait Implementations§

source§

impl<T> Debug for Run<T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Future for Run<T>

§

type Output = Result<T, SpawnError>

The type of value produced on completion.
source§

fn poll( +

Trait Implementations§

§

impl<T> Debug for Run<T>
where + T: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> Future for Run<T>

§

type Output = Result<T, SpawnError>

The type of value produced on completion.
§

fn poll( self: Pin<&mut Run<T>>, cx: &mut Context<'_> ) -> Poll<<Run<T> as Future>::Output>

Attempt to resolve the future to a final value, registering diff --git a/pr/2616/docs/iroh/blobs/util/progress/enum.ProgressSendError.html b/pr/2616/docs/iroh/blobs/util/progress/enum.ProgressSendError.html index 290852faf5..7cfeb943d1 100644 --- a/pr/2616/docs/iroh/blobs/util/progress/enum.ProgressSendError.html +++ b/pr/2616/docs/iroh/blobs/util/progress/enum.ProgressSendError.html @@ -1,9 +1,9 @@ -ProgressSendError in iroh::blobs::util::progress - Rust

Enum iroh::blobs::util::progress::ProgressSendError

source ·
pub enum ProgressSendError {
+ProgressSendError in iroh::blobs::util::progress - Rust

Enum iroh::blobs::util::progress::ProgressSendError

pub enum ProgressSendError {
     ReceiverDropped,
 }
Expand description

An error that can occur when sending progress messages.

Really the only error that can occur is if the receiver is dropped.

Variants§

§

ReceiverDropped

The receiver was dropped.

-

Trait Implementations§

source§

impl Clone for ProgressSendError

source§

fn clone(&self) -> ProgressSendError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ProgressSendError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for ProgressSendError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for ProgressSendError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<ProgressSendError> for GetError

source§

fn from(value: ProgressSendError) -> GetError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for ProgressSendError

§

fn clone(&self) -> ProgressSendError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ProgressSendError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ProgressSendError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ProgressSendError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<ProgressSendError> for GetError

§

fn from(value: ProgressSendError) -> GetError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/util/progress/index.html b/pr/2616/docs/iroh/blobs/util/progress/index.html index f5dc34ad4c..f7ae337210 100644 --- a/pr/2616/docs/iroh/blobs/util/progress/index.html +++ b/pr/2616/docs/iroh/blobs/util/progress/index.html @@ -1,4 +1,4 @@ -iroh::blobs::util::progress - Rust

Module iroh::blobs::util::progress

source ·
Expand description

Utilities for reporting progress.

+iroh::blobs::util::progress - Rust

Module iroh::blobs::util::progress

Expand description

Utilities for reporting progress.

The main entry point is the ProgressSender trait.

Structs§

Enums§

Traits§

  • An id generator, to be combined with a progress sender.
  • A general purpose progress sender. This should be usable for reporting progress from both blocking and non-blocking contexts.

Type Aliases§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/util/progress/struct.AsyncChannelProgressSender.html b/pr/2616/docs/iroh/blobs/util/progress/struct.AsyncChannelProgressSender.html index c5d2ea58bb..b99ebcfdab 100644 --- a/pr/2616/docs/iroh/blobs/util/progress/struct.AsyncChannelProgressSender.html +++ b/pr/2616/docs/iroh/blobs/util/progress/struct.AsyncChannelProgressSender.html @@ -1,21 +1,21 @@ -AsyncChannelProgressSender in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::AsyncChannelProgressSender

source ·
pub struct AsyncChannelProgressSender<T> { /* private fields */ }
Expand description

A progress sender that uses an async channel.

-

Implementations§

source§

impl<T> AsyncChannelProgressSender<T>

source

pub fn new(sender: Sender<T>) -> AsyncChannelProgressSender<T>

Create a new progress sender from an async channel sender.

-
source

pub fn same_channel(&self, other: &AsyncChannelProgressSender<T>) -> bool

Returns true if other sends on the same async_channel channel as self.

-

Trait Implementations§

source§

impl<T> Clone for AsyncChannelProgressSender<T>

source§

fn clone(&self) -> AsyncChannelProgressSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for AsyncChannelProgressSender<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> IdGenerator for AsyncChannelProgressSender<T>

source§

fn new_id(&self) -> u64

Get a new unique id
source§

impl<T> ProgressSender for AsyncChannelProgressSender<T>
where - T: Send + Sync + 'static,

§

type Msg = T

The message being sent.
source§

async fn send( +AsyncChannelProgressSender in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::AsyncChannelProgressSender

pub struct AsyncChannelProgressSender<T> { /* private fields */ }
Expand description

A progress sender that uses an async channel.

+

Implementations§

§

impl<T> AsyncChannelProgressSender<T>

pub fn new(sender: Sender<T>) -> AsyncChannelProgressSender<T>

Create a new progress sender from an async channel sender.

+

pub fn same_channel(&self, other: &AsyncChannelProgressSender<T>) -> bool

Returns true if other sends on the same async_channel channel as self.

+

Trait Implementations§

§

impl<T> Clone for AsyncChannelProgressSender<T>

§

fn clone(&self) -> AsyncChannelProgressSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<T> Debug for AsyncChannelProgressSender<T>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> IdGenerator for AsyncChannelProgressSender<T>

§

fn new_id(&self) -> u64

Get a new unique id
§

impl<T> ProgressSender for AsyncChannelProgressSender<T>
where + T: Send + Sync + 'static,

§

type Msg = T

The message being sent.
§

async fn send( &self, msg: <AsyncChannelProgressSender<T> as ProgressSender>::Msg -) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
source§

fn try_send( +) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
§

fn try_send( &self, msg: <AsyncChannelProgressSender<T> as ProgressSender>::Msg -) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
source§

fn blocking_send( +) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
§

fn blocking_send( &self, msg: <AsyncChannelProgressSender<T> as ProgressSender>::Msg -) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
source§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>

Send a message and block if the receiver is full. Read more
§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
source§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where + F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.
source§

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where + F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.
§

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where Self: IdGenerator,

Create a boxed progress sender to get rid of the concrete type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/pr/2616/docs/iroh/blobs/util/progress/struct.BoxedProgressSender.html b/pr/2616/docs/iroh/blobs/util/progress/struct.BoxedProgressSender.html index b039a165fb..93c83fbc6e 100644 --- a/pr/2616/docs/iroh/blobs/util/progress/struct.BoxedProgressSender.html +++ b/pr/2616/docs/iroh/blobs/util/progress/struct.BoxedProgressSender.html @@ -1,11 +1,11 @@ -BoxedProgressSender in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::BoxedProgressSender

source ·
pub struct BoxedProgressSender<T>(/* private fields */);
Expand description

A boxed progress sender

-

Trait Implementations§

source§

impl<T> Clone for BoxedProgressSender<T>

source§

fn clone(&self) -> BoxedProgressSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for BoxedProgressSender<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> IdGenerator for BoxedProgressSender<T>
where - T: Send + Sync + 'static,

source§

fn new_id(&self) -> u64

Get a new unique id
source§

impl<T> ProgressSender for BoxedProgressSender<T>
where - T: Send + Sync + 'static,

§

type Msg = T

The message being sent.
source§

async fn send(&self, msg: T) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
source§

fn try_send(&self, msg: T) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
source§

fn blocking_send(&self, msg: T) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
source§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where +BoxedProgressSender in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::BoxedProgressSender

pub struct BoxedProgressSender<T>(/* private fields */);
Expand description

A boxed progress sender

+

Trait Implementations§

§

impl<T> Clone for BoxedProgressSender<T>

§

fn clone(&self) -> BoxedProgressSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<T> Debug for BoxedProgressSender<T>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> IdGenerator for BoxedProgressSender<T>
where + T: Send + Sync + 'static,

§

fn new_id(&self) -> u64

Get a new unique id
§

impl<T> ProgressSender for BoxedProgressSender<T>
where + T: Send + Sync + 'static,

§

type Msg = T

The message being sent.
§

async fn send(&self, msg: T) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
§

fn try_send(&self, msg: T) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
§

fn blocking_send(&self, msg: T) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
source§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where + F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.
source§

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where + F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.
§

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where Self: IdGenerator,

Create a boxed progress sender to get rid of the concrete type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/util/progress/struct.FallibleProgressSliceWriter.html b/pr/2616/docs/iroh/blobs/util/progress/struct.FallibleProgressSliceWriter.html index 7247f050b1..18b9a36652 100644 --- a/pr/2616/docs/iroh/blobs/util/progress/struct.FallibleProgressSliceWriter.html +++ b/pr/2616/docs/iroh/blobs/util/progress/struct.FallibleProgressSliceWriter.html @@ -1,23 +1,23 @@ -FallibleProgressSliceWriter in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::FallibleProgressSliceWriter

source ·
pub struct FallibleProgressSliceWriter<W, F>(/* private fields */);
Expand description

A slice writer that adds a fallible progress callback.

+FallibleProgressSliceWriter in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::FallibleProgressSliceWriter

pub struct FallibleProgressSliceWriter<W, F>(/* private fields */);
Expand description

A slice writer that adds a fallible progress callback.

This wraps any AsyncSliceWriter, passes through all operations to the inner writer, and calls the passed on_write callback whenever data is written. on_write must return an io::Result, and can abort the download by returning an error.

-

Implementations§

source§

impl<W, F> FallibleProgressSliceWriter<W, F>
where +

Implementations§

§

impl<W, F> FallibleProgressSliceWriter<W, F>
where W: AsyncSliceWriter, - F: Fn(u64, usize) -> Result<(), Error> + 'static,

source

pub fn new(inner: W, on_write: F) -> FallibleProgressSliceWriter<W, F>

Create a new ProgressSliceWriter from an inner writer and a progress callback

+ F: Fn(u64, usize) -> Result<(), Error> + 'static,

pub fn new(inner: W, on_write: F) -> FallibleProgressSliceWriter<W, F>

Create a new ProgressSliceWriter from an inner writer and a progress callback

The on_write function is called for each write, with the offset as the first and the length of the data as the second param. on_write must return a future which resolves to an io::Result. If on_write returns an error, the download is aborted.

-
source

pub fn into_inner(self) -> W

Return the inner writer.

-

Trait Implementations§

source§

impl<W, F> AsyncSliceWriter for FallibleProgressSliceWriter<W, F>
where +

pub fn into_inner(self) -> W

Return the inner writer.

+

Trait Implementations§

§

impl<W, F> AsyncSliceWriter for FallibleProgressSliceWriter<W, F>
where W: AsyncSliceWriter + 'static, - F: Fn(u64, usize) -> Result<(), Error> + 'static,

source§

async fn write_bytes_at( + F: Fn(u64, usize) -> Result<(), Error> + 'static,

§

async fn write_bytes_at( &mut self, offset: u64, data: Bytes -) -> Result<(), Error>

Write the entire Bytes at the given position. Read more
source§

async fn write_at(&mut self, offset: u64, data: &[u8]) -> Result<(), Error>

Write the entire slice at the given position. Read more
source§

async fn sync(&mut self) -> Result<(), Error>

Sync any buffers to the underlying storage.
source§

async fn set_len(&mut self, size: u64) -> Result<(), Error>

Set the length of the underlying storage.
source§

impl<W, F> Debug for FallibleProgressSliceWriter<W, F>
where +) -> Result<(), Error>

Write the entire Bytes at the given position. Read more
§

async fn write_at(&mut self, offset: u64, data: &[u8]) -> Result<(), Error>

Write the entire slice at the given position. Read more
§

async fn sync(&mut self) -> Result<(), Error>

Sync any buffers to the underlying storage.
§

async fn set_len(&mut self, size: u64) -> Result<(), Error>

Set the length of the underlying storage.

§

impl<W, F> Debug for FallibleProgressSliceWriter<W, F>
where W: Debug, - F: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<W, F> Freeze for FallibleProgressSliceWriter<W, F>
where + F: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<W, F> Freeze for FallibleProgressSliceWriter<W, F>
where W: Freeze, F: Freeze,

§

impl<W, F> RefUnwindSafe for FallibleProgressSliceWriter<W, F>
where W: RefUnwindSafe, diff --git a/pr/2616/docs/iroh/blobs/util/progress/struct.FlumeProgressSender.html b/pr/2616/docs/iroh/blobs/util/progress/struct.FlumeProgressSender.html index b2747ca8ef..1f8e7af8c6 100644 --- a/pr/2616/docs/iroh/blobs/util/progress/struct.FlumeProgressSender.html +++ b/pr/2616/docs/iroh/blobs/util/progress/struct.FlumeProgressSender.html @@ -1,21 +1,21 @@ -FlumeProgressSender in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::FlumeProgressSender

source ·
pub struct FlumeProgressSender<T> { /* private fields */ }
Expand description

A progress sender that uses a flume channel.

-

Implementations§

source§

impl<T> FlumeProgressSender<T>

source

pub fn new(sender: Sender<T>) -> FlumeProgressSender<T>

Create a new progress sender from a flume sender.

-
source

pub fn same_channel(&self, other: &FlumeProgressSender<T>) -> bool

Returns true if other sends on the same flume channel as self.

-

Trait Implementations§

source§

impl<T> Clone for FlumeProgressSender<T>

source§

fn clone(&self) -> FlumeProgressSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for FlumeProgressSender<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> IdGenerator for FlumeProgressSender<T>

source§

fn new_id(&self) -> u64

Get a new unique id
source§

impl<T> ProgressSender for FlumeProgressSender<T>
where - T: Send + Sync + 'static,

§

type Msg = T

The message being sent.
source§

async fn send( +FlumeProgressSender in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::FlumeProgressSender

pub struct FlumeProgressSender<T> { /* private fields */ }
Expand description

A progress sender that uses a flume channel.

+

Implementations§

§

impl<T> FlumeProgressSender<T>

pub fn new(sender: Sender<T>) -> FlumeProgressSender<T>

Create a new progress sender from a flume sender.

+

pub fn same_channel(&self, other: &FlumeProgressSender<T>) -> bool

Returns true if other sends on the same flume channel as self.

+

Trait Implementations§

§

impl<T> Clone for FlumeProgressSender<T>

§

fn clone(&self) -> FlumeProgressSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<T> Debug for FlumeProgressSender<T>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> IdGenerator for FlumeProgressSender<T>

§

fn new_id(&self) -> u64

Get a new unique id
§

impl<T> ProgressSender for FlumeProgressSender<T>
where + T: Send + Sync + 'static,

§

type Msg = T

The message being sent.
§

async fn send( &self, msg: <FlumeProgressSender<T> as ProgressSender>::Msg -) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
source§

fn try_send( +) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
§

fn try_send( &self, msg: <FlumeProgressSender<T> as ProgressSender>::Msg -) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
source§

fn blocking_send( +) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
§

fn blocking_send( &self, msg: <FlumeProgressSender<T> as ProgressSender>::Msg -) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
source§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>

Send a message and block if the receiver is full. Read more
§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
source§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where + F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.
source§

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where + F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.
§

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where Self: IdGenerator,

Create a boxed progress sender to get rid of the concrete type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/pr/2616/docs/iroh/blobs/util/progress/struct.IgnoreProgressSender.html b/pr/2616/docs/iroh/blobs/util/progress/struct.IgnoreProgressSender.html index d2ebf9bb42..ee38a58a87 100644 --- a/pr/2616/docs/iroh/blobs/util/progress/struct.IgnoreProgressSender.html +++ b/pr/2616/docs/iroh/blobs/util/progress/struct.IgnoreProgressSender.html @@ -1,10 +1,10 @@ -IgnoreProgressSender in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::IgnoreProgressSender

source ·
pub struct IgnoreProgressSender<T>(/* private fields */);
Expand description

A no-op progress sender.

-

Trait Implementations§

source§

impl<T> Clone for IgnoreProgressSender<T>

source§

fn clone(&self) -> IgnoreProgressSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T> Debug for IgnoreProgressSender<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Default for IgnoreProgressSender<T>

source§

fn default() -> IgnoreProgressSender<T>

Returns the “default value” for a type. Read more
source§

impl<T> IdGenerator for IgnoreProgressSender<T>

source§

fn new_id(&self) -> u64

Get a new unique id
source§

impl<T> ProgressSender for IgnoreProgressSender<T>
where - T: Send + Sync + 'static,

§

type Msg = T

The message being sent.
source§

async fn send(&self, _msg: T) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
source§

fn try_send(&self, _msg: T) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
source§

fn blocking_send(&self, _msg: T) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
source§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where +IgnoreProgressSender in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::IgnoreProgressSender

pub struct IgnoreProgressSender<T>(/* private fields */);
Expand description

A no-op progress sender.

+

Trait Implementations§

§

impl<T> Clone for IgnoreProgressSender<T>

§

fn clone(&self) -> IgnoreProgressSender<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<T> Debug for IgnoreProgressSender<T>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> Default for IgnoreProgressSender<T>

§

fn default() -> IgnoreProgressSender<T>

Returns the “default value” for a type. Read more
§

impl<T> IdGenerator for IgnoreProgressSender<T>

§

fn new_id(&self) -> u64

Get a new unique id
§

impl<T> ProgressSender for IgnoreProgressSender<T>
where + T: Send + Sync + 'static,

§

type Msg = T

The message being sent.
§

async fn send(&self, _msg: T) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
§

fn try_send(&self, _msg: T) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
§

fn blocking_send(&self, _msg: T) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
source§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where + F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.
source§

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where + F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.
§

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where Self: IdGenerator,

Create a boxed progress sender to get rid of the concrete type.

Auto Trait Implementations§

§

impl<T> Freeze for IgnoreProgressSender<T>

§

impl<T> RefUnwindSafe for IgnoreProgressSender<T>
where T: RefUnwindSafe,

§

impl<T> Send for IgnoreProgressSender<T>
where T: Send,

§

impl<T> Sync for IgnoreProgressSender<T>
where diff --git a/pr/2616/docs/iroh/blobs/util/progress/struct.ProgressSliceWriter.html b/pr/2616/docs/iroh/blobs/util/progress/struct.ProgressSliceWriter.html index 1f8cd86af8..575ff381f4 100644 --- a/pr/2616/docs/iroh/blobs/util/progress/struct.ProgressSliceWriter.html +++ b/pr/2616/docs/iroh/blobs/util/progress/struct.ProgressSliceWriter.html @@ -1,21 +1,21 @@ -ProgressSliceWriter in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::ProgressSliceWriter

source ·
pub struct ProgressSliceWriter<W, F>(/* private fields */);
Expand description

A slice writer that adds a synchronous progress callback.

+ProgressSliceWriter in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::ProgressSliceWriter

pub struct ProgressSliceWriter<W, F>(/* private fields */);
Expand description

A slice writer that adds a synchronous progress callback.

This wraps any AsyncSliceWriter, passes through all operations to the inner writer, and calls the passed on_write callback whenever data is written.

-

Implementations§

source§

impl<W, F> ProgressSliceWriter<W, F>
where +

Implementations§

§

impl<W, F> ProgressSliceWriter<W, F>
where W: AsyncSliceWriter, - F: FnMut(u64),

source

pub fn new(inner: W, on_write: F) -> ProgressSliceWriter<W, F>

Create a new ProgressSliceWriter from an inner writer and a progress callback

+ F: FnMut(u64),

pub fn new(inner: W, on_write: F) -> ProgressSliceWriter<W, F>

Create a new ProgressSliceWriter from an inner writer and a progress callback

The on_write function is called for each write, with the offset as the first and the length of the data as the second param.

-
source

pub fn into_inner(self) -> W

Return the inner writer

-

Trait Implementations§

source§

impl<W, F> AsyncSliceWriter for ProgressSliceWriter<W, F>
where +

pub fn into_inner(self) -> W

Return the inner writer

+

Trait Implementations§

§

impl<W, F> AsyncSliceWriter for ProgressSliceWriter<W, F>
where W: AsyncSliceWriter + 'static, - F: FnMut(u64, usize) + 'static,

source§

async fn write_bytes_at( + F: FnMut(u64, usize) + 'static,

§

async fn write_bytes_at( &mut self, offset: u64, data: Bytes -) -> Result<(), Error>

Write the entire Bytes at the given position. Read more
source§

async fn write_at(&mut self, offset: u64, data: &[u8]) -> Result<(), Error>

Write the entire slice at the given position. Read more
source§

async fn sync(&mut self) -> Result<(), Error>

Sync any buffers to the underlying storage.
source§

async fn set_len(&mut self, size: u64) -> Result<(), Error>

Set the length of the underlying storage.
source§

impl<W, F> Debug for ProgressSliceWriter<W, F>
where +) -> Result<(), Error>

Write the entire Bytes at the given position. Read more
§

async fn write_at(&mut self, offset: u64, data: &[u8]) -> Result<(), Error>

Write the entire slice at the given position. Read more
§

async fn sync(&mut self) -> Result<(), Error>

Sync any buffers to the underlying storage.
§

async fn set_len(&mut self, size: u64) -> Result<(), Error>

Set the length of the underlying storage.

§

impl<W, F> Debug for ProgressSliceWriter<W, F>
where W: Debug, - F: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<W, F> Freeze for ProgressSliceWriter<W, F>
where + F: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<W, F> Freeze for ProgressSliceWriter<W, F>
where W: Freeze, F: Freeze,

§

impl<W, F> RefUnwindSafe for ProgressSliceWriter<W, F>
where W: RefUnwindSafe, diff --git a/pr/2616/docs/iroh/blobs/util/progress/struct.WithFilterMap.html b/pr/2616/docs/iroh/blobs/util/progress/struct.WithFilterMap.html index be3e9c0b6a..c64fc6f4c0 100644 --- a/pr/2616/docs/iroh/blobs/util/progress/struct.WithFilterMap.html +++ b/pr/2616/docs/iroh/blobs/util/progress/struct.WithFilterMap.html @@ -1,18 +1,18 @@ -WithFilterMap in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::WithFilterMap

source ·
pub struct WithFilterMap<I, U, F>(/* private fields */);
Expand description

Transform the message type by filter-mapping to the type of this sender.

+WithFilterMap in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::WithFilterMap

pub struct WithFilterMap<I, U, F>(/* private fields */);
Expand description

Transform the message type by filter-mapping to the type of this sender.

See ProgressSender::with_filter_map.

-

Trait Implementations§

source§

impl<I, U, F> Clone for WithFilterMap<I, U, F>
where +

Trait Implementations§

§

impl<I, U, F> Clone for WithFilterMap<I, U, F>
where I: ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> Option<<I as ProgressSender>::Msg> + Clone + Send + Sync + 'static,

source§

fn clone(&self) -> WithFilterMap<I, U, F>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<I, U, F> Debug for WithFilterMap<I, U, F>
where + F: Fn(U) -> Option<<I as ProgressSender>::Msg> + Clone + Send + Sync + 'static,

§

fn clone(&self) -> WithFilterMap<I, U, F>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<I, U, F> Debug for WithFilterMap<I, U, F>
where I: ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> Option<<I as ProgressSender>::Msg> + Clone + Send + Sync + 'static,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<I, U, F> IdGenerator for WithFilterMap<I, U, F>
where - I: IdGenerator,

source§

fn new_id(&self) -> u64

Get a new unique id
source§

impl<I, U, F> ProgressSender for WithFilterMap<I, U, F>
where + F: Fn(U) -> Option<<I as ProgressSender>::Msg> + Clone + Send + Sync + 'static,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<I, U, F> IdGenerator for WithFilterMap<I, U, F>
where + I: IdGenerator,

§

fn new_id(&self) -> u64

Get a new unique id
§

impl<I, U, F> ProgressSender for WithFilterMap<I, U, F>
where I: ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> Option<<I as ProgressSender>::Msg> + Clone + Send + Sync + 'static,

§

type Msg = U

The message being sent.
source§

async fn send(&self, msg: U) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
source§

fn try_send(&self, msg: U) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
source§

fn blocking_send(&self, msg: U) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
source§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where + F: Fn(U) -> Option<<I as ProgressSender>::Msg> + Clone + Send + Sync + 'static,

§

type Msg = U

The message being sent.
§

async fn send(&self, msg: U) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
§

fn try_send(&self, msg: U) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
§

fn blocking_send(&self, msg: U) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
source§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where + F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where U: Send + Sync + 'static, F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.

Auto Trait Implementations§

§

impl<I, U, F> Freeze for WithFilterMap<I, U, F>
where I: Freeze, diff --git a/pr/2616/docs/iroh/blobs/util/progress/struct.WithMap.html b/pr/2616/docs/iroh/blobs/util/progress/struct.WithMap.html index ec7321213f..42573c0692 100644 --- a/pr/2616/docs/iroh/blobs/util/progress/struct.WithMap.html +++ b/pr/2616/docs/iroh/blobs/util/progress/struct.WithMap.html @@ -1,24 +1,24 @@ -WithMap in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::WithMap

source ·
pub struct WithMap<I, U, F>(/* private fields */)
+WithMap in iroh::blobs::util::progress - Rust

Struct iroh::blobs::util::progress::WithMap

pub struct WithMap<I, U, F>(/* private fields */)
 where
     I: ProgressSender,
     U: Send + Sync + 'static,
     F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static;
Expand description

Transform the message type by mapping to the type of this sender.

See ProgressSender::with_map.

-

Trait Implementations§

source§

impl<I, U, F> Clone for WithMap<I, U, F>
where +

Trait Implementations§

§

impl<I, U, F> Clone for WithMap<I, U, F>
where I: ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

source§

fn clone(&self) -> WithMap<I, U, F>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<I, U, F> Debug for WithMap<I, U, F>
where + F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

§

fn clone(&self) -> WithMap<I, U, F>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<I, U, F> Debug for WithMap<I, U, F>
where I: ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<I, U, F> IdGenerator for WithMap<I, U, F>
where + F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<I, U, F> IdGenerator for WithMap<I, U, F>
where I: IdGenerator + ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

source§

fn new_id(&self) -> u64

Get a new unique id
source§

impl<I, U, F> ProgressSender for WithMap<I, U, F>
where + F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

§

fn new_id(&self) -> u64

Get a new unique id
§

impl<I, U, F> ProgressSender for WithMap<I, U, F>
where I: ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

§

type Msg = U

The message being sent.
source§

async fn send(&self, msg: U) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
source§

fn try_send(&self, msg: U) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
source§

fn blocking_send(&self, msg: U) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
source§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where + F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

§

type Msg = U

The message being sent.
§

async fn send(&self, msg: U) -> Result<(), ProgressSendError>

Send a message and wait if the receiver is full. Read more
§

fn try_send(&self, msg: U) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full. Read more
§

fn blocking_send(&self, msg: U) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full. Read more
§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where U: Send + Sync + 'static, - F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
source§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where + F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.
§

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where U: Send + Sync + 'static, F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.

Auto Trait Implementations§

§

impl<I, U, F> Freeze for WithMap<I, U, F>
where I: Freeze, diff --git a/pr/2616/docs/iroh/blobs/util/progress/trait.IdGenerator.html b/pr/2616/docs/iroh/blobs/util/progress/trait.IdGenerator.html index f980561436..a04c029f6c 100644 --- a/pr/2616/docs/iroh/blobs/util/progress/trait.IdGenerator.html +++ b/pr/2616/docs/iroh/blobs/util/progress/trait.IdGenerator.html @@ -1,12 +1,12 @@ -IdGenerator in iroh::blobs::util::progress - Rust

Trait iroh::blobs::util::progress::IdGenerator

source ·
pub trait IdGenerator {
+IdGenerator in iroh::blobs::util::progress - Rust

Trait iroh::blobs::util::progress::IdGenerator

pub trait IdGenerator {
     // Required method
     fn new_id(&self) -> u64;
 }
Expand description

An id generator, to be combined with a progress sender.

-

Required Methods§

source

fn new_id(&self) -> u64

Get a new unique id

-

Implementations on Foreign Types§

source§

impl<T> IdGenerator for Arc<dyn BoxableProgressSender<T>>
where - T: Send + Sync + 'static,

source§

fn new_id(&self) -> u64

Implementors§

source§

impl<I, U, F> IdGenerator for WithFilterMap<I, U, F>
where - I: IdGenerator,

source§

impl<I, U, F> IdGenerator for WithMap<I, U, F>
where +

Required Methods§

fn new_id(&self) -> u64

Get a new unique id

+

Implementations on Foreign Types§

§

impl<T> IdGenerator for Arc<dyn BoxableProgressSender<T>>
where + T: Send + Sync + 'static,

§

fn new_id(&self) -> u64

Implementors§

§

impl<I, U, F> IdGenerator for WithFilterMap<I, U, F>
where + I: IdGenerator,

§

impl<I, U, F> IdGenerator for WithMap<I, U, F>
where I: IdGenerator + ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

source§

impl<T> IdGenerator for AsyncChannelProgressSender<T>

source§

impl<T> IdGenerator for BoxedProgressSender<T>
where - T: Send + Sync + 'static,

source§

impl<T> IdGenerator for FlumeProgressSender<T>

source§

impl<T> IdGenerator for IgnoreProgressSender<T>

\ No newline at end of file + F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

§

impl<T> IdGenerator for AsyncChannelProgressSender<T>

§

impl<T> IdGenerator for BoxedProgressSender<T>
where + T: Send + Sync + 'static,

§

impl<T> IdGenerator for FlumeProgressSender<T>

§

impl<T> IdGenerator for IgnoreProgressSender<T>

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/util/progress/trait.ProgressSender.html b/pr/2616/docs/iroh/blobs/util/progress/trait.ProgressSender.html index 973176fb3b..fac66f16a0 100644 --- a/pr/2616/docs/iroh/blobs/util/progress/trait.ProgressSender.html +++ b/pr/2616/docs/iroh/blobs/util/progress/trait.ProgressSender.html @@ -1,4 +1,4 @@ -ProgressSender in iroh::blobs::util::progress - Rust

Trait iroh::blobs::util::progress::ProgressSender

source ·
pub trait ProgressSender: Debug + Clone + Send + Sync + 'static {
+ProgressSender in iroh::blobs::util::progress - Rust

Trait iroh::blobs::util::progress::ProgressSender

pub trait ProgressSender: Debug + Clone + Send + Sync + 'static {
     type Msg: Send + Sync + 'static;
 
     // Required methods
@@ -69,46 +69,46 @@ method to filter and transform the message.

They must also be thread safe, which is ensured by the Send and Sync bounds. They must also be unencumbered by lifetimes, which is ensured by the 'static bound.

A typical implementation will wrap the sender part of a channel and an id generator.

-

Required Associated Types§

source

type Msg: Send + Sync + 'static

The message being sent.

-

Required Methods§

Required Associated Types§

type Msg: Send + Sync + 'static

The message being sent.

+

Required Methods§

fn send( &self, msg: Self::Msg ) -> impl Future<Output = Result<(), ProgressSendError>> + Send

Send a message and wait if the receiver is full.

Use this to send important progress messages where delivery must be guaranteed.

-
source

fn try_send(&self, msg: Self::Msg) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full.

+

fn try_send(&self, msg: Self::Msg) -> Result<(), ProgressSendError>

Try to send a message and drop it if the receiver is full.

Use this to send progress messages where delivery is not important, e.g. a self contained progress message.

-
source

fn blocking_send(&self, msg: Self::Msg) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full.

+

fn blocking_send(&self, msg: Self::Msg) -> Result<(), ProgressSendError>

Send a message and block if the receiver is full.

Use this to send important progress messages where delivery must be guaranteed.

-

Provided Methods§

source

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where +

Provided Methods§

fn with_map<U, F>(self, f: F) -> WithMap<Self, U, F>
where U: Send + Sync + 'static, F: Fn(U) -> Self::Msg + Send + Sync + Clone + 'static,

Transform the message type by mapping to the type of this sender.

-
source

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where +

fn with_filter_map<U, F>(self, f: F) -> WithFilterMap<Self, U, F>
where U: Send + Sync + 'static, F: Fn(U) -> Option<Self::Msg> + Send + Sync + Clone + 'static,

Transform the message type by filter-mapping to the type of this sender.

-
source

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where +

fn boxed(self) -> BoxedProgressSender<Self::Msg>
where Self: IdGenerator,

Create a boxed progress sender to get rid of the concrete type.

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> ProgressSender for Option<T>
where - T: ProgressSender,

§

type Msg = <T as ProgressSender>::Msg

source§

async fn send( +

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<T> ProgressSender for Option<T>
where + T: ProgressSender,

source§

impl<T> ProgressSender for Arc<dyn BoxableProgressSender<T>>
where - T: Send + Sync + 'static,

§

impl<T> ProgressSender for Arc<dyn BoxableProgressSender<T>>
where + T: Send + Sync + 'static,

§

type Msg = T

§

fn send( &self, msg: T -) -> impl Future<Output = Result<(), ProgressSendError>> + Send

source§

fn try_send(&self, msg: T) -> Result<(), ProgressSendError>

source§

fn blocking_send(&self, msg: T) -> Result<(), ProgressSendError>

Implementors§

source§

impl<I, U, F> ProgressSender for WithFilterMap<I, U, F>
where +) -> impl Future<Output = Result<(), ProgressSendError>> + Send

§

fn try_send(&self, msg: T) -> Result<(), ProgressSendError>

§

fn blocking_send(&self, msg: T) -> Result<(), ProgressSendError>

Implementors§

§

impl<I, U, F> ProgressSender for WithFilterMap<I, U, F>
where I: ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> Option<<I as ProgressSender>::Msg> + Clone + Send + Sync + 'static,

§

type Msg = U

source§

impl<I, U, F> ProgressSender for WithMap<I, U, F>
where + F: Fn(U) -> Option<<I as ProgressSender>::Msg> + Clone + Send + Sync + 'static,

§

type Msg = U

§

impl<I, U, F> ProgressSender for WithMap<I, U, F>
where I: ProgressSender, U: Send + Sync + 'static, - F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

§

type Msg = U

source§

impl<T> ProgressSender for AsyncChannelProgressSender<T>
where - T: Send + Sync + 'static,

§

type Msg = T

source§

impl<T> ProgressSender for BoxedProgressSender<T>
where - T: Send + Sync + 'static,

§

type Msg = T

source§

impl<T> ProgressSender for FlumeProgressSender<T>
where - T: Send + Sync + 'static,

§

type Msg = T

source§

impl<T> ProgressSender for IgnoreProgressSender<T>
where + F: Fn(U) -> <I as ProgressSender>::Msg + Clone + Send + Sync + 'static,

§

type Msg = U

§

impl<T> ProgressSender for AsyncChannelProgressSender<T>
where + T: Send + Sync + 'static,

§

type Msg = T

§

impl<T> ProgressSender for BoxedProgressSender<T>
where + T: Send + Sync + 'static,

§

type Msg = T

§

impl<T> ProgressSender for FlumeProgressSender<T>
where + T: Send + Sync + 'static,

§

type Msg = T

§

impl<T> ProgressSender for IgnoreProgressSender<T>
where T: Send + Sync + 'static,

§

type Msg = T

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/util/progress/type.ProgressSendResult.html b/pr/2616/docs/iroh/blobs/util/progress/type.ProgressSendResult.html index 46d0d424df..03a1985b40 100644 --- a/pr/2616/docs/iroh/blobs/util/progress/type.ProgressSendResult.html +++ b/pr/2616/docs/iroh/blobs/util/progress/type.ProgressSendResult.html @@ -1,4 +1,4 @@ -ProgressSendResult in iroh::blobs::util::progress - Rust

Type Alias iroh::blobs::util::progress::ProgressSendResult

source ·
pub type ProgressSendResult<T> = Result<T, ProgressSendError>;
Expand description

A result type for progress sending.

+ProgressSendResult in iroh::blobs::util::progress - Rust

Type Alias iroh::blobs::util::progress::ProgressSendResult

pub type ProgressSendResult<T> = Result<T, ProgressSendError>;
Expand description

A result type for progress sending.

Aliased Type§

enum ProgressSendResult<T> {
     Ok(T),
     Err(ProgressSendError),
diff --git a/pr/2616/docs/iroh/blobs/util/struct.SparseMemFile.html b/pr/2616/docs/iroh/blobs/util/struct.SparseMemFile.html
index 10ee638236..8a71526fbb 100644
--- a/pr/2616/docs/iroh/blobs/util/struct.SparseMemFile.html
+++ b/pr/2616/docs/iroh/blobs/util/struct.SparseMemFile.html
@@ -1,10 +1,10 @@
-SparseMemFile in iroh::blobs::util - Rust

Struct iroh::blobs::util::SparseMemFile

source ·
pub struct SparseMemFile { /* private fields */ }
Expand description

A file that is sparse in memory

+SparseMemFile in iroh::blobs::util - Rust

Struct iroh::blobs::util::SparseMemFile

pub struct SparseMemFile { /* private fields */ }
Expand description

A file that is sparse in memory

It is not actually using sparse storage to make reading faster, so it will not conserve memory. It is just a way to remember the gaps so we can write it to a file in a sparse way later.

-

Implementations§

source§

impl SparseMemFile

source

pub fn new() -> SparseMemFile

Create a new, empty SparseMemFile

-
source

pub fn into_parts(self) -> (Vec<u8>, RangeSet<[usize; 2]>)

Get the data and the valid ranges

-
source

pub fn persist(&self, target: impl WriteAt) -> Result<(), Error>

Persist the SparseMemFile to a WriteAt

+

Implementations§

§

impl SparseMemFile

pub fn new() -> SparseMemFile

Create a new, empty SparseMemFile

+

pub fn into_parts(self) -> (Vec<u8>, RangeSet<[usize; 2]>)

Get the data and the valid ranges

+

pub fn persist(&self, target: impl WriteAt) -> Result<(), Error>

Persist the SparseMemFile to a WriteAt

This will not persist the gaps, only the data that was written.

Methods from Deref<Target = [u8]>§

source

pub fn as_str(&self) -> &str

🔬This is a nightly-only experimental API. (ascii_char)

Views this slice of ASCII characters as a UTF-8 str.

source

pub fn as_bytes(&self) -> &[u8] ⓘ

🔬This is a nightly-only experimental API. (ascii_char)

Views this slice of ASCII characters as a slice of u8 bytes.

@@ -1110,9 +1110,9 @@ given separator between each.

§Examples
assert_eq!(["hello", "world"].connect(" "), "hello world");
 assert_eq!([[1, 2], [3, 4]].connect(&0), [1, 2, 0, 3, 4]);
-

Trait Implementations§

source§

impl AsRef<[u8]> for SparseMemFile

source§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Debug for SparseMemFile

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for SparseMemFile

source§

fn default() -> SparseMemFile

Returns the “default value” for a type. Read more
source§

impl Deref for SparseMemFile

§

type Target = [u8]

The resulting type after dereferencing.
source§

fn deref(&self) -> &<SparseMemFile as Deref>::Target

Dereferences the value.
source§

impl From<Vec<u8>> for SparseMemFile

source§

fn from(data: Vec<u8>) -> SparseMemFile

Converts to this type from the input type.
source§

impl ReadAt for SparseMemFile

source§

fn read_at(&self, offset: u64, buf: &mut [u8]) -> Result<usize, Error>

Reads bytes from an offset in this source into a buffer, returning how -many bytes were read. Read more
source§

fn read_exact_at(&self, pos: u64, buf: &mut [u8]) -> Result<(), Error>

Reads the exact number of bytes required to fill buf from an offset. Read more
source§

impl Size for SparseMemFile

source§

fn size(&self) -> Result<Option<u64>, Error>

Get the size of this object, in bytes. Read more
source§

impl TryInto<Vec<u8>> for SparseMemFile

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<Vec<u8>, <SparseMemFile as TryInto<Vec<u8>>>::Error>

Performs the conversion.
source§

impl WriteAt for SparseMemFile

source§

fn write_at(&mut self, offset: u64, buf: &[u8]) -> Result<usize, Error>

Writes bytes from a buffer to an offset, returning the number of bytes -written. Read more
source§

fn flush(&mut self) -> Result<(), Error>

Flush this writer, ensuring that any intermediately buffered data +

Trait Implementations§

§

impl AsRef<[u8]> for SparseMemFile

§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Debug for SparseMemFile

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for SparseMemFile

§

fn default() -> SparseMemFile

Returns the “default value” for a type. Read more
§

impl Deref for SparseMemFile

§

type Target = [u8]

The resulting type after dereferencing.
§

fn deref(&self) -> &<SparseMemFile as Deref>::Target

Dereferences the value.
§

impl From<Vec<u8>> for SparseMemFile

§

fn from(data: Vec<u8>) -> SparseMemFile

Converts to this type from the input type.
§

impl ReadAt for SparseMemFile

§

fn read_at(&self, offset: u64, buf: &mut [u8]) -> Result<usize, Error>

Reads bytes from an offset in this source into a buffer, returning how +many bytes were read. Read more
source§

fn read_exact_at(&self, pos: u64, buf: &mut [u8]) -> Result<(), Error>

Reads the exact number of bytes required to fill buf from an offset. Read more
§

impl Size for SparseMemFile

§

fn size(&self) -> Result<Option<u64>, Error>

Get the size of this object, in bytes. Read more
§

impl TryInto<Vec<u8>> for SparseMemFile

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<Vec<u8>, <SparseMemFile as TryInto<Vec<u8>>>::Error>

Performs the conversion.
§

impl WriteAt for SparseMemFile

§

fn write_at(&mut self, offset: u64, buf: &[u8]) -> Result<usize, Error>

Writes bytes from a buffer to an offset, returning the number of bytes +written. Read more
§

fn flush(&mut self) -> Result<(), Error>

Flush this writer, ensuring that any intermediately buffered data reaches its destination. Read more
source§

fn write_all_at(&mut self, pos: u64, buf: &[u8]) -> Result<(), Error>

Writes a complete buffer at an offset. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<A, T> AsBits<T> for A
where A: AsRef<[T]>, diff --git a/pr/2616/docs/iroh/blobs/util/struct.Tag.html b/pr/2616/docs/iroh/blobs/util/struct.Tag.html index df7787088b..3999463425 100644 --- a/pr/2616/docs/iroh/blobs/util/struct.Tag.html +++ b/pr/2616/docs/iroh/blobs/util/struct.Tag.html @@ -1,32 +1,32 @@ -Tag in iroh::blobs::util - Rust

Struct iroh::blobs::util::Tag

source ·
pub struct Tag(pub Bytes);
Expand description

A tag

-

Tuple Fields§

§0: Bytes

Implementations§

source§

impl Tag

source

pub fn auto(time: SystemTime, exists: impl Fn(&[u8]) -> bool) -> Tag

Create a new tag that does not exist yet.

-

Trait Implementations§

source§

impl Borrow<[u8]> for Tag

source§

fn borrow(&self) -> &[u8] ⓘ

Immutably borrows from an owned value. Read more
source§

impl Clone for Tag

source§

fn clone(&self) -> Tag

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Tag

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Tag

source§

fn deserialize<__D>( +Tag in iroh::blobs::util - Rust

Struct iroh::blobs::util::Tag

pub struct Tag(pub Bytes);
Expand description

A tag

+

Tuple Fields§

§0: Bytes

Implementations§

§

impl Tag

pub fn auto(time: SystemTime, exists: impl Fn(&[u8]) -> bool) -> Tag

Create a new tag that does not exist yet.

+

Trait Implementations§

§

impl Borrow<[u8]> for Tag

§

fn borrow(&self) -> &[u8] ⓘ

Immutably borrows from an owned value. Read more
§

impl Clone for Tag

§

fn clone(&self) -> Tag

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Tag

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Tag

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Tag, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for Tag

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<&str> for Tag

source§

fn from(value: &str) -> Tag

Converts to this type from the input type.
source§

impl From<Bytes> for Tag

source§

fn from(value: Bytes) -> Tag

Converts to this type from the input type.
source§

impl From<String> for Tag

source§

fn from(value: String) -> Tag

Converts to this type from the input type.
source§

impl Key for Tag

source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
source§

impl Ord for Tag

source§

fn cmp(&self, other: &Tag) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for Tag

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<&str> for Tag

§

fn from(value: &str) -> Tag

Converts to this type from the input type.
§

impl From<Bytes> for Tag

§

fn from(value: Bytes) -> Tag

Converts to this type from the input type.
§

impl From<String> for Tag

§

fn from(value: String) -> Tag

Converts to this type from the input type.
§

impl Key for Tag

§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
§

impl Ord for Tag

§

fn cmp(&self, other: &Tag) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for Tag

source§

fn eq(&self, other: &Tag) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for Tag

§

fn eq(&self, other: &Tag) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for Tag

source§

fn partial_cmp(&self, other: &Tag) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for Tag

§

fn partial_cmp(&self, other: &Tag) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl RedbKey for Tag

source§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
source§

impl RedbValue for Tag

§

type SelfType<'a> = Tag

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = Bytes

source§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
source§

fn from_bytes<'a>(data: &'a [u8]) -> <Tag as RedbValue>::SelfType<'a>
where +operator. Read more

§

impl RedbKey for Tag

§

fn compare(data1: &[u8], data2: &[u8]) -> Ordering

Compare data1 with data2
§

impl RedbValue for Tag

§

type SelfType<'a> = Tag

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = Bytes

§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
§

fn from_bytes<'a>(data: &'a [u8]) -> <Tag as RedbValue>::SelfType<'a>
where Tag: 'a,

Deserializes data -Implementations may return a view over data, or an owned type
source§

fn as_bytes<'a, 'b>( +Implementations may return a view over data, or an owned type

§

fn as_bytes<'a, 'b>( value: &'a <Tag as RedbValue>::SelfType<'b> ) -> <Tag as RedbValue>::AsBytes<'a>
where 'b: 'a, - Tag: 'a + 'b,

Serialize the value to a slice
source§

fn type_name() -> TypeName

Globally unique identifier for this type

source§

impl Serialize for Tag

source§

fn serialize<__S>( + Tag: 'a + 'b,

Serialize the value to a slice
§

fn type_name() -> TypeName

Globally unique identifier for this type

§

impl Serialize for Tag

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Value for Tag

§

type SelfType<'a> = Tag

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = Bytes

source§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
source§

fn from_bytes<'a>(data: &'a [u8]) -> <Tag as Value>::SelfType<'a>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Value for Tag

§

type SelfType<'a> = Tag

SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
§

type AsBytes<'a> = Bytes

§

fn fixed_width() -> Option<usize>

Width of a fixed type, or None for variable width
§

fn from_bytes<'a>(data: &'a [u8]) -> <Tag as Value>::SelfType<'a>
where Tag: 'a,

Deserializes data -Implementations may return a view over data, or an owned type
source§

fn as_bytes<'a, 'b>( +Implementations may return a view over data, or an owned type

§

fn as_bytes<'a, 'b>( value: &'a <Tag as Value>::SelfType<'b> ) -> <Tag as Value>::AsBytes<'a>
where 'b: 'a, - Tag: 'a + 'b,

Serialize the value to a slice
source§

fn type_name() -> TypeName

Globally unique identifier for this type

source§

impl Eq for Tag

source§

impl StructuralPartialEq for Tag

Auto Trait Implementations§

§

impl !Freeze for Tag

§

impl RefUnwindSafe for Tag

§

impl Send for Tag

§

impl Sync for Tag

§

impl Unpin for Tag

§

impl UnwindSafe for Tag

Blanket Implementations§

source§

impl<T> Any for T
where + Tag: 'a + 'b,

Serialize the value to a slice
§

fn type_name() -> TypeName

Globally unique identifier for this type

§

impl Eq for Tag

§

impl StructuralPartialEq for Tag

Auto Trait Implementations§

§

impl !Freeze for Tag

§

impl RefUnwindSafe for Tag

§

impl Send for Tag

§

impl Sync for Tag

§

impl Unpin for Tag

§

impl UnwindSafe for Tag

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/util/struct.TempTag.html b/pr/2616/docs/iroh/blobs/util/struct.TempTag.html index 1ca9615bcd..a5baafd4fd 100644 --- a/pr/2616/docs/iroh/blobs/util/struct.TempTag.html +++ b/pr/2616/docs/iroh/blobs/util/struct.TempTag.html @@ -1,16 +1,16 @@ -TempTag in iroh::blobs::util - Rust

Struct iroh::blobs::util::TempTag

source ·
pub struct TempTag { /* private fields */ }
Expand description

A hash and format pair that is protected from garbage collection.

+TempTag in iroh::blobs::util - Rust

Struct iroh::blobs::util::TempTag

pub struct TempTag { /* private fields */ }
Expand description

A hash and format pair that is protected from garbage collection.

If format is raw, this will protect just the blob If format is collection, this will protect the collection and all blobs in it

-

Implementations§

source§

impl TempTag

source

pub fn new(inner: HashAndFormat, on_drop: Option<Weak<dyn TagDrop>>) -> TempTag

Create a new temp tag for the given hash and format

+

Implementations§

§

impl TempTag

pub fn new(inner: HashAndFormat, on_drop: Option<Weak<dyn TagDrop>>) -> TempTag

Create a new temp tag for the given hash and format

This should only be used by store implementations.

The caller is responsible for increasing the refcount on creation and to make sure that temp tags that are created between a mark phase and a sweep phase are protected.

-
source

pub fn inner(&self) -> &HashAndFormat

The hash of the pinned item

-
source

pub fn hash(&self) -> &Hash

The hash of the pinned item

-
source

pub fn format(&self) -> BlobFormat

The format of the pinned item

-
source

pub fn leak(self)

Keep the item alive until the end of the process

-

Trait Implementations§

source§

impl Debug for TempTag

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Drop for TempTag

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

pub fn inner(&self) -> &HashAndFormat

The hash of the pinned item

+

pub fn hash(&self) -> &Hash

The hash of the pinned item

+

pub fn format(&self) -> BlobFormat

The format of the pinned item

+

pub fn leak(self)

Keep the item alive until the end of the process

+

Trait Implementations§

§

impl Debug for TempTag

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Drop for TempTag

§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/blobs/util/trait.TagCounter.html b/pr/2616/docs/iroh/blobs/util/trait.TagCounter.html index 604024ec59..ce3fa2f89c 100644 --- a/pr/2616/docs/iroh/blobs/util/trait.TagCounter.html +++ b/pr/2616/docs/iroh/blobs/util/trait.TagCounter.html @@ -1,4 +1,4 @@ -TagCounter in iroh::blobs::util - Rust

Trait iroh::blobs::util::TagCounter

source ·
pub trait TagCounter: Sized + TagDrop {
+TagCounter in iroh::blobs::util - Rust

Trait iroh::blobs::util::TagCounter

pub trait TagCounter: Sized + TagDrop {
     // Required method
     fn on_create(&self, inner: &HashAndFormat);
 
@@ -11,7 +11,7 @@ blob or collection.

It is important to include the format in the liveness tracking, since protecting a collection means protecting the blob and all its children, whereas protecting a raw blob only protects the blob itself.

-

Required Methods§

source

fn on_create(&self, inner: &HashAndFormat)

Called on creation of a temp tag

-

Provided Methods§

source

fn as_weak(self: &Arc<Self>) -> Weak<dyn TagDrop>

Get this as a weak reference for use in temp tags

-
source

fn temp_tag(self: &Arc<Self>, inner: HashAndFormat) -> TempTag

Create a new temp tag for the given hash and format

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl TagCounter for RwLock<TempCounterMap>

source§

fn on_create(&self, content: &HashAndFormat)

Implementors§

\ No newline at end of file +

Required Methods§

fn on_create(&self, inner: &HashAndFormat)

Called on creation of a temp tag

+

Provided Methods§

fn as_weak(self: &Arc<Self>) -> Weak<dyn TagDrop>

Get this as a weak reference for use in temp tags

+

fn temp_tag(self: &Arc<Self>, inner: HashAndFormat) -> TempTag

Create a new temp tag for the given hash and format

+

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl TagCounter for RwLock<TempCounterMap>

§

fn on_create(&self, content: &HashAndFormat)

Implementors§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/blobs/util/trait.TagDrop.html b/pr/2616/docs/iroh/blobs/util/trait.TagDrop.html index 2a5b24f93e..b072d9c638 100644 --- a/pr/2616/docs/iroh/blobs/util/trait.TagDrop.html +++ b/pr/2616/docs/iroh/blobs/util/trait.TagDrop.html @@ -1,7 +1,7 @@ -TagDrop in iroh::blobs::util - Rust

Trait iroh::blobs::util::TagDrop

source ·
pub trait TagDrop: Debug + Send + Sync + 'static {
+TagDrop in iroh::blobs::util - Rust

Trait iroh::blobs::util::TagDrop

pub trait TagDrop: Debug + Send + Sync + 'static {
     // Required method
     fn on_drop(&self, inner: &HashAndFormat);
 }
Expand description

Trait used from temp tags to notify an abstract store that a temp tag is being dropped.

-

Required Methods§

source

fn on_drop(&self, inner: &HashAndFormat)

Called on drop

-

Implementations on Foreign Types§

source§

impl TagDrop for RwLock<TempCounterMap>

source§

fn on_drop(&self, content: &HashAndFormat)

Implementors§

\ No newline at end of file +

Required Methods§

fn on_drop(&self, inner: &HashAndFormat)

Called on drop

+

Implementations on Foreign Types§

§

impl TagDrop for RwLock<TempCounterMap>

§

fn on_drop(&self, content: &HashAndFormat)

Implementors§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/client/docs/enum.Origin.html b/pr/2616/docs/iroh/client/docs/enum.Origin.html index a03f689145..04a4e54599 100644 --- a/pr/2616/docs/iroh/client/docs/enum.Origin.html +++ b/pr/2616/docs/iroh/client/docs/enum.Origin.html @@ -1,19 +1,19 @@ -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

pub enum Origin {
     Connect(SyncReason),
     Accept,
 }
Expand description

Why we performed a sync exchange

Variants§

§

Connect(SyncReason)

We initiated the exchange

§

Accept

A node connected to us and we accepted the exchange

-

Trait Implementations§

source§

impl Clone for Origin

source§

fn clone(&self) -> Origin

Returns a 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 Origin

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Origin

Trait Implementations§

§

impl Clone for Origin

§

fn clone(&self) -> Origin

Returns a 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 Origin

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Origin

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Origin, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for Origin

source§

fn eq(&self, other: &Origin) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for Origin

§

fn eq(&self, other: &Origin) -> 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 Origin

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for Origin

§

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 Origin

source§

impl StructuralPartialEq for Origin

Auto Trait Implementations§

§

impl Freeze for Origin

§

impl RefUnwindSafe for Origin

§

impl Send for Origin

§

impl Sync for Origin

§

impl Unpin for Origin

§

impl UnwindSafe for Origin

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for Origin

§

impl StructuralPartialEq for Origin

Auto Trait Implementations§

§

impl Freeze for Origin

§

impl RefUnwindSafe for Origin

§

impl Send for Origin

§

impl Sync for Origin

§

impl Unpin for Origin

§

impl UnwindSafe for Origin

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/client/docs/enum.SyncReason.html b/pr/2616/docs/iroh/client/docs/enum.SyncReason.html index 91e381d95c..939f9d3a45 100644 --- a/pr/2616/docs/iroh/client/docs/enum.SyncReason.html +++ b/pr/2616/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

pub enum SyncReason {
     DirectJoin,
     NewNeighbor,
     SyncReport,
@@ -8,16 +8,16 @@
 
§

NewNeighbor

Peer showed up as new neighbor in the gossip swarm

§

SyncReport

We synced after receiving a sync report that indicated news for us

§

Resync

We received a sync report while a sync was running, so run again afterwars

-

Trait Implementations§

source§

impl Clone for SyncReason

source§

fn clone(&self) -> SyncReason

Returns a 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 SyncReason

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SyncReason

Trait Implementations§

§

impl Clone for SyncReason

§

fn clone(&self) -> SyncReason

Returns a 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 SyncReason

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for SyncReason

§

fn deserialize<__D>( __deserializer: __D ) -> Result<SyncReason, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for SyncReason

source§

fn eq(&self, other: &SyncReason) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for SyncReason

§

fn eq(&self, other: &SyncReason) -> 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 SyncReason

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for SyncReason

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for SyncReason

source§

impl Eq for SyncReason

source§

impl StructuralPartialEq for SyncReason

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for SyncReason

§

impl Eq for SyncReason

§

impl StructuralPartialEq for SyncReason

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/client/docs/struct.SyncEvent.html b/pr/2616/docs/iroh/client/docs/struct.SyncEvent.html index 4e29dd08a4..c8c08c6fef 100644 --- a/pr/2616/docs/iroh/client/docs/struct.SyncEvent.html +++ b/pr/2616/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

pub struct SyncEvent {
     pub peer: PublicKey,
     pub origin: Origin,
     pub finished: SystemTime,
@@ -10,16 +10,16 @@
 
§finished: SystemTime

Timestamp when the sync started

§started: SystemTime

Timestamp when the sync finished

§result: Result<SyncDetails, String>

Result of the sync operation

-

Trait Implementations§

source§

impl Clone for SyncEvent

source§

fn clone(&self) -> SyncEvent

Returns a 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 SyncEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SyncEvent

Trait Implementations§

§

impl Clone for SyncEvent

§

fn clone(&self) -> SyncEvent

Returns a 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 SyncEvent

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for SyncEvent

§

fn deserialize<__D>( __deserializer: __D ) -> Result<SyncEvent, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for SyncEvent

source§

fn eq(&self, other: &SyncEvent) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for SyncEvent

§

fn eq(&self, other: &SyncEvent) -> 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 SyncEvent

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for SyncEvent

§

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 SyncEvent

source§

impl StructuralPartialEq for SyncEvent

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for SyncEvent

§

impl StructuralPartialEq for SyncEvent

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/client/gossip/enum.SubscribeResponse.html b/pr/2616/docs/iroh/client/gossip/enum.SubscribeResponse.html index e4f6b5c235..eaae4c7b27 100644 --- a/pr/2616/docs/iroh/client/gossip/enum.SubscribeResponse.html +++ b/pr/2616/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

pub enum SubscribeResponse {
     Gossip(GossipEvent),
     Lagged,
 }
Expand description

Events emitted from a gossip topic with a lagging notification.

@@ -6,16 +6,16 @@ provide a notification if we missed gossip events for the topic.

Variants§

§

Gossip(GossipEvent)

We received an event.

§

Lagged

We missed some messages because our GossipReceiver was not progressing fast enough.

-

Trait Implementations§

source§

impl Debug for Event

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Event

Trait Implementations§

§

impl Debug for Event

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Event

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Event, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for Event

source§

fn eq(&self, other: &Event) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for Event

§

fn eq(&self, other: &Event) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Event

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for Event

§

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 Event

source§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl !Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for Event

§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl !Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/client/gossip/enum.SubscribeUpdate.html b/pr/2616/docs/iroh/client/gossip/enum.SubscribeUpdate.html index 1cdfc22920..bdd2c42ee5 100644 --- a/pr/2616/docs/iroh/client/gossip/enum.SubscribeUpdate.html +++ b/pr/2616/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

pub enum SubscribeUpdate {
     Broadcast(Bytes),
     BroadcastNeighbors(Bytes),
     JoinPeers(Vec<PublicKey>),
@@ -6,10 +6,10 @@
 

Variants§

§

Broadcast(Bytes)

Broadcast a message to all nodes in the swarm

§

BroadcastNeighbors(Bytes)

Broadcast a message to all direct neighbors

§

JoinPeers(Vec<PublicKey>)

Connect to a set of peers

-

Trait Implementations§

source§

impl Debug for Command

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Command

Trait Implementations§

§

impl Debug for Command

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Command

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Command, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Command

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Serialize for Command

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/docs/actor/index.html b/pr/2616/docs/iroh/docs/actor/index.html index e5df8b4327..0cd98bd68d 100644 --- a/pr/2616/docs/iroh/docs/actor/index.html +++ b/pr/2616/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

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/2616/docs/iroh/docs/actor/struct.OpenOpts.html b/pr/2616/docs/iroh/docs/actor/struct.OpenOpts.html index ac404d4e0f..e72e53b6aa 100644 --- a/pr/2616/docs/iroh/docs/actor/struct.OpenOpts.html +++ b/pr/2616/docs/iroh/docs/actor/struct.OpenOpts.html @@ -1,12 +1,12 @@ -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

pub struct OpenOpts {
     pub sync: bool,
     pub subscribe: Option<Sender<Event>>,
 }
Expand description

Options when opening a replica.

Fields§

§sync: bool

Set to true to set sync state to true.

§subscribe: Option<Sender<Event>>

Optionally subscribe to replica events.

-

Implementations§

source§

impl OpenOpts

source

pub fn sync(self) -> OpenOpts

Set sync state to true.

-
source

pub fn subscribe(self, subscribe: Sender<Event>) -> OpenOpts

Subscribe to replica events.

-

Trait Implementations§

source§

impl Debug for OpenOpts

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for OpenOpts

source§

fn default() -> OpenOpts

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Implementations§

§

impl OpenOpts

pub fn sync(self) -> OpenOpts

Set sync state to true.

+

pub fn subscribe(self, subscribe: Sender<Event>) -> OpenOpts

Subscribe to replica events.

+

Trait Implementations§

§

impl Debug for OpenOpts

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for OpenOpts

§

fn default() -> OpenOpts

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/actor/struct.OpenState.html b/pr/2616/docs/iroh/docs/actor/struct.OpenState.html index b70177e8f8..0002a3ebf4 100644 --- a/pr/2616/docs/iroh/docs/actor/struct.OpenState.html +++ b/pr/2616/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

pub struct OpenState {
     pub sync: bool,
     pub subscribers: usize,
     pub handles: usize,
@@ -6,16 +6,16 @@
 

Fields§

§sync: bool

Whether to accept sync requests for this replica.

§subscribers: usize

How many event subscriptions are open

§handles: usize

By how many handles the replica is currently held open

-

Trait Implementations§

source§

impl Clone for OpenState

source§

fn clone(&self) -> OpenState

Returns a 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 OpenState

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for OpenState

source§

fn default() -> OpenState

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for OpenState

Trait Implementations§

§

impl Clone for OpenState

§

fn clone(&self) -> OpenState

Returns a 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 OpenState

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for OpenState

§

fn default() -> OpenState

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for OpenState

§

fn deserialize<__D>( __deserializer: __D ) -> Result<OpenState, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for OpenState

source§

fn eq(&self, other: &OpenState) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for OpenState

§

fn eq(&self, other: &OpenState) -> 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 OpenState

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for OpenState

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for OpenState

source§

impl Eq for OpenState

source§

impl StructuralPartialEq for OpenState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for OpenState

§

impl Eq for OpenState

§

impl StructuralPartialEq for OpenState

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/actor/struct.SyncHandle.html b/pr/2616/docs/iroh/docs/actor/struct.SyncHandle.html index dc67be9d60..d72eb0aaf3 100644 --- a/pr/2616/docs/iroh/docs/actor/struct.SyncHandle.html +++ b/pr/2616/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

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.

@@ -8,109 +8,109 @@ To prevent this last drop from blocking the calling thread, you can call SyncHandle. This ensures that waiting for the actor to finish happens in an async context, and therefore that the final SyncHandle::drop will not block.

-

Implementations§

source§

impl SyncHandle

source

pub fn spawn( +

Implementations§

§

impl SyncHandle

pub fn spawn( store: Store, content_status_callback: Option<Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync>>, me: String ) -> SyncHandle

Spawn a sync actor and return a handle.

-
source

pub async fn open( +

pub async fn open( &self, namespace: NamespaceId, opts: OpenOpts -) -> Result<(), Error>

source

pub async fn close(&self, namespace: NamespaceId) -> Result<bool, Error>

source

pub async fn subscribe( +) -> Result<(), Error>

pub async fn close(&self, namespace: NamespaceId) -> Result<bool, Error>

pub async fn subscribe( &self, namespace: NamespaceId, sender: Sender<Event> -) -> Result<(), Error>

source

pub async fn unsubscribe( +) -> Result<(), Error>

pub async fn unsubscribe( &self, namespace: NamespaceId, sender: Sender<Event> -) -> Result<(), Error>

source

pub async fn set_sync( +) -> Result<(), Error>

pub async fn set_sync( &self, namespace: NamespaceId, sync: bool -) -> Result<(), Error>

source

pub async fn insert_local( +) -> Result<(), Error>

pub async fn insert_local( &self, namespace: NamespaceId, author: AuthorId, key: Bytes, hash: Hash, len: u64 -) -> Result<(), Error>

source

pub async fn delete_prefix( +) -> Result<(), Error>

pub async fn delete_prefix( &self, namespace: NamespaceId, author: AuthorId, key: Bytes -) -> Result<usize, Error>

source

pub async fn insert_remote( +) -> Result<usize, Error>

pub async fn insert_remote( &self, namespace: NamespaceId, entry: SignedEntry, from: [u8; 32], content_status: ContentStatus -) -> Result<(), Error>

source

pub async fn sync_initial_message( +) -> Result<(), Error>

pub async fn sync_initial_message( &self, namespace: NamespaceId -) -> Result<Message<SignedEntry>, Error>

source

pub async fn sync_process_message( +) -> Result<Message<SignedEntry>, Error>

pub async fn sync_process_message( &self, namespace: NamespaceId, message: Message<SignedEntry>, from: [u8; 32], state: SyncOutcome -) -> Result<(Option<Message<SignedEntry>>, SyncOutcome), Error>

source

pub async fn get_sync_peers( +) -> Result<(Option<Message<SignedEntry>>, SyncOutcome), Error>

pub async fn get_sync_peers( &self, namespace: NamespaceId -) -> Result<Option<Vec<[u8; 32]>>, Error>

source

pub async fn register_useful_peer( +) -> Result<Option<Vec<[u8; 32]>>, Error>

pub async fn register_useful_peer( &self, namespace: NamespaceId, peer: [u8; 32] -) -> Result<(), Error>

source

pub async fn has_news_for_us( +) -> Result<(), Error>

pub async fn has_news_for_us( &self, namespace: NamespaceId, heads: AuthorHeads -) -> Result<Option<NonZero<u64>>, Error>

source

pub async fn get_many( +) -> Result<Option<NonZero<u64>>, Error>

pub async fn get_many( &self, namespace: NamespaceId, query: Query, reply: Sender<Result<SignedEntry, Error>> -) -> Result<(), Error>

source

pub async fn get_exact( +) -> Result<(), Error>

pub async fn get_exact( &self, namespace: NamespaceId, author: AuthorId, key: Bytes, include_empty: bool -) -> Result<Option<SignedEntry>, Error>

source

pub async fn drop_replica(&self, namespace: NamespaceId) -> Result<(), Error>

source

pub async fn export_secret_key( +) -> Result<Option<SignedEntry>, Error>

pub async fn drop_replica(&self, namespace: NamespaceId) -> Result<(), Error>

pub async fn export_secret_key( &self, namespace: NamespaceId -) -> Result<NamespaceSecret, Error>

source

pub async fn get_state( +) -> Result<NamespaceSecret, Error>

pub async fn get_state( &self, namespace: NamespaceId -) -> Result<OpenState, Error>

source

pub async fn shutdown(&self) -> Result<Store, Error>

source

pub async fn list_authors( +) -> Result<OpenState, Error>

pub async fn shutdown(&self) -> Result<Store, Error>

pub async fn list_authors( &self, reply: Sender<Result<AuthorId, Error>> -) -> Result<(), Error>

source

pub async fn list_replicas( +) -> Result<(), Error>

pub async fn list_replicas( &self, reply: Sender<Result<(NamespaceId, CapabilityKind), Error>> -) -> Result<(), Error>

source

pub async fn import_author(&self, author: Author) -> Result<AuthorId, Error>

source

pub async fn export_author( +) -> Result<(), Error>

pub async fn import_author(&self, author: Author) -> Result<AuthorId, Error>

pub async fn export_author( &self, author: AuthorId -) -> Result<Option<Author>, Error>

source

pub async fn delete_author(&self, author: AuthorId) -> Result<(), Error>

source

pub async fn import_namespace( +) -> Result<Option<Author>, Error>

pub async fn delete_author(&self, author: AuthorId) -> Result<(), Error>

pub async fn import_namespace( &self, capability: Capability -) -> Result<NamespaceId, Error>

source

pub async fn get_download_policy( +) -> Result<NamespaceId, Error>

pub async fn get_download_policy( &self, namespace: NamespaceId -) -> Result<DownloadPolicy, Error>

source

pub async fn set_download_policy( +) -> Result<DownloadPolicy, Error>

pub async fn set_download_policy( &self, namespace: NamespaceId, policy: DownloadPolicy -) -> Result<(), Error>

source

pub async fn content_hashes(&self) -> Result<ContentHashesIterator, Error>

source

pub async fn flush_store(&self) -> Result<(), Error>

Makes sure that all pending database operations are persisted to disk.

+) -> Result<(), Error>

pub async fn content_hashes(&self) -> Result<ContentHashesIterator, Error>

pub async fn flush_store(&self) -> Result<(), Error>

Makes sure that all pending database operations are persisted to disk.

Otherwise, database operations are batched into bigger transactions for speed. Use this if you need to make sure something is written to the database before another operation, e.g. to make sure sudden process exits don’t corrupt your application state.

It’s not necessary to call this function before shutdown, as shutdown will trigger a flush on its own.

-

Trait Implementations§

source§

impl Clone for SyncHandle

source§

fn clone(&self) -> SyncHandle

Returns a 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 SyncHandle

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Drop for SyncHandle

source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for SyncHandle

§

fn clone(&self) -> SyncHandle

Returns a 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 SyncHandle

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Drop for SyncHandle

§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/constant.MAX_TIMESTAMP_FUTURE_SHIFT.html b/pr/2616/docs/iroh/docs/constant.MAX_TIMESTAMP_FUTURE_SHIFT.html index 7ffb587ae7..394b1f5ee4 100644 --- a/pr/2616/docs/iroh/docs/constant.MAX_TIMESTAMP_FUTURE_SHIFT.html +++ b/pr/2616/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

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/2616/docs/iroh/docs/engine/enum.DefaultAuthorStorage.html b/pr/2616/docs/iroh/docs/engine/enum.DefaultAuthorStorage.html index 6f02c2a135..20c947285c 100644 --- a/pr/2616/docs/iroh/docs/engine/enum.DefaultAuthorStorage.html +++ b/pr/2616/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

pub enum DefaultAuthorStorage {
     Mem,
     Persistent(PathBuf),
 }
Expand description

Where to persist the default author.

@@ -8,12 +8,12 @@ engine. Changing the default author will not be persisted.

path (as base32 encoded string of the author’s public key).

Variants§

§

Mem

Memory storage.

§

Persistent(PathBuf)

File based persistent storage.

-

Implementations§

source§

impl DefaultAuthorStorage

source

pub async fn load(&self, docs_store: &SyncHandle) -> Result<AuthorId, Error>

Load the default author from the storage.

+

Implementations§

§

impl DefaultAuthorStorage

pub async fn load(&self, docs_store: &SyncHandle) -> Result<AuthorId, Error>

Load the default author from the storage.

Will create and save a new author if the storage is empty.

Returns an error if the author can’t be parsed or if the uathor does not exist in the docs store.

-
source

pub async fn persist(&self, author_id: AuthorId) -> Result<(), Error>

Save a new default author.

-

Trait Implementations§

source§

impl Debug for DefaultAuthorStorage

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

pub async fn persist(&self, author_id: AuthorId) -> Result<(), Error>

Save a new default author.

+

Trait Implementations§

§

impl Debug for DefaultAuthorStorage

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/engine/enum.LiveEvent.html b/pr/2616/docs/iroh/docs/engine/enum.LiveEvent.html index 70f676e9c5..297d73a6a6 100644 --- a/pr/2616/docs/iroh/docs/engine/enum.LiveEvent.html +++ b/pr/2616/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

pub enum LiveEvent {
     InsertLocal {
         entry: Entry,
     },
@@ -32,16 +32,16 @@ blobs failed to download, this event will still be emitted after all operations
 
§

NeighborUp(PublicKey)

We have a new neighbor in the swarm.

§

NeighborDown(PublicKey)

We lost a neighbor in the swarm.

§

SyncFinished(SyncEvent)

A set-reconciliation sync finished.

-

Trait Implementations§

source§

impl Clone for LiveEvent

source§

fn clone(&self) -> LiveEvent

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LiveEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for LiveEvent

Trait Implementations§

§

impl Clone for LiveEvent

§

fn clone(&self) -> LiveEvent

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for LiveEvent

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for LiveEvent

§

fn deserialize<__D>( __deserializer: __D ) -> Result<LiveEvent, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for LiveEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<Event> for LiveEvent

source§

fn from(ev: Event) -> LiveEvent

Converts to this type from the input type.
source§

impl From<LiveEvent> for LiveEvent

source§

fn from(event: LiveEvent) -> LiveEvent

Converts to this type from the input type.
source§

impl PartialEq for LiveEvent

source§

fn eq(&self, other: &LiveEvent) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for LiveEvent

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<Event> for LiveEvent

§

fn from(ev: Event) -> LiveEvent

Converts to this type from the input type.
source§

impl From<LiveEvent> for LiveEvent

source§

fn from(event: LiveEvent) -> LiveEvent

Converts to this type from the input type.
§

impl PartialEq for LiveEvent

§

fn eq(&self, other: &LiveEvent) -> 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 LiveEvent

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for LiveEvent

§

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 LiveEvent

source§

impl StructuralPartialEq for LiveEvent

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for LiveEvent

§

impl StructuralPartialEq for LiveEvent

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/engine/enum.Origin.html b/pr/2616/docs/iroh/docs/engine/enum.Origin.html index a7e7ce44ae..8c5fe804b3 100644 --- a/pr/2616/docs/iroh/docs/engine/enum.Origin.html +++ b/pr/2616/docs/iroh/docs/engine/enum.Origin.html @@ -1,19 +1,19 @@ -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

pub enum Origin {
     Connect(SyncReason),
     Accept,
 }
Expand description

Why we performed a sync exchange

Variants§

§

Connect(SyncReason)

We initiated the exchange

§

Accept

A node connected to us and we accepted the exchange

-

Trait Implementations§

source§

impl Clone for Origin

source§

fn clone(&self) -> Origin

Returns a 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 Origin

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Origin

Trait Implementations§

§

impl Clone for Origin

§

fn clone(&self) -> Origin

Returns a 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 Origin

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Origin

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Origin, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for Origin

source§

fn eq(&self, other: &Origin) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for Origin

§

fn eq(&self, other: &Origin) -> 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 Origin

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for Origin

§

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 Origin

source§

impl StructuralPartialEq for Origin

Auto Trait Implementations§

§

impl Freeze for Origin

§

impl RefUnwindSafe for Origin

§

impl Send for Origin

§

impl Sync for Origin

§

impl Unpin for Origin

§

impl UnwindSafe for Origin

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for Origin

§

impl StructuralPartialEq for Origin

Auto Trait Implementations§

§

impl Freeze for Origin

§

impl RefUnwindSafe for Origin

§

impl Send for Origin

§

impl Sync for Origin

§

impl Unpin for Origin

§

impl UnwindSafe for Origin

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/engine/enum.SyncReason.html b/pr/2616/docs/iroh/docs/engine/enum.SyncReason.html index 07929ea51d..009ad3033c 100644 --- a/pr/2616/docs/iroh/docs/engine/enum.SyncReason.html +++ b/pr/2616/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

pub enum SyncReason {
     DirectJoin,
     NewNeighbor,
     SyncReport,
@@ -8,16 +8,16 @@
 
§

NewNeighbor

Peer showed up as new neighbor in the gossip swarm

§

SyncReport

We synced after receiving a sync report that indicated news for us

§

Resync

We received a sync report while a sync was running, so run again afterwars

-

Trait Implementations§

source§

impl Clone for SyncReason

source§

fn clone(&self) -> SyncReason

Returns a 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 SyncReason

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SyncReason

Trait Implementations§

§

impl Clone for SyncReason

§

fn clone(&self) -> SyncReason

Returns a 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 SyncReason

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for SyncReason

§

fn deserialize<__D>( __deserializer: __D ) -> Result<SyncReason, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for SyncReason

source§

fn eq(&self, other: &SyncReason) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for SyncReason

§

fn eq(&self, other: &SyncReason) -> 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 SyncReason

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for SyncReason

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for SyncReason

source§

impl Eq for SyncReason

source§

impl StructuralPartialEq for SyncReason

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for SyncReason

§

impl Eq for SyncReason

§

impl StructuralPartialEq for SyncReason

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/engine/fn.entry_to_content_status.html b/pr/2616/docs/iroh/docs/engine/fn.entry_to_content_status.html index 1495757787..0aa9046edd 100644 --- a/pr/2616/docs/iroh/docs/engine/fn.entry_to_content_status.html +++ b/pr/2616/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

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/2616/docs/iroh/docs/engine/index.html b/pr/2616/docs/iroh/docs/engine/index.html index 55cb8d0031..8ce5128a51 100644 --- a/pr/2616/docs/iroh/docs/engine/index.html +++ b/pr/2616/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

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/2616/docs/iroh/docs/engine/struct.DefaultAuthor.html b/pr/2616/docs/iroh/docs/engine/struct.DefaultAuthor.html index a377d60c1f..519cce9c20 100644 --- a/pr/2616/docs/iroh/docs/engine/struct.DefaultAuthor.html +++ b/pr/2616/docs/iroh/docs/engine/struct.DefaultAuthor.html @@ -1,16 +1,16 @@ -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( +DefaultAuthor in iroh::docs::engine - Rust

Struct iroh::docs::engine::DefaultAuthor

pub struct DefaultAuthor { /* private fields */ }
Expand description

Persistent default author for a docs engine.

+

Implementations§

§

impl DefaultAuthor

pub async fn load( storage: DefaultAuthorStorage, docs_store: &SyncHandle ) -> Result<DefaultAuthor, Error>

Load the default author from storage.

If the storage is empty creates a new author and persists it.

-
source

pub fn get(&self) -> AuthorId

Get the current default author.

-
source

pub async fn set( +

pub fn get(&self) -> AuthorId

Get the current default author.

+

pub async fn set( &self, author_id: AuthorId, docs_store: &SyncHandle ) -> Result<(), Error>

Set the default author.

-

Trait Implementations§

source§

impl Debug for DefaultAuthor

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for DefaultAuthor

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/engine/struct.Engine.html b/pr/2616/docs/iroh/docs/engine/struct.Engine.html index 962a5d2401..cfa60a67ae 100644 --- a/pr/2616/docs/iroh/docs/engine/struct.Engine.html +++ b/pr/2616/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

pub struct Engine {
     pub endpoint: Endpoint,
     pub sync: SyncHandle,
     pub default_author: Arc<DefaultAuthor>,
@@ -8,7 +8,7 @@ peers and a gossip swarm for each syncing document.

Fields§

§endpoint: Endpoint

Endpoint used by the engine.

§sync: SyncHandle

Handle to the actor thread.

§default_author: Arc<DefaultAuthor>

The persistent default author for this engine.

-

Implementations§

source§

impl Engine

source

pub async fn spawn<B>( +

Implementations§

§

impl Engine

pub async fn spawn<B>( endpoint: Endpoint, gossip: Gossip, replica_store: Store, @@ -19,27 +19,27 @@ peers and a gossip swarm for each syncing document.

B: Store,

Start the sync engine.

This will spawn two tokio tasks for the live sync coordination and gossip actors, and a thread for the crate::actor::SyncHandle.

-
source

pub async fn start_sync( +

pub async fn start_sync( &self, namespace: NamespaceId, peers: Vec<NodeAddr> ) -> Result<(), Error>

Start to sync a document.

If peers is non-empty, it will both do an initial set-reconciliation sync with each peer, and join an iroh-gossip swarm with these peers to receive and broadcast document updates.

-
source

pub async fn leave( +

pub async fn leave( &self, namespace: NamespaceId, kill_subscribers: bool ) -> Result<(), Error>

Stop the live sync for a document and leave the gossip swarm.

If kill_subscribers is true, all existing event subscribers will be dropped. This means they will receive None and no further events in case of rejoining the document.

-
source

pub async fn subscribe( +

pub async fn subscribe( &self, namespace: NamespaceId ) -> Result<impl Stream<Item = Result<LiveEvent, Error>> + Unpin + 'static, Error>

Subscribe to replica and sync progress events.

-
source

pub async fn handle_connection(&self, conn: Connecting) -> Result<(), Error>

Handle an incoming iroh-docs connection.

-
source

pub async fn shutdown(&self) -> Result<(), Error>

Shutdown the engine.

-

Trait Implementations§

source§

impl Clone for Engine

source§

fn clone(&self) -> Engine

Returns a 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 Engine

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Engine

§

impl !RefUnwindSafe for Engine

§

impl Send for Engine

§

impl Sync for Engine

§

impl Unpin for Engine

§

impl !UnwindSafe for Engine

Blanket Implementations§

source§

impl<T> Any for T
where +

pub async fn handle_connection(&self, conn: Connecting) -> Result<(), Error>

Handle an incoming iroh-docs connection.

+

pub async fn shutdown(&self) -> Result<(), Error>

Shutdown the engine.

+

Trait Implementations§

§

impl Clone for Engine

§

fn clone(&self) -> Engine

Returns a 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 Engine

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Engine

§

impl !RefUnwindSafe for Engine

§

impl Send for Engine

§

impl Sync for Engine

§

impl Unpin for Engine

§

impl !UnwindSafe for Engine

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/engine/struct.SyncEvent.html b/pr/2616/docs/iroh/docs/engine/struct.SyncEvent.html index 7919162927..1129bc61d1 100644 --- a/pr/2616/docs/iroh/docs/engine/struct.SyncEvent.html +++ b/pr/2616/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

pub struct SyncEvent {
     pub peer: PublicKey,
     pub origin: Origin,
     pub finished: SystemTime,
@@ -10,16 +10,16 @@
 
§finished: SystemTime

Timestamp when the sync started

§started: SystemTime

Timestamp when the sync finished

§result: Result<SyncDetails, String>

Result of the sync operation

-

Trait Implementations§

source§

impl Clone for SyncEvent

source§

fn clone(&self) -> SyncEvent

Returns a 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 SyncEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SyncEvent

Trait Implementations§

§

impl Clone for SyncEvent

§

fn clone(&self) -> SyncEvent

Returns a 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 SyncEvent

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for SyncEvent

§

fn deserialize<__D>( __deserializer: __D ) -> Result<SyncEvent, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for SyncEvent

source§

fn eq(&self, other: &SyncEvent) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for SyncEvent

§

fn eq(&self, other: &SyncEvent) -> 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 SyncEvent

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for SyncEvent

§

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 SyncEvent

source§

impl StructuralPartialEq for SyncEvent

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for SyncEvent

§

impl StructuralPartialEq for SyncEvent

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/enum.Capability.html b/pr/2616/docs/iroh/docs/enum.Capability.html index cefe52640e..ab0559e13c 100644 --- a/pr/2616/docs/iroh/docs/enum.Capability.html +++ b/pr/2616/docs/iroh/docs/enum.Capability.html @@ -1,22 +1,22 @@ -Capability in iroh::docs - Rust

Enum iroh::docs::Capability

source ·
pub enum Capability {
+Capability in iroh::docs - Rust

Enum iroh::docs::Capability

pub enum Capability {
     Write(NamespaceSecret),
     Read(NamespaceId),
 }
Expand description

The capability of the namespace.

Variants§

§

Write(NamespaceSecret)

Write access to the namespace.

§

Read(NamespaceId)

Read only access to the namespace.

-

Implementations§

source§

impl Capability

source

pub fn id(&self) -> NamespaceId

Get the NamespaceId for this Capability.

-
source

pub fn secret_key(&self) -> Result<&NamespaceSecret, ReadOnly>

Get the NamespaceSecret of this Capability. +

Implementations§

§

impl Capability

pub fn id(&self) -> NamespaceId

Get the NamespaceId for this Capability.

+

pub fn secret_key(&self) -> Result<&NamespaceSecret, ReadOnly>

Get the NamespaceSecret of this Capability. Will fail if the Capability is read only.

-
source

pub fn kind(&self) -> CapabilityKind

Get the kind of capability.

-
source

pub fn raw(&self) -> (u8, [u8; 32])

Get the raw representation of this namespace capability.

-
source

pub fn from_raw(kind: u8, bytes: &[u8; 32]) -> Result<Capability, Error>

Create a Capability from its raw representation.

-
source

pub fn merge(&mut self, other: Capability) -> Result<bool, CapabilityError>

Merge this capability with another capability.

+

pub fn kind(&self) -> CapabilityKind

Get the kind of capability.

+

pub fn raw(&self) -> (u8, [u8; 32])

Get the raw representation of this namespace capability.

+

pub fn from_raw(kind: u8, bytes: &[u8; 32]) -> Result<Capability, Error>

Create a Capability from its raw representation.

+

pub fn merge(&mut self, other: Capability) -> Result<bool, CapabilityError>

Merge this capability with another capability.

Will return an error if other is not a capability for the same namespace.

Returns true if the capability was changed, false otherwise.

-

Trait Implementations§

source§

impl Clone for Capability

source§

fn clone(&self) -> Capability

Returns a 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 Capability

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Capability

Trait Implementations§

§

impl Clone for Capability

§

fn clone(&self) -> Capability

Returns a 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 Capability

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Capability

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Capability, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<NamespaceId> for Capability

source§

fn from(value: NamespaceId) -> Capability

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 Serialize for Capability

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl From<NamespaceId> for Capability

§

fn from(value: NamespaceId) -> Capability

Converts to this type from the input type.
§

impl From<NamespaceSecret> for Capability

§

fn from(value: NamespaceSecret) -> Capability

Converts to this type from the input type.
§

impl Serialize for Capability

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/docs/enum.CapabilityError.html b/pr/2616/docs/iroh/docs/enum.CapabilityError.html index cdaa612419..bea895788f 100644 --- a/pr/2616/docs/iroh/docs/enum.CapabilityError.html +++ b/pr/2616/docs/iroh/docs/enum.CapabilityError.html @@ -1,8 +1,8 @@ -CapabilityError in iroh::docs - Rust

Enum iroh::docs::CapabilityError

source ·
pub enum CapabilityError {
+CapabilityError in iroh::docs - Rust

Enum iroh::docs::CapabilityError

pub enum CapabilityError {
     NamespaceMismatch,
 }
Expand description

Errors for capability operations

Variants§

§

NamespaceMismatch

Namespaces are not the same

-

Trait Implementations§

source§

impl Debug for CapabilityError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for CapabilityError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for CapabilityError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for CapabilityError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for CapabilityError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for CapabilityError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/enum.CapabilityKind.html b/pr/2616/docs/iroh/docs/enum.CapabilityKind.html index e96ab579f3..8b61a16726 100644 --- a/pr/2616/docs/iroh/docs/enum.CapabilityKind.html +++ b/pr/2616/docs/iroh/docs/enum.CapabilityKind.html @@ -1,21 +1,21 @@ -CapabilityKind in iroh::docs - Rust

Enum iroh::docs::CapabilityKind

source ·
#[repr(u8)]
pub enum CapabilityKind { +CapabilityKind in iroh::docs - Rust

Enum iroh::docs::CapabilityKind

#[repr(u8)]
pub enum CapabilityKind { Write = 1, Read = 2, }
Expand description

Kind of capability of the namespace.

Variants§

§

Write = 1

A writable replica.

§

Read = 2

A readable replica.

-

Trait Implementations§

source§

impl Clone for CapabilityKind

source§

fn clone(&self) -> CapabilityKind

Returns a 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 CapabilityKind

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for CapabilityKind

Trait Implementations§

§

impl Clone for CapabilityKind

§

fn clone(&self) -> CapabilityKind

Returns a 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 CapabilityKind

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for CapabilityKind

§

fn deserialize<__D>( __deserializer: __D ) -> Result<CapabilityKind, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for CapabilityKind

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Serialize for CapabilityKind

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl Display for CapabilityKind

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Serialize for CapabilityKind

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<u8> for CapabilityKind

§

type Error = TryFromPrimitiveError<CapabilityKind>

The type returned in the event of a conversion error.
source§

fn try_from( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl TryFrom<u8> for CapabilityKind

§

type Error = TryFromPrimitiveError<CapabilityKind>

The type returned in the event of a conversion error.
§

fn try_from( number: u8 -) -> Result<CapabilityKind, TryFromPrimitiveError<CapabilityKind>>

Performs the conversion.
source§

impl TryFromPrimitive for CapabilityKind

§

type Primitive = u8

§

type Error = TryFromPrimitiveError<CapabilityKind>

source§

const NAME: &'static str = "CapabilityKind"

source§

fn try_from_primitive( +) -> Result<CapabilityKind, TryFromPrimitiveError<CapabilityKind>>

Performs the conversion.
§

impl TryFromPrimitive for CapabilityKind

§

type Primitive = u8

§

type Error = TryFromPrimitiveError<CapabilityKind>

§

const NAME: &'static str = "CapabilityKind"

§

fn try_from_primitive( number: <CapabilityKind as TryFromPrimitive>::Primitive -) -> Result<CapabilityKind, TryFromPrimitiveError<CapabilityKind>>

source§

impl Copy for CapabilityKind

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +) -> Result<CapabilityKind, TryFromPrimitiveError<CapabilityKind>>

§

impl Copy for CapabilityKind

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/enum.ContentStatus.html b/pr/2616/docs/iroh/docs/enum.ContentStatus.html index af22ddf1de..0848899d63 100644 --- a/pr/2616/docs/iroh/docs/enum.ContentStatus.html +++ b/pr/2616/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

pub enum ContentStatus {
     Complete,
     Incomplete,
     Missing,
@@ -6,16 +6,16 @@
 

Variants§

§

Complete

The content is completely available.

§

Incomplete

The content is partially available.

§

Missing

The content is missing.

-

Trait Implementations§

source§

impl Clone for ContentStatus

source§

fn clone(&self) -> ContentStatus

Returns a 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 ContentStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ContentStatus

Trait Implementations§

§

impl Clone for ContentStatus

§

fn clone(&self) -> ContentStatus

Returns a 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 ContentStatus

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for ContentStatus

§

fn deserialize<__D>( __deserializer: __D ) -> Result<ContentStatus, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for ContentStatus

source§

fn eq(&self, other: &ContentStatus) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for ContentStatus

§

fn eq(&self, other: &ContentStatus) -> 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 ContentStatus

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for ContentStatus

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for ContentStatus

source§

impl Eq for ContentStatus

source§

impl StructuralPartialEq for ContentStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for ContentStatus

§

impl Eq for ContentStatus

§

impl StructuralPartialEq for ContentStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/enum.Event.html b/pr/2616/docs/iroh/docs/enum.Event.html index 23ac1a23d0..b6a635bb4e 100644 --- a/pr/2616/docs/iroh/docs/enum.Event.html +++ b/pr/2616/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

pub enum Event {
     LocalInsert {
         namespace: NamespaceId,
         entry: SignedEntry,
@@ -20,7 +20,7 @@
 
§from: [u8; 32]

Peer that provided the inserted entry.

§should_download: bool

Whether download policies require the content to be downloaded.

§remote_content_status: ContentStatus

ContentStatus for this entry in the remote’s replica.

-

Trait Implementations§

source§

impl Clone for Event

source§

fn clone(&self) -> Event

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Event

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for Event

§

fn clone(&self) -> Event

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Event

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/enum.InsertError.html b/pr/2616/docs/iroh/docs/enum.InsertError.html index 0dfc160bcd..05433de1ad 100644 --- a/pr/2616/docs/iroh/docs/enum.InsertError.html +++ b/pr/2616/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

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§

§

impl Debug for InsertError

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for InsertError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for InsertError

§

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<ReadOnly> for InsertError

§

fn from(value: ReadOnly) -> InsertError

Converts to this type from the input type.
§

impl From<ValidationFailure> for InsertError

§

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 diff --git a/pr/2616/docs/iroh/docs/enum.InsertOrigin.html b/pr/2616/docs/iroh/docs/enum.InsertOrigin.html index 797a34769a..8c7011ed02 100644 --- a/pr/2616/docs/iroh/docs/enum.InsertOrigin.html +++ b/pr/2616/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

pub enum InsertOrigin {
     Local,
     Sync {
         from: [u8; 32],
@@ -9,7 +9,7 @@
 
§

Sync

The entry was received from the remote node identified by PeerIdBytes.

Fields

§from: [u8; 32]

The peer from which we received this entry.

§remote_content_status: ContentStatus

Whether the peer claims to have the content blob for this entry.

-

Trait Implementations§

source§

impl Clone for InsertOrigin

source§

fn clone(&self) -> InsertOrigin

Returns a 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 InsertOrigin

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for InsertOrigin

§

fn clone(&self) -> InsertOrigin

Returns a 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 InsertOrigin

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/enum.ValidationFailure.html b/pr/2616/docs/iroh/docs/enum.ValidationFailure.html index c39b2c9c14..780e451c2d 100644 --- a/pr/2616/docs/iroh/docs/enum.ValidationFailure.html +++ b/pr/2616/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

pub enum ValidationFailure {
     InvalidNamespace,
     BadSignature,
     TooFarInTheFuture,
@@ -8,7 +8,7 @@
 
§

BadSignature

Entry signature is invalid.

§

TooFarInTheFuture

Entry timestamp is too far in the future.

§

InvalidEmptyEntry

Entry has length 0 but not the empty hash, or the empty hash but not length 0.

-

Trait Implementations§

source§

impl Debug for ValidationFailure

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for ValidationFailure

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for ValidationFailure

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<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§

§

impl Debug for ValidationFailure

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ValidationFailure

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ValidationFailure

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<ValidationFailure> for InsertError

§

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 diff --git a/pr/2616/docs/iroh/docs/index.html b/pr/2616/docs/iroh/docs/index.html index e5f4d72dab..5e326e9cbb 100644 --- a/pr/2616/docs/iroh/docs/index.html +++ b/pr/2616/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

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/2616/docs/iroh/docs/metrics/index.html b/pr/2616/docs/iroh/docs/metrics/index.html index bccafca7cc..31ce1319c1 100644 --- a/pr/2616/docs/iroh/docs/metrics/index.html +++ b/pr/2616/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

Expand description

Metrics for iroh-docs

Structs§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/docs/metrics/struct.Metrics.html b/pr/2616/docs/iroh/docs/metrics/struct.Metrics.html index 7ccaa92ef0..3883791ade 100644 --- a/pr/2616/docs/iroh/docs/metrics/struct.Metrics.html +++ b/pr/2616/docs/iroh/docs/metrics/struct.Metrics.html @@ -1,27 +1,27 @@ -Metrics in iroh::docs::metrics - Rust

Struct iroh::docs::metrics::Metrics

source ·
pub struct Metrics {
Show 19 fields - pub new_entries_local: Counter, - pub new_entries_remote: Counter, - pub new_entries_local_size: Counter, - pub new_entries_remote_size: Counter, - pub sync_via_connect_success: Counter, - pub sync_via_connect_failure: Counter, - pub sync_via_accept_success: Counter, - pub sync_via_accept_failure: Counter, - pub actor_tick_main: Counter, - pub doc_gossip_tick_main: Counter, - pub doc_gossip_tick_event: Counter, - pub doc_gossip_tick_actor: Counter, - pub doc_gossip_tick_pending_join: Counter, - pub doc_live_tick_main: Counter, - pub doc_live_tick_actor: Counter, - pub doc_live_tick_replica_event: Counter, - pub doc_live_tick_running_sync_connect: Counter, - pub doc_live_tick_running_sync_accept: Counter, - pub doc_live_tick_pending_downloads: Counter, +Metrics in iroh::docs::metrics - Rust

Struct iroh::docs::metrics::Metrics

pub struct Metrics {
Show 19 fields + pub new_entries_local: Counter, + pub new_entries_remote: Counter, + pub new_entries_local_size: Counter, + pub new_entries_remote_size: Counter, + pub sync_via_connect_success: Counter, + pub sync_via_connect_failure: Counter, + pub sync_via_accept_success: Counter, + pub sync_via_accept_failure: Counter, + pub actor_tick_main: Counter, + pub doc_gossip_tick_main: Counter, + pub doc_gossip_tick_event: Counter, + pub doc_gossip_tick_actor: Counter, + pub doc_gossip_tick_pending_join: Counter, + pub doc_live_tick_main: Counter, + pub doc_live_tick_actor: Counter, + pub doc_live_tick_replica_event: Counter, + pub doc_live_tick_running_sync_connect: Counter, + pub doc_live_tick_running_sync_accept: Counter, + pub doc_live_tick_pending_downloads: Counter,
}
Expand description

Metrics for iroh-docs

-

Fields§

§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: Counter

Trait Implementations§

source§

impl Clone for Metrics

source§

fn clone(&self) -> Metrics

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Metrics

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), 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 +

Fields§

§new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: Counter

Trait Implementations§

§

impl Clone for Metrics

§

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
§

impl Debug for Metrics

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Metrics

§

fn default() -> Metrics

Returns the “default value” for a type. Read more
§

impl Iterable for Metrics

§

fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a (dyn Any + 'static))>

Returns an iterator over the struct’s fields as tuples. Read more
§

impl Metric for Metrics

§

fn name() -> &'static str

The name of this metric group.
§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
§

fn with_metric<T, F>(f: F)
where F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
source§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +Only records if this metric is registered in the global registry.

§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/net/constant.DOCS_ALPN.html b/pr/2616/docs/iroh/docs/net/constant.DOCS_ALPN.html index 49dee7de63..c6b50468f1 100644 --- a/pr/2616/docs/iroh/docs/net/constant.DOCS_ALPN.html +++ b/pr/2616/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

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/2616/docs/iroh/docs/net/enum.AbortReason.html b/pr/2616/docs/iroh/docs/net/enum.AbortReason.html index 147d1b75ab..bca5dc1512 100644 --- a/pr/2616/docs/iroh/docs/net/enum.AbortReason.html +++ b/pr/2616/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

pub enum AbortReason {
     NotFound,
     AlreadySyncing,
     InternalServerError,
@@ -6,16 +6,16 @@
 

Variants§

§

NotFound

Namespace is not available.

§

AlreadySyncing

We are already syncing this namespace.

§

InternalServerError

We experienced an error while trying to provide the requested resource

-

Trait Implementations§

source§

impl Clone for AbortReason

source§

fn clone(&self) -> AbortReason

Returns a 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 AbortReason

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for AbortReason

Trait Implementations§

§

impl Clone for AbortReason

§

fn clone(&self) -> AbortReason

Returns a 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 AbortReason

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for AbortReason

§

fn deserialize<__D>( __deserializer: __D ) -> Result<AbortReason, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for AbortReason

source§

fn eq(&self, other: &AbortReason) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for AbortReason

§

fn eq(&self, other: &AbortReason) -> 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 AbortReason

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for AbortReason

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for AbortReason

source§

impl Eq for AbortReason

source§

impl StructuralPartialEq for AbortReason

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for AbortReason

§

impl Eq for AbortReason

§

impl StructuralPartialEq for AbortReason

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/net/enum.AcceptError.html b/pr/2616/docs/iroh/docs/net/enum.AcceptError.html index 78521a3e79..ac2f571e37 100644 --- a/pr/2616/docs/iroh/docs/net/enum.AcceptError.html +++ b/pr/2616/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

pub enum AcceptError {
     Connect {
         error: Error,
     },
@@ -27,9 +27,9 @@
 

Fields

§error: Error
§

Abort

We aborted the sync request.

Fields

§namespace: NamespaceId
§

Sync

Failed to run sync

Fields

§namespace: Option<NamespaceId>
§error: Error
§

Close

Failed to close

-

Fields

§namespace: Option<NamespaceId>
§error: Error

Implementations§

source§

impl AcceptError

source

pub fn peer(&self) -> Option<PublicKey>

Get the peer’s node ID (if available)

-
source

pub fn namespace(&self) -> Option<NamespaceId>

Get the namespace (if available)

-

Trait Implementations§

source§

impl Debug for AcceptError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for AcceptError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for AcceptError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Fields

§namespace: Option<NamespaceId>
§error: Error

Implementations§

§

impl AcceptError

pub fn peer(&self) -> Option<PublicKey>

Get the peer’s node ID (if available)

+

pub fn namespace(&self) -> Option<NamespaceId>

Get the namespace (if available)

+

Trait Implementations§

§

impl Debug for AcceptError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for AcceptError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for AcceptError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/net/enum.AcceptOutcome.html b/pr/2616/docs/iroh/docs/net/enum.AcceptOutcome.html index fe092f0f02..3519440c98 100644 --- a/pr/2616/docs/iroh/docs/net/enum.AcceptOutcome.html +++ b/pr/2616/docs/iroh/docs/net/enum.AcceptOutcome.html @@ -1,10 +1,10 @@ -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

pub enum AcceptOutcome {
     Allow,
     Reject(AbortReason),
 }
Expand description

Whether we want to accept or reject an incoming sync request.

Variants§

§

Allow

Accept the sync request.

§

Reject(AbortReason)

Decline the sync request

-

Trait Implementations§

source§

impl Clone for AcceptOutcome

source§

fn clone(&self) -> AcceptOutcome

Returns a 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 AcceptOutcome

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for AcceptOutcome

§

fn clone(&self) -> AcceptOutcome

Returns a 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 AcceptOutcome

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/net/enum.ConnectError.html b/pr/2616/docs/iroh/docs/net/enum.ConnectError.html index b3df458fc9..512355bb37 100644 --- a/pr/2616/docs/iroh/docs/net/enum.ConnectError.html +++ b/pr/2616/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

pub enum ConnectError {
     Connect {
         error: Error,
     },
@@ -14,7 +14,7 @@
 

Fields

§error: Error
§

RemoteAbort(AbortReason)

The remote peer aborted the sync request.

§

Sync

Failed to run sync

Fields

§error: Error
§

Close

Failed to close

-

Fields

§error: Error

Trait Implementations§

source§

impl Debug for ConnectError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for ConnectError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for ConnectError

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 +

Fields

§error: Error

Trait Implementations§

§

impl Debug for ConnectError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ConnectError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ConnectError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/net/fn.connect_and_sync.html b/pr/2616/docs/iroh/docs/net/fn.connect_and_sync.html index c100ecfb77..d9e5a3f872 100644 --- a/pr/2616/docs/iroh/docs/net/fn.connect_and_sync.html +++ b/pr/2616/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

pub async fn connect_and_sync(
     endpoint: &Endpoint,
     sync: &SyncHandle,
     namespace: NamespaceId,
diff --git a/pr/2616/docs/iroh/docs/net/fn.handle_connection.html b/pr/2616/docs/iroh/docs/net/fn.handle_connection.html
index 732a4315f9..84c46867f6 100644
--- a/pr/2616/docs/iroh/docs/net/fn.handle_connection.html
+++ b/pr/2616/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

pub async fn handle_connection<F, Fut>(
     sync: SyncHandle,
     connecting: Connecting,
     accept_cb: F
diff --git a/pr/2616/docs/iroh/docs/net/index.html b/pr/2616/docs/iroh/docs/net/index.html
index 10bd5afa19..faf4d3bbaa 100644
--- a/pr/2616/docs/iroh/docs/net/index.html
+++ b/pr/2616/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

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/2616/docs/iroh/docs/net/struct.SyncFinished.html b/pr/2616/docs/iroh/docs/net/struct.SyncFinished.html index 4d6d10be18..41dbaf60cc 100644 --- a/pr/2616/docs/iroh/docs/net/struct.SyncFinished.html +++ b/pr/2616/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

pub struct SyncFinished {
     pub namespace: NamespaceId,
     pub peer: PublicKey,
     pub outcome: SyncOutcome,
@@ -8,7 +8,7 @@
 
§peer: PublicKey

The peer we syned with.

§outcome: SyncOutcome

The outcome of the sync operation

§timings: Timings

The time this operation took

-

Trait Implementations§

source§

impl Clone for SyncFinished

source§

fn clone(&self) -> SyncFinished

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SyncFinished

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for SyncFinished

§

fn clone(&self) -> SyncFinished

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for SyncFinished

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/net/struct.Timings.html b/pr/2616/docs/iroh/docs/net/struct.Timings.html index 303f35d860..edf891212d 100644 --- a/pr/2616/docs/iroh/docs/net/struct.Timings.html +++ b/pr/2616/docs/iroh/docs/net/struct.Timings.html @@ -1,10 +1,10 @@ -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

pub struct Timings {
     pub connect: Duration,
     pub process: Duration,
 }
Expand description

Time a sync operation took

Fields§

§connect: Duration

Time to establish connection

§process: Duration

Time to run sync exchange

-

Trait Implementations§

source§

impl Clone for Timings

source§

fn clone(&self) -> Timings

Returns a 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 Timings

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Timings

source§

fn default() -> Timings

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for Timings

§

fn clone(&self) -> Timings

Returns a 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 Timings

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Timings

§

fn default() -> Timings

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/store/enum.AuthorFilter.html b/pr/2616/docs/iroh/docs/store/enum.AuthorFilter.html index f167e7892f..07bc730c15 100644 --- a/pr/2616/docs/iroh/docs/store/enum.AuthorFilter.html +++ b/pr/2616/docs/iroh/docs/store/enum.AuthorFilter.html @@ -1,20 +1,20 @@ -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

pub enum AuthorFilter {
     Any,
     Exact(AuthorId),
 }
Expand description

Author matching.

Variants§

§

Any

Matches any author.

§

Exact(AuthorId)

Matches exactly the provided author.

-

Implementations§

source§

impl AuthorFilter

source

pub fn matches(&self, author: &AuthorId) -> bool

Test if an author is matched by this AuthorFilter.

-

Trait Implementations§

source§

impl Clone for AuthorFilter

source§

fn clone(&self) -> AuthorFilter

Returns a 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 AuthorFilter

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for AuthorFilter

source§

fn default() -> AuthorFilter

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for AuthorFilter

Implementations§

§

impl AuthorFilter

pub fn matches(&self, author: &AuthorId) -> bool

Test if an author is matched by this AuthorFilter.

+

Trait Implementations§

§

impl Clone for AuthorFilter

§

fn clone(&self) -> AuthorFilter

Returns a 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 AuthorFilter

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for AuthorFilter

§

fn default() -> AuthorFilter

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for AuthorFilter

§

fn deserialize<__D>( __deserializer: __D ) -> Result<AuthorFilter, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<AuthorId> for AuthorFilter

source§

fn from(value: AuthorId) -> AuthorFilter

Converts to this type from the input type.
source§

impl PartialEq for AuthorFilter

source§

fn eq(&self, other: &AuthorFilter) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl From<AuthorId> for AuthorFilter

§

fn from(value: AuthorId) -> AuthorFilter

Converts to this type from the input type.
§

impl PartialEq for AuthorFilter

§

fn eq(&self, other: &AuthorFilter) -> 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 AuthorFilter

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for AuthorFilter

§

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 AuthorFilter

source§

impl StructuralPartialEq for AuthorFilter

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for AuthorFilter

§

impl StructuralPartialEq for AuthorFilter

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/store/enum.DownloadPolicy.html b/pr/2616/docs/iroh/docs/store/enum.DownloadPolicy.html index 823540b212..287af25d78 100644 --- a/pr/2616/docs/iroh/docs/store/enum.DownloadPolicy.html +++ b/pr/2616/docs/iroh/docs/store/enum.DownloadPolicy.html @@ -1,20 +1,20 @@ -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

pub enum DownloadPolicy {
     NothingExcept(Vec<FilterKind>),
     EverythingExcept(Vec<FilterKind>),
 }
Expand description

Download policy to decide which content blobs shall be downloaded.

Variants§

§

NothingExcept(Vec<FilterKind>)

Do not download any key unless it matches one of the filters.

§

EverythingExcept(Vec<FilterKind>)

Download every key unless it matches one of the filters.

-

Implementations§

source§

impl DownloadPolicy

source

pub fn matches(&self, entry: &Entry) -> bool

Check if an entry should be downloaded according to this policy.

-

Trait Implementations§

source§

impl Clone for DownloadPolicy

source§

fn clone(&self) -> DownloadPolicy

Returns a 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 DownloadPolicy

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for DownloadPolicy

source§

fn default() -> DownloadPolicy

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for DownloadPolicy

Implementations§

§

impl DownloadPolicy

pub fn matches(&self, entry: &Entry) -> bool

Check if an entry should be downloaded according to this policy.

+

Trait Implementations§

§

impl Clone for DownloadPolicy

§

fn clone(&self) -> DownloadPolicy

Returns a 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 DownloadPolicy

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for DownloadPolicy

§

fn default() -> DownloadPolicy

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for DownloadPolicy

§

fn deserialize<__D>( __deserializer: __D ) -> Result<DownloadPolicy, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for DownloadPolicy

source§

fn eq(&self, other: &DownloadPolicy) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for DownloadPolicy

§

fn eq(&self, other: &DownloadPolicy) -> 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 DownloadPolicy

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for DownloadPolicy

§

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 DownloadPolicy

source§

impl StructuralPartialEq for DownloadPolicy

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

§

impl Eq for DownloadPolicy

§

impl StructuralPartialEq for DownloadPolicy

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/store/enum.FilterKind.html b/pr/2616/docs/iroh/docs/store/enum.FilterKind.html index 98cab27b7c..442eed0213 100644 --- a/pr/2616/docs/iroh/docs/store/enum.FilterKind.html +++ b/pr/2616/docs/iroh/docs/store/enum.FilterKind.html @@ -1,20 +1,20 @@ -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

pub enum FilterKind {
     Prefix(Bytes),
     Exact(Bytes),
 }
Expand description

Filter strategy used in download policies.

Variants§

§

Prefix(Bytes)

Matches if the contained bytes are a prefix of the key.

§

Exact(Bytes)

Matches if the contained bytes and the key are the same.

-

Implementations§

source§

impl FilterKind

source

pub fn matches(&self, key: impl AsRef<[u8]>) -> bool

Verifies whether this filter matches a given key

-

Trait Implementations§

source§

impl Clone for FilterKind

source§

fn clone(&self) -> FilterKind

Returns a 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 FilterKind

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for FilterKind

Implementations§

§

impl FilterKind

pub fn matches(&self, key: impl AsRef<[u8]>) -> bool

Verifies whether this filter matches a given key

+

Trait Implementations§

§

impl Clone for FilterKind

§

fn clone(&self) -> FilterKind

Returns a 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 FilterKind

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for FilterKind

§

fn deserialize<__D>( __deserializer: __D ) -> Result<FilterKind, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for FilterKind

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl FromStr for FilterKind

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<FilterKind, <FilterKind as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl PartialEq for FilterKind

source§

fn eq(&self, other: &FilterKind) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl Display for FilterKind

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl FromStr for FilterKind

§

type Err = Error

The associated error which can be returned from parsing.
§

fn from_str(s: &str) -> Result<FilterKind, <FilterKind as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl PartialEq for FilterKind

§

fn eq(&self, other: &FilterKind) -> 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 FilterKind

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for FilterKind

§

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 FilterKind

source§

impl StructuralPartialEq for FilterKind

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for FilterKind

§

impl StructuralPartialEq for FilterKind

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/store/enum.ImportNamespaceOutcome.html b/pr/2616/docs/iroh/docs/store/enum.ImportNamespaceOutcome.html index 707ac92a00..ae315e05f2 100644 --- a/pr/2616/docs/iroh/docs/store/enum.ImportNamespaceOutcome.html +++ b/pr/2616/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

pub enum ImportNamespaceOutcome {
     Inserted,
     Upgraded,
     NoChange,
@@ -6,7 +6,7 @@
 

Variants§

§

Inserted

The namespace did not exist before and is now inserted.

§

Upgraded

The namespace existed and now has an upgraded capability.

§

NoChange

The namespace existed and its capability remains unchanged.

-

Trait Implementations§

source§

impl Clone for ImportNamespaceOutcome

source§

fn clone(&self) -> ImportNamespaceOutcome

Returns a 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 ImportNamespaceOutcome

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Copy for ImportNamespaceOutcome

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for ImportNamespaceOutcome

§

fn clone(&self) -> ImportNamespaceOutcome

Returns a 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 ImportNamespaceOutcome

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Copy for ImportNamespaceOutcome

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/store/enum.KeyFilter.html b/pr/2616/docs/iroh/docs/store/enum.KeyFilter.html index 9993ced645..96836c7ffb 100644 --- a/pr/2616/docs/iroh/docs/store/enum.KeyFilter.html +++ b/pr/2616/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

pub enum KeyFilter {
     Any,
     Exact(Bytes),
     Prefix(Bytes),
@@ -6,18 +6,18 @@
 

Variants§

§

Any

Matches any key.

§

Exact(Bytes)

Only keys that are exactly the provided value.

§

Prefix(Bytes)

All keys that start with the provided value.

-

Implementations§

source§

impl KeyFilter

source

pub fn matches(&self, key: &[u8]) -> bool

Test if a key is matched by this KeyFilter.

-

Trait Implementations§

source§

impl Clone for KeyFilter

source§

fn clone(&self) -> KeyFilter

Returns a 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 KeyFilter

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for KeyFilter

source§

fn default() -> KeyFilter

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for KeyFilter

Implementations§

§

impl KeyFilter

pub fn matches(&self, key: &[u8]) -> bool

Test if a key is matched by this KeyFilter.

+

Trait Implementations§

§

impl Clone for KeyFilter

§

fn clone(&self) -> KeyFilter

Returns a 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 KeyFilter

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for KeyFilter

§

fn default() -> KeyFilter

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for KeyFilter

§

fn deserialize<__D>( __deserializer: __D ) -> Result<KeyFilter, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<T> From<T> for KeyFilter
where - T: AsRef<[u8]>,

source§

fn from(value: T) -> KeyFilter

Converts to this type from the input type.
source§

impl PartialEq for KeyFilter

source§

fn eq(&self, other: &KeyFilter) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl<T> From<T> for KeyFilter
where + T: AsRef<[u8]>,

§

fn from(value: T) -> KeyFilter

Converts to this type from the input type.
§

impl PartialEq for KeyFilter

§

fn eq(&self, other: &KeyFilter) -> 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 KeyFilter

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for KeyFilter

§

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 KeyFilter

source§

impl StructuralPartialEq for KeyFilter

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for KeyFilter

§

impl StructuralPartialEq for KeyFilter

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/store/enum.OpenError.html b/pr/2616/docs/iroh/docs/store/enum.OpenError.html index 2e0ba07975..a184c1cdf7 100644 --- a/pr/2616/docs/iroh/docs/store/enum.OpenError.html +++ b/pr/2616/docs/iroh/docs/store/enum.OpenError.html @@ -1,10 +1,10 @@ -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

pub enum OpenError {
     NotFound,
     Other(Error),
 }
Expand description

Error return from Store::open_replica

Variants§

§

NotFound

The replica does not exist.

§

Other(Error)

Other error while opening the replica.

-

Trait Implementations§

source§

impl Debug for OpenError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for OpenError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for OpenError

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 OpenError

source§

fn from(source: Error) -> OpenError

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 OpenError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for OpenError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for OpenError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<Error> for OpenError

§

fn from(source: Error) -> OpenError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/store/enum.SortBy.html b/pr/2616/docs/iroh/docs/store/enum.SortBy.html index 7cd8f8421c..308ec1b278 100644 --- a/pr/2616/docs/iroh/docs/store/enum.SortBy.html +++ b/pr/2616/docs/iroh/docs/store/enum.SortBy.html @@ -1,17 +1,17 @@ -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

pub enum SortBy {
     KeyAuthor,
     AuthorKey,
 }
Expand description

Fields by which the query can be sorted

Variants§

§

KeyAuthor

Sort by key, then author.

§

AuthorKey

Sort by author, then key.

-

Trait Implementations§

source§

impl Clone for SortBy

source§

fn clone(&self) -> SortBy

Returns a 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 SortBy

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for SortBy

source§

fn default() -> SortBy

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for SortBy

Trait Implementations§

§

impl Clone for SortBy

§

fn clone(&self) -> SortBy

Returns a 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 SortBy

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for SortBy

§

fn default() -> SortBy

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for SortBy

§

fn deserialize<__D>( __deserializer: __D ) -> Result<SortBy, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for SortBy

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl Serialize for SortBy

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for SortBy

Auto Trait Implementations§

§

impl Freeze for SortBy

§

impl RefUnwindSafe for SortBy

§

impl Send for SortBy

§

impl Sync for SortBy

§

impl Unpin for SortBy

§

impl UnwindSafe for SortBy

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for SortBy

Auto Trait Implementations§

§

impl Freeze for SortBy

§

impl RefUnwindSafe for SortBy

§

impl Send for SortBy

§

impl Sync for SortBy

§

impl Unpin for SortBy

§

impl UnwindSafe for SortBy

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/store/enum.SortDirection.html b/pr/2616/docs/iroh/docs/store/enum.SortDirection.html index 67a43dcd28..1098cd59e8 100644 --- a/pr/2616/docs/iroh/docs/store/enum.SortDirection.html +++ b/pr/2616/docs/iroh/docs/store/enum.SortDirection.html @@ -1,17 +1,17 @@ -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

pub enum SortDirection {
     Asc,
     Desc,
 }
Expand description

Sort direction

Variants§

§

Asc

Sort ascending

§

Desc

Sort descending

-

Trait Implementations§

source§

impl Clone for SortDirection

source§

fn clone(&self) -> SortDirection

Returns a 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 SortDirection

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for SortDirection

source§

fn default() -> SortDirection

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for SortDirection

Trait Implementations§

§

impl Clone for SortDirection

§

fn clone(&self) -> SortDirection

Returns a 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 SortDirection

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for SortDirection

§

fn default() -> SortDirection

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for SortDirection

§

fn deserialize<__D>( __deserializer: __D ) -> Result<SortDirection, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for SortDirection

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Serialize for SortDirection

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for SortDirection

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for SortDirection

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/store/fs/index.html b/pr/2616/docs/iroh/docs/store/fs/index.html index 5533fd9936..ba678a1e9f 100644 --- a/pr/2616/docs/iroh/docs/store/fs/index.html +++ b/pr/2616/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

Expand description

On disk storage for replicas.

Structs§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/docs/store/fs/struct.ContentHashesIterator.html b/pr/2616/docs/iroh/docs/store/fs/struct.ContentHashesIterator.html index e9ef974c9b..305a49cf74 100644 --- a/pr/2616/docs/iroh/docs/store/fs/struct.ContentHashesIterator.html +++ b/pr/2616/docs/iroh/docs/store/fs/struct.ContentHashesIterator.html @@ -1,12 +1,12 @@ -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

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. It needs a copy of a redb::ReadOnlyTable to be self-contained.

-

Implementations§

source§

impl ContentHashesIterator

source

pub fn all( +

Implementations§

§

impl ContentHashesIterator

pub fn all( table: &ReadOnlyTable<(&'static [u8; 32], &'static [u8; 32], &'static [u8]), (u64, &'static [u8; 64], &'static [u8; 64], u64, &'static [u8; 32])> ) -> Result<ContentHashesIterator, Error>

Create a new iterator over all content hashes.

-

Trait Implementations§

source§

impl Debug for ContentHashesIterator

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Iterator for ContentHashesIterator

§

type Item = Result<Hash, Error>

The type of the elements being iterated over.
source§

fn next(&mut self) -> Option<<ContentHashesIterator as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( +

Trait Implementations§

§

impl Debug for ContentHashesIterator

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Iterator for ContentHashesIterator

§

type Item = Result<Hash, Error>

The type of the elements being iterated over.
§

fn next(&mut self) -> Option<<ContentHashesIterator as Iterator>::Item>

Advances the iterator and returns the next value. Read more
source§

fn next_chunk<const N: usize>( &mut self ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
1.0.0 · source§

fn count(self) -> usize
where diff --git a/pr/2616/docs/iroh/docs/store/fs/struct.LatestIterator.html b/pr/2616/docs/iroh/docs/store/fs/struct.LatestIterator.html index 30f655fa54..b6df04402a 100644 --- a/pr/2616/docs/iroh/docs/store/fs/struct.LatestIterator.html +++ b/pr/2616/docs/iroh/docs/store/fs/struct.LatestIterator.html @@ -1,5 +1,5 @@ -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>( +LatestIterator in iroh::docs::store::fs - Rust

Struct iroh::docs::store::fs::LatestIterator

pub struct LatestIterator<'a>(/* private fields */);
Expand description

Iterator over the latest entry per author.

+

Trait Implementations§

§

impl<'a> Debug for LatestIterator<'a>

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a> Iterator for LatestIterator<'a>

§

type Item = Result<(AuthorId, u64, Vec<u8>), Error>

The type of the elements being iterated over.
§

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 Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
1.0.0 · source§

fn count(self) -> usize
where diff --git a/pr/2616/docs/iroh/docs/store/fs/struct.ParentIterator.html b/pr/2616/docs/iroh/docs/store/fs/struct.ParentIterator.html index 0648079183..f2978f74f7 100644 --- a/pr/2616/docs/iroh/docs/store/fs/struct.ParentIterator.html +++ b/pr/2616/docs/iroh/docs/store/fs/struct.ParentIterator.html @@ -1,6 +1,6 @@ -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

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>( +

Trait Implementations§

§

impl Debug for ParentIterator

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Iterator for ParentIterator

§

type Item = Result<SignedEntry, Error>

The type of the elements being iterated over.
§

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 ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
where Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
1.0.0 · source§

fn count(self) -> usize
where diff --git a/pr/2616/docs/iroh/docs/store/fs/struct.RecordsRange.html b/pr/2616/docs/iroh/docs/store/fs/struct.RecordsRange.html index 5a5e937082..2df1986f00 100644 --- a/pr/2616/docs/iroh/docs/store/fs/struct.RecordsRange.html +++ b/pr/2616/docs/iroh/docs/store/fs/struct.RecordsRange.html @@ -1,5 +1,5 @@ -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>( +RecordsRange in iroh::docs::store::fs - Rust

Struct iroh::docs::store::fs::RecordsRange

pub struct RecordsRange<'a>(/* private fields */);
Expand description

An iterator over a range of entries from the records table.

+

Trait Implementations§

§

impl<'a> Debug for RecordsRange<'a>

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a> Iterator for RecordsRange<'a>

§

type Item = Result<SignedEntry, Error>

The type of the elements being iterated over.
§

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 Self: Sized,

🔬This is a nightly-only experimental API. (iter_next_chunk)
Advances the iterator and returns an array containing the next N values. Read more
1.0.0 · source§

fn size_hint(&self) -> (usize, Option<usize>)

Returns the bounds on the remaining length of the iterator. Read more
1.0.0 · source§

fn count(self) -> usize
where diff --git a/pr/2616/docs/iroh/docs/store/fs/struct.Store.html b/pr/2616/docs/iroh/docs/store/fs/struct.Store.html index 267309132d..15f20f72cd 100644 --- a/pr/2616/docs/iroh/docs/store/fs/struct.Store.html +++ b/pr/2616/docs/iroh/docs/store/fs/struct.Store.html @@ -1,102 +1,102 @@ -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.

+Store in iroh::docs::store::fs - Rust

Struct iroh::docs::store::fs::Store

pub struct Store { /* private fields */ }
Expand description

Manages the replicas and authors for an instance.

+

Implementations§

§

impl Store

pub fn memory() -> Store

Create a new store in memory.

+

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.

-
source

pub fn flush(&mut self) -> Result<(), Error>

Flush the current transaction, if any.

+

pub fn flush(&mut self) -> Result<(), Error>

Flush the current transaction, if any.

This is the cheapest way to ensure that the data is persisted.

-
source

pub fn snapshot(&mut self) -> Result<&ReadOnlyTables, Error>

Get a read-only snapshot of the database.

+

pub fn snapshot(&mut self) -> Result<&ReadOnlyTables, Error>

Get a read-only snapshot of the database.

This has the side effect of committing any open write transaction, so it can be used as a way to ensure that the data is persisted.

-
source

pub fn snapshot_owned(&mut self) -> Result<ReadOnlyTables, Error>

Get an owned read-only snapshot of the database.

+

pub fn snapshot_owned(&mut self) -> Result<ReadOnlyTables, Error>

Get an owned read-only snapshot of the database.

This will open a new read transaction. The read transaction won’t be reused for other reads.

This has the side effect of committing any open write transaction, so it can be used as a way to ensure that the data is persisted.

-
source§

impl Store

§

impl Store

pub fn new_replica( &mut self, namespace: NamespaceSecret ) -> Result<Replica<'_>, Error>

Create a new replica for namespace and persist in this store.

-
source

pub fn new_author<R>(&mut self, rng: &mut R) -> Result<Author, Error>
where +

pub fn new_author<R>(&mut self, rng: &mut R) -> Result<Author, Error>
where R: CryptoRngCore + ?Sized,

Create a new author key and persist it in the store.

-
source

pub fn has_news_for_us( +

pub fn has_news_for_us( &mut self, namespace: NamespaceId, heads: &AuthorHeads ) -> Result<Option<NonZero<u64>>, Error>

Check if a AuthorHeads contains entry timestamps that we do not have locally.

Returns the number of authors that the other peer has updates for.

-
source

pub fn open_replica( +

pub fn open_replica( &mut self, namespace_id: &NamespaceId ) -> Result<Replica<'_>, OpenError>

Open a replica from this store.

This just calls load_replica_info and then creates a new replica with the info.

-
source

pub fn load_replica_info( +

pub fn load_replica_info( &mut self, namespace_id: &NamespaceId ) -> Result<ReplicaInfo, OpenError>

Load the replica info from the store.

-
source

pub fn close_replica(&mut self, id: NamespaceId)

Close a replica.

-
source

pub fn list_namespaces( +

pub fn close_replica(&mut self, id: NamespaceId)

Close a replica.

+

pub fn list_namespaces( &mut self ) -> Result<impl Iterator<Item = Result<(NamespaceId, CapabilityKind), Error>>, Error>

List all replica namespaces in this store.

-
source

pub fn get_author( +

pub fn get_author( &mut self, author_id: &AuthorId ) -> Result<Option<Author>, Error>

Get an author key from the store.

-
source

pub fn import_author(&mut self, author: Author) -> Result<(), Error>

Import an author key pair.

-
source

pub fn delete_author(&mut self, author: AuthorId) -> Result<(), Error>

Delete an author.

-
source

pub fn list_authors( +

pub fn import_author(&mut self, author: Author) -> Result<(), Error>

Import an author key pair.

+

pub fn delete_author(&mut self, author: AuthorId) -> Result<(), Error>

Delete an author.

+

pub fn list_authors( &mut self ) -> Result<impl Iterator<Item = Result<Author, Error>>, Error>

List all author keys in this store.

-
source

pub fn import_namespace( +

pub fn import_namespace( &mut self, capability: Capability ) -> Result<ImportNamespaceOutcome, Error>

Import a new replica namespace.

-
source

pub fn remove_replica(&mut self, namespace: &NamespaceId) -> Result<(), Error>

Remove a replica.

+

pub fn remove_replica(&mut self, namespace: &NamespaceId) -> Result<(), Error>

Remove a replica.

Completely removes a replica and deletes both the namespace private key and all document entries.

Note that a replica has to be closed before it can be removed. The store has to enforce that a replica cannot be removed while it is still open.

-
source

pub fn get_many( +

pub fn get_many( &mut self, namespace: NamespaceId, query: impl Into<Query> ) -> Result<QueryIterator, Error>

Get an iterator over entries of a replica.

-
source

pub fn get_exact( +

pub fn get_exact( &mut self, namespace: NamespaceId, author: AuthorId, key: impl AsRef<[u8]>, include_empty: bool ) -> Result<Option<SignedEntry>, Error>

Get an entry by key and author.

-
source

pub fn content_hashes(&mut self) -> Result<ContentHashesIterator, Error>

Get all content hashes of all replicas in the store.

-
source

pub fn get_latest_for_each_author( +

pub fn content_hashes(&mut self) -> Result<ContentHashesIterator, Error>

Get all content hashes of all replicas in the store.

+

pub fn get_latest_for_each_author( &mut self, namespace: NamespaceId ) -> Result<LatestIterator<'_>, Error>

Get the latest entry for each author in a namespace.

-
source

pub fn register_useful_peer( +

pub fn register_useful_peer( &mut self, namespace: NamespaceId, peer: [u8; 32] ) -> Result<(), Error>

Register a peer that has been useful to sync a document.

-
source

pub fn get_sync_peers( +

pub fn get_sync_peers( &mut self, namespace: &NamespaceId ) -> Result<Option<IntoIter<[u8; 32]>>, Error>

Get the peers that have been useful for a document.

-
source

pub fn set_download_policy( +

pub fn set_download_policy( &mut self, namespace: &NamespaceId, policy: DownloadPolicy ) -> Result<(), Error>

Set the download policy for a namespace.

-
source

pub fn get_download_policy( +

pub fn get_download_policy( &mut self, namespace: &NamespaceId ) -> Result<DownloadPolicy, Error>

Get the download policy for a namespace.

-

Trait Implementations§

source§

impl AsMut<Store> for Store

source§

fn as_mut(&mut self) -> &mut Store

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<Store> for Store

source§

fn as_ref(&self) -> &Store

Converts this type into a shared reference of the (usually inferred) input type.
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 DownloadPolicyStore for Store

Trait Implementations§

§

impl AsMut<Store> for Store

§

fn as_mut(&mut self) -> &mut Store

Converts this type into a mutable reference of the (usually inferred) input type.
§

impl AsRef<Store> for Store

§

fn as_ref(&self) -> &Store

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Debug for Store

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl DownloadPolicyStore for Store

§

fn get_download_policy( &mut self, namespace: &NamespaceId -) -> Result<DownloadPolicy, Error>

Get the download policy for a document.
source§

impl PublicKeyStore for Store

source§

fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>

Convert a byte array into a [VerifyingKey]. Read more
source§

fn namespace_key( +) -> Result<DownloadPolicy, Error>

Get the download policy for a document.
§

impl PublicKeyStore for Store

§

fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>

Convert a byte array into a [VerifyingKey]. Read more
§

fn namespace_key( &self, bytes: &NamespaceId -) -> Result<NamespacePublicKey, Error>

source§

fn author_key(&self, bytes: &AuthorId) -> Result<AuthorPublicKey, Error>

Auto Trait Implementations§

§

impl Freeze for Store

§

impl !RefUnwindSafe for Store

§

impl Send for Store

§

impl Sync for Store

§

impl Unpin for Store

§

impl !UnwindSafe for Store

Blanket Implementations§

source§

impl<T> Any for T
where +) -> Result<NamespacePublicKey, Error>

§

fn author_key(&self, bytes: &AuthorId) -> Result<AuthorPublicKey, Error>

Auto Trait Implementations§

§

impl Freeze for Store

§

impl !RefUnwindSafe for Store

§

impl Send for Store

§

impl Sync for Store

§

impl Unpin for Store

§

impl !UnwindSafe for Store

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/store/fs/struct.StoreInstance.html b/pr/2616/docs/iroh/docs/store/fs/struct.StoreInstance.html index 750ab3f66c..d2a03d2fd4 100644 --- a/pr/2616/docs/iroh/docs/store/fs/struct.StoreInstance.html +++ b/pr/2616/docs/iroh/docs/store/fs/struct.StoreInstance.html @@ -1,11 +1,11 @@ -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( +StoreInstance in iroh::docs::store::fs - Rust

Struct iroh::docs::store::fs::StoreInstance

pub struct StoreInstance<'a> { /* private fields */ }
Expand description

A wrapper around Store for a specific NamespaceId

+

Trait Implementations§

§

impl<'a> Debug for StoreInstance<'a>

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'a> DownloadPolicyStore for StoreInstance<'a>

§

fn get_download_policy( &mut self, namespace: &NamespaceId -) -> Result<DownloadPolicy, Error>

Get the download policy for a document.
source§

impl<'a> PublicKeyStore for StoreInstance<'a>

source§

fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>

Convert a byte array into a [VerifyingKey]. Read more
source§

fn namespace_key( +) -> Result<DownloadPolicy, Error>

Get the download policy for a document.
§

impl<'a> PublicKeyStore for StoreInstance<'a>

§

fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>

Convert a byte array into a [VerifyingKey]. Read more
§

fn namespace_key( &self, bytes: &NamespaceId -) -> Result<NamespacePublicKey, Error>

source§

fn author_key(&self, bytes: &AuthorId) -> Result<AuthorPublicKey, Error>

Auto Trait Implementations§

§

impl<'a> Freeze for StoreInstance<'a>

§

impl<'a> !RefUnwindSafe for StoreInstance<'a>

§

impl<'a> Send for StoreInstance<'a>

§

impl<'a> Sync for StoreInstance<'a>

§

impl<'a> Unpin for StoreInstance<'a>

§

impl<'a> !UnwindSafe for StoreInstance<'a>

Blanket Implementations§

source§

impl<T> Any for T
where +) -> Result<NamespacePublicKey, Error>

§

fn author_key(&self, bytes: &AuthorId) -> Result<AuthorPublicKey, Error>

Auto Trait Implementations§

§

impl<'a> Freeze for StoreInstance<'a>

§

impl<'a> !RefUnwindSafe for StoreInstance<'a>

§

impl<'a> Send for StoreInstance<'a>

§

impl<'a> Sync for StoreInstance<'a>

§

impl<'a> Unpin for StoreInstance<'a>

§

impl<'a> !UnwindSafe for StoreInstance<'a>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/store/index.html b/pr/2616/docs/iroh/docs/store/index.html index 2dfba9b19d..70a8b5cba7 100644 --- a/pr/2616/docs/iroh/docs/store/index.html +++ b/pr/2616/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

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/2616/docs/iroh/docs/store/struct.FlatQuery.html b/pr/2616/docs/iroh/docs/store/struct.FlatQuery.html index a2114977dd..5d5163f184 100644 --- a/pr/2616/docs/iroh/docs/store/struct.FlatQuery.html +++ b/pr/2616/docs/iroh/docs/store/struct.FlatQuery.html @@ -1,8 +1,8 @@ -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>( +FlatQuery in iroh::docs::store - Rust

Struct iroh::docs::store::FlatQuery

pub struct FlatQuery { /* private fields */ }
Expand description

Query on all entries without aggregation.

+

Trait Implementations§

§

impl Clone for FlatQuery

§

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
§

impl Debug for FlatQuery

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for FlatQuery

§

fn default() -> FlatQuery

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for FlatQuery

§

fn deserialize<__D>( __deserializer: __D ) -> Result<FlatQuery, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for FlatQuery

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Serialize for FlatQuery

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/docs/store/struct.MemPublicKeyStore.html b/pr/2616/docs/iroh/docs/store/struct.MemPublicKeyStore.html index cf498591ca..44395d2741 100644 --- a/pr/2616/docs/iroh/docs/store/struct.MemPublicKeyStore.html +++ b/pr/2616/docs/iroh/docs/store/struct.MemPublicKeyStore.html @@ -1,8 +1,8 @@ -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( +MemPublicKeyStore in iroh::docs::store - Rust

Struct iroh::docs::store::MemPublicKeyStore

pub struct MemPublicKeyStore { /* private fields */ }
Expand description

In-memory key storage

+

Trait Implementations§

§

impl Clone for MemPublicKeyStore

§

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
§

impl Debug for MemPublicKeyStore

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for MemPublicKeyStore

§

fn default() -> MemPublicKeyStore

Returns the “default value” for a type. Read more
§

impl PublicKeyStore for MemPublicKeyStore

§

fn public_key(&self, bytes: &[u8; 32]) -> Result<VerifyingKey, Error>

Convert a byte array into a [VerifyingKey]. Read more
§

fn namespace_key( &self, bytes: &NamespaceId -) -> Result<NamespacePublicKey, Error>

source§

fn author_key(&self, bytes: &AuthorId) -> Result<AuthorPublicKey, Error>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +) -> Result<NamespacePublicKey, Error>

§

fn author_key(&self, bytes: &AuthorId) -> Result<AuthorPublicKey, Error>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/store/struct.Query.html b/pr/2616/docs/iroh/docs/store/struct.Query.html index ff60f2b83d..5d960deb8f 100644 --- a/pr/2616/docs/iroh/docs/store/struct.Query.html +++ b/pr/2616/docs/iroh/docs/store/struct.Query.html @@ -1,17 +1,17 @@ -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

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 +

Implementations§

§

impl Query

pub fn all() -> QueryBuilder<FlatQuery>

Query all records.

+

pub fn single_latest_per_key() -> QueryBuilder<SingleLatestPerKeyQuery>

Query only the latest entry for each key, omitting older entries if the entry was written to by multiple authors.

-
source

pub fn author(author: AuthorId) -> QueryBuilder<FlatQuery>

Create a Query::all query filtered by a single author.

-
source

pub fn key_exact(key: impl AsRef<[u8]>) -> QueryBuilder<FlatQuery>

Create a Query::all query filtered by a single key.

-
source

pub fn key_prefix(prefix: impl AsRef<[u8]>) -> QueryBuilder<FlatQuery>

Create a Query::all query filtered by a key prefix.

-
source

pub fn limit(&self) -> Option<u64>

Get the limit for this query (max. number of entries to emit).

-
source

pub fn offset(&self) -> u64

Get the offset for this query (number of entries to skip at the beginning).

-

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

pub fn author(author: AuthorId) -> QueryBuilder<FlatQuery>

Create a Query::all query filtered by a single author.

+

pub fn key_exact(key: impl AsRef<[u8]>) -> QueryBuilder<FlatQuery>

Create a Query::all query filtered by a single key.

+

pub fn key_prefix(prefix: impl AsRef<[u8]>) -> QueryBuilder<FlatQuery>

Create a Query::all query filtered by a key prefix.

+

pub fn limit(&self) -> Option<u64>

Get the limit for this query (max. number of entries to emit).

+

pub fn offset(&self) -> u64

Get the offset for this query (number of entries to skip at the beginning).

+

Trait Implementations§

§

impl Clone for Query

§

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
§

impl Debug for Query

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Query

§

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
§

impl From<QueryBuilder<FlatQuery>> for Query

§

fn from(builder: QueryBuilder<FlatQuery>) -> Query

Converts to this type from the input type.
§

impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query

§

fn from(builder: QueryBuilder<SingleLatestPerKeyQuery>) -> Query

Converts to this type from the input type.
§

impl Serialize for Query

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/docs/store/struct.QueryBuilder.html b/pr/2616/docs/iroh/docs/store/struct.QueryBuilder.html index cefac0fda8..bfb535f00c 100644 --- a/pr/2616/docs/iroh/docs/store/struct.QueryBuilder.html +++ b/pr/2616/docs/iroh/docs/store/struct.QueryBuilder.html @@ -1,27 +1,27 @@ -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.

-
source

pub fn author(self, author: AuthorId) -> QueryBuilder<K>

Filter by author.

-
source

pub fn limit(self, limit: u64) -> QueryBuilder<K>

Set the maximum number of entries to be returned.

-
source

pub fn offset(self, offset: u64) -> QueryBuilder<K>

Set the offset within the result set from where to start returning results.

-
source§

impl QueryBuilder<FlatQuery>

source

pub fn sort_by( +QueryBuilder in iroh::docs::store - Rust

Struct iroh::docs::store::QueryBuilder

pub struct QueryBuilder<K> { /* private fields */ }
Expand description

A query builder for document queries.

+

Implementations§

§

impl<K> QueryBuilder<K>

pub fn include_empty(self) -> QueryBuilder<K>

Call to include empty entries (deletion markers).

+

pub fn key_exact(self, key: impl AsRef<[u8]>) -> QueryBuilder<K>

Filter by exact key match.

+

pub fn key_prefix(self, key: impl AsRef<[u8]>) -> QueryBuilder<K>

Filter by key prefix.

+

pub fn author(self, author: AuthorId) -> QueryBuilder<K>

Filter by author.

+

pub fn limit(self, limit: u64) -> QueryBuilder<K>

Set the maximum number of entries to be returned.

+

pub fn offset(self, offset: u64) -> QueryBuilder<K>

Set the offset within the result set from where to start returning results.

+
§

impl QueryBuilder<FlatQuery>

pub fn sort_by( self, sort_by: SortBy, direction: SortDirection ) -> QueryBuilder<FlatQuery>

Set the sort for the query.

The default is to sort by author, then by key, in ascending order.

-
source

pub fn build(self) -> Query

Build the query.

-
source§

impl QueryBuilder<SingleLatestPerKeyQuery>

pub fn build(self) -> Query

Build the query.

+

§

impl QueryBuilder<SingleLatestPerKeyQuery>

pub fn sort_direction( self, direction: SortDirection ) -> QueryBuilder<SingleLatestPerKeyQuery>

Set the order direction for the query.

Ordering is always by key for this query type. 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 +

pub fn build(self) -> Query

Build the query.

+

Trait Implementations§

§

impl<K> Debug for QueryBuilder<K>
where + K: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<K> Default for QueryBuilder<K>
where + K: Default,

§

fn default() -> QueryBuilder<K>

Returns the “default value” for a type. Read more
§

impl From<QueryBuilder<FlatQuery>> for Query

§

fn from(builder: QueryBuilder<FlatQuery>) -> Query

Converts to this type from the input type.
§

impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query

§

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 diff --git a/pr/2616/docs/iroh/docs/store/struct.SingleLatestPerKeyQuery.html b/pr/2616/docs/iroh/docs/store/struct.SingleLatestPerKeyQuery.html index e91d36364a..db22f6f2d7 100644 --- a/pr/2616/docs/iroh/docs/store/struct.SingleLatestPerKeyQuery.html +++ b/pr/2616/docs/iroh/docs/store/struct.SingleLatestPerKeyQuery.html @@ -1,8 +1,8 @@ -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>( +SingleLatestPerKeyQuery in iroh::docs::store - Rust

Struct iroh::docs::store::SingleLatestPerKeyQuery

pub struct SingleLatestPerKeyQuery {}
Expand description

Query that only returns the latest entry for a key which has entries from multiple authors.

+

Trait Implementations§

§

impl Clone for SingleLatestPerKeyQuery

§

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
§

impl Debug for SingleLatestPerKeyQuery

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for SingleLatestPerKeyQuery

§

fn default() -> SingleLatestPerKeyQuery

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for SingleLatestPerKeyQuery

§

fn deserialize<__D>( __deserializer: __D ) -> Result<SingleLatestPerKeyQuery, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for SingleLatestPerKeyQuery

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Serialize for SingleLatestPerKeyQuery

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/docs/store/struct.Store.html b/pr/2616/docs/iroh/docs/store/struct.Store.html index 829d69fd4b..7141517554 100644 --- a/pr/2616/docs/iroh/docs/store/struct.Store.html +++ b/pr/2616/docs/iroh/docs/store/struct.Store.html @@ -1,102 +1,102 @@ -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.

+Store in iroh::docs::store - Rust

Struct iroh::docs::store::Store

pub struct Store { /* private fields */ }
Expand description

Manages the replicas and authors for an instance.

+

Implementations§

§

impl Store

pub fn memory() -> Store

Create a new store in memory.

+

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.

-
source

pub fn flush(&mut self) -> Result<(), Error>

Flush the current transaction, if any.

+

pub fn flush(&mut self) -> Result<(), Error>

Flush the current transaction, if any.

This is the cheapest way to ensure that the data is persisted.

-
source

pub fn snapshot(&mut self) -> Result<&ReadOnlyTables, Error>

Get a read-only snapshot of the database.

+

pub fn snapshot(&mut self) -> Result<&ReadOnlyTables, Error>

Get a read-only snapshot of the database.

This has the side effect of committing any open write transaction, so it can be used as a way to ensure that the data is persisted.

-
source

pub fn snapshot_owned(&mut self) -> Result<ReadOnlyTables, Error>

Get an owned read-only snapshot of the database.

+

pub fn snapshot_owned(&mut self) -> Result<ReadOnlyTables, Error>

Get an owned read-only snapshot of the database.

This will open a new read transaction. The read transaction won’t be reused for other reads.

This has the side effect of committing any open write transaction, so it can be used as a way to ensure that the data is persisted.

-
source§

impl Store

§

impl Store

pub fn new_replica( &mut self, namespace: NamespaceSecret ) -> Result<Replica<'_>, Error>

Create a new replica for namespace and persist in this store.

-
source

pub fn new_author<R>(&mut self, rng: &mut R) -> Result<Author, Error>
where +

pub fn new_author<R>(&mut self, rng: &mut R) -> Result<Author, Error>
where R: CryptoRngCore + ?Sized,

Create a new author key and persist it in the store.

-
source

pub fn has_news_for_us( +

pub fn has_news_for_us( &mut self, namespace: NamespaceId, heads: &AuthorHeads ) -> Result<Option<NonZero<u64>>, Error>

Check if a AuthorHeads contains entry timestamps that we do not have locally.

Returns the number of authors that the other peer has updates for.

-
source

pub fn open_replica( +

pub fn open_replica( &mut self, namespace_id: &NamespaceId ) -> Result<Replica<'_>, OpenError>

Open a replica from this store.

This just calls load_replica_info and then creates a new replica with the info.

-
source

pub fn load_replica_info( +

pub fn load_replica_info( &mut self, namespace_id: &NamespaceId ) -> Result<ReplicaInfo, OpenError>

Load the replica info from the store.

-
source

pub fn close_replica(&mut self, id: NamespaceId)

Close a replica.

-
source

pub fn list_namespaces( +

pub fn close_replica(&mut self, id: NamespaceId)

Close a replica.

+

pub fn list_namespaces( &mut self ) -> Result<impl Iterator<Item = Result<(NamespaceId, CapabilityKind), Error>>, Error>

List all replica namespaces in this store.

-
source

pub fn get_author( +

pub fn get_author( &mut self, author_id: &AuthorId ) -> Result<Option<Author>, Error>

Get an author key from the store.

-
source

pub fn import_author(&mut self, author: Author) -> Result<(), Error>

Import an author key pair.

-
source

pub fn delete_author(&mut self, author: AuthorId) -> Result<(), Error>

Delete an author.

-
source

pub fn list_authors( +

pub fn import_author(&mut self, author: Author) -> Result<(), Error>

Import an author key pair.

+

pub fn delete_author(&mut self, author: AuthorId) -> Result<(), Error>

Delete an author.

+

pub fn list_authors( &mut self ) -> Result<impl Iterator<Item = Result<Author, Error>>, Error>

List all author keys in this store.

-
source

pub fn import_namespace( +

pub fn import_namespace( &mut self, capability: Capability ) -> Result<ImportNamespaceOutcome, Error>

Import a new replica namespace.

-
source

pub fn remove_replica(&mut self, namespace: &NamespaceId) -> Result<(), Error>

Remove a replica.

+

pub fn remove_replica(&mut self, namespace: &NamespaceId) -> Result<(), Error>

Remove a replica.

Completely removes a replica and deletes both the namespace private key and all document entries.

Note that a replica has to be closed before it can be removed. The store has to enforce that a replica cannot be removed while it is still open.

-
source

pub fn get_many( +

pub fn get_many( &mut self, namespace: NamespaceId, query: impl Into<Query> ) -> Result<QueryIterator, Error>

Get an iterator over entries of a replica.

-
source

pub fn get_exact( +

pub fn get_exact( &mut self, namespace: NamespaceId, author: AuthorId, key: impl AsRef<[u8]>, include_empty: bool ) -> Result<Option<SignedEntry>, Error>

Get an entry by key and author.

-
source

pub fn content_hashes(&mut self) -> Result<ContentHashesIterator, Error>

Get all content hashes of all replicas in the store.

-
source

pub fn get_latest_for_each_author( +

pub fn content_hashes(&mut self) -> Result<ContentHashesIterator, Error>

Get all content hashes of all replicas in the store.

+

pub fn get_latest_for_each_author( &mut self, namespace: NamespaceId ) -> Result<LatestIterator<'_>, Error>

Get the latest entry for each author in a namespace.

-
source

pub fn register_useful_peer( +

pub fn register_useful_peer( &mut self, namespace: NamespaceId, peer: [u8; 32] ) -> Result<(), Error>

Register a peer that has been useful to sync a document.

-
source

pub fn get_sync_peers( +

pub fn get_sync_peers( &mut self, namespace: &NamespaceId ) -> Result<Option<IntoIter<[u8; 32]>>, Error>

Get the peers that have been useful for a document.

-
source

pub fn set_download_policy( +

pub fn set_download_policy( &mut self, namespace: &NamespaceId, policy: DownloadPolicy ) -> Result<(), Error>

Set the download policy for a namespace.

-
source

pub fn get_download_policy( +

pub fn get_download_policy( &mut self, namespace: &NamespaceId ) -> Result<DownloadPolicy, Error>

Get the download policy for a namespace.

-

Trait Implementations§

source§

impl AsMut<Store> for Store

source§

fn as_mut(&mut self) -> &mut Store

Converts this type into a mutable reference of the (usually inferred) input type.
source§

impl AsRef<Store> for Store

source§

fn as_ref(&self) -> &Store

Converts this type into a shared reference of the (usually inferred) input type.
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 DownloadPolicyStore for Store

Trait Implementations§

§

impl AsMut<Store> for Store

§

fn as_mut(&mut self) -> &mut Store

Converts this type into a mutable reference of the (usually inferred) input type.
§

impl AsRef<Store> for Store

§

fn as_ref(&self) -> &Store

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Debug for Store

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl DownloadPolicyStore for Store

§

fn get_download_policy( &mut self, namespace: &NamespaceId -) -> Result<DownloadPolicy, Error>

Get the download policy for a document.
source§

impl PublicKeyStore for Store

source§

fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>

Convert a byte array into a [VerifyingKey]. Read more
source§

fn namespace_key( +) -> Result<DownloadPolicy, Error>

Get the download policy for a document.
§

impl PublicKeyStore for Store

§

fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>

Convert a byte array into a [VerifyingKey]. Read more
§

fn namespace_key( &self, bytes: &NamespaceId -) -> Result<NamespacePublicKey, Error>

source§

fn author_key(&self, bytes: &AuthorId) -> Result<AuthorPublicKey, Error>

Auto Trait Implementations§

§

impl Freeze for Store

§

impl !RefUnwindSafe for Store

§

impl Send for Store

§

impl Sync for Store

§

impl Unpin for Store

§

impl !UnwindSafe for Store

Blanket Implementations§

source§

impl<T> Any for T
where +) -> Result<NamespacePublicKey, Error>

§

fn author_key(&self, bytes: &AuthorId) -> Result<AuthorPublicKey, Error>

Auto Trait Implementations§

§

impl Freeze for Store

§

impl !RefUnwindSafe for Store

§

impl Send for Store

§

impl Sync for Store

§

impl Unpin for Store

§

impl !UnwindSafe for Store

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/store/trait.DownloadPolicyStore.html b/pr/2616/docs/iroh/docs/store/trait.DownloadPolicyStore.html index 3463c54978..f3c350c6a5 100644 --- a/pr/2616/docs/iroh/docs/store/trait.DownloadPolicyStore.html +++ b/pr/2616/docs/iroh/docs/store/trait.DownloadPolicyStore.html @@ -1,16 +1,16 @@ -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

pub trait DownloadPolicyStore {
     // Required method
     fn get_download_policy(
         &mut self,
         namespace: &NamespaceId
     ) -> Result<DownloadPolicy, Error>;
 }
Expand description

Store that gives read access to download policies for a document.

-

Required Methods§

Required Methods§

fn get_download_policy( &mut self, namespace: &NamespaceId ) -> Result<DownloadPolicy, Error>

Get the download policy for a document.

-

Implementations on Foreign Types§

source§

impl<T> DownloadPolicyStore for &mut T

Implementations on Foreign Types§

§

impl<T> DownloadPolicyStore for &mut T

§

fn get_download_policy( &mut self, namespace: &NamespaceId -) -> Result<DownloadPolicy, Error>

Implementors§

\ No newline at end of file +) -> Result<DownloadPolicy, Error>

Implementors§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/docs/store/trait.PublicKeyStore.html b/pr/2616/docs/iroh/docs/store/trait.PublicKeyStore.html index a076593331..b47b4e56a9 100644 --- a/pr/2616/docs/iroh/docs/store/trait.PublicKeyStore.html +++ b/pr/2616/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

pub trait PublicKeyStore {
     // Required method
     fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>;
 
@@ -11,15 +11,15 @@
 }
Expand description

Store trait for expanded public keys for authors and namespaces.

Used to cache [ed25519_dalek::VerifyingKey].

This trait is implemented for the unit type [()], where no caching is used.

-

Required Methods§

source

fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>

Convert a byte array into a [VerifyingKey].

+

Required Methods§

fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>

Convert a byte array into a [VerifyingKey].

New keys are inserted into the `PublicKeyStore and reused on subsequent calls.

-

Provided Methods§

Provided Methods§

fn namespace_key( &self, bytes: &NamespaceId ) -> Result<NamespacePublicKey, Error>

Convert a NamespaceId into a NamespacePublicKey.

New keys are inserted into the `PublicKeyStore and reused on subsequent calls.

-
source

fn author_key(&self, bytes: &AuthorId) -> Result<AuthorPublicKey, Error>

Convert a AuthorId into a AuthorPublicKey.

+

fn author_key(&self, bytes: &AuthorId) -> Result<AuthorPublicKey, Error>

Convert a AuthorId into a AuthorPublicKey.

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 +

Implementations on Foreign Types§

§

impl PublicKeyStore for ()

§

fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>

§

impl<T> PublicKeyStore for &T
where + T: PublicKeyStore,

§

fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>

§

impl<T> PublicKeyStore for &mut T
where + T: PublicKeyStore,

§

fn public_key(&self, id: &[u8; 32]) -> Result<VerifyingKey, Error>

Implementors§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/docs/struct.Author.html b/pr/2616/docs/iroh/docs/struct.Author.html index 927401a02c..84de81b06d 100644 --- a/pr/2616/docs/iroh/docs/struct.Author.html +++ b/pr/2616/docs/iroh/docs/struct.Author.html @@ -1,17 +1,17 @@ -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

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 +

Implementations§

§

impl Author

pub fn new<R>(rng: &mut R) -> Author
where R: CryptoRngCore + ?Sized,

Create a new Author with a random key.

-
source

pub fn from_bytes(bytes: &[u8; 32]) -> Author

Create an Author from a byte array.

-
source

pub fn to_bytes(&self) -> [u8; 32]

Returns the Author byte representation.

-
source

pub fn public_key(&self) -> AuthorPublicKey

Get the AuthorPublicKey for this author.

-
source

pub fn id(&self) -> AuthorId

Get the AuthorId for this author.

-
source

pub fn sign(&self, msg: &[u8]) -> Signature

Sign a message with this Author key.

-
source

pub fn verify(&self, msg: &[u8], signature: &Signature) -> Result<(), Error>

Strictly verify a signature on a message with this Author’s public key.

-

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

pub fn from_bytes(bytes: &[u8; 32]) -> Author

Create an Author from a byte array.

+

pub fn to_bytes(&self) -> [u8; 32]

Returns the Author byte representation.

+

pub fn public_key(&self) -> AuthorPublicKey

Get the AuthorPublicKey for this author.

+

pub fn id(&self) -> AuthorId

Get the AuthorId for this author.

+

pub fn sign(&self, msg: &[u8]) -> Signature

Sign a message with this Author key.

+

pub fn verify(&self, msg: &[u8], signature: &Signature) -> Result<(), Error>

Strictly verify a signature on a message with this Author’s public key.

+

Trait Implementations§

§

impl Clone for Author

§

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
§

impl Debug for Author

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Author

§

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
§

impl Display for Author

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<&Author> for AuthorPublicKey

§

fn from(value: &Author) -> AuthorPublicKey

Converts to this type from the input type.
§

impl From<Author> for AuthorId

§

fn from(value: Author) -> AuthorId

Converts to this type from the input type.
§

impl From<Author> for AuthorPublicKey

§

fn from(value: Author) -> AuthorPublicKey

Converts to this type from the input type.
§

impl From<SigningKey> for Author

§

fn from(signing_key: SigningKey) -> Author

Converts to this type from the input type.
§

impl FromStr for Author

§

type Err = Error

The associated error which can be returned from parsing.
§

fn from_str(s: &str) -> Result<Author, <Author as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl Serialize for Author

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/docs/struct.AuthorHeads.html b/pr/2616/docs/iroh/docs/struct.AuthorHeads.html index 3808296f21..954a568bb5 100644 --- a/pr/2616/docs/iroh/docs/struct.AuthorHeads.html +++ b/pr/2616/docs/iroh/docs/struct.AuthorHeads.html @@ -1,20 +1,20 @@ -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.

-
source

pub fn get(&self, author: &AuthorId) -> Option<u64>

Get the timestamp for an author.

-
source

pub fn has_news_for(&self, other: &AuthorHeads) -> Option<NonZero<u64>>

Can this state offer newer stuff to other?

-
source

pub fn merge(&mut self, other: &AuthorHeads)

Merge another author head state into this one.

-
source

pub fn iter(&self) -> Iter<'_, AuthorId, u64>

Create an iterator over the entries in this state.

-
source

pub fn encode(&self, size_limit: Option<usize>) -> Result<Vec<u8>, Error>

Encode into a byte array with a limited size.

+AuthorHeads in iroh::docs - Rust

Struct iroh::docs::AuthorHeads

pub struct AuthorHeads { /* private fields */ }
Expand description

Timestamps of the latest entry for each author.

+

Implementations§

§

impl AuthorHeads

pub fn insert(&mut self, author: AuthorId, timestamp: u64)

Insert a new timestamp.

+

pub fn len(&self) -> usize

Number of author-timestamp pairs.

+

pub fn is_empty(&self) -> bool

Whether this AuthorHeads is empty.

+

pub fn get(&self, author: &AuthorId) -> Option<u64>

Get the timestamp for an author.

+

pub fn has_news_for(&self, other: &AuthorHeads) -> Option<NonZero<u64>>

Can this state offer newer stuff to other?

+

pub fn merge(&mut self, other: &AuthorHeads)

Merge another author head state into this one.

+

pub fn iter(&self) -> Iter<'_, AuthorId, u64>

Create an iterator over the entries in this state.

+

pub fn encode(&self, size_limit: Option<usize>) -> Result<Vec<u8>, Error>

Encode into a byte array with a limited size.

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 - 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 +

pub fn decode(bytes: &[u8]) -> Result<AuthorHeads, Error>

Decode from byte slice created with Self::encode.

+

Trait Implementations§

§

impl Clone for AuthorHeads

§

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
§

impl Debug for AuthorHeads

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for AuthorHeads

§

fn default() -> AuthorHeads

Returns the “default value” for a type. Read more
§

impl FromIterator<(AuthorId, u64)> for AuthorHeads

§

fn from_iter<T>(iter: T) -> AuthorHeads
where + T: IntoIterator<Item = (AuthorId, u64)>,

Creates a value from an iterator. Read more
§

impl FromIterator<(u64, AuthorId)> for AuthorHeads

§

fn from_iter<T>(iter: T) -> AuthorHeads
where + T: IntoIterator<Item = (u64, AuthorId)>,

Creates a value from an iterator. Read more
§

impl PartialEq for AuthorHeads

§

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 +sufficient, and should not be overridden without very good reason.

§

impl Eq for AuthorHeads

§

impl StructuralPartialEq for AuthorHeads

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/struct.AuthorId.html b/pr/2616/docs/iroh/docs/struct.AuthorId.html index b72d7b1125..e7a1536465 100644 --- a/pr/2616/docs/iroh/docs/struct.AuthorId.html +++ b/pr/2616/docs/iroh/docs/struct.AuthorId.html @@ -1,33 +1,33 @@ -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 +AuthorId in iroh::docs - Rust

Struct iroh::docs::AuthorId

pub struct AuthorId(/* private fields */);
Expand description

AuthorPublicKey in bytes

+

Implementations§

§

impl AuthorId

pub fn to_bytes(&self) -> [u8; 32]

Convert to byte array.

+

pub fn as_bytes(&self) -> &[u8; 32]

Convert to byte slice.

+

pub fn public_key<S>(&self, store: &S) -> Result<AuthorPublicKey, Error>
where S: PublicKeyStore,

Convert into AuthorPublicKey by fetching from a PublicKeyStore.

Fails if the bytes of this AuthorId are not a valid [ed25519_dalek] curve point.

-
source

pub fn into_public_key(&self) -> Result<AuthorPublicKey, Error>

Convert into AuthorPublicKey.

+

pub fn into_public_key(&self) -> Result<AuthorPublicKey, Error>

Convert into AuthorPublicKey.

Fails if the bytes of this AuthorId are not a valid [ed25519_dalek] curve point.

-
source

pub fn fmt_short(&self) -> String

Convert to a base32 string limited to the first 10 bytes for a friendly string +

pub fn fmt_short(&self) -> String

Convert to a base32 string limited to the first 10 bytes for a friendly string representation of the key.

-

Trait Implementations§

source§

impl AsRef<[u8]> for 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

Trait Implementations§

§

impl AsRef<[u8]> for AuthorId

§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
§

impl AsRef<[u8; 32]> for AuthorId

§

fn as_ref(&self) -> &[u8; 32]

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Clone for AuthorId

§

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
§

impl Debug for AuthorId

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for AuthorId

§

fn default() -> AuthorId

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for AuthorId

§

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
§

impl Display for AuthorId

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<&[u8; 32]> for AuthorId

§

fn from(value: &[u8; 32]) -> AuthorId

Converts to this type from the input type.
§

impl From<&AuthorPublicKey> for AuthorId

§

fn from(value: &AuthorPublicKey) -> AuthorId

Converts to this type from the input type.
§

impl From<[u8; 32]> for AuthorId

§

fn from(value: [u8; 32]) -> AuthorId

Converts to this type from the input type.
§

impl From<Author> for AuthorId

§

fn from(value: Author) -> AuthorId

Converts to this type from the input type.
§

impl From<AuthorId> for [u8; 32]

§

fn from(value: AuthorId) -> [u8; 32]

Converts to this type from the input type.
§

impl From<AuthorId> for AuthorFilter

§

fn from(value: AuthorId) -> AuthorFilter

Converts to this type from the input type.
§

impl From<AuthorPublicKey> for AuthorId

§

fn from(value: AuthorPublicKey) -> AuthorId

Converts to this type from the input type.
§

impl FromStr for AuthorId

§

type Err = Error

The associated error which can be returned from parsing.
§

fn from_str(s: &str) -> Result<AuthorId, <AuthorId as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl Hash for AuthorId

§

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 + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for AuthorId

§

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 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 AuthorId

source§

fn eq(&self, other: &AuthorId) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for AuthorId

§

fn eq(&self, other: &AuthorId) -> 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 AuthorId

source§

fn partial_cmp(&self, other: &AuthorId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for AuthorId

§

fn partial_cmp(&self, other: &AuthorId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for AuthorId

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for AuthorId

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<AuthorId> for AuthorPublicKey

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl TryFrom<AuthorId> for AuthorPublicKey

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from( value: AuthorId -) -> Result<AuthorPublicKey, <AuthorPublicKey as TryFrom<AuthorId>>::Error>

Performs the conversion.
source§

impl Copy for AuthorId

source§

impl Eq for AuthorId

source§

impl StructuralPartialEq for AuthorId

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T

Performs the conversion.
§

impl Copy for AuthorId

§

impl Eq for AuthorId

§

impl StructuralPartialEq for AuthorId

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<A, T> AsBits<T> for A
where A: AsRef<[T]>, T: BitStore,

§

fn as_bits<O>(&self) -> &BitSlice<T, O>
where @@ -162,7 +162,7 @@ letters are used (e.g. F9B4CA)

Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T

§

impl<T> RpcError for T
where T: Debug + Display + Send + Sync + Unpin + 'static,

§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,

source§

impl<T> RuleType for T
where diff --git a/pr/2616/docs/iroh/docs/struct.AuthorPublicKey.html b/pr/2616/docs/iroh/docs/struct.AuthorPublicKey.html index 8a14920f8e..82072eafe3 100644 --- a/pr/2616/docs/iroh/docs/struct.AuthorPublicKey.html +++ b/pr/2616/docs/iroh/docs/struct.AuthorPublicKey.html @@ -1,35 +1,35 @@ -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

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 +

Implementations§

§

impl AuthorPublicKey

pub fn verify(&self, msg: &[u8], signature: &Signature) -> Result<(), Error>

Verify that a signature matches the msg bytes and was created with the Author that corresponds to this AuthorId.

-
source

pub fn as_bytes(&self) -> &[u8; 32]

Get the byte representation of this AuthorId.

-
source

pub fn from_bytes(bytes: &[u8; 32]) -> Result<AuthorPublicKey, Error>

Create from a slice of bytes.

+

pub fn as_bytes(&self) -> &[u8; 32]

Get the byte representation of this AuthorId.

+

pub fn from_bytes(bytes: &[u8; 32]) -> Result<AuthorPublicKey, Error>

Create from a slice of bytes.

Will return an error if the input bytes do not represent a valid [ed25519_dalek] curve point. Will never fail for a byte array returned from Self::as_bytes. 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

Trait Implementations§

§

impl Clone for AuthorPublicKey

§

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
§

impl Debug for AuthorPublicKey

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for AuthorPublicKey

§

fn default() -> AuthorPublicKey

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for AuthorPublicKey

§

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
§

impl Display for AuthorPublicKey

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<&Author> for AuthorPublicKey

§

fn from(value: &Author) -> AuthorPublicKey

Converts to this type from the input type.
§

impl From<&AuthorPublicKey> for AuthorId

§

fn from(value: &AuthorPublicKey) -> AuthorId

Converts to this type from the input type.
§

impl From<Author> for AuthorPublicKey

§

fn from(value: Author) -> AuthorPublicKey

Converts to this type from the input type.
§

impl From<AuthorPublicKey> for AuthorId

§

fn from(value: AuthorPublicKey) -> AuthorId

Converts to this type from the input type.
§

impl From<VerifyingKey> for AuthorPublicKey

§

fn from(value: VerifyingKey) -> AuthorPublicKey

Converts to this type from the input type.
§

impl FromStr for AuthorPublicKey

§

type Err = Error

The associated error which can be returned from parsing.
§

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)

Parses a string s to return a value of this type. Read more
§

impl Hash for AuthorPublicKey

§

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 AuthorPublicKey

source§

fn cmp(&self, other: &AuthorPublicKey) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for AuthorPublicKey

§

fn cmp(&self, other: &AuthorPublicKey) -> 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 AuthorPublicKey

source§

fn eq(&self, other: &AuthorPublicKey) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,
Restrict a value to a certain interval. Read more
§

impl PartialEq for AuthorPublicKey

§

fn eq(&self, other: &AuthorPublicKey) -> 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 AuthorPublicKey

source§

fn partial_cmp(&self, other: &AuthorPublicKey) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for AuthorPublicKey

§

fn partial_cmp(&self, other: &AuthorPublicKey) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for AuthorPublicKey

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for AuthorPublicKey

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<AuthorId> for AuthorPublicKey

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl TryFrom<AuthorId> for AuthorPublicKey

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from( value: AuthorId -) -> Result<AuthorPublicKey, <AuthorPublicKey as TryFrom<AuthorId>>::Error>

Performs the conversion.
source§

impl Copy for AuthorPublicKey

source§

impl Eq for AuthorPublicKey

source§

impl StructuralPartialEq for AuthorPublicKey

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T

Performs the conversion.
§

impl Copy for AuthorPublicKey

§

impl Eq for AuthorPublicKey

§

impl StructuralPartialEq for AuthorPublicKey

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 @@ -154,7 +154,7 @@ builds.

Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T

§

impl<T> RpcError for T
where T: Debug + Display + Send + Sync + Unpin + 'static,

§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,

source§

impl<T> RuleType for T
where diff --git a/pr/2616/docs/iroh/docs/struct.DocTicket.html b/pr/2616/docs/iroh/docs/struct.DocTicket.html index 3abb47e29a..e8daffc339 100644 --- a/pr/2616/docs/iroh/docs/struct.DocTicket.html +++ b/pr/2616/docs/iroh/docs/struct.DocTicket.html @@ -1,18 +1,18 @@ -DocTicket in iroh::docs - Rust

Struct iroh::docs::DocTicket

source ·
pub struct DocTicket {
+DocTicket in iroh::docs - Rust

Struct iroh::docs::DocTicket

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.

Fields§

§capability: Capability

either a public or private key

§nodes: Vec<NodeAddr>

A list of nodes to contact.

-

Implementations§

source§

impl DocTicket

source

pub fn new(capability: Capability, peers: Vec<NodeAddr>) -> DocTicket

Create a new doc ticket

-

Trait Implementations§

source§

impl Clone for DocTicket

source§

fn clone(&self) -> DocTicket

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DocTicket

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for DocTicket

Implementations§

§

impl DocTicket

pub fn new(capability: Capability, peers: Vec<NodeAddr>) -> DocTicket

Create a new doc ticket

+

Trait Implementations§

§

impl Clone for DocTicket

§

fn clone(&self) -> DocTicket

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for DocTicket

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for DocTicket

§

fn deserialize<__D>( __deserializer: __D ) -> Result<DocTicket, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for DocTicket

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl FromStr for DocTicket

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<DocTicket, <DocTicket as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Serialize for DocTicket

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for DocTicket

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl FromStr for DocTicket

§

type Err = Error

The associated error which can be returned from parsing.
§

fn from_str(s: &str) -> Result<DocTicket, <DocTicket as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl Serialize for DocTicket

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Ticket for DocTicket

source§

const KIND: &'static str = "doc"

String prefix describing the kind of iroh ticket. Read more
source§

fn to_bytes(&self) -> Vec<u8> ⓘ

Serialize to bytes used in the base32 string representation.
source§

fn from_bytes(bytes: &[u8]) -> Result<DocTicket, Error>

Deserialize from the base32 string representation bytes.
source§

fn serialize(&self) -> String

Serialize to string.
source§

fn deserialize(str: &str) -> Result<Self, Error>

Deserialize from a string.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Ticket for DocTicket

§

const KIND: &'static str = "doc"

String prefix describing the kind of iroh ticket. Read more
§

fn to_bytes(&self) -> Vec<u8> ⓘ

Serialize to bytes used in the base32 string representation.
§

fn from_bytes(bytes: &[u8]) -> Result<DocTicket, Error>

Deserialize from the base32 string representation bytes.
§

fn serialize(&self) -> String

Serialize to string.
§

fn deserialize(str: &str) -> Result<Self, Error>

Deserialize from a string.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/struct.Entry.html b/pr/2616/docs/iroh/docs/struct.Entry.html index 494e990da2..63c3c0b200 100644 --- a/pr/2616/docs/iroh/docs/struct.Entry.html +++ b/pr/2616/docs/iroh/docs/struct.Entry.html @@ -1,37 +1,37 @@ -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

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.

-

Implementations§

source§

impl Entry

source

pub fn new(id: RecordIdentifier, record: Record) -> Entry

Create a new entry

-
source

pub fn new_empty(id: RecordIdentifier) -> Entry

Create a new empty entry with the current timestamp.

-
source

pub fn validate_empty(&self) -> Result<(), ValidationFailure>

Validate that the entry has the empty hash if the length is 0, or a non-zero length.

-
source

pub fn id(&self) -> &RecordIdentifier

Get the RecordIdentifier for this entry.

-
source

pub fn namespace(&self) -> NamespaceId

Get the NamespaceId of this entry.

-
source

pub fn author(&self) -> AuthorId

Get the AuthorId of this entry.

-
source

pub fn key(&self) -> &[u8] ⓘ

Get the key of this entry.

-
source

pub fn record(&self) -> &Record

Get the Record contained in this entry.

-
source

pub fn encode(&self, out: &mut Vec<u8>)

Serialize this entry into its canonical byte representation used for signing.

-
source

pub fn to_vec(&self) -> Vec<u8> ⓘ

Serialize this entry into a new vector with its canonical byte representation.

-
source

pub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry

Sign this entry with a NamespaceSecret and Author.

-

Methods from Deref<Target = Record>§

source

pub fn is_empty(&self) -> bool

Return true if the entry is empty.

-
source

pub fn content_len(&self) -> u64

Get the length of the data addressed by this record’s content hash.

-
source

pub fn content_hash(&self) -> Hash

Get the Hash of the content data of this record.

-
source

pub fn timestamp(&self) -> u64

Get the timestamp of this record.

-

Trait Implementations§

source§

impl Clone for Entry

source§

fn clone(&self) -> Entry

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Entry

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Deref for Entry

§

type Target = Record

The resulting type after dereferencing.
source§

fn deref(&self) -> &<Entry as Deref>::Target

Dereferences the value.
source§

impl<'de> Deserialize<'de> for Entry

Implementations§

§

impl Entry

pub fn new(id: RecordIdentifier, record: Record) -> Entry

Create a new entry

+

pub fn new_empty(id: RecordIdentifier) -> Entry

Create a new empty entry with the current timestamp.

+

pub fn validate_empty(&self) -> Result<(), ValidationFailure>

Validate that the entry has the empty hash if the length is 0, or a non-zero length.

+

pub fn id(&self) -> &RecordIdentifier

Get the RecordIdentifier for this entry.

+

pub fn namespace(&self) -> NamespaceId

Get the NamespaceId of this entry.

+

pub fn author(&self) -> AuthorId

Get the AuthorId of this entry.

+

pub fn key(&self) -> &[u8] ⓘ

Get the key of this entry.

+

pub fn record(&self) -> &Record

Get the Record contained in this entry.

+

pub fn encode(&self, out: &mut Vec<u8>)

Serialize this entry into its canonical byte representation used for signing.

+

pub fn to_vec(&self) -> Vec<u8> ⓘ

Serialize this entry into a new vector with its canonical byte representation.

+

pub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry

Sign this entry with a NamespaceSecret and Author.

+

Methods from Deref<Target = Record>§

pub fn is_empty(&self) -> bool

Return true if the entry is empty.

+

pub fn content_len(&self) -> u64

Get the length of the data addressed by this record’s content hash.

+

pub fn content_hash(&self) -> Hash

Get the Hash of the content data of this record.

+

pub fn timestamp(&self) -> u64

Get the timestamp of this record.

+

Trait Implementations§

§

impl Clone for Entry

§

fn clone(&self) -> Entry

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Entry

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Deref for Entry

§

type Target = Record

The resulting type after dereferencing.
§

fn deref(&self) -> &<Entry as Deref>::Target

Dereferences the value.
§

impl<'de> Deserialize<'de> for Entry

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Entry, <__D as Deserializer<'de>>::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) -> Entry

Converts to this type from the input type.
source§

impl Ord for Entry

source§

fn cmp(&self, other: &Entry) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<Entry> for Entry

source§

fn from(value: Entry) -> Self

Converts to this type from the input type.
§

impl From<SignedEntry> for Entry

§

fn from(value: SignedEntry) -> Entry

Converts to this type from the input type.
§

impl Ord for Entry

§

fn cmp(&self, other: &Entry) -> 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 Entry

source§

fn eq(&self, other: &Entry) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for Entry

§

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 PartialOrd for Entry

source§

fn partial_cmp(&self, other: &Entry) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for Entry

§

fn partial_cmp(&self, other: &Entry) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for Entry

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for Entry

§

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 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 + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for Entry

§

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 T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/struct.EntrySignature.html b/pr/2616/docs/iroh/docs/struct.EntrySignature.html index 57bd7089eb..d2fda4f548 100644 --- a/pr/2616/docs/iroh/docs/struct.EntrySignature.html +++ b/pr/2616/docs/iroh/docs/struct.EntrySignature.html @@ -1,26 +1,26 @@ -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( +EntrySignature in iroh::docs - Rust

Struct iroh::docs::EntrySignature

pub struct EntrySignature { /* private fields */ }
Expand description

Signature over an entry.

+

Implementations§

§

impl EntrySignature

pub fn from_entry( entry: &Entry, namespace: &NamespaceSecret, author: &Author ) -> EntrySignature

Create a new signature by signing an entry with the namespace and author.

-
source

pub fn verify( +

pub fn verify( &self, entry: &Entry, namespace: &NamespacePublicKey, author: &AuthorPublicKey ) -> Result<(), Error>

Verify that this signature was created by signing the entry with the secret keys of the specified author and namespace.

-

Trait Implementations§

source§

impl Clone for EntrySignature

source§

fn clone(&self) -> EntrySignature

Returns a 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 EntrySignature

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for EntrySignature

Trait Implementations§

§

impl Clone for EntrySignature

§

fn clone(&self) -> EntrySignature

Returns a 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 EntrySignature

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for EntrySignature

§

fn deserialize<__D>( __deserializer: __D ) -> Result<EntrySignature, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for EntrySignature

source§

fn eq(&self, other: &EntrySignature) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for EntrySignature

§

fn eq(&self, other: &EntrySignature) -> 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 EntrySignature

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for EntrySignature

§

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 EntrySignature

source§

impl StructuralPartialEq for EntrySignature

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for EntrySignature

§

impl StructuralPartialEq for EntrySignature

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/struct.NamespaceId.html b/pr/2616/docs/iroh/docs/struct.NamespaceId.html index 62d117f507..9bdf0a90df 100644 --- a/pr/2616/docs/iroh/docs/struct.NamespaceId.html +++ b/pr/2616/docs/iroh/docs/struct.NamespaceId.html @@ -1,33 +1,33 @@ -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 +NamespaceId in iroh::docs - Rust

Struct iroh::docs::NamespaceId

pub struct NamespaceId(/* private fields */);
Expand description

Implementations§

§

impl NamespaceId

pub fn to_bytes(&self) -> [u8; 32]

Convert to byte array.

+

pub fn as_bytes(&self) -> &[u8; 32]

Convert to byte slice.

+

pub fn public_key<S>(&self, store: &S) -> Result<NamespacePublicKey, Error>
where S: PublicKeyStore,

Convert into NamespacePublicKey by fetching from a PublicKeyStore.

Fails if the bytes of this NamespaceId are not a valid [ed25519_dalek] curve point.

-
source

pub fn into_public_key(&self) -> Result<NamespacePublicKey, Error>

Convert into NamespacePublicKey.

+

pub fn into_public_key(&self) -> Result<NamespacePublicKey, Error>

Convert into NamespacePublicKey.

Fails if the bytes of this NamespaceId are not a valid [ed25519_dalek] curve point.

-
source

pub fn fmt_short(&self) -> String

Convert to a base32 string limited to the first 10 bytes for a friendly string +

pub fn fmt_short(&self) -> String

Convert to a base32 string limited to the first 10 bytes for a friendly string representation of the key.

-

Trait Implementations§

source§

impl AsRef<[u8]> for 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

Trait Implementations§

§

impl AsRef<[u8]> for NamespaceId

§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
§

impl AsRef<[u8; 32]> for NamespaceId

§

fn as_ref(&self) -> &[u8; 32]

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Clone for NamespaceId

§

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
§

impl Debug for NamespaceId

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for NamespaceId

§

fn default() -> NamespaceId

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for NamespaceId

§

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
§

impl Display for NamespaceId

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<&[u8; 32]> for NamespaceId

§

fn from(value: &[u8; 32]) -> NamespaceId

Converts to this type from the input type.
§

impl From<&NamespacePublicKey> for NamespaceId

§

fn from(value: &NamespacePublicKey) -> NamespaceId

Converts to this type from the input type.
§

impl From<[u8; 32]> for NamespaceId

§

fn from(value: [u8; 32]) -> NamespaceId

Converts to this type from the input type.
§

impl From<NamespaceId> for [u8; 32]

§

fn from(value: NamespaceId) -> [u8; 32]

Converts to this type from the input type.
§

impl From<NamespaceId> for Capability

§

fn from(value: NamespaceId) -> Capability

Converts to this type from the input type.
§

impl From<NamespacePublicKey> for NamespaceId

§

fn from(value: NamespacePublicKey) -> NamespaceId

Converts to this type from the input type.
§

impl From<NamespaceSecret> for NamespaceId

§

fn from(value: NamespaceSecret) -> NamespaceId

Converts to this type from the input type.
§

impl FromStr for NamespaceId

§

type Err = Error

The associated error which can be returned from parsing.
§

fn from_str(s: &str) -> Result<NamespaceId, <NamespaceId as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl Hash for NamespaceId

§

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 + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for NamespaceId

§

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 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 NamespaceId

source§

fn eq(&self, other: &NamespaceId) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for NamespaceId

§

fn eq(&self, other: &NamespaceId) -> 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 NamespaceId

source§

fn partial_cmp(&self, other: &NamespaceId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for NamespaceId

§

fn partial_cmp(&self, other: &NamespaceId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for NamespaceId

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for NamespaceId

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<NamespaceId> for NamespacePublicKey

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl TryFrom<NamespaceId> for NamespacePublicKey

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from( value: NamespaceId -) -> Result<NamespacePublicKey, <NamespacePublicKey as TryFrom<NamespaceId>>::Error>

Performs the conversion.
source§

impl Copy for NamespaceId

source§

impl Eq for NamespaceId

source§

impl StructuralPartialEq for NamespaceId

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T

Performs the conversion.
§

impl Copy for NamespaceId

§

impl Eq for NamespaceId

§

impl StructuralPartialEq for NamespaceId

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<A, T> AsBits<T> for A
where A: AsRef<[T]>, T: BitStore,

§

fn as_bits<O>(&self) -> &BitSlice<T, O>
where @@ -162,7 +162,7 @@ letters are used (e.g. F9B4CA)

Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T

§

impl<T> RpcError for T
where T: Debug + Display + Send + Sync + Unpin + 'static,

§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,

source§

impl<T> RuleType for T
where diff --git a/pr/2616/docs/iroh/docs/struct.NamespacePublicKey.html b/pr/2616/docs/iroh/docs/struct.NamespacePublicKey.html index 8f5b28351a..e5d2ac54e8 100644 --- a/pr/2616/docs/iroh/docs/struct.NamespacePublicKey.html +++ b/pr/2616/docs/iroh/docs/struct.NamespacePublicKey.html @@ -1,34 +1,34 @@ -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

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 +

Implementations§

§

impl NamespacePublicKey

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.

-
source

pub fn as_bytes(&self) -> &[u8; 32]

Get the byte representation of this NamespaceId.

-
source

pub fn from_bytes(bytes: &[u8; 32]) -> Result<NamespacePublicKey, Error>

Create from a slice of bytes.

+

pub fn as_bytes(&self) -> &[u8; 32]

Get the byte representation of this NamespaceId.

+

pub fn from_bytes(bytes: &[u8; 32]) -> Result<NamespacePublicKey, Error>

Create from a slice of bytes.

Will return an error if the input bytes do not represent a valid [ed25519_dalek] curve point. Will never fail for a byte array returned from Self::as_bytes. 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

Trait Implementations§

§

impl Clone for NamespacePublicKey

§

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
§

impl Debug for NamespacePublicKey

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for NamespacePublicKey

§

fn default() -> NamespacePublicKey

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for NamespacePublicKey

§

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
§

impl Display for NamespacePublicKey

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<&NamespacePublicKey> for NamespaceId

§

fn from(value: &NamespacePublicKey) -> NamespaceId

Converts to this type from the input type.
§

impl From<&NamespaceSecret> for NamespacePublicKey

§

fn from(value: &NamespaceSecret) -> NamespacePublicKey

Converts to this type from the input type.
§

impl From<NamespacePublicKey> for NamespaceId

§

fn from(value: NamespacePublicKey) -> NamespaceId

Converts to this type from the input type.
§

impl From<NamespaceSecret> for NamespacePublicKey

§

fn from(value: NamespaceSecret) -> NamespacePublicKey

Converts to this type from the input type.
§

impl From<VerifyingKey> for NamespacePublicKey

§

fn from(value: VerifyingKey) -> NamespacePublicKey

Converts to this type from the input type.
§

impl FromStr for NamespacePublicKey

§

type Err = Error

The associated error which can be returned from parsing.
§

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)

Parses a string s to return a value of this type. Read more
§

impl Hash for NamespacePublicKey

§

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 NamespacePublicKey

source§

fn cmp(&self, other: &NamespacePublicKey) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for NamespacePublicKey

§

fn cmp(&self, other: &NamespacePublicKey) -> 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 NamespacePublicKey

source§

fn eq(&self, other: &NamespacePublicKey) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,
Restrict a value to a certain interval. Read more
§

impl PartialEq for NamespacePublicKey

§

fn eq(&self, other: &NamespacePublicKey) -> 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 NamespacePublicKey

source§

fn partial_cmp(&self, other: &NamespacePublicKey) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for NamespacePublicKey

§

fn partial_cmp(&self, other: &NamespacePublicKey) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for NamespacePublicKey

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for NamespacePublicKey

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<NamespaceId> for NamespacePublicKey

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl TryFrom<NamespaceId> for NamespacePublicKey

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from( value: NamespaceId -) -> Result<NamespacePublicKey, <NamespacePublicKey as TryFrom<NamespaceId>>::Error>

Performs the conversion.
source§

impl Copy for NamespacePublicKey

source§

impl Eq for NamespacePublicKey

source§

impl StructuralPartialEq for NamespacePublicKey

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T

Performs the conversion.
§

impl Copy for NamespacePublicKey

§

impl Eq for NamespacePublicKey

§

impl StructuralPartialEq for NamespacePublicKey

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 @@ -153,7 +153,7 @@ builds.

Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T

§

impl<T> RpcError for T
where T: Debug + Display + Send + Sync + Unpin + 'static,

§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,

source§

impl<T> RuleType for T
where diff --git a/pr/2616/docs/iroh/docs/struct.NamespaceSecret.html b/pr/2616/docs/iroh/docs/struct.NamespaceSecret.html index e5fd7777d7..ea086f0403 100644 --- a/pr/2616/docs/iroh/docs/struct.NamespaceSecret.html +++ b/pr/2616/docs/iroh/docs/struct.NamespaceSecret.html @@ -1,20 +1,20 @@ -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

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 +

Implementations§

§

impl NamespaceSecret

pub fn new<R>(rng: &mut R) -> NamespaceSecret
where R: CryptoRngCore + ?Sized,

Create a new NamespaceSecret with a random key.

-
source

pub fn from_bytes(bytes: &[u8; 32]) -> NamespaceSecret

Create a NamespaceSecret from a byte array.

-
source

pub fn to_bytes(&self) -> [u8; 32]

Returns the NamespaceSecret byte representation.

-
source

pub fn public_key(&self) -> NamespacePublicKey

Get the NamespacePublicKey for this namespace.

-
source

pub fn id(&self) -> NamespaceId

Get the NamespaceId for this namespace.

-
source

pub fn sign(&self, msg: &[u8]) -> Signature

Sign a message with this NamespaceSecret key.

-
source

pub fn verify(&self, msg: &[u8], signature: &Signature) -> Result<(), Error>

Strictly verify a signature on a message with this NamespaceSecret’s public key.

-

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

pub fn from_bytes(bytes: &[u8; 32]) -> NamespaceSecret

Create a NamespaceSecret from a byte array.

+

pub fn to_bytes(&self) -> [u8; 32]

Returns the NamespaceSecret byte representation.

+

pub fn public_key(&self) -> NamespacePublicKey

Get the NamespacePublicKey for this namespace.

+

pub fn id(&self) -> NamespaceId

Get the NamespaceId for this namespace.

+

pub fn sign(&self, msg: &[u8]) -> Signature

Sign a message with this NamespaceSecret key.

+

pub fn verify(&self, msg: &[u8], signature: &Signature) -> Result<(), Error>

Strictly verify a signature on a message with this NamespaceSecret’s public key.

+

Trait Implementations§

§

impl Clone for NamespaceSecret

§

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
§

impl Debug for NamespaceSecret

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NamespaceSecret

§

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
§

impl Display for NamespaceSecret

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<&NamespaceSecret> for NamespacePublicKey

§

fn from(value: &NamespaceSecret) -> NamespacePublicKey

Converts to this type from the input type.
§

impl From<NamespaceSecret> for Capability

§

fn from(value: NamespaceSecret) -> Capability

Converts to this type from the input type.
§

impl From<NamespaceSecret> for NamespaceId

§

fn from(value: NamespaceSecret) -> NamespaceId

Converts to this type from the input type.
§

impl From<NamespaceSecret> for NamespacePublicKey

§

fn from(value: NamespaceSecret) -> NamespacePublicKey

Converts to this type from the input type.
§

impl From<SigningKey> for NamespaceSecret

§

fn from(signing_key: SigningKey) -> NamespaceSecret

Converts to this type from the input type.
§

impl FromStr for NamespaceSecret

§

type Err = Error

The associated error which can be returned from parsing.
§

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>( +) -> Result<NamespaceSecret, <NamespaceSecret as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl Serialize for NamespaceSecret

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/docs/struct.ReadOnly.html b/pr/2616/docs/iroh/docs/struct.ReadOnly.html index 745716ce98..e4fa4379bf 100644 --- a/pr/2616/docs/iroh/docs/struct.ReadOnly.html +++ b/pr/2616/docs/iroh/docs/struct.ReadOnly.html @@ -1,5 +1,5 @@ -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 +ReadOnly in iroh::docs - Rust

Struct iroh::docs::ReadOnly

pub struct ReadOnly;
Expand description

Error that occurs trying to access the NamespaceSecret of a read-only Capability.

+

Trait Implementations§

§

impl Debug for ReadOnly

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ReadOnly

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

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
§

impl From<ReadOnly> for InsertError

§

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 T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/struct.Record.html b/pr/2616/docs/iroh/docs/struct.Record.html index 24d8111435..a947b80d5c 100644 --- a/pr/2616/docs/iroh/docs/struct.Record.html +++ b/pr/2616/docs/iroh/docs/struct.Record.html @@ -1,29 +1,29 @@ -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.

-
source

pub fn is_empty(&self) -> bool

Return true if the entry is empty.

-
source

pub fn new_current(hash: Hash, len: u64) -> Record

Create a new Record with the timestamp set to now.

-
source

pub fn content_len(&self) -> u64

Get the length of the data addressed by this record’s content hash.

-
source

pub fn content_hash(&self) -> Hash

Get the Hash of the content data of this record.

-
source

pub fn timestamp(&self) -> u64

Get the timestamp of this record.

-

Trait Implementations§

source§

impl Clone for Record

source§

fn clone(&self) -> Record

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Record

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Record

source§

fn deserialize<__D>( +Record in iroh::docs - Rust

Struct iroh::docs::Record

pub struct Record { /* private fields */ }
Expand description

The data part of an entry in a Replica.

+

Implementations§

§

impl Record

pub fn new(hash: Hash, len: u64, timestamp: u64) -> Record

Create a new record.

+

pub fn empty(timestamp: u64) -> Record

Create a tombstone record (empty content)

+

pub fn empty_current() -> Record

Create a tombstone record with the timestamp set to now.

+

pub fn is_empty(&self) -> bool

Return true if the entry is empty.

+

pub fn new_current(hash: Hash, len: u64) -> Record

Create a new Record with the timestamp set to now.

+

pub fn content_len(&self) -> u64

Get the length of the data addressed by this record’s content hash.

+

pub fn content_hash(&self) -> Hash

Get the Hash of the content data of this record.

+

pub fn timestamp(&self) -> u64

Get the timestamp of this record.

+

Trait Implementations§

§

impl Clone for Record

§

fn clone(&self) -> Record

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Record

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Record

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Record, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Ord for Record

Ordering for entry values.

+ __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Ord for Record

Ordering for entry values.

Compares first the timestamp, then the content hash.

-
source§

fn cmp(&self, other: &Record) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where +
§

fn cmp(&self, other: &Record) -> 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 Record

source§

fn eq(&self, other: &Record) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more

§

impl PartialEq for Record

§

fn eq(&self, other: &Record) -> 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 Record

source§

fn partial_cmp(&self, other: &Record) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for Record

§

fn partial_cmp(&self, other: &Record) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for Record

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for Record

§

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 Record

source§

impl StructuralPartialEq for Record

Auto Trait Implementations§

§

impl Freeze for Record

§

impl RefUnwindSafe for Record

§

impl Send for Record

§

impl Sync for Record

§

impl Unpin for Record

§

impl UnwindSafe for Record

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for Record

§

impl StructuralPartialEq for Record

Auto Trait Implementations§

§

impl Freeze for Record

§

impl RefUnwindSafe for Record

§

impl Send for Record

§

impl Sync for Record

§

impl Unpin for Record

§

impl UnwindSafe for Record

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/struct.RecordIdentifier.html b/pr/2616/docs/iroh/docs/struct.RecordIdentifier.html index 7fe9fdcdf8..da74dde953 100644 --- a/pr/2616/docs/iroh/docs/struct.RecordIdentifier.html +++ b/pr/2616/docs/iroh/docs/struct.RecordIdentifier.html @@ -1,31 +1,31 @@ -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( +RecordIdentifier in iroh::docs - Rust

Struct iroh::docs::RecordIdentifier

pub struct RecordIdentifier(/* private fields */);
Expand description

The identifier of a record.

+

Implementations§

§

impl RecordIdentifier

pub fn new( namespace: impl Into<NamespaceId>, author: impl Into<AuthorId>, key: impl AsRef<[u8]> ) -> RecordIdentifier

Create a new RecordIdentifier.

-
source

pub fn as_bytes(&self) -> Bytes

Get this RecordIdentifier as [Bytes].

-
source

pub fn as_byte_tuple(&self) -> (&[u8; 32], &[u8; 32], &[u8])

Get this RecordIdentifier as a tuple of byte slices.

-
source

pub fn to_byte_tuple(&self) -> ([u8; 32], [u8; 32], Bytes)

Get this RecordIdentifier as a tuple of bytes.

-
source

pub fn key(&self) -> &[u8] ⓘ

Get the key of this record.

-
source

pub fn key_bytes(&self) -> Bytes

Get the key of this record as [Bytes].

-
source

pub fn namespace(&self) -> NamespaceId

Get the NamespaceId of this record as byte array.

-
source

pub fn author(&self) -> AuthorId

Get the AuthorId of this record as byte array.

-

Trait Implementations§

source§

impl AsRef<[u8]> for RecordIdentifier

source§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for RecordIdentifier

source§

fn clone(&self) -> RecordIdentifier

Returns a 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 RecordIdentifier

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for RecordIdentifier

source§

fn default() -> RecordIdentifier

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for RecordIdentifier

pub fn as_bytes(&self) -> Bytes

Get this RecordIdentifier as [Bytes].

+

pub fn as_byte_tuple(&self) -> (&[u8; 32], &[u8; 32], &[u8])

Get this RecordIdentifier as a tuple of byte slices.

+

pub fn to_byte_tuple(&self) -> ([u8; 32], [u8; 32], Bytes)

Get this RecordIdentifier as a tuple of bytes.

+

pub fn key(&self) -> &[u8] ⓘ

Get the key of this record.

+

pub fn key_bytes(&self) -> Bytes

Get the key of this record as [Bytes].

+

pub fn namespace(&self) -> NamespaceId

Get the NamespaceId of this record as byte array.

+

pub fn author(&self) -> AuthorId

Get the AuthorId of this record as byte array.

+

Trait Implementations§

§

impl AsRef<[u8]> for RecordIdentifier

§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Clone for RecordIdentifier

§

fn clone(&self) -> RecordIdentifier

Returns a 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 RecordIdentifier

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for RecordIdentifier

§

fn default() -> RecordIdentifier

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for RecordIdentifier

§

fn deserialize<__D>( __deserializer: __D ) -> Result<RecordIdentifier, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Ord for RecordIdentifier

source§

fn cmp(&self, other: &RecordIdentifier) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Ord for RecordIdentifier

§

fn cmp(&self, other: &RecordIdentifier) -> 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 RecordIdentifier

source§

fn eq(&self, other: &RecordIdentifier) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for RecordIdentifier

§

fn eq(&self, other: &RecordIdentifier) -> 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 RecordIdentifier

source§

fn partial_cmp(&self, other: &RecordIdentifier) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for RecordIdentifier

§

fn partial_cmp(&self, other: &RecordIdentifier) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for RecordIdentifier

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for RecordIdentifier

§

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 RecordIdentifier

source§

impl StructuralPartialEq for RecordIdentifier

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for RecordIdentifier

§

impl StructuralPartialEq for RecordIdentifier

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<A, T> AsBits<T> for A
where A: AsRef<[T]>, T: BitStore,

§

fn as_bits<O>(&self) -> &BitSlice<T, O>
where diff --git a/pr/2616/docs/iroh/docs/struct.Replica.html b/pr/2616/docs/iroh/docs/struct.Replica.html index 4cc80e78fb..c817f542bd 100644 --- a/pr/2616/docs/iroh/docs/struct.Replica.html +++ b/pr/2616/docs/iroh/docs/struct.Replica.html @@ -1,7 +1,7 @@ -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( +Replica in iroh::docs - Rust

Struct iroh::docs::Replica

pub struct Replica<'a, I = Box<ReplicaInfo>> { /* private fields */ }
Expand description

Local representation of a mutable, synchronizable key-value store.

+

Implementations§

§

impl<'a, I> Replica<'a, I>
where + I: Deref<Target = ReplicaInfo> + DerefMut,

pub fn new(store: StoreInstance<'a>, info: I) -> Replica<'a, I>

Create a new replica.

+

pub fn insert( &mut self, key: impl AsRef<[u8]>, author: &Author, @@ -12,7 +12,7 @@ The len must be the byte length of the data identified by hash.

Returns the number of entries removed as a consequence of this insertion, or an error either if the entry failed to validate or if a store operation failed.

-

source

pub fn delete_prefix( +

pub fn delete_prefix( &mut self, prefix: impl AsRef<[u8]>, author: &Author @@ -20,7 +20,7 @@ or an error either if the entry failed to validate or if a store operation faile

This inserts an empty entry with the key set to prefix, effectively clearing all other entries whose key starts with or is equal to the given prefix.

Returns the number of entries deleted.

-

source

pub fn insert_remote_entry( +

pub fn insert_remote_entry( &mut self, entry: SignedEntry, received_from: [u8; 32], @@ -30,7 +30,7 @@ entries whose key starts with or is equal to the given prefix.

event, and insert the entry into the replica store.

Returns the number of entries removed as a consequence of this insertion, or an error if the entry failed to validate or if a store operation failed.

-

source

pub fn hash_and_insert( +

pub fn hash_and_insert( &mut self, key: impl AsRef<[u8]>, author: &Author, @@ -38,25 +38,25 @@ or an error if the entry failed to validate or if a store operation failed.

) -> Result<Hash, InsertError>

Hashes the given data and inserts it.

This does not store the content, just the record of it. Returns the calculated hash.

-
source

pub fn record_id( +

pub fn record_id( &self, key: impl AsRef<[u8]>, author: &Author ) -> RecordIdentifier

Get the identifier for an entry in this replica.

-
source

pub fn sync_initial_message(&mut self) -> Result<Message<SignedEntry>, Error>

Create the initial message for the set reconciliation flow with a remote peer.

-
source

pub fn sync_process_message( +

pub fn sync_initial_message(&mut self) -> Result<Message<SignedEntry>, Error>

Create the initial message for the set reconciliation flow with a remote peer.

+

pub fn sync_process_message( &mut self, message: Message<SignedEntry>, from_peer: [u8; 32], state: &mut SyncOutcome ) -> Result<Option<Message<SignedEntry>>, Error>

Process a set reconciliation message from a remote peer.

Returns the next message to be sent to the peer, if any.

-
source

pub fn id(&self) -> NamespaceId

Get the namespace identifier for this Replica.

-
source

pub fn capability(&self) -> &Capability

Get the Capability of this Replica.

-
source

pub fn secret_key(&self) -> Result<&NamespaceSecret, ReadOnly>

Get the byte representation of the NamespaceSecret key for this replica. Will fail if +

pub fn id(&self) -> NamespaceId

Get the namespace identifier for this Replica.

+

pub fn capability(&self) -> &Capability

Get the Capability of this Replica.

+

pub fn secret_key(&self) -> Result<&NamespaceSecret, ReadOnly>

Get the byte representation of the NamespaceSecret key for this replica. Will fail if the replica is read only

-

Trait Implementations§

source§

impl<'a, I> Debug for Replica<'a, I>
where - I: Debug,

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, I> Freeze for Replica<'a, I>
where +

Trait Implementations§

§

impl<'a, I> Debug for Replica<'a, I>
where + I: Debug,

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, I> Freeze for Replica<'a, I>
where I: Freeze,

§

impl<'a, I = Box<ReplicaInfo>> !RefUnwindSafe for Replica<'a, I>

§

impl<'a, I> Send for Replica<'a, I>
where I: Send,

§

impl<'a, I> Sync for Replica<'a, I>
where I: Sync,

§

impl<'a, I> Unpin for Replica<'a, I>
where diff --git a/pr/2616/docs/iroh/docs/struct.ReplicaInfo.html b/pr/2616/docs/iroh/docs/struct.ReplicaInfo.html index c613e484c6..eced258230 100644 --- a/pr/2616/docs/iroh/docs/struct.ReplicaInfo.html +++ b/pr/2616/docs/iroh/docs/struct.ReplicaInfo.html @@ -1,32 +1,32 @@ -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.

+ReplicaInfo in iroh::docs - Rust

Struct iroh::docs::ReplicaInfo

pub struct ReplicaInfo { /* private fields */ }
Expand description

In memory information about an open replica.

+

Implementations§

§

impl ReplicaInfo

pub fn new(capability: Capability) -> ReplicaInfo

Create a new replica.

+

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 received from in a loop. If not receiving, local and remote inserts will hang waiting for the receiver to be received from.

-
source

pub fn unsubscribe(&mut self, sender: &Sender<Event>)

Explicitly unsubscribe a sender.

+

pub fn unsubscribe(&mut self, sender: &Sender<Event>)

Explicitly unsubscribe a sender.

Simply dropping the receiver is fine too. If you cloned a single sender to subscribe to multiple replicas, you can use this method to explicitly unsubscribe the sender from this replica without having to drop the receiver.

-
source

pub fn subscribers_count(&self) -> usize

Get the number of current event subscribers.

-
source

pub fn set_content_status_callback( +

pub fn subscribers_count(&self) -> usize

Get the number of current event subscribers.

+

pub fn set_content_status_callback( &mut self, cb: Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync> ) -> bool

Set the content status callback.

Only one callback can be active at a time. If a previous callback was registered, this will return false.

-
source

pub fn closed(&self) -> bool

Returns true if the replica is closed.

+

pub fn closed(&self) -> bool

Returns true if the replica is closed.

If a replica is closed, no further operations can be performed. A replica cannot be closed manually, it must be closed via store::Store::close_replica or store::Store::remove_replica

-
source

pub fn merge_capability( +

pub fn merge_capability( &mut self, capability: Capability ) -> Result<bool, CapabilityError>

Merge a capability.

The capability must refer to the the same namespace, otherwise an error will be returned.

This will upgrade the replica’s capability when passing a Capability::Write. It is a no-op if capability is a Capability::Read`.

-

Trait Implementations§

source§

impl Debug for ReplicaInfo

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for ReplicaInfo

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/struct.SignedEntry.html b/pr/2616/docs/iroh/docs/struct.SignedEntry.html index 513cb7a243..529a644cb2 100644 --- a/pr/2616/docs/iroh/docs/struct.SignedEntry.html +++ b/pr/2616/docs/iroh/docs/struct.SignedEntry.html @@ -1,52 +1,52 @@ -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( +SignedEntry in iroh::docs - Rust

Struct iroh::docs::SignedEntry

pub struct SignedEntry { /* private fields */ }
Expand description

A signed entry.

+

Implementations§

§

impl SignedEntry

pub fn from_entry( entry: Entry, namespace: &NamespaceSecret, author: &Author ) -> SignedEntry

Create a new signed entry by signing an entry with the namespace and author.

-
source

pub fn from_parts( +

pub fn from_parts( namespace: &NamespaceSecret, author: &Author, key: impl AsRef<[u8]>, record: Record ) -> SignedEntry

Create a new signed entries from its parts.

-
source

pub fn verify<S>(&self, store: &S) -> Result<(), Error>
where +

pub fn verify<S>(&self, store: &S) -> Result<(), Error>
where S: PublicKeyStore,

Verify the signatures on this entry.

-
source

pub fn signature(&self) -> &EntrySignature

Get the signature.

-
source

pub fn validate_empty(&self) -> Result<(), ValidationFailure>

Validate that the entry has the empty hash if the length is 0, or a non-zero length.

-
source

pub fn entry(&self) -> &Entry

Get the Entry.

-
source

pub fn content_hash(&self) -> Hash

Get the content Hash of the entry.

-
source

pub fn content_len(&self) -> u64

Get the content length of the entry.

-
source

pub fn author_bytes(&self) -> AuthorId

Get the author bytes of this entry.

-
source

pub fn key(&self) -> &[u8] ⓘ

Get the key of the entry.

-
source

pub fn timestamp(&self) -> u64

Get the timestamp of the entry.

-

Methods from Deref<Target = Entry>§

source

pub fn validate_empty(&self) -> Result<(), ValidationFailure>

Validate that the entry has the empty hash if the length is 0, or a non-zero length.

-
source

pub fn id(&self) -> &RecordIdentifier

Get the RecordIdentifier for this entry.

-
source

pub fn namespace(&self) -> NamespaceId

Get the NamespaceId of this entry.

-
source

pub fn author(&self) -> AuthorId

Get the AuthorId of this entry.

-
source

pub fn key(&self) -> &[u8] ⓘ

Get the key of this entry.

-
source

pub fn record(&self) -> &Record

Get the Record contained in this entry.

-
source

pub fn encode(&self, out: &mut Vec<u8>)

Serialize this entry into its canonical byte representation used for signing.

-
source

pub fn to_vec(&self) -> Vec<u8> ⓘ

Serialize this entry into a new vector with its canonical byte representation.

-

Methods from Deref<Target = Record>§

source

pub fn is_empty(&self) -> bool

Return true if the entry is empty.

-
source

pub fn content_len(&self) -> u64

Get the length of the data addressed by this record’s content hash.

-
source

pub fn content_hash(&self) -> Hash

Get the Hash of the content data of this record.

-
source

pub fn timestamp(&self) -> u64

Get the timestamp of this record.

-

Trait Implementations§

source§

impl Clone for SignedEntry

source§

fn clone(&self) -> SignedEntry

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SignedEntry

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Deref for SignedEntry

§

type Target = Entry

The resulting type after dereferencing.
source§

fn deref(&self) -> &<SignedEntry as Deref>::Target

Dereferences the value.
source§

impl<'de> Deserialize<'de> for SignedEntry

pub fn signature(&self) -> &EntrySignature

Get the signature.

+

pub fn validate_empty(&self) -> Result<(), ValidationFailure>

Validate that the entry has the empty hash if the length is 0, or a non-zero length.

+

pub fn entry(&self) -> &Entry

Get the Entry.

+

pub fn content_hash(&self) -> Hash

Get the content Hash of the entry.

+

pub fn content_len(&self) -> u64

Get the content length of the entry.

+

pub fn author_bytes(&self) -> AuthorId

Get the author bytes of this entry.

+

pub fn key(&self) -> &[u8] ⓘ

Get the key of the entry.

+

pub fn timestamp(&self) -> u64

Get the timestamp of the entry.

+

Methods from Deref<Target = Entry>§

pub fn validate_empty(&self) -> Result<(), ValidationFailure>

Validate that the entry has the empty hash if the length is 0, or a non-zero length.

+

pub fn id(&self) -> &RecordIdentifier

Get the RecordIdentifier for this entry.

+

pub fn namespace(&self) -> NamespaceId

Get the NamespaceId of this entry.

+

pub fn author(&self) -> AuthorId

Get the AuthorId of this entry.

+

pub fn key(&self) -> &[u8] ⓘ

Get the key of this entry.

+

pub fn record(&self) -> &Record

Get the Record contained in this entry.

+

pub fn encode(&self, out: &mut Vec<u8>)

Serialize this entry into its canonical byte representation used for signing.

+

pub fn to_vec(&self) -> Vec<u8> ⓘ

Serialize this entry into a new vector with its canonical byte representation.

+

Methods from Deref<Target = Record>§

pub fn is_empty(&self) -> bool

Return true if the entry is empty.

+

pub fn content_len(&self) -> u64

Get the length of the data addressed by this record’s content hash.

+

pub fn content_hash(&self) -> Hash

Get the Hash of the content data of this record.

+

pub fn timestamp(&self) -> u64

Get the timestamp of this record.

+

Trait Implementations§

§

impl Clone for SignedEntry

§

fn clone(&self) -> SignedEntry

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for SignedEntry

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Deref for SignedEntry

§

type Target = Entry

The resulting type after dereferencing.
§

fn deref(&self) -> &<SignedEntry as Deref>::Target

Dereferences the value.
§

impl<'de> Deserialize<'de> for SignedEntry

§

fn deserialize<__D>( __deserializer: __D ) -> Result<SignedEntry, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<SignedEntry> for Entry

source§

fn from(value: SignedEntry) -> Entry

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 Ord for SignedEntry

source§

fn cmp(&self, other: &SignedEntry) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl From<SignedEntry> for Entry

§

fn from(value: SignedEntry) -> Entry

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.
§

impl Ord for SignedEntry

§

fn cmp(&self, other: &SignedEntry) -> 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 SignedEntry

source§

fn eq(&self, other: &SignedEntry) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for SignedEntry

§

fn eq(&self, other: &SignedEntry) -> 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 SignedEntry

source§

fn partial_cmp(&self, other: &SignedEntry) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for SignedEntry

§

fn partial_cmp(&self, other: &SignedEntry) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for SignedEntry

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for SignedEntry

§

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 SignedEntry

source§

impl StructuralPartialEq for SignedEntry

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for SignedEntry

§

impl StructuralPartialEq for SignedEntry

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/struct.SyncOutcome.html b/pr/2616/docs/iroh/docs/struct.SyncOutcome.html index 11e24296d4..fd2f56af35 100644 --- a/pr/2616/docs/iroh/docs/struct.SyncOutcome.html +++ b/pr/2616/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

pub struct SyncOutcome {
     pub heads_received: AuthorHeads,
     pub num_recv: usize,
     pub num_sent: usize,
@@ -6,7 +6,7 @@
 

Fields§

§heads_received: AuthorHeads

Timestamp of the latest entry for each author in the set we received.

§num_recv: usize

Number of entries we received.

§num_sent: usize

Number of entries we sent.

-

Trait Implementations§

source§

impl Clone for SyncOutcome

source§

fn clone(&self) -> SyncOutcome

Returns a 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 SyncOutcome

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for SyncOutcome

source§

fn default() -> SyncOutcome

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for SyncOutcome

§

fn clone(&self) -> SyncOutcome

Returns a 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 SyncOutcome

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for SyncOutcome

§

fn default() -> SyncOutcome

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/sync/constant.MAX_TIMESTAMP_FUTURE_SHIFT.html b/pr/2616/docs/iroh/docs/sync/constant.MAX_TIMESTAMP_FUTURE_SHIFT.html index a1ab0bb967..208cb6cd06 100644 --- a/pr/2616/docs/iroh/docs/sync/constant.MAX_TIMESTAMP_FUTURE_SHIFT.html +++ b/pr/2616/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

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/2616/docs/iroh/docs/sync/enum.Capability.html b/pr/2616/docs/iroh/docs/sync/enum.Capability.html index c7c28dc103..6a5acdda8f 100644 --- a/pr/2616/docs/iroh/docs/sync/enum.Capability.html +++ b/pr/2616/docs/iroh/docs/sync/enum.Capability.html @@ -1,22 +1,22 @@ -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

pub enum Capability {
     Write(NamespaceSecret),
     Read(NamespaceId),
 }
Expand description

The capability of the namespace.

Variants§

§

Write(NamespaceSecret)

Write access to the namespace.

§

Read(NamespaceId)

Read only access to the namespace.

-

Implementations§

source§

impl Capability

source

pub fn id(&self) -> NamespaceId

Get the NamespaceId for this Capability.

-
source

pub fn secret_key(&self) -> Result<&NamespaceSecret, ReadOnly>

Get the NamespaceSecret of this Capability. +

Implementations§

§

impl Capability

pub fn id(&self) -> NamespaceId

Get the NamespaceId for this Capability.

+

pub fn secret_key(&self) -> Result<&NamespaceSecret, ReadOnly>

Get the NamespaceSecret of this Capability. Will fail if the Capability is read only.

-
source

pub fn kind(&self) -> CapabilityKind

Get the kind of capability.

-
source

pub fn raw(&self) -> (u8, [u8; 32])

Get the raw representation of this namespace capability.

-
source

pub fn from_raw(kind: u8, bytes: &[u8; 32]) -> Result<Capability, Error>

Create a Capability from its raw representation.

-
source

pub fn merge(&mut self, other: Capability) -> Result<bool, CapabilityError>

Merge this capability with another capability.

+

pub fn kind(&self) -> CapabilityKind

Get the kind of capability.

+

pub fn raw(&self) -> (u8, [u8; 32])

Get the raw representation of this namespace capability.

+

pub fn from_raw(kind: u8, bytes: &[u8; 32]) -> Result<Capability, Error>

Create a Capability from its raw representation.

+

pub fn merge(&mut self, other: Capability) -> Result<bool, CapabilityError>

Merge this capability with another capability.

Will return an error if other is not a capability for the same namespace.

Returns true if the capability was changed, false otherwise.

-

Trait Implementations§

source§

impl Clone for Capability

source§

fn clone(&self) -> Capability

Returns a 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 Capability

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Capability

Trait Implementations§

§

impl Clone for Capability

§

fn clone(&self) -> Capability

Returns a 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 Capability

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Capability

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Capability, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<NamespaceId> for Capability

source§

fn from(value: NamespaceId) -> Capability

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 Serialize for Capability

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl From<NamespaceId> for Capability

§

fn from(value: NamespaceId) -> Capability

Converts to this type from the input type.
§

impl From<NamespaceSecret> for Capability

§

fn from(value: NamespaceSecret) -> Capability

Converts to this type from the input type.
§

impl Serialize for Capability

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/docs/sync/enum.CapabilityError.html b/pr/2616/docs/iroh/docs/sync/enum.CapabilityError.html index 557768661f..e21f80568d 100644 --- a/pr/2616/docs/iroh/docs/sync/enum.CapabilityError.html +++ b/pr/2616/docs/iroh/docs/sync/enum.CapabilityError.html @@ -1,8 +1,8 @@ -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

pub enum CapabilityError {
     NamespaceMismatch,
 }
Expand description

Errors for capability operations

Variants§

§

NamespaceMismatch

Namespaces are not the same

-

Trait Implementations§

source§

impl Debug for CapabilityError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for CapabilityError

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for CapabilityError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for CapabilityError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for CapabilityError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for CapabilityError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/sync/enum.CapabilityKind.html b/pr/2616/docs/iroh/docs/sync/enum.CapabilityKind.html index 7374a4ec65..458536153d 100644 --- a/pr/2616/docs/iroh/docs/sync/enum.CapabilityKind.html +++ b/pr/2616/docs/iroh/docs/sync/enum.CapabilityKind.html @@ -1,21 +1,21 @@ -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

#[repr(u8)]
pub enum CapabilityKind { Write = 1, Read = 2, }
Expand description

Kind of capability of the namespace.

Variants§

§

Write = 1

A writable replica.

§

Read = 2

A readable replica.

-

Trait Implementations§

source§

impl Clone for CapabilityKind

source§

fn clone(&self) -> CapabilityKind

Returns a 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 CapabilityKind

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for CapabilityKind

Trait Implementations§

§

impl Clone for CapabilityKind

§

fn clone(&self) -> CapabilityKind

Returns a 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 CapabilityKind

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for CapabilityKind

§

fn deserialize<__D>( __deserializer: __D ) -> Result<CapabilityKind, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for CapabilityKind

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Serialize for CapabilityKind

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl Display for CapabilityKind

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Serialize for CapabilityKind

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<u8> for CapabilityKind

§

type Error = TryFromPrimitiveError<CapabilityKind>

The type returned in the event of a conversion error.
source§

fn try_from( + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl TryFrom<u8> for CapabilityKind

§

type Error = TryFromPrimitiveError<CapabilityKind>

The type returned in the event of a conversion error.
§

fn try_from( number: u8 -) -> Result<CapabilityKind, TryFromPrimitiveError<CapabilityKind>>

Performs the conversion.
source§

impl TryFromPrimitive for CapabilityKind

§

type Primitive = u8

§

type Error = TryFromPrimitiveError<CapabilityKind>

source§

const NAME: &'static str = "CapabilityKind"

source§

fn try_from_primitive( +) -> Result<CapabilityKind, TryFromPrimitiveError<CapabilityKind>>

Performs the conversion.
§

impl TryFromPrimitive for CapabilityKind

§

type Primitive = u8

§

type Error = TryFromPrimitiveError<CapabilityKind>

§

const NAME: &'static str = "CapabilityKind"

§

fn try_from_primitive( number: <CapabilityKind as TryFromPrimitive>::Primitive -) -> Result<CapabilityKind, TryFromPrimitiveError<CapabilityKind>>

source§

impl Copy for CapabilityKind

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +) -> Result<CapabilityKind, TryFromPrimitiveError<CapabilityKind>>

§

impl Copy for CapabilityKind

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/sync/enum.ContentStatus.html b/pr/2616/docs/iroh/docs/sync/enum.ContentStatus.html index 5f49ee3fcc..fff8258233 100644 --- a/pr/2616/docs/iroh/docs/sync/enum.ContentStatus.html +++ b/pr/2616/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

pub enum ContentStatus {
     Complete,
     Incomplete,
     Missing,
@@ -6,16 +6,16 @@
 

Variants§

§

Complete

The content is completely available.

§

Incomplete

The content is partially available.

§

Missing

The content is missing.

-

Trait Implementations§

source§

impl Clone for ContentStatus

source§

fn clone(&self) -> ContentStatus

Returns a 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 ContentStatus

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ContentStatus

Trait Implementations§

§

impl Clone for ContentStatus

§

fn clone(&self) -> ContentStatus

Returns a 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 ContentStatus

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for ContentStatus

§

fn deserialize<__D>( __deserializer: __D ) -> Result<ContentStatus, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for ContentStatus

source§

fn eq(&self, other: &ContentStatus) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for ContentStatus

§

fn eq(&self, other: &ContentStatus) -> 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 ContentStatus

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for ContentStatus

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for ContentStatus

source§

impl Eq for ContentStatus

source§

impl StructuralPartialEq for ContentStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for ContentStatus

§

impl Eq for ContentStatus

§

impl StructuralPartialEq for ContentStatus

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/sync/enum.Event.html b/pr/2616/docs/iroh/docs/sync/enum.Event.html index c3fd832786..e7b55ca87a 100644 --- a/pr/2616/docs/iroh/docs/sync/enum.Event.html +++ b/pr/2616/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

pub enum Event {
     LocalInsert {
         namespace: NamespaceId,
         entry: SignedEntry,
@@ -20,7 +20,7 @@
 
§from: [u8; 32]

Peer that provided the inserted entry.

§should_download: bool

Whether download policies require the content to be downloaded.

§remote_content_status: ContentStatus

ContentStatus for this entry in the remote’s replica.

-

Trait Implementations§

source§

impl Clone for Event

source§

fn clone(&self) -> Event

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Event

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for Event

§

fn clone(&self) -> Event

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Event

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/sync/enum.InsertError.html b/pr/2616/docs/iroh/docs/sync/enum.InsertError.html index 726e8861bb..e809e86089 100644 --- a/pr/2616/docs/iroh/docs/sync/enum.InsertError.html +++ b/pr/2616/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

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§

§

impl Debug for InsertError

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for InsertError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for InsertError

§

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<ReadOnly> for InsertError

§

fn from(value: ReadOnly) -> InsertError

Converts to this type from the input type.
§

impl From<ValidationFailure> for InsertError

§

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 diff --git a/pr/2616/docs/iroh/docs/sync/enum.InsertOrigin.html b/pr/2616/docs/iroh/docs/sync/enum.InsertOrigin.html index 359ac239e0..5f92c53dd3 100644 --- a/pr/2616/docs/iroh/docs/sync/enum.InsertOrigin.html +++ b/pr/2616/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

pub enum InsertOrigin {
     Local,
     Sync {
         from: [u8; 32],
@@ -9,7 +9,7 @@
 
§

Sync

The entry was received from the remote node identified by PeerIdBytes.

Fields

§from: [u8; 32]

The peer from which we received this entry.

§remote_content_status: ContentStatus

Whether the peer claims to have the content blob for this entry.

-

Trait Implementations§

source§

impl Clone for InsertOrigin

source§

fn clone(&self) -> InsertOrigin

Returns a 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 InsertOrigin

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for InsertOrigin

§

fn clone(&self) -> InsertOrigin

Returns a 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 InsertOrigin

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/sync/enum.ValidationFailure.html b/pr/2616/docs/iroh/docs/sync/enum.ValidationFailure.html index 5bf77fa48a..c88f1c93f1 100644 --- a/pr/2616/docs/iroh/docs/sync/enum.ValidationFailure.html +++ b/pr/2616/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

pub enum ValidationFailure {
     InvalidNamespace,
     BadSignature,
     TooFarInTheFuture,
@@ -8,7 +8,7 @@
 
§

BadSignature

Entry signature is invalid.

§

TooFarInTheFuture

Entry timestamp is too far in the future.

§

InvalidEmptyEntry

Entry has length 0 but not the empty hash, or the empty hash but not length 0.

-

Trait Implementations§

source§

impl Debug for ValidationFailure

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Display for ValidationFailure

source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Error for ValidationFailure

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<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§

§

impl Debug for ValidationFailure

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ValidationFailure

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ValidationFailure

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<ValidationFailure> for InsertError

§

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 diff --git a/pr/2616/docs/iroh/docs/sync/index.html b/pr/2616/docs/iroh/docs/sync/index.html index dc5a33ec21..e0a45c7358 100644 --- a/pr/2616/docs/iroh/docs/sync/index.html +++ b/pr/2616/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

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/2616/docs/iroh/docs/sync/struct.AuthorHeads.html b/pr/2616/docs/iroh/docs/sync/struct.AuthorHeads.html index 5182362e50..8135a400bc 100644 --- a/pr/2616/docs/iroh/docs/sync/struct.AuthorHeads.html +++ b/pr/2616/docs/iroh/docs/sync/struct.AuthorHeads.html @@ -1,20 +1,20 @@ -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.

-
source

pub fn get(&self, author: &AuthorId) -> Option<u64>

Get the timestamp for an author.

-
source

pub fn has_news_for(&self, other: &AuthorHeads) -> Option<NonZero<u64>>

Can this state offer newer stuff to other?

-
source

pub fn merge(&mut self, other: &AuthorHeads)

Merge another author head state into this one.

-
source

pub fn iter(&self) -> Iter<'_, AuthorId, u64>

Create an iterator over the entries in this state.

-
source

pub fn encode(&self, size_limit: Option<usize>) -> Result<Vec<u8>, Error>

Encode into a byte array with a limited size.

+AuthorHeads in iroh::docs::sync - Rust

Struct iroh::docs::sync::AuthorHeads

pub struct AuthorHeads { /* private fields */ }
Expand description

Timestamps of the latest entry for each author.

+

Implementations§

§

impl AuthorHeads

pub fn insert(&mut self, author: AuthorId, timestamp: u64)

Insert a new timestamp.

+

pub fn len(&self) -> usize

Number of author-timestamp pairs.

+

pub fn is_empty(&self) -> bool

Whether this AuthorHeads is empty.

+

pub fn get(&self, author: &AuthorId) -> Option<u64>

Get the timestamp for an author.

+

pub fn has_news_for(&self, other: &AuthorHeads) -> Option<NonZero<u64>>

Can this state offer newer stuff to other?

+

pub fn merge(&mut self, other: &AuthorHeads)

Merge another author head state into this one.

+

pub fn iter(&self) -> Iter<'_, AuthorId, u64>

Create an iterator over the entries in this state.

+

pub fn encode(&self, size_limit: Option<usize>) -> Result<Vec<u8>, Error>

Encode into a byte array with a limited size.

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 - 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 +

pub fn decode(bytes: &[u8]) -> Result<AuthorHeads, Error>

Decode from byte slice created with Self::encode.

+

Trait Implementations§

§

impl Clone for AuthorHeads

§

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
§

impl Debug for AuthorHeads

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for AuthorHeads

§

fn default() -> AuthorHeads

Returns the “default value” for a type. Read more
§

impl FromIterator<(AuthorId, u64)> for AuthorHeads

§

fn from_iter<T>(iter: T) -> AuthorHeads
where + T: IntoIterator<Item = (AuthorId, u64)>,

Creates a value from an iterator. Read more
§

impl FromIterator<(u64, AuthorId)> for AuthorHeads

§

fn from_iter<T>(iter: T) -> AuthorHeads
where + T: IntoIterator<Item = (u64, AuthorId)>,

Creates a value from an iterator. Read more
§

impl PartialEq for AuthorHeads

§

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 +sufficient, and should not be overridden without very good reason.

§

impl Eq for AuthorHeads

§

impl StructuralPartialEq for AuthorHeads

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/sync/struct.Entry.html b/pr/2616/docs/iroh/docs/sync/struct.Entry.html index e1a3ab6280..e57fe5677f 100644 --- a/pr/2616/docs/iroh/docs/sync/struct.Entry.html +++ b/pr/2616/docs/iroh/docs/sync/struct.Entry.html @@ -1,37 +1,37 @@ -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

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.

-

Implementations§

source§

impl Entry

source

pub fn new(id: RecordIdentifier, record: Record) -> Entry

Create a new entry

-
source

pub fn new_empty(id: RecordIdentifier) -> Entry

Create a new empty entry with the current timestamp.

-
source

pub fn validate_empty(&self) -> Result<(), ValidationFailure>

Validate that the entry has the empty hash if the length is 0, or a non-zero length.

-
source

pub fn id(&self) -> &RecordIdentifier

Get the RecordIdentifier for this entry.

-
source

pub fn namespace(&self) -> NamespaceId

Get the NamespaceId of this entry.

-
source

pub fn author(&self) -> AuthorId

Get the AuthorId of this entry.

-
source

pub fn key(&self) -> &[u8] ⓘ

Get the key of this entry.

-
source

pub fn record(&self) -> &Record

Get the Record contained in this entry.

-
source

pub fn encode(&self, out: &mut Vec<u8>)

Serialize this entry into its canonical byte representation used for signing.

-
source

pub fn to_vec(&self) -> Vec<u8> ⓘ

Serialize this entry into a new vector with its canonical byte representation.

-
source

pub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry

Sign this entry with a NamespaceSecret and Author.

-

Methods from Deref<Target = Record>§

source

pub fn is_empty(&self) -> bool

Return true if the entry is empty.

-
source

pub fn content_len(&self) -> u64

Get the length of the data addressed by this record’s content hash.

-
source

pub fn content_hash(&self) -> Hash

Get the Hash of the content data of this record.

-
source

pub fn timestamp(&self) -> u64

Get the timestamp of this record.

-

Trait Implementations§

source§

impl Clone for Entry

source§

fn clone(&self) -> Entry

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Entry

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Deref for Entry

§

type Target = Record

The resulting type after dereferencing.
source§

fn deref(&self) -> &<Entry as Deref>::Target

Dereferences the value.
source§

impl<'de> Deserialize<'de> for Entry

Implementations§

§

impl Entry

pub fn new(id: RecordIdentifier, record: Record) -> Entry

Create a new entry

+

pub fn new_empty(id: RecordIdentifier) -> Entry

Create a new empty entry with the current timestamp.

+

pub fn validate_empty(&self) -> Result<(), ValidationFailure>

Validate that the entry has the empty hash if the length is 0, or a non-zero length.

+

pub fn id(&self) -> &RecordIdentifier

Get the RecordIdentifier for this entry.

+

pub fn namespace(&self) -> NamespaceId

Get the NamespaceId of this entry.

+

pub fn author(&self) -> AuthorId

Get the AuthorId of this entry.

+

pub fn key(&self) -> &[u8] ⓘ

Get the key of this entry.

+

pub fn record(&self) -> &Record

Get the Record contained in this entry.

+

pub fn encode(&self, out: &mut Vec<u8>)

Serialize this entry into its canonical byte representation used for signing.

+

pub fn to_vec(&self) -> Vec<u8> ⓘ

Serialize this entry into a new vector with its canonical byte representation.

+

pub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry

Sign this entry with a NamespaceSecret and Author.

+

Methods from Deref<Target = Record>§

pub fn is_empty(&self) -> bool

Return true if the entry is empty.

+

pub fn content_len(&self) -> u64

Get the length of the data addressed by this record’s content hash.

+

pub fn content_hash(&self) -> Hash

Get the Hash of the content data of this record.

+

pub fn timestamp(&self) -> u64

Get the timestamp of this record.

+

Trait Implementations§

§

impl Clone for Entry

§

fn clone(&self) -> Entry

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Entry

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Deref for Entry

§

type Target = Record

The resulting type after dereferencing.
§

fn deref(&self) -> &<Entry as Deref>::Target

Dereferences the value.
§

impl<'de> Deserialize<'de> for Entry

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Entry, <__D as Deserializer<'de>>::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) -> Entry

Converts to this type from the input type.
source§

impl Ord for Entry

source§

fn cmp(&self, other: &Entry) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<Entry> for Entry

source§

fn from(value: Entry) -> Self

Converts to this type from the input type.
§

impl From<SignedEntry> for Entry

§

fn from(value: SignedEntry) -> Entry

Converts to this type from the input type.
§

impl Ord for Entry

§

fn cmp(&self, other: &Entry) -> 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 Entry

source§

fn eq(&self, other: &Entry) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for Entry

§

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 PartialOrd for Entry

source§

fn partial_cmp(&self, other: &Entry) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for Entry

§

fn partial_cmp(&self, other: &Entry) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for Entry

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for Entry

§

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 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 + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

§

impl Eq for Entry

§

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 T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/sync/struct.EntrySignature.html b/pr/2616/docs/iroh/docs/sync/struct.EntrySignature.html index 7ad71d17b9..9747791b05 100644 --- a/pr/2616/docs/iroh/docs/sync/struct.EntrySignature.html +++ b/pr/2616/docs/iroh/docs/sync/struct.EntrySignature.html @@ -1,26 +1,26 @@ -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( +EntrySignature in iroh::docs::sync - Rust

Struct iroh::docs::sync::EntrySignature

pub struct EntrySignature { /* private fields */ }
Expand description

Signature over an entry.

+

Implementations§

§

impl EntrySignature

pub fn from_entry( entry: &Entry, namespace: &NamespaceSecret, author: &Author ) -> EntrySignature

Create a new signature by signing an entry with the namespace and author.

-
source

pub fn verify( +

pub fn verify( &self, entry: &Entry, namespace: &NamespacePublicKey, author: &AuthorPublicKey ) -> Result<(), Error>

Verify that this signature was created by signing the entry with the secret keys of the specified author and namespace.

-

Trait Implementations§

source§

impl Clone for EntrySignature

source§

fn clone(&self) -> EntrySignature

Returns a 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 EntrySignature

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for EntrySignature

Trait Implementations§

§

impl Clone for EntrySignature

§

fn clone(&self) -> EntrySignature

Returns a 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 EntrySignature

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for EntrySignature

§

fn deserialize<__D>( __deserializer: __D ) -> Result<EntrySignature, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for EntrySignature

source§

fn eq(&self, other: &EntrySignature) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl PartialEq for EntrySignature

§

fn eq(&self, other: &EntrySignature) -> 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 EntrySignature

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for EntrySignature

§

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 EntrySignature

source§

impl StructuralPartialEq for EntrySignature

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for EntrySignature

§

impl StructuralPartialEq for EntrySignature

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/sync/struct.ReadOnly.html b/pr/2616/docs/iroh/docs/sync/struct.ReadOnly.html index d11c3525fe..7311935997 100644 --- a/pr/2616/docs/iroh/docs/sync/struct.ReadOnly.html +++ b/pr/2616/docs/iroh/docs/sync/struct.ReadOnly.html @@ -1,5 +1,5 @@ -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 +ReadOnly in iroh::docs::sync - Rust

Struct iroh::docs::sync::ReadOnly

pub struct ReadOnly;
Expand description

Error that occurs trying to access the NamespaceSecret of a read-only Capability.

+

Trait Implementations§

§

impl Debug for ReadOnly

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ReadOnly

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

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
§

impl From<ReadOnly> for InsertError

§

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 T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/sync/struct.Record.html b/pr/2616/docs/iroh/docs/sync/struct.Record.html index fa6983a66a..7360e94071 100644 --- a/pr/2616/docs/iroh/docs/sync/struct.Record.html +++ b/pr/2616/docs/iroh/docs/sync/struct.Record.html @@ -1,29 +1,29 @@ -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.

-
source

pub fn is_empty(&self) -> bool

Return true if the entry is empty.

-
source

pub fn new_current(hash: Hash, len: u64) -> Record

Create a new Record with the timestamp set to now.

-
source

pub fn content_len(&self) -> u64

Get the length of the data addressed by this record’s content hash.

-
source

pub fn content_hash(&self) -> Hash

Get the Hash of the content data of this record.

-
source

pub fn timestamp(&self) -> u64

Get the timestamp of this record.

-

Trait Implementations§

source§

impl Clone for Record

source§

fn clone(&self) -> Record

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Record

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Record

source§

fn deserialize<__D>( +Record in iroh::docs::sync - Rust

Struct iroh::docs::sync::Record

pub struct Record { /* private fields */ }
Expand description

The data part of an entry in a Replica.

+

Implementations§

§

impl Record

pub fn new(hash: Hash, len: u64, timestamp: u64) -> Record

Create a new record.

+

pub fn empty(timestamp: u64) -> Record

Create a tombstone record (empty content)

+

pub fn empty_current() -> Record

Create a tombstone record with the timestamp set to now.

+

pub fn is_empty(&self) -> bool

Return true if the entry is empty.

+

pub fn new_current(hash: Hash, len: u64) -> Record

Create a new Record with the timestamp set to now.

+

pub fn content_len(&self) -> u64

Get the length of the data addressed by this record’s content hash.

+

pub fn content_hash(&self) -> Hash

Get the Hash of the content data of this record.

+

pub fn timestamp(&self) -> u64

Get the timestamp of this record.

+

Trait Implementations§

§

impl Clone for Record

§

fn clone(&self) -> Record

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Record

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Record

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Record, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Ord for Record

Ordering for entry values.

+ __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Ord for Record

Ordering for entry values.

Compares first the timestamp, then the content hash.

-
source§

fn cmp(&self, other: &Record) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where +
§

fn cmp(&self, other: &Record) -> 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 Record

source§

fn eq(&self, other: &Record) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more

§

impl PartialEq for Record

§

fn eq(&self, other: &Record) -> 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 Record

source§

fn partial_cmp(&self, other: &Record) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for Record

§

fn partial_cmp(&self, other: &Record) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for Record

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for Record

§

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 Record

source§

impl StructuralPartialEq for Record

Auto Trait Implementations§

§

impl Freeze for Record

§

impl RefUnwindSafe for Record

§

impl Send for Record

§

impl Sync for Record

§

impl Unpin for Record

§

impl UnwindSafe for Record

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for Record

§

impl StructuralPartialEq for Record

Auto Trait Implementations§

§

impl Freeze for Record

§

impl RefUnwindSafe for Record

§

impl Send for Record

§

impl Sync for Record

§

impl Unpin for Record

§

impl UnwindSafe for Record

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/sync/struct.RecordIdentifier.html b/pr/2616/docs/iroh/docs/sync/struct.RecordIdentifier.html index 0b28be4c6f..d0dafd3bb1 100644 --- a/pr/2616/docs/iroh/docs/sync/struct.RecordIdentifier.html +++ b/pr/2616/docs/iroh/docs/sync/struct.RecordIdentifier.html @@ -1,31 +1,31 @@ -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( +RecordIdentifier in iroh::docs::sync - Rust

Struct iroh::docs::sync::RecordIdentifier

pub struct RecordIdentifier(/* private fields */);
Expand description

The identifier of a record.

+

Implementations§

§

impl RecordIdentifier

pub fn new( namespace: impl Into<NamespaceId>, author: impl Into<AuthorId>, key: impl AsRef<[u8]> ) -> RecordIdentifier

Create a new RecordIdentifier.

-
source

pub fn as_bytes(&self) -> Bytes

Get this RecordIdentifier as [Bytes].

-
source

pub fn as_byte_tuple(&self) -> (&[u8; 32], &[u8; 32], &[u8])

Get this RecordIdentifier as a tuple of byte slices.

-
source

pub fn to_byte_tuple(&self) -> ([u8; 32], [u8; 32], Bytes)

Get this RecordIdentifier as a tuple of bytes.

-
source

pub fn key(&self) -> &[u8] ⓘ

Get the key of this record.

-
source

pub fn key_bytes(&self) -> Bytes

Get the key of this record as [Bytes].

-
source

pub fn namespace(&self) -> NamespaceId

Get the NamespaceId of this record as byte array.

-
source

pub fn author(&self) -> AuthorId

Get the AuthorId of this record as byte array.

-

Trait Implementations§

source§

impl AsRef<[u8]> for RecordIdentifier

source§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for RecordIdentifier

source§

fn clone(&self) -> RecordIdentifier

Returns a 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 RecordIdentifier

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for RecordIdentifier

source§

fn default() -> RecordIdentifier

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for RecordIdentifier

pub fn as_bytes(&self) -> Bytes

Get this RecordIdentifier as [Bytes].

+

pub fn as_byte_tuple(&self) -> (&[u8; 32], &[u8; 32], &[u8])

Get this RecordIdentifier as a tuple of byte slices.

+

pub fn to_byte_tuple(&self) -> ([u8; 32], [u8; 32], Bytes)

Get this RecordIdentifier as a tuple of bytes.

+

pub fn key(&self) -> &[u8] ⓘ

Get the key of this record.

+

pub fn key_bytes(&self) -> Bytes

Get the key of this record as [Bytes].

+

pub fn namespace(&self) -> NamespaceId

Get the NamespaceId of this record as byte array.

+

pub fn author(&self) -> AuthorId

Get the AuthorId of this record as byte array.

+

Trait Implementations§

§

impl AsRef<[u8]> for RecordIdentifier

§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Clone for RecordIdentifier

§

fn clone(&self) -> RecordIdentifier

Returns a 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 RecordIdentifier

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for RecordIdentifier

§

fn default() -> RecordIdentifier

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for RecordIdentifier

§

fn deserialize<__D>( __deserializer: __D ) -> Result<RecordIdentifier, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Ord for RecordIdentifier

source§

fn cmp(&self, other: &RecordIdentifier) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Ord for RecordIdentifier

§

fn cmp(&self, other: &RecordIdentifier) -> 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 RecordIdentifier

source§

fn eq(&self, other: &RecordIdentifier) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for RecordIdentifier

§

fn eq(&self, other: &RecordIdentifier) -> 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 RecordIdentifier

source§

fn partial_cmp(&self, other: &RecordIdentifier) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for RecordIdentifier

§

fn partial_cmp(&self, other: &RecordIdentifier) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for RecordIdentifier

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for RecordIdentifier

§

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 RecordIdentifier

source§

impl StructuralPartialEq for RecordIdentifier

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for RecordIdentifier

§

impl StructuralPartialEq for RecordIdentifier

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<A, T> AsBits<T> for A
where A: AsRef<[T]>, T: BitStore,

§

fn as_bits<O>(&self) -> &BitSlice<T, O>
where diff --git a/pr/2616/docs/iroh/docs/sync/struct.Replica.html b/pr/2616/docs/iroh/docs/sync/struct.Replica.html index 4c47891916..adf9229621 100644 --- a/pr/2616/docs/iroh/docs/sync/struct.Replica.html +++ b/pr/2616/docs/iroh/docs/sync/struct.Replica.html @@ -1,7 +1,7 @@ -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( +Replica in iroh::docs::sync - Rust

Struct iroh::docs::sync::Replica

pub struct Replica<'a, I = Box<ReplicaInfo>> { /* private fields */ }
Expand description

Local representation of a mutable, synchronizable key-value store.

+

Implementations§

§

impl<'a, I> Replica<'a, I>
where + I: Deref<Target = ReplicaInfo> + DerefMut,

pub fn new(store: StoreInstance<'a>, info: I) -> Replica<'a, I>

Create a new replica.

+

pub fn insert( &mut self, key: impl AsRef<[u8]>, author: &Author, @@ -12,7 +12,7 @@ The len must be the byte length of the data identified by hash.

Returns the number of entries removed as a consequence of this insertion, or an error either if the entry failed to validate or if a store operation failed.

-

source

pub fn delete_prefix( +

pub fn delete_prefix( &mut self, prefix: impl AsRef<[u8]>, author: &Author @@ -20,7 +20,7 @@ or an error either if the entry failed to validate or if a store operation faile

This inserts an empty entry with the key set to prefix, effectively clearing all other entries whose key starts with or is equal to the given prefix.

Returns the number of entries deleted.

-

source

pub fn insert_remote_entry( +

pub fn insert_remote_entry( &mut self, entry: SignedEntry, received_from: [u8; 32], @@ -30,7 +30,7 @@ entries whose key starts with or is equal to the given prefix.

event, and insert the entry into the replica store.

Returns the number of entries removed as a consequence of this insertion, or an error if the entry failed to validate or if a store operation failed.

-

source

pub fn hash_and_insert( +

pub fn hash_and_insert( &mut self, key: impl AsRef<[u8]>, author: &Author, @@ -38,25 +38,25 @@ or an error if the entry failed to validate or if a store operation failed.

) -> Result<Hash, InsertError>

Hashes the given data and inserts it.

This does not store the content, just the record of it. Returns the calculated hash.

-
source

pub fn record_id( +

pub fn record_id( &self, key: impl AsRef<[u8]>, author: &Author ) -> RecordIdentifier

Get the identifier for an entry in this replica.

-
source

pub fn sync_initial_message(&mut self) -> Result<Message<SignedEntry>, Error>

Create the initial message for the set reconciliation flow with a remote peer.

-
source

pub fn sync_process_message( +

pub fn sync_initial_message(&mut self) -> Result<Message<SignedEntry>, Error>

Create the initial message for the set reconciliation flow with a remote peer.

+

pub fn sync_process_message( &mut self, message: Message<SignedEntry>, from_peer: [u8; 32], state: &mut SyncOutcome ) -> Result<Option<Message<SignedEntry>>, Error>

Process a set reconciliation message from a remote peer.

Returns the next message to be sent to the peer, if any.

-
source

pub fn id(&self) -> NamespaceId

Get the namespace identifier for this Replica.

-
source

pub fn capability(&self) -> &Capability

Get the Capability of this Replica.

-
source

pub fn secret_key(&self) -> Result<&NamespaceSecret, ReadOnly>

Get the byte representation of the NamespaceSecret key for this replica. Will fail if +

pub fn id(&self) -> NamespaceId

Get the namespace identifier for this Replica.

+

pub fn capability(&self) -> &Capability

Get the Capability of this Replica.

+

pub fn secret_key(&self) -> Result<&NamespaceSecret, ReadOnly>

Get the byte representation of the NamespaceSecret key for this replica. Will fail if the replica is read only

-

Trait Implementations§

source§

impl<'a, I> Debug for Replica<'a, I>
where - I: Debug,

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, I> Freeze for Replica<'a, I>
where +

Trait Implementations§

§

impl<'a, I> Debug for Replica<'a, I>
where + I: Debug,

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, I> Freeze for Replica<'a, I>
where I: Freeze,

§

impl<'a, I = Box<ReplicaInfo>> !RefUnwindSafe for Replica<'a, I>

§

impl<'a, I> Send for Replica<'a, I>
where I: Send,

§

impl<'a, I> Sync for Replica<'a, I>
where I: Sync,

§

impl<'a, I> Unpin for Replica<'a, I>
where diff --git a/pr/2616/docs/iroh/docs/sync/struct.ReplicaInfo.html b/pr/2616/docs/iroh/docs/sync/struct.ReplicaInfo.html index c938a0e245..9856ee833b 100644 --- a/pr/2616/docs/iroh/docs/sync/struct.ReplicaInfo.html +++ b/pr/2616/docs/iroh/docs/sync/struct.ReplicaInfo.html @@ -1,32 +1,32 @@ -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.

+ReplicaInfo in iroh::docs::sync - Rust

Struct iroh::docs::sync::ReplicaInfo

pub struct ReplicaInfo { /* private fields */ }
Expand description

In memory information about an open replica.

+

Implementations§

§

impl ReplicaInfo

pub fn new(capability: Capability) -> ReplicaInfo

Create a new replica.

+

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 received from in a loop. If not receiving, local and remote inserts will hang waiting for the receiver to be received from.

-
source

pub fn unsubscribe(&mut self, sender: &Sender<Event>)

Explicitly unsubscribe a sender.

+

pub fn unsubscribe(&mut self, sender: &Sender<Event>)

Explicitly unsubscribe a sender.

Simply dropping the receiver is fine too. If you cloned a single sender to subscribe to multiple replicas, you can use this method to explicitly unsubscribe the sender from this replica without having to drop the receiver.

-
source

pub fn subscribers_count(&self) -> usize

Get the number of current event subscribers.

-
source

pub fn set_content_status_callback( +

pub fn subscribers_count(&self) -> usize

Get the number of current event subscribers.

+

pub fn set_content_status_callback( &mut self, cb: Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync> ) -> bool

Set the content status callback.

Only one callback can be active at a time. If a previous callback was registered, this will return false.

-
source

pub fn closed(&self) -> bool

Returns true if the replica is closed.

+

pub fn closed(&self) -> bool

Returns true if the replica is closed.

If a replica is closed, no further operations can be performed. A replica cannot be closed manually, it must be closed via store::Store::close_replica or store::Store::remove_replica

-
source

pub fn merge_capability( +

pub fn merge_capability( &mut self, capability: Capability ) -> Result<bool, CapabilityError>

Merge a capability.

The capability must refer to the the same namespace, otherwise an error will be returned.

This will upgrade the replica’s capability when passing a Capability::Write. It is a no-op if capability is a Capability::Read`.

-

Trait Implementations§

source§

impl Debug for ReplicaInfo

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for ReplicaInfo

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/sync/struct.SignedEntry.html b/pr/2616/docs/iroh/docs/sync/struct.SignedEntry.html index 89bc1a9377..9df241bce2 100644 --- a/pr/2616/docs/iroh/docs/sync/struct.SignedEntry.html +++ b/pr/2616/docs/iroh/docs/sync/struct.SignedEntry.html @@ -1,52 +1,52 @@ -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( +SignedEntry in iroh::docs::sync - Rust

Struct iroh::docs::sync::SignedEntry

pub struct SignedEntry { /* private fields */ }
Expand description

A signed entry.

+

Implementations§

§

impl SignedEntry

pub fn from_entry( entry: Entry, namespace: &NamespaceSecret, author: &Author ) -> SignedEntry

Create a new signed entry by signing an entry with the namespace and author.

-
source

pub fn from_parts( +

pub fn from_parts( namespace: &NamespaceSecret, author: &Author, key: impl AsRef<[u8]>, record: Record ) -> SignedEntry

Create a new signed entries from its parts.

-
source

pub fn verify<S>(&self, store: &S) -> Result<(), Error>
where +

pub fn verify<S>(&self, store: &S) -> Result<(), Error>
where S: PublicKeyStore,

Verify the signatures on this entry.

-
source

pub fn signature(&self) -> &EntrySignature

Get the signature.

-
source

pub fn validate_empty(&self) -> Result<(), ValidationFailure>

Validate that the entry has the empty hash if the length is 0, or a non-zero length.

-
source

pub fn entry(&self) -> &Entry

Get the Entry.

-
source

pub fn content_hash(&self) -> Hash

Get the content Hash of the entry.

-
source

pub fn content_len(&self) -> u64

Get the content length of the entry.

-
source

pub fn author_bytes(&self) -> AuthorId

Get the author bytes of this entry.

-
source

pub fn key(&self) -> &[u8] ⓘ

Get the key of the entry.

-
source

pub fn timestamp(&self) -> u64

Get the timestamp of the entry.

-

Methods from Deref<Target = Entry>§

source

pub fn validate_empty(&self) -> Result<(), ValidationFailure>

Validate that the entry has the empty hash if the length is 0, or a non-zero length.

-
source

pub fn id(&self) -> &RecordIdentifier

Get the RecordIdentifier for this entry.

-
source

pub fn namespace(&self) -> NamespaceId

Get the NamespaceId of this entry.

-
source

pub fn author(&self) -> AuthorId

Get the AuthorId of this entry.

-
source

pub fn key(&self) -> &[u8] ⓘ

Get the key of this entry.

-
source

pub fn record(&self) -> &Record

Get the Record contained in this entry.

-
source

pub fn encode(&self, out: &mut Vec<u8>)

Serialize this entry into its canonical byte representation used for signing.

-
source

pub fn to_vec(&self) -> Vec<u8> ⓘ

Serialize this entry into a new vector with its canonical byte representation.

-

Methods from Deref<Target = Record>§

source

pub fn is_empty(&self) -> bool

Return true if the entry is empty.

-
source

pub fn content_len(&self) -> u64

Get the length of the data addressed by this record’s content hash.

-
source

pub fn content_hash(&self) -> Hash

Get the Hash of the content data of this record.

-
source

pub fn timestamp(&self) -> u64

Get the timestamp of this record.

-

Trait Implementations§

source§

impl Clone for SignedEntry

source§

fn clone(&self) -> SignedEntry

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SignedEntry

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Deref for SignedEntry

§

type Target = Entry

The resulting type after dereferencing.
source§

fn deref(&self) -> &<SignedEntry as Deref>::Target

Dereferences the value.
source§

impl<'de> Deserialize<'de> for SignedEntry

pub fn signature(&self) -> &EntrySignature

Get the signature.

+

pub fn validate_empty(&self) -> Result<(), ValidationFailure>

Validate that the entry has the empty hash if the length is 0, or a non-zero length.

+

pub fn entry(&self) -> &Entry

Get the Entry.

+

pub fn content_hash(&self) -> Hash

Get the content Hash of the entry.

+

pub fn content_len(&self) -> u64

Get the content length of the entry.

+

pub fn author_bytes(&self) -> AuthorId

Get the author bytes of this entry.

+

pub fn key(&self) -> &[u8] ⓘ

Get the key of the entry.

+

pub fn timestamp(&self) -> u64

Get the timestamp of the entry.

+

Methods from Deref<Target = Entry>§

pub fn validate_empty(&self) -> Result<(), ValidationFailure>

Validate that the entry has the empty hash if the length is 0, or a non-zero length.

+

pub fn id(&self) -> &RecordIdentifier

Get the RecordIdentifier for this entry.

+

pub fn namespace(&self) -> NamespaceId

Get the NamespaceId of this entry.

+

pub fn author(&self) -> AuthorId

Get the AuthorId of this entry.

+

pub fn key(&self) -> &[u8] ⓘ

Get the key of this entry.

+

pub fn record(&self) -> &Record

Get the Record contained in this entry.

+

pub fn encode(&self, out: &mut Vec<u8>)

Serialize this entry into its canonical byte representation used for signing.

+

pub fn to_vec(&self) -> Vec<u8> ⓘ

Serialize this entry into a new vector with its canonical byte representation.

+

Methods from Deref<Target = Record>§

pub fn is_empty(&self) -> bool

Return true if the entry is empty.

+

pub fn content_len(&self) -> u64

Get the length of the data addressed by this record’s content hash.

+

pub fn content_hash(&self) -> Hash

Get the Hash of the content data of this record.

+

pub fn timestamp(&self) -> u64

Get the timestamp of this record.

+

Trait Implementations§

§

impl Clone for SignedEntry

§

fn clone(&self) -> SignedEntry

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for SignedEntry

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Deref for SignedEntry

§

type Target = Entry

The resulting type after dereferencing.
§

fn deref(&self) -> &<SignedEntry as Deref>::Target

Dereferences the value.
§

impl<'de> Deserialize<'de> for SignedEntry

§

fn deserialize<__D>( __deserializer: __D ) -> Result<SignedEntry, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<SignedEntry> for Entry

source§

fn from(value: SignedEntry) -> Entry

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 Ord for SignedEntry

source§

fn cmp(&self, other: &SignedEntry) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl From<SignedEntry> for Entry

§

fn from(value: SignedEntry) -> Entry

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.
§

impl Ord for SignedEntry

§

fn cmp(&self, other: &SignedEntry) -> 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 SignedEntry

source§

fn eq(&self, other: &SignedEntry) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for SignedEntry

§

fn eq(&self, other: &SignedEntry) -> 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 SignedEntry

source§

fn partial_cmp(&self, other: &SignedEntry) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for SignedEntry

§

fn partial_cmp(&self, other: &SignedEntry) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for SignedEntry

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for SignedEntry

§

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 SignedEntry

source§

impl StructuralPartialEq for SignedEntry

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for SignedEntry

§

impl StructuralPartialEq for SignedEntry

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/sync/struct.SyncOutcome.html b/pr/2616/docs/iroh/docs/sync/struct.SyncOutcome.html index 3658bd8c83..d6444db23a 100644 --- a/pr/2616/docs/iroh/docs/sync/struct.SyncOutcome.html +++ b/pr/2616/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

pub struct SyncOutcome {
     pub heads_received: AuthorHeads,
     pub num_recv: usize,
     pub num_sent: usize,
@@ -6,7 +6,7 @@
 

Fields§

§heads_received: AuthorHeads

Timestamp of the latest entry for each author in the set we received.

§num_recv: usize

Number of entries we received.

§num_sent: usize

Number of entries we sent.

-

Trait Implementations§

source§

impl Clone for SyncOutcome

source§

fn clone(&self) -> SyncOutcome

Returns a 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 SyncOutcome

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for SyncOutcome

source§

fn default() -> SyncOutcome

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for SyncOutcome

§

fn clone(&self) -> SyncOutcome

Returns a 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 SyncOutcome

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for SyncOutcome

§

fn default() -> SyncOutcome

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/docs/sync/type.ContentStatusCallback.html b/pr/2616/docs/iroh/docs/sync/type.ContentStatusCallback.html index 0905407b57..15fd5a99c4 100644 --- a/pr/2616/docs/iroh/docs/sync/type.ContentStatusCallback.html +++ b/pr/2616/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

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/2616/docs/iroh/docs/sync/type.PeerIdBytes.html b/pr/2616/docs/iroh/docs/sync/type.PeerIdBytes.html index d386f3876c..e238861a76 100644 --- a/pr/2616/docs/iroh/docs/sync/type.PeerIdBytes.html +++ b/pr/2616/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

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/2616/docs/iroh/docs/sync/type.ProtocolMessage.html b/pr/2616/docs/iroh/docs/sync/type.ProtocolMessage.html index 5dcfe36e6a..4e2f7eda5e 100644 --- a/pr/2616/docs/iroh/docs/sync/type.ProtocolMessage.html +++ b/pr/2616/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

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/2616/docs/iroh/docs/type.ContentStatusCallback.html b/pr/2616/docs/iroh/docs/type.ContentStatusCallback.html index fc2ac88b50..fc530b6dca 100644 --- a/pr/2616/docs/iroh/docs/type.ContentStatusCallback.html +++ b/pr/2616/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

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/2616/docs/iroh/docs/type.PeerIdBytes.html b/pr/2616/docs/iroh/docs/type.PeerIdBytes.html index 5592bd6040..97c8c0e122 100644 --- a/pr/2616/docs/iroh/docs/type.PeerIdBytes.html +++ b/pr/2616/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

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/2616/docs/iroh/docs/type.ProtocolMessage.html b/pr/2616/docs/iroh/docs/type.ProtocolMessage.html index 6d49ac750e..31acbf3dc7 100644 --- a/pr/2616/docs/iroh/docs/type.ProtocolMessage.html +++ b/pr/2616/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

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/2616/docs/iroh/gossip/index.html b/pr/2616/docs/iroh/gossip/index.html index 1d8c3fb4ae..fdc6e5ca27 100644 --- a/pr/2616/docs/iroh/gossip/index.html +++ b/pr/2616/docs/iroh/gossip/index.html @@ -1,2 +1,2 @@ -iroh::gossip - Rust

Crate iroh::gossip

source ·
Expand description

Broadcast messages to peers subscribed to a topic

+iroh::gossip - Rust

Crate iroh::gossip

Expand description

Broadcast messages to peers subscribed to a topic

Modules§

  • Metrics for iroh-gossip
  • Networking for the iroh-gossip protocol
  • Implementation of the iroh-gossip protocol, as an IO-less state machine
\ No newline at end of file diff --git a/pr/2616/docs/iroh/gossip/metrics/index.html b/pr/2616/docs/iroh/gossip/metrics/index.html index 478f6fd34a..7c26599d57 100644 --- a/pr/2616/docs/iroh/gossip/metrics/index.html +++ b/pr/2616/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

Expand description

Metrics for iroh-gossip

Structs§

  • Enum of metrics for the module
\ No newline at end of file diff --git a/pr/2616/docs/iroh/gossip/metrics/struct.Metrics.html b/pr/2616/docs/iroh/gossip/metrics/struct.Metrics.html index 8d68afc647..b73849b41a 100644 --- a/pr/2616/docs/iroh/gossip/metrics/struct.Metrics.html +++ b/pr/2616/docs/iroh/gossip/metrics/struct.Metrics.html @@ -1,26 +1,26 @@ -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, - pub msgs_data_recv: Counter, - pub msgs_data_sent_size: Counter, - pub msgs_data_recv_size: Counter, - pub msgs_ctrl_sent_size: Counter, - pub msgs_ctrl_recv_size: Counter, - pub neighbor_up: Counter, - pub neighbor_down: Counter, - pub actor_tick_main: Counter, - pub actor_tick_rx: Counter, - pub actor_tick_endpoint: Counter, - pub actor_tick_dialer: Counter, - pub actor_tick_dialer_success: Counter, - pub actor_tick_dialer_failure: Counter, - pub actor_tick_in_event_rx: Counter, - pub actor_tick_timers: Counter, +Metrics in iroh::gossip::metrics - Rust

Struct iroh::gossip::metrics::Metrics

pub struct Metrics {
Show 18 fields + pub msgs_ctrl_sent: Counter, + pub msgs_ctrl_recv: Counter, + pub msgs_data_sent: Counter, + pub msgs_data_recv: Counter, + pub msgs_data_sent_size: Counter, + pub msgs_data_recv_size: Counter, + pub msgs_ctrl_sent_size: Counter, + pub msgs_ctrl_recv_size: Counter, + pub neighbor_up: Counter, + pub neighbor_down: Counter, + pub actor_tick_main: Counter, + pub actor_tick_rx: Counter, + pub actor_tick_endpoint: Counter, + pub actor_tick_dialer: Counter, + pub actor_tick_dialer_success: Counter, + pub actor_tick_dialer_failure: Counter, + pub actor_tick_in_event_rx: Counter, + pub actor_tick_timers: Counter,
}
Expand description

Enum of metrics for the module

-

Fields§

§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: 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 +

Fields§

§msgs_ctrl_sent: Counter§msgs_ctrl_recv: Counter§msgs_data_sent: Counter§msgs_data_recv: Counter§msgs_data_sent_size: Counter§msgs_data_recv_size: Counter§msgs_ctrl_sent_size: Counter§msgs_ctrl_recv_size: Counter§neighbor_up: Counter§neighbor_down: Counter§actor_tick_main: Counter§actor_tick_rx: Counter§actor_tick_endpoint: Counter§actor_tick_dialer: Counter§actor_tick_dialer_success: Counter§actor_tick_dialer_failure: Counter§actor_tick_in_event_rx: Counter§actor_tick_timers: Counter

Trait Implementations§

§

impl Clone for Metrics

§

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
§

impl Debug for Metrics

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Metrics

§

fn default() -> Metrics

Returns the “default value” for a type. Read more
§

impl Iterable for Metrics

§

fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a (dyn Any + 'static))>

Returns an iterator over the struct’s fields as tuples. Read more
§

impl Metric for Metrics

§

fn name() -> &'static str

The name of this metric group.
§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
§

fn with_metric<T, F>(f: F)
where F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
source§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +Only records if this metric is registered in the global registry.

§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/gossip/net/constant.GOSSIP_ALPN.html b/pr/2616/docs/iroh/gossip/net/constant.GOSSIP_ALPN.html index 0d2bcf14f1..f0150dcbe4 100644 --- a/pr/2616/docs/iroh/gossip/net/constant.GOSSIP_ALPN.html +++ b/pr/2616/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

pub const GOSSIP_ALPN: &'static [u8];
Expand description

ALPN protocol name

\ No newline at end of file diff --git a/pr/2616/docs/iroh/gossip/net/enum.Command.html b/pr/2616/docs/iroh/gossip/net/enum.Command.html index ecb6fc1932..b9475ec2ac 100644 --- a/pr/2616/docs/iroh/gossip/net/enum.Command.html +++ b/pr/2616/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

pub enum Command {
     Broadcast(Bytes),
     BroadcastNeighbors(Bytes),
     JoinPeers(Vec<PublicKey>),
@@ -6,10 +6,10 @@
 

Variants§

§

Broadcast(Bytes)

Broadcast a message to all nodes in the swarm

§

BroadcastNeighbors(Bytes)

Broadcast a message to all direct neighbors

§

JoinPeers(Vec<PublicKey>)

Connect to a set of peers

-

Trait Implementations§

source§

impl Debug for Command

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Command

Trait Implementations§

§

impl Debug for Command

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Command

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Command, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Command

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Serialize for Command

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/gossip/net/enum.Event.html b/pr/2616/docs/iroh/gossip/net/enum.Event.html index aae5c14a46..e0e7339597 100644 --- a/pr/2616/docs/iroh/gossip/net/enum.Event.html +++ b/pr/2616/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

pub enum Event {
     Gossip(GossipEvent),
     Lagged,
 }
Expand description

Events emitted from a gossip topic with a lagging notification.

@@ -6,16 +6,16 @@ provide a notification if we missed gossip events for the topic.

Variants§

§

Gossip(GossipEvent)

We received an event.

§

Lagged

We missed some messages because our GossipReceiver was not progressing fast enough.

-

Trait Implementations§

source§

impl Debug for Event

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Event

Trait Implementations§

§

impl Debug for Event

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Event

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Event, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for Event

source§

fn eq(&self, other: &Event) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for Event

§

fn eq(&self, other: &Event) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for Event

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for Event

§

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 Event

source§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl !Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for Event

§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl !Freeze for Event

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/gossip/net/enum.GossipEvent.html b/pr/2616/docs/iroh/gossip/net/enum.GossipEvent.html index dfd4737b62..72e84605f7 100644 --- a/pr/2616/docs/iroh/gossip/net/enum.GossipEvent.html +++ b/pr/2616/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

pub enum GossipEvent {
     Joined(Vec<PublicKey>),
     NeighborUp(PublicKey),
     NeighborDown(PublicKey),
@@ -10,21 +10,21 @@
 
§

NeighborUp(PublicKey)

We have a new, direct neighbor in the swarm membership layer for this topic.

§

NeighborDown(PublicKey)

We dropped direct neighbor in the swarm membership layer for this topic.

§

Received(Message)

We received a gossip message for this topic.

-

Trait Implementations§

source§

impl Clone for GossipEvent

source§

fn clone(&self) -> GossipEvent

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for GossipEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for GossipEvent

Trait Implementations§

§

impl Clone for GossipEvent

§

fn clone(&self) -> GossipEvent

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for GossipEvent

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for GossipEvent

§

fn deserialize<__D>( __deserializer: __D ) -> Result<GossipEvent, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<Event<PublicKey>> for GossipEvent

source§

fn from(event: Event<PublicKey>) -> GossipEvent

Converts to this type from the input type.
source§

impl Ord for GossipEvent

source§

fn cmp(&self, other: &GossipEvent) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl From<Event<PublicKey>> for GossipEvent

§

fn from(event: Event<PublicKey>) -> GossipEvent

Converts to this type from the input type.
§

impl Ord for GossipEvent

§

fn cmp(&self, other: &GossipEvent) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for GossipEvent

source§

fn eq(&self, other: &GossipEvent) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for GossipEvent

§

fn eq(&self, other: &GossipEvent) -> 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 GossipEvent

source§

fn partial_cmp(&self, other: &GossipEvent) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for GossipEvent

§

fn partial_cmp(&self, other: &GossipEvent) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for GossipEvent

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for GossipEvent

§

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 GossipEvent

source§

impl StructuralPartialEq for GossipEvent

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for GossipEvent

§

impl StructuralPartialEq for GossipEvent

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/gossip/net/index.html b/pr/2616/docs/iroh/gossip/net/index.html index a9869d1d7f..56e57182f2 100644 --- a/pr/2616/docs/iroh/gossip/net/index.html +++ b/pr/2616/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

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/2616/docs/iroh/gossip/net/struct.Gossip.html b/pr/2616/docs/iroh/gossip/net/struct.Gossip.html index 84cc0e5ed2..de10cb6e16 100644 --- a/pr/2616/docs/iroh/gossip/net/struct.Gossip.html +++ b/pr/2616/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

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.

@@ -10,20 +10,20 @@ itself. You should run an accept loop on the GOSSIP_ALPN, forward the connection to the gossip actor through Self::handle_connection.

The gossip actor will, however, initiate new connections to other peers by itself.

-

Implementations§

source§

impl Gossip

Implementations§

§

impl Gossip

pub fn from_endpoint( endpoint: Endpoint, config: Config, my_addr: &AddrInfo ) -> Gossip

Spawn a gossip actor and get a handle for it

-
source

pub fn max_message_size(&self) -> usize

Get the maximum message size configured for this gossip actor.

-
source

pub async fn handle_connection(&self, conn: Connection) -> Result<(), Error>

Handle an incoming Connection.

+

pub fn max_message_size(&self) -> usize

Get the maximum message size configured for this gossip actor.

+

pub async fn handle_connection(&self, conn: Connection) -> Result<(), Error>

Handle an incoming Connection.

Make sure to check the ALPN protocol yourself before passing the connection.

-
source

pub async fn join( +

pub async fn join( &self, topic_id: TopicId, bootstrap: Vec<PublicKey> ) -> Result<GossipTopic, Error>

Join a gossip topic with the default options and wait for at least one active connection.

-
source

pub fn join_with_opts( +

pub fn join_with_opts( &self, topic_id: TopicId, opts: JoinOptions @@ -32,7 +32,7 @@ gossip actor through GossipTopic::joined.

Messages will be queued until a first connection is available. If the internal channel becomes full, the oldest messages will be dropped from the channel.

-

source

pub fn join_with_stream( +

pub fn join_with_stream( &self, topic_id: TopicId, options: JoinOptions, @@ -42,11 +42,11 @@ the oldest messages will be dropped from the channel.

instead of using a channel created for you.

It returns a stream of events. If you want to wait for the topic to become active, wait for the GossipEvent::Joined event.

-

source

pub fn update_direct_addresses(&self, addrs: &[DirectAddr]) -> Result<(), Error>

Set info on our direct addresses.

+

pub fn update_direct_addresses(&self, addrs: &[DirectAddr]) -> Result<(), Error>

Set info on our direct addresses.

This will be sent to peers on Neighbor and Join requests so that they can connect directly to us.

This is only best effort, and will drop new events if backed up.

-

Trait Implementations§

source§

impl Clone for Gossip

source§

fn clone(&self) -> Gossip

Returns a 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 Gossip

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl ProtocolHandler for Gossip

source§

fn accept(self: Arc<Self>, conn: Connecting) -> BoxedFuture<Result<()>>

Handle an incoming connection. Read more
source§

fn shutdown(self: Arc<Self>) -> BoxedFuture<()>

Called when the node shuts down.

Auto Trait Implementations§

§

impl Freeze for Gossip

§

impl !RefUnwindSafe for Gossip

§

impl Send for Gossip

§

impl Sync for Gossip

§

impl Unpin for Gossip

§

impl !UnwindSafe for Gossip

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for Gossip

§

fn clone(&self) -> Gossip

Returns a 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 Gossip

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl ProtocolHandler for Gossip

source§

fn accept(self: Arc<Self>, conn: Connecting) -> BoxedFuture<Result<()>>

Handle an incoming connection. Read more
source§

fn shutdown(self: Arc<Self>) -> BoxedFuture<()>

Called when the node shuts down.

Auto Trait Implementations§

§

impl Freeze for Gossip

§

impl !RefUnwindSafe for Gossip

§

impl Send for Gossip

§

impl Sync for Gossip

§

impl Unpin for Gossip

§

impl !UnwindSafe for Gossip

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/gossip/net/struct.GossipReceiver.html b/pr/2616/docs/iroh/gossip/net/struct.GossipReceiver.html index 57d0487172..ab1ac751f5 100644 --- a/pr/2616/docs/iroh/gossip/net/struct.GossipReceiver.html +++ b/pr/2616/docs/iroh/gossip/net/struct.GossipReceiver.html @@ -1,13 +1,13 @@ -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

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.

+

Implementations§

§

impl GossipReceiver

pub fn neighbors(&self) -> impl Iterator<Item = PublicKey>

Lists our current direct neighbors.

+

pub async fn joined(&mut self) -> Result<(), Error>

Waits until we are connected to at least one node.

This progresses the stream until we received GossipEvent::Joined, which is the first item emitted on the stream.

Note that this consumes the GossipEvent::Joined event. If you want to act on these initial neighbors, use Self::neighbors after awaiting Self::joined.

-
source

pub fn is_joined(&self) -> bool

Returns true if we are connected to at least one node.

-

Trait Implementations§

source§

impl Debug for GossipReceiver

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Stream for GossipReceiver

§

type Item = Result<Event, Error>

Values yielded by the stream.
source§

fn poll_next( +

pub fn is_joined(&self) -> bool

Returns true if we are connected to at least one node.

+

Trait Implementations§

§

impl Debug for GossipReceiver

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Stream for GossipReceiver

§

type Item = Result<Event, Error>

Values yielded by the stream.
§

fn poll_next( self: Pin<&mut GossipReceiver>, cx: &mut Context<'_> ) -> Poll<Option<<GossipReceiver as Stream>::Item>>

Attempt to pull out the next value of this stream, registering the diff --git a/pr/2616/docs/iroh/gossip/net/struct.GossipSender.html b/pr/2616/docs/iroh/gossip/net/struct.GossipSender.html index 8710c98860..6bc711c538 100644 --- a/pr/2616/docs/iroh/gossip/net/struct.GossipSender.html +++ b/pr/2616/docs/iroh/gossip/net/struct.GossipSender.html @@ -1,8 +1,8 @@ -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.

-

Trait Implementations§

source§

impl Debug for GossipSender

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 +GossipSender in iroh::gossip::net - Rust

Struct iroh::gossip::net::GossipSender

pub struct GossipSender(/* private fields */);
Expand description

Sender for a gossip topic.

+

Implementations§

§

impl GossipSender

pub async fn broadcast(&self, message: Bytes) -> Result<(), Error>

Broadcast a message to all nodes.

+

pub async fn broadcast_neighbors(&self, message: Bytes) -> Result<(), Error>

Broadcast a message to our direct neighbors.

+

pub async fn join_peers(&self, peers: Vec<PublicKey>) -> Result<(), Error>

Join a set of peers.

+

Trait Implementations§

§

impl Debug for GossipSender

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/gossip/net/struct.GossipTopic.html b/pr/2616/docs/iroh/gossip/net/struct.GossipTopic.html index 708003aa13..457b2bb098 100644 --- a/pr/2616/docs/iroh/gossip/net/struct.GossipTopic.html +++ b/pr/2616/docs/iroh/gossip/net/struct.GossipTopic.html @@ -1,12 +1,12 @@ -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

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.

-
source

pub async fn broadcast(&self, message: Bytes) -> Result<(), Error>

Sends a message to all peers.

-
source

pub async fn broadcast_neighbors(&self, message: Bytes) -> Result<(), Error>

Sends a message to our direct neighbors in the swarm.

-
source

pub async fn joined(&mut self) -> Result<(), Error>

Waits until we are connected to at least one node.

-
source

pub fn is_joined(&self) -> bool

Returns true if we are connected to at least one node.

-

Trait Implementations§

source§

impl Debug for GossipTopic

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Stream for GossipTopic

§

type Item = Result<Event, Error>

Values yielded by the stream.
source§

fn poll_next( +

Implementations§

§

impl GossipTopic

pub fn split(self) -> (GossipSender, GossipReceiver)

Splits self into GossipSender and GossipReceiver parts.

+

pub async fn broadcast(&self, message: Bytes) -> Result<(), Error>

Sends a message to all peers.

+

pub async fn broadcast_neighbors(&self, message: Bytes) -> Result<(), Error>

Sends a message to our direct neighbors in the swarm.

+

pub async fn joined(&mut self) -> Result<(), Error>

Waits until we are connected to at least one node.

+

pub fn is_joined(&self) -> bool

Returns true if we are connected to at least one node.

+

Trait Implementations§

§

impl Debug for GossipTopic

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Stream for GossipTopic

§

type Item = Result<Event, Error>

Values yielded by the stream.
§

fn poll_next( self: Pin<&mut GossipTopic>, cx: &mut Context<'_> ) -> Poll<Option<<GossipTopic as Stream>::Item>>

Attempt to pull out the next value of this stream, registering the diff --git a/pr/2616/docs/iroh/gossip/net/struct.JoinOptions.html b/pr/2616/docs/iroh/gossip/net/struct.JoinOptions.html index 7ae5a56af4..8757dd2c7e 100644 --- a/pr/2616/docs/iroh/gossip/net/struct.JoinOptions.html +++ b/pr/2616/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

pub struct JoinOptions {
     pub bootstrap: BTreeSet<PublicKey>,
     pub subscription_capacity: usize,
 }
Expand description

Options for joining a gossip topic.

@@ -8,12 +8,12 @@ the message will be dropped, and the subscriber will be closed.

This is to prevent a single slow subscriber from blocking the dispatch loop. If a subscriber is lagging, it should be closed and re-opened.

-

Implementations§

source§

impl JoinOptions

source

pub fn with_bootstrap(nodes: impl IntoIterator<Item = PublicKey>) -> JoinOptions

Creates JoinOptions with the provided bootstrap nodes and the default subscription +

Implementations§

§

impl JoinOptions

pub fn with_bootstrap(nodes: impl IntoIterator<Item = PublicKey>) -> JoinOptions

Creates JoinOptions with the provided bootstrap nodes and the default subscription capacity.

-

Trait Implementations§

source§

impl Debug for JoinOptions

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for JoinOptions

Trait Implementations§

§

impl Debug for JoinOptions

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for JoinOptions

§

fn deserialize<__D>( __deserializer: __D ) -> Result<JoinOptions, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for JoinOptions

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl Serialize for JoinOptions

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/gossip/net/struct.Message.html b/pr/2616/docs/iroh/gossip/net/struct.Message.html index e8040cf4c4..2961c46f17 100644 --- a/pr/2616/docs/iroh/gossip/net/struct.Message.html +++ b/pr/2616/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

pub struct Message {
     pub content: Bytes,
     pub scope: DeliveryScope,
     pub delivered_from: PublicKey,
@@ -7,21 +7,21 @@
 
§scope: DeliveryScope

The scope of the message. This tells us if the message is from a direct neighbor or actual gossip.

§delivered_from: PublicKey

The node that delivered the message. This is not the same as the original author.

-

Trait Implementations§

source§

impl Clone for Message

source§

fn clone(&self) -> Message

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Message

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Message

Trait Implementations§

§

impl Clone for Message

§

fn clone(&self) -> Message

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Message

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Message

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Message, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Ord for Message

source§

fn cmp(&self, other: &Message) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Ord for Message

§

fn cmp(&self, other: &Message) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where 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 Message

source§

fn eq(&self, other: &Message) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for Message

§

fn eq(&self, other: &Message) -> 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 Message

source§

fn partial_cmp(&self, other: &Message) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for Message

§

fn partial_cmp(&self, other: &Message) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for Message

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for Message

§

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 Message

source§

impl StructuralPartialEq for Message

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for Message

§

impl StructuralPartialEq for Message

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/gossip/net/type.CommandStream.html b/pr/2616/docs/iroh/gossip/net/type.CommandStream.html index e651859a0b..e01d1d4126 100644 --- a/pr/2616/docs/iroh/gossip/net/type.CommandStream.html +++ b/pr/2616/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

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/2616/docs/iroh/gossip/net/type.ProtoCommand.html b/pr/2616/docs/iroh/gossip/net/type.ProtoCommand.html index 2d1630004a..313be3e350 100644 --- a/pr/2616/docs/iroh/gossip/net/type.ProtoCommand.html +++ b/pr/2616/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

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/2616/docs/iroh/gossip/net/type.ProtoEvent.html b/pr/2616/docs/iroh/gossip/net/type.ProtoEvent.html
index 85f0798f42..afc8a8a58b 100644
--- a/pr/2616/docs/iroh/gossip/net/type.ProtoEvent.html
+++ b/pr/2616/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

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/2616/docs/iroh/gossip/net/util/fn.read_lp.html b/pr/2616/docs/iroh/gossip/net/util/fn.read_lp.html
index ca8197aa1c..13100b203a 100644
--- a/pr/2616/docs/iroh/gossip/net/util/fn.read_lp.html
+++ b/pr/2616/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

pub async fn read_lp(
     reader: impl AsyncRead + Unpin,
     buffer: &mut BytesMut,
     max_message_size: usize
diff --git a/pr/2616/docs/iroh/gossip/net/util/fn.read_message.html b/pr/2616/docs/iroh/gossip/net/util/fn.read_message.html
index e37c23217e..5de5078ae1 100644
--- a/pr/2616/docs/iroh/gossip/net/util/fn.read_message.html
+++ b/pr/2616/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

pub async fn read_message(
     reader: impl AsyncRead + Unpin,
     buffer: &mut BytesMut,
     max_message_size: usize
diff --git a/pr/2616/docs/iroh/gossip/net/util/fn.write_message.html b/pr/2616/docs/iroh/gossip/net/util/fn.write_message.html
index 7cf60898b2..ac26ca18ad 100644
--- a/pr/2616/docs/iroh/gossip/net/util/fn.write_message.html
+++ b/pr/2616/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

pub async fn write_message<W>(
     writer: &mut W,
     buffer: &mut BytesMut,
     frame: &Message<PublicKey>,
diff --git a/pr/2616/docs/iroh/gossip/net/util/index.html b/pr/2616/docs/iroh/gossip/net/util/index.html
index 37ea83ca42..7a62e2213c 100644
--- a/pr/2616/docs/iroh/gossip/net/util/index.html
+++ b/pr/2616/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

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/2616/docs/iroh/gossip/net/util/struct.Timers.html b/pr/2616/docs/iroh/gossip/net/util/struct.Timers.html index 7f99b47261..1a3e56a3ed 100644 --- a/pr/2616/docs/iroh/gossip/net/util/struct.Timers.html +++ b/pr/2616/docs/iroh/gossip/net/util/struct.Timers.html @@ -1,13 +1,13 @@ -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

+Timers in iroh::gossip::net::util - Rust

Struct iroh::gossip::net::util::Timers

pub struct Timers<T> { /* private fields */ }
Expand description

A TimerMap with an async method to wait for the next timer expiration.

+

Implementations§

§

impl<T> Timers<T>

pub fn new() -> Timers<T>

Create a new timer map

+

pub fn insert(&mut self, instant: Instant, item: T)

Insert a new entry at the specified instant

+

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

If the TimerMap is empty, this will return a future that is pending forever. After inserting a new entry, prior futures returned from this method will not become ready. They should be dropped after calling Self::insert, and a new future as returned from this method should be awaited instead.

-

Trait Implementations§

source§

impl<T> Debug for Timers<T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Default for Timers<T>

source§

fn default() -> Timers<T>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<T> Freeze for Timers<T>

§

impl<T> !RefUnwindSafe for Timers<T>

§

impl<T> Send for Timers<T>
where +

Trait Implementations§

§

impl<T> Debug for Timers<T>
where + T: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> Default for Timers<T>

§

fn default() -> Timers<T>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<T> Freeze for Timers<T>

§

impl<T> !RefUnwindSafe for Timers<T>

§

impl<T> Send for Timers<T>
where T: Send,

§

impl<T> Sync for Timers<T>
where T: Sync,

§

impl<T> Unpin for Timers<T>

§

impl<T> !UnwindSafe for Timers<T>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/gossip/proto/enum.Command.html b/pr/2616/docs/iroh/gossip/proto/enum.Command.html index 1083e3ba38..3857c61490 100644 --- a/pr/2616/docs/iroh/gossip/proto/enum.Command.html +++ b/pr/2616/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

pub enum Command<PI> {
     Join(Vec<PI>),
     Broadcast(Bytes, Scope),
     Quit,
@@ -8,9 +8,9 @@
 but only become operational after the first join request by another peer.

§

Broadcast(Bytes, Scope)

Broadcast a message for this topic.

§

Quit

Leave this topic and drop all state.

-

Trait Implementations§

source§

impl<PI> Clone for Command<PI>
where - PI: Clone,

source§

fn clone(&self) -> Command<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 Command<PI>
where - Vec<PI>: Debug,

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI> !Freeze for Command<PI>

§

impl<PI> RefUnwindSafe for Command<PI>
where +

Trait Implementations§

§

impl<PI> Clone for Command<PI>
where + PI: Clone,

§

fn clone(&self) -> Command<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
§

impl<PI> Debug for Command<PI>
where + Vec<PI>: Debug,

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI> !Freeze for Command<PI>

§

impl<PI> RefUnwindSafe for Command<PI>
where PI: RefUnwindSafe,

§

impl<PI> Send for Command<PI>
where PI: Send,

§

impl<PI> Sync for Command<PI>
where PI: Sync,

§

impl<PI> Unpin for Command<PI>
where diff --git a/pr/2616/docs/iroh/gossip/proto/enum.DeliveryScope.html b/pr/2616/docs/iroh/gossip/proto/enum.DeliveryScope.html index cf0d121c12..3325d91371 100644 --- a/pr/2616/docs/iroh/gossip/proto/enum.DeliveryScope.html +++ b/pr/2616/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

pub enum DeliveryScope {
     Swarm(Round),
     Neighbors,
 }
Expand description

The scope to deliver the message to.

@@ -6,22 +6,22 @@ original broadcaster.

§

Neighbors

This message was received from a direct neighbor that broadcasted the message to neighbors only.

-

Implementations§

source§

impl DeliveryScope

source

pub fn is_direct(&self) -> bool

Whether this message was directly received from its publisher.

-

Trait Implementations§

source§

impl Clone for DeliveryScope

source§

fn clone(&self) -> DeliveryScope

Returns a 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 DeliveryScope

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for DeliveryScope

Implementations§

§

impl DeliveryScope

pub fn is_direct(&self) -> bool

Whether this message was directly received from its publisher.

+

Trait Implementations§

§

impl Clone for DeliveryScope

§

fn clone(&self) -> DeliveryScope

Returns a 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 DeliveryScope

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for DeliveryScope

§

fn deserialize<__D>( __deserializer: __D ) -> Result<DeliveryScope, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Ord for DeliveryScope

source§

fn cmp(&self, other: &DeliveryScope) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Ord for DeliveryScope

§

fn cmp(&self, other: &DeliveryScope) -> 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 DeliveryScope

source§

fn eq(&self, other: &DeliveryScope) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for DeliveryScope

§

fn eq(&self, other: &DeliveryScope) -> 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 DeliveryScope

source§

fn partial_cmp(&self, other: &DeliveryScope) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for DeliveryScope

§

fn partial_cmp(&self, other: &DeliveryScope) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for DeliveryScope

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for DeliveryScope

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for DeliveryScope

source§

impl Eq for DeliveryScope

source§

impl StructuralPartialEq for DeliveryScope

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for DeliveryScope

§

impl Eq for DeliveryScope

§

impl StructuralPartialEq for DeliveryScope

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/gossip/proto/enum.Event.html b/pr/2616/docs/iroh/gossip/proto/enum.Event.html index 7fc3c490db..e4f52afbc2 100644 --- a/pr/2616/docs/iroh/gossip/proto/enum.Event.html +++ b/pr/2616/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

pub enum Event<PI> {
     NeighborUp(PI),
     NeighborDown(PI),
     Received(GossipEvent<PI>),
@@ -6,29 +6,29 @@
 

Variants§

§

NeighborUp(PI)

We have a new, direct neighbor in the swarm membership layer for this topic

§

NeighborDown(PI)

We dropped direct neighbor in the swarm membership layer for this topic

§

Received(GossipEvent<PI>)

A gossip message was received for this topic

-

Trait Implementations§

source§

impl<PI> Clone for Event<PI>
where - PI: Clone,

source§

fn clone(&self) -> Event<PI>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<PI> Debug for Event<PI>
where - PI: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de, PI> Deserialize<'de> for Event<PI>
where - PI: Deserialize<'de>,

Trait Implementations§

§

impl<PI> Clone for Event<PI>
where + PI: Clone,

§

fn clone(&self) -> Event<PI>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<PI> Debug for Event<PI>
where + PI: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de, PI> Deserialize<'de> for Event<PI>
where + PI: Deserialize<'de>,

§

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 - 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 + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<PI> From<Event<PI>> for Event<PI>

§

fn from(value: Event<PI>) -> Event<PI>

Converts to this type from the input type.
§

impl<PI> From<Event<PI>> for Event<PI>

§

fn from(value: Event<PI>) -> Event<PI>

Converts to this type from the input type.
§

impl From<Event<PublicKey>> for GossipEvent

§

fn from(event: Event<PublicKey>) -> GossipEvent

Converts to this type from the input type.
§

impl<PI> Ord for Event<PI>
where + PI: Ord,

§

fn cmp(&self, other: &Event<PI>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl<PI> PartialEq for Event<PI>
where - PI: PartialEq,

source§

fn eq(&self, other: &Event<PI>) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl<PI> PartialEq for Event<PI>
where + PI: PartialEq,

§

fn eq(&self, other: &Event<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> PartialOrd for Event<PI>
where - PI: PartialOrd,

source§

fn partial_cmp(&self, other: &Event<PI>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl<PI> PartialOrd for Event<PI>
where + PI: PartialOrd,

§

fn partial_cmp(&self, other: &Event<PI>) -> 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<PI> Serialize for Event<PI>
where - PI: Serialize,

source§

fn serialize<__S>( +operator. Read more

§

impl<PI> Serialize for Event<PI>
where + PI: Serialize,

§

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<PI> Eq for Event<PI>
where - PI: Eq,

source§

impl<PI> StructuralPartialEq for Event<PI>

Auto Trait Implementations§

§

impl<PI> !Freeze for Event<PI>

§

impl<PI> RefUnwindSafe for Event<PI>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<PI> Eq for Event<PI>
where + PI: Eq,

§

impl<PI> StructuralPartialEq for Event<PI>

Auto Trait Implementations§

§

impl<PI> !Freeze for Event<PI>

§

impl<PI> RefUnwindSafe for Event<PI>
where PI: RefUnwindSafe,

§

impl<PI> Send for Event<PI>
where PI: Send,

§

impl<PI> Sync for Event<PI>
where PI: Sync,

§

impl<PI> Unpin for Event<PI>
where diff --git a/pr/2616/docs/iroh/gossip/proto/enum.InEvent.html b/pr/2616/docs/iroh/gossip/proto/enum.InEvent.html index 0f68f824c3..9dba459ce1 100644 --- a/pr/2616/docs/iroh/gossip/proto/enum.InEvent.html +++ b/pr/2616/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

pub enum InEvent<PI> {
     RecvMessage(PI, Message<PI>),
     Command(TopicId, Command<PI>),
     TimerExpired(Timer<PI>),
@@ -10,9 +10,9 @@
 
§

TimerExpired(Timer<PI>)

Trigger a previously scheduled timer.

§

PeerDisconnected(PI)

Peer disconnected on the network level.

§

UpdatePeerData(PeerData)

Update the opaque peer data about yourself.

-

Trait Implementations§

source§

impl<PI> Clone for InEvent<PI>
where - PI: Clone,

source§

fn clone(&self) -> InEvent<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 InEvent<PI>
where - PI: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI> !Freeze for InEvent<PI>

§

impl<PI> RefUnwindSafe for InEvent<PI>
where +

Trait Implementations§

§

impl<PI> Clone for InEvent<PI>
where + PI: Clone,

§

fn clone(&self) -> InEvent<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
§

impl<PI> Debug for InEvent<PI>
where + PI: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI> !Freeze for InEvent<PI>

§

impl<PI> RefUnwindSafe for InEvent<PI>
where PI: RefUnwindSafe,

§

impl<PI> Send for InEvent<PI>
where PI: Send,

§

impl<PI> Sync for InEvent<PI>
where PI: Sync,

§

impl<PI> Unpin for InEvent<PI>
where diff --git a/pr/2616/docs/iroh/gossip/proto/enum.OutEvent.html b/pr/2616/docs/iroh/gossip/proto/enum.OutEvent.html index f7334d7a07..5e15523fbb 100644 --- a/pr/2616/docs/iroh/gossip/proto/enum.OutEvent.html +++ b/pr/2616/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

pub enum OutEvent<PI> {
     SendMessage(PI, Message<PI>),
     EmitEvent(TopicId, Event<PI>),
     ScheduleTimer(Duration, Timer<PI>),
@@ -11,9 +11,9 @@
 after the duration.

§

DisconnectPeer(PI)

Close the connection to a peer on the network level.

§

PeerData(PI, PeerData)

Updated peer data

-

Trait Implementations§

source§

impl<PI> Clone for OutEvent<PI>
where - PI: Clone,

source§

fn clone(&self) -> OutEvent<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 OutEvent<PI>
where - PI: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI> !Freeze for OutEvent<PI>

§

impl<PI> RefUnwindSafe for OutEvent<PI>
where +

Trait Implementations§

§

impl<PI> Clone for OutEvent<PI>
where + PI: Clone,

§

fn clone(&self) -> OutEvent<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
§

impl<PI> Debug for OutEvent<PI>
where + PI: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI> !Freeze for OutEvent<PI>

§

impl<PI> RefUnwindSafe for OutEvent<PI>
where PI: RefUnwindSafe,

§

impl<PI> Send for OutEvent<PI>
where PI: Send,

§

impl<PI> Sync for OutEvent<PI>
where PI: Sync,

§

impl<PI> Unpin for OutEvent<PI>
where diff --git a/pr/2616/docs/iroh/gossip/proto/enum.Scope.html b/pr/2616/docs/iroh/gossip/proto/enum.Scope.html index 699cdc0fd2..46ad791382 100644 --- a/pr/2616/docs/iroh/gossip/proto/enum.Scope.html +++ b/pr/2616/docs/iroh/gossip/proto/enum.Scope.html @@ -1,24 +1,24 @@ -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

pub enum Scope {
     Swarm,
     Neighbors,
 }
Expand description

The broadcast scope of a gossip message.

Variants§

§

Swarm

The message is broadcast to all peers in the swarm.

§

Neighbors

The message is broadcast only to the immediate neighbors of a peer.

-

Trait Implementations§

source§

impl Clone for Scope

source§

fn clone(&self) -> Scope

Returns a 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 Scope

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for Scope

Trait Implementations§

§

impl Clone for Scope

§

fn clone(&self) -> Scope

Returns a 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 Scope

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for Scope

§

fn deserialize<__D>( __deserializer: __D ) -> Result<Scope, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Ord for Scope

source§

fn cmp(&self, other: &Scope) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Ord for Scope

§

fn cmp(&self, other: &Scope) -> 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 Scope

source§

fn eq(&self, other: &Scope) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for Scope

§

fn eq(&self, other: &Scope) -> 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 Scope

source§

fn partial_cmp(&self, other: &Scope) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for Scope

§

fn partial_cmp(&self, other: &Scope) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for Scope

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for Scope

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for Scope

source§

impl Eq for Scope

source§

impl StructuralPartialEq for Scope

Auto Trait Implementations§

§

impl Freeze for Scope

§

impl RefUnwindSafe for Scope

§

impl Send for Scope

§

impl Sync for Scope

§

impl Unpin for Scope

§

impl UnwindSafe for Scope

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for Scope

§

impl Eq for Scope

§

impl StructuralPartialEq for Scope

Auto Trait Implementations§

§

impl Freeze for Scope

§

impl RefUnwindSafe for Scope

§

impl Send for Scope

§

impl Sync for Scope

§

impl Unpin for Scope

§

impl UnwindSafe for Scope

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/gossip/proto/index.html b/pr/2616/docs/iroh/gossip/proto/index.html index 4b95f6d7e8..43c25e0032 100644 --- a/pr/2616/docs/iroh/gossip/proto/index.html +++ b/pr/2616/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

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/2616/docs/iroh/gossip/proto/state/enum.InEvent.html b/pr/2616/docs/iroh/gossip/proto/state/enum.InEvent.html index adade08ed9..f08b3770a4 100644 --- a/pr/2616/docs/iroh/gossip/proto/state/enum.InEvent.html +++ b/pr/2616/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

pub enum InEvent<PI> {
     RecvMessage(PI, Message<PI>),
     Command(TopicId, Command<PI>),
     TimerExpired(Timer<PI>),
@@ -10,9 +10,9 @@
 
§

TimerExpired(Timer<PI>)

Trigger a previously scheduled timer.

§

PeerDisconnected(PI)

Peer disconnected on the network level.

§

UpdatePeerData(PeerData)

Update the opaque peer data about yourself.

-

Trait Implementations§

source§

impl<PI> Clone for InEvent<PI>
where - PI: Clone,

source§

fn clone(&self) -> InEvent<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 InEvent<PI>
where - PI: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI> !Freeze for InEvent<PI>

§

impl<PI> RefUnwindSafe for InEvent<PI>
where +

Trait Implementations§

§

impl<PI> Clone for InEvent<PI>
where + PI: Clone,

§

fn clone(&self) -> InEvent<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
§

impl<PI> Debug for InEvent<PI>
where + PI: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI> !Freeze for InEvent<PI>

§

impl<PI> RefUnwindSafe for InEvent<PI>
where PI: RefUnwindSafe,

§

impl<PI> Send for InEvent<PI>
where PI: Send,

§

impl<PI> Sync for InEvent<PI>
where PI: Sync,

§

impl<PI> Unpin for InEvent<PI>
where diff --git a/pr/2616/docs/iroh/gossip/proto/state/enum.MessageKind.html b/pr/2616/docs/iroh/gossip/proto/state/enum.MessageKind.html index bd41da5f17..d3bc96bfe7 100644 --- a/pr/2616/docs/iroh/gossip/proto/state/enum.MessageKind.html +++ b/pr/2616/docs/iroh/gossip/proto/state/enum.MessageKind.html @@ -1,10 +1,10 @@ -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

pub enum MessageKind {
     Data,
     Control,
 }
Expand description

Whether this is a control or data message

Variants§

§

Data

A data message.

§

Control

A control message.

-

Trait Implementations§

source§

impl Debug for MessageKind

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Debug for MessageKind

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/gossip/proto/state/enum.OutEvent.html b/pr/2616/docs/iroh/gossip/proto/state/enum.OutEvent.html index 557cb0ce5e..39d0ad23ee 100644 --- a/pr/2616/docs/iroh/gossip/proto/state/enum.OutEvent.html +++ b/pr/2616/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

pub enum OutEvent<PI> {
     SendMessage(PI, Message<PI>),
     EmitEvent(TopicId, Event<PI>),
     ScheduleTimer(Duration, Timer<PI>),
@@ -11,9 +11,9 @@
 after the duration.

§

DisconnectPeer(PI)

Close the connection to a peer on the network level.

§

PeerData(PI, PeerData)

Updated peer data

-

Trait Implementations§

source§

impl<PI> Clone for OutEvent<PI>
where - PI: Clone,

source§

fn clone(&self) -> OutEvent<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 OutEvent<PI>
where - PI: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI> !Freeze for OutEvent<PI>

§

impl<PI> RefUnwindSafe for OutEvent<PI>
where +

Trait Implementations§

§

impl<PI> Clone for OutEvent<PI>
where + PI: Clone,

§

fn clone(&self) -> OutEvent<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
§

impl<PI> Debug for OutEvent<PI>
where + PI: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI> !Freeze for OutEvent<PI>

§

impl<PI> RefUnwindSafe for OutEvent<PI>
where PI: RefUnwindSafe,

§

impl<PI> Send for OutEvent<PI>
where PI: Send,

§

impl<PI> Sync for OutEvent<PI>
where PI: Sync,

§

impl<PI> Unpin for OutEvent<PI>
where diff --git a/pr/2616/docs/iroh/gossip/proto/state/index.html b/pr/2616/docs/iroh/gossip/proto/state/index.html index 5b490d5ac6..1abcd224f0 100644 --- a/pr/2616/docs/iroh/gossip/proto/state/index.html +++ b/pr/2616/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

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/2616/docs/iroh/gossip/proto/state/struct.Message.html b/pr/2616/docs/iroh/gossip/proto/state/struct.Message.html index 7b51d49996..ae789a98a8 100644 --- a/pr/2616/docs/iroh/gossip/proto/state/struct.Message.html +++ b/pr/2616/docs/iroh/gossip/proto/state/struct.Message.html @@ -1,16 +1,16 @@ -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

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 - PI: Serialize,

source

pub fn size(&self) -> Result<usize, Error>

Get the encoded size of this message

-

Trait Implementations§

source§

impl<PI> Clone for Message<PI>
where - PI: Clone,

source§

fn clone(&self) -> Message<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 Message<PI>
where - PI: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de, PI> Deserialize<'de> for Message<PI>
where - PI: Deserialize<'de>,

Implementations§

§

impl<PI> Message<PI>

pub fn kind(&self) -> MessageKind

Get the kind of this message

+
§

impl<PI> Message<PI>
where + PI: Serialize,

pub fn size(&self) -> Result<usize, Error>

Get the encoded size of this message

+

Trait Implementations§

§

impl<PI> Clone for Message<PI>
where + PI: Clone,

§

fn clone(&self) -> Message<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
§

impl<PI> Debug for Message<PI>
where + PI: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de, PI> Deserialize<'de> for Message<PI>
where + PI: Deserialize<'de>,

§

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> Serialize for Message<PI>
where - PI: Serialize,

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl<PI> Serialize for Message<PI>
where + PI: Serialize,

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/gossip/proto/state/struct.State.html b/pr/2616/docs/iroh/gossip/proto/state/struct.State.html index 4ec6a294c4..f7c2055484 100644 --- a/pr/2616/docs/iroh/gossip/proto/state/struct.State.html +++ b/pr/2616/docs/iroh/gossip/proto/state/struct.State.html @@ -1,31 +1,31 @@ -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

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 a forwarder of InEvents to matching topic state. Each topic’s state is completely independent; thus the actual protocol logic lives with topic::State.

-

Implementations§

source§

impl<PI, R> State<PI, R>
where +

Implementations§

§

impl<PI, R> State<PI, R>
where PI: PeerIdentity, - R: Rng + Clone,

source

pub fn new(me: PI, me_data: PeerData, config: Config, rng: R) -> State<PI, R>

Create a new protocol state instance.

+ R: Rng + Clone,

pub fn new(me: PI, me_data: PeerData, config: Config, rng: R) -> State<PI, R>

Create a new protocol state instance.

me is the PeerIdentity of the local node, peer_data is the initial PeerData (which can be updated over time). For the protocol to perform as recommended in the papers, the Config should be identical for all nodes in the network.

-
source

pub fn me(&self) -> &PI

Get a reference to the node’s PeerIdentity

-
source

pub fn state(&self, topic: &TopicId) -> Option<&State<PI, R>>

Get a reference to the protocol state for a topic.

-
source

pub fn topics(&self) -> impl Iterator<Item = &TopicId>

Get an iterator of all joined topics.

-
source

pub fn states(&self) -> impl Iterator<Item = (&TopicId, &State<PI, R>)>

Get an iterator for the states of all joined topics.

-
source

pub fn has_active_peers(&self, topic: &TopicId) -> bool

Check if a topic has any active (connected) peers.

-
source

pub fn max_message_size(&self) -> usize

Returns the maximum message size configured in the gossip protocol.

-
source

pub fn handle( +

pub fn me(&self) -> &PI

Get a reference to the node’s PeerIdentity

+

pub fn state(&self, topic: &TopicId) -> Option<&State<PI, R>>

Get a reference to the protocol state for a topic.

+

pub fn topics(&self) -> impl Iterator<Item = &TopicId>

Get an iterator of all joined topics.

+

pub fn states(&self) -> impl Iterator<Item = (&TopicId, &State<PI, R>)>

Get an iterator for the states of all joined topics.

+

pub fn has_active_peers(&self, topic: &TopicId) -> bool

Check if a topic has any active (connected) peers.

+

pub fn max_message_size(&self) -> usize

Returns the maximum message size configured in the gossip protocol.

+

pub fn handle( &mut self, event: InEvent<PI>, now: Instant ) -> impl Iterator<Item = OutEvent<PI>>

Handle an InEvent

This returns an iterator of OutEvents that must be processed.

-

Trait Implementations§

source§

impl<PI, R> Debug for State<PI, R>
where +

Trait Implementations§

§

impl<PI, R> Debug for State<PI, R>
where PI: Debug, - R: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI, R> !Freeze for State<PI, R>

§

impl<PI, R> RefUnwindSafe for State<PI, R>
where + R: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI, R> !Freeze for State<PI, R>

§

impl<PI, R> RefUnwindSafe for State<PI, R>

§

impl<PI, R> Send for State<PI, R>
where PI: Send, diff --git a/pr/2616/docs/iroh/gossip/proto/state/struct.Timer.html b/pr/2616/docs/iroh/gossip/proto/state/struct.Timer.html index a46aefd6f0..f5b513909e 100644 --- a/pr/2616/docs/iroh/gossip/proto/state/struct.Timer.html +++ b/pr/2616/docs/iroh/gossip/proto/state/struct.Timer.html @@ -1,11 +1,11 @@ -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

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, and once triggered inject an InEvent::TimerExpired into the protocol state.

-

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

Auto Trait Implementations§

§

impl<PI> Freeze for Timer<PI>
where +

Trait Implementations§

§

impl<PI> Clone for Timer<PI>
where + PI: Clone,

§

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
§

impl<PI> Debug for Timer<PI>
where + PI: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI> Freeze for Timer<PI>
where PI: Freeze,

§

impl<PI> RefUnwindSafe for Timer<PI>
where PI: RefUnwindSafe,

§

impl<PI> Send for Timer<PI>
where PI: Send,

§

impl<PI> Sync for Timer<PI>
where diff --git a/pr/2616/docs/iroh/gossip/proto/state/struct.TopicId.html b/pr/2616/docs/iroh/gossip/proto/state/struct.TopicId.html index 3d289983d8..93ee430409 100644 --- a/pr/2616/docs/iroh/gossip/proto/state/struct.TopicId.html +++ b/pr/2616/docs/iroh/gossip/proto/state/struct.TopicId.html @@ -1,25 +1,25 @@ -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>( +TopicId in iroh::gossip::proto::state - Rust

Struct iroh::gossip::proto::state::TopicId

pub struct TopicId(/* private fields */);
Expand description

The identifier for a topic

+

Implementations§

§

impl TopicId

pub const fn from_bytes(bytes: [u8; 32]) -> TopicId

Create from a byte array.

+

pub fn as_bytes(&self) -> &[u8; 32]

Get as byte slice.

+

Trait Implementations§

§

impl AsRef<[u8]> for TopicId

§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
§

impl AsRef<[u8; 32]> for TopicId

§

fn as_ref(&self) -> &[u8; 32]

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Clone for TopicId

§

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
§

impl Debug for TopicId

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for TopicId

§

fn deserialize<__D>( __deserializer: __D ) -> Result<TopicId, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for TopicId

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> From<T> for TopicId
where - T: Into<[u8; 32]>,

source§

fn from(value: T) -> TopicId

Converts to this type from the input type.
source§

impl FromStr for TopicId

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<TopicId, <TopicId as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for TopicId

source§

fn hash<__H>(&self, state: &mut __H)
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for TopicId

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> From<T> for TopicId
where + T: Into<[u8; 32]>,

§

fn from(value: T) -> TopicId

Converts to this type from the input type.
§

impl FromStr for TopicId

§

type Err = Error

The associated error which can be returned from parsing.
§

fn from_str(s: &str) -> Result<TopicId, <TopicId as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl Hash for TopicId

§

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 TopicId

source§

fn cmp(&self, other: &TopicId) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for TopicId

§

fn cmp(&self, other: &TopicId) -> 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 TopicId

source§

fn eq(&self, other: &TopicId) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for TopicId

§

fn eq(&self, other: &TopicId) -> 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 TopicId

source§

fn partial_cmp(&self, other: &TopicId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for TopicId

§

fn partial_cmp(&self, other: &TopicId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for TopicId

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for TopicId

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for TopicId

source§

impl Eq for TopicId

source§

impl StructuralPartialEq for TopicId

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for TopicId

§

impl Eq for TopicId

§

impl StructuralPartialEq for TopicId

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<A, T> AsBits<T> for A
where A: AsRef<[T]>, T: BitStore,

§

fn as_bits<O>(&self) -> &BitSlice<T, O>
where @@ -154,7 +154,7 @@ letters are used (e.g. F9B4CA)

Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T

§

impl<T> RpcError for T
where T: Debug + Display + Send + Sync + Unpin + 'static,

§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,

source§

impl<T> RuleType for T
where diff --git a/pr/2616/docs/iroh/gossip/proto/struct.Config.html b/pr/2616/docs/iroh/gossip/proto/struct.Config.html index 15f6da6a48..232dae7791 100644 --- a/pr/2616/docs/iroh/gossip/proto/struct.Config.html +++ b/pr/2616/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

pub struct Config {
     pub membership: Config,
     pub broadcast: Config,
     pub max_message_size: usize,
@@ -9,7 +9,7 @@
 

This size should be the same across a network to ensure all nodes can transmit and read large messages.

At minimum, this size should be large enough to send gossip control messages. This can vary, depending on the size of the PeerIdentity you use and the size of the PeerData you transmit in your messages.

The default is DEFAULT_MAX_MESSAGE_SIZE.

-

Trait Implementations§

source§

impl Clone for Config

source§

fn clone(&self) -> Config

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Config

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Config

source§

fn default() -> Config

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for Config

§

fn clone(&self) -> Config

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Config

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Config

§

fn default() -> Config

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/gossip/proto/struct.Message.html b/pr/2616/docs/iroh/gossip/proto/struct.Message.html index 7926a57882..9e83862d51 100644 --- a/pr/2616/docs/iroh/gossip/proto/struct.Message.html +++ b/pr/2616/docs/iroh/gossip/proto/struct.Message.html @@ -1,16 +1,16 @@ -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

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 - PI: Serialize,

source

pub fn size(&self) -> Result<usize, Error>

Get the encoded size of this message

-

Trait Implementations§

source§

impl<PI> Clone for Message<PI>
where - PI: Clone,

source§

fn clone(&self) -> Message<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 Message<PI>
where - PI: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de, PI> Deserialize<'de> for Message<PI>
where - PI: Deserialize<'de>,

Implementations§

§

impl<PI> Message<PI>

pub fn kind(&self) -> MessageKind

Get the kind of this message

+
§

impl<PI> Message<PI>
where + PI: Serialize,

pub fn size(&self) -> Result<usize, Error>

Get the encoded size of this message

+

Trait Implementations§

§

impl<PI> Clone for Message<PI>
where + PI: Clone,

§

fn clone(&self) -> Message<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
§

impl<PI> Debug for Message<PI>
where + PI: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de, PI> Deserialize<'de> for Message<PI>
where + PI: Deserialize<'de>,

§

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> Serialize for Message<PI>
where - PI: Serialize,

source§

fn serialize<__S>( + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<PI> Serialize for Message<PI>
where + PI: Serialize,

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where diff --git a/pr/2616/docs/iroh/gossip/proto/struct.PeerData.html b/pr/2616/docs/iroh/gossip/proto/struct.PeerData.html index 66bf89b1ad..81630f602f 100644 --- a/pr/2616/docs/iroh/gossip/proto/struct.PeerData.html +++ b/pr/2616/docs/iroh/gossip/proto/struct.PeerData.html @@ -1,19 +1,19 @@ -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

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.

-
source

pub fn inner(&self) -> &Bytes

Get a reference to the contained [bytes::Bytes].

-
source

pub fn as_bytes(&self) -> &[u8] ⓘ

Get the peer data as a byte slice.

-

Trait Implementations§

source§

impl Clone for PeerData

source§

fn clone(&self) -> PeerData

Returns a 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 PeerData

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for PeerData

source§

fn default() -> PeerData

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for PeerData

Implementations§

§

impl PeerData

pub fn new(data: impl Into<Bytes>) -> PeerData

Create a new PeerData from a byte buffer.

+

pub fn inner(&self) -> &Bytes

Get a reference to the contained [bytes::Bytes].

+

pub fn as_bytes(&self) -> &[u8] ⓘ

Get the peer data as a byte slice.

+

Trait Implementations§

§

impl Clone for PeerData

§

fn clone(&self) -> PeerData

Returns a 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 PeerData

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for PeerData

§

fn default() -> PeerData

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for PeerData

§

fn deserialize<__D>( __deserializer: __D ) -> Result<PeerData, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for PeerData

source§

fn eq(&self, other: &PeerData) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl PartialEq for PeerData

§

fn eq(&self, other: &PeerData) -> 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 PeerData

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for PeerData

§

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 PeerData

source§

impl StructuralPartialEq for PeerData

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for PeerData

§

impl StructuralPartialEq for PeerData

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/gossip/proto/struct.State.html b/pr/2616/docs/iroh/gossip/proto/struct.State.html index b28e666b9a..ed87ef386e 100644 --- a/pr/2616/docs/iroh/gossip/proto/struct.State.html +++ b/pr/2616/docs/iroh/gossip/proto/struct.State.html @@ -1,31 +1,31 @@ -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

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 a forwarder of InEvents to matching topic state. Each topic’s state is completely independent; thus the actual protocol logic lives with topic::State.

-

Implementations§

source§

impl<PI, R> State<PI, R>
where +

Implementations§

§

impl<PI, R> State<PI, R>
where PI: PeerIdentity, - R: Rng + Clone,

source

pub fn new(me: PI, me_data: PeerData, config: Config, rng: R) -> State<PI, R>

Create a new protocol state instance.

+ R: Rng + Clone,

pub fn new(me: PI, me_data: PeerData, config: Config, rng: R) -> State<PI, R>

Create a new protocol state instance.

me is the PeerIdentity of the local node, peer_data is the initial PeerData (which can be updated over time). For the protocol to perform as recommended in the papers, the Config should be identical for all nodes in the network.

-
source

pub fn me(&self) -> &PI

Get a reference to the node’s PeerIdentity

-
source

pub fn state(&self, topic: &TopicId) -> Option<&State<PI, R>>

Get a reference to the protocol state for a topic.

-
source

pub fn topics(&self) -> impl Iterator<Item = &TopicId>

Get an iterator of all joined topics.

-
source

pub fn states(&self) -> impl Iterator<Item = (&TopicId, &State<PI, R>)>

Get an iterator for the states of all joined topics.

-
source

pub fn has_active_peers(&self, topic: &TopicId) -> bool

Check if a topic has any active (connected) peers.

-
source

pub fn max_message_size(&self) -> usize

Returns the maximum message size configured in the gossip protocol.

-
source

pub fn handle( +

pub fn me(&self) -> &PI

Get a reference to the node’s PeerIdentity

+

pub fn state(&self, topic: &TopicId) -> Option<&State<PI, R>>

Get a reference to the protocol state for a topic.

+

pub fn topics(&self) -> impl Iterator<Item = &TopicId>

Get an iterator of all joined topics.

+

pub fn states(&self) -> impl Iterator<Item = (&TopicId, &State<PI, R>)>

Get an iterator for the states of all joined topics.

+

pub fn has_active_peers(&self, topic: &TopicId) -> bool

Check if a topic has any active (connected) peers.

+

pub fn max_message_size(&self) -> usize

Returns the maximum message size configured in the gossip protocol.

+

pub fn handle( &mut self, event: InEvent<PI>, now: Instant ) -> impl Iterator<Item = OutEvent<PI>>

Handle an InEvent

This returns an iterator of OutEvents that must be processed.

-

Trait Implementations§

source§

impl<PI, R> Debug for State<PI, R>
where +

Trait Implementations§

§

impl<PI, R> Debug for State<PI, R>
where PI: Debug, - R: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI, R> !Freeze for State<PI, R>

§

impl<PI, R> RefUnwindSafe for State<PI, R>
where + R: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI, R> !Freeze for State<PI, R>

§

impl<PI, R> RefUnwindSafe for State<PI, R>

§

impl<PI, R> Send for State<PI, R>
where PI: Send, diff --git a/pr/2616/docs/iroh/gossip/proto/struct.Timer.html b/pr/2616/docs/iroh/gossip/proto/struct.Timer.html index 128fca1106..fd5a36eae2 100644 --- a/pr/2616/docs/iroh/gossip/proto/struct.Timer.html +++ b/pr/2616/docs/iroh/gossip/proto/struct.Timer.html @@ -1,11 +1,11 @@ -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

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, and once triggered inject an InEvent::TimerExpired into the protocol state.

-

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

Auto Trait Implementations§

§

impl<PI> Freeze for Timer<PI>
where +

Trait Implementations§

§

impl<PI> Clone for Timer<PI>
where + PI: Clone,

§

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
§

impl<PI> Debug for Timer<PI>
where + PI: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI> Freeze for Timer<PI>
where PI: Freeze,

§

impl<PI> RefUnwindSafe for Timer<PI>
where PI: RefUnwindSafe,

§

impl<PI> Send for Timer<PI>
where PI: Send,

§

impl<PI> Sync for Timer<PI>
where diff --git a/pr/2616/docs/iroh/gossip/proto/struct.TopicId.html b/pr/2616/docs/iroh/gossip/proto/struct.TopicId.html index 2d0ceba315..2a77432a91 100644 --- a/pr/2616/docs/iroh/gossip/proto/struct.TopicId.html +++ b/pr/2616/docs/iroh/gossip/proto/struct.TopicId.html @@ -1,25 +1,25 @@ -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>( +TopicId in iroh::gossip::proto - Rust

Struct iroh::gossip::proto::TopicId

pub struct TopicId(/* private fields */);
Expand description

The identifier for a topic

+

Implementations§

§

impl TopicId

pub const fn from_bytes(bytes: [u8; 32]) -> TopicId

Create from a byte array.

+

pub fn as_bytes(&self) -> &[u8; 32]

Get as byte slice.

+

Trait Implementations§

§

impl AsRef<[u8]> for TopicId

§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
§

impl AsRef<[u8; 32]> for TopicId

§

fn as_ref(&self) -> &[u8; 32]

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Clone for TopicId

§

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
§

impl Debug for TopicId

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for TopicId

§

fn deserialize<__D>( __deserializer: __D ) -> Result<TopicId, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for TopicId

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> From<T> for TopicId
where - T: Into<[u8; 32]>,

source§

fn from(value: T) -> TopicId

Converts to this type from the input type.
source§

impl FromStr for TopicId

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<TopicId, <TopicId as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for TopicId

source§

fn hash<__H>(&self, state: &mut __H)
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for TopicId

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> From<T> for TopicId
where + T: Into<[u8; 32]>,

§

fn from(value: T) -> TopicId

Converts to this type from the input type.
§

impl FromStr for TopicId

§

type Err = Error

The associated error which can be returned from parsing.
§

fn from_str(s: &str) -> Result<TopicId, <TopicId as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl Hash for TopicId

§

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 TopicId

source§

fn cmp(&self, other: &TopicId) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for TopicId

§

fn cmp(&self, other: &TopicId) -> 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 TopicId

source§

fn eq(&self, other: &TopicId) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for TopicId

§

fn eq(&self, other: &TopicId) -> 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 TopicId

source§

fn partial_cmp(&self, other: &TopicId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for TopicId

§

fn partial_cmp(&self, other: &TopicId) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for TopicId

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for TopicId

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Copy for TopicId

source§

impl Eq for TopicId

source§

impl StructuralPartialEq for TopicId

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for TopicId

§

impl Eq for TopicId

§

impl StructuralPartialEq for TopicId

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<A, T> AsBits<T> for A
where A: AsRef<[T]>, T: BitStore,

§

fn as_bits<O>(&self) -> &BitSlice<T, O>
where @@ -154,7 +154,7 @@ letters are used (e.g. F9B4CA)

Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T

§

impl<T> RpcError for T
where T: Debug + Display + Send + Sync + Unpin + 'static,

§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,

source§

impl<T> RuleType for T
where diff --git a/pr/2616/docs/iroh/gossip/proto/topic/constant.DEFAULT_MAX_MESSAGE_SIZE.html b/pr/2616/docs/iroh/gossip/proto/topic/constant.DEFAULT_MAX_MESSAGE_SIZE.html index 1975403aba..c7a59a5bc8 100644 --- a/pr/2616/docs/iroh/gossip/proto/topic/constant.DEFAULT_MAX_MESSAGE_SIZE.html +++ b/pr/2616/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

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/2616/docs/iroh/gossip/proto/topic/enum.Command.html b/pr/2616/docs/iroh/gossip/proto/topic/enum.Command.html index 6c756ba7d3..26a2697c06 100644 --- a/pr/2616/docs/iroh/gossip/proto/topic/enum.Command.html +++ b/pr/2616/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

pub enum Command<PI> {
     Join(Vec<PI>),
     Broadcast(Bytes, Scope),
     Quit,
@@ -8,9 +8,9 @@
 but only become operational after the first join request by another peer.

§

Broadcast(Bytes, Scope)

Broadcast a message for this topic.

§

Quit

Leave this topic and drop all state.

-

Trait Implementations§

source§

impl<PI> Clone for Command<PI>
where - PI: Clone,

source§

fn clone(&self) -> Command<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 Command<PI>
where - Vec<PI>: Debug,

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI> !Freeze for Command<PI>

§

impl<PI> RefUnwindSafe for Command<PI>
where +

Trait Implementations§

§

impl<PI> Clone for Command<PI>
where + PI: Clone,

§

fn clone(&self) -> Command<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
§

impl<PI> Debug for Command<PI>
where + Vec<PI>: Debug,

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI> !Freeze for Command<PI>

§

impl<PI> RefUnwindSafe for Command<PI>
where PI: RefUnwindSafe,

§

impl<PI> Send for Command<PI>
where PI: Send,

§

impl<PI> Sync for Command<PI>
where PI: Sync,

§

impl<PI> Unpin for Command<PI>
where diff --git a/pr/2616/docs/iroh/gossip/proto/topic/enum.Event.html b/pr/2616/docs/iroh/gossip/proto/topic/enum.Event.html index b20660a248..18c3ea3ebe 100644 --- a/pr/2616/docs/iroh/gossip/proto/topic/enum.Event.html +++ b/pr/2616/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

pub enum Event<PI> {
     NeighborUp(PI),
     NeighborDown(PI),
     Received(GossipEvent<PI>),
@@ -6,29 +6,29 @@
 

Variants§

§

NeighborUp(PI)

We have a new, direct neighbor in the swarm membership layer for this topic

§

NeighborDown(PI)

We dropped direct neighbor in the swarm membership layer for this topic

§

Received(GossipEvent<PI>)

A gossip message was received for this topic

-

Trait Implementations§

source§

impl<PI> Clone for Event<PI>
where - PI: Clone,

source§

fn clone(&self) -> Event<PI>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<PI> Debug for Event<PI>
where - PI: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de, PI> Deserialize<'de> for Event<PI>
where - PI: Deserialize<'de>,

Trait Implementations§

§

impl<PI> Clone for Event<PI>
where + PI: Clone,

§

fn clone(&self) -> Event<PI>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<PI> Debug for Event<PI>
where + PI: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de, PI> Deserialize<'de> for Event<PI>
where + PI: Deserialize<'de>,

§

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 - 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 + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<PI> From<Event<PI>> for Event<PI>

§

fn from(value: Event<PI>) -> Event<PI>

Converts to this type from the input type.
§

impl<PI> From<Event<PI>> for Event<PI>

§

fn from(value: Event<PI>) -> Event<PI>

Converts to this type from the input type.
§

impl From<Event<PublicKey>> for GossipEvent

§

fn from(event: Event<PublicKey>) -> GossipEvent

Converts to this type from the input type.
§

impl<PI> Ord for Event<PI>
where + PI: Ord,

§

fn cmp(&self, other: &Event<PI>) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl<PI> PartialEq for Event<PI>
where - PI: PartialEq,

source§

fn eq(&self, other: &Event<PI>) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl<PI> PartialEq for Event<PI>
where + PI: PartialEq,

§

fn eq(&self, other: &Event<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> PartialOrd for Event<PI>
where - PI: PartialOrd,

source§

fn partial_cmp(&self, other: &Event<PI>) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl<PI> PartialOrd for Event<PI>
where + PI: PartialOrd,

§

fn partial_cmp(&self, other: &Event<PI>) -> 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<PI> Serialize for Event<PI>
where - PI: Serialize,

source§

fn serialize<__S>( +operator. Read more

§

impl<PI> Serialize for Event<PI>
where + PI: Serialize,

§

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<PI> Eq for Event<PI>
where - PI: Eq,

source§

impl<PI> StructuralPartialEq for Event<PI>

Auto Trait Implementations§

§

impl<PI> !Freeze for Event<PI>

§

impl<PI> RefUnwindSafe for Event<PI>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<PI> Eq for Event<PI>
where + PI: Eq,

§

impl<PI> StructuralPartialEq for Event<PI>

Auto Trait Implementations§

§

impl<PI> !Freeze for Event<PI>

§

impl<PI> RefUnwindSafe for Event<PI>
where PI: RefUnwindSafe,

§

impl<PI> Send for Event<PI>
where PI: Send,

§

impl<PI> Sync for Event<PI>
where PI: Sync,

§

impl<PI> Unpin for Event<PI>
where diff --git a/pr/2616/docs/iroh/gossip/proto/topic/enum.InEvent.html b/pr/2616/docs/iroh/gossip/proto/topic/enum.InEvent.html index 61812e52f8..8a2b1f1c1e 100644 --- a/pr/2616/docs/iroh/gossip/proto/topic/enum.InEvent.html +++ b/pr/2616/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

pub enum InEvent<PI> {
     RecvMessage(PI, Message<PI>),
     Command(Command<PI>),
     TimerExpired(Timer<PI>),
@@ -10,9 +10,9 @@
 
§

TimerExpired(Timer<PI>)

Trigger a previously scheduled timer.

§

PeerDisconnected(PI)

Peer disconnected on the network level.

§

UpdatePeerData(PeerData)

Update the opaque peer data about yourself.

-

Trait Implementations§

source§

impl<PI> Clone for InEvent<PI>
where - PI: Clone,

source§

fn clone(&self) -> InEvent<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 InEvent<PI>
where - PI: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI> !Freeze for InEvent<PI>

§

impl<PI> RefUnwindSafe for InEvent<PI>
where +

Trait Implementations§

§

impl<PI> Clone for InEvent<PI>
where + PI: Clone,

§

fn clone(&self) -> InEvent<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
§

impl<PI> Debug for InEvent<PI>
where + PI: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI> !Freeze for InEvent<PI>

§

impl<PI> RefUnwindSafe for InEvent<PI>
where PI: RefUnwindSafe,

§

impl<PI> Send for InEvent<PI>
where PI: Send,

§

impl<PI> Sync for InEvent<PI>
where PI: Sync,

§

impl<PI> Unpin for InEvent<PI>
where diff --git a/pr/2616/docs/iroh/gossip/proto/topic/enum.Message.html b/pr/2616/docs/iroh/gossip/proto/topic/enum.Message.html index 097dc9d198..b49f201291 100644 --- a/pr/2616/docs/iroh/gossip/proto/topic/enum.Message.html +++ b/pr/2616/docs/iroh/gossip/proto/topic/enum.Message.html @@ -1,26 +1,26 @@ -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

pub enum Message<PI> {
     Swarm(Message<PI>),
     Gossip(Message),
 }
Expand description

A protocol message for a particular topic

Variants§

§

Swarm(Message<PI>)

A message of the swarm membership layer

§

Gossip(Message)

A message of the gossip broadcast layer

-

Implementations§

source§

impl<PI> Message<PI>

source

pub fn kind(&self) -> MessageKind

Get the kind of this message

-

Trait Implementations§

source§

impl<PI> Clone for Message<PI>
where - PI: Clone,

source§

fn clone(&self) -> Message<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 Message<PI>
where - PI: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de, PI> Deserialize<'de> for Message<PI>
where - PI: Deserialize<'de>,

Implementations§

§

impl<PI> Message<PI>

pub fn kind(&self) -> MessageKind

Get the kind of this message

+

Trait Implementations§

§

impl<PI> Clone for Message<PI>
where + PI: Clone,

§

fn clone(&self) -> Message<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
§

impl<PI> Debug for Message<PI>
where + PI: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de, PI> Deserialize<'de> for Message<PI>
where + PI: Deserialize<'de>,

§

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 - PI: PartialEq,

source§

fn eq(&self, other: &Message<PI>) -> bool

This method tests for self and other values to be equal, and is used + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl<PI> From<Message<PI>> for Message<PI>

§

fn from(value: Message<PI>) -> Message<PI>

Converts to this type from the input type.
§

impl<PI> From<Message> for Message<PI>

§

fn from(value: Message) -> Message<PI>

Converts to this type from the input type.
§

impl<PI> PartialEq for Message<PI>
where + PI: PartialEq,

§

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 - PI: Serialize,

source§

fn serialize<__S>( +sufficient, and should not be overridden without very good reason.

§

impl<PI> Serialize for Message<PI>
where + PI: Serialize,

§

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<PI> Eq for Message<PI>
where - PI: Eq,

source§

impl<PI> StructuralPartialEq for Message<PI>

Auto Trait Implementations§

§

impl<PI> !Freeze for Message<PI>

§

impl<PI> RefUnwindSafe for Message<PI>
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl<PI> Eq for Message<PI>
where + PI: Eq,

§

impl<PI> StructuralPartialEq for Message<PI>

Auto Trait Implementations§

§

impl<PI> !Freeze for Message<PI>

§

impl<PI> RefUnwindSafe for Message<PI>
where PI: RefUnwindSafe,

§

impl<PI> Send for Message<PI>
where PI: Send,

§

impl<PI> Sync for Message<PI>
where PI: Sync,

§

impl<PI> Unpin for Message<PI>
where diff --git a/pr/2616/docs/iroh/gossip/proto/topic/enum.OutEvent.html b/pr/2616/docs/iroh/gossip/proto/topic/enum.OutEvent.html index 242813c489..db5f12bbf1 100644 --- a/pr/2616/docs/iroh/gossip/proto/topic/enum.OutEvent.html +++ b/pr/2616/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

pub enum OutEvent<PI> {
     SendMessage(PI, Message<PI>),
     EmitEvent(Event<PI>),
     ScheduleTimer(Duration, Timer<PI>),
@@ -11,12 +11,12 @@
 after the duration.

§

DisconnectPeer(PI)

Close the connection to a peer on the network level.

§

PeerData(PI, PeerData)

Emitted when new PeerData was received for a peer.

-

Trait Implementations§

source§

impl<PI> Debug for OutEvent<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<OutEvent<PI>> for OutEvent<PI>

source§

fn from(event: OutEvent<PI>) -> OutEvent<PI>

Converts to this type from the input type.
source§

impl<PI> From<OutEvent<PI>> for OutEvent<PI>

source§

fn from(event: OutEvent<PI>) -> OutEvent<PI>

Converts to this type from the input type.
source§

impl<PI> PartialEq for OutEvent<PI>
where - PI: PartialEq,

source§

fn eq(&self, other: &OutEvent<PI>) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl<PI> Debug for OutEvent<PI>
where + PI: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<PI> From<OutEvent<PI>> for OutEvent<PI>

§

fn from(event: OutEvent<PI>) -> OutEvent<PI>

Converts to this type from the input type.
§

impl<PI> From<OutEvent<PI>> for OutEvent<PI>

§

fn from(event: OutEvent<PI>) -> OutEvent<PI>

Converts to this type from the input type.
§

impl<PI> PartialEq for OutEvent<PI>
where + PI: PartialEq,

§

fn eq(&self, other: &OutEvent<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 OutEvent<PI>
where - PI: Eq,

source§

impl<PI> StructuralPartialEq for OutEvent<PI>

Auto Trait Implementations§

§

impl<PI> !Freeze for OutEvent<PI>

§

impl<PI> RefUnwindSafe for OutEvent<PI>
where +sufficient, and should not be overridden without very good reason.

§

impl<PI> Eq for OutEvent<PI>
where + PI: Eq,

§

impl<PI> StructuralPartialEq for OutEvent<PI>

Auto Trait Implementations§

§

impl<PI> !Freeze for OutEvent<PI>

§

impl<PI> RefUnwindSafe for OutEvent<PI>
where PI: RefUnwindSafe,

§

impl<PI> Send for OutEvent<PI>
where PI: Send,

§

impl<PI> Sync for OutEvent<PI>
where PI: Sync,

§

impl<PI> Unpin for OutEvent<PI>
where diff --git a/pr/2616/docs/iroh/gossip/proto/topic/enum.Timer.html b/pr/2616/docs/iroh/gossip/proto/topic/enum.Timer.html index b8766377a6..d7a48d352f 100644 --- a/pr/2616/docs/iroh/gossip/proto/topic/enum.Timer.html +++ b/pr/2616/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

pub enum Timer<PI> {
     Swarm(Timer<PI>),
     Gossip(Timer),
 }
Expand description

A timer to be registered for a particular topic.

@@ -6,13 +6,13 @@ to the protocol through InEvent::TimerExpired.

Variants§

§

Swarm(Timer<PI>)

A timer for the swarm layer

§

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: PartialEq,

source§

fn eq(&self, other: &Timer<PI>) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl<PI> Clone for Timer<PI>
where + PI: Clone,

§

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
§

impl<PI> Debug for Timer<PI>
where + PI: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<PI> From<Timer<PI>> for Timer<PI>

§

fn from(value: Timer<PI>) -> Timer<PI>

Converts to this type from the input type.
§

impl<PI> From<Timer> for Timer<PI>

§

fn from(value: Timer) -> Timer<PI>

Converts to this type from the input type.
§

impl<PI> PartialEq for Timer<PI>
where + PI: PartialEq,

§

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 - PI: Eq,

source§

impl<PI> StructuralPartialEq for Timer<PI>

Auto Trait Implementations§

§

impl<PI> Freeze for Timer<PI>
where +sufficient, and should not be overridden without very good reason.

§

impl<PI> Eq for Timer<PI>
where + PI: Eq,

§

impl<PI> StructuralPartialEq for Timer<PI>

Auto Trait Implementations§

§

impl<PI> Freeze for Timer<PI>
where PI: Freeze,

§

impl<PI> RefUnwindSafe for Timer<PI>
where PI: RefUnwindSafe,

§

impl<PI> Send for Timer<PI>
where PI: Send,

§

impl<PI> Sync for Timer<PI>
where diff --git a/pr/2616/docs/iroh/gossip/proto/topic/index.html b/pr/2616/docs/iroh/gossip/proto/topic/index.html index 469d502093..0f48832b52 100644 --- a/pr/2616/docs/iroh/gossip/proto/topic/index.html +++ b/pr/2616/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

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/2616/docs/iroh/gossip/proto/topic/struct.Config.html b/pr/2616/docs/iroh/gossip/proto/topic/struct.Config.html index 35754c2a4a..f221a42451 100644 --- a/pr/2616/docs/iroh/gossip/proto/topic/struct.Config.html +++ b/pr/2616/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

pub struct Config {
     pub membership: Config,
     pub broadcast: Config,
     pub max_message_size: usize,
@@ -9,7 +9,7 @@
 

This size should be the same across a network to ensure all nodes can transmit and read large messages.

At minimum, this size should be large enough to send gossip control messages. This can vary, depending on the size of the PeerIdentity you use and the size of the PeerData you transmit in your messages.

The default is DEFAULT_MAX_MESSAGE_SIZE.

-

Trait Implementations§

source§

impl Clone for Config

source§

fn clone(&self) -> Config

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Config

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Config

source§

fn default() -> Config

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for Config

§

fn clone(&self) -> Config

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Config

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Config

§

fn default() -> Config

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Config

§

impl RefUnwindSafe for Config

§

impl Send for Config

§

impl Sync for Config

§

impl Unpin for Config

§

impl UnwindSafe for Config

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/gossip/proto/topic/struct.State.html b/pr/2616/docs/iroh/gossip/proto/topic/struct.State.html index 17444c8bc8..8f46900b07 100644 --- a/pr/2616/docs/iroh/gossip/proto/topic/struct.State.html +++ b/pr/2616/docs/iroh/gossip/proto/topic/struct.State.html @@ -1,33 +1,33 @@ -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( +State in iroh::gossip::proto::topic - Rust

Struct iroh::gossip::proto::topic::State

pub struct State<PI, R> { /* private fields */ }
Expand description

The topic state maintains the swarm membership and broadcast tree for a particular topic.

+

Implementations§

§

impl<PI> State<PI, StdRng>
where + PI: PeerIdentity,

pub fn new( me: PI, me_data: Option<PeerData>, config: Config ) -> State<PI, StdRng>

Initialize the local state with the default random number generator.

-
source§

impl<PI, R> State<PI, R>

source

pub fn endpoint(&self) -> &PI

The address of your local endpoint.

-
source§

impl<PI, R> State<PI, R>
where +

§

impl<PI, R> State<PI, R>

pub fn endpoint(&self) -> &PI

The address of your local endpoint.

+
§

impl<PI, R> State<PI, R>
where PI: PeerIdentity, - R: Rng,

source

pub fn with_rng( + R: Rng,

pub fn with_rng( me: PI, me_data: Option<PeerData>, config: Config, rng: R ) -> State<PI, R>

Initialize the local state with a custom random number generator.

-
source

pub fn handle( +

pub fn handle( &mut self, event: InEvent<PI>, now: Instant ) -> impl Iterator<Item = OutEvent<PI>>

Handle an incoming event.

Returns an iterator of outgoing events that must be processed by the application.

-
source

pub fn stats(&self) -> &Stats

Get stats on how many messages were sent and received

+

pub fn stats(&self) -> &Stats

Get stats on how many messages were sent and received

TODO: Remove/replace with metrics?

-
source

pub fn gossip_stats(&self) -> &Stats

Get statistics for the gossip broadcast state

+

pub fn gossip_stats(&self) -> &Stats

Get statistics for the gossip broadcast state

TODO: Remove/replace with metrics?

-
source

pub fn has_active_peers(&self) -> bool

Check if this topic has any active (connected) peers.

-

Trait Implementations§

source§

impl<PI, R> Debug for State<PI, R>
where +

pub fn has_active_peers(&self) -> bool

Check if this topic has any active (connected) peers.

+

Trait Implementations§

§

impl<PI, R> Debug for State<PI, R>
where PI: Debug, - R: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI, R> !Freeze for State<PI, R>

§

impl<PI, R> RefUnwindSafe for State<PI, R>
where + R: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<PI, R> !Freeze for State<PI, R>

§

impl<PI, R> RefUnwindSafe for State<PI, R>

§

impl<PI, R> Send for State<PI, R>
where PI: Send, diff --git a/pr/2616/docs/iroh/gossip/proto/topic/struct.Stats.html b/pr/2616/docs/iroh/gossip/proto/topic/struct.Stats.html index 22c9ba964f..b695dca4f2 100644 --- a/pr/2616/docs/iroh/gossip/proto/topic/struct.Stats.html +++ b/pr/2616/docs/iroh/gossip/proto/topic/struct.Stats.html @@ -1,10 +1,10 @@ -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

pub struct Stats {
     pub messages_sent: usize,
     pub messages_received: usize,
 }
Expand description

Statistics for the protocol state of a topic

Fields§

§messages_sent: usize

Number of messages sent

§messages_received: usize

Number of messages received

-

Trait Implementations§

source§

impl Clone for Stats

source§

fn clone(&self) -> Stats

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Stats

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for Stats

source§

fn default() -> Stats

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Stats

§

impl RefUnwindSafe for Stats

§

impl Send for Stats

§

impl Sync for Stats

§

impl Unpin for Stats

§

impl UnwindSafe for Stats

Blanket Implementations§

source§

impl<T> Any for T
where +

Trait Implementations§

§

impl Clone for Stats

§

fn clone(&self) -> Stats

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Stats

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for Stats

§

fn default() -> Stats

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Stats

§

impl RefUnwindSafe for Stats

§

impl Send for Stats

§

impl Sync for Stats

§

impl Unpin for Stats

§

impl UnwindSafe for Stats

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/gossip/proto/topic/trait.IO.html b/pr/2616/docs/iroh/gossip/proto/topic/trait.IO.html index 1be4995464..09f8fa755d 100644 --- a/pr/2616/docs/iroh/gossip/proto/topic/trait.IO.html +++ b/pr/2616/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

pub trait IO<PI>
where PI: Clone,
{ // Required method fn push(&mut self, event: impl Into<OutEvent<PI>>); @@ -11,10 +11,10 @@ }
Expand description

A trait for a concrete type to push OutEvents to.

The implementation is generic over this trait, which allows the upper layer to supply a container of their choice for OutEvents emitted from the protocol state.

-

Required Methods§

source

fn push(&mut self, event: impl Into<OutEvent<PI>>)

Push an event in the IO container

-

Provided Methods§

Required Methods§

fn push(&mut self, event: impl Into<OutEvent<PI>>)

Push an event in the IO container

+

Provided Methods§

fn push_from_iter( &mut self, iter: impl IntoIterator<Item = impl Into<OutEvent<PI>>> )

Push all events from an iterator into the IO container

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<PI> IO<PI> for VecDeque<OutEvent<PI>>
where - PI: Clone,

source§

fn push(&mut self, event: impl Into<OutEvent<PI>>)

Implementors§

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<PI> IO<PI> for VecDeque<OutEvent<PI>>
where + PI: Clone,

§

fn push(&mut self, event: impl Into<OutEvent<PI>>)

Implementors§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/gossip/proto/trait.IO.html b/pr/2616/docs/iroh/gossip/proto/trait.IO.html index 164b1e41e0..a8ce53eb5c 100644 --- a/pr/2616/docs/iroh/gossip/proto/trait.IO.html +++ b/pr/2616/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

pub trait IO<PI>
where PI: Clone,
{ // Required method fn push(&mut self, event: impl Into<OutEvent<PI>>); @@ -11,10 +11,10 @@ }
Expand description

A trait for a concrete type to push OutEvents to.

The implementation is generic over this trait, which allows the upper layer to supply a container of their choice for OutEvents emitted from the protocol state.

-

Required Methods§

source

fn push(&mut self, event: impl Into<OutEvent<PI>>)

Push an event in the IO container

-

Provided Methods§

Required Methods§

fn push(&mut self, event: impl Into<OutEvent<PI>>)

Push an event in the IO container

+

Provided Methods§

fn push_from_iter( &mut self, iter: impl IntoIterator<Item = impl Into<OutEvent<PI>>> )

Push all events from an iterator into the IO container

-

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<PI> IO<PI> for VecDeque<OutEvent<PI>>
where - PI: Clone,

source§

fn push(&mut self, event: impl Into<OutEvent<PI>>)

Implementors§

\ No newline at end of file +

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<PI> IO<PI> for VecDeque<OutEvent<PI>>
where + PI: Clone,

§

fn push(&mut self, event: impl Into<OutEvent<PI>>)

Implementors§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/gossip/proto/trait.PeerIdentity.html b/pr/2616/docs/iroh/gossip/proto/trait.PeerIdentity.html index 83f461fc78..805009be5f 100644 --- a/pr/2616/docs/iroh/gossip/proto/trait.PeerIdentity.html +++ b/pr/2616/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

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.

@@ -6,5 +6,5 @@ and index individual peers.

the protocol are only compatible if the same concrete type is supplied for this trait.

TODO: Rename to PeerId? It does not necessarily refer to a peer’s address, as long as the networking layer can translate the value of its concrete type into an address.

-

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<T> PeerIdentity for T
where +

Object Safety§

This trait is not object safe.

Implementors§

§

impl<T> PeerIdentity for T

\ No newline at end of file diff --git a/pr/2616/docs/iroh/gossip/proto/util/index.html b/pr/2616/docs/iroh/gossip/proto/util/index.html index 91929872ee..432b501921 100644 --- a/pr/2616/docs/iroh/gossip/proto/util/index.html +++ b/pr/2616/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

Expand description

Utilities used in the protocol implementation

Structs§

\ No newline at end of file diff --git a/pr/2616/docs/iroh/gossip/proto/util/struct.TimeBoundCache.html b/pr/2616/docs/iroh/gossip/proto/util/struct.TimeBoundCache.html index 78c217daca..e8791e777f 100644 --- a/pr/2616/docs/iroh/gossip/proto/util/struct.TimeBoundCache.html +++ b/pr/2616/docs/iroh/gossip/proto/util/struct.TimeBoundCache.html @@ -1,18 +1,18 @@ -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.

-
source

pub fn remove(&mut self, key: &K) -> Option<V>

Remove an item from the cache.

-
source

pub fn len(&self) -> usize

Get the number of entries in the cache.

-
source

pub fn is_empty(&self) -> bool

Returns true if the map contains no elements.

-
source

pub fn get(&self, key: &K) -> Option<&V>

Get an item from the cache.

-
source

pub fn expires(&self, key: &K) -> Option<&Instant>

Get the expiration time for an item.

-
source

pub fn iter(&self) -> impl Iterator<Item = (&K, &V, &Instant)>

Iterate over all items in the cache.

-
source

pub fn expire_until(&mut self, instant: Instant) -> usize

Remove all entries with an expiry instant lower or equal to instant.

+TimeBoundCache in iroh::gossip::proto::util - Rust

Struct iroh::gossip::proto::util::TimeBoundCache

pub struct TimeBoundCache<K, V> { /* private fields */ }
Expand description

A hash map where entries expire after a time

+

Implementations§

§

impl<K, V> TimeBoundCache<K, V>
where + K: Hash + Eq + Clone,

pub fn insert(&mut self, key: K, value: V, expires: Instant)

Insert an item into the cache, marked with an expiration time.

+

pub fn contains_key(&self, key: &K) -> bool

Returns true if the map contains a value for the specified key.

+

pub fn remove(&mut self, key: &K) -> Option<V>

Remove an item from the cache.

+

pub fn len(&self) -> usize

Get the number of entries in the cache.

+

pub fn is_empty(&self) -> bool

Returns true if the map contains no elements.

+

pub fn get(&self, key: &K) -> Option<&V>

Get an item from the cache.

+

pub fn expires(&self, key: &K) -> Option<&Instant>

Get the expiration time for an item.

+

pub fn iter(&self) -> impl Iterator<Item = (&K, &V, &Instant)>

Iterate over all items in the cache.

+

pub fn expire_until(&mut self, instant: Instant) -> usize

Remove all entries with an expiry instant lower or equal to instant.

Returns the number of items that were removed.

-

Trait Implementations§

source§

impl<K, V> Debug for TimeBoundCache<K, V>
where +

Trait Implementations§

§

impl<K, V> Debug for TimeBoundCache<K, V>
where K: Debug, - V: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<K, V> Default for TimeBoundCache<K, V>

source§

fn default() -> TimeBoundCache<K, V>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<K, V> Freeze for TimeBoundCache<K, V>

§

impl<K, V> RefUnwindSafe for TimeBoundCache<K, V>
where + V: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<K, V> Default for TimeBoundCache<K, V>

§

fn default() -> TimeBoundCache<K, V>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<K, V> Freeze for TimeBoundCache<K, V>

§

impl<K, V> RefUnwindSafe for TimeBoundCache<K, V>

§

impl<K, V> Send for TimeBoundCache<K, V>
where K: Send, diff --git a/pr/2616/docs/iroh/gossip/proto/util/struct.TimerMap.html b/pr/2616/docs/iroh/gossip/proto/util/struct.TimerMap.html index 86151b4f63..e23332eac8 100644 --- a/pr/2616/docs/iroh/gossip/proto/util/struct.TimerMap.html +++ b/pr/2616/docs/iroh/gossip/proto/util/struct.TimerMap.html @@ -1,16 +1,16 @@ -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( +TimerMap in iroh::gossip::proto::util - Rust

Struct iroh::gossip::proto::util::TimerMap

pub struct TimerMap<T>(/* private fields */);
Expand description

A BTreeMap with Instant as key. Allows to process expired items.

+

Implementations§

§

impl<T> TimerMap<T>

pub fn new() -> TimerMap<T>

Create a new, empty TimerMap.

+

pub fn insert(&mut self, instant: Instant, item: T)

Insert a new entry at the specified instant.

+

pub fn drain_until( &mut self, from: &Instant ) -> impl Iterator<Item = (Instant, T)>

Remove and return all entries before and equal to from.

-
source

pub fn first(&self) -> Option<(&Instant, &Vec<T>)>

Get a reference to the earliest entry in the TimerMap.

-
source

pub fn iter(&self) -> impl Iterator<Item = (&Instant, &T)>

Iterate over all items in the timer map.

-
source§

impl<T> TimerMap<T>
where - T: PartialEq,

source

pub fn remove(&mut self, instant: &Instant, item: &T)

Remove an entry from the specified instant.

-

Trait Implementations§

source§

impl<T> Debug for TimerMap<T>
where - T: Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<T> Default for TimerMap<T>

source§

fn default() -> TimerMap<T>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<T> Freeze for TimerMap<T>

§

impl<T> RefUnwindSafe for TimerMap<T>
where +

pub fn first(&self) -> Option<(&Instant, &Vec<T>)>

Get a reference to the earliest entry in the TimerMap.

+

pub fn iter(&self) -> impl Iterator<Item = (&Instant, &T)>

Iterate over all items in the timer map.

+
§

impl<T> TimerMap<T>
where + T: PartialEq,

pub fn remove(&mut self, instant: &Instant, item: &T)

Remove an entry from the specified instant.

+

Trait Implementations§

§

impl<T> Debug for TimerMap<T>
where + T: Debug,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> Default for TimerMap<T>

§

fn default() -> TimerMap<T>

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<T> Freeze for TimerMap<T>

§

impl<T> RefUnwindSafe for TimerMap<T>
where T: RefUnwindSafe,

§

impl<T> Send for TimerMap<T>
where T: Send,

§

impl<T> Sync for TimerMap<T>
where T: Sync,

§

impl<T> Unpin for TimerMap<T>

§

impl<T> UnwindSafe for TimerMap<T>
where diff --git a/pr/2616/docs/iroh/metrics/struct.Metrics.html b/pr/2616/docs/iroh/metrics/struct.Metrics.html index 6f7d18e4aa..ae567c8aa2 100644 --- a/pr/2616/docs/iroh/metrics/struct.Metrics.html +++ b/pr/2616/docs/iroh/metrics/struct.Metrics.html @@ -1,18 +1,18 @@ 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,
-    pub doc_gossip_tick_pending_join: Counter,
-    pub doc_live_tick_main: Counter,
-    pub doc_live_tick_actor: Counter,
-    pub doc_live_tick_replica_event: Counter,
-    pub doc_live_tick_running_sync_connect: Counter,
-    pub doc_live_tick_running_sync_accept: Counter,
-    pub doc_live_tick_pending_downloads: Counter,
+    pub doc_gossip_tick_main: Counter,
+    pub doc_gossip_tick_event: Counter,
+    pub doc_gossip_tick_actor: Counter,
+    pub doc_gossip_tick_pending_join: Counter,
+    pub doc_live_tick_main: Counter,
+    pub doc_live_tick_actor: Counter,
+    pub doc_live_tick_replica_event: Counter,
+    pub doc_live_tick_running_sync_connect: Counter,
+    pub doc_live_tick_running_sync_accept: Counter,
+    pub doc_live_tick_pending_downloads: Counter,
 }
Available on crate feature metrics only.
Expand description

Enum of metrics for the module

-

Fields§

§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: Counter

Trait Implementations§

source§

impl Clone for Metrics

source§

fn clone(&self) -> Metrics

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Metrics

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Metrics

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Iterable for Metrics

source§

fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

Returns an iterator over the struct’s fields as tuples. Read more
source§

impl Metric for Metrics

source§

fn name() -> &'static str

The name of this metric group.
source§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
source§

fn with_metric<T, F>(f: F)
where +

Fields§

§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: Counter

Trait Implementations§

source§

impl Clone for Metrics

source§

fn clone(&self) -> Metrics

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Metrics

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Metrics

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Iterable for Metrics

source§

fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

Returns an iterator over the struct’s fields as tuples. Read more
source§

impl Metric for Metrics

source§

fn name() -> &'static str

The name of this metric group.
§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
§

fn with_metric<T, F>(f: F)
where F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
source§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +Only records if this metric is registered in the global registry.

§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/dialer/struct.Dialer.html b/pr/2616/docs/iroh/net/dialer/struct.Dialer.html index 13590bc89e..5a397181be 100644 --- a/pr/2616/docs/iroh/net/dialer/struct.Dialer.html +++ b/pr/2616/docs/iroh/net/dialer/struct.Dialer.html @@ -12,7 +12,7 @@ pending connect futures and emits finished connect results.

source

pub async fn next_conn(&mut self) -> (PublicKey, Result<Connection, Error>)

Waits for the next dial operation to complete.

source

pub fn pending_count(&self) -> usize

Number of pending connections to be opened.

source

pub fn endpoint(&self) -> &Endpoint

Returns a reference to the endpoint used in this dialer.

-

Trait Implementations§

source§

impl Debug for Dialer

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Dialer for Dialer

§

type Connection = Connection

Type of connections returned by the Dialer.
source§

fn queue_dial(&mut self, node_id: PublicKey)

Dial a node.
source§

fn pending_count(&self) -> usize

Get the number of dialing nodes.
source§

fn is_pending(&self, node: PublicKey) -> bool

Check if a node is being dialed.
source§

fn node_id(&self) -> PublicKey

Get the node id of our node.
source§

impl Stream for Dialer

§

type Item = (PublicKey, Result<Connection, Error>)

Values yielded by the stream.
source§

fn poll_next( +

Trait Implementations§

source§

impl Debug for Dialer

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Dialer for Dialer

§

type Connection = Connection

Type of connections returned by the Dialer.
§

fn queue_dial(&mut self, node_id: PublicKey)

Dial a node.
§

fn pending_count(&self) -> usize

Get the number of dialing nodes.
§

fn is_pending(&self, node: PublicKey) -> bool

Check if a node is being dialed.
§

fn node_id(&self) -> PublicKey

Get the node id of our node.
source§

impl Stream for Dialer

§

type Item = (PublicKey, Result<Connection, Error>)

Values yielded by the stream.
source§

fn poll_next( self: Pin<&mut Dialer>, cx: &mut Context<'_> ) -> Poll<Option<<Dialer as Stream>::Item>>

Attempt to pull out the next value of this stream, registering the diff --git a/pr/2616/docs/iroh/net/endpoint/enum.ConnectionError.html b/pr/2616/docs/iroh/net/endpoint/enum.ConnectionError.html index 3e3368e70f..a82993cfb5 100644 --- a/pr/2616/docs/iroh/net/endpoint/enum.ConnectionError.html +++ b/pr/2616/docs/iroh/net/endpoint/enum.ConnectionError.html @@ -17,7 +17,7 @@ period even if the peer is still reachable. See also TransportConfig::max_idle_timeout() and TransportConfig::keep_alive_interval().

§

LocallyClosed

The local application closed the connection

-

Trait Implementations§

§

impl Clone for ConnectionError

§

fn clone(&self) -> ConnectionError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ConnectionError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ConnectionError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ConnectionError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<Close> for ConnectionError

§

fn from(x: Close) -> ConnectionError

Converts to this type from the input type.
source§

impl From<ConnectionError> for GetError

source§

fn from(value: ConnectionError) -> GetError

Converts to this type from the input type.
source§

impl From<ConnectionError> for GetResponseError

source§

fn from(source: ConnectionError) -> GetResponseError

Converts to this type from the input type.
§

impl From<ConnectionError> for ReadError

§

fn from(source: ConnectionError) -> ReadError

Converts to this type from the input type.
§

impl From<ConnectionError> for WriteError

§

fn from(source: ConnectionError) -> WriteError

Converts to this type from the input type.
§

impl From<Error> for ConnectionError

§

fn from(source: Error) -> ConnectionError

Converts to this type from the input type.
§

impl PartialEq for ConnectionError

§

fn eq(&self, other: &ConnectionError) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for ConnectionError

§

fn clone(&self) -> ConnectionError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ConnectionError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ConnectionError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ConnectionError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<Close> for ConnectionError

§

fn from(x: Close) -> ConnectionError

Converts to this type from the input type.
§

impl From<ConnectionError> for GetError

§

fn from(value: ConnectionError) -> GetError

Converts to this type from the input type.
§

impl From<ConnectionError> for GetResponseError

§

fn from(source: ConnectionError) -> GetResponseError

Converts to this type from the input type.
§

impl From<ConnectionError> for ReadError

§

fn from(source: ConnectionError) -> ReadError

Converts to this type from the input type.
§

impl From<ConnectionError> for WriteError

§

fn from(source: ConnectionError) -> WriteError

Converts to this type from the input type.
§

impl From<Error> for ConnectionError

§

fn from(source: Error) -> ConnectionError

Converts to this type from the input type.
§

impl PartialEq for ConnectionError

§

fn eq(&self, other: &ConnectionError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for ConnectionError

§

impl StructuralPartialEq for ConnectionError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/endpoint/enum.ReadError.html b/pr/2616/docs/iroh/net/endpoint/enum.ReadError.html index 510770cffb..37a99d37ff 100644 --- a/pr/2616/docs/iroh/net/endpoint/enum.ReadError.html +++ b/pr/2616/docs/iroh/net/endpoint/enum.ReadError.html @@ -15,7 +15,7 @@ stream which cannot be recovered, making further ordered reads impossible.

§

ZeroRttRejected

This was a 0-RTT stream and the server rejected it

Can only occur on clients for 0-RTT streams, which can be opened using Connecting::into_0rtt().

-

Trait Implementations§

§

impl Clone for ReadError

§

fn clone(&self) -> ReadError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ReadError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ReadError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ReadError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<ConnectionError> for ReadError

§

fn from(source: ConnectionError) -> ReadError

Converts to this type from the input type.
source§

impl From<ReadError> for GetError

source§

fn from(value: ReadError) -> GetError

Converts to this type from the input type.
source§

impl From<ReadError> for GetResponseError

source§

fn from(source: ReadError) -> GetResponseError

Converts to this type from the input type.
§

impl From<ReadableError> for ReadError

§

fn from(e: ReadableError) -> ReadError

Converts to this type from the input type.
§

impl PartialEq for ReadError

§

fn eq(&self, other: &ReadError) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for ReadError

§

fn clone(&self) -> ReadError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for ReadError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for ReadError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for ReadError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<ConnectionError> for ReadError

§

fn from(source: ConnectionError) -> ReadError

Converts to this type from the input type.
§

impl From<ReadError> for GetError

§

fn from(value: ReadError) -> GetError

Converts to this type from the input type.
§

impl From<ReadError> for GetResponseError

§

fn from(source: ReadError) -> GetResponseError

Converts to this type from the input type.
§

impl From<ReadableError> for ReadError

§

fn from(e: ReadableError) -> ReadError

Converts to this type from the input type.
§

impl PartialEq for ReadError

§

fn eq(&self, other: &ReadError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for ReadError

§

impl StructuralPartialEq for ReadError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/endpoint/enum.WriteError.html b/pr/2616/docs/iroh/net/endpoint/enum.WriteError.html index 9d1b7c77d5..1bbd205bcf 100644 --- a/pr/2616/docs/iroh/net/endpoint/enum.WriteError.html +++ b/pr/2616/docs/iroh/net/endpoint/enum.WriteError.html @@ -11,7 +11,7 @@
§

ZeroRttRejected

This was a 0-RTT stream and the server rejected it

Can only occur on clients for 0-RTT streams, which can be opened using Connecting::into_0rtt().

-

Trait Implementations§

§

impl Clone for WriteError

§

fn clone(&self) -> WriteError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for WriteError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for WriteError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for WriteError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<ConnectionError> for WriteError

§

fn from(source: ConnectionError) -> WriteError

Converts to this type from the input type.
source§

impl From<WriteError> for ConnectedNextError

source§

fn from(source: WriteError) -> ConnectedNextError

Converts to this type from the input type.
source§

impl From<WriteError> for GetError

source§

fn from(value: WriteError) -> GetError

Converts to this type from the input type.
source§

impl From<WriteError> for GetResponseError

source§

fn from(source: WriteError) -> GetResponseError

Converts to this type from the input type.
§

impl PartialEq for WriteError

§

fn eq(&self, other: &WriteError) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for WriteError

§

fn clone(&self) -> WriteError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for WriteError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for WriteError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for WriteError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<ConnectionError> for WriteError

§

fn from(source: ConnectionError) -> WriteError

Converts to this type from the input type.
§

impl From<WriteError> for ConnectedNextError

§

fn from(source: WriteError) -> ConnectedNextError

Converts to this type from the input type.
§

impl From<WriteError> for GetError

§

fn from(value: WriteError) -> GetError

Converts to this type from the input type.
§

impl From<WriteError> for GetResponseError

§

fn from(source: WriteError) -> GetResponseError

Converts to this type from the input type.
§

impl PartialEq for WriteError

§

fn eq(&self, other: &WriteError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for WriteError

§

impl StructuralPartialEq for WriteError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/endpoint/struct.AddrInfo.html b/pr/2616/docs/iroh/net/endpoint/struct.AddrInfo.html index 502df22ca9..e3cb960d98 100644 --- a/pr/2616/docs/iroh/net/endpoint/struct.AddrInfo.html +++ b/pr/2616/docs/iroh/net/endpoint/struct.AddrInfo.html @@ -1,4 +1,4 @@ -AddrInfo in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::AddrInfo

source ·
pub struct AddrInfo {
+AddrInfo in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::AddrInfo

pub struct AddrInfo {
     pub relay_url: Option<RelayUrl>,
     pub direct_addresses: BTreeSet<SocketAddr>,
 }
Expand description

Network paths to contact an iroh-net node.

@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to other node, see NodeAddr for details.

Fields§

§relay_url: Option<RelayUrl>

The node’s home relay url.

§direct_addresses: BTreeSet<SocketAddr>

Socket addresses where the peer might be reached directly.

-

Implementations§

source§

impl AddrInfo

source

pub fn is_empty(&self) -> bool

Returns whether this addressing information is empty.

-
source

pub fn apply_options(&mut self, opts: AddrInfoOptions)

Applies the options to self.

+

Implementations§

§

impl AddrInfo

pub fn is_empty(&self) -> bool

Returns whether this addressing information is empty.

+

pub fn apply_options(&mut self, opts: AddrInfoOptions)

Applies the options to self.

This is used to more tightly control the information stored in ab AddrInfo received from another API. E.g. to ensure a discovery service is used the AddrInfoOptions::Id] option could be used to remove all other addressing details.

-

Trait Implementations§

source§

impl Clone for AddrInfo

source§

fn clone(&self) -> AddrInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AddrInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for AddrInfo

source§

fn default() -> AddrInfo

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for AddrInfo

Trait Implementations§

§

impl Clone for AddrInfo

§

fn clone(&self) -> AddrInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for AddrInfo

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for AddrInfo

§

fn default() -> AddrInfo

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for AddrInfo

§

fn deserialize<__D>( __deserializer: __D ) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<NodeInfo> for AddrInfo

source§

fn from(value: NodeInfo) -> AddrInfo

Converts to this type from the input type.
source§

impl Ord for AddrInfo

source§

fn cmp(&self, other: &AddrInfo) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<NodeInfo> for AddrInfo

source§

fn from(value: NodeInfo) -> AddrInfo

Converts to this type from the input type.
§

impl Ord for AddrInfo

§

fn cmp(&self, other: &AddrInfo) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for AddrInfo

source§

fn eq(&self, other: &AddrInfo) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
§

impl PartialEq for AddrInfo

§

fn eq(&self, other: &AddrInfo) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for AddrInfo

source§

fn partial_cmp(&self, other: &AddrInfo) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for AddrInfo

§

fn partial_cmp(&self, other: &AddrInfo) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for AddrInfo

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for AddrInfo

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for AddrInfo

source§

impl StructuralPartialEq for AddrInfo

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for AddrInfo

§

impl StructuralPartialEq for AddrInfo

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/endpoint/struct.Connection.html b/pr/2616/docs/iroh/net/endpoint/struct.Connection.html index 1ab58de5b8..bf05884c89 100644 --- a/pr/2616/docs/iroh/net/endpoint/struct.Connection.html +++ b/pr/2616/docs/iroh/net/endpoint/struct.Connection.html @@ -90,7 +90,7 @@ strong and pseudorandom, and are suitable for use as keying material.

pub fn set_max_concurrent_bi_streams(&self, count: VarInt)

Modify the number of remotely initiated bidirectional streams that may be concurrently open

No streams may be opened by the peer unless fewer than count are already open. Large counts increase both minimum and worst-case memory consumption.

-

Trait Implementations§

§

impl Clone for Connection

§

fn clone(&self) -> Connection

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Connection

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl NeedsConn<Connection> for GetStateNeedsConn

Trait Implementations§

§

impl Clone for Connection

§

fn clone(&self) -> Connection

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for Connection

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl NeedsConn<Connection> for GetStateNeedsConn

§

fn proceed( self, conn: Connection ) -> Pin<Box<dyn Future<Output = Result<Stats, FailureAction>>>>

Proceeds the download with the given connection.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/pr/2616/docs/iroh/net/endpoint/struct.NodeAddr.html b/pr/2616/docs/iroh/net/endpoint/struct.NodeAddr.html index 596bf017d8..f4cc3c228f 100644 --- a/pr/2616/docs/iroh/net/endpoint/struct.NodeAddr.html +++ b/pr/2616/docs/iroh/net/endpoint/struct.NodeAddr.html @@ -1,4 +1,4 @@ -NodeAddr in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::NodeAddr

source ·
pub struct NodeAddr {
+NodeAddr in iroh::net::endpoint - Rust

Struct iroh::net::endpoint::NodeAddr

pub struct NodeAddr {
     pub node_id: PublicKey,
     pub info: AddrInfo,
 }
Expand description

Network-level addressing information for an iroh-net node.

@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type whenever a connection to other nodes needs to be established.

Fields§

§node_id: PublicKey

The node’s identifier.

§info: AddrInfo

Addressing information to connect to Self::node_id.

-

Implementations§

source§

impl NodeAddr

source

pub fn new(node_id: PublicKey) -> NodeAddr

Creates a new NodeAddr with empty AddrInfo.

-
source

pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr

Adds a relay url to the node’s AddrInfo.

-
source

pub fn with_direct_addresses( +

Implementations§

§

impl NodeAddr

pub fn new(node_id: PublicKey) -> NodeAddr

Creates a new NodeAddr with empty AddrInfo.

+

pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr

Adds a relay url to the node’s AddrInfo.

+

pub fn with_direct_addresses( self, addresses: impl IntoIterator<Item = SocketAddr> ) -> NodeAddr

Adds the given direct addresses to the peer’s AddrInfo.

-
source

pub fn from_parts( +

pub fn from_parts( node_id: PublicKey, relay_url: Option<RelayUrl>, direct_addresses: Vec<SocketAddr> ) -> NodeAddr

Creates a new NodeAddr from its parts.

-
source

pub fn apply_options(&mut self, opts: AddrInfoOptions)

Applies the options to self.

+

pub fn apply_options(&mut self, opts: AddrInfoOptions)

Applies the options to self.

This is used to more tightly control the information stored in a NodeAddr received from another API. E.g. to ensure a discovery service is used the AddrInfoOptions::Id] option could be used to remove all other addressing details.

-
source

pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>

Returns the direct addresses of this peer.

-
source

pub fn relay_url(&self) -> Option<&RelayUrl>

Returns the relay url of this peer.

-

Trait Implementations§

source§

impl Clone for NodeAddr

source§

fn clone(&self) -> NodeAddr

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NodeAddr

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for NodeAddr

pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>

Returns the direct addresses of this peer.

+

pub fn relay_url(&self) -> Option<&RelayUrl>

Returns the relay url of this peer.

+

Trait Implementations§

§

impl Clone for NodeAddr

§

fn clone(&self) -> NodeAddr

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for NodeAddr

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NodeAddr

§

fn deserialize<__D>( __deserializer: __D ) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

source§

fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(info: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<PublicKey> for NodeAddr

source§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
source§

impl Ord for NodeAddr

source§

fn cmp(&self, other: &NodeAddr) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

§

fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(info: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
§

impl From<PublicKey> for NodeAddr

§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
§

impl Ord for NodeAddr

§

fn cmp(&self, other: &NodeAddr) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for NodeAddr

source§

fn eq(&self, other: &NodeAddr) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,
Restrict a value to a certain interval. Read more
§

impl PartialEq for NodeAddr

§

fn eq(&self, other: &NodeAddr) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for NodeAddr

source§

fn partial_cmp(&self, other: &NodeAddr) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for NodeAddr

§

fn partial_cmp(&self, other: &NodeAddr) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for NodeAddr

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for NodeAddr

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for NodeAddr

source§

impl StructuralPartialEq for NodeAddr

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for NodeAddr

§

impl StructuralPartialEq for NodeAddr

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/endpoint/struct.VarInt.html b/pr/2616/docs/iroh/net/endpoint/struct.VarInt.html index 19e9a07caf..475bf52bff 100644 --- a/pr/2616/docs/iroh/net/endpoint/struct.VarInt.html +++ b/pr/2616/docs/iroh/net/endpoint/struct.VarInt.html @@ -8,7 +8,7 @@
§Safety

x must be less than 2^62.

pub const fn into_inner(self) -> u64

Extract the integer value

-

Trait Implementations§

§

impl Clone for VarInt

§

fn clone(&self) -> VarInt

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for VarInt

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for VarInt

§

fn default() -> VarInt

Returns the “default value” for a type. Read more
§

impl Display for VarInt

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<Closed> for VarInt

source§

fn from(source: Closed) -> VarInt

Converts to this type from the input type.
§

impl From<StreamId> for VarInt

§

fn from(x: StreamId) -> VarInt

Converts to this type from the input type.
§

impl From<u16> for VarInt

§

fn from(x: u16) -> VarInt

Converts to this type from the input type.
§

impl From<u32> for VarInt

§

fn from(x: u32) -> VarInt

Converts to this type from the input type.
§

impl From<u8> for VarInt

§

fn from(x: u8) -> VarInt

Converts to this type from the input type.
§

impl Hash for VarInt

§

fn hash<__H>(&self, state: &mut __H)
where +

Trait Implementations§

§

impl Clone for VarInt

§

fn clone(&self) -> VarInt

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for VarInt

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for VarInt

§

fn default() -> VarInt

Returns the “default value” for a type. Read more
§

impl Display for VarInt

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<Closed> for VarInt

§

fn from(source: Closed) -> VarInt

Converts to this type from the input type.
§

impl From<StreamId> for VarInt

§

fn from(x: StreamId) -> VarInt

Converts to this type from the input type.
§

impl From<u16> for VarInt

§

fn from(x: u16) -> VarInt

Converts to this type from the input type.
§

impl From<u32> for VarInt

§

fn from(x: u32) -> VarInt

Converts to this type from the input type.
§

impl From<u8> for VarInt

§

fn from(x: u8) -> VarInt

Converts to this type from the input type.
§

impl Hash for VarInt

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for VarInt

§

fn cmp(&self, other: &VarInt) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where @@ -18,7 +18,7 @@ by ==.

1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for VarInt

§

fn partial_cmp(&self, other: &VarInt) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl TryFrom<VarInt> for Closed

§

type Error = UnknownErrorCode

The type returned in the event of a conversion error.
source§

fn try_from(value: VarInt) -> Result<Closed, <Closed as TryFrom<VarInt>>::Error>

Performs the conversion.
§

impl TryFrom<u128> for VarInt

§

fn try_from(x: u128) -> Result<VarInt, VarIntBoundsExceeded>

Succeeds iff x < 2^62

+operator. Read more
§

impl TryFrom<VarInt> for Closed

§

type Error = UnknownErrorCode

The type returned in the event of a conversion error.
§

fn try_from(value: VarInt) -> Result<Closed, <Closed as TryFrom<VarInt>>::Error>

Performs the conversion.
§

impl TryFrom<u128> for VarInt

§

fn try_from(x: u128) -> Result<VarInt, VarIntBoundsExceeded>

Succeeds iff x < 2^62

§

type Error = VarIntBoundsExceeded

The type returned in the event of a conversion error.
§

impl TryFrom<u64> for VarInt

§

fn try_from(x: u64) -> Result<VarInt, VarIntBoundsExceeded>

Succeeds iff x < 2^62

§

type Error = VarIntBoundsExceeded

The type returned in the event of a conversion error.
§

impl TryFrom<usize> for VarInt

§

fn try_from(x: usize) -> Result<VarInt, VarIntBoundsExceeded>

Succeeds iff x < 2^62

§

type Error = VarIntBoundsExceeded

The type returned in the event of a conversion error.
§

impl Copy for VarInt

§

impl Eq for VarInt

§

impl StructuralPartialEq for VarInt

Auto Trait Implementations§

§

impl Freeze for VarInt

§

impl RefUnwindSafe for VarInt

§

impl Send for VarInt

§

impl Sync for VarInt

§

impl Unpin for VarInt

§

impl UnwindSafe for VarInt

Blanket Implementations§

source§

impl<T> Any for T
where diff --git a/pr/2616/docs/iroh/net/key/enum.KeyParsingError.html b/pr/2616/docs/iroh/net/key/enum.KeyParsingError.html index ea00133e11..624023ce6d 100644 --- a/pr/2616/docs/iroh/net/key/enum.KeyParsingError.html +++ b/pr/2616/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

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§

§

impl Debug for KeyParsingError

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Display for KeyParsingError

§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Error for KeyParsingError

§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
§

impl From<Error> for KeyParsingError

§

fn from(source: Error) -> KeyParsingError

Converts to this type from the input type.
§

impl From<HexOrBase32ParseError> for KeyParsingError

§

fn from(source: HexOrBase32ParseError) -> KeyParsingError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/key/index.html b/pr/2616/docs/iroh/net/key/index.html index efaca61be5..ddae934d66 100644 --- a/pr/2616/docs/iroh/net/key/index.html +++ b/pr/2616/docs/iroh/net/key/index.html @@ -1,2 +1,2 @@ -iroh::net::key - Rust

Module iroh::net::key

source ·
Expand description

Cryptographic key handling for iroh-net.

+iroh::net::key - Rust

Module iroh::net::key

Expand description

Cryptographic key handling for iroh-net.

Structs§

Enums§

Constants§

Type Aliases§

  • The identifier for a node in the (iroh) network.
\ No newline at end of file diff --git a/pr/2616/docs/iroh/net/key/struct.PublicKey.html b/pr/2616/docs/iroh/net/key/struct.PublicKey.html index 3c7b0d6f2d..a2f8a9f88d 100644 --- a/pr/2616/docs/iroh/net/key/struct.PublicKey.html +++ b/pr/2616/docs/iroh/net/key/struct.PublicKey.html @@ -1,45 +1,45 @@ -PublicKey in iroh::net::key - Rust

Struct iroh::net::key::PublicKey

source ·
pub struct PublicKey(/* private fields */);
Expand description

A public key.

+PublicKey in iroh::net::key - Rust

Struct iroh::net::key::PublicKey

pub struct PublicKey(/* private fields */);
Expand description

A public key.

The key itself is just a 32 byte array, but a key has associated crypto information that is cached for performance reasons.

The cache item will be refreshed every time a crypto operation is performed, or when a key is deserialised or created from a byte array.

Serialisation or creation from a byte array is cheap if the key is already in the cache, but expensive if it is not.

-

Implementations§

source§

impl PublicKey

source

pub fn as_bytes(&self) -> &[u8; 32]

Get this public key as a byte array.

-
source

pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>

Construct a PublicKey from a slice of bytes.

+

Implementations§

§

impl PublicKey

pub fn as_bytes(&self) -> &[u8; 32]

Get this public key as a byte array.

+

pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>

Construct a PublicKey from a slice of bytes.

§Warning

This will return a [SignatureError] if the bytes passed into this method do not represent a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes. See [VerifyingKey::from_bytes] for details.

-
source

pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>

Verify a signature on a message with this secret key’s public key.

+

pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>

Verify a signature on a message with this secret key’s public key.

§Return

Returns Ok(()) if the signature is valid, and Err otherwise.

-
source

pub fn fmt_short(&self) -> String

Convert to a base32 string limited to the first 10 bytes for a friendly string +

pub fn fmt_short(&self) -> String

Convert to a base32 string limited to the first 10 bytes for a friendly string representation of the key.

-

Trait Implementations§

source§

impl AsRef<[u8]> for PublicKey

source§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Clone for PublicKey

source§

fn clone(&self) -> PublicKey

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PublicKey

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for PublicKey

Trait Implementations§

§

impl AsRef<[u8]> for PublicKey

§

fn as_ref(&self) -> &[u8] ⓘ

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Clone for PublicKey

§

fn clone(&self) -> PublicKey

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for PublicKey

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for PublicKey

§

fn deserialize<D>( deserializer: D ) -> Result<PublicKey, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for PublicKey

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<PublicKey> for NodeAddr

source§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
source§

impl From<VerifyingKey> for PublicKey

source§

fn from(verifying_key: VerifyingKey) -> PublicKey

Converts to this type from the input type.
source§

impl FromStr for PublicKey

Deserialises the PublicKey from it’s base32 encoding.

+ D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

§

impl Display for PublicKey

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<PublicKey> for NodeAddr

§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
§

impl From<VerifyingKey> for PublicKey

§

fn from(verifying_key: VerifyingKey) -> PublicKey

Converts to this type from the input type.
§

impl FromStr for PublicKey

Deserialises the PublicKey from it’s base32 encoding.

Display is capable of serialising this format.

-
§

type Err = KeyParsingError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<PublicKey, <PublicKey as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for PublicKey

source§

fn hash<H>(&self, state: &mut H)
where +
§

type Err = KeyParsingError

The associated error which can be returned from parsing.
§

fn from_str(s: &str) -> Result<PublicKey, <PublicKey as FromStr>::Err>

Parses a string s to return a value of this type. Read more

§

impl Hash for PublicKey

§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for PublicKey

source§

fn cmp(&self, other: &PublicKey) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for PublicKey

§

fn cmp(&self, other: &PublicKey) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for PublicKey

source§

fn eq(&self, other: &PublicKey) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,
Restrict a value to a certain interval. Read more
§

impl PartialEq for PublicKey

§

fn eq(&self, other: &PublicKey) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for PublicKey

source§

fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for PublicKey

§

fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for PublicKey

source§

fn serialize<S>( +operator. Read more

§

impl Serialize for PublicKey

§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where - S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<&[u8]> for PublicKey

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from( + S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl TryFrom<&[u8]> for PublicKey

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from( bytes: &[u8] -) -> Result<PublicKey, <PublicKey as TryFrom<&[u8]>>::Error>

Performs the conversion.
source§

impl TryFrom<&[u8; 32]> for PublicKey

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from( +) -> Result<PublicKey, <PublicKey as TryFrom<&[u8]>>::Error>

Performs the conversion.
§

impl TryFrom<&[u8; 32]> for PublicKey

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from( bytes: &[u8; 32] -) -> Result<PublicKey, <PublicKey as TryFrom<&[u8; 32]>>::Error>

Performs the conversion.
source§

impl Copy for PublicKey

source§

impl Eq for PublicKey

source§

impl StructuralPartialEq for PublicKey

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +) -> Result<PublicKey, <PublicKey as TryFrom<&[u8; 32]>>::Error>

Performs the conversion.
§

impl Copy for PublicKey

§

impl Eq for PublicKey

§

impl StructuralPartialEq for PublicKey

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<A, T> AsBits<T> for A
where A: AsRef<[T]>, T: BitStore,

§

fn as_bits<O>(&self) -> &BitSlice<T, O>
where @@ -174,7 +174,7 @@ letters are used (e.g. F9B4CA)

Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where - T: for<'de> Deserialize<'de>,

source§

impl<T> PeerIdentity for T
where + T: for<'de> Deserialize<'de>,

§

impl<T> PeerIdentity for T

§

impl<T> RpcError for T
where T: Debug + Display + Send + Sync + Unpin + 'static,

§

impl<T> RpcMessage for T
where T: Debug + Serialize + DeserializeOwned + Send + Sync + Unpin + 'static,

source§

impl<T> RuleType for T
where diff --git a/pr/2616/docs/iroh/net/key/struct.SecretKey.html b/pr/2616/docs/iroh/net/key/struct.SecretKey.html index 32452a712f..d54a13c192 100644 --- a/pr/2616/docs/iroh/net/key/struct.SecretKey.html +++ b/pr/2616/docs/iroh/net/key/struct.SecretKey.html @@ -1,24 +1,24 @@ -SecretKey in iroh::net::key - Rust

Struct iroh::net::key::SecretKey

source ·
pub struct SecretKey { /* private fields */ }
Expand description

A secret key.

-

Implementations§

source§

impl SecretKey

source

pub fn shared(&self, other: &PublicKey) -> SharedSecret

Returns the shared key for communication between this key and other.

-
source§

impl SecretKey

source

pub fn public(&self) -> PublicKey

The public key of this SecretKey.

-
source

pub fn generate() -> SecretKey

Generate a new SecretKey with the default randomness generator.

-
source

pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKey
where +SecretKey in iroh::net::key - Rust

Struct iroh::net::key::SecretKey

pub struct SecretKey { /* private fields */ }
Expand description

A secret key.

+

Implementations§

§

impl SecretKey

pub fn shared(&self, other: &PublicKey) -> SharedSecret

Returns the shared key for communication between this key and other.

+
§

impl SecretKey

pub fn public(&self) -> PublicKey

The public key of this SecretKey.

+

pub fn generate() -> SecretKey

Generate a new SecretKey with the default randomness generator.

+

pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKey
where R: CryptoRngCore + ?Sized,

Generate a new SecretKey with a randomness generator.

-
source

pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>

Serialise this key to OpenSSH format.

-
source

pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
where +

pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>

Serialise this key to OpenSSH format.

+

pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
where T: AsRef<[u8]>,

Deserialise this key from OpenSSH format.

-
source

pub fn sign(&self, msg: &[u8]) -> Signature

Sign the given message and return a digital signature

-
source

pub fn to_bytes(&self) -> [u8; 32]

Convert this to the bytes representing the secret part. +

pub fn sign(&self, msg: &[u8]) -> Signature

Sign the given message and return a digital signature

+

pub fn to_bytes(&self) -> [u8; 32]

Convert this to the bytes representing the secret part. The public part can always be recovered.

-
source

pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey

Create a secret key from its byte representation.

-

Trait Implementations§

source§

impl Clone for SecretKey

source§

fn clone(&self) -> SecretKey

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for SecretKey

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for SecretKey

pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey

Create a secret key from its byte representation.

+

Trait Implementations§

§

impl Clone for SecretKey

§

fn clone(&self) -> SecretKey

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for SecretKey

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for SecretKey

§

fn deserialize<D>( deserializer: D ) -> Result<SecretKey, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for SecretKey

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<[u8; 32]> for SecretKey

source§

fn from(value: [u8; 32]) -> SecretKey

Converts to this type from the input type.
source§

impl From<SigningKey> for SecretKey

source§

fn from(secret: SigningKey) -> SecretKey

Converts to this type from the input type.
source§

impl FromStr for SecretKey

§

type Err = KeyParsingError

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<SecretKey, <SecretKey as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Serialize for SecretKey

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for SecretKey

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<[u8; 32]> for SecretKey

§

fn from(value: [u8; 32]) -> SecretKey

Converts to this type from the input type.
§

impl From<SigningKey> for SecretKey

§

fn from(secret: SigningKey) -> SecretKey

Converts to this type from the input type.
§

impl FromStr for SecretKey

§

type Err = KeyParsingError

The associated error which can be returned from parsing.
§

fn from_str(s: &str) -> Result<SecretKey, <SecretKey as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl Serialize for SecretKey

§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where - S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl TryFrom<&[u8]> for SecretKey

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_from( + S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl TryFrom<&[u8]> for SecretKey

§

type Error = Error

The type returned in the event of a conversion error.
§

fn try_from( bytes: &[u8] ) -> Result<SecretKey, <SecretKey as TryFrom<&[u8]>>::Error>

Performs the conversion.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/key/struct.SharedSecret.html b/pr/2616/docs/iroh/net/key/struct.SharedSecret.html index 523f27b002..898bd4fcc2 100644 --- a/pr/2616/docs/iroh/net/key/struct.SharedSecret.html +++ b/pr/2616/docs/iroh/net/key/struct.SharedSecret.html @@ -1,7 +1,7 @@ -SharedSecret in iroh::net::key - Rust

Struct iroh::net::key::SharedSecret

source ·
pub struct SharedSecret(/* private fields */);
Expand description

Shared Secret.

-

Implementations§

source§

impl SharedSecret

source

pub fn seal(&self, buffer: &mut dyn Buffer)

Seals the provided cleartext.

-
source

pub fn open(&self, buffer: &mut dyn Buffer) -> Result<(), Error>

Opens the ciphertext, which must have been created using Self::seal, and places the clear text into the provided buffer.

-

Trait Implementations§

source§

impl Debug for SharedSecret

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +SharedSecret in iroh::net::key - Rust

Struct iroh::net::key::SharedSecret

pub struct SharedSecret(/* private fields */);
Expand description

Shared Secret.

+

Implementations§

§

impl SharedSecret

pub fn seal(&self, buffer: &mut dyn Buffer)

Seals the provided cleartext.

+

pub fn open(&self, buffer: &mut dyn Buffer) -> Result<(), Error>

Opens the ciphertext, which must have been created using Self::seal, and places the clear text into the provided buffer.

+

Trait Implementations§

§

impl Debug for SharedSecret

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/key/type.NodeId.html b/pr/2616/docs/iroh/net/key/type.NodeId.html index f45cfd3e7e..42aa2536db 100644 --- a/pr/2616/docs/iroh/net/key/type.NodeId.html +++ b/pr/2616/docs/iroh/net/key/type.NodeId.html @@ -1,4 +1,4 @@ -NodeId in iroh::net::key - Rust

Type Alias iroh::net::key::NodeId

source ·
pub type NodeId = PublicKey;
Expand description

The identifier for a node in the (iroh) network.

+NodeId in iroh::net::key - Rust

Type Alias iroh::net::key::NodeId

pub type NodeId = PublicKey;
Expand description

The identifier for a node in the (iroh) network.

Each node in iroh has a unique identifier created as a cryptographic key. This can be used to globally identify a node. Since it is also a cryptographic key it is also the mechanism by which all traffic is always encrypted for a specific node only.

diff --git a/pr/2616/docs/iroh/net/metrics/struct.MagicsockMetrics.html b/pr/2616/docs/iroh/net/metrics/struct.MagicsockMetrics.html index 216a7fe4ea..03ea5c721f 100644 --- a/pr/2616/docs/iroh/net/metrics/struct.MagicsockMetrics.html +++ b/pr/2616/docs/iroh/net/metrics/struct.MagicsockMetrics.html @@ -1,53 +1,53 @@ MagicsockMetrics in iroh::net::metrics - Rust

Struct iroh::net::metrics::MagicsockMetrics

source ·
pub struct MagicsockMetrics {
Show 40 fields - pub re_stun_calls: Counter, - pub update_direct_addrs: Counter, - pub send_ipv4: Counter, - pub send_ipv6: Counter, - pub send_relay: Counter, - pub send_relay_error: Counter, - pub send_data: Counter, - pub send_data_network_down: Counter, - pub recv_data_relay: Counter, - pub recv_data_ipv4: Counter, - pub recv_data_ipv6: Counter, - pub recv_datagrams: Counter, - pub send_disco_udp: Counter, - pub send_disco_relay: Counter, - pub sent_disco_udp: Counter, - pub sent_disco_relay: Counter, - pub sent_disco_ping: Counter, - pub sent_disco_pong: Counter, - pub sent_disco_call_me_maybe: Counter, - pub recv_disco_bad_key: Counter, - pub recv_disco_bad_parse: Counter, - pub recv_disco_udp: Counter, - pub recv_disco_relay: Counter, - pub recv_disco_ping: Counter, - pub recv_disco_pong: Counter, - pub recv_disco_call_me_maybe: Counter, - pub recv_disco_call_me_maybe_bad_disco: Counter, - pub relay_home_change: Counter, - pub num_direct_conns_added: Counter, - pub num_direct_conns_removed: Counter, - pub num_relay_conns_added: Counter, - pub num_relay_conns_removed: Counter, - pub actor_tick_main: Counter, - pub actor_tick_msg: Counter, - pub actor_tick_re_stun: Counter, - pub actor_tick_portmap_changed: Counter, - pub actor_tick_direct_addr_heartbeat: Counter, - pub actor_tick_direct_addr_update_receiver: Counter, - pub actor_link_change: Counter, - pub actor_tick_other: Counter, + pub re_stun_calls: Counter, + pub update_direct_addrs: Counter, + pub send_ipv4: Counter, + pub send_ipv6: Counter, + pub send_relay: Counter, + pub send_relay_error: Counter, + pub send_data: Counter, + pub send_data_network_down: Counter, + pub recv_data_relay: Counter, + pub recv_data_ipv4: Counter, + pub recv_data_ipv6: Counter, + pub recv_datagrams: Counter, + pub send_disco_udp: Counter, + pub send_disco_relay: Counter, + pub sent_disco_udp: Counter, + pub sent_disco_relay: Counter, + pub sent_disco_ping: Counter, + pub sent_disco_pong: Counter, + pub sent_disco_call_me_maybe: Counter, + pub recv_disco_bad_key: Counter, + pub recv_disco_bad_parse: Counter, + pub recv_disco_udp: Counter, + pub recv_disco_relay: Counter, + pub recv_disco_ping: Counter, + pub recv_disco_pong: Counter, + pub recv_disco_call_me_maybe: Counter, + pub recv_disco_call_me_maybe_bad_disco: Counter, + pub relay_home_change: Counter, + pub num_direct_conns_added: Counter, + pub num_direct_conns_removed: Counter, + pub num_relay_conns_added: Counter, + pub num_relay_conns_removed: Counter, + pub actor_tick_main: Counter, + pub actor_tick_msg: Counter, + pub actor_tick_re_stun: Counter, + pub actor_tick_portmap_changed: Counter, + pub actor_tick_direct_addr_heartbeat: Counter, + pub actor_tick_direct_addr_update_receiver: Counter, + pub actor_link_change: Counter, + 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.

-
§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 +

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.

+
§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.
§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
§

fn with_metric<T, F>(f: F)
where F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
source§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +Only records if this metric is registered in the global registry.

§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/metrics/struct.NetcheckMetrics.html b/pr/2616/docs/iroh/net/metrics/struct.NetcheckMetrics.html index 393602def5..e591631be2 100644 --- a/pr/2616/docs/iroh/net/metrics/struct.NetcheckMetrics.html +++ b/pr/2616/docs/iroh/net/metrics/struct.NetcheckMetrics.html @@ -1,15 +1,15 @@ 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,
-    pub stun_packets_recv_ipv4: Counter,
-    pub stun_packets_recv_ipv6: Counter,
-    pub reports: Counter,
-    pub reports_full: Counter,
+    pub stun_packets_dropped: Counter,
+    pub stun_packets_sent_ipv4: Counter,
+    pub stun_packets_sent_ipv6: Counter,
+    pub stun_packets_recv_ipv4: Counter,
+    pub stun_packets_recv_ipv6: Counter,
+    pub reports: Counter,
+    pub reports_full: Counter,
 }
Expand description

Enum of metrics for the module

-

Fields§

§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: 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 +

Fields§

§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: 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.
§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
§

fn with_metric<T, F>(f: F)
where F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
source§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +Only records if this metric is registered in the global registry.

§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/metrics/struct.PortmapMetrics.html b/pr/2616/docs/iroh/net/metrics/struct.PortmapMetrics.html index 657f5a5c45..a6b94af8a1 100644 --- a/pr/2616/docs/iroh/net/metrics/struct.PortmapMetrics.html +++ b/pr/2616/docs/iroh/net/metrics/struct.PortmapMetrics.html @@ -1,19 +1,19 @@ 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,
-    pub mapping_failures: Counter,
-    pub external_address_updated: Counter,
-    pub upnp_probes: Counter,
-    pub upnp_probes_failed: Counter,
-    pub upnp_available: Counter,
-    pub upnp_gateway_updated: Counter,
-    pub pcp_probes: Counter,
-    pub pcp_available: Counter,
+    pub probes_started: Counter,
+    pub local_port_updates: Counter,
+    pub mapping_attempts: Counter,
+    pub mapping_failures: Counter,
+    pub external_address_updated: Counter,
+    pub upnp_probes: Counter,
+    pub upnp_probes_failed: Counter,
+    pub upnp_available: Counter,
+    pub upnp_gateway_updated: Counter,
+    pub pcp_probes: Counter,
+    pub pcp_available: Counter,
 }
Expand description

Enum of metrics for the module

-

Fields§

§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: 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 +

Fields§

§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: 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.
§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
§

fn with_metric<T, F>(f: F)
where F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
source§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +Only records if this metric is registered in the global registry.

§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/metrics/struct.RelayMetrics.html b/pr/2616/docs/iroh/net/metrics/struct.RelayMetrics.html index ad33bb34af..c5337830ab 100644 --- a/pr/2616/docs/iroh/net/metrics/struct.RelayMetrics.html +++ b/pr/2616/docs/iroh/net/metrics/struct.RelayMetrics.html @@ -1,46 +1,46 @@ 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, - pub send_packets_recv: Counter, - pub send_packets_dropped: Counter, - pub disco_packets_sent: Counter, - pub disco_packets_recv: Counter, - pub disco_packets_dropped: Counter, - pub other_packets_sent: Counter, - pub other_packets_recv: Counter, - pub other_packets_dropped: Counter, - pub got_ping: Counter, - pub sent_pong: Counter, - pub unknown_frames: Counter, - pub accepts: Counter, - pub disconnects: Counter, - pub unique_client_keys: Counter, - pub websocket_accepts: Counter, - pub derp_accepts: Counter, + pub bytes_sent: Counter, + pub bytes_recv: Counter, + pub send_packets_sent: Counter, + pub send_packets_recv: Counter, + pub send_packets_dropped: Counter, + pub disco_packets_sent: Counter, + pub disco_packets_recv: Counter, + pub disco_packets_dropped: Counter, + pub other_packets_sent: Counter, + pub other_packets_recv: Counter, + pub other_packets_dropped: Counter, + pub got_ping: Counter, + pub sent_pong: Counter, + pub unknown_frames: Counter, + pub accepts: Counter, + pub disconnects: Counter, + pub unique_client_keys: Counter, + pub websocket_accepts: Counter, + pub derp_accepts: Counter,
}
Expand description

Metrics tracked for the relay server

-

Fields§

§bytes_sent: Counter

Bytes sent from a FrameType::SendPacket

-
§bytes_recv: Counter

Bytes received from a FrameType::SendPacket

-
§send_packets_sent: Counter

FrameType::SendPacket sent, that are not disco messages

-
§send_packets_recv: Counter

FrameType::SendPacket received, that are not disco messages

-
§send_packets_dropped: Counter

FrameType::SendPacket dropped, that are not disco messages

-
§disco_packets_sent: Counter

FrameType::SendPacket sent that are disco messages

-
§disco_packets_recv: Counter

FrameType::SendPacket received that are disco messages

-
§disco_packets_dropped: Counter

FrameType::SendPacket dropped that are disco messages

-
§other_packets_sent: Counter

Packets of other FrameTypes sent

-
§other_packets_recv: Counter

Packets of other FrameTypes received

-
§other_packets_dropped: Counter

Packets of other FrameTypes dropped

-
§got_ping: Counter

Number of FrameType::Pings received

-
§sent_pong: Counter

Number of FrameType::Pongs sent

-
§unknown_frames: Counter

Number of FrameType::Unknown received

-
§accepts: Counter

Number of connections we have accepted

-
§disconnects: Counter

Number of connections we have removed because of an error

-
§unique_client_keys: Counter

Number of unique client keys per day

-
§websocket_accepts: Counter

Number of accepted websocket connections

-
§derp_accepts: Counter

Number of accepted ‘iroh derp http’ connection upgrades

-

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 +

Fields§

§bytes_sent: Counter

Bytes sent from a FrameType::SendPacket

+
§bytes_recv: Counter

Bytes received from a FrameType::SendPacket

+
§send_packets_sent: Counter

FrameType::SendPacket sent, that are not disco messages

+
§send_packets_recv: Counter

FrameType::SendPacket received, that are not disco messages

+
§send_packets_dropped: Counter

FrameType::SendPacket dropped, that are not disco messages

+
§disco_packets_sent: Counter

FrameType::SendPacket sent that are disco messages

+
§disco_packets_recv: Counter

FrameType::SendPacket received that are disco messages

+
§disco_packets_dropped: Counter

FrameType::SendPacket dropped that are disco messages

+
§other_packets_sent: Counter

Packets of other FrameTypes sent

+
§other_packets_recv: Counter

Packets of other FrameTypes received

+
§other_packets_dropped: Counter

Packets of other FrameTypes dropped

+
§got_ping: Counter

Number of FrameType::Pings received

+
§sent_pong: Counter

Number of FrameType::Pongs sent

+
§unknown_frames: Counter

Number of FrameType::Unknown received

+
§accepts: Counter

Number of connections we have accepted

+
§disconnects: Counter

Number of connections we have removed because of an error

+
§unique_client_keys: Counter

Number of unique client keys per day

+
§websocket_accepts: Counter

Number of accepted websocket connections

+
§derp_accepts: Counter

Number of accepted ‘iroh derp http’ connection upgrades

+

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.
§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
§

fn with_metric<T, F>(f: F)
where F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
source§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +Only records if this metric is registered in the global registry.

§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/netcheck/struct.Metrics.html b/pr/2616/docs/iroh/net/netcheck/struct.Metrics.html index 7f3edeee20..1e79aef125 100644 --- a/pr/2616/docs/iroh/net/netcheck/struct.Metrics.html +++ b/pr/2616/docs/iroh/net/netcheck/struct.Metrics.html @@ -1,15 +1,15 @@ 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,
-    pub stun_packets_recv_ipv4: Counter,
-    pub stun_packets_recv_ipv6: Counter,
-    pub reports: Counter,
-    pub reports_full: Counter,
+    pub stun_packets_dropped: Counter,
+    pub stun_packets_sent_ipv4: Counter,
+    pub stun_packets_sent_ipv6: Counter,
+    pub stun_packets_recv_ipv4: Counter,
+    pub stun_packets_recv_ipv6: Counter,
+    pub reports: Counter,
+    pub reports_full: Counter,
 }
Expand description

Enum of metrics for the module

-

Fields§

§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: 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 +

Fields§

§stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: 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.
§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
§

fn with_metric<T, F>(f: F)
where F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
source§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +Only records if this metric is registered in the global registry.

§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/portmapper/struct.Metrics.html b/pr/2616/docs/iroh/net/portmapper/struct.Metrics.html index 55e273eb6c..532bf9a35d 100644 --- a/pr/2616/docs/iroh/net/portmapper/struct.Metrics.html +++ b/pr/2616/docs/iroh/net/portmapper/struct.Metrics.html @@ -1,19 +1,19 @@ 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,
-    pub mapping_failures: Counter,
-    pub external_address_updated: Counter,
-    pub upnp_probes: Counter,
-    pub upnp_probes_failed: Counter,
-    pub upnp_available: Counter,
-    pub upnp_gateway_updated: Counter,
-    pub pcp_probes: Counter,
-    pub pcp_available: Counter,
+    pub probes_started: Counter,
+    pub local_port_updates: Counter,
+    pub mapping_attempts: Counter,
+    pub mapping_failures: Counter,
+    pub external_address_updated: Counter,
+    pub upnp_probes: Counter,
+    pub upnp_probes_failed: Counter,
+    pub upnp_available: Counter,
+    pub upnp_gateway_updated: Counter,
+    pub pcp_probes: Counter,
+    pub pcp_available: Counter,
 }
Expand description

Enum of metrics for the module

-

Fields§

§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: 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 +

Fields§

§probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: 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.
§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
§

fn with_metric<T, F>(f: F)
where F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
source§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +Only records if this metric is registered in the global registry.

§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/relay/server/struct.Metrics.html b/pr/2616/docs/iroh/net/relay/server/struct.Metrics.html index ef5f7f23c4..e71791e02e 100644 --- a/pr/2616/docs/iroh/net/relay/server/struct.Metrics.html +++ b/pr/2616/docs/iroh/net/relay/server/struct.Metrics.html @@ -1,46 +1,46 @@ 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, - pub send_packets_recv: Counter, - pub send_packets_dropped: Counter, - pub disco_packets_sent: Counter, - pub disco_packets_recv: Counter, - pub disco_packets_dropped: Counter, - pub other_packets_sent: Counter, - pub other_packets_recv: Counter, - pub other_packets_dropped: Counter, - pub got_ping: Counter, - pub sent_pong: Counter, - pub unknown_frames: Counter, - pub accepts: Counter, - pub disconnects: Counter, - pub unique_client_keys: Counter, - pub websocket_accepts: Counter, - pub derp_accepts: Counter, + pub bytes_sent: Counter, + pub bytes_recv: Counter, + pub send_packets_sent: Counter, + pub send_packets_recv: Counter, + pub send_packets_dropped: Counter, + pub disco_packets_sent: Counter, + pub disco_packets_recv: Counter, + pub disco_packets_dropped: Counter, + pub other_packets_sent: Counter, + pub other_packets_recv: Counter, + pub other_packets_dropped: Counter, + pub got_ping: Counter, + pub sent_pong: Counter, + pub unknown_frames: Counter, + pub accepts: Counter, + pub disconnects: Counter, + pub unique_client_keys: Counter, + pub websocket_accepts: Counter, + pub derp_accepts: Counter,
}
Expand description

Metrics tracked for the relay server

-

Fields§

§bytes_sent: Counter

Bytes sent from a FrameType::SendPacket

-
§bytes_recv: Counter

Bytes received from a FrameType::SendPacket

-
§send_packets_sent: Counter

FrameType::SendPacket sent, that are not disco messages

-
§send_packets_recv: Counter

FrameType::SendPacket received, that are not disco messages

-
§send_packets_dropped: Counter

FrameType::SendPacket dropped, that are not disco messages

-
§disco_packets_sent: Counter

FrameType::SendPacket sent that are disco messages

-
§disco_packets_recv: Counter

FrameType::SendPacket received that are disco messages

-
§disco_packets_dropped: Counter

FrameType::SendPacket dropped that are disco messages

-
§other_packets_sent: Counter

Packets of other FrameTypes sent

-
§other_packets_recv: Counter

Packets of other FrameTypes received

-
§other_packets_dropped: Counter

Packets of other FrameTypes dropped

-
§got_ping: Counter

Number of FrameType::Pings received

-
§sent_pong: Counter

Number of FrameType::Pongs sent

-
§unknown_frames: Counter

Number of FrameType::Unknown received

-
§accepts: Counter

Number of connections we have accepted

-
§disconnects: Counter

Number of connections we have removed because of an error

-
§unique_client_keys: Counter

Number of unique client keys per day

-
§websocket_accepts: Counter

Number of accepted websocket connections

-
§derp_accepts: Counter

Number of accepted ‘iroh derp http’ connection upgrades

-

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 +

Fields§

§bytes_sent: Counter

Bytes sent from a FrameType::SendPacket

+
§bytes_recv: Counter

Bytes received from a FrameType::SendPacket

+
§send_packets_sent: Counter

FrameType::SendPacket sent, that are not disco messages

+
§send_packets_recv: Counter

FrameType::SendPacket received, that are not disco messages

+
§send_packets_dropped: Counter

FrameType::SendPacket dropped, that are not disco messages

+
§disco_packets_sent: Counter

FrameType::SendPacket sent that are disco messages

+
§disco_packets_recv: Counter

FrameType::SendPacket received that are disco messages

+
§disco_packets_dropped: Counter

FrameType::SendPacket dropped that are disco messages

+
§other_packets_sent: Counter

Packets of other FrameTypes sent

+
§other_packets_recv: Counter

Packets of other FrameTypes received

+
§other_packets_dropped: Counter

Packets of other FrameTypes dropped

+
§got_ping: Counter

Number of FrameType::Pings received

+
§sent_pong: Counter

Number of FrameType::Pongs sent

+
§unknown_frames: Counter

Number of FrameType::Unknown received

+
§accepts: Counter

Number of connections we have accepted

+
§disconnects: Counter

Number of connections we have removed because of an error

+
§unique_client_keys: Counter

Number of unique client keys per day

+
§websocket_accepts: Counter

Number of accepted websocket connections

+
§derp_accepts: Counter

Number of accepted ‘iroh derp http’ connection upgrades

+

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.
§

fn new(registry: &mut Registry) -> Self

Initializes this metric group.
§

fn with_metric<T, F>(f: F)
where F: FnOnce(&Self) -> T,

Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
source§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where +Only records if this metric is registered in the global registry.

§

fn try_get() -> Option<&'static Self>

Attempts to get the current metric from the global registry.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/relay/struct.RelayUrl.html b/pr/2616/docs/iroh/net/relay/struct.RelayUrl.html index 06412f46b4..da94f77676 100644 --- a/pr/2616/docs/iroh/net/relay/struct.RelayUrl.html +++ b/pr/2616/docs/iroh/net/relay/struct.RelayUrl.html @@ -1,4 +1,4 @@ -RelayUrl in iroh::net::relay - Rust

Struct iroh::net::relay::RelayUrl

source ·
pub struct RelayUrl(/* private fields */);
Expand description

A URL identifying a relay server.

+RelayUrl in iroh::net::relay - Rust

Struct iroh::net::relay::RelayUrl

pub struct RelayUrl(/* private fields */);
Expand description

A URL identifying a relay server.

This is but a wrapper around Url, with a few custom tweaks:

  • @@ -423,30 +423,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi or if Path::new_opt() returns None. (That is, if the percent-decoded path contains a NUL byte or, for a Windows path, is not UTF-8.)

    -

Trait Implementations§

source§

impl Clone for RelayUrl

source§

fn clone(&self) -> RelayUrl

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RelayUrl

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Deref for RelayUrl

Dereferences to the wrapped Url.

+

Trait Implementations§

§

impl Clone for RelayUrl

§

fn clone(&self) -> RelayUrl

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for RelayUrl

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Deref for RelayUrl

Dereferences to the wrapped Url.

Note that DerefMut is not implemented on purpose, so this type has more flexibility to change the inner later.

-
§

type Target = Url

The resulting type after dereferencing.
source§

fn deref(&self) -> &<RelayUrl as Deref>::Target

Dereferences the value.
source§

impl<'de> Deserialize<'de> for RelayUrl

§

type Target = Url

The resulting type after dereferencing.
§

fn deref(&self) -> &<RelayUrl as Deref>::Target

Dereferences the value.
§

impl<'de> Deserialize<'de> for RelayUrl

§

fn deserialize<__D>( __deserializer: __D ) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for RelayUrl

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl From<RelayUrl> for Url

source§

fn from(value: RelayUrl) -> Url

Converts to this type from the input type.
source§

impl From<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

§

impl Display for RelayUrl

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<RelayUrl> for Url

§

fn from(value: RelayUrl) -> Url

Converts to this type from the input type.
source§

impl From<RelayUrlInfo> for RelayUrl

source§

fn from(value: RelayUrlInfo) -> RelayUrl

Converts to this type from the input type.
§

impl From<Url> for RelayUrl

§

fn from(url: Url) -> RelayUrl

Converts to this type from the input type.
§

impl FromStr for RelayUrl

Support for parsing strings directly.

If you need more control over the error first create a Url and use RelayUrl::from instead.

-
§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<RelayUrl, <RelayUrl as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl Hash for RelayUrl

source§

fn hash<__H>(&self, state: &mut __H)
where +
§

type Err = Error

The associated error which can be returned from parsing.
§

fn from_str(s: &str) -> Result<RelayUrl, <RelayUrl as FromStr>::Err>

Parses a string s to return a value of this type. Read more

§

impl Hash for RelayUrl

§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for RelayUrl

source§

fn cmp(&self, other: &RelayUrl) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for RelayUrl

§

fn cmp(&self, other: &RelayUrl) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for RelayUrl

source§

fn eq(&self, other: &RelayUrl) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more

§

impl PartialEq for RelayUrl

§

fn eq(&self, other: &RelayUrl) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for RelayUrl

source§

fn partial_cmp(&self, other: &RelayUrl) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for RelayUrl

§

fn partial_cmp(&self, other: &RelayUrl) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for RelayUrl

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for RelayUrl

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for RelayUrl

source§

impl StructuralPartialEq for RelayUrl

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more

§

impl Eq for RelayUrl

§

impl StructuralPartialEq for RelayUrl

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/struct.AddrInfo.html b/pr/2616/docs/iroh/net/struct.AddrInfo.html index bd6814f318..b9e3b294fa 100644 --- a/pr/2616/docs/iroh/net/struct.AddrInfo.html +++ b/pr/2616/docs/iroh/net/struct.AddrInfo.html @@ -1,4 +1,4 @@ -AddrInfo in iroh::net - Rust

Struct iroh::net::AddrInfo

source ·
pub struct AddrInfo {
+AddrInfo in iroh::net - Rust

Struct iroh::net::AddrInfo

pub struct AddrInfo {
     pub relay_url: Option<RelayUrl>,
     pub direct_addresses: BTreeSet<SocketAddr>,
 }
Expand description

Network paths to contact an iroh-net node.

@@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to other node, see NodeAddr for details.

Fields§

§relay_url: Option<RelayUrl>

The node’s home relay url.

§direct_addresses: BTreeSet<SocketAddr>

Socket addresses where the peer might be reached directly.

-

Implementations§

source§

impl AddrInfo

source

pub fn is_empty(&self) -> bool

Returns whether this addressing information is empty.

-
source

pub fn apply_options(&mut self, opts: AddrInfoOptions)

Applies the options to self.

+

Implementations§

§

impl AddrInfo

pub fn is_empty(&self) -> bool

Returns whether this addressing information is empty.

+

pub fn apply_options(&mut self, opts: AddrInfoOptions)

Applies the options to self.

This is used to more tightly control the information stored in ab AddrInfo received from another API. E.g. to ensure a discovery service is used the AddrInfoOptions::Id] option could be used to remove all other addressing details.

-

Trait Implementations§

source§

impl Clone for AddrInfo

source§

fn clone(&self) -> AddrInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AddrInfo

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl Default for AddrInfo

source§

fn default() -> AddrInfo

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for AddrInfo

Trait Implementations§

§

impl Clone for AddrInfo

§

fn clone(&self) -> AddrInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for AddrInfo

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl Default for AddrInfo

§

fn default() -> AddrInfo

Returns the “default value” for a type. Read more
§

impl<'de> Deserialize<'de> for AddrInfo

§

fn deserialize<__D>( __deserializer: __D ) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<NodeInfo> for AddrInfo

source§

fn from(value: NodeInfo) -> AddrInfo

Converts to this type from the input type.
source§

impl Ord for AddrInfo

source§

fn cmp(&self, other: &AddrInfo) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<NodeInfo> for AddrInfo

source§

fn from(value: NodeInfo) -> AddrInfo

Converts to this type from the input type.
§

impl Ord for AddrInfo

§

fn cmp(&self, other: &AddrInfo) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for AddrInfo

source§

fn eq(&self, other: &AddrInfo) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more

§

impl PartialEq for AddrInfo

§

fn eq(&self, other: &AddrInfo) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for AddrInfo

source§

fn partial_cmp(&self, other: &AddrInfo) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for AddrInfo

§

fn partial_cmp(&self, other: &AddrInfo) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for AddrInfo

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for AddrInfo

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for AddrInfo

source§

impl StructuralPartialEq for AddrInfo

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for AddrInfo

§

impl StructuralPartialEq for AddrInfo

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/struct.NodeAddr.html b/pr/2616/docs/iroh/net/struct.NodeAddr.html index 2f7e2a6ed3..9f780f4529 100644 --- a/pr/2616/docs/iroh/net/struct.NodeAddr.html +++ b/pr/2616/docs/iroh/net/struct.NodeAddr.html @@ -1,4 +1,4 @@ -NodeAddr in iroh::net - Rust

Struct iroh::net::NodeAddr

source ·
pub struct NodeAddr {
+NodeAddr in iroh::net - Rust

Struct iroh::net::NodeAddr

pub struct NodeAddr {
     pub node_id: PublicKey,
     pub info: AddrInfo,
 }
Expand description

Network-level addressing information for an iroh-net node.

@@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type whenever a connection to other nodes needs to be established.

Fields§

§node_id: PublicKey

The node’s identifier.

§info: AddrInfo

Addressing information to connect to Self::node_id.

-

Implementations§

source§

impl NodeAddr

source

pub fn new(node_id: PublicKey) -> NodeAddr

Creates a new NodeAddr with empty AddrInfo.

-
source

pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr

Adds a relay url to the node’s AddrInfo.

-
source

pub fn with_direct_addresses( +

Implementations§

§

impl NodeAddr

pub fn new(node_id: PublicKey) -> NodeAddr

Creates a new NodeAddr with empty AddrInfo.

+

pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr

Adds a relay url to the node’s AddrInfo.

+

pub fn with_direct_addresses( self, addresses: impl IntoIterator<Item = SocketAddr> ) -> NodeAddr

Adds the given direct addresses to the peer’s AddrInfo.

-
source

pub fn from_parts( +

pub fn from_parts( node_id: PublicKey, relay_url: Option<RelayUrl>, direct_addresses: Vec<SocketAddr> ) -> NodeAddr

Creates a new NodeAddr from its parts.

-
source

pub fn apply_options(&mut self, opts: AddrInfoOptions)

Applies the options to self.

+

pub fn apply_options(&mut self, opts: AddrInfoOptions)

Applies the options to self.

This is used to more tightly control the information stored in a NodeAddr received from another API. E.g. to ensure a discovery service is used the AddrInfoOptions::Id] option could be used to remove all other addressing details.

-
source

pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>

Returns the direct addresses of this peer.

-
source

pub fn relay_url(&self) -> Option<&RelayUrl>

Returns the relay url of this peer.

-

Trait Implementations§

source§

impl Clone for NodeAddr

source§

fn clone(&self) -> NodeAddr

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NodeAddr

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for NodeAddr

pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>

Returns the direct addresses of this peer.

+

pub fn relay_url(&self) -> Option<&RelayUrl>

Returns the relay url of this peer.

+

Trait Implementations§

§

impl Clone for NodeAddr

§

fn clone(&self) -> NodeAddr

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for NodeAddr

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NodeAddr

§

fn deserialize<__D>( __deserializer: __D ) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>
where - __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

source§

fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(info: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<PublicKey> for NodeAddr

source§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
source§

impl Ord for NodeAddr

source§

fn cmp(&self, other: &NodeAddr) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where + __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

§

fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(info: NodeInfo) -> NodeAddr

Converts to this type from the input type.
source§

impl From<NodeInfo> for NodeAddr

source§

fn from(value: NodeInfo) -> NodeAddr

Converts to this type from the input type.
§

impl From<PublicKey> for NodeAddr

§

fn from(node_id: PublicKey) -> NodeAddr

Converts to this type from the input type.
§

impl Ord for NodeAddr

§

fn cmp(&self, other: &NodeAddr) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where - Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for NodeAddr

source§

fn eq(&self, other: &NodeAddr) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more

§

impl PartialEq for NodeAddr

§

fn eq(&self, other: &NodeAddr) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for NodeAddr

source§

fn partial_cmp(&self, other: &NodeAddr) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd for NodeAddr

§

fn partial_cmp(&self, other: &NodeAddr) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Serialize for NodeAddr

source§

fn serialize<__S>( +operator. Read more

§

impl Serialize for NodeAddr

§

fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where - __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for NodeAddr

source§

impl StructuralPartialEq for NodeAddr

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Eq for NodeAddr

§

impl StructuralPartialEq for NodeAddr

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/ticket/struct.NodeTicket.html b/pr/2616/docs/iroh/net/ticket/struct.NodeTicket.html index 51fa6e7c14..2d4ca2ce0c 100644 --- a/pr/2616/docs/iroh/net/ticket/struct.NodeTicket.html +++ b/pr/2616/docs/iroh/net/ticket/struct.NodeTicket.html @@ -1,17 +1,17 @@ -NodeTicket in iroh::net::ticket - Rust

Struct iroh::net::ticket::NodeTicket

source ·
pub struct NodeTicket { /* private fields */ }
Expand description

A token containing everything to get a file from the provider.

+NodeTicket in iroh::net::ticket - Rust

Struct iroh::net::ticket::NodeTicket

pub struct NodeTicket { /* private fields */ }
Expand description

A token containing everything to get a file from the provider.

It is a single item which can be easily serialized and deserialized.

-

Implementations§

source§

impl NodeTicket

source

pub fn new(node: NodeAddr) -> Result<NodeTicket, Error>

Creates a new ticket.

-
source

pub fn node_addr(&self) -> &NodeAddr

The NodeAddr of the provider for this ticket.

-

Trait Implementations§

source§

impl Clone for NodeTicket

source§

fn clone(&self) -> NodeTicket

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for NodeTicket

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for NodeTicket

Implementations§

§

impl NodeTicket

pub fn new(node: NodeAddr) -> Result<NodeTicket, Error>

Creates a new ticket.

+

pub fn node_addr(&self) -> &NodeAddr

The NodeAddr of the provider for this ticket.

+

Trait Implementations§

§

impl Clone for NodeTicket

§

fn clone(&self) -> NodeTicket

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for NodeTicket

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<'de> Deserialize<'de> for NodeTicket

§

fn deserialize<D>( deserializer: D ) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>
where - D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for NodeTicket

source§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl FromStr for NodeTicket

§

type Err = Error

The associated error which can be returned from parsing.
source§

fn from_str(s: &str) -> Result<NodeTicket, <NodeTicket as FromStr>::Err>

Parses a string s to return a value of this type. Read more
source§

impl PartialEq for NodeTicket

source§

fn eq(&self, other: &NodeTicket) -> bool

This method tests for self and other values to be equal, and is used + D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
§

impl Display for NodeTicket

§

fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl FromStr for NodeTicket

§

type Err = Error

The associated error which can be returned from parsing.
§

fn from_str(s: &str) -> Result<NodeTicket, <NodeTicket as FromStr>::Err>

Parses a string s to return a value of this type. Read more
§

impl PartialEq for NodeTicket

§

fn eq(&self, other: &NodeTicket) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Serialize for NodeTicket

source§

fn serialize<S>( +sufficient, and should not be overridden without very good reason.

§

impl Serialize for NodeTicket

§

fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where - S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Ticket for NodeTicket

source§

const KIND: &'static str = "node"

String prefix describing the kind of iroh ticket. Read more
source§

fn to_bytes(&self) -> Vec<u8> ⓘ

Serialize to bytes used in the base32 string representation.
source§

fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>

Deserialize from the base32 string representation bytes.
source§

fn serialize(&self) -> String

Serialize to string.
source§

fn deserialize(str: &str) -> Result<Self, Error>

Deserialize from a string.
source§

impl Eq for NodeTicket

source§

impl StructuralPartialEq for NodeTicket

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where + S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Ticket for NodeTicket

§

const KIND: &'static str = "node"

String prefix describing the kind of iroh ticket. Read more
§

fn to_bytes(&self) -> Vec<u8> ⓘ

Serialize to bytes used in the base32 string representation.
§

fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>

Deserialize from the base32 string representation bytes.
§

fn serialize(&self) -> String

Serialize to string.
§

fn deserialize(str: &str) -> Result<Self, Error>

Deserialize from a string.
§

impl Eq for NodeTicket

§

impl StructuralPartialEq for NodeTicket

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/2616/docs/iroh/net/type.NodeId.html b/pr/2616/docs/iroh/net/type.NodeId.html index f1adb16902..d39eb55e18 100644 --- a/pr/2616/docs/iroh/net/type.NodeId.html +++ b/pr/2616/docs/iroh/net/type.NodeId.html @@ -1,4 +1,4 @@ -NodeId in iroh::net - Rust

Type Alias iroh::net::NodeId

source ·
pub type NodeId = PublicKey;
Expand description

The identifier for a node in the (iroh) network.

+NodeId in iroh::net - Rust

Type Alias iroh::net::NodeId

pub type NodeId = PublicKey;
Expand description

The identifier for a node in the (iroh) network.

Each node in iroh has a unique identifier created as a cryptographic key. This can be used to globally identify a node. Since it is also a cryptographic key it is also the mechanism by which all traffic is always encrypted for a specific node only.

diff --git a/pr/2616/docs/iroh_docs/actor/struct.SyncHandle.html b/pr/2616/docs/iroh_docs/actor/struct.SyncHandle.html index ec192cfcc3..93cb1ed202 100644 --- a/pr/2616/docs/iroh_docs/actor/struct.SyncHandle.html +++ b/pr/2616/docs/iroh_docs/actor/struct.SyncHandle.html @@ -26,7 +26,7 @@ waiting for the actor to finish happens in an async context, and therefore that namespace: NamespaceId, author: AuthorId, key: Bytes, - hash: Hash, + hash: Hash, len: u64 ) -> Result<()>

source

pub async fn delete_prefix( &self, diff --git a/pr/2616/docs/iroh_docs/engine/enum.LiveEvent.html b/pr/2616/docs/iroh_docs/engine/enum.LiveEvent.html index 82642dd2bb..c279185048 100644 --- a/pr/2616/docs/iroh_docs/engine/enum.LiveEvent.html +++ b/pr/2616/docs/iroh_docs/engine/enum.LiveEvent.html @@ -3,34 +3,34 @@ entry: Entry, }, InsertRemote { - from: PublicKey, + from: PublicKey, entry: Entry, content_status: ContentStatus, }, ContentReady { - hash: Hash, + hash: Hash, }, PendingContentReady, - NeighborUp(PublicKey), - NeighborDown(PublicKey), + NeighborUp(PublicKey), + NeighborDown(PublicKey), SyncFinished(SyncEvent), }
Expand description

Events informing about actions of the live sync progress.

Variants§

§

InsertLocal

A local insertion.

Fields

§entry: Entry

The inserted entry.

§

InsertRemote

Received a remote insert.

-

Fields

§from: PublicKey

The peer that sent us the entry.

+

Fields

§from: PublicKey

The peer that sent us the entry.

§entry: Entry

The inserted entry.

§content_status: ContentStatus

If the content is available at the local node

§

ContentReady

The content of an entry was downloaded and is now available at the local node

-

Fields

§hash: Hash

The content hash of the newly available entry content

+

Fields

§hash: Hash

The content hash of the newly available entry content

§

PendingContentReady

All pending content is now ready.

This event signals that all queued content downloads from the last sync run have either completed or failed.

It will only be emitted after a Self::SyncFinished event, never before.

Receiving this event does not guarantee that all content in the document is available. If blobs failed to download, this event will still be emitted after all operations completed.

-
§

NeighborUp(PublicKey)

We have a new neighbor in the swarm.

-
§

NeighborDown(PublicKey)

We lost a neighbor in the swarm.

+
§

NeighborUp(PublicKey)

We have a new neighbor in the swarm.

+
§

NeighborDown(PublicKey)

We lost a neighbor in the swarm.

§

SyncFinished(SyncEvent)

A set-reconciliation sync finished.

Trait Implementations§

source§

impl Clone for LiveEvent

source§

fn clone(&self) -> LiveEvent

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LiveEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for LiveEvent

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Display for LiveEvent

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl PartialEq for LiveEvent

source§

fn eq(&self, other: &LiveEvent) -> bool

This method tests for self and other values to be equal, and is used diff --git a/pr/2616/docs/iroh_docs/engine/fn.entry_to_content_status.html b/pr/2616/docs/iroh_docs/engine/fn.entry_to_content_status.html index 3b39df6428..459a6719d2 100644 --- a/pr/2616/docs/iroh_docs/engine/fn.entry_to_content_status.html +++ b/pr/2616/docs/iroh_docs/engine/fn.entry_to_content_status.html @@ -1,2 +1,2 @@ -entry_to_content_status in iroh_docs::engine - Rust

Function iroh_docs::engine::entry_to_content_status

source ·
pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description

Converts an EntryStatus into a [‘ContentStatus’].

+entry_to_content_status in iroh_docs::engine - Rust

Function iroh_docs::engine::entry_to_content_status

source ·
pub fn entry_to_content_status(entry: Result<EntryStatus>) -> ContentStatus
Expand description

Converts an [EntryStatus] into a [‘ContentStatus’].

\ No newline at end of file diff --git a/pr/2616/docs/iroh_docs/engine/index.html b/pr/2616/docs/iroh_docs/engine/index.html index 622ab4b871..5f78e23386 100644 --- a/pr/2616/docs/iroh_docs/engine/index.html +++ b/pr/2616/docs/iroh_docs/engine/index.html @@ -1,4 +1,4 @@ iroh_docs::engine - Rust

Module iroh_docs::engine

source ·
Expand description

Handlers and actors to for live syncing replicas.

crate::Replica is also called documents here.

Structs§

  • Persistent default author for a docs engine.
  • The sync engine coordinates actors that manage open documents, set-reconciliation syncs with -peers and a gossip swarm for each syncing document.
  • Event emitted when a sync operation completes

Enums§

Functions§

\ No newline at end of file +peers and a gossip swarm for each syncing document.
  • Event emitted when a sync operation completes
  • Enums§

    Functions§

    \ No newline at end of file diff --git a/pr/2616/docs/iroh_docs/engine/struct.Engine.html b/pr/2616/docs/iroh_docs/engine/struct.Engine.html index e6ccd3ec9d..011c4a7fb8 100644 --- a/pr/2616/docs/iroh_docs/engine/struct.Engine.html +++ b/pr/2616/docs/iroh_docs/engine/struct.Engine.html @@ -8,12 +8,12 @@ peers and a gossip swarm for each syncing document.

    Fields§

    §endpoint: Endpoint

    Endpoint used by the engine.

    §sync: SyncHandle

    Handle to the actor thread.

    §default_author: Arc<DefaultAuthor>

    The persistent default author for this engine.

    -

    Implementations§

    source§

    impl Engine

    source

    pub async fn spawn<B: Store>( +

    Implementations§

    source§

    impl Engine

    source

    pub async fn spawn<B: Store>( endpoint: Endpoint, - gossip: Gossip, + gossip: Gossip, replica_store: Store, bao_store: B, - downloader: Downloader, + downloader: Downloader, default_author_storage: DefaultAuthorStorage ) -> Result<Self>

    Start the sync engine.

    This will spawn two tokio tasks for the live sync coordination and gossip actors, and a @@ -21,7 +21,7 @@ thread for the

    source

    pub async fn start_sync( &self, namespace: NamespaceId, - peers: Vec<NodeAddr> + peers: Vec<NodeAddr> ) -> Result<()>

    Start to sync a document.

    If peers is non-empty, it will both do an initial set-reconciliation sync with each peer, and join an iroh-gossip swarm with these peers to receive and broadcast document updates.

    diff --git a/pr/2616/docs/iroh_docs/engine/struct.SyncEvent.html b/pr/2616/docs/iroh_docs/engine/struct.SyncEvent.html index 21bdda429b..bbd0c15b6f 100644 --- a/pr/2616/docs/iroh_docs/engine/struct.SyncEvent.html +++ b/pr/2616/docs/iroh_docs/engine/struct.SyncEvent.html @@ -1,11 +1,11 @@ SyncEvent in iroh_docs::engine - Rust

    Struct iroh_docs::engine::SyncEvent

    source ·
    pub struct SyncEvent {
    -    pub peer: PublicKey,
    +    pub peer: PublicKey,
         pub origin: Origin,
         pub finished: SystemTime,
         pub started: SystemTime,
         pub result: Result<SyncDetails, String>,
     }
    Expand description

    Event emitted when a sync operation completes

    -

    Fields§

    §peer: PublicKey

    Peer we synced with

    +

    Fields§

    §peer: PublicKey

    Peer we synced with

    §origin: Origin

    Origin of the sync exchange

    §finished: SystemTime

    Timestamp when the sync started

    §started: SystemTime

    Timestamp when the sync finished

    diff --git a/pr/2616/docs/iroh_docs/index.html b/pr/2616/docs/iroh_docs/index.html index 41c792c5e5..a37d30e2a6 100644 --- a/pr/2616/docs/iroh_docs/index.html +++ b/pr/2616/docs/iroh_docs/index.html @@ -1,7 +1,7 @@ iroh_docs - Rust

    Crate iroh_docs

    source ·
    Expand description

    Multi-dimensional key-value documents with an efficient synchronization protocol

    The crate operates on Replicas. A replica contains an unlimited number of Entries. Each entry is identified by a key, its author, and the replica’s -namespace. Its value is the 32-byte BLAKE3 hash +namespace. Its value is the 32-byte BLAKE3 hash of the entry’s content data, the size of this content data, and a timestamp. The content data itself is not stored or transferred through a replica.

    All entries in a replica are signed with two keypairs:

    diff --git a/pr/2616/docs/iroh_docs/metrics/struct.Metrics.html b/pr/2616/docs/iroh_docs/metrics/struct.Metrics.html index b3db0e4a8f..0adab34807 100644 --- a/pr/2616/docs/iroh_docs/metrics/struct.Metrics.html +++ b/pr/2616/docs/iroh_docs/metrics/struct.Metrics.html @@ -1,27 +1,27 @@ Metrics in iroh_docs::metrics - Rust

    Struct iroh_docs::metrics::Metrics

    source ·
    pub struct Metrics {
    Show 19 fields - pub new_entries_local: Counter, - pub new_entries_remote: Counter, - pub new_entries_local_size: Counter, - pub new_entries_remote_size: Counter, - pub sync_via_connect_success: Counter, - pub sync_via_connect_failure: Counter, - pub sync_via_accept_success: Counter, - pub sync_via_accept_failure: Counter, - pub actor_tick_main: Counter, - pub doc_gossip_tick_main: Counter, - pub doc_gossip_tick_event: Counter, - pub doc_gossip_tick_actor: Counter, - pub doc_gossip_tick_pending_join: Counter, - pub doc_live_tick_main: Counter, - pub doc_live_tick_actor: Counter, - pub doc_live_tick_replica_event: Counter, - pub doc_live_tick_running_sync_connect: Counter, - pub doc_live_tick_running_sync_accept: Counter, - pub doc_live_tick_pending_downloads: Counter, + pub new_entries_local: Counter, + pub new_entries_remote: Counter, + pub new_entries_local_size: Counter, + pub new_entries_remote_size: Counter, + pub sync_via_connect_success: Counter, + pub sync_via_connect_failure: Counter, + pub sync_via_accept_success: Counter, + pub sync_via_accept_failure: Counter, + pub actor_tick_main: Counter, + pub doc_gossip_tick_main: Counter, + pub doc_gossip_tick_event: Counter, + pub doc_gossip_tick_actor: Counter, + pub doc_gossip_tick_pending_join: Counter, + pub doc_live_tick_main: Counter, + pub doc_live_tick_actor: Counter, + pub doc_live_tick_replica_event: Counter, + pub doc_live_tick_running_sync_connect: Counter, + pub doc_live_tick_running_sync_accept: Counter, + pub doc_live_tick_pending_downloads: Counter,
    }
    Expand description

    Metrics for iroh-docs

    -

    Fields§

    §new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: Counter

    Trait Implementations§

    source§

    impl Clone for Metrics

    source§

    fn clone(&self) -> Metrics

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Metrics

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Metrics

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Iterable for Metrics

    source§

    fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)> ⓘ

    Returns an iterator over the struct’s fields as tuples. Read more
    source§

    impl Metric for Metrics

    source§

    fn name() -> &'static str

    The name of this metric group.
    source§

    fn new(registry: &mut Registry) -> Self

    Initializes this metric group.
    source§

    fn with_metric<T, F>(f: F)
    where +

    Fields§

    §new_entries_local: Counter§new_entries_remote: Counter§new_entries_local_size: Counter§new_entries_remote_size: Counter§sync_via_connect_success: Counter§sync_via_connect_failure: Counter§sync_via_accept_success: Counter§sync_via_accept_failure: Counter§actor_tick_main: Counter§doc_gossip_tick_main: Counter§doc_gossip_tick_event: Counter§doc_gossip_tick_actor: Counter§doc_gossip_tick_pending_join: Counter§doc_live_tick_main: Counter§doc_live_tick_actor: Counter§doc_live_tick_replica_event: Counter§doc_live_tick_running_sync_connect: Counter§doc_live_tick_running_sync_accept: Counter§doc_live_tick_pending_downloads: Counter

    Trait Implementations§

    source§

    impl Clone for Metrics

    source§

    fn clone(&self) -> Metrics

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Metrics

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Metrics

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Iterable for Metrics

    source§

    fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)> ⓘ

    Returns an iterator over the struct’s fields as tuples. Read more
    source§

    impl Metric for Metrics

    source§

    fn name() -> &'static str

    The name of this metric group.
    §

    fn new(registry: &mut Registry) -> Self

    Initializes this metric group.
    §

    fn with_metric<T, F>(f: F)
    where F: FnOnce(&Self) -> T,

    Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
    source§

    fn try_get() -> Option<&'static Self>

    Attempts to get the current metric from the global registry.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +Only records if this metric is registered in the global registry.

    §

    fn try_get() -> Option<&'static Self>

    Attempts to get the current metric from the global registry.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_docs/net/enum.AcceptError.html b/pr/2616/docs/iroh_docs/net/enum.AcceptError.html index ec62eb59ed..9338d3ec52 100644 --- a/pr/2616/docs/iroh_docs/net/enum.AcceptError.html +++ b/pr/2616/docs/iroh_docs/net/enum.AcceptError.html @@ -3,31 +3,31 @@ error: Error, }, Open { - peer: PublicKey, + peer: PublicKey, error: Error, }, Abort { - peer: PublicKey, + peer: PublicKey, namespace: NamespaceId, reason: AbortReason, }, Sync { - peer: PublicKey, + peer: PublicKey, namespace: Option<NamespaceId>, error: Error, }, Close { - peer: PublicKey, + peer: PublicKey, namespace: Option<NamespaceId>, error: Error, }, }
    Expand description

    Errors that may occur on handling incoming sync connections.

    Variants§

    §

    Connect

    Failed to establish connection

    Fields

    §error: Error
    §

    Open

    Failed to open replica

    -

    Fields

    §error: Error
    §

    Abort

    We aborted the sync request.

    -

    Fields

    §namespace: NamespaceId
    §

    Sync

    Failed to run sync

    -

    Fields

    §namespace: Option<NamespaceId>
    §error: Error
    §

    Close

    Failed to close

    -

    Fields

    §namespace: Option<NamespaceId>
    §error: Error

    Implementations§

    source§

    impl AcceptError

    source

    pub fn peer(&self) -> Option<PublicKey>

    Get the peer’s node ID (if available)

    +

    Fields

    §peer: PublicKey
    §error: Error
    §

    Abort

    We aborted the sync request.

    +

    Fields

    §peer: PublicKey
    §namespace: NamespaceId
    §

    Sync

    Failed to run sync

    +

    Fields

    §peer: PublicKey
    §namespace: Option<NamespaceId>
    §error: Error
    §

    Close

    Failed to close

    +

    Fields

    §peer: PublicKey
    §namespace: Option<NamespaceId>
    §error: Error

    Implementations§

    source§

    impl AcceptError

    source

    pub fn peer(&self) -> Option<PublicKey>

    Get the peer’s node ID (if available)

    source

    pub fn namespace(&self) -> Option<NamespaceId>

    Get the namespace (if available)

    Trait Implementations§

    source§

    impl Debug for AcceptError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for AcceptError

    source§

    fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for AcceptError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_docs/net/fn.connect_and_sync.html b/pr/2616/docs/iroh_docs/net/fn.connect_and_sync.html index 055cbf1e3c..e4ee4a1d00 100644 --- a/pr/2616/docs/iroh_docs/net/fn.connect_and_sync.html +++ b/pr/2616/docs/iroh_docs/net/fn.connect_and_sync.html @@ -2,6 +2,6 @@ endpoint: &Endpoint, sync: &SyncHandle, namespace: NamespaceId, - peer: NodeAddr + peer: NodeAddr ) -> Result<SyncFinished, ConnectError>
    Expand description

    Connect to a peer and sync a replica

    \ No newline at end of file diff --git a/pr/2616/docs/iroh_docs/net/fn.handle_connection.html b/pr/2616/docs/iroh_docs/net/fn.handle_connection.html index 3dc400f949..c7e5390970 100644 --- a/pr/2616/docs/iroh_docs/net/fn.handle_connection.html +++ b/pr/2616/docs/iroh_docs/net/fn.handle_connection.html @@ -3,6 +3,6 @@ connecting: Connecting, accept_cb: F ) -> Result<SyncFinished, AcceptError>
    where - F: Fn(NamespaceId, PublicKey) -> Fut, + F: Fn(NamespaceId, PublicKey) -> Fut, Fut: Future<Output = AcceptOutcome>,
    Expand description

    Handle an iroh-docs connection and sync all shared documents in the replica store.

    \ No newline at end of file diff --git a/pr/2616/docs/iroh_docs/net/struct.SyncFinished.html b/pr/2616/docs/iroh_docs/net/struct.SyncFinished.html index 761d1cdb9f..94c5865cd7 100644 --- a/pr/2616/docs/iroh_docs/net/struct.SyncFinished.html +++ b/pr/2616/docs/iroh_docs/net/struct.SyncFinished.html @@ -1,11 +1,11 @@ SyncFinished in iroh_docs::net - Rust

    Struct iroh_docs::net::SyncFinished

    source ·
    pub struct SyncFinished {
         pub namespace: NamespaceId,
    -    pub peer: PublicKey,
    +    pub peer: PublicKey,
         pub outcome: SyncOutcome,
         pub timings: Timings,
     }
    Expand description

    Details of a finished sync operation.

    Fields§

    §namespace: NamespaceId

    The namespace that was synced.

    -
    §peer: PublicKey

    The peer we syned with.

    +
    §peer: PublicKey

    The peer we syned with.

    §outcome: SyncOutcome

    The outcome of the sync operation

    §timings: Timings

    The time this operation took

    Trait Implementations§

    source§

    impl Clone for SyncFinished

    source§

    fn clone(&self) -> SyncFinished

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SyncFinished

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where diff --git a/pr/2616/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html b/pr/2616/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html index c22c043021..4e18a2754f 100644 --- a/pr/2616/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html +++ b/pr/2616/docs/iroh_docs/store/fs/struct.ContentHashesIterator.html @@ -6,7 +6,7 @@ It needs a copy of a redb::ReadOnlyTable to be self-contained.

    Implementations§

    source§

    impl ContentHashesIterator

    source

    pub fn all( table: &ReadOnlyTable<(&'static [u8; 32], &'static [u8; 32], &'static [u8]), (u64, &'static [u8; 64], &'static [u8; 64], u64, &'static [u8; 32])> ) -> Result<Self>

    Create a new iterator over all content hashes.

    -

    Trait Implementations§

    source§

    impl Debug for ContentHashesIterator

    source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Iterator for ContentHashesIterator

    §

    type Item = Result<Hash, Error>

    The type of the elements being iterated over.
    source§

    fn next(&mut self) -> Option<Self::Item>

    Advances the iterator and returns the next value. Read more
    source§

    fn next_chunk<const N: usize>( +

    Trait Implementations§

    source§

    impl Debug for ContentHashesIterator

    source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Iterator for ContentHashesIterator

    §

    type Item = Result<Hash, Error>

    The type of the elements being iterated over.
    source§

    fn next(&mut self) -> Option<Self::Item>

    Advances the iterator and returns the next value. Read more
    source§

    fn next_chunk<const N: usize>( &mut self ) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>
    where Self: Sized,

    🔬This is a nightly-only experimental API. (iter_next_chunk)
    Advances the iterator and returns an array containing the next N values. Read more
    1.0.0 · source§

    fn size_hint(&self) -> (usize, Option<usize>)

    Returns the bounds on the remaining length of the iterator. Read more
    1.0.0 · source§

    fn count(self) -> usize
    where diff --git a/pr/2616/docs/iroh_docs/struct.AuthorId.html b/pr/2616/docs/iroh_docs/struct.AuthorId.html index 052888d6cd..0f7dcfd4a5 100644 --- a/pr/2616/docs/iroh_docs/struct.AuthorId.html +++ b/pr/2616/docs/iroh_docs/struct.AuthorId.html @@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)

    Into<Dispatch>,
    Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    source§

    impl<T> PeerIdentity for T
    where + T: for<'de> Deserialize<'de>,

    §

    impl<T> PeerIdentity for T

    source§

    impl<T> RuleType for T
    where T: Copy + Debug + Eq + Hash + Ord,

    \ No newline at end of file diff --git a/pr/2616/docs/iroh_docs/struct.AuthorPublicKey.html b/pr/2616/docs/iroh_docs/struct.AuthorPublicKey.html index 26e1e3421e..efb39d85f8 100644 --- a/pr/2616/docs/iroh_docs/struct.AuthorPublicKey.html +++ b/pr/2616/docs/iroh_docs/struct.AuthorPublicKey.html @@ -148,6 +148,6 @@ builds.
    Into<Dispatch>,
    Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    source§

    impl<T> PeerIdentity for T
    where + T: for<'de> Deserialize<'de>,

    §

    impl<T> PeerIdentity for T

    source§

    impl<T> RuleType for T
    where T: Copy + Debug + Eq + Hash + Ord,

    \ No newline at end of file diff --git a/pr/2616/docs/iroh_docs/struct.DocTicket.html b/pr/2616/docs/iroh_docs/struct.DocTicket.html index dd56aeb12f..1f422a650c 100644 --- a/pr/2616/docs/iroh_docs/struct.DocTicket.html +++ b/pr/2616/docs/iroh_docs/struct.DocTicket.html @@ -1,13 +1,13 @@ DocTicket in iroh_docs - Rust

    Struct iroh_docs::DocTicket

    source ·
    pub struct DocTicket {
         pub capability: Capability,
    -    pub nodes: Vec<NodeAddr>,
    +    pub nodes: Vec<NodeAddr>,
     }
    Expand description

    Contains both a key (either secret or public) to a document, and a list of peers to join.

    Fields§

    §capability: Capability

    either a public or private key

    -
    §nodes: Vec<NodeAddr>

    A list of nodes to contact.

    -

    Implementations§

    source§

    impl DocTicket

    source

    pub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self

    Create a new doc ticket

    +
    §nodes: Vec<NodeAddr>

    A list of nodes to contact.

    +

    Implementations§

    source§

    impl DocTicket

    source

    pub fn new(capability: Capability, peers: Vec<NodeAddr>) -> Self

    Create a new doc ticket

    Trait Implementations§

    source§

    impl Clone for DocTicket

    source§

    fn clone(&self) -> DocTicket

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for DocTicket

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for DocTicket

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Display for DocTicket

    source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl FromStr for DocTicket

    §

    type Err = Error

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Serialize for DocTicket

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Ticket for DocTicket

    source§

    const KIND: &'static str = "doc"

    String prefix describing the kind of iroh ticket. Read more
    source§

    fn to_bytes(&self) -> Vec<u8> ⓘ

    Serialize to bytes used in the base32 string representation.
    source§

    fn from_bytes(bytes: &[u8]) -> Result<Self, Error>

    Deserialize from the base32 string representation bytes.
    source§

    fn serialize(&self) -> String

    Serialize to string.
    source§

    fn deserialize(str: &str) -> Result<Self, Error>

    Deserialize from a string.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Display for DocTicket

    source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl FromStr for DocTicket

    §

    type Err = Error

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Serialize for DocTicket

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Ticket for DocTicket

    source§

    const KIND: &'static str = "doc"

    String prefix describing the kind of iroh ticket. Read more
    source§

    fn to_bytes(&self) -> Vec<u8> ⓘ

    Serialize to bytes used in the base32 string representation.
    source§

    fn from_bytes(bytes: &[u8]) -> Result<Self, Error>

    Deserialize from the base32 string representation bytes.
    §

    fn serialize(&self) -> String

    Serialize to string.
    §

    fn deserialize(str: &str) -> Result<Self, Error>

    Deserialize from a string.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_docs/struct.NamespaceId.html b/pr/2616/docs/iroh_docs/struct.NamespaceId.html index e1154db2af..c1d59f727e 100644 --- a/pr/2616/docs/iroh_docs/struct.NamespaceId.html +++ b/pr/2616/docs/iroh_docs/struct.NamespaceId.html @@ -156,6 +156,6 @@ letters are used (e.g. F9B4CA)

    Into<Dispatch>,
    Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    source§

    impl<T> PeerIdentity for T
    where + T: for<'de> Deserialize<'de>,

    §

    impl<T> PeerIdentity for T

    source§

    impl<T> RuleType for T
    where T: Copy + Debug + Eq + Hash + Ord,

    \ No newline at end of file diff --git a/pr/2616/docs/iroh_docs/struct.NamespacePublicKey.html b/pr/2616/docs/iroh_docs/struct.NamespacePublicKey.html index 403c86593a..de515d92fb 100644 --- a/pr/2616/docs/iroh_docs/struct.NamespacePublicKey.html +++ b/pr/2616/docs/iroh_docs/struct.NamespacePublicKey.html @@ -147,6 +147,6 @@ builds.
    Into<Dispatch>,
    Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
    source§

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
    source§

    impl<T> DeserializeOwned for T
    where - T: for<'de> Deserialize<'de>,

    source§

    impl<T> PeerIdentity for T
    where + T: for<'de> Deserialize<'de>,

    §

    impl<T> PeerIdentity for T

    source§

    impl<T> RuleType for T
    where T: Copy + Debug + Eq + Hash + Ord,

    \ No newline at end of file diff --git a/pr/2616/docs/iroh_docs/sync/struct.Entry.html b/pr/2616/docs/iroh_docs/sync/struct.Entry.html index 7e71db7d97..b60a497e6d 100644 --- a/pr/2616/docs/iroh_docs/sync/struct.Entry.html +++ b/pr/2616/docs/iroh_docs/sync/struct.Entry.html @@ -1,6 +1,6 @@ Entry in iroh_docs::sync - Rust

    Struct iroh_docs::sync::Entry

    source ·
    pub struct Entry { /* private fields */ }
    Expand description

    A single entry in a Replica

    An entry is identified by a key, its Author, and the Replica’s -NamespaceSecret. Its value is the 32-byte BLAKE3 hash +NamespaceSecret. Its value is the 32-byte BLAKE3 hash of the entry’s content data, the size of this content data, and a timestamp.

    Implementations§

    source§

    impl Entry

    source

    pub fn new(id: RecordIdentifier, record: Record) -> Self

    Create a new entry

    source

    pub fn new_empty(id: RecordIdentifier) -> Self

    Create a new empty entry with the current timestamp.

    @@ -15,7 +15,7 @@ of the entry’s content data, the size of this content data, and a timestamp.
    source

    pub fn sign(self, namespace: &NamespaceSecret, author: &Author) -> SignedEntry

    Sign this entry with a NamespaceSecret and Author.

    Methods from Deref<Target = Record>§

    source

    pub fn is_empty(&self) -> bool

    Return true if the entry is empty.

    source

    pub fn content_len(&self) -> u64

    Get the length of the data addressed by this record’s content hash.

    -
    source

    pub fn content_hash(&self) -> Hash

    Get the Hash of the content data of this record.

    +
    source

    pub fn content_hash(&self) -> Hash

    Get the [struct@Hash] of the content data of this record.

    source

    pub fn timestamp(&self) -> u64

    Get the timestamp of this record.

    Trait Implementations§

    source§

    impl Clone for Entry

    source§

    fn clone(&self) -> Entry

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Entry

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deref for Entry

    §

    type Target = Record

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for Entry

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<SignedEntry> for Entry

    source§

    fn from(value: SignedEntry) -> Self

    Converts to this type from the input type.
    source§

    impl Ord for Entry

    source§

    fn cmp(&self, other: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where diff --git a/pr/2616/docs/iroh_docs/sync/struct.Record.html b/pr/2616/docs/iroh_docs/sync/struct.Record.html index 48c026e34c..e2787bab64 100644 --- a/pr/2616/docs/iroh_docs/sync/struct.Record.html +++ b/pr/2616/docs/iroh_docs/sync/struct.Record.html @@ -1,11 +1,11 @@ Record in iroh_docs::sync - Rust

    Struct iroh_docs::sync::Record

    source ·
    pub struct Record { /* private fields */ }
    Expand description

    The data part of an entry in a Replica.

    -

    Implementations§

    source§

    impl Record

    source

    pub fn new(hash: Hash, len: u64, timestamp: u64) -> Self

    Create a new record.

    +

    Implementations§

    source§

    impl Record

    source

    pub fn new(hash: Hash, len: u64, timestamp: u64) -> Self

    Create a new record.

    source

    pub fn empty(timestamp: u64) -> Self

    Create a tombstone record (empty content)

    source

    pub fn empty_current() -> Self

    Create a tombstone record with the timestamp set to now.

    source

    pub fn is_empty(&self) -> bool

    Return true if the entry is empty.

    -
    source

    pub fn new_current(hash: Hash, len: u64) -> Self

    Create a new Record with the timestamp set to now.

    +
    source

    pub fn new_current(hash: Hash, len: u64) -> Self

    Create a new Record with the timestamp set to now.

    source

    pub fn content_len(&self) -> u64

    Get the length of the data addressed by this record’s content hash.

    -
    source

    pub fn content_hash(&self) -> Hash

    Get the Hash of the content data of this record.

    +
    source

    pub fn content_hash(&self) -> Hash

    Get the [struct@Hash] of the content data of this record.

    source

    pub fn timestamp(&self) -> u64

    Get the timestamp of this record.

    Trait Implementations§

    source§

    impl Clone for Record

    source§

    fn clone(&self) -> Record

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Record

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for Record

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Ord for Record

    Ordering for entry values.

    diff --git a/pr/2616/docs/iroh_docs/sync/struct.Replica.html b/pr/2616/docs/iroh_docs/sync/struct.Replica.html index 19372bc877..6ae0ce53be 100644 --- a/pr/2616/docs/iroh_docs/sync/struct.Replica.html +++ b/pr/2616/docs/iroh_docs/sync/struct.Replica.html @@ -5,7 +5,7 @@ &mut self, key: impl AsRef<[u8]>, author: &Author, - hash: Hash, + hash: Hash, len: u64 ) -> Result<usize, InsertError>

    Insert a new record at the given key.

    The entry will by signed by the provided author. @@ -35,7 +35,7 @@ or an error if the entry failed to validate or if a store operation failed.

    key: impl AsRef<[u8]>, author: &Author, data: impl AsRef<[u8]> -) -> Result<Hash, InsertError>

    Hashes the given data and inserts it.

    +) -> Result<Hash, InsertError>

    Hashes the given data and inserts it.

    This does not store the content, just the record of it. Returns the calculated hash.

    source

    pub fn record_id( diff --git a/pr/2616/docs/iroh_docs/sync/struct.SignedEntry.html b/pr/2616/docs/iroh_docs/sync/struct.SignedEntry.html index b4a8ee99d3..610ca846e0 100644 --- a/pr/2616/docs/iroh_docs/sync/struct.SignedEntry.html +++ b/pr/2616/docs/iroh_docs/sync/struct.SignedEntry.html @@ -14,7 +14,7 @@

    source

    pub fn signature(&self) -> &EntrySignature

    Get the signature.

    source

    pub fn validate_empty(&self) -> Result<(), ValidationFailure>

    Validate that the entry has the empty hash if the length is 0, or a non-zero length.

    source

    pub fn entry(&self) -> &Entry

    Get the Entry.

    -
    source

    pub fn content_hash(&self) -> Hash

    Get the content Hash of the entry.

    +
    source

    pub fn content_hash(&self) -> Hash

    Get the content [struct@Hash] of the entry.

    source

    pub fn content_len(&self) -> u64

    Get the content length of the entry.

    source

    pub fn author_bytes(&self) -> AuthorId

    Get the author bytes of this entry.

    source

    pub fn key(&self) -> &[u8] ⓘ

    Get the key of the entry.

    @@ -29,7 +29,7 @@
    source

    pub fn to_vec(&self) -> Vec<u8> ⓘ

    Serialize this entry into a new vector with its canonical byte representation.

    Methods from Deref<Target = Record>§

    source

    pub fn is_empty(&self) -> bool

    Return true if the entry is empty.

    source

    pub fn content_len(&self) -> u64

    Get the length of the data addressed by this record’s content hash.

    -
    source

    pub fn content_hash(&self) -> Hash

    Get the Hash of the content data of this record.

    +
    source

    pub fn content_hash(&self) -> Hash

    Get the [struct@Hash] of the content data of this record.

    source

    pub fn timestamp(&self) -> u64

    Get the timestamp of this record.

    Trait Implementations§

    source§

    impl Clone for SignedEntry

    source§

    fn clone(&self) -> SignedEntry

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SignedEntry

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deref for SignedEntry

    §

    type Target = Entry

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for SignedEntry

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<SignedEntry> for Entry

    source§

    fn from(value: SignedEntry) -> Self

    Converts to this type from the input type.
    source§

    impl Ord for SignedEntry

    source§

    fn cmp(&self, other: &Self) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where diff --git a/pr/2616/docs/iroh_docs/sync/type.ContentStatusCallback.html b/pr/2616/docs/iroh_docs/sync/type.ContentStatusCallback.html index 84ffdbe8ee..46d5a5a49c 100644 --- a/pr/2616/docs/iroh_docs/sync/type.ContentStatusCallback.html +++ b/pr/2616/docs/iroh_docs/sync/type.ContentStatusCallback.html @@ -1,2 +1,2 @@ -ContentStatusCallback in iroh_docs::sync - Rust

    Type Alias iroh_docs::sync::ContentStatusCallback

    source ·
    pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
    Expand description

    Callback that may be set on a replica to determine the availability status for a content hash.

    +ContentStatusCallback in iroh_docs::sync - Rust

    Type Alias iroh_docs::sync::ContentStatusCallback

    source ·
    pub type ContentStatusCallback = Arc<dyn Fn(Hash) -> ContentStatus + Send + Sync + 'static>;
    Expand description

    Callback that may be set on a replica to determine the availability status for a content hash.

    Aliased Type§

    struct ContentStatusCallback { /* private fields */ }
    \ No newline at end of file diff --git a/pr/2616/docs/iroh_net/endpoint/struct.AddrInfo.html b/pr/2616/docs/iroh_net/endpoint/struct.AddrInfo.html index f1b4aacf25..fc83a4bb48 100644 --- a/pr/2616/docs/iroh_net/endpoint/struct.AddrInfo.html +++ b/pr/2616/docs/iroh_net/endpoint/struct.AddrInfo.html @@ -1,4 +1,4 @@ -AddrInfo in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::AddrInfo

    source ·
    pub struct AddrInfo {
    +AddrInfo in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::AddrInfo

    pub struct AddrInfo {
         pub relay_url: Option<RelayUrl>,
         pub direct_addresses: BTreeSet<SocketAddr>,
     }
    Expand description

    Network paths to contact an iroh-net node.

    @@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to other node, see NodeAddr for details.

    Fields§

    §relay_url: Option<RelayUrl>

    The node’s home relay url.

    §direct_addresses: BTreeSet<SocketAddr>

    Socket addresses where the peer might be reached directly.

    -

    Implementations§

    source§

    impl AddrInfo

    source

    pub fn is_empty(&self) -> bool

    Returns whether this addressing information is empty.

    -
    source

    pub fn apply_options(&mut self, opts: AddrInfoOptions)

    Applies the options to self.

    +

    Implementations§

    §

    impl AddrInfo

    pub fn is_empty(&self) -> bool

    Returns whether this addressing information is empty.

    +

    pub fn apply_options(&mut self, opts: AddrInfoOptions)

    Applies the options to self.

    This is used to more tightly control the information stored in ab AddrInfo received from another API. E.g. to ensure a discovery service is used the AddrInfoOptions::Id] option could be used to remove all other addressing details.

    -

    Trait Implementations§

    source§

    impl Clone for AddrInfo

    source§

    fn clone(&self) -> AddrInfo

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for AddrInfo

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for AddrInfo

    source§

    fn default() -> AddrInfo

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for AddrInfo

    Trait Implementations§

    §

    impl Clone for AddrInfo

    §

    fn clone(&self) -> AddrInfo

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for AddrInfo

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for AddrInfo

    §

    fn default() -> AddrInfo

    Returns the “default value” for a type. Read more
    §

    impl<'de> Deserialize<'de> for AddrInfo

    §

    fn deserialize<__D>( __deserializer: __D ) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<NodeInfo> for AddrInfo

    source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl Ord for AddrInfo

    source§

    fn cmp(&self, other: &AddrInfo) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<NodeInfo> for AddrInfo

    source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    §

    impl Ord for AddrInfo

    §

    fn cmp(&self, other: &AddrInfo) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for AddrInfo

    source§

    fn eq(&self, other: &AddrInfo) -> bool

    This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    §

    impl PartialEq for AddrInfo

    §

    fn eq(&self, other: &AddrInfo) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for AddrInfo

    source§

    fn partial_cmp(&self, other: &AddrInfo) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
    §

    impl PartialOrd for AddrInfo

    §

    fn partial_cmp(&self, other: &AddrInfo) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for AddrInfo

    source§

    fn serialize<__S>( +operator. Read more

    §

    impl Serialize for AddrInfo

    §

    fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Eq for AddrInfo

    source§

    impl StructuralPartialEq for AddrInfo

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    §

    impl Eq for AddrInfo

    §

    impl StructuralPartialEq for AddrInfo

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_net/endpoint/struct.NodeAddr.html b/pr/2616/docs/iroh_net/endpoint/struct.NodeAddr.html index 8f7d7ad194..ecc9ffd211 100644 --- a/pr/2616/docs/iroh_net/endpoint/struct.NodeAddr.html +++ b/pr/2616/docs/iroh_net/endpoint/struct.NodeAddr.html @@ -1,4 +1,4 @@ -NodeAddr in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::NodeAddr

    source ·
    pub struct NodeAddr {
    +NodeAddr in iroh_net::endpoint - Rust

    Struct iroh_net::endpoint::NodeAddr

    pub struct NodeAddr {
         pub node_id: PublicKey,
         pub info: AddrInfo,
     }
    Expand description

    Network-level addressing information for an iroh-net node.

    @@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type whenever a connection to other nodes needs to be established.

    Fields§

    §node_id: PublicKey

    The node’s identifier.

    §info: AddrInfo

    Addressing information to connect to Self::node_id.

    -

    Implementations§

    source§

    impl NodeAddr

    source

    pub fn new(node_id: PublicKey) -> NodeAddr

    Creates a new NodeAddr with empty AddrInfo.

    -
    source

    pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr

    Adds a relay url to the node’s AddrInfo.

    -
    source

    pub fn with_direct_addresses( +

    Implementations§

    §

    impl NodeAddr

    pub fn new(node_id: PublicKey) -> NodeAddr

    Creates a new NodeAddr with empty AddrInfo.

    +

    pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr

    Adds a relay url to the node’s AddrInfo.

    +

    pub fn with_direct_addresses( self, addresses: impl IntoIterator<Item = SocketAddr> ) -> NodeAddr

    Adds the given direct addresses to the peer’s AddrInfo.

    -
    source

    pub fn from_parts( +

    pub fn from_parts( node_id: PublicKey, relay_url: Option<RelayUrl>, direct_addresses: Vec<SocketAddr> ) -> NodeAddr

    Creates a new NodeAddr from its parts.

    -
    source

    pub fn apply_options(&mut self, opts: AddrInfoOptions)

    Applies the options to self.

    +

    pub fn apply_options(&mut self, opts: AddrInfoOptions)

    Applies the options to self.

    This is used to more tightly control the information stored in a NodeAddr received from another API. E.g. to ensure a discovery service is used the AddrInfoOptions::Id] option could be used to remove all other addressing details.

    -
    source

    pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>

    Returns the direct addresses of this peer.

    -
    source

    pub fn relay_url(&self) -> Option<&RelayUrl>

    Returns the relay url of this peer.

    -

    Trait Implementations§

    source§

    impl Clone for NodeAddr

    source§

    fn clone(&self) -> NodeAddr

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for NodeAddr

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for NodeAddr

    pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>

    Returns the direct addresses of this peer.

    +

    pub fn relay_url(&self) -> Option<&RelayUrl>

    Returns the relay url of this peer.

    +

    Trait Implementations§

    §

    impl Clone for NodeAddr

    §

    fn clone(&self) -> NodeAddr

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for NodeAddr

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<'de> Deserialize<'de> for NodeAddr

    §

    fn deserialize<__D>( __deserializer: __D ) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

    source§

    fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

    Converts to this type from the input type.
    source§

    impl From<NodeInfo> for NodeAddr

    source§

    fn from(info: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl From<NodeInfo> for NodeAddr

    source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl From<PublicKey> for NodeAddr

    source§

    fn from(node_id: PublicKey) -> NodeAddr

    Converts to this type from the input type.
    source§

    impl Ord for NodeAddr

    source§

    fn cmp(&self, other: &NodeAddr) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    §

    impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

    §

    fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

    Converts to this type from the input type.
    source§

    impl From<NodeInfo> for NodeAddr

    source§

    fn from(info: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl From<NodeInfo> for NodeAddr

    source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    §

    impl From<PublicKey> for NodeAddr

    §

    fn from(node_id: PublicKey) -> NodeAddr

    Converts to this type from the input type.
    §

    impl Ord for NodeAddr

    §

    fn cmp(&self, other: &NodeAddr) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for NodeAddr

    source§

    fn eq(&self, other: &NodeAddr) -> bool

    This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,
    Restrict a value to a certain interval. Read more
    §

    impl PartialEq for NodeAddr

    §

    fn eq(&self, other: &NodeAddr) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for NodeAddr

    source§

    fn partial_cmp(&self, other: &NodeAddr) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
    §

    impl PartialOrd for NodeAddr

    §

    fn partial_cmp(&self, other: &NodeAddr) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for NodeAddr

    source§

    fn serialize<__S>( +operator. Read more

    §

    impl Serialize for NodeAddr

    §

    fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Eq for NodeAddr

    source§

    impl StructuralPartialEq for NodeAddr

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    §

    impl Eq for NodeAddr

    §

    impl StructuralPartialEq for NodeAddr

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_net/key/enum.KeyParsingError.html b/pr/2616/docs/iroh_net/key/enum.KeyParsingError.html index 30490d5796..291d8514a2 100644 --- a/pr/2616/docs/iroh_net/key/enum.KeyParsingError.html +++ b/pr/2616/docs/iroh_net/key/enum.KeyParsingError.html @@ -1,10 +1,10 @@ -KeyParsingError in iroh_net::key - Rust

    Enum iroh_net::key::KeyParsingError

    source ·
    pub enum KeyParsingError {
    -    Base32(HexOrBase32ParseError),
    +KeyParsingError in iroh_net::key - Rust

    Enum iroh_net::key::KeyParsingError

    pub enum KeyParsingError {
    +    Base32(HexOrBase32ParseError),
         Key(Error),
     }
    Expand description

    Error when deserialising a PublicKey or a SecretKey.

    -

    Variants§

    §

    Base32(HexOrBase32ParseError)

    Error when decoding the base32.

    +

    Variants§

    §

    Base32(HexOrBase32ParseError)

    Error when decoding the base32.

    §

    Key(Error)

    Error when decoding the public key.

    -

    Trait Implementations§

    source§

    impl Debug for KeyParsingError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Display for KeyParsingError

    source§

    fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Error for KeyParsingError

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl From<Error> for KeyParsingError

    source§

    fn from(source: Error) -> KeyParsingError

    Converts to this type from the input type.
    source§

    impl From<HexOrBase32ParseError> for KeyParsingError

    source§

    fn from(source: HexOrBase32ParseError) -> KeyParsingError

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +

    Trait Implementations§

    §

    impl Debug for KeyParsingError

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Display for KeyParsingError

    §

    fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Error for KeyParsingError

    §

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    §

    impl From<Error> for KeyParsingError

    §

    fn from(source: Error) -> KeyParsingError

    Converts to this type from the input type.
    §

    impl From<HexOrBase32ParseError> for KeyParsingError

    §

    fn from(source: HexOrBase32ParseError) -> KeyParsingError

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_net/key/index.html b/pr/2616/docs/iroh_net/key/index.html index fed9e6656d..f8a86b539b 100644 --- a/pr/2616/docs/iroh_net/key/index.html +++ b/pr/2616/docs/iroh_net/key/index.html @@ -1,2 +1,2 @@ -iroh_net::key - Rust

    Module iroh_net::key

    source ·
    Expand description

    Cryptographic key handling for iroh-net.

    +iroh_net::key - Rust

    Module iroh_net::key

    Expand description

    Cryptographic key handling for iroh-net.

    Structs§

    Enums§

    Constants§

    Type Aliases§

    • The identifier for a node in the (iroh) network.
    \ No newline at end of file diff --git a/pr/2616/docs/iroh_net/key/struct.PublicKey.html b/pr/2616/docs/iroh_net/key/struct.PublicKey.html index 3786a2d42b..594b64d6e7 100644 --- a/pr/2616/docs/iroh_net/key/struct.PublicKey.html +++ b/pr/2616/docs/iroh_net/key/struct.PublicKey.html @@ -1,45 +1,45 @@ -PublicKey in iroh_net::key - Rust

    Struct iroh_net::key::PublicKey

    source ·
    pub struct PublicKey(/* private fields */);
    Expand description

    A public key.

    +PublicKey in iroh_net::key - Rust

    Struct iroh_net::key::PublicKey

    pub struct PublicKey(/* private fields */);
    Expand description

    A public key.

    The key itself is just a 32 byte array, but a key has associated crypto information that is cached for performance reasons.

    The cache item will be refreshed every time a crypto operation is performed, or when a key is deserialised or created from a byte array.

    Serialisation or creation from a byte array is cheap if the key is already in the cache, but expensive if it is not.

    -

    Implementations§

    source§

    impl PublicKey

    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Get this public key as a byte array.

    -
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>

    Construct a PublicKey from a slice of bytes.

    +

    Implementations§

    §

    impl PublicKey

    pub fn as_bytes(&self) -> &[u8; 32]

    Get this public key as a byte array.

    +

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>

    Construct a PublicKey from a slice of bytes.

    §Warning

    This will return a [SignatureError] if the bytes passed into this method do not represent a valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes. See [VerifyingKey::from_bytes] for details.

    -
    source

    pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>

    Verify a signature on a message with this secret key’s public key.

    +

    pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>

    Verify a signature on a message with this secret key’s public key.

    §Return

    Returns Ok(()) if the signature is valid, and Err otherwise.

    -
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string +

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string representation of the key.

    -

    Trait Implementations§

    source§

    impl AsRef<[u8]> for PublicKey

    source§

    fn as_ref(&self) -> &[u8] ⓘ

    Converts this type into a shared reference of the (usually inferred) input type.
    source§

    impl Clone for PublicKey

    source§

    fn clone(&self) -> PublicKey

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for PublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for PublicKey

    Trait Implementations§

    §

    impl AsRef<[u8]> for PublicKey

    §

    fn as_ref(&self) -> &[u8] ⓘ

    Converts this type into a shared reference of the (usually inferred) input type.
    §

    impl Clone for PublicKey

    §

    fn clone(&self) -> PublicKey

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for PublicKey

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<'de> Deserialize<'de> for PublicKey

    §

    fn deserialize<D>( deserializer: D ) -> Result<PublicKey, <D as Deserializer<'de>>::Error>
    where - D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Display for PublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl From<PublicKey> for NodeAddr

    source§

    fn from(node_id: PublicKey) -> NodeAddr

    Converts to this type from the input type.
    source§

    impl From<VerifyingKey> for PublicKey

    source§

    fn from(verifying_key: VerifyingKey) -> PublicKey

    Converts to this type from the input type.
    source§

    impl FromStr for PublicKey

    Deserialises the PublicKey from it’s base32 encoding.

    + D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    §

    impl Display for PublicKey

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<PublicKey> for NodeAddr

    §

    fn from(node_id: PublicKey) -> NodeAddr

    Converts to this type from the input type.
    §

    impl From<VerifyingKey> for PublicKey

    §

    fn from(verifying_key: VerifyingKey) -> PublicKey

    Converts to this type from the input type.
    §

    impl FromStr for PublicKey

    Deserialises the PublicKey from it’s base32 encoding.

    Display is capable of serialising this format.

    -
    §

    type Err = KeyParsingError

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<PublicKey, <PublicKey as FromStr>::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Hash for PublicKey

    source§

    fn hash<H>(&self, state: &mut H)
    where +
    §

    type Err = KeyParsingError

    The associated error which can be returned from parsing.
    §

    fn from_str(s: &str) -> Result<PublicKey, <PublicKey as FromStr>::Err>

    Parses a string s to return a value of this type. Read more

    §

    impl Hash for PublicKey

    §

    fn hash<H>(&self, state: &mut H)
    where H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for PublicKey

    source§

    fn cmp(&self, other: &PublicKey) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    §

    impl Ord for PublicKey

    §

    fn cmp(&self, other: &PublicKey) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for PublicKey

    source§

    fn eq(&self, other: &PublicKey) -> bool

    This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,
    Restrict a value to a certain interval. Read more
    §

    impl PartialEq for PublicKey

    §

    fn eq(&self, other: &PublicKey) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for PublicKey

    source§

    fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
    §

    impl PartialOrd for PublicKey

    §

    fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for PublicKey

    source§

    fn serialize<S>( +operator. Read more

    §

    impl Serialize for PublicKey

    §

    fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where - S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl TryFrom<&[u8]> for PublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from( + S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    §

    impl TryFrom<&[u8]> for PublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    §

    fn try_from( bytes: &[u8] -) -> Result<PublicKey, <PublicKey as TryFrom<&[u8]>>::Error>

    Performs the conversion.
    source§

    impl TryFrom<&[u8; 32]> for PublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from( +) -> Result<PublicKey, <PublicKey as TryFrom<&[u8]>>::Error>

    Performs the conversion.
    §

    impl TryFrom<&[u8; 32]> for PublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    §

    fn try_from( bytes: &[u8; 32] -) -> Result<PublicKey, <PublicKey as TryFrom<&[u8; 32]>>::Error>

    Performs the conversion.
    source§

    impl Copy for PublicKey

    source§

    impl Eq for PublicKey

    source§

    impl StructuralPartialEq for PublicKey

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +) -> Result<PublicKey, <PublicKey as TryFrom<&[u8; 32]>>::Error>

    Performs the conversion.
    §

    impl Copy for PublicKey

    §

    impl Eq for PublicKey

    §

    impl StructuralPartialEq for PublicKey

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<A, T> AsBits<T> for A
    where A: AsRef<[T]>, T: BitStore,

    §

    fn as_bits<O>(&self) -> &BitSlice<T, O>
    where diff --git a/pr/2616/docs/iroh_net/key/struct.SecretKey.html b/pr/2616/docs/iroh_net/key/struct.SecretKey.html index f602626da4..f955502cc6 100644 --- a/pr/2616/docs/iroh_net/key/struct.SecretKey.html +++ b/pr/2616/docs/iroh_net/key/struct.SecretKey.html @@ -1,24 +1,24 @@ -SecretKey in iroh_net::key - Rust

    Struct iroh_net::key::SecretKey

    source ·
    pub struct SecretKey { /* private fields */ }
    Expand description

    A secret key.

    -

    Implementations§

    source§

    impl SecretKey

    source

    pub fn shared(&self, other: &PublicKey) -> SharedSecret

    Returns the shared key for communication between this key and other.

    -
    source§

    impl SecretKey

    source

    pub fn public(&self) -> PublicKey

    The public key of this SecretKey.

    -
    source

    pub fn generate() -> SecretKey

    Generate a new SecretKey with the default randomness generator.

    -
    source

    pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKey
    where +SecretKey in iroh_net::key - Rust

    Struct iroh_net::key::SecretKey

    pub struct SecretKey { /* private fields */ }
    Expand description

    A secret key.

    +

    Implementations§

    §

    impl SecretKey

    pub fn shared(&self, other: &PublicKey) -> SharedSecret

    Returns the shared key for communication between this key and other.

    +
    §

    impl SecretKey

    pub fn public(&self) -> PublicKey

    The public key of this SecretKey.

    +

    pub fn generate() -> SecretKey

    Generate a new SecretKey with the default randomness generator.

    +

    pub fn generate_with_rng<R>(csprng: &mut R) -> SecretKey
    where R: CryptoRngCore + ?Sized,

    Generate a new SecretKey with a randomness generator.

    -
    source

    pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>

    Serialise this key to OpenSSH format.

    -
    source

    pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
    where +

    pub fn to_openssh(&self) -> Result<Zeroizing<String>, Error>

    Serialise this key to OpenSSH format.

    +

    pub fn try_from_openssh<T>(data: T) -> Result<SecretKey, Error>
    where T: AsRef<[u8]>,

    Deserialise this key from OpenSSH format.

    -
    source

    pub fn sign(&self, msg: &[u8]) -> Signature

    Sign the given message and return a digital signature

    -
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert this to the bytes representing the secret part. +

    pub fn sign(&self, msg: &[u8]) -> Signature

    Sign the given message and return a digital signature

    +

    pub fn to_bytes(&self) -> [u8; 32]

    Convert this to the bytes representing the secret part. The public part can always be recovered.

    -
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey

    Create a secret key from its byte representation.

    -

    Trait Implementations§

    source§

    impl Clone for SecretKey

    source§

    fn clone(&self) -> SecretKey

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SecretKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for SecretKey

    pub fn from_bytes(bytes: &[u8; 32]) -> SecretKey

    Create a secret key from its byte representation.

    +

    Trait Implementations§

    §

    impl Clone for SecretKey

    §

    fn clone(&self) -> SecretKey

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for SecretKey

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<'de> Deserialize<'de> for SecretKey

    §

    fn deserialize<D>( deserializer: D ) -> Result<SecretKey, <D as Deserializer<'de>>::Error>
    where - D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Display for SecretKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl From<[u8; 32]> for SecretKey

    source§

    fn from(value: [u8; 32]) -> SecretKey

    Converts to this type from the input type.
    source§

    impl From<SigningKey> for SecretKey

    source§

    fn from(secret: SigningKey) -> SecretKey

    Converts to this type from the input type.
    source§

    impl FromStr for SecretKey

    §

    type Err = KeyParsingError

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<SecretKey, <SecretKey as FromStr>::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Serialize for SecretKey

    Deserialize this value from the given Serde deserializer. Read more
    §

    impl Display for SecretKey

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<[u8; 32]> for SecretKey

    §

    fn from(value: [u8; 32]) -> SecretKey

    Converts to this type from the input type.
    §

    impl From<SigningKey> for SecretKey

    §

    fn from(secret: SigningKey) -> SecretKey

    Converts to this type from the input type.
    §

    impl FromStr for SecretKey

    §

    type Err = KeyParsingError

    The associated error which can be returned from parsing.
    §

    fn from_str(s: &str) -> Result<SecretKey, <SecretKey as FromStr>::Err>

    Parses a string s to return a value of this type. Read more
    §

    impl Serialize for SecretKey

    §

    fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where - S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl TryFrom<&[u8]> for SecretKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from( + S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    §

    impl TryFrom<&[u8]> for SecretKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    §

    fn try_from( bytes: &[u8] ) -> Result<SecretKey, <SecretKey as TryFrom<&[u8]>>::Error>

    Performs the conversion.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_net/key/struct.SharedSecret.html b/pr/2616/docs/iroh_net/key/struct.SharedSecret.html index 752f00cc94..da9d5f9b1a 100644 --- a/pr/2616/docs/iroh_net/key/struct.SharedSecret.html +++ b/pr/2616/docs/iroh_net/key/struct.SharedSecret.html @@ -1,7 +1,7 @@ -SharedSecret in iroh_net::key - Rust

    Struct iroh_net::key::SharedSecret

    source ·
    pub struct SharedSecret(/* private fields */);
    Expand description

    Shared Secret.

    -

    Implementations§

    source§

    impl SharedSecret

    source

    pub fn seal(&self, buffer: &mut dyn Buffer)

    Seals the provided cleartext.

    -
    source

    pub fn open(&self, buffer: &mut dyn Buffer) -> Result<(), Error>

    Opens the ciphertext, which must have been created using Self::seal, and places the clear text into the provided buffer.

    -

    Trait Implementations§

    source§

    impl Debug for SharedSecret

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +SharedSecret in iroh_net::key - Rust

    Struct iroh_net::key::SharedSecret

    pub struct SharedSecret(/* private fields */);
    Expand description

    Shared Secret.

    +

    Implementations§

    §

    impl SharedSecret

    pub fn seal(&self, buffer: &mut dyn Buffer)

    Seals the provided cleartext.

    +

    pub fn open(&self, buffer: &mut dyn Buffer) -> Result<(), Error>

    Opens the ciphertext, which must have been created using Self::seal, and places the clear text into the provided buffer.

    +

    Trait Implementations§

    §

    impl Debug for SharedSecret

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_net/key/type.NodeId.html b/pr/2616/docs/iroh_net/key/type.NodeId.html index 2ca36f46fe..fddfe420b0 100644 --- a/pr/2616/docs/iroh_net/key/type.NodeId.html +++ b/pr/2616/docs/iroh_net/key/type.NodeId.html @@ -1,4 +1,4 @@ -NodeId in iroh_net::key - Rust

    Type Alias iroh_net::key::NodeId

    source ·
    pub type NodeId = PublicKey;
    Expand description

    The identifier for a node in the (iroh) network.

    +NodeId in iroh_net::key - Rust

    Type Alias iroh_net::key::NodeId

    pub type NodeId = PublicKey;
    Expand description

    The identifier for a node in the (iroh) network.

    Each node in iroh has a unique identifier created as a cryptographic key. This can be used to globally identify a node. Since it is also a cryptographic key it is also the mechanism by which all traffic is always encrypted for a specific node only.

    diff --git a/pr/2616/docs/iroh_net/metrics/struct.MagicsockMetrics.html b/pr/2616/docs/iroh_net/metrics/struct.MagicsockMetrics.html index 2f20b8f1c5..fc9c5bfd9f 100644 --- a/pr/2616/docs/iroh_net/metrics/struct.MagicsockMetrics.html +++ b/pr/2616/docs/iroh_net/metrics/struct.MagicsockMetrics.html @@ -1,53 +1,53 @@ MagicsockMetrics in iroh_net::metrics - Rust

    Struct iroh_net::metrics::MagicsockMetrics

    source ·
    pub struct MagicsockMetrics {
    Show 40 fields - pub re_stun_calls: Counter, - pub update_direct_addrs: Counter, - pub send_ipv4: Counter, - pub send_ipv6: Counter, - pub send_relay: Counter, - pub send_relay_error: Counter, - pub send_data: Counter, - pub send_data_network_down: Counter, - pub recv_data_relay: Counter, - pub recv_data_ipv4: Counter, - pub recv_data_ipv6: Counter, - pub recv_datagrams: Counter, - pub send_disco_udp: Counter, - pub send_disco_relay: Counter, - pub sent_disco_udp: Counter, - pub sent_disco_relay: Counter, - pub sent_disco_ping: Counter, - pub sent_disco_pong: Counter, - pub sent_disco_call_me_maybe: Counter, - pub recv_disco_bad_key: Counter, - pub recv_disco_bad_parse: Counter, - pub recv_disco_udp: Counter, - pub recv_disco_relay: Counter, - pub recv_disco_ping: Counter, - pub recv_disco_pong: Counter, - pub recv_disco_call_me_maybe: Counter, - pub recv_disco_call_me_maybe_bad_disco: Counter, - pub relay_home_change: Counter, - pub num_direct_conns_added: Counter, - pub num_direct_conns_removed: Counter, - pub num_relay_conns_added: Counter, - pub num_relay_conns_removed: Counter, - pub actor_tick_main: Counter, - pub actor_tick_msg: Counter, - pub actor_tick_re_stun: Counter, - pub actor_tick_portmap_changed: Counter, - pub actor_tick_direct_addr_heartbeat: Counter, - pub actor_tick_direct_addr_update_receiver: Counter, - pub actor_link_change: Counter, - pub actor_tick_other: Counter, + pub re_stun_calls: Counter, + pub update_direct_addrs: Counter, + pub send_ipv4: Counter, + pub send_ipv6: Counter, + pub send_relay: Counter, + pub send_relay_error: Counter, + pub send_data: Counter, + pub send_data_network_down: Counter, + pub recv_data_relay: Counter, + pub recv_data_ipv4: Counter, + pub recv_data_ipv6: Counter, + pub recv_datagrams: Counter, + pub send_disco_udp: Counter, + pub send_disco_relay: Counter, + pub sent_disco_udp: Counter, + pub sent_disco_relay: Counter, + pub sent_disco_ping: Counter, + pub sent_disco_pong: Counter, + pub sent_disco_call_me_maybe: Counter, + pub recv_disco_bad_key: Counter, + pub recv_disco_bad_parse: Counter, + pub recv_disco_udp: Counter, + pub recv_disco_relay: Counter, + pub recv_disco_ping: Counter, + pub recv_disco_pong: Counter, + pub recv_disco_call_me_maybe: Counter, + pub recv_disco_call_me_maybe_bad_disco: Counter, + pub relay_home_change: Counter, + pub num_direct_conns_added: Counter, + pub num_direct_conns_removed: Counter, + pub num_relay_conns_added: Counter, + pub num_relay_conns_removed: Counter, + pub actor_tick_main: Counter, + pub actor_tick_msg: Counter, + pub actor_tick_re_stun: Counter, + pub actor_tick_portmap_changed: Counter, + pub actor_tick_direct_addr_heartbeat: Counter, + pub actor_tick_direct_addr_update_receiver: Counter, + pub actor_link_change: Counter, + 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.

    -
    §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

    Formats the value using the given formatter. Read more
    source§

    impl Default for Metrics

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Iterable for Metrics

    source§

    fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

    Returns an iterator over the struct’s fields as tuples. Read more
    source§

    impl Metric for Metrics

    source§

    fn name() -> &'static str

    The name of this metric group.
    source§

    fn new(registry: &mut Registry) -> Self

    Initializes this metric group.
    source§

    fn with_metric<T, F>(f: F)
    where +

    Fields§

    §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.

    +
    §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

    Formats the value using the given formatter. Read more
    source§

    impl Default for Metrics

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Iterable for Metrics

    source§

    fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

    Returns an iterator over the struct’s fields as tuples. Read more
    source§

    impl Metric for Metrics

    source§

    fn name() -> &'static str

    The name of this metric group.
    §

    fn new(registry: &mut Registry) -> Self

    Initializes this metric group.
    §

    fn with_metric<T, F>(f: F)
    where F: FnOnce(&Self) -> T,

    Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
    source§

    fn try_get() -> Option<&'static Self>

    Attempts to get the current metric from the global registry.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +Only records if this metric is registered in the global registry.

    §

    fn try_get() -> Option<&'static Self>

    Attempts to get the current metric from the global registry.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_net/netcheck/struct.Metrics.html b/pr/2616/docs/iroh_net/netcheck/struct.Metrics.html index 3852ce6655..a7f871f603 100644 --- a/pr/2616/docs/iroh_net/netcheck/struct.Metrics.html +++ b/pr/2616/docs/iroh_net/netcheck/struct.Metrics.html @@ -1,15 +1,15 @@ 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,
    -    pub stun_packets_recv_ipv4: Counter,
    -    pub stun_packets_recv_ipv6: Counter,
    -    pub reports: Counter,
    -    pub reports_full: Counter,
    +    pub stun_packets_dropped: Counter,
    +    pub stun_packets_sent_ipv4: Counter,
    +    pub stun_packets_sent_ipv6: Counter,
    +    pub stun_packets_recv_ipv4: Counter,
    +    pub stun_packets_recv_ipv6: Counter,
    +    pub reports: Counter,
    +    pub reports_full: Counter,
     }
    Expand description

    Enum of metrics for the module

    -

    Fields§

    §stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: Counter

    Trait Implementations§

    source§

    impl Clone for Metrics

    source§

    fn clone(&self) -> Metrics

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Metrics

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Metrics

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Iterable for Metrics

    source§

    fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

    Returns an iterator over the struct’s fields as tuples. Read more
    source§

    impl Metric for Metrics

    source§

    fn name() -> &'static str

    The name of this metric group.
    source§

    fn new(registry: &mut Registry) -> Self

    Initializes this metric group.
    source§

    fn with_metric<T, F>(f: F)
    where +

    Fields§

    §stun_packets_dropped: Counter§stun_packets_sent_ipv4: Counter§stun_packets_sent_ipv6: Counter§stun_packets_recv_ipv4: Counter§stun_packets_recv_ipv6: Counter§reports: Counter§reports_full: Counter

    Trait Implementations§

    source§

    impl Clone for Metrics

    source§

    fn clone(&self) -> Metrics

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Metrics

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Metrics

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Iterable for Metrics

    source§

    fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

    Returns an iterator over the struct’s fields as tuples. Read more
    source§

    impl Metric for Metrics

    source§

    fn name() -> &'static str

    The name of this metric group.
    §

    fn new(registry: &mut Registry) -> Self

    Initializes this metric group.
    §

    fn with_metric<T, F>(f: F)
    where F: FnOnce(&Self) -> T,

    Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
    source§

    fn try_get() -> Option<&'static Self>

    Attempts to get the current metric from the global registry.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +Only records if this metric is registered in the global registry.

    §

    fn try_get() -> Option<&'static Self>

    Attempts to get the current metric from the global registry.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_net/portmapper/struct.Metrics.html b/pr/2616/docs/iroh_net/portmapper/struct.Metrics.html index d0dca45693..c8d6678859 100644 --- a/pr/2616/docs/iroh_net/portmapper/struct.Metrics.html +++ b/pr/2616/docs/iroh_net/portmapper/struct.Metrics.html @@ -1,19 +1,19 @@ 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,
    -    pub mapping_failures: Counter,
    -    pub external_address_updated: Counter,
    -    pub upnp_probes: Counter,
    -    pub upnp_probes_failed: Counter,
    -    pub upnp_available: Counter,
    -    pub upnp_gateway_updated: Counter,
    -    pub pcp_probes: Counter,
    -    pub pcp_available: Counter,
    +    pub probes_started: Counter,
    +    pub local_port_updates: Counter,
    +    pub mapping_attempts: Counter,
    +    pub mapping_failures: Counter,
    +    pub external_address_updated: Counter,
    +    pub upnp_probes: Counter,
    +    pub upnp_probes_failed: Counter,
    +    pub upnp_available: Counter,
    +    pub upnp_gateway_updated: Counter,
    +    pub pcp_probes: Counter,
    +    pub pcp_available: Counter,
     }
    Expand description

    Enum of metrics for the module

    -

    Fields§

    §probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: Counter

    Trait Implementations§

    source§

    impl Clone for Metrics

    source§

    fn clone(&self) -> Metrics

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Metrics

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Metrics

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Iterable for Metrics

    source§

    fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

    Returns an iterator over the struct’s fields as tuples. Read more
    source§

    impl Metric for Metrics

    source§

    fn name() -> &'static str

    The name of this metric group.
    source§

    fn new(registry: &mut Registry) -> Self

    Initializes this metric group.
    source§

    fn with_metric<T, F>(f: F)
    where +

    Fields§

    §probes_started: Counter§local_port_updates: Counter§mapping_attempts: Counter§mapping_failures: Counter§external_address_updated: Counter§upnp_probes: Counter§upnp_probes_failed: Counter§upnp_available: Counter§upnp_gateway_updated: Counter§pcp_probes: Counter§pcp_available: Counter

    Trait Implementations§

    source§

    impl Clone for Metrics

    source§

    fn clone(&self) -> Metrics

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Metrics

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Metrics

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Iterable for Metrics

    source§

    fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

    Returns an iterator over the struct’s fields as tuples. Read more
    source§

    impl Metric for Metrics

    source§

    fn name() -> &'static str

    The name of this metric group.
    §

    fn new(registry: &mut Registry) -> Self

    Initializes this metric group.
    §

    fn with_metric<T, F>(f: F)
    where F: FnOnce(&Self) -> T,

    Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
    source§

    fn try_get() -> Option<&'static Self>

    Attempts to get the current metric from the global registry.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +Only records if this metric is registered in the global registry.

    §

    fn try_get() -> Option<&'static Self>

    Attempts to get the current metric from the global registry.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_net/relay/server/struct.Metrics.html b/pr/2616/docs/iroh_net/relay/server/struct.Metrics.html index 51b94be873..ede276d6f4 100644 --- a/pr/2616/docs/iroh_net/relay/server/struct.Metrics.html +++ b/pr/2616/docs/iroh_net/relay/server/struct.Metrics.html @@ -1,46 +1,46 @@ 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, - pub send_packets_recv: Counter, - pub send_packets_dropped: Counter, - pub disco_packets_sent: Counter, - pub disco_packets_recv: Counter, - pub disco_packets_dropped: Counter, - pub other_packets_sent: Counter, - pub other_packets_recv: Counter, - pub other_packets_dropped: Counter, - pub got_ping: Counter, - pub sent_pong: Counter, - pub unknown_frames: Counter, - pub accepts: Counter, - pub disconnects: Counter, - pub unique_client_keys: Counter, - pub websocket_accepts: Counter, - pub derp_accepts: Counter, + pub bytes_sent: Counter, + pub bytes_recv: Counter, + pub send_packets_sent: Counter, + pub send_packets_recv: Counter, + pub send_packets_dropped: Counter, + pub disco_packets_sent: Counter, + pub disco_packets_recv: Counter, + pub disco_packets_dropped: Counter, + pub other_packets_sent: Counter, + pub other_packets_recv: Counter, + pub other_packets_dropped: Counter, + pub got_ping: Counter, + pub sent_pong: Counter, + pub unknown_frames: Counter, + pub accepts: Counter, + pub disconnects: Counter, + pub unique_client_keys: Counter, + pub websocket_accepts: Counter, + pub derp_accepts: Counter,
    }
    Expand description

    Metrics tracked for the relay server

    -

    Fields§

    §bytes_sent: Counter

    Bytes sent from a FrameType::SendPacket

    -
    §bytes_recv: Counter

    Bytes received from a FrameType::SendPacket

    -
    §send_packets_sent: Counter

    FrameType::SendPacket sent, that are not disco messages

    -
    §send_packets_recv: Counter

    FrameType::SendPacket received, that are not disco messages

    -
    §send_packets_dropped: Counter

    FrameType::SendPacket dropped, that are not disco messages

    -
    §disco_packets_sent: Counter

    FrameType::SendPacket sent that are disco messages

    -
    §disco_packets_recv: Counter

    FrameType::SendPacket received that are disco messages

    -
    §disco_packets_dropped: Counter

    FrameType::SendPacket dropped that are disco messages

    -
    §other_packets_sent: Counter

    Packets of other FrameTypes sent

    -
    §other_packets_recv: Counter

    Packets of other FrameTypes received

    -
    §other_packets_dropped: Counter

    Packets of other FrameTypes dropped

    -
    §got_ping: Counter

    Number of FrameType::Pings received

    -
    §sent_pong: Counter

    Number of FrameType::Pongs sent

    -
    §unknown_frames: Counter

    Number of FrameType::Unknown received

    -
    §accepts: Counter

    Number of connections we have accepted

    -
    §disconnects: Counter

    Number of connections we have removed because of an error

    -
    §unique_client_keys: Counter

    Number of unique client keys per day

    -
    §websocket_accepts: Counter

    Number of accepted websocket connections

    -
    §derp_accepts: Counter

    Number of accepted ‘iroh derp http’ connection upgrades

    -

    Trait Implementations§

    source§

    impl Clone for Metrics

    source§

    fn clone(&self) -> Metrics

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Metrics

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Metrics

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Iterable for Metrics

    source§

    fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

    Returns an iterator over the struct’s fields as tuples. Read more
    source§

    impl Metric for Metrics

    source§

    fn name() -> &'static str

    The name of this metric group.
    source§

    fn new(registry: &mut Registry) -> Self

    Initializes this metric group.
    source§

    fn with_metric<T, F>(f: F)
    where +

    Fields§

    §bytes_sent: Counter

    Bytes sent from a FrameType::SendPacket

    +
    §bytes_recv: Counter

    Bytes received from a FrameType::SendPacket

    +
    §send_packets_sent: Counter

    FrameType::SendPacket sent, that are not disco messages

    +
    §send_packets_recv: Counter

    FrameType::SendPacket received, that are not disco messages

    +
    §send_packets_dropped: Counter

    FrameType::SendPacket dropped, that are not disco messages

    +
    §disco_packets_sent: Counter

    FrameType::SendPacket sent that are disco messages

    +
    §disco_packets_recv: Counter

    FrameType::SendPacket received that are disco messages

    +
    §disco_packets_dropped: Counter

    FrameType::SendPacket dropped that are disco messages

    +
    §other_packets_sent: Counter

    Packets of other FrameTypes sent

    +
    §other_packets_recv: Counter

    Packets of other FrameTypes received

    +
    §other_packets_dropped: Counter

    Packets of other FrameTypes dropped

    +
    §got_ping: Counter

    Number of FrameType::Pings received

    +
    §sent_pong: Counter

    Number of FrameType::Pongs sent

    +
    §unknown_frames: Counter

    Number of FrameType::Unknown received

    +
    §accepts: Counter

    Number of connections we have accepted

    +
    §disconnects: Counter

    Number of connections we have removed because of an error

    +
    §unique_client_keys: Counter

    Number of unique client keys per day

    +
    §websocket_accepts: Counter

    Number of accepted websocket connections

    +
    §derp_accepts: Counter

    Number of accepted ‘iroh derp http’ connection upgrades

    +

    Trait Implementations§

    source§

    impl Clone for Metrics

    source§

    fn clone(&self) -> Metrics

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Metrics

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for Metrics

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Iterable for Metrics

    source§

    fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

    Returns an iterator over the struct’s fields as tuples. Read more
    source§

    impl Metric for Metrics

    source§

    fn name() -> &'static str

    The name of this metric group.
    §

    fn new(registry: &mut Registry) -> Self

    Initializes this metric group.
    §

    fn with_metric<T, F>(f: F)
    where F: FnOnce(&Self) -> T,

    Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
    source§

    fn try_get() -> Option<&'static Self>

    Attempts to get the current metric from the global registry.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +Only records if this metric is registered in the global registry.

    §

    fn try_get() -> Option<&'static Self>

    Attempts to get the current metric from the global registry.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_net/relay/struct.RelayUrl.html b/pr/2616/docs/iroh_net/relay/struct.RelayUrl.html index ca9a62405c..1d9e8e6ac9 100644 --- a/pr/2616/docs/iroh_net/relay/struct.RelayUrl.html +++ b/pr/2616/docs/iroh_net/relay/struct.RelayUrl.html @@ -1,4 +1,4 @@ -RelayUrl in iroh_net::relay - Rust

    Struct iroh_net::relay::RelayUrl

    source ·
    pub struct RelayUrl(/* private fields */);
    Expand description

    A URL identifying a relay server.

    +RelayUrl in iroh_net::relay - Rust

    Struct iroh_net::relay::RelayUrl

    pub struct RelayUrl(/* private fields */);
    Expand description

    A URL identifying a relay server.

    This is but a wrapper around Url, with a few custom tweaks:

    • @@ -423,30 +423,30 @@ It is the user’s responsibility to check the URL’s scheme before calling thi or if Path::new_opt() returns None. (That is, if the percent-decoded path contains a NUL byte or, for a Windows path, is not UTF-8.)

      -

    Trait Implementations§

    source§

    impl Clone for RelayUrl

    source§

    fn clone(&self) -> RelayUrl

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for RelayUrl

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Deref for RelayUrl

    Dereferences to the wrapped Url.

    +

    Trait Implementations§

    §

    impl Clone for RelayUrl

    §

    fn clone(&self) -> RelayUrl

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for RelayUrl

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Deref for RelayUrl

    Dereferences to the wrapped Url.

    Note that DerefMut is not implemented on purpose, so this type has more flexibility to change the inner later.

    -
    §

    type Target = Url

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &<RelayUrl as Deref>::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for RelayUrl

    §

    type Target = Url

    The resulting type after dereferencing.
    §

    fn deref(&self) -> &<RelayUrl as Deref>::Target

    Dereferences the value.
    §

    impl<'de> Deserialize<'de> for RelayUrl

    §

    fn deserialize<__D>( __deserializer: __D ) -> Result<RelayUrl, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Display for RelayUrl

    source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl From<RelayUrl> for Url

    source§

    fn from(value: RelayUrl) -> Url

    Converts to this type from the input type.
    source§

    impl From<Url> for RelayUrl

    source§

    fn from(url: Url) -> RelayUrl

    Converts to this type from the input type.
    source§

    impl FromStr for RelayUrl

    Support for parsing strings directly.

    + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more

    §

    impl Display for RelayUrl

    §

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<RelayUrl> for Url

    §

    fn from(value: RelayUrl) -> Url

    Converts to this type from the input type.
    §

    impl From<Url> for RelayUrl

    §

    fn from(url: Url) -> RelayUrl

    Converts to this type from the input type.
    §

    impl FromStr for RelayUrl

    Support for parsing strings directly.

    If you need more control over the error first create a Url and use RelayUrl::from instead.

    -
    §

    type Err = Error

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<RelayUrl, <RelayUrl as FromStr>::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Hash for RelayUrl

    source§

    fn hash<__H>(&self, state: &mut __H)
    where +
    §

    type Err = Error

    The associated error which can be returned from parsing.
    §

    fn from_str(s: &str) -> Result<RelayUrl, <RelayUrl as FromStr>::Err>

    Parses a string s to return a value of this type. Read more

    §

    impl Hash for RelayUrl

    §

    fn hash<__H>(&self, state: &mut __H)
    where __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for RelayUrl

    source§

    fn cmp(&self, other: &RelayUrl) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    §

    impl Ord for RelayUrl

    §

    fn cmp(&self, other: &RelayUrl) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for RelayUrl

    source§

    fn eq(&self, other: &RelayUrl) -> bool

    This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more

    §

    impl PartialEq for RelayUrl

    §

    fn eq(&self, other: &RelayUrl) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for RelayUrl

    source§

    fn partial_cmp(&self, other: &RelayUrl) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
    §

    impl PartialOrd for RelayUrl

    §

    fn partial_cmp(&self, other: &RelayUrl) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for RelayUrl

    source§

    fn serialize<__S>( +operator. Read more

    §

    impl Serialize for RelayUrl

    §

    fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Eq for RelayUrl

    source§

    impl StructuralPartialEq for RelayUrl

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    §

    impl Eq for RelayUrl

    §

    impl StructuralPartialEq for RelayUrl

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_net/struct.AddrInfo.html b/pr/2616/docs/iroh_net/struct.AddrInfo.html index 26ea90fff0..bfe72b5ec1 100644 --- a/pr/2616/docs/iroh_net/struct.AddrInfo.html +++ b/pr/2616/docs/iroh_net/struct.AddrInfo.html @@ -1,4 +1,4 @@ -AddrInfo in iroh_net - Rust

    Struct iroh_net::AddrInfo

    source ·
    pub struct AddrInfo {
    +AddrInfo in iroh_net - Rust

    Struct iroh_net::AddrInfo

    pub struct AddrInfo {
         pub relay_url: Option<RelayUrl>,
         pub direct_addresses: BTreeSet<SocketAddr>,
     }
    Expand description

    Network paths to contact an iroh-net node.

    @@ -7,26 +7,26 @@ Unless a [discovery service] is used at least one path is required to connect to other node, see NodeAddr for details.

    Fields§

    §relay_url: Option<RelayUrl>

    The node’s home relay url.

    §direct_addresses: BTreeSet<SocketAddr>

    Socket addresses where the peer might be reached directly.

    -

    Implementations§

    source§

    impl AddrInfo

    source

    pub fn is_empty(&self) -> bool

    Returns whether this addressing information is empty.

    -
    source

    pub fn apply_options(&mut self, opts: AddrInfoOptions)

    Applies the options to self.

    +

    Implementations§

    §

    impl AddrInfo

    pub fn is_empty(&self) -> bool

    Returns whether this addressing information is empty.

    +

    pub fn apply_options(&mut self, opts: AddrInfoOptions)

    Applies the options to self.

    This is used to more tightly control the information stored in ab AddrInfo received from another API. E.g. to ensure a discovery service is used the AddrInfoOptions::Id] option could be used to remove all other addressing details.

    -

    Trait Implementations§

    source§

    impl Clone for AddrInfo

    source§

    fn clone(&self) -> AddrInfo

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for AddrInfo

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl Default for AddrInfo

    source§

    fn default() -> AddrInfo

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for AddrInfo

    Trait Implementations§

    §

    impl Clone for AddrInfo

    §

    fn clone(&self) -> AddrInfo

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for AddrInfo

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for AddrInfo

    §

    fn default() -> AddrInfo

    Returns the “default value” for a type. Read more
    §

    impl<'de> Deserialize<'de> for AddrInfo

    §

    fn deserialize<__D>( __deserializer: __D ) -> Result<AddrInfo, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<NodeInfo> for AddrInfo

    source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl Ord for AddrInfo

    source§

    fn cmp(&self, other: &AddrInfo) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<NodeInfo> for AddrInfo

    source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    §

    impl Ord for AddrInfo

    §

    fn cmp(&self, other: &AddrInfo) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for AddrInfo

    source§

    fn eq(&self, other: &AddrInfo) -> bool

    This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more

    §

    impl PartialEq for AddrInfo

    §

    fn eq(&self, other: &AddrInfo) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for AddrInfo

    source§

    fn partial_cmp(&self, other: &AddrInfo) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
    §

    impl PartialOrd for AddrInfo

    §

    fn partial_cmp(&self, other: &AddrInfo) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for AddrInfo

    source§

    fn serialize<__S>( +operator. Read more

    §

    impl Serialize for AddrInfo

    §

    fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Eq for AddrInfo

    source§

    impl StructuralPartialEq for AddrInfo

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more

    §

    impl Eq for AddrInfo

    §

    impl StructuralPartialEq for AddrInfo

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_net/struct.NodeAddr.html b/pr/2616/docs/iroh_net/struct.NodeAddr.html index 937f9ec9b4..6287d737bc 100644 --- a/pr/2616/docs/iroh_net/struct.NodeAddr.html +++ b/pr/2616/docs/iroh_net/struct.NodeAddr.html @@ -1,4 +1,4 @@ -NodeAddr in iroh_net - Rust

    Struct iroh_net::NodeAddr

    source ·
    pub struct NodeAddr {
    +NodeAddr in iroh_net - Rust

    Struct iroh_net::NodeAddr

    pub struct NodeAddr {
         pub node_id: PublicKey,
         pub info: AddrInfo,
     }
    Expand description

    Network-level addressing information for an iroh-net node.

    @@ -25,38 +25,38 @@ number of network-level addressing information. It is a generic addressing type whenever a connection to other nodes needs to be established.

    Fields§

    §node_id: PublicKey

    The node’s identifier.

    §info: AddrInfo

    Addressing information to connect to Self::node_id.

    -

    Implementations§

    source§

    impl NodeAddr

    source

    pub fn new(node_id: PublicKey) -> NodeAddr

    Creates a new NodeAddr with empty AddrInfo.

    -
    source

    pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr

    Adds a relay url to the node’s AddrInfo.

    -
    source

    pub fn with_direct_addresses( +

    Implementations§

    §

    impl NodeAddr

    pub fn new(node_id: PublicKey) -> NodeAddr

    Creates a new NodeAddr with empty AddrInfo.

    +

    pub fn with_relay_url(self, relay_url: RelayUrl) -> NodeAddr

    Adds a relay url to the node’s AddrInfo.

    +

    pub fn with_direct_addresses( self, addresses: impl IntoIterator<Item = SocketAddr> ) -> NodeAddr

    Adds the given direct addresses to the peer’s AddrInfo.

    -
    source

    pub fn from_parts( +

    pub fn from_parts( node_id: PublicKey, relay_url: Option<RelayUrl>, direct_addresses: Vec<SocketAddr> ) -> NodeAddr

    Creates a new NodeAddr from its parts.

    -
    source

    pub fn apply_options(&mut self, opts: AddrInfoOptions)

    Applies the options to self.

    +

    pub fn apply_options(&mut self, opts: AddrInfoOptions)

    Applies the options to self.

    This is used to more tightly control the information stored in a NodeAddr received from another API. E.g. to ensure a discovery service is used the AddrInfoOptions::Id] option could be used to remove all other addressing details.

    -
    source

    pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>

    Returns the direct addresses of this peer.

    -
    source

    pub fn relay_url(&self) -> Option<&RelayUrl>

    Returns the relay url of this peer.

    -

    Trait Implementations§

    source§

    impl Clone for NodeAddr

    source§

    fn clone(&self) -> NodeAddr

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for NodeAddr

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for NodeAddr

    pub fn direct_addresses(&self) -> impl Iterator<Item = &SocketAddr>

    Returns the direct addresses of this peer.

    +

    pub fn relay_url(&self) -> Option<&RelayUrl>

    Returns the relay url of this peer.

    +

    Trait Implementations§

    §

    impl Clone for NodeAddr

    §

    fn clone(&self) -> NodeAddr

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for NodeAddr

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<'de> Deserialize<'de> for NodeAddr

    §

    fn deserialize<__D>( __deserializer: __D ) -> Result<NodeAddr, <__D as Deserializer<'de>>::Error>
    where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

    source§

    fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

    Converts to this type from the input type.
    source§

    impl From<NodeInfo> for NodeAddr

    source§

    fn from(info: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl From<NodeInfo> for NodeAddr

    source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl From<PublicKey> for NodeAddr

    source§

    fn from(node_id: PublicKey) -> NodeAddr

    Converts to this type from the input type.
    source§

    impl Ord for NodeAddr

    source§

    fn cmp(&self, other: &NodeAddr) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    §

    impl From<(PublicKey, Option<RelayUrl>, &[SocketAddr])> for NodeAddr

    §

    fn from(value: (PublicKey, Option<RelayUrl>, &[SocketAddr])) -> NodeAddr

    Converts to this type from the input type.
    source§

    impl From<NodeInfo> for NodeAddr

    source§

    fn from(info: NodeInfo) -> Self

    Converts to this type from the input type.
    source§

    impl From<NodeInfo> for NodeAddr

    source§

    fn from(value: NodeInfo) -> Self

    Converts to this type from the input type.
    §

    impl From<PublicKey> for NodeAddr

    §

    fn from(node_id: PublicKey) -> NodeAddr

    Converts to this type from the input type.
    §

    impl Ord for NodeAddr

    §

    fn cmp(&self, other: &NodeAddr) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for NodeAddr

    source§

    fn eq(&self, other: &NodeAddr) -> bool

    This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,
    Restrict a value to a certain interval. Read more
    §

    impl PartialEq for NodeAddr

    §

    fn eq(&self, other: &NodeAddr) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for NodeAddr

    source§

    fn partial_cmp(&self, other: &NodeAddr) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
    §

    impl PartialOrd for NodeAddr

    §

    fn partial_cmp(&self, other: &NodeAddr) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for NodeAddr

    source§

    fn serialize<__S>( +operator. Read more

    §

    impl Serialize for NodeAddr

    §

    fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where - __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Eq for NodeAddr

    source§

    impl StructuralPartialEq for NodeAddr

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    §

    impl Eq for NodeAddr

    §

    impl StructuralPartialEq for NodeAddr

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_net/ticket/struct.NodeTicket.html b/pr/2616/docs/iroh_net/ticket/struct.NodeTicket.html index 0ee7f59ac8..b94f13a4c7 100644 --- a/pr/2616/docs/iroh_net/ticket/struct.NodeTicket.html +++ b/pr/2616/docs/iroh_net/ticket/struct.NodeTicket.html @@ -1,17 +1,17 @@ -NodeTicket in iroh_net::ticket - Rust

    Struct iroh_net::ticket::NodeTicket

    source ·
    pub struct NodeTicket { /* private fields */ }
    Expand description

    A token containing everything to get a file from the provider.

    +NodeTicket in iroh_net::ticket - Rust

    Struct iroh_net::ticket::NodeTicket

    pub struct NodeTicket { /* private fields */ }
    Expand description

    A token containing everything to get a file from the provider.

    It is a single item which can be easily serialized and deserialized.

    -

    Implementations§

    source§

    impl NodeTicket

    source

    pub fn new(node: NodeAddr) -> Result<NodeTicket, Error>

    Creates a new ticket.

    -
    source

    pub fn node_addr(&self) -> &NodeAddr

    The NodeAddr of the provider for this ticket.

    -

    Trait Implementations§

    source§

    impl Clone for NodeTicket

    source§

    fn clone(&self) -> NodeTicket

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for NodeTicket

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for NodeTicket

    Implementations§

    §

    impl NodeTicket

    pub fn new(node: NodeAddr) -> Result<NodeTicket, Error>

    Creates a new ticket.

    +

    pub fn node_addr(&self) -> &NodeAddr

    The NodeAddr of the provider for this ticket.

    +

    Trait Implementations§

    §

    impl Clone for NodeTicket

    §

    fn clone(&self) -> NodeTicket

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for NodeTicket

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<'de> Deserialize<'de> for NodeTicket

    §

    fn deserialize<D>( deserializer: D ) -> Result<NodeTicket, <D as Deserializer<'de>>::Error>
    where - D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Display for NodeTicket

    source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    source§

    impl FromStr for NodeTicket

    §

    type Err = Error

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<NodeTicket, <NodeTicket as FromStr>::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl PartialEq for NodeTicket

    source§

    fn eq(&self, other: &NodeTicket) -> bool

    This method tests for self and other values to be equal, and is used + D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    §

    impl Display for NodeTicket

    §

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl FromStr for NodeTicket

    §

    type Err = Error

    The associated error which can be returned from parsing.
    §

    fn from_str(s: &str) -> Result<NodeTicket, <NodeTicket as FromStr>::Err>

    Parses a string s to return a value of this type. Read more
    §

    impl PartialEq for NodeTicket

    §

    fn eq(&self, other: &NodeTicket) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Serialize for NodeTicket

    source§

    fn serialize<S>( +sufficient, and should not be overridden without very good reason.

    §

    impl Serialize for NodeTicket

    §

    fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where - S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Ticket for NodeTicket

    source§

    const KIND: &'static str = "node"

    String prefix describing the kind of iroh ticket. Read more
    source§

    fn to_bytes(&self) -> Vec<u8> ⓘ

    Serialize to bytes used in the base32 string representation.
    source§

    fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>

    Deserialize from the base32 string representation bytes.
    source§

    fn serialize(&self) -> String

    Serialize to string.
    source§

    fn deserialize(str: &str) -> Result<Self, Error>

    Deserialize from a string.
    source§

    impl Eq for NodeTicket

    source§

    impl StructuralPartialEq for NodeTicket

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    §

    impl Ticket for NodeTicket

    §

    const KIND: &'static str = "node"

    String prefix describing the kind of iroh ticket. Read more
    §

    fn to_bytes(&self) -> Vec<u8> ⓘ

    Serialize to bytes used in the base32 string representation.
    §

    fn from_bytes(bytes: &[u8]) -> Result<NodeTicket, Error>

    Deserialize from the base32 string representation bytes.
    §

    fn serialize(&self) -> String

    Serialize to string.
    §

    fn deserialize(str: &str) -> Result<Self, Error>

    Deserialize from a string.
    §

    impl Eq for NodeTicket

    §

    impl StructuralPartialEq for NodeTicket

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_net/type.NodeId.html b/pr/2616/docs/iroh_net/type.NodeId.html index b93dbe8899..d4cef7e64d 100644 --- a/pr/2616/docs/iroh_net/type.NodeId.html +++ b/pr/2616/docs/iroh_net/type.NodeId.html @@ -1,4 +1,4 @@ -NodeId in iroh_net - Rust

    Type Alias iroh_net::NodeId

    source ·
    pub type NodeId = PublicKey;
    Expand description

    The identifier for a node in the (iroh) network.

    +NodeId in iroh_net - Rust

    Type Alias iroh_net::NodeId

    pub type NodeId = PublicKey;
    Expand description

    The identifier for a node in the (iroh) network.

    Each node in iroh has a unique identifier created as a cryptographic key. This can be used to globally identify a node. Since it is also a cryptographic key it is also the mechanism by which all traffic is always encrypted for a specific node only.

    diff --git a/pr/2616/docs/iroh_net_bench/enum.EndpointSelector.html b/pr/2616/docs/iroh_net_bench/enum.EndpointSelector.html index aa4f5a3ae7..78216bf1d2 100644 --- a/pr/2616/docs/iroh_net_bench/enum.EndpointSelector.html +++ b/pr/2616/docs/iroh_net_bench/enum.EndpointSelector.html @@ -1,7 +1,7 @@ EndpointSelector in iroh_net_bench - Rust

    Enum iroh_net_bench::EndpointSelector

    source ·
    pub enum EndpointSelector {
    -    Iroh(Endpoint),
    +    Iroh(Endpoint),
         Quinn(Endpoint),
    -}

    Variants§

    §

    Iroh(Endpoint)

    §

    Quinn(Endpoint)

    Implementations§

    source§

    impl EndpointSelector

    source

    pub async fn close(self) -> Result<()>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +}

    Variants§

    §

    Iroh(Endpoint)

    §

    Quinn(Endpoint)

    Implementations§

    source§

    impl EndpointSelector

    source

    pub async fn close(self) -> Result<()>

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_net_bench/iroh/fn.client.html b/pr/2616/docs/iroh_net_bench/iroh/fn.client.html index 9ffd08e5c9..b367f1d42f 100644 --- a/pr/2616/docs/iroh_net_bench/iroh/fn.client.html +++ b/pr/2616/docs/iroh_net_bench/iroh/fn.client.html @@ -1,2 +1,2 @@ -client in iroh_net_bench::iroh - Rust

    Function iroh_net_bench::iroh::client

    source ·
    pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
    Expand description

    Create and run a client

    +client in iroh_net_bench::iroh - Rust

    Function iroh_net_bench::iroh::client

    source ·
    pub async fn client(server_addr: NodeAddr, opt: Opt) -> Result<ClientStats>
    Expand description

    Create and run a client

    \ No newline at end of file diff --git a/pr/2616/docs/iroh_net_bench/iroh/fn.connect_client.html b/pr/2616/docs/iroh_net_bench/iroh/fn.connect_client.html index da423bb08a..615c72c823 100644 --- a/pr/2616/docs/iroh_net_bench/iroh/fn.connect_client.html +++ b/pr/2616/docs/iroh_net_bench/iroh/fn.connect_client.html @@ -1,5 +1,5 @@ connect_client in iroh_net_bench::iroh - Rust

    Function iroh_net_bench::iroh::connect_client

    source ·
    pub async fn connect_client(
    -    server_addr: NodeAddr,
    +    server_addr: NodeAddr,
         opt: Opt
    -) -> Result<(Endpoint, Connection)>
    Expand description

    Create a client endpoint and client connection

    +) -> Result<(Endpoint, Connection)>
    Expand description

    Create a client endpoint and client connection

    \ No newline at end of file diff --git a/pr/2616/docs/iroh_net_bench/iroh/fn.server.html b/pr/2616/docs/iroh_net_bench/iroh/fn.server.html index e39b541c3e..1b6db6f669 100644 --- a/pr/2616/docs/iroh_net_bench/iroh/fn.server.html +++ b/pr/2616/docs/iroh_net_bench/iroh/fn.server.html @@ -1,2 +1,2 @@ -server in iroh_net_bench::iroh - Rust

    Function iroh_net_bench::iroh::server

    source ·
    pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
    Expand description

    Take the provided endpoint and run the server

    +server in iroh_net_bench::iroh - Rust

    Function iroh_net_bench::iroh::server

    source ·
    pub async fn server(endpoint: Endpoint, opt: Opt) -> Result<()>
    Expand description

    Take the provided endpoint and run the server

    \ No newline at end of file diff --git a/pr/2616/docs/iroh_net_bench/iroh/fn.server_endpoint.html b/pr/2616/docs/iroh_net_bench/iroh/fn.server_endpoint.html index 621ba1f737..162c033071 100644 --- a/pr/2616/docs/iroh_net_bench/iroh/fn.server_endpoint.html +++ b/pr/2616/docs/iroh_net_bench/iroh/fn.server_endpoint.html @@ -1,2 +1,2 @@ -server_endpoint in iroh_net_bench::iroh - Rust

    Function iroh_net_bench::iroh::server_endpoint

    source ·
    pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
    Expand description

    Creates a server endpoint which runs on the given runtime

    +server_endpoint in iroh_net_bench::iroh - Rust

    Function iroh_net_bench::iroh::server_endpoint

    source ·
    pub fn server_endpoint(rt: &Runtime, opt: &Opt) -> (NodeAddr, Endpoint)
    Expand description

    Creates a server endpoint which runs on the given runtime

    \ No newline at end of file diff --git a/pr/2616/docs/iroh_relay/metrics/struct.StunMetrics.html b/pr/2616/docs/iroh_relay/metrics/struct.StunMetrics.html index 256afc7e0a..3d5ab2d776 100644 --- a/pr/2616/docs/iroh_relay/metrics/struct.StunMetrics.html +++ b/pr/2616/docs/iroh_relay/metrics/struct.StunMetrics.html @@ -1,18 +1,18 @@ StunMetrics in iroh_relay::metrics - Rust

    Struct iroh_relay::metrics::StunMetrics

    source ·
    pub struct StunMetrics {
    -    pub requests: Counter,
    -    pub ipv4_success: Counter,
    -    pub ipv6_success: Counter,
    -    pub bad_requests: Counter,
    -    pub failures: Counter,
    +    pub requests: Counter,
    +    pub ipv4_success: Counter,
    +    pub ipv6_success: Counter,
    +    pub bad_requests: Counter,
    +    pub failures: Counter,
     }
    Expand description

    StunMetrics tracked for the relay server

    -

    Fields§

    §requests: Counter

    Number of stun requests made

    -
    §ipv4_success: Counter

    Number of successful requests over ipv4

    -
    §ipv6_success: Counter

    Number of successful requests over ipv6

    -
    §bad_requests: Counter

    Number of bad requests, either non-stun packets or incorrect binding request

    -
    §failures: Counter

    Number of failures

    -

    Trait Implementations§

    source§

    impl Clone for StunMetrics

    source§

    fn clone(&self) -> StunMetrics

    Returns a 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 StunMetrics

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for StunMetrics

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Iterable for StunMetrics

    source§

    fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

    Returns an iterator over the struct’s fields as tuples. Read more
    source§

    impl Metric for StunMetrics

    source§

    fn name() -> &'static str

    The name of this metric group.
    source§

    fn new(registry: &mut Registry) -> Self

    Initializes this metric group.
    source§

    fn with_metric<T, F>(f: F)
    where +

    Fields§

    §requests: Counter

    Number of stun requests made

    +
    §ipv4_success: Counter

    Number of successful requests over ipv4

    +
    §ipv6_success: Counter

    Number of successful requests over ipv6

    +
    §bad_requests: Counter

    Number of bad requests, either non-stun packets or incorrect binding request

    +
    §failures: Counter

    Number of failures

    +

    Trait Implementations§

    source§

    impl Clone for StunMetrics

    source§

    fn clone(&self) -> StunMetrics

    Returns a 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 StunMetrics

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for StunMetrics

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    source§

    impl Iterable for StunMetrics

    source§

    fn iter<'a>(&'a self) -> IntoIter<(&'static str, &'a dyn Any)>

    Returns an iterator over the struct’s fields as tuples. Read more
    source§

    impl Metric for StunMetrics

    source§

    fn name() -> &'static str

    The name of this metric group.
    §

    fn new(registry: &mut Registry) -> Self

    Initializes this metric group.
    §

    fn with_metric<T, F>(f: F)
    where F: FnOnce(&Self) -> T,

    Access to this metrics group to record a metric. -Only records if this metric is registered in the global registry.
    source§

    fn try_get() -> Option<&'static Self>

    Attempts to get the current metric from the global registry.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +Only records if this metric is registered in the global registry.

    §

    fn try_get() -> Option<&'static Self>

    Attempts to get the current metric from the global registry.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_relay/struct.Config.html b/pr/2616/docs/iroh_relay/struct.Config.html index 697002933a..6250fdec42 100644 --- a/pr/2616/docs/iroh_relay/struct.Config.html +++ b/pr/2616/docs/iroh_relay/struct.Config.html @@ -1,5 +1,5 @@ Config in iroh_relay - Rust

    Struct iroh_relay::Config

    source ·
    pub(crate) struct Config {
    -    pub(crate) secret_key: SecretKey,
    +    pub(crate) secret_key: SecretKey,
         pub(crate) enable_relay: bool,
         pub(crate) http_bind_addr: Option<SocketAddr>,
         pub(crate) tls: Option<TlsConfig>,
    @@ -10,7 +10,7 @@
         pub(crate) metrics_bind_addr: Option<SocketAddr>,
     }
    Expand description

    Configuration for the relay-server.

    This is (de)serialised to/from a TOML config file.

    -

    Fields§

    §secret_key: SecretKey

    The iroh SecretKey for this relay server.

    +

    Fields§

    §secret_key: SecretKey

    The iroh [SecretKey] for this relay server.

    If not specified a new key will be generated and the config file will be re-written using it.

    §enable_relay: bool

    Whether to enable the Relay server.

    diff --git a/pr/2616/docs/iroh_willow/all.html b/pr/2616/docs/iroh_willow/all.html index 0ac751be23..99444ab35b 100644 --- a/pr/2616/docs/iroh_willow/all.html +++ b/pr/2616/docs/iroh_willow/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/2616/docs/iroh_willow/engine/struct.AcceptOpts.html b/pr/2616/docs/iroh_willow/engine/struct.AcceptOpts.html index 3a71053c8b..18508eb493 100644 --- a/pr/2616/docs/iroh_willow/engine/struct.AcceptOpts.html +++ b/pr/2616/docs/iroh_willow/engine/struct.AcceptOpts.html @@ -9,15 +9,15 @@ signal a specific interest ourselves as well submit.

    Use Self::track_events to receive events for sessions we accepted.

    Implementations§

    source§

    impl AcceptOpts

    source

    pub fn accept_custom<F, Fut>(self, cb: F) -> Self
    where - F: Fn(NodeId) -> Fut + Send + Sync + 'static, + F: Fn(NodeId) -> Fut + Send + Sync + 'static, Fut: Future<Output = Option<SessionInit>> + Send + 'static,

    Registers a callback to determine the fate of incoming connections.

    -

    The callback gets the connecting peer’s NodeId as argument, and must return a future +

    The callback gets the connecting peer’s [NodeId] as argument, and must return a future that resolves to None or Some([SessionInit]). When returning None, the session will not be accepted. When returning a SessionInit, the session will be accepted with these interests.

    The default behavior, if not registering a callback, is to accept all incoming connections with interests in everything we have and in live session mode.

    -
    source

    pub fn track_events(self, sender: Sender<(NodeId, EventKind)>) -> Self

    Registers an event channel for events from accepted connections.

    +
    source

    pub fn track_events(self, sender: Sender<(NodeId, EventKind)>) -> Self

    Registers an event channel for events from accepted connections.

    If called, the passed [mpsc::Sender] will receive all events emitted from session intents for incoming connections. The corresponding [mpsc::Receiver] must then be received from in a loop. The session will be blocked from proceeding if the receiver is not diff --git a/pr/2616/docs/iroh_willow/engine/struct.ActorHandle.html b/pr/2616/docs/iroh_willow/engine/struct.ActorHandle.html index c58e75f234..9d206557d1 100644 --- a/pr/2616/docs/iroh_willow/engine/struct.ActorHandle.html +++ b/pr/2616/docs/iroh_willow/engine/struct.ActorHandle.html @@ -1,6 +1,6 @@ -ActorHandle in iroh_willow::engine - Rust

    Struct iroh_willow::engine::ActorHandle

    source ·
    pub struct ActorHandle { /* private fields */ }

    Implementations§

    source§

    impl ActorHandle

    source

    pub fn spawn_memory(payloads: Store, me: NodeId) -> Self

    source

    pub fn spawn<S: Storage>( +ActorHandle in iroh_willow::engine - Rust

    Struct iroh_willow::engine::ActorHandle

    source ·
    pub struct ActorHandle { /* private fields */ }

    Implementations§

    source§

    impl ActorHandle

    source

    pub fn spawn_memory(payloads: Store, me: NodeId) -> Self

    source

    pub fn spawn<S: Storage>( create_store: impl 'static + Send + FnOnce() -> S, - me: NodeId + me: NodeId ) -> ActorHandle

    source

    pub async fn ingest_entry( &self, authorised_entry: AuthorisedEntry diff --git a/pr/2616/docs/iroh_willow/engine/struct.Engine.html b/pr/2616/docs/iroh_willow/engine/struct.Engine.html index 5c61b322e3..ad2a4c7ca0 100644 --- a/pr/2616/docs/iroh_willow/engine/struct.Engine.html +++ b/pr/2616/docs/iroh_willow/engine/struct.Engine.html @@ -4,7 +4,7 @@ accept_opts: AcceptOpts ) -> Self

    source

    pub async fn handle_connection(&self, conn: Connection) -> Result<()>

    source

    pub async fn sync_with_peer( &self, - peer: NodeId, + peer: NodeId, init: SessionInit ) -> Result<IntentHandle>

    source

    pub async fn shutdown(self) -> Result<()>

    Methods from Deref<Target = ActorHandle>§

    source

    pub async fn ingest_entry( &self, diff --git a/pr/2616/docs/iroh_willow/form/enum.PayloadForm.html b/pr/2616/docs/iroh_willow/form/enum.PayloadForm.html index 658f2426cb..409cd04bf1 100644 --- a/pr/2616/docs/iroh_willow/form/enum.PayloadForm.html +++ b/pr/2616/docs/iroh_willow/form/enum.PayloadForm.html @@ -1,17 +1,17 @@ PayloadForm in iroh_willow::form - Rust

    Enum iroh_willow::form::PayloadForm

    source ·
    pub enum PayloadForm {
    -    Hash(Hash),
    +    Hash(Hash),
         Bytes(Bytes),
    -    File(PathBuf, ImportMode),
    +    File(PathBuf, ImportMode),
         Stream(Box<dyn Stream<Item = Result<Bytes>> + Send + Sync + Unpin>),
         Reader(Box<dyn AsyncRead + Send + Sync + Unpin>),
     }
    Expand description

    Sources where payload data can come from.

    -

    Variants§

    §

    Hash(Hash)

    Set the payload hash directly. The blob must exist in the node’s blob store, this will fail +

    Variants§

    §

    Hash(Hash)

    Set the payload hash directly. The blob must exist in the node’s blob store, this will fail otherwise.

    §

    Bytes(Bytes)

    Import data from the provided bytes and set as payload.

    -
    §

    File(PathBuf, ImportMode)

    Import data from a file on the node’s local file system and set as payload.

    +
    §

    File(PathBuf, ImportMode)

    Import data from a file on the node’s local file system and set as payload.

    §

    Stream(Box<dyn Stream<Item = Result<Bytes>> + Send + Sync + Unpin>)

    Import data from a [Stream] of bytes and set as payload.

    §

    Reader(Box<dyn AsyncRead + Send + Sync + Unpin>)

    Import data from a [AsyncRead] and set as payload.

    -

    Implementations§

    source§

    impl PayloadForm

    source

    pub async fn submit<S: Store>(self, store: &S) -> Result<(Hash, u64)>

    Trait Implementations§

    source§

    impl Debug for PayloadForm

    source§

    fn fmt(&self, __derive_more_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 +

    Implementations§

    source§

    impl PayloadForm

    source

    pub async fn submit<S: Store>(self, store: &S) -> Result<(Hash, u64)>

    Trait Implementations§

    source§

    impl Debug for PayloadForm

    source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_willow/proto/data_model/struct.PayloadDigest.html b/pr/2616/docs/iroh_willow/proto/data_model/struct.PayloadDigest.html index 2aa8f387a5..61eab1a205 100644 --- a/pr/2616/docs/iroh_willow/proto/data_model/struct.PayloadDigest.html +++ b/pr/2616/docs/iroh_willow/proto/data_model/struct.PayloadDigest.html @@ -1,6 +1,6 @@ -PayloadDigest in iroh_willow::proto::data_model - Rust

    Struct iroh_willow::proto::data_model::PayloadDigest

    source ·
    pub struct PayloadDigest(pub Hash);
    Expand description

    A payload digest used in entries.

    +PayloadDigest in iroh_willow::proto::data_model - Rust

    Struct iroh_willow::proto::data_model::PayloadDigest

    source ·
    pub struct PayloadDigest(pub Hash);
    Expand description

    A payload digest used in entries.

    This wraps a [Hash] blake3 hash.

    -

    Tuple Fields§

    §0: Hash

    Trait Implementations§

    source§

    impl Clone for PayloadDigest

    source§

    fn clone(&self) -> PayloadDigest

    Returns a 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 PayloadDigest

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Decodable for PayloadDigest

    source§

    fn decode<Producer>( +

    Tuple Fields§

    §0: Hash

    Trait Implementations§

    source§

    impl Clone for PayloadDigest

    source§

    fn clone(&self) -> PayloadDigest

    Returns a 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 PayloadDigest

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Decodable for PayloadDigest

    source§

    fn decode<Producer>( producer: &mut Producer ) -> Result<Self, DecodeError<Producer::Error>>
    where Producer: BulkProducer<Item = u8>, @@ -16,7 +16,7 @@ &self, consumer: &mut Consumer ) -> Result<(), Consumer::Error>
    where - Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl From<Hash> for PayloadDigest

    source§

    fn from(value: Hash) -> Self

    Converts to this type from the input type.
    source§

    impl From<PayloadDigest> for Hash

    source§

    fn from(value: PayloadDigest) -> Self

    Converts to this type from the input type.
    source§

    impl Hash for PayloadDigest

    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 + Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl From<Hash> for PayloadDigest

    source§

    fn from(value: Hash) -> Self

    Converts to this type from the input type.
    source§

    impl From<PayloadDigest> for Hash

    source§

    fn from(value: PayloadDigest) -> Self

    Converts to this type from the input type.
    source§

    impl Hash for PayloadDigest

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for PayloadDigest

    source§

    fn cmp(&self, other: &PayloadDigest) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where diff --git a/pr/2616/docs/iroh_willow/proto/keys/constant.PUBLIC_KEY_LENGTH.html b/pr/2616/docs/iroh_willow/proto/keys/constant.PUBLIC_KEY_LENGTH.html index 8749c3a8e4..26e93a2358 100644 --- a/pr/2616/docs/iroh_willow/proto/keys/constant.PUBLIC_KEY_LENGTH.html +++ b/pr/2616/docs/iroh_willow/proto/keys/constant.PUBLIC_KEY_LENGTH.html @@ -1 +1 @@ -PUBLIC_KEY_LENGTH in iroh_willow::proto::keys - Rust

    Constant iroh_willow::proto::keys::PUBLIC_KEY_LENGTH

    source ·
    pub const PUBLIC_KEY_LENGTH: usize = ed25519_dalek::PUBLIC_KEY_LENGTH; // 32usize
    \ No newline at end of file +PUBLIC_KEY_LENGTH in iroh_willow::proto::keys - Rust

    Constant iroh_willow::proto::keys::PUBLIC_KEY_LENGTH

    source ·
    pub const PUBLIC_KEY_LENGTH: usize = ed25519_dalek::PUBLIC_KEY_LENGTH; // 32usize
    \ No newline at end of file diff --git a/pr/2616/docs/iroh_willow/proto/keys/constant.SECRET_KEY_LENGTH.html b/pr/2616/docs/iroh_willow/proto/keys/constant.SECRET_KEY_LENGTH.html index 901680ea50..b74ea28c06 100644 --- a/pr/2616/docs/iroh_willow/proto/keys/constant.SECRET_KEY_LENGTH.html +++ b/pr/2616/docs/iroh_willow/proto/keys/constant.SECRET_KEY_LENGTH.html @@ -1 +1 @@ -SECRET_KEY_LENGTH in iroh_willow::proto::keys - Rust

    Constant iroh_willow::proto::keys::SECRET_KEY_LENGTH

    source ·
    pub const SECRET_KEY_LENGTH: usize = ed25519_dalek::SECRET_KEY_LENGTH; // 32usize
    \ No newline at end of file +SECRET_KEY_LENGTH in iroh_willow::proto::keys - Rust

    Constant iroh_willow::proto::keys::SECRET_KEY_LENGTH

    source ·
    pub const SECRET_KEY_LENGTH: usize = ed25519_dalek::SECRET_KEY_LENGTH; // 32usize
    \ No newline at end of file diff --git a/pr/2616/docs/iroh_willow/proto/keys/constant.SIGNATURE_LENGTH.html b/pr/2616/docs/iroh_willow/proto/keys/constant.SIGNATURE_LENGTH.html index bd1c0bfb96..55f50315db 100644 --- a/pr/2616/docs/iroh_willow/proto/keys/constant.SIGNATURE_LENGTH.html +++ b/pr/2616/docs/iroh_willow/proto/keys/constant.SIGNATURE_LENGTH.html @@ -1 +1 @@ -SIGNATURE_LENGTH in iroh_willow::proto::keys - Rust

    Constant iroh_willow::proto::keys::SIGNATURE_LENGTH

    source ·
    pub const SIGNATURE_LENGTH: usize = ed25519_dalek::SIGNATURE_LENGTH; // 64usize
    \ No newline at end of file +SIGNATURE_LENGTH in iroh_willow::proto::keys - Rust

    Constant iroh_willow::proto::keys::SIGNATURE_LENGTH

    source ·
    pub const SIGNATURE_LENGTH: usize = ed25519_dalek::SIGNATURE_LENGTH; // 64usize
    \ No newline at end of file diff --git a/pr/2616/docs/iroh_willow/proto/keys/enum.NamespaceKind.html b/pr/2616/docs/iroh_willow/proto/keys/enum.NamespaceKind.html index 69dc3248b8..bc691f01f7 100644 --- a/pr/2616/docs/iroh_willow/proto/keys/enum.NamespaceKind.html +++ b/pr/2616/docs/iroh_willow/proto/keys/enum.NamespaceKind.html @@ -1,4 +1,4 @@ -NamespaceKind in iroh_willow::proto::keys - Rust

    Enum iroh_willow::proto::keys::NamespaceKind

    source ·
    pub enum NamespaceKind {
    +NamespaceKind in iroh_willow::proto::keys - Rust

    Enum iroh_willow::proto::keys::NamespaceKind

    source ·
    pub enum NamespaceKind {
         Communal,
         Owned,
     }
    Expand description

    The type of the namespace, either communal or owned.

    @@ -6,9 +6,9 @@ and if the last bit is zero it is an owned namespace.

    Variants§

    §

    Communal

    Communal namespace, needs [super::meadowcap::CommunalCapability] to authorizse.

    §

    Owned

    Owned namespace, needs [super::meadowcap::OwnedCapability] to authorize.

    -

    Trait Implementations§

    source§

    impl Clone for NamespaceKind

    source§

    fn clone(&self) -> NamespaceKind

    Returns a 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 NamespaceKind

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl PartialEq for NamespaceKind

    source§

    fn eq(&self, other: &NamespaceKind) -> bool

    This method tests for self and other values to be equal, and is used +

    Trait Implementations§

    source§

    impl Clone for NamespaceKind

    source§

    fn clone(&self) -> NamespaceKind

    Returns a 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 NamespaceKind

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl PartialEq for NamespaceKind

    source§

    fn eq(&self, other: &NamespaceKind) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for NamespaceKind

    source§

    impl Eq for NamespaceKind

    source§

    impl StructuralPartialEq for NamespaceKind

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +sufficient, and should not be overridden without very good reason.

    source§

    impl Copy for NamespaceKind

    source§

    impl Eq for NamespaceKind

    source§

    impl StructuralPartialEq for NamespaceKind

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_willow/proto/keys/index.html b/pr/2616/docs/iroh_willow/proto/keys/index.html index ca4fc586fd..3ebe1938b1 100644 --- a/pr/2616/docs/iroh_willow/proto/keys/index.html +++ b/pr/2616/docs/iroh_willow/proto/keys/index.html @@ -1,4 +1,4 @@ -iroh_willow::proto::keys - Rust

    Module iroh_willow::proto::keys

    source ·
    Expand description

    Public-key crypto types for willow

    +iroh_willow::proto::keys - Rust

    Module iroh_willow::proto::keys

    source ·
    Expand description

    Public-key crypto types for willow

    This modules defines types which are wrappers around [ed25519_dalek] public-key crypto types.

    We also define an Id type which is a public key represented as [u8; 32], which is smaller than the expanded PublicKey representation needed for signature verification

    diff --git a/pr/2616/docs/iroh_willow/proto/keys/struct.NamespaceId.html b/pr/2616/docs/iroh_willow/proto/keys/struct.NamespaceId.html index d0b46c918f..c99adbc96c 100644 --- a/pr/2616/docs/iroh_willow/proto/keys/struct.NamespaceId.html +++ b/pr/2616/docs/iroh_willow/proto/keys/struct.NamespaceId.html @@ -1,44 +1,44 @@ -NamespaceId in iroh_willow::proto::keys - Rust

    Struct iroh_willow::proto::keys::NamespaceId

    source ·
    pub struct NamespaceId(/* private fields */);
    Expand description

    Implementations§

    source§

    impl NamespaceId

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    -
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string +NamespaceId in iroh_willow::proto::keys - Rust

    Struct iroh_willow::proto::keys::NamespaceId

    source ·
    pub struct NamespaceId(/* private fields */);
    Expand description

    Implementations§

    source§

    impl NamespaceId

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    +
    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.

    -
    source§

    impl NamespaceId

    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Convert to byte slice.

    -
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    -
    source

    pub fn into_public_key(&self) -> Result<NamespacePublicKey, SignatureError>

    Convert into NamespacePublicKey.

    +
    source§

    impl NamespaceId

    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Convert to byte slice.

    +
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    +
    source

    pub fn into_public_key(&self) -> Result<NamespacePublicKey, SignatureError>

    Convert into NamespacePublicKey.

    Fails if the bytes of this NamespaceId are not a valid [ed25519_dalek] curve point.

    -
    source

    pub fn from_bytes_unchecked(bytes: [u8; 32]) -> Self

    Create from a byte array.

    +
    source

    pub fn from_bytes_unchecked(bytes: [u8; 32]) -> Self

    Create from a byte array.

    Does not check if the byte array are a valid NamespacePublicKey

    -

    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

    Formats the value using the given formatter. Read more
    source§

    impl Decodable for NamespaceId

    source§

    fn decode<Producer>( +

    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

    Formats the value using the given formatter. Read more
    source§

    impl Decodable for NamespaceId

    source§

    fn decode<Producer>( producer: &mut Producer ) -> Result<Self, DecodeError<Producer::Error>>
    where - Producer: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Decodable for NamespaceId

    source§

    async fn decode<Producer>( + Producer: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more

    source§

    impl Decodable for NamespaceId

    source§

    async fn decode<Producer>( producer: &mut Producer ) -> Result<Self, DecodeError<Producer::Error>>
    where - Producer: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. 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<Self, __D::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

    Formats the value using the given formatter. Read more
    source§

    impl Encodable for NamespaceId

    source§

    async fn encode<Consumer>( + Producer: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. 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<Self, __D::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

    Formats the value using the given formatter. Read more
    source§

    impl Encodable for NamespaceId

    source§

    async fn encode<Consumer>( &self, consumer: &mut Consumer ) -> Result<(), Consumer::Error>
    where - Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Encodable for NamespaceId

    source§

    fn encode<Consumer>( + Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more

    source§

    impl Encodable for NamespaceId

    source§

    fn encode<Consumer>( &self, consumer: &mut Consumer ) -> Result<(), Consumer::Error>
    where - Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl From<&NamespacePublicKey> for NamespaceId

    source§

    fn from(value: &NamespacePublicKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<[u8; 32]> for NamespaceId

    source§

    fn from(value: [u8; 32]) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespaceId> for [u8; 32]

    source§

    fn from(value: NamespaceId) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespaceId> for CapSelector

    source§

    fn from(value: NamespaceId) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespacePublicKey> for NamespaceId

    source§

    fn from(value: NamespacePublicKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespaceSecretKey> for NamespaceId

    source§

    fn from(value: NamespaceSecretKey) -> Self

    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<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Hash for NamespaceId

    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 + Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl From<&NamespacePublicKey> for NamespaceId

    source§

    fn from(value: &NamespacePublicKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<[u8; 32]> for NamespaceId

    source§

    fn from(value: [u8; 32]) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespaceId> for [u8; 32]

    source§

    fn from(value: NamespaceId) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespaceId> for CapSelector

    source§

    fn from(value: NamespaceId) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespacePublicKey> for NamespaceId

    source§

    fn from(value: NamespacePublicKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespaceSecretKey> for NamespaceId

    source§

    fn from(value: NamespaceSecretKey) -> Self

    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<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Hash for NamespaceId

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for 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 + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl IsCommunal for NamespaceId

    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 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 NamespaceId

    source§

    fn eq(&self, other: &NamespaceId) -> 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 NamespaceId

    source§

    fn eq(&self, other: &NamespaceId) -> 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 NamespaceId

    source§

    fn partial_cmp(&self, other: &NamespaceId) -> 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 NamespaceId

    source§

    fn partial_cmp(&self, other: &NamespaceId) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for NamespaceId

    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 TryFrom<NamespaceId> for NamespacePublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: NamespaceId) -> Result<Self, Self::Error>

    Performs the conversion.
    source§

    impl Verifier<NamespaceSignature> for NamespaceId

    source§

    fn verify( +operator. Read more

    source§

    impl Serialize for NamespaceId

    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 TryFrom<NamespaceId> for NamespacePublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: NamespaceId) -> Result<Self, Self::Error>

    Performs the conversion.
    source§

    impl Verifier<NamespaceSignature> for NamespaceId

    source§

    fn verify( &self, msg: &[u8], signature: &NamespaceSignature ) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message -bytestring is authentic. Read more
    source§

    impl Copy for NamespaceId

    source§

    impl Eq for NamespaceId

    source§

    impl NamespaceId for NamespaceId

    source§

    impl StructuralPartialEq for NamespaceId

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +bytestring is authentic. Read more

    source§

    impl Copy for NamespaceId

    source§

    impl Eq for NamespaceId

    source§

    impl NamespaceId for NamespaceId

    source§

    impl StructuralPartialEq for NamespaceId

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<A, T> AsBits<T> for A
    where A: AsRef<[T]>, T: BitStore,

    §

    fn as_bits<O>(&self) -> &BitSlice<T, O>
    where diff --git a/pr/2616/docs/iroh_willow/proto/keys/struct.NamespacePublicKey.html b/pr/2616/docs/iroh_willow/proto/keys/struct.NamespacePublicKey.html index 4badd46a0e..42af9ce42a 100644 --- a/pr/2616/docs/iroh_willow/proto/keys/struct.NamespacePublicKey.html +++ b/pr/2616/docs/iroh_willow/proto/keys/struct.NamespacePublicKey.html @@ -1,45 +1,44 @@ -NamespacePublicKey in iroh_willow::proto::keys - Rust

    Struct iroh_willow::proto::keys::NamespacePublicKey

    source ·
    pub struct NamespacePublicKey(/* private fields */);
    Expand description

    The corresponding public key for a `NamespaceSecretKey.

    -

    Implementations§

    source§

    impl NamespacePublicKey

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    -
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string +NamespacePublicKey in iroh_willow::proto::keys - Rust

    Struct iroh_willow::proto::keys::NamespacePublicKey

    source ·
    pub struct NamespacePublicKey(/* private fields */);
    Expand description

    The corresponding public key for a `NamespaceSecretKey.

    +

    Implementations§

    source§

    impl NamespacePublicKey

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    +
    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.

    -
    source§

    impl NamespacePublicKey

    source

    pub fn is_communal(&self) -> bool

    Whether this is the key for a communal namespace.

    -
    source

    pub fn kind(&self) -> NamespaceKind

    source

    pub fn verify( +

    source§

    impl NamespacePublicKey

    source

    pub fn kind(&self) -> NamespaceKind

    source

    pub fn verify( &self, msg: &[u8], signature: &NamespaceSignature ) -> Result<(), SignatureError>

    Verify that a signature matches the msg bytes and was created with the [NamespaceSecretKey] that corresponds to this [NamespaceId`].

    -
    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Get this NamespaceId as a byte slice.

    -
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    -
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<Self, SignatureError>

    Create from a slice of bytes.

    +
    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Get this NamespaceId as a byte slice.

    +
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    +
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<Self, SignatureError>

    Create from a slice of bytes.

    Will return an error if the input bytes do not represent a valid [ed25519_dalek] curve point. Will never fail for a byte array returned from Self::as_bytes. See [VerifyingKey::from_bytes] for details.

    -
    source

    pub fn id(&self) -> NamespaceId

    Convert into a NamespaceId.

    -

    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

    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<Self, __D::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

    Formats the value using the given formatter. Read more
    source§

    impl Encodable for NamespacePublicKey

    source§

    fn encode<Consumer>( +

    source

    pub fn id(&self) -> NamespaceId

    Convert into a NamespaceId.

    +

    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

    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<Self, __D::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

    Formats the value using the given formatter. Read more
    source§

    impl Encodable for NamespacePublicKey

    source§

    fn encode<Consumer>( &self, consumer: &mut Consumer ) -> Result<(), Consumer::Error>
    where - Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Encodable for NamespacePublicKey

    source§

    async fn encode<Consumer>( + Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Encodable for NamespacePublicKey

    source§

    async fn encode<Consumer>( &self, consumer: &mut Consumer ) -> Result<(), Consumer::Error>
    where - Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl From<&NamespacePublicKey> for NamespaceId

    source§

    fn from(value: &NamespacePublicKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<&NamespaceSecretKey> for NamespacePublicKey

    source§

    fn from(value: &NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespacePublicKey> for NamespaceId

    source§

    fn from(value: NamespacePublicKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespaceSecretKey> for NamespacePublicKey

    source§

    fn from(value: NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<VerifyingKey> for NamespacePublicKey

    source§

    fn from(value: VerifyingKey) -> Self

    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<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Hash for NamespacePublicKey

    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 + Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl From<&NamespacePublicKey> for NamespaceId

    source§

    fn from(value: &NamespacePublicKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<&NamespaceSecretKey> for NamespacePublicKey

    source§

    fn from(value: &NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespacePublicKey> for NamespaceId

    source§

    fn from(value: NamespacePublicKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespaceSecretKey> for NamespacePublicKey

    source§

    fn from(value: NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<VerifyingKey> for NamespacePublicKey

    source§

    fn from(value: VerifyingKey) -> Self

    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<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Hash for NamespacePublicKey

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for NamespacePublicKey

    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 + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl IsCommunal for NamespacePublicKey

    source§

    impl Ord for NamespacePublicKey

    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 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 NamespacePublicKey

    source§

    fn eq(&self, other: &NamespacePublicKey) -> 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 NamespacePublicKey

    source§

    fn eq(&self, other: &NamespacePublicKey) -> 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 NamespacePublicKey

    source§

    fn partial_cmp(&self, other: &Self) -> 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 NamespacePublicKey

    source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for NamespacePublicKey

    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 TryFrom<NamespaceId> for NamespacePublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: NamespaceId) -> Result<Self, Self::Error>

    Performs the conversion.
    source§

    impl Verifier<NamespaceSignature> for NamespacePublicKey

    source§

    fn verify( +operator. Read more

    source§

    impl Serialize for NamespacePublicKey

    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 TryFrom<NamespaceId> for NamespacePublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: NamespaceId) -> Result<Self, Self::Error>

    Performs the conversion.
    source§

    impl Verifier<NamespaceSignature> for NamespacePublicKey

    source§

    fn verify( &self, msg: &[u8], signature: &NamespaceSignature ) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message -bytestring is authentic. Read more
    source§

    impl Copy for NamespacePublicKey

    source§

    impl Eq for NamespacePublicKey

    source§

    impl NamespaceId for NamespacePublicKey

    source§

    impl StructuralPartialEq for NamespacePublicKey

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +bytestring is authentic. Read more

    source§

    impl Copy for NamespacePublicKey

    source§

    impl Eq for NamespacePublicKey

    source§

    impl NamespaceId for NamespacePublicKey

    source§

    impl StructuralPartialEq for NamespacePublicKey

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_willow/proto/keys/struct.NamespaceSecretKey.html b/pr/2616/docs/iroh_willow/proto/keys/struct.NamespaceSecretKey.html index 849825b1fe..dddda9aa85 100644 --- a/pr/2616/docs/iroh_willow/proto/keys/struct.NamespaceSecretKey.html +++ b/pr/2616/docs/iroh_willow/proto/keys/struct.NamespaceSecretKey.html @@ -1,24 +1,24 @@ -NamespaceSecretKey in iroh_willow::proto::keys - Rust

    Struct iroh_willow::proto::keys::NamespaceSecretKey

    source ·
    pub struct NamespaceSecretKey(/* private fields */);
    Expand description

    Namespace secret key.

    -

    Implementations§

    source§

    impl NamespaceSecretKey

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    -
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string +NamespaceSecretKey in iroh_willow::proto::keys - Rust

    Struct iroh_willow::proto::keys::NamespaceSecretKey

    source ·
    pub struct NamespaceSecretKey(/* private fields */);
    Expand description

    Namespace secret key.

    +

    Implementations§

    source§

    impl NamespaceSecretKey

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    +
    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.

    -
    source§

    impl NamespaceSecretKey

    source§

    impl NamespaceSecretKey

    source

    pub fn generate<R: CryptoRngCore + ?Sized>( rng: &mut R, typ: NamespaceKind ) -> Self

    Create a new, random [NamespaceSecretKey] with an encoded [NamespaceKind`].

    -
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Self

    Create a `NamespaceSecretKey from a byte array.

    -
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    -
    source

    pub fn public_key(&self) -> NamespacePublicKey

    Get the NamespacePublicKey for this namespace.

    -
    source

    pub fn id(&self) -> NamespaceId

    Get the NamespaceId for this namespace.

    -
    source

    pub fn sign(&self, msg: &[u8]) -> NamespaceSignature

    Sign a message with this `NamespaceSecretKey key.

    -
    source

    pub fn verify( +

    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Self

    Create a `NamespaceSecretKey from a byte array.

    +
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    +
    source

    pub fn public_key(&self) -> NamespacePublicKey

    Get the NamespacePublicKey for this namespace.

    +
    source

    pub fn id(&self) -> NamespaceId

    Get the NamespaceId for this namespace.

    +
    source

    pub fn sign(&self, msg: &[u8]) -> NamespaceSignature

    Sign a message with this `NamespaceSecretKey key.

    +
    source

    pub fn verify( &self, msg: &[u8], signature: &NamespaceSignature ) -> Result<(), SignatureError>

    Strictly verify a signature on a message with this `NamespaceSecretKey’s public key.

    -

    Trait Implementations§

    source§

    impl Clone for NamespaceSecretKey

    source§

    fn clone(&self) -> NamespaceSecretKey

    Returns a 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 NamespaceSecretKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for NamespaceSecretKey

    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 NamespaceSecretKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl From<&NamespaceSecretKey> for NamespacePublicKey

    source§

    fn from(value: &NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespaceSecretKey> for NamespaceId

    source§

    fn from(value: NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespaceSecretKey> for NamespacePublicKey

    source§

    fn from(value: NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespaceSecretKey> for SecretKey

    source§

    fn from(value: NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<SigningKey> for NamespaceSecretKey

    source§

    fn from(signing_key: SigningKey) -> Self

    Converts to this type from the input type.
    source§

    impl FromStr for NamespaceSecretKey

    §

    type Err = Error

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Serialize for NamespaceSecretKey

    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 Signer<NamespaceSignature> for NamespaceSecretKey

    source§

    fn try_sign(&self, msg: &[u8]) -> Result<NamespaceSignature, Error>

    Attempt to sign the given message, returning a digital signature on +

    Trait Implementations§

    source§

    impl Clone for NamespaceSecretKey

    source§

    fn clone(&self) -> NamespaceSecretKey

    Returns a 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 NamespaceSecretKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for NamespaceSecretKey

    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 NamespaceSecretKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl From<&NamespaceSecretKey> for NamespacePublicKey

    source§

    fn from(value: &NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespaceSecretKey> for NamespaceId

    source§

    fn from(value: NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespaceSecretKey> for NamespacePublicKey

    source§

    fn from(value: NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<NamespaceSecretKey> for SecretKey

    source§

    fn from(value: NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<SigningKey> for NamespaceSecretKey

    source§

    fn from(signing_key: SigningKey) -> Self

    Converts to this type from the input type.
    source§

    impl FromStr for NamespaceSecretKey

    §

    type Err = Error

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Serialize for NamespaceSecretKey

    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 Signer<NamespaceSignature> for NamespaceSecretKey

    source§

    fn try_sign(&self, msg: &[u8]) -> Result<NamespaceSignature, Error>

    Attempt to sign the given message, returning a digital signature on success, or an error if something went wrong. Read more
    §

    fn sign(&self, msg: &[u8]) -> S

    Sign the given message and return a digital signature

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_willow/proto/keys/struct.NamespaceSignature.html b/pr/2616/docs/iroh_willow/proto/keys/struct.NamespaceSignature.html index 96f25f8ef6..c477f7f609 100644 --- a/pr/2616/docs/iroh_willow/proto/keys/struct.NamespaceSignature.html +++ b/pr/2616/docs/iroh_willow/proto/keys/struct.NamespaceSignature.html @@ -1,49 +1,49 @@ -NamespaceSignature in iroh_willow::proto::keys - Rust

    Struct iroh_willow::proto::keys::NamespaceSignature

    source ·
    pub struct NamespaceSignature(/* private fields */);
    Expand description

    The signature obtained by signing a message with a NamespaceSecretKey.

    -

    Implementations§

    source§

    impl NamespaceSignature

    source

    pub fn from_bytes(bytes: [u8; 64]) -> Self

    Create from a byte array.

    -
    source§

    impl NamespaceSignature

    source

    pub const LENGTH: usize = 64usize

    Length of the byte encoding of Self.

    -
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string +NamespaceSignature in iroh_willow::proto::keys - Rust

    Struct iroh_willow::proto::keys::NamespaceSignature

    source ·
    pub struct NamespaceSignature(/* private fields */);
    Expand description

    The signature obtained by signing a message with a NamespaceSecretKey.

    +

    Implementations§

    source§

    impl NamespaceSignature

    source

    pub fn from_bytes(bytes: [u8; 64]) -> Self

    Create from a byte array.

    +
    source§

    impl NamespaceSignature

    source

    pub const LENGTH: usize = 64usize

    Length of the byte encoding of Self.

    +
    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.

    Methods from Deref<Target = Signature>§

    pub const BYTE_SIZE: usize = 64usize

    pub fn r_bytes(&self) -> &[u8; 32]

    Bytes for the R component of a signature.

    pub fn s_bytes(&self) -> &[u8; 32]

    Bytes for the s component of a signature.

    pub fn to_bytes(&self) -> [u8; 64]

    Return the inner byte array.

    pub fn to_vec(&self) -> Vec<u8> ⓘ

    Convert this signature into a byte vector.

    -

    Trait Implementations§

    source§

    impl Clone for NamespaceSignature

    source§

    fn clone(&self) -> NamespaceSignature

    Returns a 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 NamespaceSignature

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Decodable for NamespaceSignature

    source§

    fn decode<Producer>( +

    Trait Implementations§

    source§

    impl Clone for NamespaceSignature

    source§

    fn clone(&self) -> NamespaceSignature

    Returns a 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 NamespaceSignature

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Decodable for NamespaceSignature

    source§

    fn decode<Producer>( producer: &mut Producer ) -> Result<Self, DecodeError<Producer::Error>>
    where - Producer: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Decodable for NamespaceSignature

    source§

    async fn decode<Producer>( + Producer: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more

    source§

    impl Decodable for NamespaceSignature

    source§

    async fn decode<Producer>( producer: &mut Producer ) -> Result<Self, DecodeError<Producer::Error>>
    where - Producer: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Deref for NamespaceSignature

    §

    type Target = Signature

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for NamespaceSignature

    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 NamespaceSignature

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Encodable for NamespaceSignature

    source§

    async fn encode<Consumer>( + Producer: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Deref for NamespaceSignature

    §

    type Target = Signature

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for NamespaceSignature

    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 NamespaceSignature

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Encodable for NamespaceSignature

    source§

    async fn encode<Consumer>( &self, consumer: &mut Consumer ) -> Result<(), Consumer::Error>
    where - Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Encodable for NamespaceSignature

    source§

    fn encode<Consumer>( + Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Encodable for NamespaceSignature

    source§

    fn encode<Consumer>( &self, consumer: &mut Consumer ) -> Result<(), Consumer::Error>
    where - Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl From<Signature> for NamespaceSignature

    source§

    fn from(value: Signature) -> Self

    Converts to this type from the input type.
    source§

    impl Hash for NamespaceSignature

    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 + Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl From<Signature> for NamespaceSignature

    source§

    fn from(value: Signature) -> Self

    Converts to this type from the input type.
    source§

    impl Hash for NamespaceSignature

    source§

    fn hash<H: Hasher>(&self, state: &mut H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for NamespaceSignature

    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 + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for NamespaceSignature

    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 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 NamespaceSignature

    source§

    fn eq(&self, other: &NamespaceSignature) -> 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 NamespaceSignature

    source§

    fn eq(&self, other: &NamespaceSignature) -> 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 NamespaceSignature

    source§

    fn partial_cmp(&self, other: &Self) -> 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 NamespaceSignature

    source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for NamespaceSignature

    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 Signer<NamespaceSignature> for NamespaceSecretKey

    source§

    fn try_sign(&self, msg: &[u8]) -> Result<NamespaceSignature, Error>

    Attempt to sign the given message, returning a digital signature on -success, or an error if something went wrong. Read more
    §

    fn sign(&self, msg: &[u8]) -> S

    Sign the given message and return a digital signature
    source§

    impl Verifier<NamespaceSignature> for NamespaceId

    source§

    fn verify( +operator. Read more

    source§

    impl Serialize for NamespaceSignature

    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 Signer<NamespaceSignature> for NamespaceSecretKey

    source§

    fn try_sign(&self, msg: &[u8]) -> Result<NamespaceSignature, Error>

    Attempt to sign the given message, returning a digital signature on +success, or an error if something went wrong. Read more
    §

    fn sign(&self, msg: &[u8]) -> S

    Sign the given message and return a digital signature
    source§

    impl Verifier<NamespaceSignature> for NamespaceId

    source§

    fn verify( &self, msg: &[u8], signature: &NamespaceSignature ) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message -bytestring is authentic. Read more
    source§

    impl Verifier<NamespaceSignature> for NamespacePublicKey

    source§

    fn verify( +bytestring is authentic. Read more

    source§

    impl Verifier<NamespaceSignature> for NamespacePublicKey

    source§

    fn verify( &self, msg: &[u8], signature: &NamespaceSignature ) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message -bytestring is authentic. Read more
    source§

    impl Eq for NamespaceSignature

    source§

    impl StructuralPartialEq for NamespaceSignature

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +bytestring is authentic. Read more

    source§

    impl Eq for NamespaceSignature

    source§

    impl StructuralPartialEq for NamespaceSignature

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_willow/proto/keys/struct.UserId.html b/pr/2616/docs/iroh_willow/proto/keys/struct.UserId.html index 88117b7190..b4582a529d 100644 --- a/pr/2616/docs/iroh_willow/proto/keys/struct.UserId.html +++ b/pr/2616/docs/iroh_willow/proto/keys/struct.UserId.html @@ -1,41 +1,41 @@ -UserId in iroh_willow::proto::keys - Rust

    Struct iroh_willow::proto::keys::UserId

    source ·
    pub struct UserId(/* private fields */);
    Expand description

    UserPublicKey in bytes

    -

    Implementations§

    source§

    impl UserId

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    -
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string +UserId in iroh_willow::proto::keys - Rust

    Struct iroh_willow::proto::keys::UserId

    source ·
    pub struct UserId(/* private fields */);
    Expand description

    UserPublicKey in bytes

    +

    Implementations§

    source§

    impl UserId

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    +
    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.

    -
    source§

    impl UserId

    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Convert to byte slice.

    -
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    -
    source

    pub fn into_public_key(&self) -> Result<UserPublicKey, SignatureError>

    Convert into UserPublicKey.

    +
    source§

    impl UserId

    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Convert to byte slice.

    +
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    +
    source

    pub fn into_public_key(&self) -> Result<UserPublicKey, SignatureError>

    Convert into UserPublicKey.

    Fails if the bytes of this UserId are not a valid [ed25519_dalek] curve point.

    -
    source

    pub fn from_bytes_unchecked(bytes: [u8; 32]) -> Self

    Create from a byte array.

    +
    source

    pub fn from_bytes_unchecked(bytes: [u8; 32]) -> Self

    Create from a byte array.

    Does not check if the byte array are a valid UserPublicKey

    -

    Trait Implementations§

    source§

    impl AsRef<[u8]> for UserId

    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 UserId

    source§

    fn as_ref(&self) -> &[u8; 32]

    Converts this type into a shared reference of the (usually inferred) input type.
    source§

    impl Clone for UserId

    source§

    fn clone(&self) -> UserId

    Returns a 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 UserId

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Decodable for UserId

    source§

    fn decode<Producer>( +

    Trait Implementations§

    source§

    impl AsRef<[u8]> for UserId

    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 UserId

    source§

    fn as_ref(&self) -> &[u8; 32]

    Converts this type into a shared reference of the (usually inferred) input type.
    source§

    impl Clone for UserId

    source§

    fn clone(&self) -> UserId

    Returns a 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 UserId

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Decodable for UserId

    source§

    fn decode<Producer>( producer: &mut Producer ) -> Result<Self, DecodeError<Producer::Error>>
    where - Producer: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Decodable for UserId

    source§

    async fn decode<Producer>( + Producer: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Decodable for UserId

    source§

    async fn decode<Producer>( producer: &mut Producer ) -> Result<Self, DecodeError<Producer::Error>>
    where - Producer: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Default for UserId

    source§

    fn default() -> UserId

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for UserId

    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 UserId

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Encodable for UserId

    source§

    fn encode<Consumer>( + Producer: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Default for UserId

    source§

    fn default() -> UserId

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for UserId

    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 UserId

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Encodable for UserId

    source§

    fn encode<Consumer>( &self, consumer: &mut Consumer ) -> Result<(), Consumer::Error>
    where - Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Encodable for UserId

    source§

    async fn encode<Consumer>( + Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Encodable for UserId

    source§

    async fn encode<Consumer>( &self, consumer: &mut Consumer ) -> Result<(), Consumer::Error>
    where - Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl From<&UserPublicKey> for UserId

    source§

    fn from(value: &UserPublicKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<[u8; 32]> for UserId

    source§

    fn from(value: [u8; 32]) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserId> for [u8; 32]

    source§

    fn from(value: UserId) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserId> for AuthForm

    source§

    fn from(value: UserId) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserId> for ReceiverSelector

    source§

    fn from(value: UserId) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserPublicKey> for UserId

    source§

    fn from(value: UserPublicKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserSecretKey> for UserId

    source§

    fn from(value: UserSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl FromStr for UserId

    §

    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 UserId

    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 + Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl From<&UserPublicKey> for UserId

    source§

    fn from(value: &UserPublicKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<[u8; 32]> for UserId

    source§

    fn from(value: [u8; 32]) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserId> for [u8; 32]

    source§

    fn from(value: UserId) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserId> for AuthForm

    source§

    fn from(value: UserId) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserId> for ReceiverSelector

    source§

    fn from(value: UserId) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserPublicKey> for UserId

    source§

    fn from(value: UserPublicKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserSecretKey> for UserId

    source§

    fn from(value: UserSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl FromStr for UserId

    §

    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 UserId

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for UserId

    source§

    fn cmp(&self, other: &UserId) -> 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 UserId

    source§

    fn cmp(&self, other: &UserId) -> 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 UserId

    source§

    fn eq(&self, other: &UserId) -> 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 UserId

    source§

    fn eq(&self, other: &UserId) -> 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 UserId

    source§

    fn partial_cmp(&self, other: &UserId) -> 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 UserId

    source§

    fn partial_cmp(&self, other: &UserId) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for UserId

    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 SubspaceId for UserId

    source§

    fn successor(&self) -> Option<Self>

    Return the next possible value in the set of all [SubspaceId]. -e.g. the successor of 3 is 4.
    source§

    impl TryFrom<UserId> for UserPublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: UserId) -> Result<Self, Self::Error>

    Performs the conversion.
    source§

    impl Verifier<UserSignature> for UserId

    source§

    fn verify(&self, msg: &[u8], signature: &UserSignature) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message -bytestring is authentic. Read more
    source§

    impl Copy for UserId

    source§

    impl Eq for UserId

    source§

    impl StructuralPartialEq for UserId

    Auto Trait Implementations§

    §

    impl Freeze for UserId

    §

    impl RefUnwindSafe for UserId

    §

    impl Send for UserId

    §

    impl Sync for UserId

    §

    impl Unpin for UserId

    §

    impl UnwindSafe for UserId

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +operator. Read more

    source§

    impl Serialize for UserId

    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 SubspaceId for UserId

    source§

    fn successor(&self) -> Option<Self>

    Return the next possible value in the set of all [SubspaceId]. +e.g. the successor of 3 is 4.
    source§

    impl TryFrom<UserId> for UserPublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: UserId) -> Result<Self, Self::Error>

    Performs the conversion.
    source§

    impl Verifier<UserSignature> for UserId

    source§

    fn verify(&self, msg: &[u8], signature: &UserSignature) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message +bytestring is authentic. Read more
    source§

    impl Copy for UserId

    source§

    impl Eq for UserId

    source§

    impl StructuralPartialEq for UserId

    Auto Trait Implementations§

    §

    impl Freeze for UserId

    §

    impl RefUnwindSafe for UserId

    §

    impl Send for UserId

    §

    impl Sync for UserId

    §

    impl Unpin for UserId

    §

    impl UnwindSafe for UserId

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<A, T> AsBits<T> for A
    where A: AsRef<[T]>, T: BitStore,

    §

    fn as_bits<O>(&self) -> &BitSlice<T, O>
    where diff --git a/pr/2616/docs/iroh_willow/proto/keys/struct.UserPublicKey.html b/pr/2616/docs/iroh_willow/proto/keys/struct.UserPublicKey.html index 3aed3f3bb9..05a05336ca 100644 --- a/pr/2616/docs/iroh_willow/proto/keys/struct.UserPublicKey.html +++ b/pr/2616/docs/iroh_willow/proto/keys/struct.UserPublicKey.html @@ -1,42 +1,42 @@ -UserPublicKey in iroh_willow::proto::keys - Rust

    Struct iroh_willow::proto::keys::UserPublicKey

    source ·
    pub struct UserPublicKey(/* private fields */);
    Expand description

    The corresponding public key for a `UserSecretKey.

    -

    Implementations§

    source§

    impl UserPublicKey

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    -
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string +UserPublicKey in iroh_willow::proto::keys - Rust

    Struct iroh_willow::proto::keys::UserPublicKey

    source ·
    pub struct UserPublicKey(/* private fields */);
    Expand description

    The corresponding public key for a `UserSecretKey.

    +

    Implementations§

    source§

    impl UserPublicKey

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    +
    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.

    -
    source§

    impl UserPublicKey

    source

    pub fn verify( +

    source§

    impl UserPublicKey

    source

    pub fn verify( &self, msg: &[u8], signature: &UserSignature ) -> Result<(), SignatureError>

    Verify that a signature matches the msg bytes and was created with the UserSecretKey that corresponds to this UserId.

    -
    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Get this UserId as a byte slice.

    -
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    -
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<Self, SignatureError>

    Create from a slice of bytes.

    +
    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Get this UserId as a byte slice.

    +
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    +
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<Self, SignatureError>

    Create from a slice of bytes.

    Will return an error if the input bytes do not represent a valid [ed25519_dalek] curve point. Will never fail for a byte array returned from Self::as_bytes. See [VerifyingKey::from_bytes] for details.

    -
    source

    pub fn id(&self) -> UserId

    Convert into a UserId.

    -

    Trait Implementations§

    source§

    impl Clone for UserPublicKey

    source§

    fn clone(&self) -> UserPublicKey

    Returns a 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 UserPublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for UserPublicKey

    source§

    fn default() -> UserPublicKey

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for UserPublicKey

    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 UserPublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Encodable for UserPublicKey

    source§

    async fn encode<Consumer>( +

    source

    pub fn id(&self) -> UserId

    Convert into a UserId.

    +

    Trait Implementations§

    source§

    impl Clone for UserPublicKey

    source§

    fn clone(&self) -> UserPublicKey

    Returns a 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 UserPublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Default for UserPublicKey

    source§

    fn default() -> UserPublicKey

    Returns the “default value” for a type. Read more
    source§

    impl<'de> Deserialize<'de> for UserPublicKey

    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 UserPublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Encodable for UserPublicKey

    source§

    async fn encode<Consumer>( &self, consumer: &mut Consumer ) -> Result<(), Consumer::Error>
    where - Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Encodable for UserPublicKey

    source§

    fn encode<Consumer>( + Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Encodable for UserPublicKey

    source§

    fn encode<Consumer>( &self, consumer: &mut Consumer ) -> Result<(), Consumer::Error>
    where - Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl From<&UserPublicKey> for UserId

    source§

    fn from(value: &UserPublicKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<&UserSecretKey> for UserPublicKey

    source§

    fn from(value: &UserSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserPublicKey> for UserId

    source§

    fn from(value: UserPublicKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserSecretKey> for UserPublicKey

    source§

    fn from(value: UserSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<VerifyingKey> for UserPublicKey

    source§

    fn from(value: VerifyingKey) -> Self

    Converts to this type from the input type.
    source§

    impl FromStr for UserPublicKey

    §

    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 UserPublicKey

    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 + Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl From<&UserPublicKey> for UserId

    source§

    fn from(value: &UserPublicKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<&UserSecretKey> for UserPublicKey

    source§

    fn from(value: &UserSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserPublicKey> for UserId

    source§

    fn from(value: UserPublicKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserSecretKey> for UserPublicKey

    source§

    fn from(value: UserSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<VerifyingKey> for UserPublicKey

    source§

    fn from(value: VerifyingKey) -> Self

    Converts to this type from the input type.
    source§

    impl FromStr for UserPublicKey

    §

    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 UserPublicKey

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for UserPublicKey

    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 + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for UserPublicKey

    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 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 UserPublicKey

    source§

    fn eq(&self, other: &UserPublicKey) -> 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 UserPublicKey

    source§

    fn eq(&self, other: &UserPublicKey) -> 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 UserPublicKey

    source§

    fn partial_cmp(&self, other: &Self) -> 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 UserPublicKey

    source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for UserPublicKey

    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 SubspaceId for UserPublicKey

    source§

    fn successor(&self) -> Option<Self>

    Return the next possible value in the set of all [SubspaceId]. -e.g. the successor of 3 is 4.
    source§

    impl TryFrom<UserId> for UserPublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: UserId) -> Result<Self, Self::Error>

    Performs the conversion.
    source§

    impl Verifier<UserSignature> for UserPublicKey

    source§

    fn verify(&self, msg: &[u8], signature: &UserSignature) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message -bytestring is authentic. Read more
    source§

    impl Copy for UserPublicKey

    source§

    impl Eq for UserPublicKey

    source§

    impl StructuralPartialEq for UserPublicKey

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +operator. Read more

    source§

    impl Serialize for UserPublicKey

    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 SubspaceId for UserPublicKey

    source§

    fn successor(&self) -> Option<Self>

    Return the next possible value in the set of all [SubspaceId]. +e.g. the successor of 3 is 4.
    source§

    impl TryFrom<UserId> for UserPublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: UserId) -> Result<Self, Self::Error>

    Performs the conversion.
    source§

    impl Verifier<UserSignature> for UserPublicKey

    source§

    fn verify(&self, msg: &[u8], signature: &UserSignature) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message +bytestring is authentic. Read more
    source§

    impl Copy for UserPublicKey

    source§

    impl Eq for UserPublicKey

    source§

    impl StructuralPartialEq for UserPublicKey

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_willow/proto/keys/struct.UserSecretKey.html b/pr/2616/docs/iroh_willow/proto/keys/struct.UserSecretKey.html index f4dda9178f..e016006d4e 100644 --- a/pr/2616/docs/iroh_willow/proto/keys/struct.UserSecretKey.html +++ b/pr/2616/docs/iroh_willow/proto/keys/struct.UserSecretKey.html @@ -1,21 +1,21 @@ -UserSecretKey in iroh_willow::proto::keys - Rust

    Struct iroh_willow::proto::keys::UserSecretKey

    source ·
    pub struct UserSecretKey(/* private fields */);
    Expand description

    User secret key.

    -

    Implementations§

    source§

    impl UserSecretKey

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    -
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string +UserSecretKey in iroh_willow::proto::keys - Rust

    Struct iroh_willow::proto::keys::UserSecretKey

    source ·
    pub struct UserSecretKey(/* private fields */);
    Expand description

    User secret key.

    +

    Implementations§

    source§

    impl UserSecretKey

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    +
    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.

    -
    source§

    impl UserSecretKey

    source

    pub fn generate<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self

    Create a new UserSecretKey with a random key.

    -
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Self

    Create from a byte slice.

    -
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    -
    source

    pub fn public_key(&self) -> UserPublicKey

    Get the UserPublicKey for this author.

    -
    source

    pub fn id(&self) -> UserId

    Get the UserId for this author.

    -
    source

    pub fn sign(&self, msg: &[u8]) -> UserSignature

    Sign a message with this UserSecretKey key.

    -
    source

    pub fn verify( +

    source§

    impl UserSecretKey

    source

    pub fn generate<R: CryptoRngCore + ?Sized>(rng: &mut R) -> Self

    Create a new UserSecretKey with a random key.

    +
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Self

    Create from a byte slice.

    +
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    +
    source

    pub fn public_key(&self) -> UserPublicKey

    Get the UserPublicKey for this author.

    +
    source

    pub fn id(&self) -> UserId

    Get the UserId for this author.

    +
    source

    pub fn sign(&self, msg: &[u8]) -> UserSignature

    Sign a message with this UserSecretKey key.

    +
    source

    pub fn verify( &self, msg: &[u8], signature: &UserSignature ) -> Result<(), SignatureError>

    Strictly verify a signature on a message with this UserSecretKey’s public key.

    -

    Trait Implementations§

    source§

    impl Clone for UserSecretKey

    source§

    fn clone(&self) -> UserSecretKey

    Returns a 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 UserSecretKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for UserSecretKey

    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 UserSecretKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl From<&UserSecretKey> for UserPublicKey

    source§

    fn from(value: &UserSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<SigningKey> for UserSecretKey

    source§

    fn from(signing_key: SigningKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserSecretKey> for SecretKey

    source§

    fn from(value: UserSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserSecretKey> for UserId

    source§

    fn from(value: UserSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserSecretKey> for UserPublicKey

    source§

    fn from(value: UserSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl FromStr for UserSecretKey

    §

    type Err = Error

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Serialize for UserSecretKey

    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 Signer<UserSignature> for UserSecretKey

    source§

    fn try_sign(&self, msg: &[u8]) -> Result<UserSignature, Error>

    Attempt to sign the given message, returning a digital signature on +

    Trait Implementations§

    source§

    impl Clone for UserSecretKey

    source§

    fn clone(&self) -> UserSecretKey

    Returns a 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 UserSecretKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for UserSecretKey

    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 UserSecretKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl From<&UserSecretKey> for UserPublicKey

    source§

    fn from(value: &UserSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<SigningKey> for UserSecretKey

    source§

    fn from(signing_key: SigningKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserSecretKey> for SecretKey

    source§

    fn from(value: UserSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserSecretKey> for UserId

    source§

    fn from(value: UserSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl From<UserSecretKey> for UserPublicKey

    source§

    fn from(value: UserSecretKey) -> Self

    Converts to this type from the input type.
    source§

    impl FromStr for UserSecretKey

    §

    type Err = Error

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<Self, Self::Err>

    Parses a string s to return a value of this type. Read more
    source§

    impl Serialize for UserSecretKey

    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 Signer<UserSignature> for UserSecretKey

    source§

    fn try_sign(&self, msg: &[u8]) -> Result<UserSignature, Error>

    Attempt to sign the given message, returning a digital signature on success, or an error if something went wrong. Read more
    §

    fn sign(&self, msg: &[u8]) -> S

    Sign the given message and return a digital signature

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_willow/proto/keys/struct.UserSignature.html b/pr/2616/docs/iroh_willow/proto/keys/struct.UserSignature.html index 7566f2aaaf..910de1d53b 100644 --- a/pr/2616/docs/iroh_willow/proto/keys/struct.UserSignature.html +++ b/pr/2616/docs/iroh_willow/proto/keys/struct.UserSignature.html @@ -1,41 +1,41 @@ -UserSignature in iroh_willow::proto::keys - Rust

    Struct iroh_willow::proto::keys::UserSignature

    source ·
    pub struct UserSignature(/* private fields */);
    Expand description

    The signature obtained by signing a message with a UserSecretKey.

    -

    Implementations§

    source§

    impl UserSignature

    source

    pub fn from_bytes(bytes: [u8; 64]) -> Self

    Create from a byte array.

    -
    source§

    impl UserSignature

    source

    pub const LENGTH: usize = 64usize

    Length of the byte encoding of Self.

    -
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string +UserSignature in iroh_willow::proto::keys - Rust

    Struct iroh_willow::proto::keys::UserSignature

    source ·
    pub struct UserSignature(/* private fields */);
    Expand description

    The signature obtained by signing a message with a UserSecretKey.

    +

    Implementations§

    source§

    impl UserSignature

    source

    pub fn from_bytes(bytes: [u8; 64]) -> Self

    Create from a byte array.

    +
    source§

    impl UserSignature

    source

    pub const LENGTH: usize = 64usize

    Length of the byte encoding of Self.

    +
    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.

    Methods from Deref<Target = Signature>§

    pub const BYTE_SIZE: usize = 64usize

    pub fn r_bytes(&self) -> &[u8; 32]

    Bytes for the R component of a signature.

    pub fn s_bytes(&self) -> &[u8; 32]

    Bytes for the s component of a signature.

    pub fn to_bytes(&self) -> [u8; 64]

    Return the inner byte array.

    pub fn to_vec(&self) -> Vec<u8> ⓘ

    Convert this signature into a byte vector.

    -

    Trait Implementations§

    source§

    impl Clone for UserSignature

    source§

    fn clone(&self) -> UserSignature

    Returns a 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 UserSignature

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Decodable for UserSignature

    source§

    fn decode<Producer>( +

    Trait Implementations§

    source§

    impl Clone for UserSignature

    source§

    fn clone(&self) -> UserSignature

    Returns a 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 UserSignature

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Decodable for UserSignature

    source§

    fn decode<Producer>( producer: &mut Producer ) -> Result<Self, DecodeError<Producer::Error>>
    where - Producer: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Decodable for UserSignature

    source§

    async fn decode<Producer>( + Producer: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Decodable for UserSignature

    source§

    async fn decode<Producer>( producer: &mut Producer ) -> Result<Self, DecodeError<Producer::Error>>
    where - Producer: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Deref for UserSignature

    §

    type Target = Signature

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for UserSignature

    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 UserSignature

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Encodable for UserSignature

    source§

    async fn encode<Consumer>( + Producer: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Deref for UserSignature

    §

    type Target = Signature

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for UserSignature

    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 UserSignature

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Encodable for UserSignature

    source§

    async fn encode<Consumer>( &self, consumer: &mut Consumer ) -> Result<(), Consumer::Error>
    where - Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Encodable for UserSignature

    source§

    fn encode<Consumer>( + Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl Encodable for UserSignature

    source§

    fn encode<Consumer>( &self, consumer: &mut Consumer ) -> Result<(), Consumer::Error>
    where - Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl From<Signature> for UserSignature

    source§

    fn from(value: Signature) -> Self

    Converts to this type from the input type.
    source§

    impl Hash for UserSignature

    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 + Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    source§

    impl From<Signature> for UserSignature

    source§

    fn from(value: Signature) -> Self

    Converts to this type from the input type.
    source§

    impl Hash for UserSignature

    source§

    fn hash<H: Hasher>(&self, state: &mut H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for UserSignature

    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 + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl Ord for UserSignature

    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 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 UserSignature

    source§

    fn eq(&self, other: &UserSignature) -> 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 UserSignature

    source§

    fn eq(&self, other: &UserSignature) -> 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 UserSignature

    source§

    fn partial_cmp(&self, other: &Self) -> 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 UserSignature

    source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Serialize for UserSignature

    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 Signer<UserSignature> for UserSecretKey

    source§

    fn try_sign(&self, msg: &[u8]) -> Result<UserSignature, Error>

    Attempt to sign the given message, returning a digital signature on -success, or an error if something went wrong. Read more
    §

    fn sign(&self, msg: &[u8]) -> S

    Sign the given message and return a digital signature
    source§

    impl Verifier<UserSignature> for UserId

    source§

    fn verify(&self, msg: &[u8], signature: &UserSignature) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message -bytestring is authentic. Read more
    source§

    impl Verifier<UserSignature> for UserPublicKey

    source§

    fn verify(&self, msg: &[u8], signature: &UserSignature) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message -bytestring is authentic. Read more
    source§

    impl Eq for UserSignature

    source§

    impl StructuralPartialEq for UserSignature

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +operator. Read more

    source§

    impl Serialize for UserSignature

    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 Signer<UserSignature> for UserSecretKey

    source§

    fn try_sign(&self, msg: &[u8]) -> Result<UserSignature, Error>

    Attempt to sign the given message, returning a digital signature on +success, or an error if something went wrong. Read more
    §

    fn sign(&self, msg: &[u8]) -> S

    Sign the given message and return a digital signature
    source§

    impl Verifier<UserSignature> for UserId

    source§

    fn verify(&self, msg: &[u8], signature: &UserSignature) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message +bytestring is authentic. Read more
    source§

    impl Verifier<UserSignature> for UserPublicKey

    source§

    fn verify(&self, msg: &[u8], signature: &UserSignature) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message +bytestring is authentic. Read more
    source§

    impl Eq for UserSignature

    source§

    impl StructuralPartialEq for UserSignature

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_willow/proto/meadowcap/fn.is_authorised_write.html b/pr/2616/docs/iroh_willow/proto/meadowcap/fn.is_authorised_write.html index c5575765eb..091b226407 100644 --- a/pr/2616/docs/iroh_willow/proto/meadowcap/fn.is_authorised_write.html +++ b/pr/2616/docs/iroh_willow/proto/meadowcap/fn.is_authorised_write.html @@ -1 +1 @@ -is_authorised_write in iroh_willow::proto::meadowcap - Rust

    Function iroh_willow::proto::meadowcap::is_authorised_write

    source ·
    pub fn is_authorised_write(entry: &Entry, token: &McAuthorisationToken) -> bool
    \ No newline at end of file +is_authorised_write in iroh_willow::proto::meadowcap - Rust

    Function iroh_willow::proto::meadowcap::is_authorised_write

    source ·
    pub fn is_authorised_write(entry: &Entry, token: &McAuthorisationToken) -> bool
    \ No newline at end of file diff --git a/pr/2616/docs/iroh_willow/proto/meadowcap/fn.is_wider_than.html b/pr/2616/docs/iroh_willow/proto/meadowcap/fn.is_wider_than.html index 7b1b46dd16..7c39514df0 100644 --- a/pr/2616/docs/iroh_willow/proto/meadowcap/fn.is_wider_than.html +++ b/pr/2616/docs/iroh_willow/proto/meadowcap/fn.is_wider_than.html @@ -1,3 +1,3 @@ -is_wider_than in iroh_willow::proto::meadowcap - Rust

    Function iroh_willow::proto::meadowcap::is_wider_than

    source ·
    pub fn is_wider_than(a: &McCapability, b: &McCapability) -> bool
    Expand description

    Returns true if self covers a larger area than other, +is_wider_than in iroh_willow::proto::meadowcap - Rust

    Function iroh_willow::proto::meadowcap::is_wider_than

    source ·
    pub fn is_wider_than(a: &McCapability, b: &McCapability) -> bool
    Expand description

    Returns true if self covers a larger area than other, or if covers the same area and has less delegations.

    \ No newline at end of file diff --git a/pr/2616/docs/iroh_willow/proto/meadowcap/index.html b/pr/2616/docs/iroh_willow/proto/meadowcap/index.html index 5ec0d7dbe4..1a1f63f296 100644 --- a/pr/2616/docs/iroh_willow/proto/meadowcap/index.html +++ b/pr/2616/docs/iroh_willow/proto/meadowcap/index.html @@ -1,2 +1,2 @@ -iroh_willow::proto::meadowcap - Rust

    Module iroh_willow::proto::meadowcap

    source ·

    Modules§

    Structs§

    Enums§

    Functions§

    Return a new [McAuthorisationToken], or an error if the resulting signature was not for the capability’s receiver.

    -

    Trait Implementations§

    source§

    impl Clone for SerdeMcCapability

    source§

    fn clone(&self) -> SerdeMcCapability

    Returns a 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 SerdeMcCapability

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deref for SerdeMcCapability

    §

    type Target = McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for SerdeMcCapability

    source§

    fn deserialize<D>(deserializer: D) -> Result<SerdeMcCapability, D::Error>
    where - D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability

    source§

    fn from(value: McCapability) -> Self

    Converts to this type from the input type.
    source§

    impl From<SerdeMcCapability> for AuthForm

    source§

    fn from(value: SerdeWriteCapability) -> Self

    Converts to this type from the input type.
    source§

    impl From<SerdeMcCapability> for McCapability

    source§

    fn from(value: SerdeMcCapability) -> Self

    Converts to this type from the input type.
    source§

    impl Hash for SerdeMcCapability

    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 SerdeMcCapability

    source§

    fn clone(&self) -> SerdeMcCapability

    Returns a 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 SerdeMcCapability

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deref for SerdeMcCapability

    §

    type Target = McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for SerdeMcCapability

    source§

    fn deserialize<D>(deserializer: D) -> Result<SerdeMcCapability, D::Error>
    where + D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability

    source§

    fn from(value: McCapability) -> Self

    Converts to this type from the input type.
    source§

    impl From<SerdeMcCapability> for AuthForm

    source§

    fn from(value: SerdeWriteCapability) -> Self

    Converts to this type from the input type.
    source§

    impl From<SerdeMcCapability> for McCapability

    source§

    fn from(value: SerdeMcCapability) -> Self

    Converts to this type from the input type.
    source§

    impl Hash for SerdeMcCapability

    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 PartialEq for SerdeMcCapability

    source§

    fn eq(&self, other: &SerdeMcCapability) -> bool

    This method tests for self and other values to be equal, and is used + Self: Sized,
    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for SerdeMcCapability

    source§

    fn eq(&self, other: &SerdeMcCapability) -> 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 SerdeMcCapability

    source§

    fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Eq for SerdeMcCapability

    source§

    impl StructuralPartialEq for SerdeMcCapability

    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 SerdeMcCapability

    source§

    fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Eq for SerdeMcCapability

    source§

    impl StructuralPartialEq for SerdeMcCapability

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_willow/proto/meadowcap/serde_encoding/struct.SerdeMcSubspaceCapability.html b/pr/2616/docs/iroh_willow/proto/meadowcap/serde_encoding/struct.SerdeMcSubspaceCapability.html index aa054c5889..0cd34c18b0 100644 --- a/pr/2616/docs/iroh_willow/proto/meadowcap/serde_encoding/struct.SerdeMcSubspaceCapability.html +++ b/pr/2616/docs/iroh_willow/proto/meadowcap/serde_encoding/struct.SerdeMcSubspaceCapability.html @@ -1,4 +1,4 @@ -SerdeMcSubspaceCapability in iroh_willow::proto::meadowcap::serde_encoding - Rust
    pub struct SerdeMcSubspaceCapability(pub McSubspaceCapability);

    Tuple Fields§

    §0: McSubspaceCapability

    Methods from Deref<Target = McSubspaceCapability>§

    pub fn receiver(&self) -> &UserPublicKey

    The user to whom this capability grants access.

    +SerdeMcSubspaceCapability in iroh_willow::proto::meadowcap::serde_encoding - Rust
    pub struct SerdeMcSubspaceCapability(pub McSubspaceCapability);

    Tuple Fields§

    §0: McSubspaceCapability

    Methods from Deref<Target = McSubspaceCapability>§

    pub fn receiver(&self) -> &UserPublicKey

    The user to whom this capability grants access.

    Definition

    pub fn granted_namespace(&self) -> &NamespacePublicKey

    The namespace for which this capability grants access.

    Definition

    @@ -12,10 +12,10 @@ Will fail if the given secret key does not correspond to the subspace capability

    pub fn delegations( &self ) -> impl Iterator<Item = &SubspaceDelegation<UserPublicKey, UserSignature>>

    Return a slice of all [SubspaceDelegation]s made to this capability.

    -

    Trait Implementations§

    source§

    impl Clone for SerdeMcSubspaceCapability

    source§

    fn clone(&self) -> SerdeMcSubspaceCapability

    Returns a 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 SerdeMcSubspaceCapability

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deref for SerdeMcSubspaceCapability

    §

    type Target = McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for SerdeMcSubspaceCapability

    Trait Implementations§

    source§

    impl Clone for SerdeMcSubspaceCapability

    source§

    fn clone(&self) -> SerdeMcSubspaceCapability

    Returns a 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 SerdeMcSubspaceCapability

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deref for SerdeMcSubspaceCapability

    §

    type Target = McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for SerdeMcSubspaceCapability

    source§

    fn deserialize<D>( deserializer: D ) -> Result<SerdeMcSubspaceCapability, D::Error>
    where - D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability

    source§

    fn from(value: McSubspaceCapability) -> Self

    Converts to this type from the input type.
    source§

    impl From<SerdeMcSubspaceCapability> for McSubspaceCapability

    source§

    fn from(value: SerdeMcSubspaceCapability) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for SerdeMcSubspaceCapability

    source§

    fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

    Serialize this value into the given Serde serializer. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where + D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability

    source§

    fn from(value: McSubspaceCapability) -> Self

    Converts to this type from the input type.
    source§

    impl From<SerdeMcSubspaceCapability> for McSubspaceCapability

    source§

    fn from(value: SerdeMcSubspaceCapability) -> Self

    Converts to this type from the input type.
    source§

    impl Serialize for SerdeMcSubspaceCapability

    source§

    fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

    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 T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_willow/proto/meadowcap/serde_encoding/struct.SerdeReadAuthorisation.html b/pr/2616/docs/iroh_willow/proto/meadowcap/serde_encoding/struct.SerdeReadAuthorisation.html index 19a202d95f..7a4057f1e9 100644 --- a/pr/2616/docs/iroh_willow/proto/meadowcap/serde_encoding/struct.SerdeReadAuthorisation.html +++ b/pr/2616/docs/iroh_willow/proto/meadowcap/serde_encoding/struct.SerdeReadAuthorisation.html @@ -1,14 +1,14 @@ -SerdeReadAuthorisation in iroh_willow::proto::meadowcap::serde_encoding - Rust
    pub struct SerdeReadAuthorisation(pub ReadAuthorisation);

    Tuple Fields§

    §0: ReadAuthorisation

    Methods from Deref<Target = ReadAuthorisation>§

    source

    pub fn read_cap(&self) -> &McCapability

    source

    pub fn subspace_cap(&self) -> Option<&McSubspaceCapability>

    source

    pub fn namespace(&self) -> NamespaceId

    source

    pub fn delegate( +SerdeReadAuthorisation in iroh_willow::proto::meadowcap::serde_encoding - Rust
    pub struct SerdeReadAuthorisation(pub ReadAuthorisation);

    Tuple Fields§

    §0: ReadAuthorisation

    Methods from Deref<Target = ReadAuthorisation>§

    source

    pub fn read_cap(&self) -> &McCapability

    source

    pub fn subspace_cap(&self) -> Option<&McSubspaceCapability>

    source

    pub fn namespace(&self) -> NamespaceId

    source

    pub fn delegate( &self, user_secret: &UserSecretKey, new_user: UserId, new_area: Area -) -> Result<Self>

    Trait Implementations§

    source§

    impl Clone for SerdeReadAuthorisation

    source§

    fn clone(&self) -> SerdeReadAuthorisation

    Returns a 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 SerdeReadAuthorisation

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deref for SerdeReadAuthorisation

    §

    type Target = ReadAuthorisation

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for SerdeReadAuthorisation

    source§

    fn deserialize<D>(deserializer: D) -> Result<SerdeReadAuthorisation, D::Error>
    where - D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<ReadAuthorisation> for SerdeReadAuthorisation

    source§

    fn from(value: ReadAuthorisation) -> Self

    Converts to this type from the input type.
    source§

    impl From<SerdeReadAuthorisation> for ReadAuthorisation

    source§

    fn from(value: SerdeReadAuthorisation) -> Self

    Converts to this type from the input type.
    source§

    impl Hash for SerdeReadAuthorisation

    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 +) -> Result<Self>

    Trait Implementations§

    source§

    impl Clone for SerdeReadAuthorisation

    source§

    fn clone(&self) -> SerdeReadAuthorisation

    Returns a 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 SerdeReadAuthorisation

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Deref for SerdeReadAuthorisation

    §

    type Target = ReadAuthorisation

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    source§

    impl<'de> Deserialize<'de> for SerdeReadAuthorisation

    source§

    fn deserialize<D>(deserializer: D) -> Result<SerdeReadAuthorisation, D::Error>
    where + D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl From<ReadAuthorisation> for SerdeReadAuthorisation

    source§

    fn from(value: ReadAuthorisation) -> Self

    Converts to this type from the input type.
    source§

    impl From<SerdeReadAuthorisation> for ReadAuthorisation

    source§

    fn from(value: SerdeReadAuthorisation) -> Self

    Converts to this type from the input type.
    source§

    impl Hash for SerdeReadAuthorisation

    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 PartialEq for SerdeReadAuthorisation

    source§

    fn eq(&self, other: &SerdeReadAuthorisation) -> bool

    This method tests for self and other values to be equal, and is used + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more

    source§

    impl PartialEq for SerdeReadAuthorisation

    source§

    fn eq(&self, other: &SerdeReadAuthorisation) -> 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 SerdeReadAuthorisation

    source§

    fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Eq for SerdeReadAuthorisation

    source§

    impl StructuralPartialEq for SerdeReadAuthorisation

    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 SerdeReadAuthorisation

    source§

    fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

    Serialize this value into the given Serde serializer. Read more
    source§

    impl Eq for SerdeReadAuthorisation

    source§

    impl StructuralPartialEq for SerdeReadAuthorisation

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_willow/proto/meadowcap/sidebar-items.js b/pr/2616/docs/iroh_willow/proto/meadowcap/sidebar-items.js index f906547417..028d0942e2 100644 --- a/pr/2616/docs/iroh_willow/proto/meadowcap/sidebar-items.js +++ b/pr/2616/docs/iroh_willow/proto/meadowcap/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"enum":["AccessMode","SecretKey"],"fn":["is_authorised_write","is_wider_than"],"mod":["serde_encoding"],"struct":["ReadAuthorisation"],"type":["FailedDelegationError","McAuthorisationToken","McCapability","McSubspaceCapability","NamespaceId","NamespacePublicKey","NamespaceSignature","ReadCapability","SubspaceCapability","UserId","UserPublicKey","UserSignature","WriteCapability"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"enum":["AccessMode","SecretKey"],"fn":["is_authorised_write","is_wider_than"],"mod":["serde_encoding"],"struct":["ReadAuthorisation"],"trait":["IsCommunal"],"type":["FailedDelegationError","McAuthorisationToken","McCapability","McSubspaceCapability","NamespaceId","NamespacePublicKey","NamespaceSignature","ReadCapability","SubspaceCapability","UserId","UserPublicKey","UserSignature","WriteCapability"]}; \ No newline at end of file diff --git a/pr/2616/docs/iroh_willow/proto/meadowcap/struct.ReadAuthorisation.html b/pr/2616/docs/iroh_willow/proto/meadowcap/struct.ReadAuthorisation.html index ab385b6df6..36a50add4e 100644 --- a/pr/2616/docs/iroh_willow/proto/meadowcap/struct.ReadAuthorisation.html +++ b/pr/2616/docs/iroh_willow/proto/meadowcap/struct.ReadAuthorisation.html @@ -1,20 +1,20 @@ -ReadAuthorisation in iroh_willow::proto::meadowcap - Rust

    Struct iroh_willow::proto::meadowcap::ReadAuthorisation

    source ·
    pub struct ReadAuthorisation(/* private fields */);
    Expand description

    Represents an authorisation to read an area of data in a Namespace.

    -

    Implementations§

    source§

    impl ReadAuthorisation

    source

    pub fn new( +ReadAuthorisation in iroh_willow::proto::meadowcap - Rust

    Struct iroh_willow::proto::meadowcap::ReadAuthorisation

    source ·
    pub struct ReadAuthorisation(/* private fields */);
    Expand description

    Represents an authorisation to read an area of data in a Namespace.

    +

    Implementations§

    source§

    impl ReadAuthorisation

    source

    pub fn new( read_cap: McCapability, subspace_cap: Option<McSubspaceCapability> -) -> Self

    source

    pub fn new_owned( +) -> Self

    source

    pub fn new_owned( namespace_secret: &NamespaceSecretKey, user_key: UserId -) -> Result<Self>

    source

    pub fn read_cap(&self) -> &McCapability

    source

    pub fn subspace_cap(&self) -> Option<&McSubspaceCapability>

    source

    pub fn namespace(&self) -> NamespaceId

    source

    pub fn delegate( +) -> Result<Self>

    source

    pub fn read_cap(&self) -> &McCapability

    source

    pub fn subspace_cap(&self) -> Option<&McSubspaceCapability>

    source

    pub fn namespace(&self) -> NamespaceId

    source

    pub fn delegate( &self, user_secret: &UserSecretKey, new_user: UserId, new_area: Area -) -> Result<Self>

    Trait Implementations§

    source§

    impl Clone for ReadAuthorisation

    source§

    fn clone(&self) -> ReadAuthorisation

    Returns a 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 ReadAuthorisation

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl From<ReadAuthorisation> for SerdeReadAuthorisation

    source§

    fn from(value: ReadAuthorisation) -> Self

    Converts to this type from the input type.
    source§

    impl From<SerdeReadAuthorisation> for ReadAuthorisation

    source§

    fn from(value: SerdeReadAuthorisation) -> Self

    Converts to this type from the input type.
    source§

    impl Hash for ReadAuthorisation

    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 +) -> Result<Self>

    Trait Implementations§

    source§

    impl Clone for ReadAuthorisation

    source§

    fn clone(&self) -> ReadAuthorisation

    Returns a 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 ReadAuthorisation

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl From<ReadAuthorisation> for SerdeReadAuthorisation

    source§

    fn from(value: ReadAuthorisation) -> Self

    Converts to this type from the input type.
    source§

    impl From<SerdeReadAuthorisation> for ReadAuthorisation

    source§

    fn from(value: SerdeReadAuthorisation) -> Self

    Converts to this type from the input type.
    source§

    impl Hash for ReadAuthorisation

    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 PartialEq for ReadAuthorisation

    source§

    fn eq(&self, other: &ReadAuthorisation) -> bool

    This method tests for self and other values to be equal, and is used + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    source§

    impl PartialEq for ReadAuthorisation

    source§

    fn eq(&self, other: &ReadAuthorisation) -> 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 ReadAuthorisation

    source§

    impl StructuralPartialEq for ReadAuthorisation

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +sufficient, and should not be overridden without very good reason.

    source§

    impl Eq for ReadAuthorisation

    source§

    impl StructuralPartialEq for ReadAuthorisation

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_willow/proto/meadowcap/trait.IsCommunal.html b/pr/2616/docs/iroh_willow/proto/meadowcap/trait.IsCommunal.html new file mode 100644 index 0000000000..1dace17f0b --- /dev/null +++ b/pr/2616/docs/iroh_willow/proto/meadowcap/trait.IsCommunal.html @@ -0,0 +1,5 @@ +IsCommunal in iroh_willow::proto::meadowcap - Rust

    Trait iroh_willow::proto::meadowcap::IsCommunal

    pub trait IsCommunal {
    +    // Required method
    +    fn is_communal(&self) -> bool;
    +}
    Expand description

    Maps namespace public keys to booleans, determining whether that namespace of a particular [willow_data_model::NamespaceId] is communal or owned.

    +

    Required Methods§

    fn is_communal(&self) -> bool

    Implementors§

    \ No newline at end of file diff --git a/pr/2616/docs/iroh_willow/proto/meadowcap/type.FailedDelegationError.html b/pr/2616/docs/iroh_willow/proto/meadowcap/type.FailedDelegationError.html index ec16c8221c..050ad096da 100644 --- a/pr/2616/docs/iroh_willow/proto/meadowcap/type.FailedDelegationError.html +++ b/pr/2616/docs/iroh_willow/proto/meadowcap/type.FailedDelegationError.html @@ -1,4 +1,4 @@ -FailedDelegationError in iroh_willow::proto::meadowcap - Rust

    Type Alias iroh_willow::proto::meadowcap::FailedDelegationError

    source ·
    pub type FailedDelegationError = FailedDelegationError<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>;

    Aliased Type§

    enum FailedDelegationError {
    +FailedDelegationError in iroh_willow::proto::meadowcap - Rust

    Type Alias iroh_willow::proto::meadowcap::FailedDelegationError

    source ·
    pub type FailedDelegationError = FailedDelegationError<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>;

    Aliased Type§

    enum FailedDelegationError {
         AreaNotIncluded {
             excluded_area: Area<4096, 1024, 4096, UserId>,
             claimed_receiver: UserId,
    diff --git a/pr/2616/docs/iroh_willow/proto/meadowcap/type.McCapability.html b/pr/2616/docs/iroh_willow/proto/meadowcap/type.McCapability.html
    index 182dbe91f7..320ba2aac4 100644
    --- a/pr/2616/docs/iroh_willow/proto/meadowcap/type.McCapability.html
    +++ b/pr/2616/docs/iroh_willow/proto/meadowcap/type.McCapability.html
    @@ -1,4 +1,4 @@
     McCapability in iroh_willow::proto::meadowcap - Rust

    Type Alias iroh_willow::proto::meadowcap::McCapability

    source ·
    pub type McCapability = McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>;

    Aliased Type§

    enum McCapability {
         Communal(CommunalCapability<4096, 1024, 4096, NamespaceId, UserId, UserSignature>),
         Owned(OwnedCapability<4096, 1024, 4096, NamespaceId, NamespaceSignature, UserId, UserSignature>),
    -}

    Variants§

    §

    Communal(CommunalCapability<4096, 1024, 4096, NamespaceId, UserId, UserSignature>)

    §

    Owned(OwnedCapability<4096, 1024, 4096, NamespaceId, NamespaceSignature, UserId, UserSignature>)

    Trait Implementations§

    source§

    impl From<SerdeMcCapability> for McCapability

    source§

    fn from(value: SerdeMcCapability) -> Self

    Converts to this type from the input type.
    \ No newline at end of file +}

    Variants§

    §

    Communal(CommunalCapability<4096, 1024, 4096, NamespaceId, UserId, UserSignature>)

    §

    Owned(OwnedCapability<4096, 1024, 4096, NamespaceId, NamespaceSignature, UserId, UserSignature>)

    Trait Implementations§

    source§

    impl From<SerdeMcCapability> for McCapability

    source§

    fn from(value: SerdeMcCapability) -> Self

    Converts to this type from the input type.
    \ No newline at end of file diff --git a/pr/2616/docs/iroh_willow/proto/meadowcap/type.McSubspaceCapability.html b/pr/2616/docs/iroh_willow/proto/meadowcap/type.McSubspaceCapability.html index 971a34522c..f9e3e6296f 100644 --- a/pr/2616/docs/iroh_willow/proto/meadowcap/type.McSubspaceCapability.html +++ b/pr/2616/docs/iroh_willow/proto/meadowcap/type.McSubspaceCapability.html @@ -1 +1 @@ -McSubspaceCapability in iroh_willow::proto::meadowcap - Rust

    Type Alias iroh_willow::proto::meadowcap::McSubspaceCapability

    source ·
    pub type McSubspaceCapability = McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>;

    Aliased Type§

    struct McSubspaceCapability { /* private fields */ }

    Trait Implementations§

    source§

    impl From<SerdeMcSubspaceCapability> for McSubspaceCapability

    source§

    fn from(value: SerdeMcSubspaceCapability) -> Self

    Converts to this type from the input type.
    \ No newline at end of file +McSubspaceCapability in iroh_willow::proto::meadowcap - Rust

    Type Alias iroh_willow::proto::meadowcap::McSubspaceCapability

    source ·
    pub type McSubspaceCapability = McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>;

    Aliased Type§

    struct McSubspaceCapability { /* private fields */ }

    Trait Implementations§

    source§

    impl From<SerdeMcSubspaceCapability> for McSubspaceCapability

    source§

    fn from(value: SerdeMcSubspaceCapability) -> Self

    Converts to this type from the input type.
    \ No newline at end of file diff --git a/pr/2616/docs/iroh_willow/proto/meadowcap/type.NamespaceId.html b/pr/2616/docs/iroh_willow/proto/meadowcap/type.NamespaceId.html index 6af33be9e6..af3d7c7930 100644 --- a/pr/2616/docs/iroh_willow/proto/meadowcap/type.NamespaceId.html +++ b/pr/2616/docs/iroh_willow/proto/meadowcap/type.NamespaceId.html @@ -1 +1 @@ -NamespaceId in iroh_willow::proto::meadowcap - Rust

    Type Alias iroh_willow::proto::meadowcap::NamespaceId

    source ·
    pub type NamespaceId = NamespaceId;

    Aliased Type§

    struct NamespaceId(/* private fields */);

    Trait Implementations§

    source§

    impl IsCommunal for NamespaceId

    \ No newline at end of file +NamespaceId in iroh_willow::proto::meadowcap - Rust

    Type Alias iroh_willow::proto::meadowcap::NamespaceId

    source ·
    pub type NamespaceId = NamespaceId;

    Aliased Type§

    struct NamespaceId(/* private fields */);
    \ No newline at end of file diff --git a/pr/2616/docs/iroh_willow/store/memory/struct.Store.html b/pr/2616/docs/iroh_willow/store/memory/struct.Store.html index 1b58cf8f3b..8241362ed0 100644 --- a/pr/2616/docs/iroh_willow/store/memory/struct.Store.html +++ b/pr/2616/docs/iroh_willow/store/memory/struct.Store.html @@ -1,4 +1,4 @@ -Store in iroh_willow::store::memory - Rust

    Struct iroh_willow::store::memory::Store

    source ·
    pub struct Store { /* private fields */ }

    Implementations§

    source§

    impl Store

    source

    pub fn new(payloads: Store) -> Self

    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

    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 Storage for Store

    §

    type Entries = Rc<RefCell<EntryStore>>

    §

    type Secrets = Rc<RefCell<SecretStore>>

    §

    type Payloads = Store

    §

    type Caps = Rc<RefCell<CapsStore>>

    source§

    fn entries(&self) -> &Self::Entries

    source§

    fn secrets(&self) -> &Self::Secrets

    source§

    fn payloads(&self) -> &Self::Payloads

    source§

    fn caps(&self) -> &Self::Caps

    Auto Trait Implementations§

    §

    impl Freeze for Store

    §

    impl !RefUnwindSafe for Store

    §

    impl !Send for Store

    §

    impl !Sync for Store

    §

    impl Unpin for Store

    §

    impl !UnwindSafe for Store

    Blanket Implementations§

    source§

    impl<T> Any for T
    where +Store in iroh_willow::store::memory - Rust

    Struct iroh_willow::store::memory::Store

    source ·
    pub struct Store { /* private fields */ }

    Implementations§

    source§

    impl Store

    source

    pub fn new(payloads: Store) -> Self

    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

    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 Storage for Store

    §

    type Entries = Rc<RefCell<EntryStore>>

    §

    type Secrets = Rc<RefCell<SecretStore>>

    §

    type Payloads = Store

    §

    type Caps = Rc<RefCell<CapsStore>>

    source§

    fn entries(&self) -> &Self::Entries

    source§

    fn secrets(&self) -> &Self::Secrets

    source§

    fn payloads(&self) -> &Self::Payloads

    source§

    fn caps(&self) -> &Self::Caps

    Auto Trait Implementations§

    §

    impl Freeze for Store

    §

    impl !RefUnwindSafe for Store

    §

    impl !Send for Store

    §

    impl !Sync for Store

    §

    impl Unpin for Store

    §

    impl !UnwindSafe for Store

    Blanket Implementations§

    source§

    impl<T> Any for T
    where T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedExplicit<'a, E> for T
    where T: 'a,

    §

    fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

    §

    impl<'a, T, E> AsTaggedImplicit<'a, E> for T
    where diff --git a/pr/2616/docs/iroh_willow/store/traits/trait.Storage.html b/pr/2616/docs/iroh_willow/store/traits/trait.Storage.html index 93f12e441e..c85c6f4012 100644 --- a/pr/2616/docs/iroh_willow/store/traits/trait.Storage.html +++ b/pr/2616/docs/iroh_willow/store/traits/trait.Storage.html @@ -1,7 +1,7 @@ Storage in iroh_willow::store::traits - Rust

    Trait iroh_willow::store::traits::Storage

    source ·
    pub trait Storage: Debug + Clone + 'static {
         type Entries: EntryStorage;
         type Secrets: SecretStorage;
    -    type Payloads: Store;
    +    type Payloads: Store;
         type Caps: CapsStorage;
     
         // Required methods
    @@ -9,4 +9,4 @@
         fn secrets(&self) -> &Self::Secrets;
         fn payloads(&self) -> &Self::Payloads;
         fn caps(&self) -> &Self::Caps;
    -}

    Required Associated Types§

    Required Methods§

    source

    fn entries(&self) -> &Self::Entries

    source

    fn secrets(&self) -> &Self::Secrets

    source

    fn payloads(&self) -> &Self::Payloads

    source

    fn caps(&self) -> &Self::Caps

    Object Safety§

    This trait is not object safe.

    Implementors§

    \ No newline at end of file +}

    Required Associated Types§

    Required Methods§

    source

    fn entries(&self) -> &Self::Entries

    source

    fn secrets(&self) -> &Self::Secrets

    source

    fn payloads(&self) -> &Self::Payloads

    source

    fn caps(&self) -> &Self::Caps

    Object Safety§

    This trait is not object safe.

    Implementors§

    \ No newline at end of file diff --git a/pr/2616/docs/search-index.js b/pr/2616/docs/search-index.js index 7371cba84d..443bc78c1e 100644 --- a/pr/2616/docs/search-index.js +++ b/pr/2616/docs/search-index.js @@ -11,7 +11,7 @@ var searchIndex = new Map(JSON.parse('[\ ["iroh_net_bench",{"t":"FGGGPPPFPPPPNNNNNNNNNNNNNNNNHONNNNNNNNNNHNONNNNNNNNNNNNNNNONNNNNCONCOHCCNOONNNNNNNNNNNNNNNNNNNNNONNNNNSHHHHHHSHHHHHHFNNNNNNNNNNNNNNNNNNNNNNNFFFONNNNNNOOOONNOONNNNNNNNNNNONOOOHOOONNNNNNOONNNNNN","n":["ClientStats","Commands","ConnectionSelector","EndpointSelector","Iroh","Iroh","Iroh","Opt","Quinn","Quinn","Quinn","S2n","__clone_box","__clone_box","augment_args","augment_args_for_update","augment_subcommands","augment_subcommands_for_update","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","client_handler","clients","clone","clone","clone_into","clone_into","close","close","command","command","command_for_update","command_for_update","configure_tracing_subscriber","default","download_size","fmt","fmt","from","from","from","from","from","from_arg_matches","from_arg_matches","from_arg_matches_mut","from_arg_matches_mut","from_ref","from_ref","group_id","has_subcommand","initial_mtu","into","into","into","into","into","iroh","max_streams","print","quinn","read_unordered","rt","s2n","stats","stats","stats","streams","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","update_from_arg_matches","update_from_arg_matches","update_from_arg_matches_mut","update_from_arg_matches_mut","upload_size","vzip","vzip","vzip","vzip","vzip","ALPN","client","connect_client","handle_client_stream","server","server_endpoint","transport_config","ALPN","client","connect_client","handle_client_stream","server","server_endpoint","transport_config","Opt","__clone_box","augment_args","augment_args_for_update","borrow","borrow_mut","clone","clone_into","command","command_for_update","fmt","from","from_arg_matches","from_arg_matches_mut","from_ref","group_id","into","to_owned","try_from","try_into","type_id","update_from_arg_matches","update_from_arg_matches_mut","vzip","Stats","StreamStats","TransferResult","avg_chunk_size","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","chunk_size","chunk_time","chunks","chunks","default","default","duration","duration_hist","fmt","fmt","fmt","from","from","from","into","into","into","new","print","size","stream_finished","stream_stats","streams","throughput","throughput_bps","throughput_hist","total_duration","total_size","try_from","try_from","try_from","try_into","try_into","try_into","ttfb","ttfb_hist","type_id","type_id","type_id","vzip","vzip","vzip"],"q":[[0,"iroh_net_bench"],[102,"iroh_net_bench::iroh"],[109,"iroh_net_bench::quinn"],[116,"iroh_net_bench::s2n"],[140,"iroh_net_bench::stats"],[192,"dyn_clone::sealed"],[193,"clap_builder::builder::command"],[194,"anyhow"],[195,"core::fmt"],[196,"clap_builder::parser::matches::arg_matches"],[197,"clap_builder"],[198,"core::result"],[199,"clap_builder::util::id"],[200,"core::option"],[201,"tokio::runtime::runtime"],[202,"core::any"],[203,"iroh_base::node_addr"],[204,"iroh_net::endpoint"],[205,"iroh_quinn::connection"],[206,"iroh_quinn_proto::config"],[207,"core::net::socket_addr"],[208,"quinn::endpoint"],[209,"quinn::connection"],[210,"quinn_proto::config"],[211,"core::time"]],"i":[0,0,0,0,4,5,9,0,4,5,9,9,9,6,6,6,9,9,4,5,9,6,7,4,5,9,6,7,0,6,9,6,9,6,4,5,9,6,9,6,0,7,6,9,6,4,5,9,6,7,9,6,9,6,9,6,6,9,6,4,5,9,6,7,0,6,7,0,6,0,0,0,5,6,6,9,6,4,5,9,6,7,4,5,9,6,7,4,5,9,6,7,9,6,9,6,6,4,5,9,6,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,0,0,0,30,38,39,30,38,39,30,39,39,39,30,38,39,30,39,38,39,30,38,39,30,38,39,30,30,38,30,38,38,38,30,0,39,38,38,38,39,30,38,39,30,30,39,38,39,30,38,39,30],"f":"````````````{{cb}d{}}0{ff}000{ce{}{}}000000000{{hjl}{{A`{n}}}}`{AbAb}{ll}{{ce}d{}{}}0{h{{A`{d}}}}{{jAd{Ah{Af}}}d}{{}f}000{{}d}{{}n}`{{AbAj}Al}{{lAj}Al}{cc{}}0000{An{{Bb{AbB`}}}}{An{{Bb{lB`}}}}1022{{}{{Bf{Bd}}}}{BhBj}`{ce{}{}}0000``{{nBl}d}``{{}Bn}``{jd}``33{c{{Bb{e}}}{}{}}000000000{cC`{}}0000{{AbAn}{{Bb{dB`}}}}{{lAn}{{Bb{dB`}}}}10`77777`{{Cbl}{{A`{n}}}}{{Cbl}{{A`{{Ch{CdCf}}}}}}{{CfCjBj}{{A`{{Ch{ClCl}}}}}}{{Cdl}{{A`{d}}}}{{Bnl}{{Ch{CbCd}}}}{{BlCn}D`}`{{Dbl}{{A`{n}}}}{{Dbl}{{A`{{Ch{DdDf}}}}}}{{DfCjBj}{{A`{{Ch{ClCl}}}}}}{{Ddl}{{A`{d}}}}{{Bnl}{{Ch{DbDd}}}}{{BlCn}Dh}`{{cb}d{}}{ff}0{ce{}{}}0{DjDj}{{ce}d{}{}}{{}f}0{{DjAj}Al}{cc{}}{An{{Bb{DjB`}}}}01{{}{{Bf{Bd}}}}77{c{{Bb{e}}}{}{}}0{cC`{}}{{DjAn}{{Bb{dB`}}}}0:````::::::````{{}Dl}{{}Dn}``{{DlAj}Al}{{DnAj}Al}{{ClAj}Al}:::???{{E`CjE`Cj}Cl}{{DlBh}d}`{{DlCl}d}```{{E`Cj}Eb}```;;;;;;``:::{ce{}{}}00","D":"Df","p":[[5,"Private",192],[1,"unit"],[5,"Command",193],[6,"EndpointSelector",0],[6,"ConnectionSelector",0],[5,"Opt",0],[5,"ClientStats",0],[8,"Result",194],[6,"Commands",0],[1,"u32"],[1,"u8"],[1,"slice"],[5,"Formatter",195],[8,"Result",195],[5,"ArgMatches",196],[8,"Error",197],[6,"Result",198],[5,"Id",199],[6,"Option",200],[1,"str"],[1,"bool"],[1,"usize"],[5,"Runtime",201],[5,"TypeId",202],[5,"NodeAddr",203],[5,"Endpoint",204],[5,"Connection",205],[1,"tuple"],[1,"u64"],[5,"TransferResult",140],[1,"u16"],[5,"TransportConfig",206],[6,"SocketAddr",207],[5,"Endpoint",208],[5,"Connection",209],[5,"TransportConfig",210],[5,"Opt",116],[5,"Stats",140],[5,"StreamStats",140],[5,"Duration",211],[1,"f64"]],"r":[],"b":[],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAJ0AEAAAABwAHwALACwAAQAzAAcAQQAAAEMAAQBGAAMATAAUAGIABQBqAAAAbQABAHEAAAB0AAsAgQADAIYAGwCoABgA"}],\ ["iroh_relay",{"t":"GFFSPFPFNNNNNOONNNNNNNNNNNNHNOONCNNNNNNNNNNNNOONNNNNNOOOONNNNNNNNNNNNNNNNNNNNNNONONONNNNNNONHHHOOCNOONONNNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHHHCHFNONNNNNONNNNOONNONNNNN","n":["CertMode","Cli","Config","DEV_MODE_HTTP_PORT","LetsEncrypt","Limits","Manual","TlsConfig","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","accept_conn_burst","accept_conn_limit","augment_args","augment_args_for_update","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build_relay_config","cert_dir","cert_dir","cert_mode","cert_path","cfg_defaults","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","command","command_for_update","config_path","contact","default","default","deserialize","deserialize","deserialize","deserialize","dev","enable_metrics","enable_relay","enable_stun","eq","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from_arg_matches","from_arg_matches_mut","from_ref","from_ref","from_ref","from_ref","from_ref","group_id","hostname","http_bind_addr","http_bind_addr","https_bind_addr","https_bind_addr","into","into","into","into","into","key_path","limits","load","load_certs","load_secret_key","main","manual_cert_path","manual_key_path","metrics","metrics_bind_addr","metrics_bind_addr","prod_tls","read_from_file","secret_key","serialize","serialize","serialize","serialize","stun_bind_addr","stun_bind_addr","tls","to_owned","to_owned","to_owned","to_owned","to_owned","to_possible_value","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","update_from_arg_matches","update_from_arg_matches_mut","value_variants","vzip","vzip","vzip","vzip","vzip","write_to_file","enable_metrics","enable_relay","enable_stun","tls_config","prod_tls","StunMetrics","__clone_box","bad_requests","borrow","borrow_mut","clone","clone_into","default","failures","fmt","from","from_ref","into","ipv4_success","ipv6_success","iter","name","requests","to_owned","try_from","try_into","type_id","vzip"],"q":[[0,"iroh_relay"],[140,"iroh_relay::cfg_defaults"],[144,"iroh_relay::cfg_defaults::tls_config"],[145,"iroh_relay::metrics"],[168,"dyn_clone::sealed"],[169,"clap_builder::builder::command"],[170,"std::io::error"],[171,"iroh_net::relay::server"],[172,"anyhow"],[173,"std::path"],[174,"core::result"],[175,"serde::de"],[176,"core::fmt"],[177,"clap_builder::parser::matches::arg_matches"],[178,"clap_builder"],[179,"clap_builder::util::id"],[180,"core::option"],[181,"core::net::socket_addr"],[182,"rustls::key"],[183,"alloc::vec"],[184,"core::convert"],[185,"serde::ser"],[186,"clap_builder::builder::possible_value"],[187,"core::any"],[188,"alloc::vec::into_iter"]],"i":[0,0,0,0,11,0,11,0,10,11,4,8,12,12,12,10,10,10,11,4,8,12,10,11,4,8,12,0,8,8,8,8,0,10,11,4,8,12,10,11,4,8,12,10,10,10,8,4,12,11,4,8,12,10,4,4,4,11,11,11,11,10,11,4,8,12,10,11,4,8,12,10,10,10,11,4,8,12,10,8,4,4,8,8,10,11,4,8,12,8,4,4,0,0,0,8,8,0,4,4,8,4,4,11,4,8,12,4,4,4,10,11,4,8,12,11,10,11,4,8,12,10,11,4,8,12,10,11,4,8,12,10,10,11,10,11,4,8,12,4,0,0,0,0,0,0,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32],"f":"````````{{cb}d{}}0000``{ff}0{ce{}{}}000000000{h{{n{{l{j}}}}}}{A`Ab}``0`{AdAd}{AfAf}{hh}{A`A`}{AhAh}{{ce}d{}{}}0000{{}f}0``{{}h}{{}Ah}{c{{Aj{Af}}}Al}{c{{Aj{h}}}Al}{c{{Aj{A`}}}Al}{c{{Aj{Ah}}}Al}````{{AfAf}An}{{ce}An{}{}}00{{AdB`}Bb}{{AfB`}Bb}{{hB`}Bb}{{A`B`}Bb}{{AhB`}Bb}{cc{}}0000{Bd{{Aj{AdBf}}}}011111{{}{{Bj{Bh}}}}`{hBl}`{{A`h}Bl}`{ce{}{}}0000{A`Ab}`{Ad{{n{h}}}}{c{{n{{C`{Bn}}}}}{{Cd{Cb}}}}{c{{n{Cf}}}{{Cd{Cb}}}}{{}{{n{d}}}}```7``{c{{n{h}}}{{Cd{Cb}}}}`{{Afc}AjCh}{{hc}AjCh}{{A`c}AjCh}{{Ahc}AjCh}<``:::::{Af{{Bj{Cj}}}}{c{{Aj{e}}}{}{}}000000000{cCl{}}0000{{AdBd}{{Aj{dBf}}}}0{{}{{Cn{Af}}}}?????{{hc}{{n{d}}}{{Cd{Cb}}}}{{}An}00`0`{{cb}d{}}`{ce{}{}}0{D`D`}{{ce}d{}{}}{{}D`}`{{D`B`}Bb}{cc{}}05``{D`{{Dh{{Df{DbDd}}}}}}{{}Db}`7>>=7","D":"El","p":[[5,"Private",168],[1,"unit"],[5,"Command",169],[5,"Config",0],[5,"Error",170],[5,"ServerConfig",171],[8,"Result",172],[5,"TlsConfig",0],[5,"PathBuf",173],[5,"Cli",0],[6,"CertMode",0],[5,"Limits",0],[6,"Result",174],[10,"Deserializer",175],[1,"bool"],[5,"Formatter",176],[8,"Result",176],[5,"ArgMatches",177],[8,"Error",178],[5,"Id",179],[6,"Option",180],[6,"SocketAddr",181],[5,"Certificate",182],[5,"Vec",183],[5,"Path",173],[10,"AsRef",184],[5,"PrivateKey",182],[10,"Serializer",185],[5,"PossibleValue",186],[5,"TypeId",187],[1,"slice"],[5,"StunMetrics",145],[1,"str"],[10,"Any",187],[1,"tuple"],[5,"IntoIter",188]],"r":[],"b":[],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAHoAGAABAAAABQAIABAACwAdAAAAIAAAACIACwAwAAUAOgAIAEgABwBRAAAAUwAAAFoAAABcAAMAYgABAGYAAABoAAQAbwAcAI0ABACTAAAAlQAEAJsAAACdAAAAoQABAKQABAA="}],\ ["iroh_test",{"t":"FQNNNNCNCNNNNHHHHH","n":["CallOnDrop","assert_eq_hex","borrow","borrow_mut","drop","from","hexdump","into","logging","new","try_from","try_into","type_id","parse_hexdump","print_hexdump","setup","setup_multithreaded","testing_subscriber"],"q":[[0,"iroh_test"],[13,"iroh_test::hexdump"],[15,"iroh_test::logging"],[18,"core::ops::function"],[19,"core::result"],[20,"core::any"],[21,"alloc::vec"],[22,"anyhow"],[23,"alloc::string"],[24,"core::convert"],[25,"tracing_core::dispatcher"],[26,"tracing_core::subscriber"]],"i":[0,0,1,1,1,1,0,1,0,1,1,1,1,0,0,0,0,0],"f":"``{ce{}{}}0{bd}{cc{}}`2`{cbf}{c{{h{e}}}{}{}}0{cj{}}{l{{Ab{{A`{n}}}}}}{{ce}Ad{{Ah{{Af{n}}}}}{{Ah{{Af{Aj}}}}}}{{}Al}{{}d}{{}{{`{An}}}}","D":"Ad","p":[[5,"CallOnDrop",0],[1,"unit"],[10,"FnOnce",18],[6,"Result",19],[5,"TypeId",20],[1,"str"],[1,"u8"],[5,"Vec",21],[8,"Result",22],[5,"String",23],[1,"slice"],[10,"AsRef",24],[1,"usize"],[5,"DefaultGuard",25],[10,"Subscriber",26]],"r":[],"b":[],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAAgABAABAAAAAwACAAcAAAAKAAMA"}],\ -["iroh_willow",{"t":"PPGNNNNNCNNNNNCNNCNCCCCNNNNCNFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPGPPFGPPPPPPPGPPGGPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONOONNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNPPGGFGPPFPPPIGKFPPGPGPFPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNMNNONNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNSSSSSSSSCCCCCCIIPIPSIKGGSSSIPIKPPFIIIPPFINMNNNNNNNNNONNNNNNMNNNNMNNNNNNNNNNNNNNNNNNNNMNNNNNNNNCONNNNNNNNNNNNNNNNNNNNNFNNNNNNNNNNNNNNNNNNPIKIKIPPPFFIGNNNONNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNNNNNNNNNOONNNNMNNNNOCOOONNNMNNNNNNNNNNNNNMNFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPTTTTTTTTFGFFFPSSSFFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNGPPPPIIIIPIIIPPPPFIGIPIIIPIPNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNHNNNNCONNNNNNNNNNNNNNNOOFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPPGGGIGIFFPPFFPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOSSCCCCCFISSFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPTPGPPPFPGFPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFNNNNNNNNNNNNNNNNNNNNNNNNNNPPFPPFGPPFKPGPPFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNNNNNNNNNNPPFPFPFPFPFPFPFPGFPFPFPIGFGFPFPFPFPIIIFPGFPFPFPFPPPPPPPPFPFPFPIIIPNNNNNNNNNOONOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOONOOOOONNNNNNNNNNNNNNNNNNOOONNNNNNNNNNNNNNNNNNNNNNNNNNOONNOOONNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNONOOOOOONOONNNNNNNNNNNNNNNNNNNNNNNNOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOPPPPFPPPGGGFIFGGPPNNNNNNNNNNNNNNNNNNNNOCNNNNNNNNNNNNNNNNNNNCONNNNNNNNNNNNNNNNNNNNCONNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNOOOOOFFFFFFNNOONNNNNNNNNNNNOONNNNNNNNNOOOONNNNNNNNNNNNNNNNNNOONNNNNNNOONNNNNOONONOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNPPPPPPFGPPPPPPPPPPPPPPPPPPPPPPPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPPPPPGGFFIGPPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOEFENCNNNNNNNCNNNNNNCNNNNCNNNNFGPPPPPPPPPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPGGPPPIFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOFFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNRKRKKGPPRIRKGRPPRGFKPPNNNNNNNNNNMNNNNMNMMNNNNNNNNNNNNNMMMMMNNMMMNNNNNNMMOMMMNNMNOMNNNNNNNNNNNNNNNNNNNCCCCHCCCPPPPGPGFFFPGFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFGPKKPNNNNNNNHMNMNMNNNNNNNNNNNNNNNNNHHHHOOFNNNNNNNNNNNNNNNNNNNNFNNNNNNNNNNNNNNNNNNNNFNNNNNNNNNNNNNNNNNNNH","n":["Alfie","Betty","Role","__clone_box","borrow","borrow_mut","clone","clone_into","engine","eq","equivalent","equivalent","equivalent","fmt","form","from","from_ref","interest","into","net","proto","session","store","to_owned","try_from","try_into","type_id","util","vzip","AcceptOpts","ActorHandle","Engine","__clone_box","__clone_box","accept_custom","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","create_namespace","create_user","default","delegate_caps","deref","drop","fmt","fmt","fmt","from","from","from","from_ref","from_ref","get_entries","handle_connection","import_caps","ingest_entry","insert","insert_entry","insert_secret","into","into","into","resolve_interests","shutdown","shutdown","spawn","spawn","spawn_memory","sync_with_peer","to_owned","to_owned","track_events","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","Any","AuthForm","Bytes","Entry","EntryForm","EntryOrForm","Exact","Exact","Exact","File","Form","Hash","Now","PayloadForm","Reader","Stream","SubspaceForm","TimestampForm","User","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","deserialize","deserialize","deserialize","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","into","into","into","into","into","into","namespace_id","new_bytes","path","payload","serialize","serialize","serialize","submit","subspace_id","timestamp","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","user_id","vzip","vzip","vzip","vzip","vzip","vzip","All","Any","AreaOfInterestSelector","AreaSelector","CapSelector","CapabilityPack","ContainsArea","ContainsPoint","DelegateTo","Exact","Exact","Exact","InterestMap","Interests","IntoAreaOfInterest","InvalidCapabilityPack","None","Read","ReceiverSelector","Restrict","RestrictArea","Select","SelectBuilder","Widest","Widest","Write","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","add_area","add_full_cap","all","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","builder","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","default","default","default","default","default","deserialize","deserialize","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","for_entry","from","from","from","from","from","from","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","granted_area","hash","hash","hash","includes","into","into","into","into","into","into","into","into","into","into","into_area_of_interest","is_covered_by","is_covered_by","namespace_id","new","new","receiver","receiver","restrict_area","serialize","serialize","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","user","validate","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","widest","with_default","with_user","ALPN","CHANNEL_CAP","ERROR_CODE_DUPLICATE_CONN","ERROR_CODE_FAIL","ERROR_CODE_OK","ERROR_CODE_SHUTDOWN","ESTABLISH_TIMEOUT","SHUTDOWN_TIMEOUT","data_model","grouping","keys","meadowcap","pai","wgps","AuthorisationToken","AuthorisedEntry","Communal","Component","ComponentTooLong","DIGEST_LENGTH","Entry","EntryExt","InvalidPathError","InvalidPathError2","MAX_COMPONENT_COUNT","MAX_COMPONENT_LENGTH","MAX_PATH_LENGTH","NamespaceId","Owned","Path","PathExt","PathTooLong","PathTooLong","PayloadDigest","SerdeWriteCapability","SubspaceId","Timestamp","TooManyComponents","TooManyComponents","UnauthorisedWriteError","WriteCapability","__clone_box","as_sortable_tuple","as_sortable_tuple","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","capability","clone","clone_into","cmp","compare","decode","decode","decode_from_slice","decode_from_slice","default","encode","encode","encode_to_vec","encode_to_vec","eq","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from_bytes","from_bytes","from_ref","hash","into","into","into","into","partial_cmp","serde_encoding","signature","to_owned","to_string","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","SerdeEntry","__clone_box","borrow","borrow_mut","clone","clone_into","deref","deserialize","fmt","from","from","from_ref","into","serialize","to_owned","try_from","try_into","type_id","vzip","Any","Area","AreaExt","AreaOfInterest","AreaOfInterestExt","AreaSubspace","Closed","Id","Open","Point","Range","Range3d","RangeEnd","__clone_box","__clone_box","__clone_box","area","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","cmp","cmp","compare","compare","default","end","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","from","from","from","from","from","from_entry","from_ref","from_ref","from_ref","full","gt_val","hash","hash","hash","includes","includes_point","includes_point","includes_range","intersection","into","into","into","into_area","into_area_of_interest","into_area_of_interest","max_count","max_size","new","new","new_closed","new_open","new_path","new_path","partial_cmp","partial_cmp","partial_cmp","path","serde_encoding","start","subspace_id","timestamp","to_owned","to_owned","to_owned","to_range","to_range","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","with_area","with_area","SerdeAreaOfInterest","SerdeRange3d","__clone_box","__clone_box","borrow","borrow","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","deref","deref","deserialize","deserialize","eq","equivalent","equivalent","equivalent","fmt","fmt","from","from","from","from","from_ref","from_ref","into","into","serialize","serialize","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","Communal","LENGTH","LENGTH","LENGTH","LENGTH","LENGTH","LENGTH","LENGTH","LENGTH","NamespaceId","NamespaceKind","NamespacePublicKey","NamespaceSecretKey","NamespaceSignature","Owned","PUBLIC_KEY_LENGTH","SECRET_KEY_LENGTH","SIGNATURE_LENGTH","UserId","UserPublicKey","UserSecretKey","UserSignature","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","as_bits","as_bits","as_bytes","as_bytes","as_bytes","as_bytes","as_ref","as_ref","as_ref","as_ref","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","cmp","cmp","cmp","cmp","cmp","cmp","compare","compare","compare","compare","compare","compare","decode","decode","decode","decode","decode","decode","decode","decode","default","default","default","default","deref","deref","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","encode","encode","encode","encode","encode","encode","encode","encode","encode","encode","encode","encode","encode_hex","encode_hex","encode_hex_upper","encode_hex_upper","eq","eq","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt_short","fmt_short","fmt_short","fmt_short","fmt_short","fmt_short","fmt_short","fmt_short","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_bytes","from_bytes","from_bytes","from_bytes","from_bytes","from_bytes","from_bytes_unchecked","from_bytes_unchecked","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_str","from_str","from_str","from_str","from_str","from_str","generate","generate","hash","hash","hash","hash","hash","hash","id","id","id","id","into","into","into","into","into","into","into","into","into","into_public_key","into_public_key","is_communal","kind","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","public_key","public_key","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","sign","sign","successor","successor","to_bytes","to_bytes","to_bytes","to_bytes","to_bytes","to_bytes","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","to_string","to_string","to_string","to_string","try_as_bits","try_as_bits","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_sign","try_sign","try_sign","try_sign","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","verify","verify","verify","verify","verify","verify","verify","verify","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","AccessMode","AreaNotIncluded","Communal","Communal","Communal","FailedDelegationError","McAuthorisationToken","McCapability","McSubspaceCapability","Namespace","NamespaceId","NamespacePublicKey","NamespaceSignature","Owned","Owned","Owned","Read","ReadAuthorisation","ReadCapability","SecretKey","SubspaceCapability","User","UserId","UserPublicKey","UserSignature","Write","WriteCapability","WrongSecretForUser","__clone_box","__clone_box","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","capability","clone","clone","clone_into","clone_into","delegate","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from_ref","from_ref","hash","hash","into","into","into","is_authorised_write","is_communal","is_wider_than","namespace","new","new_owned","read_cap","serde_encoding","signature","subspace_cap","to_owned","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","claimed_receiver","excluded_area","SerdeMcCapability","SerdeMcSubspaceCapability","SerdeReadAuthorisation","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","deref","deref","deref","deserialize","deserialize","deserialize","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","from","from","from","from","from","from","from_ref","from_ref","from_ref","hash","hash","into","into","into","serialize","serialize","serialize","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","Complete","Complete","Fragment","FragmentKind","FragmentKit","FragmentPair","FragmentSet","FragmentTriple","InvalidPsiGroup","PaiScheme","Pair","Primary","PsiGroup","PsiScalar","Secondary","Selective","Selective","Triple","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","encode","encode","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from_bytes","from_ref","from_ref","from_ref","from_ref","from_ref","get_fragment_kit","get_scalar","hash_into_group","into","into","into","into","into","into","into","into","into_fragment_set","into_parts","is_group_equal","is_secondary","scalar_mult","to_bytes","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","primary","secondary","MAX_PAYLOAD_SIZE","MAX_PAYLOAD_SIZE_POWER","challenge","channels","fingerprint","handles","messages","AccessChallenge","AccessChallengeBytes","CHALLENGE_HASH_LENGTH","CHALLENGE_LENGTH","ChallengeHash","__clone_box","__clone_box","as_bytes","as_bytes","borrow","borrow","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","default","deserialize","deserialize","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","from","from","from_bytes","from_ref","from_ref","generate","generate_with_rng","hash","into","into","serialize","serialize","to_bytes","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","AreaOfInterest","COUNT","Capability","Channel","Control","Data","Intersection","InvalidChannelId","Logical","LogicalChannel","LogicalChannelIter","Reconciliation","StaticToken","__clone_box","__clone_box","__clone_box","all","all","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","deserialize","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt_short","fmt_short","from","from","from","from","from_id","from_id","from_ref","from_ref","from_ref","hash","hash","id","id","into","into","into","into","into_fallible","into_iter","iter","len","next","next_back","nth","serialize","size_hint","to_owned","to_owned","to_owned","to_string","transpose_into_fallible","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","Fingerprint","__clone_box","add_entries","add_entry","bitxor_assign","borrow","borrow_mut","clone","clone_into","default","deserialize","eq","equivalent","equivalent","equivalent","fmt","from","from_entries","from_ref","into","is_empty","serialize","to_owned","try_from","try_into","type_id","vzip","AreaOfInterest","AreaOfInterest","AreaOfInterestHandle","Capability","Capability","CapabilityHandle","HandleType","Intersection","Intersection","IntersectionHandle","IsHandle","PayloadRequest","ResourceHandle","StaticToken","StaticToken","StaticTokenHandle","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","deserialize","deserialize","deserialize","deserialize","deserialize","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","from_ref","from_ref","handle_type","handle_type","handle_type","handle_type","handle_type","hash","hash","hash","hash","hash","into","into","into","into","into","into","serialize","serialize","serialize","serialize","serialize","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","value","value","value","value","value","vzip","vzip","vzip","vzip","vzip","vzip","AnnounceEntries","BindFragment","CommitmentReveal","CommitmentReveal","ControlAbsolve","ControlAbsolve","ControlAnnounceDropping","ControlAnnounceDropping","ControlApologise","ControlApologise","ControlFreeHandle","ControlFreeHandle","ControlIssueGuarantee","ControlIssueGuarantee","ControlPlead","ControlPlead","DataMessage","DataSendEntry","DataSendEntry","DataSendPayload","DataSendPayload","DataSetMetadata","DataSetMetadata","DynamicToken","IntersectionMessage","LengthyEntry","Message","PaiBindFragment","PaiBindFragment","PaiReplyFragment","PaiReplyFragment","PaiReplySubspaceCapability","PaiReplySubspaceCapability","PaiRequestSubspaceCapability","PaiRequestSubspaceCapability","PsiGroupBytes","ReadCapability","Receiver","ReconciliationAnnounceEntries","ReconciliationAnnounceEntries","ReconciliationMessage","ReconciliationSendEntry","ReconciliationSendEntry","ReconciliationSendFingerprint","ReconciliationSendFingerprint","ReconciliationSendPayload","ReconciliationSendPayload","ReconciliationTerminatePayload","ReconciliationTerminatePayload","ReplyFragment","SendEntry","SendEntry","SendFingerprint","SendPayload","SendPayload","SetMetadata","SetupBindAreaOfInterest","SetupBindAreaOfInterest","SetupBindReadCapability","SetupBindReadCapability","SetupBindStaticToken","SetupBindStaticToken","StaticToken","SubspaceCapability","SyncSignature","TerminatePayload","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","amount","amount","area","area_of_interest","authorisation","available","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","bytes","bytes","capability","capability","channel","channel","channel","channel","channel","channel","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","count","covers","covers","covers_region","decode_from","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","dynamic_token","dynamic_token","encode_into","encoded_len","entry","entry","entry","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fingerprint","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","group_member","group_member","handle","handle","handle","handle","handles","handles","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","is_secondary","new","nonce","offset","range","range","receiver_handle","receiver_handle","same_kind","sender_handle","sender_handle","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","signature","signature","static_token","static_token_handle","static_token_handle","target","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","want_response","will_sort","Alfie","Betty","Complete","Established","EventSender","Live","Ours","ReconcileOnce","Role","Scope","SessionEvent","SessionHandle","SessionId","SessionInit","SessionMode","SessionUpdate","SubmitIntent","Theirs","__clone_box","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","cancel_token","channels","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","close","complete","continuous","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","error","event_rx","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","from_ref","intents","interests","into","into","into","into","into","into","into","into","is_alfie","is_betty","is_live","mode","new","reconcile_once","send","submit_intent","to_owned","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","update_tx","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","remaining_intents","result","senders","update_receiver","we_cancelled","ChannelReceivers","ChannelSenders","Channels","LogicalChannelReceivers","LogicalChannelSenders","MessageReceiver","__clone_box","__clone_box","aoi_recv","aoi_send","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","capability_recv","capability_send","chain","clone","clone","clone_into","clone_into","close","close","close","close_all","control_recv","control_send","data_recv","data_send","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from_ref","from_ref","get","get","get_logical","intersection_recv","intersection_send","into","into","into","into","into","into","into_stream","logical_recv","logical_send","merge","poll_next","poll_recv","ratelimit_stream","ratelimit_stream_with_jitter","reconciliation_recv","reconciliation_send","recv","recv","send","send","static_tokens_recv","static_tokens_send","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_poll_next","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","zip","ActorFailed","AreaOfInterestDoesNotOverlap","AreaOfInterestNamespaceMismatch","Auth","BrokenCommittement","ChannelDropped","ChannelReceiverDropped","Error","InvalidCapability","InvalidMessageInCurrentState","InvalidParameters","InvalidSignature","InvalidState","KeyStore","MissingResource","MissingUserKey","Net","NoKnownInterestsForCapability","Pai","PayloadDigestMismatch","PayloadSizeMismatch","PayloadStore","RangeOutsideCapability","Receive","SessionNotFound","ShuttingDown","Store","TaskFailed","UnauthorisedArea","UnauthorisedWrite","UnsupportedMessage","Write","WrongChannel","WrongSecretKeyForCapability","borrow","borrow","borrow_mut","borrow_mut","eq","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","into","into","source","to_string","to_string","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","Abort","AddInterests","CapabilityIntersection","Close","Complete","Completion","EventKind","Intent","IntentHandle","IntentId","IntentUpdate","InterestIntersection","Nothing","Partial","Reconciled","ReconciledAll","__clone_box","add_interests","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","chain","clone","clone_into","close","complete","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from_ref","into","into","into","into","into","into_stream","merge","namespace","new","new_detached","poll_next","ratelimit_stream","ratelimit_stream_with_jitter","send_abort","split","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","zip","area","area","area","error","namespace","namespace","namespace","EntryOrigin","Store","WatchableEntryStore","__clone_box","auth","auth","borrow","borrow_mut","clone","clone_into","create_namespace","entries","entry","fmt","form_to_entry","from","from_ref","insert_entry","into","memory","new","payloads","secrets","to_owned","traits","try_from","try_into","type_id","vzip","Auth","AuthError","CreateCommunalCap","CreateOwnedCap","DelegationFailed","InvalidNamespaceId","InvalidPack","InvalidUserId","MissingNamespaceSecret","MissingUserSecret","NoCapability","Other","SecretStore","SubspaceCapDelegationFailed","__clone_box","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","create_full_caps","create_read_cap","create_write_cap","delegate_full_caps","delegate_read_cap","delegate_write_cap","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from_ref","get_read_cap","get_write_cap","import_caps","insert_caps_unchecked","into","into","list_read_caps","new","resolve_interests","source","to_owned","to_string","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","Data","EntryChannel","EntryOrigin","Local","Reconciliation","Remote","SessionId","WatchableEntryStore","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","from","from","from","from_ref","from_ref","from_ref","ingest","into","into","into","reader","snapshot","subscribe","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","unsubscribe","vzip","vzip","vzip","watch_area","channel","session","CapsStore","EntryStore","SecretStore","Store","__clone_box","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","caps","clone","clone_into","default","default","default","default","entries","fmt","fmt","fmt","fmt","from","from","from","from","from_ref","into","into","into","into","new","payloads","secrets","to_owned","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","Caps","CapsStorage","Entries","EntryReader","EntryStorage","KeyScope","MissingKey","Namespace","Payloads","RangeSplit","Reader","SecretStorage","SecretStoreError","Secrets","SendEntries","SendFingerprint","Snapshot","SplitAction","SplitOpts","Storage","Store","User","__clone_box","__clone_box","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","caps","clone","clone","clone_into","clone_into","count","default","entries","fingerprint","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from_ref","from_ref","get_entries","get_entries_with_authorisation","get_namespace","get_read_cap","get_user","get_write_cap","has_namespace","has_user","ingest_entry","insert","insert","insert_namespace","insert_user","into","into","into","into","list_read_caps","list_write_caps","max_set_size","payloads","reader","secrets","sign_namespace","sign_user","snapshot","source","split_factor","split_range","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","channel","codec","codec2","gen_stream","increment_by_one","queue","stream","time","Closed","ClosedIncomplete","Decode","Encode","Guarantees","Limited","ReadError","Reader","Receiver","Sender","Unlimited","WriteError","Writer","__clone_box","__clone_box","add","add_guarantees","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","chain","clone","clone","clone_into","clone_into","close","close","close","close","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from_ref","from_ref","get","inbound_channel","into","into","into","into","into","into","into","into_stream","max_buffer_size","merge","outbound_channel","poll_flush","poll_next","poll_shutdown","poll_write","ratelimit_stream","ratelimit_stream_with_jitter","read_bytes","recv","send_message","to_owned","to_owned","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_poll_next","type_id","type_id","type_id","type_id","type_id","type_id","type_id","use","vzip","vzip","vzip","vzip","vzip","vzip","vzip","zip","CompactWidth","DecodeOutcome","Decoded","Decoder","Encoder","NeedMoreData","__clone_box","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","compact_width","decode_from","encode","encode_into","encode_into","encoded_len","encoded_len","fmt","fmt","from","from","from_ref","into","into","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","from_bytes","from_bytes_relative","to_vec","to_vec_relative","consumed","item","GenStream","borrow","borrow_mut","chain","final_output","fmt","from","from_gen","into","into_stream","merge","new","poll_next","ratelimit_stream","ratelimit_stream_with_jitter","try_from","try_into","try_poll_next","type_id","vzip","zip","Queue","borrow","borrow_mut","chain","default","fmt","from","into","into_stream","merge","poll_next","poll_pop_front","push_back","ratelimit_stream","ratelimit_stream_with_jitter","try_from","try_into","try_poll_next","type_id","vzip","zip","Cancelable","borrow","borrow_mut","chain","fmt","from","into","into_inner","into_stream","merge","new","poll_next","ratelimit_stream","ratelimit_stream_with_jitter","try_from","try_into","try_poll_next","type_id","vzip","zip","system_time_now"],"q":[[0,"iroh_willow"],[29,"iroh_willow::engine"],[91,"iroh_willow::form"],[195,"iroh_willow::interest"],[402,"iroh_willow::net"],[410,"iroh_willow::proto"],[416,"iroh_willow::proto::data_model"],[519,"iroh_willow::proto::data_model::serde_encoding"],[538,"iroh_willow::proto::grouping"],[649,"iroh_willow::proto::grouping::serde_encoding"],[691,"iroh_willow::proto::keys"],[1041,"iroh_willow::proto::meadowcap"],[1133,"iroh_willow::proto::meadowcap::FailedDelegationError"],[1135,"iroh_willow::proto::meadowcap::serde_encoding"],[1202,"iroh_willow::proto::pai"],[1339,"iroh_willow::proto::pai::FragmentSet"],[1341,"iroh_willow::proto::wgps"],[1348,"iroh_willow::proto::wgps::challenge"],[1401,"iroh_willow::proto::wgps::channels"],[1496,"iroh_willow::proto::wgps::fingerprint"],[1523,"iroh_willow::proto::wgps::handles"],[1673,"iroh_willow::proto::wgps::messages"],[2206,"iroh_willow::session"],[2342,"iroh_willow::session::SessionEvent"],[2347,"iroh_willow::session::channels"],[2454,"iroh_willow::session::error"],[2524,"iroh_willow::session::intents"],[2613,"iroh_willow::session::intents::EventKind"],[2620,"iroh_willow::store"],[2649,"iroh_willow::store::auth"],[2708,"iroh_willow::store::entry"],[2772,"iroh_willow::store::entry::EntryOrigin"],[2774,"iroh_willow::store::memory"],[2828,"iroh_willow::store::traits"],[2929,"iroh_willow::util"],[2937,"iroh_willow::util::channel"],[3052,"iroh_willow::util::codec"],[3088,"iroh_willow::util::codec2"],[3092,"iroh_willow::util::codec::DecodeOutcome"],[3094,"iroh_willow::util::gen_stream"],[3115,"iroh_willow::util::queue"],[3136,"iroh_willow::util::stream"],[3156,"iroh_willow::util::time"],[3157,"dyn_clone::sealed"],[3158,"core::fmt"],[3159,"core::result"],[3160,"core::any"],[3161,"iroh_willow::engine::peer_manager"],[3162,"core::option"],[3163,"core::future::future"],[3164,"core::marker"],[3165,"iroh_base::key"],[3166,"core::ops::function"],[3167,"iroh_willow::engine::actor"],[3168,"anyhow"],[3169,"meadowcap"],[3170,"alloc::vec"],[3171,"futures_core::stream"],[3172,"iroh_quinn::connection"],[3173,"core::convert"],[3174,"iroh_net::endpoint"],[3175,"iroh_blobs::store::mem"],[3176,"tokio::sync::mpsc::bounded"],[3177,"serde::de"],[3178,"bytes::bytes"],[3179,"serde::ser"],[3180,"iroh_base::hash"],[3181,"iroh_blobs::store::traits"],[3182,"core::iter::traits::collect"],[3183,"core::hash"],[3184,"alloc::string"],[3185,"core::cmp"],[3186,"willow_encoding::error"],[3187,"ufotofu::sync"],[3188,"ufotofu::local_nb"],[3189,"willow_data_model::entry"],[3190,"willow_data_model::path"],[3191,"willow_data_model::grouping::range"],[3192,"core::clone"],[3193,"core::default"],[3194,"bitvec::slice"],[3195,"bitvec::order"],[3196,"ed25519_dalek::signing"],[3197,"ed25519_dalek::verifying"],[3198,"ed25519"],[3199,"ed25519_dalek::errors"],[3200,"rand_core"],[3201,"bitvec::ptr::span"],[3202,"signature::error"],[3203,"fallible_iterator"],[3204,"core::iter::traits::iterator"],[3205,"std::io"],[3206,"alloc::boxed"],[3207,"alloc::sync"],[3208,"futures_concurrency::stream::chain::tuple"],[3209,"futures_concurrency::stream::into_stream"],[3210,"futures_concurrency::stream::merge::tuple"],[3211,"core::pin"],[3212,"core::task::wake"],[3213,"core::task::poll"],[3214,"governor::state::direct"],[3215,"governor::state"],[3216,"governor::state::direct::streams"],[3217,"governor::clock"],[3218,"governor::clock::with_std"],[3219,"governor::middleware"],[3220,"governor::jitter"],[3221,"futures_concurrency::stream::zip::tuple"],[3222,"tokio::runtime::task::error"],[3223,"core::error"],[3224,"tokio_util::sync::mpsc"],[3225,"tokio_stream::wrappers::mpsc_bounded"],[3226,"meadowcap::owned_capability"],[3227,"meadowcap::communal_capability"],[3228,"tokio::sync::broadcast"],[3229,"std::io::error"],[3230,"willow_encoding::traits_sync"],[3231,"genawaiter::rc::generator"],[3232,"genawaiter::rc::engine"],[3233,"tokio_util::sync::cancellation_token"]],"i":[3,3,0,3,3,3,3,3,0,3,3,3,3,3,0,3,3,0,3,0,0,0,0,3,3,3,3,0,3,0,0,0,18,19,9,18,9,19,18,9,19,18,19,18,19,18,18,9,18,19,18,18,9,19,18,9,19,18,19,18,19,18,18,18,18,18,18,9,19,18,18,19,18,19,18,19,18,19,9,18,9,19,18,9,19,18,9,19,18,9,19,37,0,52,53,0,0,37,49,50,52,53,52,50,0,52,52,0,0,49,37,49,50,52,53,35,37,49,50,52,53,35,37,49,50,37,49,50,37,49,50,37,49,50,52,53,35,37,49,50,52,53,35,37,37,37,49,50,37,49,50,52,53,35,37,49,50,35,35,35,35,37,49,50,52,35,35,37,49,50,52,53,35,37,49,50,52,53,35,37,49,50,52,53,35,37,49,50,37,52,53,35,37,49,50,40,66,0,0,0,0,67,67,0,40,65,66,0,0,0,0,68,27,0,68,0,40,0,65,67,27,40,65,24,66,67,27,26,68,62,62,40,40,62,65,24,66,67,27,69,26,68,40,62,65,24,66,67,27,69,26,68,62,40,40,65,24,66,67,27,26,68,40,65,24,66,67,27,26,68,40,62,65,66,67,66,27,24,66,67,24,24,24,66,66,66,67,67,67,40,62,65,24,66,67,27,69,69,26,68,24,40,40,62,65,24,24,66,66,67,27,69,26,68,40,65,24,66,67,27,26,68,24,24,66,67,66,40,62,65,24,66,67,27,69,26,68,63,24,67,24,24,26,27,24,26,66,27,40,65,24,66,67,27,26,68,69,40,62,65,24,66,67,27,69,26,68,40,62,65,24,66,67,27,69,26,68,40,62,65,24,66,67,27,69,26,68,26,27,40,62,65,24,66,67,27,69,26,68,24,68,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,243,0,89,0,0,0,0,0,0,0,0,0,243,0,0,88,89,0,0,0,0,88,89,0,0,77,75,31,86,88,77,89,86,88,77,89,284,77,77,77,77,77,77,75,31,77,77,77,75,31,77,77,77,77,86,86,88,88,77,77,89,89,31,86,88,77,77,89,89,285,56,77,77,86,88,77,89,77,0,284,77,86,88,77,89,86,88,77,89,86,88,77,89,86,88,77,89,86,88,77,89,0,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,141,0,0,0,0,0,91,141,91,0,0,0,0,91,94,95,71,91,94,95,91,94,95,91,94,95,91,94,95,91,94,91,94,94,94,91,91,94,95,91,91,91,94,94,94,95,95,95,91,94,95,29,71,91,94,95,95,91,94,95,94,91,91,94,95,94,103,73,94,94,91,94,95,95,73,71,71,71,94,95,94,94,103,73,91,91,94,95,0,94,95,95,91,94,95,103,73,91,94,95,91,94,95,91,94,95,91,94,95,286,71,0,0,101,100,101,100,101,100,101,100,101,100,101,100,101,100,101,101,101,101,101,100,101,101,100,100,101,100,101,100,101,100,101,100,101,100,101,100,101,100,101,100,20,110,107,111,109,112,113,21,22,0,0,0,0,0,20,0,0,0,0,0,0,0,20,110,107,111,109,112,113,21,22,21,22,107,109,21,22,21,21,22,22,20,110,107,111,109,112,113,21,22,20,110,107,111,109,112,113,21,22,20,110,107,111,109,112,113,21,22,20,110,107,111,109,112,113,21,22,107,109,112,113,21,22,107,109,112,113,21,22,112,112,113,113,21,21,22,22,107,109,21,22,112,113,110,107,111,109,112,113,21,22,107,107,109,109,112,112,113,113,21,21,22,22,21,22,21,22,20,107,109,112,113,21,22,20,20,20,107,107,107,109,109,109,112,112,112,113,113,113,21,21,21,22,22,22,20,110,110,107,107,111,111,109,109,112,112,113,113,21,21,22,22,110,107,111,109,112,113,21,22,20,110,110,107,107,107,107,111,111,109,109,109,109,112,112,113,113,21,21,21,21,21,22,22,22,22,22,110,107,111,109,112,113,21,22,20,110,107,111,109,112,113,21,22,110,107,111,109,21,22,110,111,107,109,112,113,21,22,110,107,111,109,20,110,107,111,109,112,113,21,22,21,22,107,107,107,109,112,113,21,22,110,111,110,107,111,109,112,113,21,22,110,111,109,21,110,107,111,109,21,22,20,110,107,111,109,112,113,21,22,110,107,111,109,112,113,21,22,21,22,20,110,107,107,111,109,109,112,113,21,22,20,110,107,111,109,112,113,21,22,110,110,111,111,20,110,107,111,109,112,113,21,22,110,107,107,111,109,109,21,22,20,110,107,111,109,112,113,21,22,0,241,72,287,288,0,0,0,0,39,0,0,0,72,287,288,25,0,0,0,0,39,0,0,0,25,0,241,25,125,25,39,125,25,39,125,131,25,125,25,125,125,25,125,25,25,25,125,125,125,25,39,125,25,72,129,39,39,39,125,125,25,125,25,125,25,39,125,0,132,0,125,125,125,125,0,131,125,25,125,25,39,125,25,39,125,25,39,125,25,39,125,289,289,0,0,0,130,127,128,130,127,128,130,127,128,130,127,128,130,127,128,130,127,128,130,127,128,130,127,130,130,130,127,127,127,130,127,128,130,130,127,127,128,128,130,127,128,130,127,130,127,128,130,127,128,130,127,128,130,127,128,130,127,128,130,127,128,130,127,128,137,140,0,0,0,0,0,0,0,0,135,136,0,0,136,137,140,135,133,134,135,136,137,133,138,134,139,135,136,137,140,133,138,134,139,135,136,137,140,133,134,135,136,137,133,134,135,136,137,135,135,133,134,133,133,133,134,134,134,133,138,138,134,139,135,136,137,140,133,138,134,139,135,136,137,140,133,133,134,135,136,137,139,139,139,133,138,134,139,135,136,137,140,140,135,139,136,139,133,133,134,135,136,137,138,133,138,134,139,135,136,137,140,133,138,134,139,135,136,137,140,133,138,134,139,135,136,137,140,133,138,134,139,135,136,137,140,290,290,0,0,0,0,0,0,0,0,0,0,0,0,142,143,142,143,142,143,142,143,142,143,142,143,143,142,143,142,143,142,142,142,143,143,143,142,143,142,143,142,142,143,143,143,143,142,143,142,143,143,142,143,142,143,142,143,142,143,142,143,145,144,145,0,144,145,145,0,144,0,0,145,145,144,145,146,144,145,144,145,146,147,144,145,146,147,144,145,146,144,145,146,145,144,145,144,144,144,145,145,145,144,145,146,147,147,144,145,144,145,146,147,144,145,144,145,146,144,145,144,145,144,145,146,147,146,146,145,146,146,146,146,145,146,144,145,146,147,146,144,145,146,147,144,145,146,147,144,145,146,147,144,145,146,147,0,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,152,158,157,0,158,157,0,0,158,157,0,0,158,0,158,157,0,153,154,155,156,157,158,153,154,155,156,157,158,153,154,155,156,157,153,154,155,156,157,153,154,155,156,157,158,153,154,155,156,153,154,155,156,157,153,153,153,154,154,154,155,155,155,156,156,156,157,157,157,158,158,153,154,155,156,157,158,153,153,154,154,155,155,156,156,157,157,157,157,157,153,154,155,156,157,159,153,154,155,156,153,154,155,156,157,158,153,154,155,156,157,158,153,154,155,156,153,154,155,156,157,158,158,153,154,155,156,157,158,153,154,155,156,157,158,153,154,155,156,157,159,153,154,155,156,158,153,154,155,156,157,186,188,0,161,0,161,0,161,0,161,0,161,0,161,0,161,0,0,161,0,161,0,161,0,0,0,0,0,161,0,161,0,161,0,161,0,0,0,0,161,0,0,161,0,161,0,161,0,161,188,186,187,186,186,187,187,0,161,0,161,0,161,0,0,0,186,162,160,163,164,165,166,167,168,169,175,176,160,160,160,162,162,161,186,187,188,171,172,160,173,174,163,164,165,166,167,168,169,175,176,177,178,179,180,181,182,183,184,162,161,186,187,188,171,172,160,173,174,163,164,165,166,167,168,169,175,176,177,178,179,180,181,182,183,184,165,168,172,184,161,175,176,177,178,179,162,160,163,164,165,166,167,168,169,162,160,163,164,165,166,167,168,169,163,174,163,161,161,162,161,171,172,160,173,174,163,164,165,166,167,168,169,175,176,177,178,179,180,181,182,183,184,164,167,161,161,162,164,167,171,160,171,171,171,160,160,160,174,162,161,161,186,186,187,187,188,188,171,172,160,173,174,163,164,165,166,167,168,169,175,176,177,178,179,180,181,182,183,184,162,161,161,161,161,161,161,161,161,161,161,161,161,161,161,161,161,161,161,161,161,161,161,161,161,161,161,186,186,186,186,186,186,187,187,187,187,188,188,188,171,172,160,173,174,163,164,165,166,167,168,169,175,176,177,178,179,180,181,182,183,184,162,160,163,164,165,166,167,168,169,181,182,172,182,183,184,174,163,162,161,186,187,188,171,172,160,173,174,163,164,165,166,167,168,169,175,176,177,178,179,180,181,182,183,184,181,162,171,167,174,163,174,163,161,174,163,162,161,171,172,160,173,174,163,164,165,166,167,168,169,175,176,177,178,179,180,181,182,183,184,172,184,173,164,167,177,162,160,163,164,165,166,167,168,169,161,186,187,188,162,161,186,186,187,187,188,188,171,171,172,172,160,160,173,173,174,174,163,163,164,164,165,165,166,166,167,167,168,168,169,169,175,175,176,176,177,177,178,178,179,179,180,180,181,181,182,182,183,183,184,162,161,186,187,188,171,172,160,173,174,163,164,165,166,167,168,169,175,176,177,178,179,180,181,182,183,184,162,161,186,187,188,171,172,160,173,174,163,164,165,166,167,168,169,175,176,177,178,179,180,181,182,183,184,162,161,186,187,188,171,172,160,173,174,163,164,165,166,167,168,169,175,176,177,178,179,180,181,182,183,184,163,163,190,190,198,198,0,191,192,191,0,0,0,0,0,0,0,0,199,192,190,191,192,193,190,191,11,192,193,198,199,194,190,191,11,192,193,198,199,194,194,0,190,191,192,193,190,191,192,193,194,194,11,190,191,190,190,190,191,191,191,0,194,190,191,11,192,193,198,199,194,190,191,11,192,193,198,199,194,190,191,192,193,0,11,190,191,11,192,193,198,199,194,190,190,191,11,11,11,193,194,190,191,192,193,190,191,11,192,193,198,199,194,190,191,11,192,193,198,199,194,190,191,11,192,193,198,199,194,194,190,191,11,192,193,198,199,194,291,291,291,291,291,0,0,0,0,0,0,204,195,207,204,205,207,204,195,208,209,205,207,204,195,208,209,207,204,205,204,195,204,195,205,207,204,195,208,195,207,204,205,207,204,195,208,209,205,205,207,204,195,208,209,204,195,204,195,195,207,204,205,207,204,195,208,209,205,208,195,205,205,205,205,205,207,204,205,209,195,209,207,204,204,195,205,207,204,195,208,209,205,207,204,195,208,209,205,205,207,204,195,208,209,205,207,204,195,208,209,205,196,196,196,196,196,196,0,0,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,196,200,196,200,196,196,196,196,196,196,200,200,196,196,196,196,196,196,196,196,196,196,200,196,200,196,196,200,196,200,196,200,196,200,196,200,47,234,47,234,233,0,0,0,0,0,0,47,233,233,47,47,47,46,47,234,201,233,46,47,234,201,233,46,46,47,47,46,46,47,233,47,47,47,233,233,233,47,234,201,233,46,47,234,201,233,46,47,47,234,201,233,46,46,46,47,201,201,46,46,46,201,46,47,47,234,201,233,46,47,234,201,233,46,47,234,201,233,46,47,234,201,233,46,46,292,293,294,295,292,293,294,0,0,0,237,0,237,237,237,237,237,237,237,0,237,237,237,237,237,237,0,237,237,237,237,0,237,237,237,237,0,0,227,227,227,227,227,227,227,227,227,227,227,227,238,238,227,238,227,238,238,238,238,238,238,238,238,238,227,227,238,227,227,227,227,227,227,227,238,238,238,238,238,238,227,238,238,238,227,238,227,238,227,238,227,238,227,238,227,245,0,0,244,245,244,0,0,244,245,239,244,245,239,244,245,239,244,245,239,244,245,239,244,245,244,244,244,245,245,245,244,245,239,244,245,239,244,245,239,239,244,245,239,239,239,239,244,245,239,244,245,239,244,245,239,244,245,239,239,244,245,239,239,296,296,0,0,0,0,249,249,250,251,252,249,250,251,252,249,249,249,249,250,251,252,249,249,250,251,252,249,250,251,252,249,249,250,251,252,249,249,249,249,249,250,251,252,249,250,251,252,249,250,251,252,249,250,251,252,42,0,42,0,0,0,228,259,42,0,246,0,0,42,262,262,246,0,0,0,228,259,259,260,228,259,262,260,228,259,262,260,42,259,260,259,260,261,260,42,261,228,228,259,262,260,228,228,259,262,260,259,260,261,261,257,258,257,258,257,257,246,257,258,257,257,228,259,262,260,258,258,260,42,246,42,257,257,246,228,260,261,259,260,228,228,259,262,260,228,259,262,260,228,259,262,260,228,259,262,260,0,0,0,0,0,0,0,0,225,230,230,225,0,266,0,0,0,0,266,0,0,211,210,266,211,225,230,266,268,269,211,210,225,230,266,268,269,211,210,210,211,210,211,210,268,269,211,210,225,225,230,230,266,268,269,211,210,225,230,266,268,269,211,210,211,210,266,0,225,230,266,268,269,211,210,210,269,210,0,269,210,269,269,210,210,268,210,211,211,210,225,230,225,230,266,268,269,211,210,225,230,266,268,269,211,210,210,225,230,266,268,269,211,210,266,225,230,266,268,269,211,210,210,0,0,170,0,0,170,272,170,272,170,272,272,272,0,270,267,267,272,267,272,170,272,170,272,272,170,272,272,170,272,170,272,170,272,170,272,0,0,0,0,297,297,0,278,278,278,278,278,278,278,278,278,278,278,278,278,278,278,278,278,278,278,278,0,281,281,281,281,281,281,281,281,281,281,281,281,281,281,281,281,281,281,281,281,0,282,282,282,282,282,282,282,282,282,282,282,282,282,282,282,282,282,282,282,0],"f":"```{{cb}d{}}{ce{}{}}0{ff}{{ce}d{}{}}`{{ff}h}{{ce}h{}{}}00{{fj}l}`{cc{}}0`6````6{c{{n{e}}}{}{}}0{cA`{}}`8```99{{Abe}Ab{{Aj{}{{Ad{{Ah{Af}}}}}}Al}{{B`{An}{{Ad{c}}}}AlBb}}999999{BdBd}{BfBf}99{{BdBhBj}{{Bn{Bl}}}}{Bd{{Bn{Bj}}}}{{}Ab}{{BdC`CbCd}{{Bn{{Ch{Cf}}}}}}{Bfc{}}{Bdd}{{Bdj}l}{{Abj}l}{{Bfj}l}>>>>>{{BdBlCj}{{Bn{{`{{D`{}{{Cl{{Bn{Cn}}}}}}}}}}}}{{BfDb}{{Bn{d}}}}{{Bd{Ch{Cf}}}{{Bn{d}}}}{{BdDd}{{Bn{d}}}}{{BdDfc}{{Bn{{Dh{Cnh}}}}}{{Dl{Dj}}}}{{BdCnc}{{Bn{d}}}{{Dl{Dj}}}}{{Bdc}{{Bn{d}}}{{Dl{Dn}}}}{ce{}{}}00{{BdE`}{{Bn{Eb}}}}{Bd{{Bn{d}}}}{Bf{{Bn{d}}}}{{eAn}BdEd{Al{Ef{}{{Ad{c}}}}}}{{EheAb}BfEd{Al{Ef{}{{Ad{c}}}}}}{{EjAn}Bd}{{BfAnAf}{{Bn{El}}}}77{{Ab{F`{{Dh{AnEn}}}}}Ab}{c{{n{e}}}{}{}}00000{cA`{}}00:::```````````````````{{cb}d{}}00;;;;;;;;;;;;{DjDj}{FbFb}{FdFd}{{ce}d{}{}}00{c{{n{Dj}}}Ff}{c{{n{Fb}}}Ff}{c{{n{Fd}}}Ff}{{Fhj}l}{{Fjj}l}{{Dfj}l}{{Djj}l}{{Fbj}l}{{Fdj}l}{cc{}}00{FlDj}1{BjDj}22222{ce{}{}}00000`{{FnG`c}Df{{Dl{Gb}}}}``{{Djc}nGd}{{Fbc}nGd}{{Fdc}nGd}{{Fhc}{{Bn{{Dh{GfGh}}}}}Gj}``555{c{{n{e}}}{}{}}00000000000{cA`{}}00000{DjBj}888888``````````````````````````{{cb}d{}}0000000{{Glcg}Gl{{Dl{C`}}}Gn{{H`{}{{Cl{e}}}}}}{{Glc}Gl{{Dl{C`}}}}{{}E`}<<<<<<<<<<<<<<<<<<<<{GlE`}{{}Gl}{E`E`}{HbHb}{C`C`}{HdHd}{HfHf}{CfCf}{CdCd}{HhHh}{{ce}d{}{}}0000000;9{{}Hb}{{}Hd}{{}Hf}{c{{n{Hd}}}Ff}{c{{n{Cf}}}Ff}{{C`C`}h}{{HdHd}h}{{HfHf}h}{{ce}h{}{}}00000000{{E`j}l}{{Glj}l}{{Hbj}l}{{C`j}l}{{Hdj}l}{{Hfj}l}{{Cfj}l}{{Hjj}l}0{{Cdj}l}{{Hhj}l}{{CnHd}C`}{cc{}}{GlE`}11{BlC`}22{BjHd}3333333333333`{{C`c}dHl}{{Hdc}dHl}{{Hfc}dHl}{{HdBj}h}{ce{}{}}000000000{GnHn}{{C`I`}h}{{HfIb}h}`{{BlHdHf}C`}{{BjHh}Cd}{CfBj}``{{Hdc}nGd}{{Cfc}nGd}88888888{cId{}}{c{{n{e}}}{}{}}0000000000000000000{cA`{}}000000000`{Cf{{n{dHj}}}}<<<<<<<<<<{BlC`}{{HhIb}Ib}{{BlBj}C`}`````````````````````````````````````````{{cb}d{}}{If{{Dh{FnIhG`}}}}{Cn{{Dh{FnIhG`}}}}{ce{}{}}0000000`{IjIj}{{ce}d{}{}}{{IjIj}Il}{{ce}Il{}{}}{c{{n{IjIn}}}{{Jb{}{{Cl{J`}}}}}}{c{{n{IjIn}}}{{Jd{}{{Cl{J`}}}}}}{{{Jf{J`}}}{{Bn{Cn}}}}0{{}Ij}{{Ijc}{{n{d}}}{{Jh{}{{Cl{J`}}}}}}{{Ijc}{{n{d}}}{{Jj{}{{Cl{J`}}}}}}{If{{Ch{J`}}}}{Cn{{Ch{J`}}}}{{IjIj}h}{{ce}h{}{}}00{{Jlj}{{n{dJn}}}}0{{K`j}{{n{dJn}}}}0{{Ijj}l}0{{Kbj}l}0{KdCn}{cc{}}00{GfIj}1{K`Kb}{{{Jf{{Jf{J`}}}}}{{n{G`Kb}}}}03{{Ijc}dHl}{ce{}{}}000{{IjIj}{{Ah{Il}}}}``1{cId{}}000{c{{n{e}}}{}{}}0000000{cA`{}}0004444`{{cb}d{}}55{KdKd}{{ce}d{}{}}{Kdc{}}{c{{n{Kd}}}Ff}{{Kdj}l}?{CnKd}{cc{}}<{{Kdc}nGd}=::9=`````````````888`======{{{Kf{c}}}{{Kf{c}}}{KhKj}}{{{Kl{c}}}{{Kl{c}}}{KhKj}}{KnKn}999{{{Kf{c}}{Kf{c}}}IlKj}{{{Kl{c}}{Kl{c}}}IlKj}{{ce}Il{}{}}0{{}{{Kl{c}}}{L`KjKh}}`{{{Kf{c}}c}h{LbKj}}{{{Kf{c}}{Kf{c}}}h{LdKj}}{{{Kl{c}}{Kl{c}}}h{LdKj}}{{KnKn}h}{{ce}h{}{}}00000000{{{Kf{c}}j}{{n{dJn}}}{LfKj}}{{{Kl{c}}j}{{n{dJn}}}{LfKj}}{{Knj}l}{LhCj}{LjHn}{cc{}}00{CnKn}111<{{{Kf{c}}c}hKj}{{{Kf{c}}e}d{LlKj}Hl}{{{Kl{c}}e}d{LlKj}Hl}{{Knc}dHl}{{{Kl{c}}c}h{KjKh}}{{LnKn}h}{{IbKn}h}{{{Kl{c}}{Kl{c}}}h{KjKh}}{{{Kl{c}}{Kl{c}}}{{Ah{{Kl{c}}}}}{KjKh}}{ce{}{}}00{KnIb}{IbHn}{HnHn}``{{c{Kf{c}}}{{Kl{c}}}{KjKh}}{{IhG`M`}Kn}{{cc}{{Ah{{Kl{c}}}}}{KjKh}}{c{{Kl{c}}}{KjKh}}{G`Ib}0{{{Kf{c}}{Kf{c}}}{{Ah{Il}}}Kj}{{{Kf{c}}c}{{Ah{Il}}}Kj}{{{Kl{c}}{Kl{c}}}{{Ah{Il}}}Kj}`````;;;{LnCj}{IbCj}{c{{n{e}}}{}{}}00000{cA`{}}00???==``{{cb}d{}}0{ce{}{}}000{LjLj}{LhLh}{{ce}d{}{}}0{Ljc{}}{Lhc{}}{c{{n{Lj}}}Ff}{c{{n{Lh}}}Ff}{{LjLj}h}{{ce}h{}{}}00{{Ljj}l}{{Lhj}l}{cc{}}{HnLj}{CjLh}222>>{{Ljc}nGd}{{Lhc}nGd}{ce{}{}}0{c{{n{e}}}{}{}}000{cA`{}}022``````````````````````{{cb}d{}}00000000{c{{Mb{eg}}}{}{}Md}0{Mf{{Mh{J`}}}}{Mj{{Mh{J`}}}}{Bj{{Mh{J`}}}}{Bl{{Mh{J`}}}}1{Bj{{Jf{J`}}}}{Bl{{Jf{J`}}}}2::::::::::::::::::{BhBh}{MlMl}{MfMf}{MnMn}{MjMj}{N`N`}{NbNb}{BjBj}{BlBl}{{ce}d{}{}}00000000{{MfMf}Il}{{MjMj}Il}{{N`N`}Il}{{NbNb}Il}{{BjBj}Il}{{BlBl}Il}{{ce}Il{}{}}00000{c{{n{N`In}}}{{Jd{}{{Cl{J`}}}}}}{c{{n{N`In}}}{{Jb{}{{Cl{J`}}}}}}{c{{n{NbIn}}}{{Jb{}{{Cl{J`}}}}}}{c{{n{NbIn}}}{{Jd{}{{Cl{J`}}}}}}{c{{n{BjIn}}}{{Jd{}{{Cl{J`}}}}}}{c{{n{BjIn}}}{{Jb{}{{Cl{J`}}}}}}{c{{n{BlIn}}}{{Jb{}{{Cl{J`}}}}}}{c{{n{BlIn}}}{{Jd{}{{Cl{J`}}}}}}{{}Mf}{{}Mj}{{}Bj}{{}Bl}{N`c{}}{Nbc{}}{c{{n{Ml}}}Ff}{c{{n{Mf}}}Ff}{c{{n{Mn}}}Ff}{c{{n{Mj}}}Ff}{c{{n{N`}}}Ff}{c{{n{Nb}}}Ff}{c{{n{Bj}}}Ff}{c{{n{Bl}}}Ff}{{Mfc}{{n{d}}}{{Jh{}{{Cl{J`}}}}}}{{Mfc}{{n{d}}}{{Jj{}{{Cl{J`}}}}}}{{Mjc}{{n{d}}}{{Jj{}{{Cl{J`}}}}}}{{Mjc}{{n{d}}}{{Jh{}{{Cl{J`}}}}}}{{N`c}{{n{d}}}{{Jj{}{{Cl{J`}}}}}}{{N`c}{{n{d}}}{{Jh{}{{Cl{J`}}}}}}{{Nbc}{{n{d}}}{{Jh{}{{Cl{J`}}}}}}{{Nbc}{{n{d}}}{{Jj{}{{Cl{J`}}}}}}{{Bjc}{{n{d}}}{{Jh{}{{Cl{J`}}}}}}{{Bjc}{{n{d}}}{{Jj{}{{Cl{J`}}}}}}{{Blc}{{n{d}}}{{Jh{}{{Cl{J`}}}}}}{{Blc}{{n{d}}}{{Jj{}{{Cl{J`}}}}}}{ce{}{{Nf{Nd}}}}000{{BhBh}h}{{MfMf}h}{{MjMj}h}{{N`N`}h}{{NbNb}h}{{BjBj}h}{{BlBl}h}{{ce}h{}{}}00000000000000000000{{Bhj}l}{{Mlj}l}0{{Mfj}l}0{{Mnj}l}0{{Mjj}l}0{{N`j}l}0{{Nbj}l}0{{Bjj}l}0{{Blj}l}0{MlId}{MfId}{MnId}{MjId}{N`Id}{NbId}{BjId}{BlId}{cc{}}0{NhMl}1{MlMf}{NjMf}13{NhMn}{NjMj}5{MnMj}06{NlN`}{NlNb}8{MjBj}0{MnBj}:{{{Mh{J`}}}Bj}{MlBl}<{MfBl}0{{{Mh{J`}}}Bl}{{{Mh{J`}}}Ml}{{{Mh{J`}}}{{n{MfNn}}}}{{{Mh{J`}}}Mn}{{{Mh{J`}}}{{n{MjNn}}}}{{{Mh{J`}}}N`}{{{Mh{J`}}}Nb}96{cc{}}00000000{O`{{n{Mlc}}}{}}{O`{{n{Mfc}}}{}}{O`{{n{Mnc}}}{}}{O`{{n{Mjc}}}{}}{O`{{n{Bjc}}}{}}{O`{{n{Blc}}}{}}{{cBh}Ml{ObOd}}{cMn{ObOd}}{{Mfc}dHl}{{Mjc}dHl}{{N`c}dHl}{{Nbc}dHl}{{Bjc}dHl}{{Blc}dHl}{MlBl}{MfBl}{MnBj}{MjBj}{ce{}{}}00000000{Bj{{n{MjNn}}}}{Bl{{n{MfNn}}}}{Mfh}{MfBh}{{MfMf}{{Ah{Il}}}}{{MjMj}{{Ah{Il}}}}{{N`N`}{{Ah{Il}}}}{{NbNb}{{Ah{Il}}}}{{BjBj}{{Ah{Il}}}}{{BlBl}{{Ah{Il}}}}{MlMf}{MnMj}{{Mlc}nGd}{{Mfc}nGd}{{Mnc}nGd}{{Mjc}nGd}{{N`c}nGd}{{Nbc}nGd}{{Bjc}nGd}{{Blc}nGd}{{Ml{Jf{J`}}}N`}{{Mn{Jf{J`}}}Nb}{Mj{{Ah{Mj}}}}{Bj{{Ah{Bj}}}}{Ml{{Mh{J`}}}}{Mf{{Mh{J`}}}}{Mn{{Mh{J`}}}}{Mj{{Mh{J`}}}}{Bj{{Mh{J`}}}}{Bl{{Mh{J`}}}}{ce{}{}}00000000{cId{}}0000000{c{{n{{Mb{eg}}{Of{e}}}}}{}{}Md}0{c{{n{e}}}{}{}}0{Bl{{n{Mfc}}}{}}11{Bj{{n{Mjc}}}{}}22222222222222{{c{Jf{J`}}}{{n{eOh}}}{}{}}{{Ml{Jf{J`}}}{{n{N`Oh}}}}{{Mn{Jf{J`}}}{{n{NbOh}}}}2{cA`{}}00000000{{Ml{Jf{J`}}N`}{{n{dNn}}}}{{Mf{Jf{J`}}N`}{{n{dNn}}}}{{Mf{Jf{J`}}N`}{{n{dOh}}}}{{Mn{Jf{J`}}Nb}{{n{dNn}}}}{{Mj{Jf{J`}}Nb}{{n{dNn}}}}{{Mj{Jf{J`}}Nb}{{n{dOh}}}}{{Bj{Jf{J`}}Nb}{{n{dOh}}}}{{Bl{Jf{J`}}N`}{{n{dOh}}}}{ce{}{}}00000000````````````````````````````{{cb}d{}}0111111`{CbCb}{OjOj}{{ce}d{}{}}0{{OjMnOlIb}{{Bn{Oj}}}}{{CbCb}h}{{OjOj}h}{{ce}h{}{}}00000{{Cbj}{{n{dJn}}}}{{Dnj}l}{{Ojj}l}{cc{}}{OnI`}{A@`A@b}{MnDn}{MlDn}4{A@dOj}555{{Cbc}dHl}{{Ojc}dHl}{ce{}{}}00{{CnA@f}h}{A@hh}{{I`I`}h}{OjA@h}{{I`{Ah{A@b}}}Oj}{{MlOl}{{Bn{Oj}}}}{OjI`}``{Oj{{Ah{A@b}}}}88{c{{n{e}}}{}{}}00000{cA`{}}00:::`````{{cb}d{}}00;;;;;;{A@dA@d}{OnOn}{A@`A@`}{{ce}d{}{}}00{A@dc{}}{Onc{}}{A@`c{}}{c{{n{A@d}}}Ff}{c{{n{On}}}Ff}{c{{n{A@`}}}Ff}{{A@dA@d}h}{{OnOn}h}{{ce}h{}{}}00000{{A@dj}l}{{Onj}l}{{A@`j}l}{cc{}}{OjA@d}{I`On}22{A@bA@`}333{{A@dc}dHl}{{Onc}dHl}{ce{}{}}00{{A@dc}nGd}{{Onc}nGd}{{A@`c}nGd}333{c{{n{e}}}{}{}}00000{cA`{}}00555``````````````````{{cb}d{}}00006666666666666666{A@jA@j}{A@lA@l}{A@nA@n}{AA`AA`}{AAbAAb}{{ce}d{}{}}0000{{A@nc}{{n{d}}}{{Jh{}{{Cl{J`}}}}}}{{A@nc}{{n{d}}}{{Jj{}{{Cl{J`}}}}}}{{A@jA@j}h}{{A@lA@l}h}{{ce}h{}{}}00000{{A@jj}l}{{AAdj}l}0{{A@lj}l}{{AAfj}l}{{A@nj}l}{{AA`j}l}{{AAbj}l}{{AAhj}l}{cc{}}0000000{{{Mh{J`}}}{{n{A@jAAd}}}}11111{I`AAh}{{}A@l}{A@nA@j}{ce{}{}}0000000{AAhAAb}{A@n{{Dh{FnAAjG`}}}}{{A@jA@j}h}{AA`h}{{A@jA@l}A@j}{A@j{{Mh{J`}}}}66666{cId{}}{c{{n{e}}}{}{}}000000000000000{cA`{}}000000099999999``````````````{{cb}d{}}0{AAl{{Jf{J`}}}}{AAn{{Jf{J`}}}}<<<<{AAlAAl}{AAnAAn}{{ce}d{}{}}0{{}AAn}{c{{n{AAl}}}Ff}{c{{n{AAn}}}Ff}{{AAlAAl}h}{{AAnAAn}h}{{ce}h{}{}}00000{{AAlj}l}{{AAnj}l}{cc{}}0{{{Mh{J`}}}AAl}119{cAAnOb}{AAnAAl}{ce{}{}}0{{AAlc}nGd}{{AAnc}nGd}{AAn{{Mh{J`}}}}33{c{{n{e}}}{}{}}000{cA`{}}055`````````````{{cb}d{}}00{{}{{Mh{AB`}}}}{{}{{Mh{ABb}}}}88888888{AB`AB`}{ABbABb}{ABdABd}{{ce}d{}{}}00{c{{n{ABb}}}Ff}{{AB`AB`}h}{{ABbABb}h}{{ce}h{}{}}00000{{AB`j}l}{{ABbj}l}{{ABdj}l}{{ABfj}l}0{AB`O`}{ABbO`}{cc{}}000{J`{{n{AB`ABf}}}}{J`{{n{ABbABf}}}}222{{AB`c}dHl}{{ABbc}dHl}{AB`J`}{ABbJ`}{ce{}{}}000{c{{ABh{g}}}{}{}{{ABj{}{{Cl{e}}}}}}1{{}ABd}{ABdABl}{ABd{{Ah{c}}}{}}0{{ABdABl}{{Ah{c}}}{}}{{ABbc}nGd}{ABd{{Dh{ABl{Ah{ABl}}}}}}777{cId{}}{c{{ABn{i}}}{}{}{}{{ABj{}{{Cl{{n{eg}}}}}}}}{c{{n{e}}}{}{}}0000000{cA`{}}000;;;;`{{cb}d{}}{{AC`c}d{{ABj{}{{Cl{Cn}}}}}}{{AC`Cn}d}{{AC`AC`}d}??{AC`AC`}{{ce}d{}{}}{{}AC`}{c{{n{AC`}}}Ff}{{AC`AC`}h}{{ce}h{}{}}00{{AC`j}l}{cc{}}{cAC`{{ABj{}{{Cl{Cn}}}}}}1{ce{}{}}{AC`h}{{AC`c}nGd}2{c{{n{e}}}{}{}}0{cA`{}}4````````````````{{cb}d{}}0000555555555555{ACbACb}{ACdACd}{ACfACf}{AChACh}{ACjACj}{{ce}d{}{}}0000{c{{n{ACl}}}Ff}{c{{n{ACb}}}Ff}{c{{n{ACd}}}Ff}{c{{n{ACf}}}Ff}{c{{n{ACh}}}Ff}{{ACbACb}h}{{ACdACd}h}{{ACfACf}h}{{AChACh}h}{{ACjACj}h}{{ce}h{}{}}00000000000000{{AClj}l}{{AClj}{{n{dJn}}}}{{ACbj}l}{{ACdj}l}{{ACfj}l}{{AChj}l}{{ACjj}l}{cc{}}0{GhACb}{GhACd}2{GhACf}33{GhACh}4{ACdACj}{ACbACj}{ACfACj}{AChACj}88888{ACnACl}{ACbACl}{ACdACl}{ACfACl}{AChACl}{{ACbc}dHl}{{ACdc}dHl}{{ACfc}dHl}{{AChc}dHl}{{ACjc}dHl}{ce{}{}}00000{{AClc}nGd}{{ACbc}nGd}{{ACdc}nGd}{{ACfc}nGd}{{AChc}nGd}55555{cId{}}{c{{n{e}}}{}{}}00000000000{cA`{}}00000{ACnGh}{ACbGh}{ACdGh}{ACfGh}{AChGh}======``````````````````````````````````````````````````````````````````{{cb}d{}}00000000``{AD`Ib}```??????????????????????????????????????????????????????````{ADbAB`}`````{ADdADd}{AD`AD`}{ADfADf}{ADhADh}{ADjADj}{ADlADl}{ADnADn}{AE`AE`}{AEbAEb}{{ce}d{}{}}00000000```{ADb{{Ah{{Dh{ACbGh}}}}}}{{{Jf{J`}}}{{Bn{{AEd{ADb}}}}}}{c{{n{ADd}}}Ff}{c{{n{ADb}}}Ff}{c{{n{AEf}}}Ff}{c{{n{AEh}}}Ff}{c{{n{AD`}}}Ff}{c{{n{AEj}}}Ff}{c{{n{AEl}}}Ff}{c{{n{ADf}}}Ff}{c{{n{ADh}}}Ff}{c{{n{ADj}}}Ff}{c{{n{ADl}}}Ff}{c{{n{ADn}}}Ff}{c{{n{AE`}}}Ff}{c{{n{AEb}}}Ff}{c{{n{AEn}}}Ff}{c{{n{AF`}}}Ff}{c{{n{AFb}}}Ff}{c{{n{AFd}}}Ff}{c{{n{AFf}}}Ff}{c{{n{AFh}}}Ff}{c{{n{AFj}}}Ff}{c{{n{AFl}}}Ff}{c{{n{AFn}}}Ff}{c{{n{AG`}}}Ff}``{{ADbc}{{Bn{d}}}AGb}{ADbABl}```{{AEfAEf}h}{{AD`AD`}h}{{ce}h{}{}}00000`{{ADdj}l}{{ADbj}l}{{ADbj}{{n{dJn}}}}{{AGdj}l}{{AGdj}{{n{dJn}}}}{{AGfj}l}{{AGfj}{{n{dJn}}}}{{AGhj}l}{{AGhj}{{n{dJn}}}}{{AEfj}l}{{AEhj}l}{{AD`j}l}{{AEjj}l}{{AElj}l}{{ADfj}l}{{ADhj}l}{{ADjj}l}{{ADlj}l}{{ADnj}l}{{AE`j}l}{{AEbj}l}{{AEnj}l}{{AF`j}l}{{AFbj}l}{{AFdj}l}{{AFfj}l}{{AFhj}l}{{AFjj}l}{{AFlj}l}{{AFnj}l}{{AG`j}l}{cc{}}{AF`ADb}{{{AGj{AG`}}}ADb}{AEhADb}{AGhADb}{AFbADb}{AFlADb}{AGdADb}{AEfADb}{AEjADb}{ADnADb}{AFfADb}{ADlADb}{AEbADb}{AE`ADb}{ADfADb}{AFnADb}{AD`ADb}{AFhADb}{AFjADb}{AEnADb}{cc{}}{ADhADb}{AElADb}{AGfADb}{AFdADb}{ADjADb}{AElAGd}6{ADjAGd}{ADhAGd}{ADfAGd}{ADlAGd}{AE`AGf}{AEbAGf}{ADnAGf}={AFjAGh}>{AFlAGh}???????????????????????????????``````{AEl{{Dh{ACbACb}}}}{ADf{{Dh{ACbACb}}}}{ce{}{}}00000000000000000000000000`{{CnGh}ADd}``````{{ADbADb}h}``{{ADdc}nGd}{{ADbc}nGd}{{AEfc}nGd}{{AEhc}nGd}{{AD`c}nGd}{{AEjc}nGd}{{AElc}nGd}{{ADfc}nGd}{{ADhc}nGd}{{ADjc}nGd}{{ADlc}nGd}{{ADnc}nGd}{{AE`c}nGd}{{AEbc}nGd}{{AEnc}nGd}{{AF`c}nGd}{{AFbc}nGd}{{AFdc}nGd}{{AFfc}nGd}{{AFhc}nGd}{{AFjc}nGd}{{AFlc}nGd}{{AFnc}nGd}{{AG`c}nGd}``````{ce{}{}}00000000{cId{}}000{c{{n{e}}}{}{}}00{ADb{{n{AGdc}}}{}}1{ADb{{n{AGfc}}}{}}{ADb{{n{AGhc}}}{}}33{ADb{{n{AEfc}}}{}}{ADb{{n{AEhc}}}{}}55{ADb{{n{AD`c}}}{}}{ADb{{n{AEjc}}}{}}77{ADb{{n{AElc}}}{}}8{ADb{{n{ADfc}}}{}}9{ADb{{n{ADhc}}}{}}{ADb{{n{ADjc}}}{}};;{ADb{{n{ADlc}}}{}}{ADb{{n{ADnc}}}{}}={ADb{{n{AE`c}}}{}}>{ADb{{n{AEbc}}}{}}?{ADb{{n{AEnc}}}{}}{c{{n{e}}}{}{}}{ADb{{n{AF`c}}}{}}1{ADb{{n{AFbc}}}{}}2{ADb{{n{AFdc}}}{}}3{ADb{{n{AFfc}}}{}}44{ADb{{n{AFhc}}}{}}{ADb{{n{AFjc}}}{}}6{ADb{{n{AFlc}}}{}}7{ADb{{n{AFnc}}}{}}88888888888888888888888888888{cA`{}}00000000000000000000000000{ce{}{}}00000000000000000000000000````````````````````{{cb}d{}}0001111111111111111``{AGlAGl}{AGnAGn}{AH`AH`}{AHbAHb}{{ce}d{}{}}000{AHdd}{AHd{{n{{Dh{AHfh}}{AHj{AHh}}}}}}{cAf{{Dl{E`}}}}{{AGlAGl}h}{{AGnAGn}h}{{ce}h{}{}}00000``{{AGlj}l}{{AGnj}l}{{Afj}l}{{AH`j}l}{{AHbj}l}{{AHlj}l}{{AHnj}l}{{AHdj}l}{cc{}}00000000000``{ce{}{}}0000000{AGlh}0{AGnh}`{{cAGn}Af{{Dl{E`}}}}{cAf{{Dl{E`}}}}{{AHbAHl}{{n{dAI`}}}}{{AHdAIb}{{Bn{d}}}}6666{c{{n{e}}}{}{}}000000000000000{cA`{}}0000000`88888888```````````{{cb}d{}}0``999999999999``{{cg}{{AId{i}}}{}{}{{AIf{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{AIhAIh}{AHfAHf}{{ce}d{}{}}0{{{AIj{c}}}d{{AIl{ADb}}}}{AInd}{AIhd}{AHfd}````{{{AIj{c}}j}lLf}{{AInj}l}{{AIhj}l}{{AHfj}l}{{AJ`j}l}{{AJbj}l}{cc{}}{{{AJd{ADb}}}{{AIj{c}}}{{AIl{ADb}}}}1111111{{AIhABb}{{AJf{ADb}}}}{{AHfAB`}{{AJf{ADb}}}}{{AHfABb}{{AJf{ADb}}}}``{ce{}{}}000000``{{cg}{{AJh{ei}}}{}{}{{AIf{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{{{AJj{{AIj{c}}}}AJl}{{AJn{{Ah{e}}}}}{{AIl{ADb}}AK`}{}}{{{AIj{c}}AJl}{{AJn{{Ah{{n{cAHh}}}}}}}{{AIl{ADb}}}}{{c{AKd{AKbegi}}}{{AKf{kegi}}}{}AKh{AKjAKl}AKn{}}{{c{AKd{AKbegi}}AL`}{{AKf{kegi}}}{}AKh{AKjAKl}AKn{}}``{{{AIj{c}}}{{Ah{{n{cAHh}}}}}{{AIl{ADb}}}}`{{AHfc}{{n{dALb}}}{{Dl{ADb}}}}```77{c{{n{e}}}{}{}}00000000000{{{AJj{c}}AJl}{{AJn{{Ah{n}}}}}{}}{cA`{}}00000::::::{{cg}{{ALd{i}}}{}{}{{AIf{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}``````````````````````````````````;;;;{{AHhAHh}h}{{ce}h{}{}}00{{AHhj}l}0{{AI`j}l}0{ALbAHh}{NnAHh}{ALfAHh}{JlAHh}{AI`AHh}{ALhAHh}{cc{}}{ALjAHh}{ALlAHh}{ALnAHh}3{ce{}{}}0{AHh{{Ah{AM`}}}}{cId{}}0{c{{n{e}}}{}{}}000{cA`{}}044````````````````{{cb}d{}}{{Elc}{{Bn{d}}}{{Dl{E`}}}}6666666666{{cg}{{AId{i}}}{}{}{{AIf{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{EnEn}{{ce}d{}{}}{Eld}{El{{Bn{AMb{AHj{AHh}}}}}}{{EnEn}h}{{AMbAMb}h}{{ce}h{}{}}00000{{Enj}l}{{AMdj}l}{{AIbj}l}{{AMbj}l}{{Elj}l}{cc{}}00000{ce{}{}}00000{{cg}{{AJh{ei}}}{}{}{{AIf{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{En{{Ah{Bl}}}}{Af{{Dh{AIbEl}}}}{AfAIb}{{{AJj{El}}AJl}{{AJn{{Ah{c}}}}}{}}{{c{AKd{AKbegi}}}{{AKf{kegi}}}{}AKh{AKjAKl}AKn{}}{{c{AKd{AKbegi}}AL`}{{AKf{kegi}}}{}AKh{AKjAKl}AKn{}}{{AIb{AHj{AHh}}}d}{El{{Dh{{AMf{AMd}}{AMh{En}}}}}}9{c{{n{e}}}{}{}}000000000{cA`{}}0000;;;;;{{cg}{{ALd{i}}}{}{}{{AIf{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}``````````{{cb}d{}}`{{{AMj{c}}}{{AMl{c}}}Ed}>>{{{AMj{c}}}{{AMj{c}}}{KhEd}}{{ce}d{}{}}{{{AMj{c}}eBhBj}{{Bn{BlALf}}}EdOb}{{{AMj{c}}}AMnEd}`{{{AMj{c}}j}l{LfEd}}{{{AMj{c}}DfBj}{{Bn{Cn}}}Ed}{cc{}}0{{{AMj{c}}FjDj}{{Bn{{Dh{Cnh}}}}}Ed}{ce{}{}}`{c{{AMj{c}}}Ed}{{{AMj{c}}}{}Ed}02`??>2``````````````<2222{{{AMl{c}}}{{AMl{c}}}{KhEd}}:{{{AMl{c}}BlBj}{{Bn{{Mh{Cf}}ALf}}}Ed}{{{AMl{c}}BlBj}{{Bn{CfALf}}}Ed}0{{{AMl{c}}C`CbCdh}{{Bn{{Ch{Cf}}ALf}}}Ed}{{{AMl{c}}C`BjHh}{{Bn{CfALf}}}Ed}0{{{AMl{c}}j}l{LfEd}}{{ALfj}l}0;{HjALf}{ALhALf}{ALnALf}{{{AN`{Bl}}}ALf}?{ANbALf}{{{ANd{Bl}}}ALf}{cc{}}{{{AMl{c}}C`}{{Bn{{Ah{Oj}}ALf}}}Ed}{{{AMl{c}}C`}{{Bn{{Ah{ANf}}ALf}}}Ed}{{{AMl{c}}e}{{Bn{dALf}}}Ed{{H`{}{{Cl{Cf}}}}}}0{ce{}{}}0{{{AMl{c}}}{{Bn{{`{{ABj{}{{Cl{Oj}}}}}}}}}Ed}{{}{{AMl{c}}}Ed}{{{AMl{c}}E`}{{Bn{EbALf}}}Ed}{ALf{{Ah{AM`}}}}4{cId{}}{c{{n{e}}}{}{}}000{cA`{}}077````````{{cb}d{}}00888888{ANhANh}{ANjANj}{{{AMn{c}}}{{AMn{c}}}Kh}{{ce}d{}{}}00{{ANhANh}h}{{ANjANj}h}{{ce}h{}{}}00000{{ANhj}l}{{ANjj}l}{{{AMn{c}}j}lLf}{cc{}}00000{{{AMn{c}}DdANh}{{Bn{h}}}ANl}{ce{}{}}00{{{AMn{c}}}{}ANl}{{{AMn{c}}}BnANl}{{{AMn{c}}ANn}{{AO`{Dd}}}ANl}333{c{{n{e}}}{}{}}00000{cA`{}}00{{{AMn{c}}ANn}dANl}666{{{AMn{c}}ANnFnIb}dANl}``````{{cb}d{}}88888888{AObc{}}{AObAOb}{{ce}d{}{}}{{}AOb}{{}AOd}{{}AOf}{{}AOh}6{{AObj}l}{{AOdj}l}{{AOfj}l}{{AOhj}l}{cc{}}0000{ce{}{}}000{EjAOb}==1{c{{n{e}}}{}{}}0000000{cA`{}}0003333``````````````````````{{cb}d{}}044444444{{{Ed{}{{AOj{c}}{AOl{e}}{AOn{g}}{B@`{i}}}}}iANlB@bGjB@d}{B@fB@f}{B@hB@h}{{ce}d{}{}}0{{B@jFnCj}{{Bn{Gh}}}}{{}B@h}{{{Ed{}{{AOj{c}}{AOl{e}}{AOn{g}}{B@`{i}}}}}cANlB@bGjB@d}{{B@jFnCj}{{Bn{AC`}}}}{{ALhj}l}0{{B@fj}l}{{B@lj}l}{{B@hj}l}{cc{}}{ALnALh}11111{{B@jFnCj}{{`{{ABj{}{{Cl{{Bn{Cn}}}}}}}}}}{{B@jFnCj}{{`{{ABj{}{{Cl{{Bn{Dd}}}}}}}}}}{{B@bFn}{{Ah{Ml}}}}{{B@dC`}{{Bn{{Ah{Oj}}}}}}{{B@bBj}{{Ah{Mn}}}}{{B@dC`}{{Bn{{Ah{ANf}}}}}}{{B@bBj}h}0{{{ANl{}{{B@n{c}}{BA`{e}}}}Dd}{{Bn{h}}}B@j{B@jKh}}{{B@bDn}{{Bn{dALh}}}}{{B@dCf}{{Bn{d}}}}{{B@bMl}{{Bn{FnALh}}}}{{B@bMn}{{Bn{BjALh}}}}{ce{}{}}000{{B@d{Ah{Fn}}}{{Bn{{`{{ABj{}{{Cl{Oj}}}}}}}}}}{{B@d{Ah{Fn}}}{{Bn{{`{{ABj{}{{Cl{ANf}}}}}}}}}}`{{{Ed{}{{AOj{c}}{AOl{e}}{AOn{g}}{B@`{i}}}}}gANlB@bGjB@d}{{{ANl{}{{B@n{c}}{BA`{e}}}}}cB@j{B@jKh}}{{{Ed{}{{AOj{c}}{AOl{e}}{AOn{g}}{B@`{i}}}}}eANlB@bGjB@d}{{B@bFn{Jf{J`}}}{{Bn{N`ALh}}}}{{B@bBj{Jf{J`}}}{{Bn{NbALh}}}}{{{ANl{}{{B@n{c}}{BA`{e}}}}}{{Bn{e}}}B@j{B@jKh}}{ALh{{Ah{AM`}}}}`{{B@jFnCjB@h}{{Bn{{`{{ABj{}{{Cl{{Bn{BAb}}}}}}}}}}}}::{cId{}}{c{{n{e}}}{}{}}0000000{cA`{}}000====````{{{Mh{J`}}}{{Ah{{Mh{J`}}}}}}````````````````{{cb}d{}}0{{BAdGh}d}{{{AJf{c}}Gh}dBAf}{ce{}{}}0000000000000{{cg}{{AId{i}}}{}{}{{AIf{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{{{AJf{c}}}{{AJf{c}}}{}}{{{AJd{c}}}{{AJd{c}}}{}}{{ce}d{}{}}0{BAhd}{BAjd}{{{AJf{c}}}dBAf}{{{AJd{c}}}dBAl}{{ALbj}l}0{{ALlj}l}0{{BAdj}l}{{BAhj}l}{{BAjj}l}{{{AJf{c}}j}lLf}{{{AJd{c}}j}lLf}{cc{}}00000000{BAdGh}{ABl{{Dh{BAj{AJd{c}}}}}BAl}{ce{}{}}0000000{BAjABl}{{cg}{{AJh{ei}}}{}{}{{AIf{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{{ABlBAd}{{Dh{{AJf{c}}BAh}}}BAf}{{{AJj{BAj}}AJl}{{AJn{{n{dBAn}}}}}}{{{AJj{{AJd{c}}}}AJl}{{AJn{{Ah{e}}}}}BAl{}}1{{{AJj{BAj}}AJl{Jf{J`}}}{{AJn{{n{ABlBAn}}}}}}{{c{AKd{AKbegi}}}{{AKf{kegi}}}{}AKh{AKjAKl}AKn{}}{{c{AKd{AKbegi}}AL`}{{AKf{kegi}}}{}AKh{AKjAKl}AKn{}}{BAh{{Ah{Gb}}}}{{{AJd{c}}}{{Ah{{n{cALl}}}}}BAl}{{{AJf{c}}c}{{n{dALb}}}BAf};;{cId{}}0{c{{n{e}}}{}{}}0000000000000{{{AJj{c}}AJl}{{AJn{{Ah{n}}}}}{}}{cA`{}}000000{{BAdGh}d}{ce{}{}}000000{{cg}{{ALd{i}}}{}{}{{AIf{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}``````{{cb}d{}}2222{BB`BB`}{{ce}d{}{}}{GhJ`}{{{Jf{J`}}}{{Bn{{AEd{BAl}}}}}}{BAf{{Bn{{Ch{J`}}}}}}{{BAfc}{{Bn{d}}}AGb}{{BB`c}{{Bn{d}}}AGb}{BAfABl}{BB`ABl}{{{AEd{c}}j}lLf}{{BB`j}l}{cc{}}00>>>{c{{n{e}}}{}{}}000{cA`{}}0{ce{}{}}0{{{Jf{J`}}}{{n{c{In{BBb}}}}}BBd}{{c{Jf{J`}}}{{n{e{In{BBb}}}}}{}{{BBf{c}}}}{c{{Ch{J`}}}BBh}{{ce}{{Ch{J`}}}{}{{BBj{c}}}}```44{{cg}{{AId{i}}}{}{}{{AIf{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{{{BBl{ceig}}}{{Ah{g}}}{}{}{}{{Aj{}{{Ad{{n{ge}}}}}}}}{{{BBl{ceig}}j}l{}{}{}{{Aj{}{{Ad{{n{ge}}}}}}}}:{{{BBn{cdi}}}{{BBl{cgie}}}{}{}{}{{Aj{}{{Ad{{n{eg}}}}}}}}88{{cg}{{AJh{ei}}}{}{}{{AIf{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{k{{BBl{cgie}}}{}{}{}{{Aj{}{{Ad{{n{eg}}}}}}}{{Ef{{BC`{cd}}}{{Ad{i}}}}}}{{{AJj{{BBl{ceig}}}}AJl}{{AJn{{Ah{k}}}}}{}{}AK`{{Aj{}{{Ad{{n{ge}}}}}}}{}}{{c{AKd{AKbegi}}}{{AKf{kegi}}}{}AKh{AKjAKl}AKn{}}{{c{AKd{AKbegi}}AL`}{{AKf{kegi}}}{}AKh{AKjAKl}AKn{}}??{{{AJj{c}}AJl}{{AJn{{Ah{n}}}}}{}}?>{{cg}{{ALd{i}}}{}{}{{AIf{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}`??:{{}{{BCb{c}}}{}}{{{BCb{c}}j}lLf}{cc{}}{ce{}{}}0:{{{AJj{{BCb{c}}}}AJl}{{AJn{{Ah{e}}}}}{AlAK`}{}}{{{BCb{c}}AJl}{{AJn{{Ah{c}}}}}{}}{{{BCb{c}}c}d{}}:9{c{{n{e}}}{}{}}09{cA`{}}59`55{{cg}{{AId{i}}}{}{}{{AIf{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{{{BCd{c}}j}lLf}87{{{BCd{c}}}c{}}8{{cg}{{AJh{ei}}}{}{}{{AIf{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{{cBCf}{{BCd{c}}}{}}{{{AJj{{BCd{c}}}}AJl}{{AJn{{Ah{e}}}}}{D`AK`}{}}{{c{AKd{AKbegi}}}{{AKf{kegi}}}{}AKh{AKjAKl}AKn{}}{{c{AKd{AKbegi}}AL`}{{AKf{kegi}}}{}AKh{AKjAKl}AKn{}}99{{{AJj{c}}AJl}{{AJn{{Ah{n}}}}}{}}9>{{cg}{{ALd{i}}}{}{}{{AIf{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{{}Gh}","D":"DLl","p":[[5,"Private",3157],[1,"unit"],[6,"Role",0],[1,"bool"],[5,"Formatter",3158],[8,"Result",3158],[6,"Result",3159],[5,"TypeId",3160],[5,"AcceptOpts",29,3161],[17,"Output"],[5,"SessionInit",2206],[6,"Option",3162],[10,"Future",3163],[10,"Send",3164],[8,"NodeId",3165],[10,"Fn",3166],[10,"Sync",3164],[5,"ActorHandle",29,3167],[5,"Engine",29],[6,"NamespaceKind",691],[5,"UserId",691],[5,"NamespaceId",691],[8,"Result",3168],[5,"CapSelector",195],[6,"AccessMode",1041,3169],[5,"DelegateTo",195],[6,"CapabilityPack",195],[5,"Vec",3170],[8,"Range3d",538],[17,"Item"],[8,"Entry",416],[10,"Stream",3171],[5,"Connection",3172],[8,"AuthorisedEntry",416],[5,"EntryForm",91],[1,"tuple"],[6,"AuthForm",91],[10,"Into",3173],[6,"SecretKey",1041],[6,"Interests",195],[8,"InterestMap",195],[10,"Storage",2828],[10,"FnOnce",3166],[5,"Endpoint",3174],[5,"Store",3175],[5,"IntentHandle",2524],[6,"EventKind",2524],[5,"Sender",3176],[6,"SubspaceForm",91],[6,"TimestampForm",91],[10,"Deserializer",3177],[6,"PayloadForm",91],[6,"EntryOrForm",91],[8,"SerdeWriteCapability",416],[8,"NamespaceId",416],[8,"Path",416],[5,"Bytes",3178],[10,"Serializer",3179],[5,"Hash",3180],[1,"u64"],[10,"Store",3181],[5,"SelectBuilder",195],[10,"IntoAreaOfInterest",195],[10,"IntoIterator",3182],[6,"AreaOfInterestSelector",195],[6,"ReceiverSelector",195],[6,"AreaSelector",195],[6,"RestrictArea",195],[5,"InvalidCapabilityPack",195],[10,"Hasher",3183],[8,"AreaOfInterest",538],[8,"McCapability",1041],[8,"Area",538],[5,"String",3184],[10,"EntryExt",416],[8,"SubspaceId",416],[5,"PayloadDigest",416],[6,"Ordering",3185],[6,"DecodeError",3186],[1,"u8"],[10,"BulkProducer",3187],[10,"BulkProducer",3188],[1,"slice"],[10,"BulkConsumer",3187],[10,"BulkConsumer",3188],[5,"UnauthorisedWriteError",416,3189],[5,"Error",3158],[6,"InvalidPathError",416,3190],[6,"InvalidPathError2",416],[5,"SerdeEntry",519],[6,"RangeEnd",538,3191],[10,"Clone",3192],[10,"Ord",3185],[5,"Range",538,3191],[5,"Point",538],[10,"Default",3193],[10,"Eq",3185],[10,"PartialEq",3185],[10,"Debug",3158],[5,"SerdeRange3d",649],[5,"SerdeAreaOfInterest",649],[10,"Hash",3183],[10,"AreaExt",538],[8,"Timestamp",416],[5,"BitSlice",3194],[10,"BitOrder",3195],[5,"NamespacePublicKey",691],[1,"array"],[5,"UserPublicKey",691],[5,"NamespaceSecretKey",691],[5,"UserSecretKey",691],[5,"NamespaceSignature",691],[5,"UserSignature",691],[1,"char"],[10,"FromIterator",3182],[5,"SigningKey",3196],[5,"VerifyingKey",3197],[5,"Signature",3198],[8,"SignatureError",3199],[1,"str"],[10,"CryptoRngCore",3200],[10,"Sized",3164],[6,"BitSpanError",3201],[5,"Error",3202],[5,"ReadAuthorisation",1041],[8,"UserId",1041],[5,"SerdeMcCapability",1135],[5,"SerdeMcSubspaceCapability",1135],[8,"McSubspaceCapability",1041],[5,"SerdeReadAuthorisation",1135],[8,"McAuthorisationToken",1041],[8,"NamespaceId",1041],[5,"PsiGroup",1202],[5,"PsiScalar",1202],[6,"Fragment",1202],[6,"FragmentKind",1202],[6,"FragmentSet",1202],[5,"InvalidPsiGroup",1202],[5,"PaiScheme",1202],[6,"FragmentKit",1202],[8,"AreaSubspace",538],[5,"ChallengeHash",1348],[5,"AccessChallenge",1348],[6,"Channel",1401],[6,"LogicalChannel",1401],[5,"LogicalChannelIter",1401],[5,"InvalidChannelId",1401],[5,"IntoFallible",3203],[10,"Iterator",3204],[1,"usize"],[5,"Convert",3203],[5,"Fingerprint",1496],[5,"AreaOfInterestHandle",1523],[5,"IntersectionHandle",1523],[5,"CapabilityHandle",1523],[5,"StaticTokenHandle",1523],[6,"ResourceHandle",1523],[6,"HandleType",1523],[10,"IsHandle",1523],[5,"SetupBindAreaOfInterest",1673],[6,"Message",1673],[5,"LengthyEntry",1673],[5,"ReconciliationAnnounceEntries",1673],[5,"ReconciliationSendEntry",1673],[5,"ReconciliationSendPayload",1673],[5,"ReconciliationTerminatePayload",1673],[5,"DataSendEntry",1673],[5,"DataSendPayload",1673],[5,"DataSetMetadata",1673],[6,"DecodeOutcome",3052],[5,"CommitmentReveal",1673],[5,"SetupBindReadCapability",1673],[5,"SetupBindStaticToken",1673],[5,"ReconciliationSendFingerprint",1673],[5,"ControlIssueGuarantee",1673],[5,"ControlAbsolve",1673],[5,"ControlPlead",1673],[5,"ControlAnnounceDropping",1673],[5,"ControlApologise",1673],[5,"ControlFreeHandle",1673],[5,"PaiBindFragment",1673],[5,"PaiReplyFragment",1673],[5,"PaiRequestSubspaceCapability",1673],[5,"PaiReplySubspaceCapability",1673],[10,"Write",3205],[6,"ReconciliationMessage",1673],[6,"DataMessage",1673],[6,"IntersectionMessage",1673],[5,"Box",3206],[6,"Role",2206],[6,"SessionMode",2206],[6,"Scope",2206],[5,"EventSender",2206],[5,"SessionHandle",2206],[5,"ChannelSenders",2347],[6,"Error",2454],[5,"Arc",3207],[6,"SessionEvent",2206],[6,"SessionUpdate",2206],[5,"ChannelReceiverDropped",2454],[5,"Intent",2524],[5,"Chain2",3208],[10,"IntoStream",3209],[5,"LogicalChannelSenders",2347],[5,"MessageReceiver",2347],[10,"TryFrom",3173],[5,"LogicalChannelReceivers",2347],[5,"ChannelReceivers",2347],[5,"Channels",2347],[5,"Receiver",2937],[5,"Sender",2937],[5,"Merge2",3210],[5,"Pin",3211],[5,"Context",3212],[6,"Poll",3213],[10,"Unpin",3164],[6,"NotKeyed",3214],[5,"RateLimiter",3215],[5,"RatelimitedStream",3216],[10,"DirectStateStore",3214],[10,"Clock",3217],[10,"ReasonablyRealtime",3218],[10,"RateLimitingMiddleware",3219],[5,"Jitter",3220],[6,"WriteError",2937],[5,"Zip2",3221],[6,"AuthError",2649],[6,"SecretStoreError",2828],[5,"JoinError",3222],[6,"ReadError",2937],[5,"Error",3168],[10,"Error",3223],[6,"Completion",2524],[6,"IntentUpdate",2524],[5,"PollSender",3224],[5,"ReceiverStream",3225],[5,"Store",2620],[5,"Auth",2649],[5,"WatchableEntryStore",2708],[6,"OwnedCapabilityCreationError",3226],[8,"FailedDelegationError",1041],[5,"NamespaceIsNotCommunalError",3227],[8,"WriteCapability",416],[6,"EntryOrigin",2708],[6,"EntryChannel",2708],[10,"EntryStorage",2828],[8,"SessionId",2708],[5,"Receiver",3228],[5,"Store",2774],[5,"SecretStore",2774],[5,"EntryStore",2774],[5,"CapsStore",2774],[17,"Entries"],[17,"Secrets"],[17,"Payloads"],[17,"Caps"],[10,"SecretStorage",2828],[10,"CapsStorage",2828],[6,"KeyScope",2828],[5,"SplitOpts",2828],[10,"EntryReader",2828],[6,"SplitAction",2828],[17,"Reader"],[17,"Snapshot"],[8,"RangeSplit",2828],[6,"Guarantees",2937],[10,"Encoder",3052],[5,"Reader",2937],[5,"Writer",2937],[10,"Decoder",3052],[5,"Error",3229],[5,"CompactWidth",3052],[6,"Infallible",3173],[10,"Decodable",3230],[10,"RelativeDecodable",3230],[10,"Encodable",3230],[10,"RelativeEncodable",3230],[5,"GenStream",3094],[5,"Gen",3231],[8,"Co",3232],[5,"Queue",3115],[5,"Cancelable",3136],[5,"CancellationToken",3233],[8,"AuthorisationToken",416],[10,"PathExt",416],[10,"AreaOfInterestExt",538],[8,"ReadCapability",1041],[8,"WriteCapability",1041],[15,"AreaNotIncluded",1133],[15,"Selective",1339],[15,"Complete",2342],[15,"CapabilityIntersection",2613],[15,"InterestIntersection",2613],[15,"Reconciled",2613],[15,"Abort",2613],[15,"Remote",2772],[15,"Decoded",3092]],"r":[[29,3161],[30,3167],[424,3190],[441,3189],[548,3191],[550,3191],[1041,3169],[2620,2708],[2622,2708]],"b":[[143,"impl-From%3CSerdeMcCapability%3E-for-AuthForm"],[145,"impl-From%3CUserId%3E-for-AuthForm"],[296,"impl-Display-for-InvalidCapabilityPack"],[297,"impl-Debug-for-InvalidCapabilityPack"],[459,"impl-Decodable-for-PayloadDigest"],[460,"impl-Decodable-for-PayloadDigest"],[464,"impl-Encodable-for-PayloadDigest"],[465,"impl-Encodable-for-PayloadDigest"],[472,"impl-Display-for-UnauthorisedWriteError"],[473,"impl-Debug-for-UnauthorisedWriteError"],[474,"impl-Debug-for-InvalidPathError"],[475,"impl-Display-for-InvalidPathError"],[476,"impl-Debug-for-PayloadDigest"],[477,"impl-Display-for-PayloadDigest"],[478,"impl-Debug-for-InvalidPathError2"],[479,"impl-Display-for-InvalidPathError2"],[573,"impl-PartialEq%3CT%3E-for-RangeEnd%3CT%3E"],[574,"impl-PartialEq-for-RangeEnd%3CT%3E"],[622,"impl-PartialOrd-for-RangeEnd%3CT%3E"],[623,"impl-PartialOrd%3CT%3E-for-RangeEnd%3CT%3E"],[728,"impl-AsRef%3C%5Bu8;+32%5D%3E-for-UserId"],[729,"impl-AsRef%3C%5Bu8%5D%3E-for-UserId"],[730,"impl-AsRef%3C%5Bu8%5D%3E-for-NamespaceId"],[731,"impl-AsRef%3C%5Bu8;+32%5D%3E-for-NamespaceId"],[780,"impl-Decodable-for-NamespaceSignature"],[781,"impl-Decodable-for-NamespaceSignature"],[782,"impl-Decodable-for-UserSignature"],[783,"impl-Decodable-for-UserSignature"],[784,"impl-Decodable-for-UserId"],[785,"impl-Decodable-for-UserId"],[786,"impl-Decodable-for-NamespaceId"],[787,"impl-Decodable-for-NamespaceId"],[802,"impl-Encodable-for-NamespacePublicKey"],[803,"impl-Encodable-for-NamespacePublicKey"],[804,"impl-Encodable-for-UserPublicKey"],[805,"impl-Encodable-for-UserPublicKey"],[806,"impl-Encodable-for-NamespaceSignature"],[807,"impl-Encodable-for-NamespaceSignature"],[808,"impl-Encodable-for-UserSignature"],[809,"impl-Encodable-for-UserSignature"],[810,"impl-Encodable-for-UserId"],[811,"impl-Encodable-for-UserId"],[812,"impl-Encodable-for-NamespaceId"],[813,"impl-Encodable-for-NamespaceId"],[847,"impl-Debug-for-NamespaceSecretKey"],[848,"impl-Display-for-NamespaceSecretKey"],[849,"impl-Debug-for-NamespacePublicKey"],[850,"impl-Display-for-NamespacePublicKey"],[851,"impl-Display-for-UserSecretKey"],[852,"impl-Debug-for-UserSecretKey"],[853,"impl-Debug-for-UserPublicKey"],[854,"impl-Display-for-UserPublicKey"],[855,"impl-Display-for-NamespaceSignature"],[856,"impl-Debug-for-NamespaceSignature"],[857,"impl-Display-for-UserSignature"],[858,"impl-Debug-for-UserSignature"],[859,"impl-Display-for-UserId"],[860,"impl-Debug-for-UserId"],[861,"impl-Display-for-NamespaceId"],[862,"impl-Debug-for-NamespaceId"],[875,"impl-From%3C%26NamespaceSecretKey%3E-for-NamespacePublicKey"],[876,"impl-From%3CVerifyingKey%3E-for-NamespacePublicKey"],[877,"impl-From%3CNamespaceSecretKey%3E-for-NamespacePublicKey"],[880,"impl-From%3CVerifyingKey%3E-for-UserPublicKey"],[882,"impl-From%3C%26UserSecretKey%3E-for-UserPublicKey"],[883,"impl-From%3CUserSecretKey%3E-for-UserPublicKey"],[888,"impl-From%3C%26UserPublicKey%3E-for-UserId"],[889,"impl-From%3CUserPublicKey%3E-for-UserId"],[890,"impl-From%3CUserSecretKey%3E-for-UserId"],[892,"impl-From%3C%5Bu8;+32%5D%3E-for-UserId"],[893,"impl-From%3CNamespaceSecretKey%3E-for-NamespaceId"],[895,"impl-From%3C%26NamespacePublicKey%3E-for-NamespaceId"],[896,"impl-From%3CNamespacePublicKey%3E-for-NamespaceId"],[897,"impl-From%3C%5Bu8;+32%5D%3E-for-NamespaceId"],[1025,"impl-NamespacePublicKey"],[1026,"impl-Verifier%3CNamespaceSignature%3E-for-NamespacePublicKey"],[1028,"impl-UserPublicKey"],[1029,"impl-Verifier%3CUserSignature%3E-for-UserPublicKey"],[1097,"impl-From%3CUserSecretKey%3E-for-SecretKey"],[1098,"impl-From%3CNamespaceSecretKey%3E-for-SecretKey"],[1251,"impl-Encodable-for-Fragment"],[1252,"impl-Encodable-for-Fragment"],[1262,"impl-Display-for-InvalidPsiGroup"],[1263,"impl-Debug-for-InvalidPsiGroup"],[1445,"impl-Debug-for-InvalidChannelId"],[1446,"impl-Display-for-InvalidChannelId"],[1591,"impl-Debug-for-HandleType"],[1592,"impl-Display-for-HandleType"],[1608,"impl-From%3CIntersectionHandle%3E-for-ResourceHandle"],[1609,"impl-From%3CAreaOfInterestHandle%3E-for-ResourceHandle"],[1610,"impl-From%3CCapabilityHandle%3E-for-ResourceHandle"],[1611,"impl-From%3CStaticTokenHandle%3E-for-ResourceHandle"],[1882,"impl-Debug-for-Message"],[1883,"impl-Display-for-Message"],[1884,"impl-Debug-for-ReconciliationMessage"],[1885,"impl-Display-for-ReconciliationMessage"],[1886,"impl-Debug-for-DataMessage"],[1887,"impl-Display-for-DataMessage"],[1888,"impl-Debug-for-IntersectionMessage"],[1889,"impl-Display-for-IntersectionMessage"],[1913,"impl-From%3CControlAbsolve%3E-for-Message"],[1914,"impl-From%3CBox%3CPaiReplySubspaceCapability%3E%3E-for-Message"],[1915,"impl-From%3CSetupBindReadCapability%3E-for-Message"],[1916,"impl-From%3CIntersectionMessage%3E-for-Message"],[1917,"impl-From%3CControlPlead%3E-for-Message"],[1918,"impl-From%3CPaiReplyFragment%3E-for-Message"],[1919,"impl-From%3CReconciliationMessage%3E-for-Message"],[1920,"impl-From%3CCommitmentReveal%3E-for-Message"],[1921,"impl-From%3CSetupBindStaticToken%3E-for-Message"],[1922,"impl-From%3CDataSendEntry%3E-for-Message"],[1923,"impl-From%3CControlApologise%3E-for-Message"],[1924,"impl-From%3CReconciliationTerminatePayload%3E-for-Message"],[1925,"impl-From%3CDataSetMetadata%3E-for-Message"],[1926,"impl-From%3CDataSendPayload%3E-for-Message"],[1927,"impl-From%3CReconciliationAnnounceEntries%3E-for-Message"],[1928,"impl-From%3CPaiRequestSubspaceCapability%3E-for-Message"],[1929,"impl-From%3CSetupBindAreaOfInterest%3E-for-Message"],[1930,"impl-From%3CControlFreeHandle%3E-for-Message"],[1931,"impl-From%3CPaiBindFragment%3E-for-Message"],[1932,"impl-From%3CControlIssueGuarantee%3E-for-Message"],[1934,"impl-From%3CReconciliationSendEntry%3E-for-Message"],[1935,"impl-From%3CReconciliationSendFingerprint%3E-for-Message"],[1936,"impl-From%3CDataMessage%3E-for-Message"],[1937,"impl-From%3CControlAnnounceDropping%3E-for-Message"],[1938,"impl-From%3CReconciliationSendPayload%3E-for-Message"],[1939,"impl-From%3CReconciliationSendFingerprint%3E-for-ReconciliationMessage"],[1941,"impl-From%3CReconciliationSendPayload%3E-for-ReconciliationMessage"],[1942,"impl-From%3CReconciliationSendEntry%3E-for-ReconciliationMessage"],[1943,"impl-From%3CReconciliationAnnounceEntries%3E-for-ReconciliationMessage"],[1944,"impl-From%3CReconciliationTerminatePayload%3E-for-ReconciliationMessage"],[1945,"impl-From%3CDataSendPayload%3E-for-DataMessage"],[1946,"impl-From%3CDataSetMetadata%3E-for-DataMessage"],[1947,"impl-From%3CDataSendEntry%3E-for-DataMessage"],[1949,"impl-From%3CPaiBindFragment%3E-for-IntersectionMessage"],[1951,"impl-From%3CPaiReplyFragment%3E-for-IntersectionMessage"],[2496,"impl-Display-for-Error"],[2497,"impl-Debug-for-Error"],[2498,"impl-Display-for-ChannelReceiverDropped"],[2499,"impl-Debug-for-ChannelReceiverDropped"],[2500,"impl-From%3CWriteError%3E-for-Error"],[2501,"impl-From%3CError%3E-for-Error"],[2502,"impl-From%3CAuthError%3E-for-Error"],[2503,"impl-From%3CUnauthorisedWriteError%3E-for-Error"],[2504,"impl-From%3CChannelReceiverDropped%3E-for-Error"],[2505,"impl-From%3CSecretStoreError%3E-for-Error"],[2507,"impl-From%3CJoinError%3E-for-Error"],[2508,"impl-From%3CReadError%3E-for-Error"],[2509,"impl-From%3CError%3E-for-Error"],[2677,"impl-Display-for-AuthError"],[2678,"impl-Debug-for-AuthError"],[2680,"impl-From%3CInvalidCapabilityPack%3E-for-AuthError"],[2681,"impl-From%3CSecretStoreError%3E-for-AuthError"],[2682,"impl-From%3CError%3E-for-AuthError"],[2683,"impl-From%3COwnedCapabilityCreationError%3CNamespaceId%3E%3E-for-AuthError"],[2685,"impl-From%3CFailedDelegationError%3CMAX_COMPONENT_LENGTH,+MAX_COMPONENT_COUNT,+MAX_PATH_LENGTH,+UserId%3E%3E-for-AuthError"],[2686,"impl-From%3CNamespaceIsNotCommunalError%3CNamespaceId%3E%3E-for-AuthError"],[2869,"impl-Debug-for-SecretStoreError"],[2870,"impl-Display-for-SecretStoreError"],[2977,"impl-Display-for-WriteError"],[2978,"impl-Debug-for-WriteError"],[2979,"impl-Debug-for-ReadError"],[2980,"impl-Display-for-ReadError"]],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAO8J5AAEAAoAEQABABQABwAdAAAAHwADACQAEgA6AAgARgAIAFAACwBfAAAAZgAAAG8AHQCQAAAAkgAAAJUAAgCeAAAAoAAcAL4ABgDGAAAAzAACANAABADXAAQA3gBOAC8BAAAyAQAANQEAADsBBwBEAQMAUgEAAFcBAQBaATUAkQEAAJQBAACZAQMAngEAAKABAQCjAQAArwEAALwBAAC+AQgAyAEFAM8BAwDUAQ0A5QEAAOcBAADpAQIA8AEBAPMBFAAJAgcAEgIBABUCBQAoAgIALAIQAD4CEQBTAgMAWQICAF4CAABkAgIAagIAAG4CBQB1AgQAewIMAIkCFgChAgEApAIBAKgCCwDDAgIAygIKANkChgBqAwAAbAMCAHADAQBzAwEAdgMBAHkDAgB9AwEAgAMCAIsDDgCcAwUAsgMGALsDBwDFAwEAzQMzAAMEAAAGBAsAFAQOACQECAAuBAcANwQPAEgEAwBNBAAATwQDAFYEAQBZBAQAXwQzAJQEAQCYBAUAoQRVAP8ECAAQBS0APwUjAGUFBQBtBQwAewUAAH0FAQCBBQEAhwUiAK4FCAC8BQsAyQUfAOoFAQDtBQYA9QUBAPgFAQD8BQIAAAYAAAIGPABBBgEARAYAAEcGAABJBhIAYgYpAI0GAACPBgAAkQYAAJMGAACVBgAAlwYAAJkGAQCcBgAAngYAAKAGAgCkBgAApgYAAKgGAACqBgAArAYBAK8GAACxBgEAtAYAALYGAAC4BgAAugYHAMMGAADFBgAAxwYBAMoGDQDbBjcAFQcXADAHGQBMBwEAUQcHAFoHHgB6BxMAjwcFAJYHBgCeBwAAoAcAALcHCADGBwEA5AcAAOsHAADuBxcACwiRAKEIAgCpCAIArQgCALEIHQDRCBIA7AgEAPwIBAACCVQAWAkAAF4JBgBrCV8AzAkCANIJDgDiCQEA5gkCAOsJAgDvCQwA/gkMABAKAAAWCgIAGwoCACAKKgBNCgEAUAonAHkKAwB+CgYAhwoQAJkKAACbChsAugoCAMQKCwDRCgIA1QoaAPQKAAD5CkEAPAsAAEALDgBTCwEAVgsGAF4LFAB0CwEAeAsIAIILAwCHCwIAiwsSAKILCACyCwIAvQsAAL8LAADBCwUAygsjAPMLBwD+CwAAAAwCAAUMAAAIDAwAGAwEAB4MAAAgDAsALQwEADQMAgA5DAcAQgwDAEgMDAA="}]\ +["iroh_willow",{"t":"PPGNNNNNCNNNNNCNNCNCCCCNNNNCNFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPGPPFGPPPPPPPGPPGGPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONOONNNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNPPGGFGPPFPPPIGKFPPGPGPFPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNMNNONNNOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNSSSSSSSSCCCCCCIIPIPSIKGGSSSIPIKPPFIIIPPFINMNNNNNNNNNONNNNNNMNNNNMNNNNNNNNNNNNNNNNNNNNMNNNNNNNNCONNNNNNNNNNNNNNNNNNNNNFNNNNNNNNNNNNNNNNNNPIKIKIPPPFFIGNNNONNNNNNNNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNNNNNNNNNOONNNNMNNNNOCOOONNNMNNNNNNNNNNNNNMNFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPTTTTTTTTFGFFFPSSSFFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNGPPPPIKIIIPIIIPPPPFIGIPIIIPIPNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHMHNNNNCONNNNNNNNNNNNNNNOOFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPPGGGIGIFFPPFFPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOSSCCCCCFISSFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPTPGPPPFPGFPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFNNNNNNNNNNNNNNNNNNNNNNNNNNPPFPPFGPPFKPGPPFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNMNNNNNNNNNNPPFPFPFPFPFPFPFPGFPFPFPIGFGFPFPFPFPIIIFPGFPFPFPFPPPPPPPPFPFPFPIIIPNNNNNNNNNOONOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOONOOOOONNNNNNNNNNNNNNNNNNOOONNNNNNNNNNNNNNNNNNNNNNNNNNOONNOOONNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNONOOOOOONOONNNNNNNNNNNNNNNNNNNNNNNNOOOOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOPPPPFPPPGGGFIFGGPPNNNNNNNNNNNNNNNNNNNNOCNNNNNNNNNNNNNNNNNNNCONNNNNNNNNNNNNNNNNNNNCONNNNNNNNNNNONNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNONNNNNNNNOOOOOFFFFFFNNOONNNNNNNNNNNNOONNNNNNNNNOOOONNNNNNNNNNNNNNNNNNOONNNNNNNOONNNNNOONONOOONNNNNNNNNNNNNNNNNNNNNNNNNNNNPPPPPPFGPPPPPPPPPPPPPPPPPPPPPPPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPPPPPGGFFIGPPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOOOOOOEFENCNNNNNNNCNNNNNNCNNNNCNNNNFGPPPPPPPPPPPPNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNPGGPPPIFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNOOFFFFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNRKRKKGPPRIRKGRPPRGFKPPNNNNNNNNNNMNNNNMNMMNNNNNNNNNNNNNMMMMMNNMMMNNNNNNMMOMMMNNMNOMNNNNNNNNNNNNNNNNNNNCCCCHCCCPPPPGPGFFFPGFNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNHNNNNNNNNNNHNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNFGPKKPNNNNNNNHMNMNMNNNNNNNNNNNNNNNNNHHHHOOFNNNNNNNNNNNNNNNNNNNNFNNNNNNNNNNNNNNNNNNNNFNNNNNNNNNNNNNNNNNNNH","n":["Alfie","Betty","Role","__clone_box","borrow","borrow_mut","clone","clone_into","engine","eq","equivalent","equivalent","equivalent","fmt","form","from","from_ref","interest","into","net","proto","session","store","to_owned","try_from","try_into","type_id","util","vzip","AcceptOpts","ActorHandle","Engine","__clone_box","__clone_box","accept_custom","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","create_namespace","create_user","default","delegate_caps","deref","drop","fmt","fmt","fmt","from","from","from","from_ref","from_ref","get_entries","handle_connection","import_caps","ingest_entry","insert","insert_entry","insert_secret","into","into","into","resolve_interests","shutdown","shutdown","spawn","spawn","spawn_memory","sync_with_peer","to_owned","to_owned","track_events","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","Any","AuthForm","Bytes","Entry","EntryForm","EntryOrForm","Exact","Exact","Exact","File","Form","Hash","Now","PayloadForm","Reader","Stream","SubspaceForm","TimestampForm","User","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","deserialize","deserialize","deserialize","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","into","into","into","into","into","into","namespace_id","new_bytes","path","payload","serialize","serialize","serialize","submit","subspace_id","timestamp","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","user_id","vzip","vzip","vzip","vzip","vzip","vzip","All","Any","AreaOfInterestSelector","AreaSelector","CapSelector","CapabilityPack","ContainsArea","ContainsPoint","DelegateTo","Exact","Exact","Exact","InterestMap","Interests","IntoAreaOfInterest","InvalidCapabilityPack","None","Read","ReceiverSelector","Restrict","RestrictArea","Select","SelectBuilder","Widest","Widest","Write","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","add_area","add_full_cap","all","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","builder","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","default","default","default","default","default","deserialize","deserialize","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","for_entry","from","from","from","from","from","from","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","granted_area","hash","hash","hash","includes","into","into","into","into","into","into","into","into","into","into","into_area_of_interest","is_covered_by","is_covered_by","namespace_id","new","new","receiver","receiver","restrict_area","serialize","serialize","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","user","validate","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","widest","with_default","with_user","ALPN","CHANNEL_CAP","ERROR_CODE_DUPLICATE_CONN","ERROR_CODE_FAIL","ERROR_CODE_OK","ERROR_CODE_SHUTDOWN","ESTABLISH_TIMEOUT","SHUTDOWN_TIMEOUT","data_model","grouping","keys","meadowcap","pai","wgps","AuthorisationToken","AuthorisedEntry","Communal","Component","ComponentTooLong","DIGEST_LENGTH","Entry","EntryExt","InvalidPathError","InvalidPathError2","MAX_COMPONENT_COUNT","MAX_COMPONENT_LENGTH","MAX_PATH_LENGTH","NamespaceId","Owned","Path","PathExt","PathTooLong","PathTooLong","PayloadDigest","SerdeWriteCapability","SubspaceId","Timestamp","TooManyComponents","TooManyComponents","UnauthorisedWriteError","WriteCapability","__clone_box","as_sortable_tuple","as_sortable_tuple","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","capability","clone","clone_into","cmp","compare","decode","decode","decode_from_slice","decode_from_slice","default","encode","encode","encode_to_vec","encode_to_vec","eq","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from_bytes","from_bytes","from_ref","hash","into","into","into","into","partial_cmp","serde_encoding","signature","to_owned","to_string","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","SerdeEntry","__clone_box","borrow","borrow_mut","clone","clone_into","deref","deserialize","fmt","from","from","from_ref","into","serialize","to_owned","try_from","try_into","type_id","vzip","Any","Area","AreaExt","AreaOfInterest","AreaOfInterestExt","AreaSubspace","Closed","Id","Open","Point","Range","Range3d","RangeEnd","__clone_box","__clone_box","__clone_box","area","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","cmp","cmp","compare","compare","default","end","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","from","from","from","from","from","from_entry","from_ref","from_ref","from_ref","full","gt_val","hash","hash","hash","includes","includes_point","includes_point","includes_range","intersection","into","into","into","into_area","into_area_of_interest","into_area_of_interest","max_count","max_size","new","new","new_closed","new_open","new_path","new_path","partial_cmp","partial_cmp","partial_cmp","path","serde_encoding","start","subspace_id","timestamp","to_owned","to_owned","to_owned","to_range","to_range","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","with_area","with_area","SerdeAreaOfInterest","SerdeRange3d","__clone_box","__clone_box","borrow","borrow","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","deref","deref","deserialize","deserialize","eq","equivalent","equivalent","equivalent","fmt","fmt","from","from","from","from","from_ref","from_ref","into","into","serialize","serialize","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","Communal","LENGTH","LENGTH","LENGTH","LENGTH","LENGTH","LENGTH","LENGTH","LENGTH","NamespaceId","NamespaceKind","NamespacePublicKey","NamespaceSecretKey","NamespaceSignature","Owned","PUBLIC_KEY_LENGTH","SECRET_KEY_LENGTH","SIGNATURE_LENGTH","UserId","UserPublicKey","UserSecretKey","UserSignature","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","as_bits","as_bits","as_bytes","as_bytes","as_bytes","as_bytes","as_ref","as_ref","as_ref","as_ref","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","cmp","cmp","cmp","cmp","cmp","cmp","compare","compare","compare","compare","compare","compare","decode","decode","decode","decode","decode","decode","decode","decode","default","default","default","default","deref","deref","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","encode","encode","encode","encode","encode","encode","encode","encode","encode","encode","encode","encode","encode_hex","encode_hex","encode_hex_upper","encode_hex_upper","eq","eq","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt_short","fmt_short","fmt_short","fmt_short","fmt_short","fmt_short","fmt_short","fmt_short","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_bytes","from_bytes","from_bytes","from_bytes","from_bytes","from_bytes","from_bytes_unchecked","from_bytes_unchecked","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_str","from_str","from_str","from_str","from_str","from_str","generate","generate","hash","hash","hash","hash","hash","hash","id","id","id","id","into","into","into","into","into","into","into","into","into","into_public_key","into_public_key","is_communal","is_communal","kind","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","partial_cmp","public_key","public_key","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","sign","sign","successor","successor","to_bytes","to_bytes","to_bytes","to_bytes","to_bytes","to_bytes","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","to_string","to_string","to_string","to_string","try_as_bits","try_as_bits","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_sign","try_sign","try_sign","try_sign","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","verify","verify","verify","verify","verify","verify","verify","verify","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","AccessMode","AreaNotIncluded","Communal","Communal","Communal","FailedDelegationError","IsCommunal","McAuthorisationToken","McCapability","McSubspaceCapability","Namespace","NamespaceId","NamespacePublicKey","NamespaceSignature","Owned","Owned","Owned","Read","ReadAuthorisation","ReadCapability","SecretKey","SubspaceCapability","User","UserId","UserPublicKey","UserSignature","Write","WriteCapability","WrongSecretForUser","__clone_box","__clone_box","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","capability","clone","clone","clone_into","clone_into","delegate","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from_ref","from_ref","hash","hash","into","into","into","is_authorised_write","is_communal","is_wider_than","namespace","new","new_owned","read_cap","serde_encoding","signature","subspace_cap","to_owned","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","claimed_receiver","excluded_area","SerdeMcCapability","SerdeMcSubspaceCapability","SerdeReadAuthorisation","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","deref","deref","deref","deserialize","deserialize","deserialize","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","from","from","from","from","from","from","from_ref","from_ref","from_ref","hash","hash","into","into","into","serialize","serialize","serialize","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","Complete","Complete","Fragment","FragmentKind","FragmentKit","FragmentPair","FragmentSet","FragmentTriple","InvalidPsiGroup","PaiScheme","Pair","Primary","PsiGroup","PsiScalar","Secondary","Selective","Selective","Triple","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","encode","encode","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from_bytes","from_ref","from_ref","from_ref","from_ref","from_ref","get_fragment_kit","get_scalar","hash_into_group","into","into","into","into","into","into","into","into","into_fragment_set","into_parts","is_group_equal","is_secondary","scalar_mult","to_bytes","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","primary","secondary","MAX_PAYLOAD_SIZE","MAX_PAYLOAD_SIZE_POWER","challenge","channels","fingerprint","handles","messages","AccessChallenge","AccessChallengeBytes","CHALLENGE_HASH_LENGTH","CHALLENGE_LENGTH","ChallengeHash","__clone_box","__clone_box","as_bytes","as_bytes","borrow","borrow","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","default","deserialize","deserialize","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","from","from","from_bytes","from_ref","from_ref","generate","generate_with_rng","hash","into","into","serialize","serialize","to_bytes","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","AreaOfInterest","COUNT","Capability","Channel","Control","Data","Intersection","InvalidChannelId","Logical","LogicalChannel","LogicalChannelIter","Reconciliation","StaticToken","__clone_box","__clone_box","__clone_box","all","all","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","deserialize","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt_short","fmt_short","from","from","from","from","from_id","from_id","from_ref","from_ref","from_ref","hash","hash","id","id","into","into","into","into","into_fallible","into_iter","iter","len","next","next_back","nth","serialize","size_hint","to_owned","to_owned","to_owned","to_string","transpose_into_fallible","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","Fingerprint","__clone_box","add_entries","add_entry","bitxor_assign","borrow","borrow_mut","clone","clone_into","default","deserialize","eq","equivalent","equivalent","equivalent","fmt","from","from_entries","from_ref","into","is_empty","serialize","to_owned","try_from","try_into","type_id","vzip","AreaOfInterest","AreaOfInterest","AreaOfInterestHandle","Capability","Capability","CapabilityHandle","HandleType","Intersection","Intersection","IntersectionHandle","IsHandle","PayloadRequest","ResourceHandle","StaticToken","StaticToken","StaticTokenHandle","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","deserialize","deserialize","deserialize","deserialize","deserialize","eq","eq","eq","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","from_ref","from_ref","handle_type","handle_type","handle_type","handle_type","handle_type","hash","hash","hash","hash","hash","into","into","into","into","into","into","serialize","serialize","serialize","serialize","serialize","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","value","value","value","value","value","vzip","vzip","vzip","vzip","vzip","vzip","AnnounceEntries","BindFragment","CommitmentReveal","CommitmentReveal","ControlAbsolve","ControlAbsolve","ControlAnnounceDropping","ControlAnnounceDropping","ControlApologise","ControlApologise","ControlFreeHandle","ControlFreeHandle","ControlIssueGuarantee","ControlIssueGuarantee","ControlPlead","ControlPlead","DataMessage","DataSendEntry","DataSendEntry","DataSendPayload","DataSendPayload","DataSetMetadata","DataSetMetadata","DynamicToken","IntersectionMessage","LengthyEntry","Message","PaiBindFragment","PaiBindFragment","PaiReplyFragment","PaiReplyFragment","PaiReplySubspaceCapability","PaiReplySubspaceCapability","PaiRequestSubspaceCapability","PaiRequestSubspaceCapability","PsiGroupBytes","ReadCapability","Receiver","ReconciliationAnnounceEntries","ReconciliationAnnounceEntries","ReconciliationMessage","ReconciliationSendEntry","ReconciliationSendEntry","ReconciliationSendFingerprint","ReconciliationSendFingerprint","ReconciliationSendPayload","ReconciliationSendPayload","ReconciliationTerminatePayload","ReconciliationTerminatePayload","ReplyFragment","SendEntry","SendEntry","SendFingerprint","SendPayload","SendPayload","SetMetadata","SetupBindAreaOfInterest","SetupBindAreaOfInterest","SetupBindReadCapability","SetupBindReadCapability","SetupBindStaticToken","SetupBindStaticToken","StaticToken","SubspaceCapability","SyncSignature","TerminatePayload","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","__clone_box","amount","amount","area","area_of_interest","authorisation","available","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","bytes","bytes","capability","capability","channel","channel","channel","channel","channel","channel","clone","clone","clone","clone","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","clone_into","count","covers","covers","covers_region","decode_from","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","deserialize","dynamic_token","dynamic_token","encode_into","encoded_len","entry","entry","entry","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fingerprint","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","from_ref","group_member","group_member","handle","handle","handle","handle","handles","handles","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","into","is_secondary","new","nonce","offset","range","range","receiver_handle","receiver_handle","same_kind","sender_handle","sender_handle","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","serialize","signature","signature","static_token","static_token_handle","static_token_handle","target","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","want_response","will_sort","Alfie","Betty","Complete","Established","EventSender","Live","Ours","ReconcileOnce","Role","Scope","SessionEvent","SessionHandle","SessionId","SessionInit","SessionMode","SessionUpdate","SubmitIntent","Theirs","__clone_box","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","cancel_token","channels","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","close","complete","continuous","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","error","event_rx","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from_ref","from_ref","from_ref","from_ref","intents","interests","into","into","into","into","into","into","into","into","is_alfie","is_betty","is_live","mode","new","reconcile_once","send","submit_intent","to_owned","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","update_tx","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","remaining_intents","result","senders","update_receiver","we_cancelled","ChannelReceivers","ChannelSenders","Channels","LogicalChannelReceivers","LogicalChannelSenders","MessageReceiver","__clone_box","__clone_box","aoi_recv","aoi_send","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","capability_recv","capability_send","chain","clone","clone","clone_into","clone_into","close","close","close","close_all","control_recv","control_send","data_recv","data_send","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from_ref","from_ref","get","get","get_logical","intersection_recv","intersection_send","into","into","into","into","into","into","into_stream","logical_recv","logical_send","merge","poll_next","poll_recv","ratelimit_stream","ratelimit_stream_with_jitter","reconciliation_recv","reconciliation_send","recv","recv","send","send","static_tokens_recv","static_tokens_send","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_poll_next","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","zip","ActorFailed","AreaOfInterestDoesNotOverlap","AreaOfInterestNamespaceMismatch","Auth","BrokenCommittement","ChannelDropped","ChannelReceiverDropped","Error","InvalidCapability","InvalidMessageInCurrentState","InvalidParameters","InvalidSignature","InvalidState","KeyStore","MissingResource","MissingUserKey","Net","NoKnownInterestsForCapability","Pai","PayloadDigestMismatch","PayloadSizeMismatch","PayloadStore","RangeOutsideCapability","Receive","SessionNotFound","ShuttingDown","Store","TaskFailed","UnauthorisedArea","UnauthorisedWrite","UnsupportedMessage","Write","WrongChannel","WrongSecretKeyForCapability","borrow","borrow","borrow_mut","borrow_mut","eq","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","into","into","source","to_string","to_string","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","Abort","AddInterests","CapabilityIntersection","Close","Complete","Completion","EventKind","Intent","IntentHandle","IntentId","IntentUpdate","InterestIntersection","Nothing","Partial","Reconciled","ReconciledAll","__clone_box","add_interests","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","chain","clone","clone_into","close","complete","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from_ref","into","into","into","into","into","into_stream","merge","namespace","new","new_detached","poll_next","ratelimit_stream","ratelimit_stream_with_jitter","send_abort","split","to_owned","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","zip","area","area","area","error","namespace","namespace","namespace","EntryOrigin","Store","WatchableEntryStore","__clone_box","auth","auth","borrow","borrow_mut","clone","clone_into","create_namespace","entries","entry","fmt","form_to_entry","from","from_ref","insert_entry","into","memory","new","payloads","secrets","to_owned","traits","try_from","try_into","type_id","vzip","Auth","AuthError","CreateCommunalCap","CreateOwnedCap","DelegationFailed","InvalidNamespaceId","InvalidPack","InvalidUserId","MissingNamespaceSecret","MissingUserSecret","NoCapability","Other","SecretStore","SubspaceCapDelegationFailed","__clone_box","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","create_full_caps","create_read_cap","create_write_cap","delegate_full_caps","delegate_read_cap","delegate_write_cap","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from_ref","get_read_cap","get_write_cap","import_caps","insert_caps_unchecked","into","into","list_read_caps","new","resolve_interests","source","to_owned","to_string","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","Data","EntryChannel","EntryOrigin","Local","Reconciliation","Remote","SessionId","WatchableEntryStore","__clone_box","__clone_box","__clone_box","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","eq","eq","equivalent","equivalent","equivalent","equivalent","equivalent","equivalent","fmt","fmt","fmt","from","from","from","from_ref","from_ref","from_ref","ingest","into","into","into","reader","snapshot","subscribe","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","unsubscribe","vzip","vzip","vzip","watch_area","channel","session","CapsStore","EntryStore","SecretStore","Store","__clone_box","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","caps","clone","clone_into","default","default","default","default","entries","fmt","fmt","fmt","fmt","from","from","from","from","from_ref","into","into","into","into","new","payloads","secrets","to_owned","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","Caps","CapsStorage","Entries","EntryReader","EntryStorage","KeyScope","MissingKey","Namespace","Payloads","RangeSplit","Reader","SecretStorage","SecretStoreError","Secrets","SendEntries","SendFingerprint","Snapshot","SplitAction","SplitOpts","Storage","Store","User","__clone_box","__clone_box","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","caps","clone","clone","clone_into","clone_into","count","default","entries","fingerprint","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from_ref","from_ref","get_entries","get_entries_with_authorisation","get_namespace","get_read_cap","get_user","get_write_cap","has_namespace","has_user","ingest_entry","insert","insert","insert_namespace","insert_user","into","into","into","into","list_read_caps","list_write_caps","max_set_size","payloads","reader","secrets","sign_namespace","sign_user","snapshot","source","split_factor","split_range","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","channel","codec","codec2","gen_stream","increment_by_one","queue","stream","time","Closed","ClosedIncomplete","Decode","Encode","Guarantees","Limited","ReadError","Reader","Receiver","Sender","Unlimited","WriteError","Writer","__clone_box","__clone_box","add","add_guarantees","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","chain","clone","clone","clone_into","clone_into","close","close","close","close","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from_ref","from_ref","get","inbound_channel","into","into","into","into","into","into","into","into_stream","max_buffer_size","merge","outbound_channel","poll_flush","poll_next","poll_shutdown","poll_write","ratelimit_stream","ratelimit_stream_with_jitter","read_bytes","recv","send_message","to_owned","to_owned","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_poll_next","type_id","type_id","type_id","type_id","type_id","type_id","type_id","use","vzip","vzip","vzip","vzip","vzip","vzip","vzip","zip","CompactWidth","DecodeOutcome","Decoded","Decoder","Encoder","NeedMoreData","__clone_box","borrow","borrow","borrow_mut","borrow_mut","clone","clone_into","compact_width","decode_from","encode","encode_into","encode_into","encoded_len","encoded_len","fmt","fmt","from","from","from_ref","into","into","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","from_bytes","from_bytes_relative","to_vec","to_vec_relative","consumed","item","GenStream","borrow","borrow_mut","chain","final_output","fmt","from","from_gen","into","into_stream","merge","new","poll_next","ratelimit_stream","ratelimit_stream_with_jitter","try_from","try_into","try_poll_next","type_id","vzip","zip","Queue","borrow","borrow_mut","chain","default","fmt","from","into","into_stream","merge","poll_next","poll_pop_front","push_back","ratelimit_stream","ratelimit_stream_with_jitter","try_from","try_into","try_poll_next","type_id","vzip","zip","Cancelable","borrow","borrow_mut","chain","fmt","from","into","into_inner","into_stream","merge","new","poll_next","ratelimit_stream","ratelimit_stream_with_jitter","try_from","try_into","try_poll_next","type_id","vzip","zip","system_time_now"],"q":[[0,"iroh_willow"],[29,"iroh_willow::engine"],[91,"iroh_willow::form"],[195,"iroh_willow::interest"],[402,"iroh_willow::net"],[410,"iroh_willow::proto"],[416,"iroh_willow::proto::data_model"],[519,"iroh_willow::proto::data_model::serde_encoding"],[538,"iroh_willow::proto::grouping"],[649,"iroh_willow::proto::grouping::serde_encoding"],[691,"iroh_willow::proto::keys"],[1042,"iroh_willow::proto::meadowcap"],[1135,"iroh_willow::proto::meadowcap::FailedDelegationError"],[1137,"iroh_willow::proto::meadowcap::serde_encoding"],[1204,"iroh_willow::proto::pai"],[1341,"iroh_willow::proto::pai::FragmentSet"],[1343,"iroh_willow::proto::wgps"],[1350,"iroh_willow::proto::wgps::challenge"],[1403,"iroh_willow::proto::wgps::channels"],[1498,"iroh_willow::proto::wgps::fingerprint"],[1525,"iroh_willow::proto::wgps::handles"],[1675,"iroh_willow::proto::wgps::messages"],[2208,"iroh_willow::session"],[2344,"iroh_willow::session::SessionEvent"],[2349,"iroh_willow::session::channels"],[2456,"iroh_willow::session::error"],[2526,"iroh_willow::session::intents"],[2615,"iroh_willow::session::intents::EventKind"],[2622,"iroh_willow::store"],[2651,"iroh_willow::store::auth"],[2710,"iroh_willow::store::entry"],[2774,"iroh_willow::store::entry::EntryOrigin"],[2776,"iroh_willow::store::memory"],[2830,"iroh_willow::store::traits"],[2931,"iroh_willow::util"],[2939,"iroh_willow::util::channel"],[3054,"iroh_willow::util::codec"],[3090,"iroh_willow::util::codec2"],[3094,"iroh_willow::util::codec::DecodeOutcome"],[3096,"iroh_willow::util::gen_stream"],[3117,"iroh_willow::util::queue"],[3138,"iroh_willow::util::stream"],[3158,"iroh_willow::util::time"],[3159,"dyn_clone::sealed"],[3160,"core::fmt"],[3161,"core::result"],[3162,"core::any"],[3163,"iroh_willow::engine::peer_manager"],[3164,"core::option"],[3165,"core::future::future"],[3166,"core::marker"],[3167,"iroh_base::key"],[3168,"core::ops::function"],[3169,"iroh_willow::engine::actor"],[3170,"anyhow"],[3171,"meadowcap"],[3172,"alloc::vec"],[3173,"futures_core::stream"],[3174,"iroh_quinn::connection"],[3175,"core::convert"],[3176,"iroh_net::endpoint"],[3177,"iroh_blobs::store::mem"],[3178,"tokio::sync::mpsc::bounded"],[3179,"serde::de"],[3180,"bytes::bytes"],[3181,"serde::ser"],[3182,"iroh_base::hash"],[3183,"iroh_blobs::store::traits"],[3184,"core::iter::traits::collect"],[3185,"core::hash"],[3186,"alloc::string"],[3187,"core::cmp"],[3188,"willow_encoding::error"],[3189,"ufotofu::sync"],[3190,"ufotofu::local_nb"],[3191,"willow_data_model::entry"],[3192,"willow_data_model::path"],[3193,"willow_data_model::grouping::range"],[3194,"core::clone"],[3195,"core::default"],[3196,"bitvec::slice"],[3197,"bitvec::order"],[3198,"ed25519_dalek::signing"],[3199,"ed25519_dalek::verifying"],[3200,"ed25519"],[3201,"ed25519_dalek::errors"],[3202,"rand_core"],[3203,"bitvec::ptr::span"],[3204,"signature::error"],[3205,"fallible_iterator"],[3206,"core::iter::traits::iterator"],[3207,"std::io"],[3208,"alloc::boxed"],[3209,"alloc::sync"],[3210,"futures_concurrency::stream::chain::tuple"],[3211,"futures_concurrency::stream::into_stream"],[3212,"futures_concurrency::stream::merge::tuple"],[3213,"core::pin"],[3214,"core::task::wake"],[3215,"core::task::poll"],[3216,"governor::state::direct"],[3217,"governor::state"],[3218,"governor::state::direct::streams"],[3219,"governor::clock"],[3220,"governor::clock::with_std"],[3221,"governor::middleware"],[3222,"governor::jitter"],[3223,"futures_concurrency::stream::zip::tuple"],[3224,"tokio::runtime::task::error"],[3225,"core::error"],[3226,"tokio_util::sync::mpsc"],[3227,"tokio_stream::wrappers::mpsc_bounded"],[3228,"meadowcap::owned_capability"],[3229,"meadowcap::communal_capability"],[3230,"tokio::sync::broadcast"],[3231,"std::io::error"],[3232,"willow_encoding::traits_sync"],[3233,"genawaiter::rc::generator"],[3234,"genawaiter::rc::engine"],[3235,"tokio_util::sync::cancellation_token"]],"i":[3,3,0,3,3,3,3,3,0,3,3,3,3,3,0,3,3,0,3,0,0,0,0,3,3,3,3,0,3,0,0,0,18,19,9,18,9,19,18,9,19,18,19,18,19,18,18,9,18,19,18,18,9,19,18,9,19,18,19,18,19,18,18,18,18,18,18,9,19,18,18,19,18,19,18,19,18,19,9,18,9,19,18,9,19,18,9,19,18,9,19,37,0,52,53,0,0,37,49,50,52,53,52,50,0,52,52,0,0,49,37,49,50,52,53,35,37,49,50,52,53,35,37,49,50,37,49,50,37,49,50,37,49,50,52,53,35,37,49,50,52,53,35,37,37,37,49,50,37,49,50,52,53,35,37,49,50,35,35,35,35,37,49,50,52,35,35,37,49,50,52,53,35,37,49,50,52,53,35,37,49,50,52,53,35,37,49,50,37,52,53,35,37,49,50,40,66,0,0,0,0,67,67,0,40,65,66,0,0,0,0,68,27,0,68,0,40,0,65,67,27,40,65,24,66,67,27,26,68,62,62,40,40,62,65,24,66,67,27,69,26,68,40,62,65,24,66,67,27,69,26,68,62,40,40,65,24,66,67,27,26,68,40,65,24,66,67,27,26,68,40,62,65,66,67,66,27,24,66,67,24,24,24,66,66,66,67,67,67,40,62,65,24,66,67,27,69,69,26,68,24,40,40,62,65,24,24,66,66,67,27,69,26,68,40,65,24,66,67,27,26,68,24,24,66,67,66,40,62,65,24,66,67,27,69,26,68,63,24,67,24,24,26,27,24,26,66,27,40,65,24,66,67,27,26,68,69,40,62,65,24,66,67,27,69,26,68,40,62,65,24,66,67,27,69,26,68,40,62,65,24,66,67,27,69,26,68,26,27,40,62,65,24,66,67,27,69,26,68,24,68,24,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,244,0,89,0,0,0,0,0,0,0,0,0,244,0,0,88,89,0,0,0,0,88,89,0,0,77,75,31,86,88,77,89,86,88,77,89,285,77,77,77,77,77,77,75,31,77,77,77,75,31,77,77,77,77,86,86,88,88,77,77,89,89,31,86,88,77,77,89,89,286,56,77,77,86,88,77,89,77,0,285,77,86,88,77,89,86,88,77,89,86,88,77,89,86,88,77,89,86,88,77,89,0,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,142,0,0,0,0,0,91,142,91,0,0,0,0,91,94,95,71,91,94,95,91,94,95,91,94,95,91,94,95,91,94,91,94,94,94,91,91,94,95,91,91,91,94,94,94,95,95,95,91,94,95,29,71,91,94,95,95,91,94,95,94,91,91,94,95,94,103,73,94,94,91,94,95,95,73,71,71,71,94,95,94,94,103,73,91,91,94,95,0,94,95,95,91,94,95,103,73,91,94,95,91,94,95,91,94,95,91,94,95,287,71,0,0,101,100,101,100,101,100,101,100,101,100,101,100,101,100,101,101,101,101,101,100,101,101,100,100,101,100,101,100,101,100,101,100,101,100,101,100,101,100,101,100,20,110,107,111,109,112,113,21,22,0,0,0,0,0,20,0,0,0,0,0,0,0,20,110,107,111,109,112,113,21,22,21,22,107,109,21,22,21,21,22,22,20,110,107,111,109,112,113,21,22,20,110,107,111,109,112,113,21,22,20,110,107,111,109,112,113,21,22,20,110,107,111,109,112,113,21,22,107,109,112,113,21,22,107,109,112,113,21,22,112,112,113,113,21,21,22,22,107,109,21,22,112,113,110,107,111,109,112,113,21,22,107,107,109,109,112,112,113,113,21,21,22,22,21,22,21,22,20,107,109,112,113,21,22,20,20,20,107,107,107,109,109,109,112,112,112,113,113,113,21,21,21,22,22,22,20,110,110,107,107,111,111,109,109,112,112,113,113,21,21,22,22,110,107,111,109,112,113,21,22,20,110,110,107,107,107,107,111,111,109,109,109,109,112,112,113,113,21,21,21,21,21,22,22,22,22,22,110,107,111,109,112,113,21,22,20,110,107,111,109,112,113,21,22,110,107,111,109,21,22,110,111,107,109,112,113,21,22,110,107,111,109,20,110,107,111,109,112,113,21,22,21,22,107,22,107,107,109,112,113,21,22,110,111,110,107,111,109,112,113,21,22,110,111,109,21,110,107,111,109,21,22,20,110,107,111,109,112,113,21,22,110,107,111,109,112,113,21,22,21,22,20,110,107,107,111,109,109,112,113,21,22,20,110,107,111,109,112,113,21,22,110,110,111,111,20,110,107,111,109,112,113,21,22,110,107,107,111,109,109,21,22,20,110,107,111,109,112,113,21,22,0,242,72,288,289,0,0,0,0,0,39,0,0,0,72,288,289,25,0,0,0,0,39,0,0,0,25,0,242,25,125,25,39,125,25,39,125,131,25,125,25,125,125,25,125,25,25,25,125,125,125,25,39,125,25,72,129,39,39,39,125,125,25,125,25,125,25,39,125,0,132,0,125,125,125,125,0,131,125,25,125,25,39,125,25,39,125,25,39,125,25,39,125,290,290,0,0,0,130,127,128,130,127,128,130,127,128,130,127,128,130,127,128,130,127,128,130,127,128,130,127,130,130,130,127,127,127,130,127,128,130,130,127,127,128,128,130,127,128,130,127,130,127,128,130,127,128,130,127,128,130,127,128,130,127,128,130,127,128,130,127,128,138,141,0,0,0,0,0,0,0,0,136,137,0,0,137,138,141,136,134,135,136,137,138,134,139,135,140,136,137,138,141,134,139,135,140,136,137,138,141,134,135,136,137,138,134,135,136,137,138,136,136,134,135,134,134,134,135,135,135,134,139,139,135,140,136,137,138,141,134,139,135,140,136,137,138,141,134,134,135,136,137,138,140,140,140,134,139,135,140,136,137,138,141,141,136,140,137,140,134,134,135,136,137,138,139,134,139,135,140,136,137,138,141,134,139,135,140,136,137,138,141,134,139,135,140,136,137,138,141,134,139,135,140,136,137,138,141,291,291,0,0,0,0,0,0,0,0,0,0,0,0,143,144,143,144,143,144,143,144,143,144,143,144,144,143,144,143,144,143,143,143,144,144,144,143,144,143,144,143,143,144,144,144,144,143,144,143,144,144,143,144,143,144,143,144,143,144,143,144,146,145,146,0,145,146,146,0,145,0,0,146,146,145,146,147,145,146,145,146,147,148,145,146,147,148,145,146,147,145,146,147,146,145,146,145,145,145,146,146,146,145,146,147,148,148,145,146,145,146,147,148,145,146,145,146,147,145,146,145,146,145,146,147,148,147,147,146,147,147,147,147,146,147,145,146,147,148,147,145,146,147,148,145,146,147,148,145,146,147,148,145,146,147,148,0,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,153,159,158,0,159,158,0,0,159,158,0,0,159,0,159,158,0,154,155,156,157,158,159,154,155,156,157,158,159,154,155,156,157,158,154,155,156,157,158,154,155,156,157,158,159,154,155,156,157,154,155,156,157,158,154,154,154,155,155,155,156,156,156,157,157,157,158,158,158,159,159,154,155,156,157,158,159,154,154,155,155,156,156,157,157,158,158,158,158,158,154,155,156,157,158,160,154,155,156,157,154,155,156,157,158,159,154,155,156,157,158,159,154,155,156,157,154,155,156,157,158,159,159,154,155,156,157,158,159,154,155,156,157,158,159,154,155,156,157,158,160,154,155,156,157,159,154,155,156,157,158,187,189,0,162,0,162,0,162,0,162,0,162,0,162,0,162,0,0,162,0,162,0,162,0,0,0,0,0,162,0,162,0,162,0,162,0,0,0,0,162,0,0,162,0,162,0,162,0,162,189,187,188,187,187,188,188,0,162,0,162,0,162,0,0,0,187,163,161,164,165,166,167,168,169,170,176,177,161,161,161,163,163,162,187,188,189,172,173,161,174,175,164,165,166,167,168,169,170,176,177,178,179,180,181,182,183,184,185,163,162,187,188,189,172,173,161,174,175,164,165,166,167,168,169,170,176,177,178,179,180,181,182,183,184,185,166,169,173,185,162,176,177,178,179,180,163,161,164,165,166,167,168,169,170,163,161,164,165,166,167,168,169,170,164,175,164,162,162,163,162,172,173,161,174,175,164,165,166,167,168,169,170,176,177,178,179,180,181,182,183,184,185,165,168,162,162,163,165,168,172,161,172,172,172,161,161,161,175,163,162,162,187,187,188,188,189,189,172,173,161,174,175,164,165,166,167,168,169,170,176,177,178,179,180,181,182,183,184,185,163,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,162,187,187,187,187,187,187,188,188,188,188,189,189,189,172,173,161,174,175,164,165,166,167,168,169,170,176,177,178,179,180,181,182,183,184,185,163,161,164,165,166,167,168,169,170,182,183,173,183,184,185,175,164,163,162,187,188,189,172,173,161,174,175,164,165,166,167,168,169,170,176,177,178,179,180,181,182,183,184,185,182,163,172,168,175,164,175,164,162,175,164,163,162,172,173,161,174,175,164,165,166,167,168,169,170,176,177,178,179,180,181,182,183,184,185,173,185,174,165,168,178,163,161,164,165,166,167,168,169,170,162,187,188,189,163,162,187,187,188,188,189,189,172,172,173,173,161,161,174,174,175,175,164,164,165,165,166,166,167,167,168,168,169,169,170,170,176,176,177,177,178,178,179,179,180,180,181,181,182,182,183,183,184,184,185,163,162,187,188,189,172,173,161,174,175,164,165,166,167,168,169,170,176,177,178,179,180,181,182,183,184,185,163,162,187,188,189,172,173,161,174,175,164,165,166,167,168,169,170,176,177,178,179,180,181,182,183,184,185,163,162,187,188,189,172,173,161,174,175,164,165,166,167,168,169,170,176,177,178,179,180,181,182,183,184,185,164,164,191,191,199,199,0,192,193,192,0,0,0,0,0,0,0,0,200,193,191,192,193,194,191,192,11,193,194,199,200,195,191,192,11,193,194,199,200,195,195,0,191,192,193,194,191,192,193,194,195,195,11,191,192,191,191,191,192,192,192,0,195,191,192,11,193,194,199,200,195,191,192,11,193,194,199,200,195,191,192,193,194,0,11,191,192,11,193,194,199,200,195,191,191,192,11,11,11,194,195,191,192,193,194,191,192,11,193,194,199,200,195,191,192,11,193,194,199,200,195,191,192,11,193,194,199,200,195,195,191,192,11,193,194,199,200,195,292,292,292,292,292,0,0,0,0,0,0,205,196,208,205,206,208,205,196,209,210,206,208,205,196,209,210,208,205,206,205,196,205,196,206,208,205,196,209,196,208,205,206,208,205,196,209,210,206,206,208,205,196,209,210,205,196,205,196,196,208,205,206,208,205,196,209,210,206,209,196,206,206,206,206,206,208,205,206,210,196,210,208,205,205,196,206,208,205,196,209,210,206,208,205,196,209,210,206,206,208,205,196,209,210,206,208,205,196,209,210,206,197,197,197,197,197,197,0,0,197,197,197,197,197,197,197,197,197,197,197,197,197,197,197,197,197,197,197,197,197,197,197,197,197,197,197,201,197,201,197,197,197,197,197,197,201,201,197,197,197,197,197,197,197,197,197,197,201,197,201,197,197,201,197,201,197,201,197,201,197,201,47,235,47,235,234,0,0,0,0,0,0,47,234,234,47,47,47,46,47,235,202,234,46,47,235,202,234,46,46,47,47,46,46,47,234,47,47,47,234,234,234,47,235,202,234,46,47,235,202,234,46,47,47,235,202,234,46,46,46,47,202,202,46,46,46,202,46,47,47,235,202,234,46,47,235,202,234,46,47,235,202,234,46,47,235,202,234,46,46,293,294,295,296,293,294,295,0,0,0,238,0,238,238,238,238,238,238,238,0,238,238,238,238,238,238,0,238,238,238,238,0,238,238,238,238,0,0,228,228,228,228,228,228,228,228,228,228,228,228,239,239,228,239,228,239,239,239,239,239,239,239,239,239,228,228,239,228,228,228,228,228,228,228,239,239,239,239,239,239,228,239,239,239,228,239,228,239,228,239,228,239,228,239,228,246,0,0,245,246,245,0,0,245,246,240,245,246,240,245,246,240,245,246,240,245,246,240,245,246,245,245,245,246,246,246,245,246,240,245,246,240,245,246,240,240,245,246,240,240,240,240,245,246,240,245,246,240,245,246,240,245,246,240,240,245,246,240,240,297,297,0,0,0,0,250,250,251,252,253,250,251,252,253,250,250,250,250,251,252,253,250,250,251,252,253,250,251,252,253,250,250,251,252,253,250,250,250,250,250,251,252,253,250,251,252,253,250,251,252,253,250,251,252,253,42,0,42,0,0,0,229,260,42,0,247,0,0,42,263,263,247,0,0,0,229,260,260,261,229,260,263,261,229,260,263,261,42,260,261,260,261,262,261,42,262,229,229,260,263,261,229,229,260,263,261,260,261,262,262,258,259,258,259,258,258,247,258,259,258,258,229,260,263,261,259,259,261,42,247,42,258,258,247,229,261,262,260,261,229,229,260,263,261,229,260,263,261,229,260,263,261,229,260,263,261,0,0,0,0,0,0,0,0,226,230,230,226,0,267,0,0,0,0,267,0,0,212,211,267,212,226,230,267,269,270,212,211,226,230,267,269,270,212,211,211,212,211,212,211,269,270,212,211,226,226,230,230,267,269,270,212,211,226,230,267,269,270,212,211,212,211,267,0,226,230,267,269,270,212,211,211,270,211,0,270,211,270,270,211,211,269,211,212,212,211,226,230,226,230,267,269,270,212,211,226,230,267,269,270,212,211,211,226,230,267,269,270,212,211,267,226,230,267,269,270,212,211,211,0,0,171,0,0,171,273,171,273,171,273,273,273,0,271,268,268,273,268,273,171,273,171,273,273,171,273,273,171,273,171,273,171,273,171,273,0,0,0,0,298,298,0,279,279,279,279,279,279,279,279,279,279,279,279,279,279,279,279,279,279,279,279,0,282,282,282,282,282,282,282,282,282,282,282,282,282,282,282,282,282,282,282,282,0,283,283,283,283,283,283,283,283,283,283,283,283,283,283,283,283,283,283,283,0],"f":"```{{cb}d{}}{ce{}{}}0{ff}{{ce}d{}{}}`{{ff}h}{{ce}h{}{}}00{{fj}l}`{cc{}}0`6````6{c{{n{e}}}{}{}}0{cA`{}}`8```99{{Abe}Ab{{Aj{}{{Ad{{Ah{Af}}}}}}Al}{{B`{An}{{Ad{c}}}}AlBb}}999999{BdBd}{BfBf}99{{BdBhBj}{{Bn{Bl}}}}{Bd{{Bn{Bj}}}}{{}Ab}{{BdC`CbCd}{{Bn{{Ch{Cf}}}}}}{Bfc{}}{Bdd}{{Bdj}l}{{Abj}l}{{Bfj}l}>>>>>{{BdBlCj}{{Bn{{`{{D`{}{{Cl{{Bn{Cn}}}}}}}}}}}}{{BfDb}{{Bn{d}}}}{{Bd{Ch{Cf}}}{{Bn{d}}}}{{BdDd}{{Bn{d}}}}{{BdDfc}{{Bn{{Dh{Cnh}}}}}{{Dl{Dj}}}}{{BdCnc}{{Bn{d}}}{{Dl{Dj}}}}{{Bdc}{{Bn{d}}}{{Dl{Dn}}}}{ce{}{}}00{{BdE`}{{Bn{Eb}}}}{Bd{{Bn{d}}}}{Bf{{Bn{d}}}}{{eAn}BdEd{Al{Ef{}{{Ad{c}}}}}}{{EheAb}BfEd{Al{Ef{}{{Ad{c}}}}}}{{EjAn}Bd}{{BfAnAf}{{Bn{El}}}}77{{Ab{F`{{Dh{AnEn}}}}}Ab}{c{{n{e}}}{}{}}00000{cA`{}}00:::```````````````````{{cb}d{}}00;;;;;;;;;;;;{DjDj}{FbFb}{FdFd}{{ce}d{}{}}00{c{{n{Dj}}}Ff}{c{{n{Fb}}}Ff}{c{{n{Fd}}}Ff}{{Fhj}l}{{Fjj}l}{{Dfj}l}{{Djj}l}{{Fbj}l}{{Fdj}l}{cc{}}000{BjDj}{FlDj}22222{ce{}{}}00000`{{FnG`c}Df{{Dl{Gb}}}}``{{Djc}nGd}{{Fbc}nGd}{{Fdc}nGd}{{Fhc}{{Bn{{Dh{GfGh}}}}}Gj}``555{c{{n{e}}}{}{}}00000000000{cA`{}}00000{DjBj}888888``````````````````````````{{cb}d{}}0000000{{Glcg}Gl{{Dl{C`}}}Gn{{H`{}{{Cl{e}}}}}}{{Glc}Gl{{Dl{C`}}}}{{}E`}<<<<<<<<<<<<<<<<<<<<{GlE`}{{}Gl}{E`E`}{HbHb}{C`C`}{HdHd}{HfHf}{CfCf}{CdCd}{HhHh}{{ce}d{}{}}0000000;9{{}Hb}{{}Hd}{{}Hf}{c{{n{Hd}}}Ff}{c{{n{Cf}}}Ff}{{C`C`}h}{{HdHd}h}{{HfHf}h}{{ce}h{}{}}00000000{{E`j}l}{{Glj}l}{{Hbj}l}{{C`j}l}{{Hdj}l}{{Hfj}l}{{Cfj}l}{{Hjj}l}0{{Cdj}l}{{Hhj}l}{{CnHd}C`}{cc{}}{GlE`}11{BlC`}22{BjHd}3333333333333`{{C`c}dHl}{{Hdc}dHl}{{Hfc}dHl}{{HdBj}h}{ce{}{}}000000000{GnHn}{{C`I`}h}{{HfIb}h}`{{BlHdHf}C`}{{BjHh}Cd}{CfBj}``{{Hdc}nGd}{{Cfc}nGd}88888888{cId{}}{c{{n{e}}}{}{}}0000000000000000000{cA`{}}000000000`{Cf{{n{dHj}}}}<<<<<<<<<<{BlC`}{{HhIb}Ib}{{BlBj}C`}`````````````````````````````````````````{{cb}d{}}{If{{Dh{FnIhG`}}}}{Cn{{Dh{FnIhG`}}}}{ce{}{}}0000000`{IjIj}{{ce}d{}{}}{{IjIj}Il}{{ce}Il{}{}}{c{{n{IjIn}}}{{Jb{}{{Cl{J`}}}}}}{c{{n{IjIn}}}{{Jd{}{{Cl{J`}}}}}}{{{Jf{J`}}}{{Bn{Cn}}}}0{{}Ij}{{Ijc}{{n{d}}}{{Jh{}{{Cl{J`}}}}}}{{Ijc}{{n{d}}}{{Jj{}{{Cl{J`}}}}}}{If{{Ch{J`}}}}{Cn{{Ch{J`}}}}{{IjIj}h}{{ce}h{}{}}00{{Jlj}{{n{dJn}}}}0{{K`j}{{n{dJn}}}}0{{Ijj}l}0{{Kbj}l}0{KdCn}{cc{}}00{GfIj}{K`Kb}2{{{Jf{{Jf{J`}}}}}{{n{G`Kb}}}}03{{Ijc}dHl}{ce{}{}}000{{IjIj}{{Ah{Il}}}}``1{cId{}}000{c{{n{e}}}{}{}}0000000{cA`{}}0004444`{{cb}d{}}55{KdKd}{{ce}d{}{}}{Kdc{}}{c{{n{Kd}}}Ff}{{Kdj}l}{CnKd}{cc{}}0<{{Kdc}nGd}=::9=`````````````888`======{{{Kf{c}}}{{Kf{c}}}{KhKj}}{{{Kl{c}}}{{Kl{c}}}{KhKj}}{KnKn}999{{{Kf{c}}{Kf{c}}}IlKj}{{{Kl{c}}{Kl{c}}}IlKj}{{ce}Il{}{}}0{{}{{Kl{c}}}{L`KjKh}}`{{{Kf{c}}{Kf{c}}}h{LbKj}}{{{Kf{c}}c}h{LdKj}}{{{Kl{c}}{Kl{c}}}h{LbKj}}{{KnKn}h}{{ce}h{}{}}00000000{{{Kf{c}}j}{{n{dJn}}}{LfKj}}{{{Kl{c}}j}{{n{dJn}}}{LfKj}}{{Knj}l}{LhCj}{LjHn}{cc{}}00{CnKn}111<{{{Kf{c}}c}hKj}{{{Kf{c}}e}d{LlKj}Hl}{{{Kl{c}}e}d{LlKj}Hl}{{Knc}dHl}{{{Kl{c}}c}h{KjKh}}{{LnKn}h}{{IbKn}h}{{{Kl{c}}{Kl{c}}}h{KjKh}}{{{Kl{c}}{Kl{c}}}{{Ah{{Kl{c}}}}}{KjKh}}{ce{}{}}00{KnIb}{IbHn}{HnHn}``{{c{Kf{c}}}{{Kl{c}}}{KjKh}}{{IhG`M`}Kn}{{cc}{{Ah{{Kl{c}}}}}{KjKh}}{c{{Kl{c}}}{KjKh}}{G`Ib}0{{{Kf{c}}c}{{Ah{Il}}}Kj}{{{Kf{c}}{Kf{c}}}{{Ah{Il}}}Kj}{{{Kl{c}}{Kl{c}}}{{Ah{Il}}}Kj}`````;;;{LnCj}{IbCj}{c{{n{e}}}{}{}}00000{cA`{}}00???==``{{cb}d{}}0{ce{}{}}000{LjLj}{LhLh}{{ce}d{}{}}0{Ljc{}}{Lhc{}}{c{{n{Lj}}}Ff}{c{{n{Lh}}}Ff}{{LjLj}h}{{ce}h{}{}}00{{Ljj}l}{{Lhj}l}{HnLj}{cc{}}0{CjLh}11>>{{Ljc}nGd}{{Lhc}nGd}{ce{}{}}0{c{{n{e}}}{}{}}000{cA`{}}022``````````````````````{{cb}d{}}00000000{c{{Mb{eg}}}{}{}Md}0{Mf{{Mh{J`}}}}{Mj{{Mh{J`}}}}{Bj{{Mh{J`}}}}{Bl{{Mh{J`}}}}{Bj{{Jf{J`}}}}2{Bl{{Jf{J`}}}}2::::::::::::::::::{BhBh}{MlMl}{MfMf}{MnMn}{MjMj}{N`N`}{NbNb}{BjBj}{BlBl}{{ce}d{}{}}00000000{{MfMf}Il}{{MjMj}Il}{{N`N`}Il}{{NbNb}Il}{{BjBj}Il}{{BlBl}Il}{{ce}Il{}{}}00000{c{{n{N`In}}}{{Jb{}{{Cl{J`}}}}}}{c{{n{N`In}}}{{Jd{}{{Cl{J`}}}}}}{c{{n{NbIn}}}{{Jd{}{{Cl{J`}}}}}}{c{{n{NbIn}}}{{Jb{}{{Cl{J`}}}}}}{c{{n{BjIn}}}{{Jb{}{{Cl{J`}}}}}}{c{{n{BjIn}}}{{Jd{}{{Cl{J`}}}}}}{c{{n{BlIn}}}{{Jb{}{{Cl{J`}}}}}}{c{{n{BlIn}}}{{Jd{}{{Cl{J`}}}}}}{{}Mf}{{}Mj}{{}Bj}{{}Bl}{N`c{}}{Nbc{}}{c{{n{Ml}}}Ff}{c{{n{Mf}}}Ff}{c{{n{Mn}}}Ff}{c{{n{Mj}}}Ff}{c{{n{N`}}}Ff}{c{{n{Nb}}}Ff}{c{{n{Bj}}}Ff}{c{{n{Bl}}}Ff}{{Mfc}{{n{d}}}{{Jj{}{{Cl{J`}}}}}}{{Mfc}{{n{d}}}{{Jh{}{{Cl{J`}}}}}}{{Mjc}{{n{d}}}{{Jj{}{{Cl{J`}}}}}}{{Mjc}{{n{d}}}{{Jh{}{{Cl{J`}}}}}}{{N`c}{{n{d}}}{{Jj{}{{Cl{J`}}}}}}{{N`c}{{n{d}}}{{Jh{}{{Cl{J`}}}}}}{{Nbc}{{n{d}}}{{Jh{}{{Cl{J`}}}}}}{{Nbc}{{n{d}}}{{Jj{}{{Cl{J`}}}}}}{{Bjc}{{n{d}}}{{Jj{}{{Cl{J`}}}}}}{{Bjc}{{n{d}}}{{Jh{}{{Cl{J`}}}}}}{{Blc}{{n{d}}}{{Jh{}{{Cl{J`}}}}}}{{Blc}{{n{d}}}{{Jj{}{{Cl{J`}}}}}}{ce{}{{Nf{Nd}}}}000{{BhBh}h}{{MfMf}h}{{MjMj}h}{{N`N`}h}{{NbNb}h}{{BjBj}h}{{BlBl}h}{{ce}h{}{}}00000000000000000000{{Bhj}l}{{Mlj}l}0{{Mfj}l}0{{Mnj}l}0{{Mjj}l}0{{N`j}l}0{{Nbj}l}0{{Bjj}l}0{{Blj}l}0{MlId}{MfId}{MnId}{MjId}{N`Id}{NbId}{BjId}{BlId}{cc{}}{NhMl}11{MlMf}0{NjMf}3{NhMn}{MnMj}05{NjMj}6{NlN`}{NlNb}8{MnBj}{MjBj}0{{{Mh{J`}}}Bj};{MfBl}<0{{{Mh{J`}}}Bl}{MlBl}{{{Mh{J`}}}Ml}{{{Mh{J`}}}{{n{MfNn}}}}{{{Mh{J`}}}Mn}{{{Mh{J`}}}{{n{MjNn}}}}{{{Mh{J`}}}N`}{{{Mh{J`}}}Nb}97{cc{}}00000000{O`{{n{Mlc}}}{}}{O`{{n{Mfc}}}{}}{O`{{n{Mnc}}}{}}{O`{{n{Mjc}}}{}}{O`{{n{Bjc}}}{}}{O`{{n{Blc}}}{}}{{cBh}Ml{ObOd}}{cMn{ObOd}}{{Mfc}dHl}{{Mjc}dHl}{{N`c}dHl}{{Nbc}dHl}{{Bjc}dHl}{{Blc}dHl}{MlBl}{MfBl}{MnBj}{MjBj}{ce{}{}}00000000{Bj{{n{MjNn}}}}{Bl{{n{MfNn}}}}{Mfh}{Blh}{MfBh}{{MfMf}{{Ah{Il}}}}{{MjMj}{{Ah{Il}}}}{{N`N`}{{Ah{Il}}}}{{NbNb}{{Ah{Il}}}}{{BjBj}{{Ah{Il}}}}{{BlBl}{{Ah{Il}}}}{MlMf}{MnMj}{{Mlc}nGd}{{Mfc}nGd}{{Mnc}nGd}{{Mjc}nGd}{{N`c}nGd}{{Nbc}nGd}{{Bjc}nGd}{{Blc}nGd}{{Ml{Jf{J`}}}N`}{{Mn{Jf{J`}}}Nb}{Mj{{Ah{Mj}}}}{Bj{{Ah{Bj}}}}{Ml{{Mh{J`}}}}{Mf{{Mh{J`}}}}{Mn{{Mh{J`}}}}{Mj{{Mh{J`}}}}{Bj{{Mh{J`}}}}{Bl{{Mh{J`}}}}{ce{}{}}00000000{cId{}}0000000{c{{n{{Mb{eg}}{Of{e}}}}}{}{}Md}0{c{{n{e}}}{}{}}00{Bl{{n{Mfc}}}{}}1{Bj{{n{Mjc}}}{}}22222222222222{{c{Jf{J`}}}{{n{eOh}}}{}{}}{{Ml{Jf{J`}}}{{n{N`Oh}}}}1{{Mn{Jf{J`}}}{{n{NbOh}}}}{cA`{}}00000000{{Ml{Jf{J`}}N`}{{n{dNn}}}}{{Mf{Jf{J`}}N`}{{n{dNn}}}}{{Mf{Jf{J`}}N`}{{n{dOh}}}}{{Mn{Jf{J`}}Nb}{{n{dNn}}}}{{Mj{Jf{J`}}Nb}{{n{dNn}}}}{{Mj{Jf{J`}}Nb}{{n{dOh}}}}{{Bj{Jf{J`}}Nb}{{n{dOh}}}}{{Bl{Jf{J`}}N`}{{n{dOh}}}}{ce{}{}}00000000`````````````````````````````{{cb}d{}}0111111`{CbCb}{OjOj}{{ce}d{}{}}0{{OjMnOlIb}{{Bn{Oj}}}}{{CbCb}h}{{OjOj}h}{{ce}h{}{}}00000{{Cbj}{{n{dJn}}}}{{Dnj}l}{{Ojj}l}{cc{}}{OnI`}{A@`A@b}{MlDn}{MnDn}4{A@dOj}555{{Cbc}dHl}{{Ojc}dHl}{ce{}{}}00{{CnA@f}h}{A@hh}{{I`I`}h}{OjA@j}{{I`{Ah{A@b}}}Oj}{{MlOl}{{Bn{Oj}}}}{OjI`}``{Oj{{Ah{A@b}}}}88{c{{n{e}}}{}{}}00000{cA`{}}00:::`````{{cb}d{}}00;;;;;;{A@dA@d}{OnOn}{A@`A@`}{{ce}d{}{}}00{A@dc{}}{Onc{}}{A@`c{}}{c{{n{A@d}}}Ff}{c{{n{On}}}Ff}{c{{n{A@`}}}Ff}{{A@dA@d}h}{{OnOn}h}{{ce}h{}{}}00000{{A@dj}l}{{Onj}l}{{A@`j}l}{OjA@d}{cc{}}{I`On}1{A@bA@`}2222{{A@dc}dHl}{{Onc}dHl}{ce{}{}}00{{A@dc}nGd}{{Onc}nGd}{{A@`c}nGd}333{c{{n{e}}}{}{}}00000{cA`{}}00555``````````````````{{cb}d{}}00006666666666666666{A@lA@l}{A@nA@n}{AA`AA`}{AAbAAb}{AAdAAd}{{ce}d{}{}}0000{{AA`c}{{n{d}}}{{Jj{}{{Cl{J`}}}}}}{{AA`c}{{n{d}}}{{Jh{}{{Cl{J`}}}}}}{{A@lA@l}h}{{A@nA@n}h}{{ce}h{}{}}00000{{A@lj}l}{{AAfj}l}0{{A@nj}l}{{AAhj}l}{{AA`j}l}{{AAbj}l}{{AAdj}l}{{AAjj}l}{cc{}}0000000{{{Mh{J`}}}{{n{A@lAAf}}}}11111{I`AAj}{{}A@n}{AA`A@l}{ce{}{}}0000000{AAjAAd}{AA`{{Dh{FnAAlG`}}}}{{A@lA@l}h}{AAbh}{{A@lA@n}A@l}{A@l{{Mh{J`}}}}66666{cId{}}{c{{n{e}}}{}{}}000000000000000{cA`{}}000000099999999``````````````{{cb}d{}}0{AAn{{Jf{J`}}}}{AB`{{Jf{J`}}}}<<<<{AAnAAn}{AB`AB`}{{ce}d{}{}}0{{}AB`}{c{{n{AAn}}}Ff}{c{{n{AB`}}}Ff}{{AAnAAn}h}{{AB`AB`}h}{{ce}h{}{}}00000{{AAnj}l}{{AB`j}l}{cc{}}0{{{Mh{J`}}}AAn}119{cAB`Ob}{AB`AAn}{ce{}{}}0{{AAnc}nGd}{{AB`c}nGd}{AB`{{Mh{J`}}}}33{c{{n{e}}}{}{}}000{cA`{}}055`````````````{{cb}d{}}00{{}{{Mh{ABb}}}}{{}{{Mh{ABd}}}}88888888{ABbABb}{ABdABd}{ABfABf}{{ce}d{}{}}00{c{{n{ABd}}}Ff}{{ABbABb}h}{{ABdABd}h}{{ce}h{}{}}00000{{ABbj}l}{{ABdj}l}{{ABfj}l}{{ABhj}l}0{ABbO`}{ABdO`}{cc{}}000{J`{{n{ABbABh}}}}{J`{{n{ABdABh}}}}222{{ABbc}dHl}{{ABdc}dHl}{ABbJ`}{ABdJ`}{ce{}{}}000{c{{ABj{g}}}{}{}{{ABl{}{{Cl{e}}}}}}1{{}ABf}{ABfABn}{ABf{{Ah{c}}}{}}0{{ABfABn}{{Ah{c}}}{}}{{ABdc}nGd}{ABf{{Dh{ABn{Ah{ABn}}}}}}777{cId{}}{c{{AC`{i}}}{}{}{}{{ABl{}{{Cl{{n{eg}}}}}}}}{c{{n{e}}}{}{}}0000000{cA`{}}000;;;;`{{cb}d{}}{{ACbc}d{{ABl{}{{Cl{Cn}}}}}}{{ACbCn}d}{{ACbACb}d}??{ACbACb}{{ce}d{}{}}{{}ACb}{c{{n{ACb}}}Ff}{{ACbACb}h}{{ce}h{}{}}00{{ACbj}l}{cc{}}{cACb{{ABl{}{{Cl{Cn}}}}}}1{ce{}{}}{ACbh}{{ACbc}nGd}2{c{{n{e}}}{}{}}0{cA`{}}4````````````````{{cb}d{}}0000555555555555{ACdACd}{ACfACf}{AChACh}{ACjACj}{AClACl}{{ce}d{}{}}0000{c{{n{ACn}}}Ff}{c{{n{ACd}}}Ff}{c{{n{ACf}}}Ff}{c{{n{ACh}}}Ff}{c{{n{ACj}}}Ff}{{ACdACd}h}{{ACfACf}h}{{AChACh}h}{{ACjACj}h}{{AClACl}h}{{ce}h{}{}}00000000000000{{ACnj}l}{{ACnj}{{n{dJn}}}}{{ACdj}l}{{ACfj}l}{{AChj}l}{{ACjj}l}{{AClj}l}{cc{}}{GhACd}1{GhACf}22{GhACh}{GhACj}4{ACfACl}{ACjACl}{AChACl}{ACdACl}888888{AD`ACn}{ACdACn}{ACfACn}{AChACn}{ACjACn}{{ACdc}dHl}{{ACfc}dHl}{{AChc}dHl}{{ACjc}dHl}{{AClc}dHl}{ce{}{}}00000{{ACnc}nGd}{{ACdc}nGd}{{ACfc}nGd}{{AChc}nGd}{{ACjc}nGd}55555{cId{}}{c{{n{e}}}{}{}}00000000000{cA`{}}00000{AD`Gh}{ACdGh}{ACfGh}{AChGh}{ACjGh}======``````````````````````````````````````````````````````````````````{{cb}d{}}00000000``{ADbIb}```??????????????????????????????????????????????????????````{ADdABb}`````{ADfADf}{ADbADb}{ADhADh}{ADjADj}{ADlADl}{ADnADn}{AE`AE`}{AEbAEb}{AEdAEd}{{ce}d{}{}}00000000```{ADd{{Ah{{Dh{ACdGh}}}}}}{{{Jf{J`}}}{{Bn{{AEf{ADd}}}}}}{c{{n{ADf}}}Ff}{c{{n{ADd}}}Ff}{c{{n{AEh}}}Ff}{c{{n{AEj}}}Ff}{c{{n{ADb}}}Ff}{c{{n{AEl}}}Ff}{c{{n{AEn}}}Ff}{c{{n{ADh}}}Ff}{c{{n{ADj}}}Ff}{c{{n{ADl}}}Ff}{c{{n{ADn}}}Ff}{c{{n{AE`}}}Ff}{c{{n{AEb}}}Ff}{c{{n{AEd}}}Ff}{c{{n{AF`}}}Ff}{c{{n{AFb}}}Ff}{c{{n{AFd}}}Ff}{c{{n{AFf}}}Ff}{c{{n{AFh}}}Ff}{c{{n{AFj}}}Ff}{c{{n{AFl}}}Ff}{c{{n{AFn}}}Ff}{c{{n{AG`}}}Ff}{c{{n{AGb}}}Ff}``{{ADdc}{{Bn{d}}}AGd}{ADdABn}```{{AEhAEh}h}{{ADbADb}h}{{ce}h{}{}}00000`{{ADfj}l}{{ADdj}{{n{dJn}}}}{{ADdj}l}{{AGfj}l}{{AGfj}{{n{dJn}}}}{{AGhj}{{n{dJn}}}}{{AGhj}l}{{AGjj}l}{{AGjj}{{n{dJn}}}}{{AEhj}l}{{AEjj}l}{{ADbj}l}{{AElj}l}{{AEnj}l}{{ADhj}l}{{ADjj}l}{{ADlj}l}{{ADnj}l}{{AE`j}l}{{AEbj}l}{{AEdj}l}{{AF`j}l}{{AFbj}l}{{AFdj}l}{{AFfj}l}{{AFhj}l}{{AFjj}l}{{AFlj}l}{{AFnj}l}{{AG`j}l}{{AGbj}l}{cc{}}{AGjADd}{AFlADd}2{AFnADd}{ADhADd}{ADlADd}{AGfADd}{AE`ADd}{ADjADd}{{{AGl{AGb}}}ADd}{AG`ADd}{AGhADd}{AFbADd}{AEnADd}{AFhADd}{ADnADd}{AF`ADd}{AEjADd}{AFjADd}{AFfADd}{AEdADd}{AElADd}{AEhADd}{ADbADd}{AEbADd}{AFdADd}{ADhAGf}{ADlAGf}{AEnAGf}{ADnAGf}{cc{}}{ADjAGf}1{AE`AGh}{AEdAGh}{AEbAGh}{AFnAGj}{AFlAGj}66666666666666666666666666666666``````{AEn{{Dh{ACdACd}}}}{ADh{{Dh{ACdACd}}}}{ce{}{}}00000000000000000000000000`{{CnGh}ADf}``````{{ADdADd}h}``{{ADfc}nGd}{{ADdc}nGd}{{AEhc}nGd}{{AEjc}nGd}{{ADbc}nGd}{{AElc}nGd}{{AEnc}nGd}{{ADhc}nGd}{{ADjc}nGd}{{ADlc}nGd}{{ADnc}nGd}{{AE`c}nGd}{{AEbc}nGd}{{AEdc}nGd}{{AF`c}nGd}{{AFbc}nGd}{{AFdc}nGd}{{AFfc}nGd}{{AFhc}nGd}{{AFjc}nGd}{{AFlc}nGd}{{AFnc}nGd}{{AG`c}nGd}{{AGbc}nGd}``````{ce{}{}}00000000{cId{}}000{c{{n{e}}}{}{}}0{ADd{{n{AGfc}}}{}}11{ADd{{n{AGhc}}}{}}2{ADd{{n{AGjc}}}{}}3{ADd{{n{AEhc}}}{}}{ADd{{n{AEjc}}}{}}5{ADd{{n{ADbc}}}{}}6{ADd{{n{AElc}}}{}}77{ADd{{n{AEnc}}}{}}8{ADd{{n{ADhc}}}{}}9{ADd{{n{ADjc}}}{}}:{ADd{{n{ADlc}}}{}}{ADd{{n{ADnc}}}{}}<{ADd{{n{AE`c}}}{}}=={ADd{{n{AEbc}}}{}}{ADd{{n{AEdc}}}{}}??{ADd{{n{AF`c}}}{}}{ADd{{n{AFbc}}}{}}{c{{n{e}}}{}{}}0{ADd{{n{AFdc}}}{}}{ADd{{n{AFfc}}}{}}22{ADd{{n{AFhc}}}{}}{ADd{{n{AFjc}}}{}}44{ADd{{n{AFlc}}}{}}{ADd{{n{AFnc}}}{}}66{ADd{{n{AG`c}}}{}}7777777777777777777777777777{cA`{}}00000000000000000000000000{ce{}{}}00000000000000000000000000````````````````````{{cb}d{}}0001111111111111111``{AGnAGn}{AH`AH`}{AHbAHb}{AHdAHd}{{ce}d{}{}}000{AHfd}{AHf{{n{{Dh{AHhh}}{AHl{AHj}}}}}}{cAf{{Dl{E`}}}}{{AGnAGn}h}{{AH`AH`}h}{{ce}h{}{}}00000``{{AGnj}l}{{AH`j}l}{{Afj}l}{{AHbj}l}{{AHdj}l}{{AHnj}l}{{AI`j}l}{{AHfj}l}{cc{}}00000000000``{ce{}{}}0000000{AGnh}0{AH`h}`{{cAH`}Af{{Dl{E`}}}}{cAf{{Dl{E`}}}}{{AHdAHn}{{n{dAIb}}}}{{AHfAId}{{Bn{d}}}}6666{c{{n{e}}}{}{}}000000000000000{cA`{}}0000000`88888888```````````{{cb}d{}}0``999999999999``{{cg}{{AIf{i}}}{}{}{{AIh{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{AIjAIj}{AHhAHh}{{ce}d{}{}}0{{{AIl{c}}}d{{AIn{ADd}}}}{AJ`d}{AIjd}{AHhd}````{{{AIl{c}}j}lLf}{{AJ`j}l}{{AIjj}l}{{AHhj}l}{{AJbj}l}{{AJdj}l}{{{AJf{ADd}}}{{AIl{c}}}{{AIn{ADd}}}}{cc{}}0000000{{AIjABd}{{AJh{ADd}}}}{{AHhABb}{{AJh{ADd}}}}{{AHhABd}{{AJh{ADd}}}}``{ce{}{}}000000``{{cg}{{AJj{ei}}}{}{}{{AIh{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{{{AJl{{AIl{c}}}}AJn}{{AK`{{Ah{e}}}}}{{AIn{ADd}}AKb}{}}{{{AIl{c}}AJn}{{AK`{{Ah{{n{cAHj}}}}}}}{{AIn{ADd}}}}{{c{AKf{AKdegi}}}{{AKh{kegi}}}{}AKj{AKlAKn}AL`{}}{{c{AKf{AKdegi}}ALb}{{AKh{kegi}}}{}AKj{AKlAKn}AL`{}}``{{{AIl{c}}}{{Ah{{n{cAHj}}}}}{{AIn{ADd}}}}`{{AHhc}{{n{dALd}}}{{Dl{ADd}}}}```77{c{{n{e}}}{}{}}00000000000{{{AJl{c}}AJn}{{AK`{{Ah{n}}}}}{}}{cA`{}}00000::::::{{cg}{{ALf{i}}}{}{}{{AIh{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}``````````````````````````````````;;;;{{AHjAHj}h}{{ce}h{}{}}00{{AHjj}l}0{{AIbj}l}0{cc{}}{ALhAHj}{ALjAHj}{NnAHj}{ALdAHj}{JlAHj}{AIbAHj}{ALlAHj}{ALnAHj}{AM`AHj}9{ce{}{}}0{AHj{{Ah{AMb}}}}{cId{}}0{c{{n{e}}}{}{}}000{cA`{}}044````````````````{{cb}d{}}{{Elc}{{Bn{d}}}{{Dl{E`}}}}6666666666{{cg}{{AIf{i}}}{}{}{{AIh{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{EnEn}{{ce}d{}{}}{Eld}{El{{Bn{AMd{AHl{AHj}}}}}}{{EnEn}h}{{AMdAMd}h}{{ce}h{}{}}00000{{Enj}l}{{AMfj}l}{{AIdj}l}{{AMdj}l}{{Elj}l}{cc{}}00000{ce{}{}}00000{{cg}{{AJj{ei}}}{}{}{{AIh{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{En{{Ah{Bl}}}}{Af{{Dh{AIdEl}}}}{AfAId}{{{AJl{El}}AJn}{{AK`{{Ah{c}}}}}{}}{{c{AKf{AKdegi}}}{{AKh{kegi}}}{}AKj{AKlAKn}AL`{}}{{c{AKf{AKdegi}}ALb}{{AKh{kegi}}}{}AKj{AKlAKn}AL`{}}{{AId{AHl{AHj}}}d}{El{{Dh{{AMh{AMf}}{AMj{En}}}}}}9{c{{n{e}}}{}{}}000000000{cA`{}}0000;;;;;{{cg}{{ALf{i}}}{}{}{{AIh{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}``````````{{cb}d{}}`{{{AMl{c}}}{{AMn{c}}}Ed}>>{{{AMl{c}}}{{AMl{c}}}{KhEd}}{{ce}d{}{}}{{{AMl{c}}eBhBj}{{Bn{BlALh}}}EdOb}{{{AMl{c}}}AN`Ed}`{{{AMl{c}}j}l{LfEd}}{{{AMl{c}}DfBj}{{Bn{Cn}}}Ed}{cc{}}0{{{AMl{c}}FjDj}{{Bn{{Dh{Cnh}}}}}Ed}{ce{}{}}`{c{{AMl{c}}}Ed}{{{AMl{c}}}{}Ed}02`??>2``````````````<2222{{{AMn{c}}}{{AMn{c}}}{KhEd}}:{{{AMn{c}}BlBj}{{Bn{{Mh{Cf}}ALh}}}Ed}{{{AMn{c}}BlBj}{{Bn{CfALh}}}Ed}0{{{AMn{c}}C`CbCdh}{{Bn{{Ch{Cf}}ALh}}}Ed}{{{AMn{c}}C`BjHh}{{Bn{CfALh}}}Ed}0{{{AMn{c}}j}l{LfEd}}{{ALhj}l}0;{{{ANb{Bl}}}ALh}<{ANdALh}{ALjALh}{HjALh}{{{ANf{Bl}}}ALh}{AM`ALh}{cc{}}{{{AMn{c}}C`}{{Bn{{Ah{Oj}}ALh}}}Ed}{{{AMn{c}}C`}{{Bn{{Ah{ANh}}ALh}}}Ed}{{{AMn{c}}e}{{Bn{dALh}}}Ed{{H`{}{{Cl{Cf}}}}}}0{ce{}{}}0{{{AMn{c}}}{{Bn{{`{{ABl{}{{Cl{Oj}}}}}}}}}Ed}{{}{{AMn{c}}}Ed}{{{AMn{c}}E`}{{Bn{EbALh}}}Ed}{ALh{{Ah{AMb}}}}4{cId{}}{c{{n{e}}}{}{}}000{cA`{}}077````````{{cb}d{}}00888888{ANjANj}{ANlANl}{{{AN`{c}}}{{AN`{c}}}Kh}{{ce}d{}{}}00{{ANjANj}h}{{ANlANl}h}{{ce}h{}{}}00000{{ANjj}l}{{ANlj}l}{{{AN`{c}}j}lLf}{cc{}}00000{{{AN`{c}}DdANj}{{Bn{h}}}ANn}{ce{}{}}00{{{AN`{c}}}{}ANn}{{{AN`{c}}}BnANn}{{{AN`{c}}AO`}{{AOb{Dd}}}ANn}333{c{{n{e}}}{}{}}00000{cA`{}}00{{{AN`{c}}AO`}dANn}666{{{AN`{c}}AO`FnIb}dANn}``````{{cb}d{}}88888888{AOdc{}}{AOdAOd}{{ce}d{}{}}{{}AOd}{{}AOf}{{}AOh}{{}AOj}6{{AOdj}l}{{AOfj}l}{{AOhj}l}{{AOjj}l}{cc{}}0000{ce{}{}}000{EjAOd}==1{c{{n{e}}}{}{}}0000000{cA`{}}0003333``````````````````````{{cb}d{}}044444444{{{Ed{}{{AOl{c}}{AOn{e}}{B@`{g}}{B@b{i}}}}}iANnB@dGjB@f}{B@hB@h}{B@jB@j}{{ce}d{}{}}0{{B@lFnCj}{{Bn{Gh}}}}{{}B@j}{{{Ed{}{{AOl{c}}{AOn{e}}{B@`{g}}{B@b{i}}}}}cANnB@dGjB@f}{{B@lFnCj}{{Bn{ACb}}}}{{ALjj}l}0{{B@hj}l}{{B@nj}l}{{B@jj}l}{AM`ALj}{cc{}}00000{{B@lFnCj}{{`{{ABl{}{{Cl{{Bn{Cn}}}}}}}}}}{{B@lFnCj}{{`{{ABl{}{{Cl{{Bn{Dd}}}}}}}}}}{{B@dFn}{{Ah{Ml}}}}{{B@fC`}{{Bn{{Ah{Oj}}}}}}{{B@dBj}{{Ah{Mn}}}}{{B@fC`}{{Bn{{Ah{ANh}}}}}}{{B@dBj}h}0{{{ANn{}{{BA`{c}}{BAb{e}}}}Dd}{{Bn{h}}}B@l{B@lKh}}{{B@dDn}{{Bn{dALj}}}}{{B@fCf}{{Bn{d}}}}{{B@dMl}{{Bn{FnALj}}}}{{B@dMn}{{Bn{BjALj}}}}{ce{}{}}000{{B@f{Ah{Fn}}}{{Bn{{`{{ABl{}{{Cl{Oj}}}}}}}}}}{{B@f{Ah{Fn}}}{{Bn{{`{{ABl{}{{Cl{ANh}}}}}}}}}}`{{{Ed{}{{AOl{c}}{AOn{e}}{B@`{g}}{B@b{i}}}}}gANnB@dGjB@f}{{{ANn{}{{BA`{c}}{BAb{e}}}}}cB@l{B@lKh}}{{{Ed{}{{AOl{c}}{AOn{e}}{B@`{g}}{B@b{i}}}}}eANnB@dGjB@f}{{B@dFn{Jf{J`}}}{{Bn{N`ALj}}}}{{B@dBj{Jf{J`}}}{{Bn{NbALj}}}}{{{ANn{}{{BA`{c}}{BAb{e}}}}}{{Bn{e}}}B@l{B@lKh}}{ALj{{Ah{AMb}}}}`{{B@lFnCjB@j}{{Bn{{`{{ABl{}{{Cl{{Bn{BAd}}}}}}}}}}}}::{cId{}}{c{{n{e}}}{}{}}0000000{cA`{}}000====````{{{Mh{J`}}}{{Ah{{Mh{J`}}}}}}````````````````{{cb}d{}}0{{BAfGh}d}{{{AJh{c}}Gh}dBAh}{ce{}{}}0000000000000{{cg}{{AIf{i}}}{}{}{{AIh{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{{{AJh{c}}}{{AJh{c}}}{}}{{{AJf{c}}}{{AJf{c}}}{}}{{ce}d{}{}}0{BAjd}{BAld}{{{AJh{c}}}dBAh}{{{AJf{c}}}dBAn}{{ALdj}l}0{{ALlj}l}0{{BAfj}l}{{BAjj}l}{{BAlj}l}{{{AJh{c}}j}lLf}{{{AJf{c}}j}lLf}{cc{}}00000000{BAfGh}{ABn{{Dh{BAl{AJf{c}}}}}BAn}{ce{}{}}0000000{BAlABn}{{cg}{{AJj{ei}}}{}{}{{AIh{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{{ABnBAf}{{Dh{{AJh{c}}BAj}}}BAh}{{{AJl{BAl}}AJn}{{AK`{{n{dBB`}}}}}}{{{AJl{{AJf{c}}}}AJn}{{AK`{{Ah{e}}}}}BAn{}}1{{{AJl{BAl}}AJn{Jf{J`}}}{{AK`{{n{ABnBB`}}}}}}{{c{AKf{AKdegi}}}{{AKh{kegi}}}{}AKj{AKlAKn}AL`{}}{{c{AKf{AKdegi}}ALb}{{AKh{kegi}}}{}AKj{AKlAKn}AL`{}}{BAj{{Ah{Gb}}}}{{{AJf{c}}}{{Ah{{n{cALl}}}}}BAn}{{{AJh{c}}c}{{n{dALd}}}BAh};;{cId{}}0{c{{n{e}}}{}{}}0000000000000{{{AJl{c}}AJn}{{AK`{{Ah{n}}}}}{}}{cA`{}}000000{{BAfGh}d}{ce{}{}}000000{{cg}{{ALf{i}}}{}{}{{AIh{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}``````{{cb}d{}}2222{BBbBBb}{{ce}d{}{}}{GhJ`}{{{Jf{J`}}}{{Bn{{AEf{BAn}}}}}}{BAh{{Bn{{Ch{J`}}}}}}{{BAhc}{{Bn{d}}}AGd}{{BBbc}{{Bn{d}}}AGd}{BAhABn}{BBbABn}{{{AEf{c}}j}lLf}{{BBbj}l}{cc{}}00>>>{c{{n{e}}}{}{}}000{cA`{}}0{ce{}{}}0{{{Jf{J`}}}{{n{c{In{BBd}}}}}BBf}{{c{Jf{J`}}}{{n{e{In{BBd}}}}}{}{{BBh{c}}}}{c{{Ch{J`}}}BBj}{{ce}{{Ch{J`}}}{}{{BBl{c}}}}```44{{cg}{{AIf{i}}}{}{}{{AIh{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{{{BBn{ceig}}}{{Ah{g}}}{}{}{}{{Aj{}{{Ad{{n{ge}}}}}}}}{{{BBn{ceig}}j}l{}{}{}{{Aj{}{{Ad{{n{ge}}}}}}}}:{{{BC`{cdi}}}{{BBn{cgie}}}{}{}{}{{Aj{}{{Ad{{n{eg}}}}}}}}88{{cg}{{AJj{ei}}}{}{}{{AIh{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{k{{BBn{cgie}}}{}{}{}{{Aj{}{{Ad{{n{eg}}}}}}}{{Ef{{BCb{cd}}}{{Ad{i}}}}}}{{{AJl{{BBn{ceig}}}}AJn}{{AK`{{Ah{k}}}}}{}{}AKb{{Aj{}{{Ad{{n{ge}}}}}}}{}}{{c{AKf{AKdegi}}}{{AKh{kegi}}}{}AKj{AKlAKn}AL`{}}{{c{AKf{AKdegi}}ALb}{{AKh{kegi}}}{}AKj{AKlAKn}AL`{}}??{{{AJl{c}}AJn}{{AK`{{Ah{n}}}}}{}}?>{{cg}{{ALf{i}}}{}{}{{AIh{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}`??:{{}{{BCd{c}}}{}}{{{BCd{c}}j}lLf}{cc{}}{ce{}{}}0:{{{AJl{{BCd{c}}}}AJn}{{AK`{{Ah{e}}}}}{AlAKb}{}}{{{BCd{c}}AJn}{{AK`{{Ah{c}}}}}{}}{{{BCd{c}}c}d{}}:9{c{{n{e}}}{}{}}09{cA`{}}59`55{{cg}{{AIf{i}}}{}{}{{AIh{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{{{BCf{c}}j}lLf}87{{{BCf{c}}}c{}}8{{cg}{{AJj{ei}}}{}{}{{AIh{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{{cBCh}{{BCf{c}}}{}}{{{AJl{{BCf{c}}}}AJn}{{AK`{{Ah{e}}}}}{D`AKb}{}}{{c{AKf{AKdegi}}}{{AKh{kegi}}}{}AKj{AKlAKn}AL`{}}{{c{AKf{AKdegi}}ALb}{{AKh{kegi}}}{}AKj{AKlAKn}AL`{}}99{{{AJl{c}}AJn}{{AK`{{Ah{n}}}}}{}}9>{{cg}{{ALf{i}}}{}{}{{AIh{}{{Cl{e}}}}}{{D`{}{{Cl{e}}}}}}{{}Gh}","D":"DLl","p":[[5,"Private",3159],[1,"unit"],[6,"Role",0],[1,"bool"],[5,"Formatter",3160],[8,"Result",3160],[6,"Result",3161],[5,"TypeId",3162],[5,"AcceptOpts",29,3163],[17,"Output"],[5,"SessionInit",2208],[6,"Option",3164],[10,"Future",3165],[10,"Send",3166],[8,"NodeId",3167],[10,"Fn",3168],[10,"Sync",3166],[5,"ActorHandle",29,3169],[5,"Engine",29],[6,"NamespaceKind",691],[5,"UserId",691],[5,"NamespaceId",691],[8,"Result",3170],[5,"CapSelector",195],[6,"AccessMode",1042,3171],[5,"DelegateTo",195],[6,"CapabilityPack",195],[5,"Vec",3172],[8,"Range3d",538],[17,"Item"],[8,"Entry",416],[10,"Stream",3173],[5,"Connection",3174],[8,"AuthorisedEntry",416],[5,"EntryForm",91],[1,"tuple"],[6,"AuthForm",91],[10,"Into",3175],[6,"SecretKey",1042],[6,"Interests",195],[8,"InterestMap",195],[10,"Storage",2830],[10,"FnOnce",3168],[5,"Endpoint",3176],[5,"Store",3177],[5,"IntentHandle",2526],[6,"EventKind",2526],[5,"Sender",3178],[6,"SubspaceForm",91],[6,"TimestampForm",91],[10,"Deserializer",3179],[6,"PayloadForm",91],[6,"EntryOrForm",91],[8,"SerdeWriteCapability",416],[8,"NamespaceId",416],[8,"Path",416],[5,"Bytes",3180],[10,"Serializer",3181],[5,"Hash",3182],[1,"u64"],[10,"Store",3183],[5,"SelectBuilder",195],[10,"IntoAreaOfInterest",195],[10,"IntoIterator",3184],[6,"AreaOfInterestSelector",195],[6,"ReceiverSelector",195],[6,"AreaSelector",195],[6,"RestrictArea",195],[5,"InvalidCapabilityPack",195],[10,"Hasher",3185],[8,"AreaOfInterest",538],[8,"McCapability",1042],[8,"Area",538],[5,"String",3186],[10,"EntryExt",416],[8,"SubspaceId",416],[5,"PayloadDigest",416],[6,"Ordering",3187],[6,"DecodeError",3188],[1,"u8"],[10,"BulkProducer",3189],[10,"BulkProducer",3190],[1,"slice"],[10,"BulkConsumer",3190],[10,"BulkConsumer",3189],[5,"UnauthorisedWriteError",416,3191],[5,"Error",3160],[6,"InvalidPathError",416,3192],[6,"InvalidPathError2",416],[5,"SerdeEntry",519],[6,"RangeEnd",538,3193],[10,"Clone",3194],[10,"Ord",3187],[5,"Range",538,3193],[5,"Point",538],[10,"Default",3195],[10,"PartialEq",3187],[10,"Eq",3187],[10,"Debug",3160],[5,"SerdeRange3d",649],[5,"SerdeAreaOfInterest",649],[10,"Hash",3185],[10,"AreaExt",538],[8,"Timestamp",416],[5,"BitSlice",3196],[10,"BitOrder",3197],[5,"NamespacePublicKey",691],[1,"array"],[5,"UserPublicKey",691],[5,"NamespaceSecretKey",691],[5,"UserSecretKey",691],[5,"NamespaceSignature",691],[5,"UserSignature",691],[1,"char"],[10,"FromIterator",3184],[5,"SigningKey",3198],[5,"VerifyingKey",3199],[5,"Signature",3200],[8,"SignatureError",3201],[1,"str"],[10,"CryptoRngCore",3202],[10,"Sized",3166],[6,"BitSpanError",3203],[5,"Error",3204],[5,"ReadAuthorisation",1042],[8,"UserId",1042],[5,"SerdeMcCapability",1137],[5,"SerdeMcSubspaceCapability",1137],[8,"McSubspaceCapability",1042],[5,"SerdeReadAuthorisation",1137],[8,"McAuthorisationToken",1042],[10,"IsCommunal",1042,3171],[8,"NamespaceId",1042],[5,"PsiGroup",1204],[5,"PsiScalar",1204],[6,"Fragment",1204],[6,"FragmentKind",1204],[6,"FragmentSet",1204],[5,"InvalidPsiGroup",1204],[5,"PaiScheme",1204],[6,"FragmentKit",1204],[8,"AreaSubspace",538],[5,"ChallengeHash",1350],[5,"AccessChallenge",1350],[6,"Channel",1403],[6,"LogicalChannel",1403],[5,"LogicalChannelIter",1403],[5,"InvalidChannelId",1403],[5,"IntoFallible",3205],[10,"Iterator",3206],[1,"usize"],[5,"Convert",3205],[5,"Fingerprint",1498],[5,"AreaOfInterestHandle",1525],[5,"IntersectionHandle",1525],[5,"CapabilityHandle",1525],[5,"StaticTokenHandle",1525],[6,"ResourceHandle",1525],[6,"HandleType",1525],[10,"IsHandle",1525],[5,"SetupBindAreaOfInterest",1675],[6,"Message",1675],[5,"LengthyEntry",1675],[5,"ReconciliationAnnounceEntries",1675],[5,"ReconciliationSendEntry",1675],[5,"ReconciliationSendPayload",1675],[5,"ReconciliationTerminatePayload",1675],[5,"DataSendEntry",1675],[5,"DataSendPayload",1675],[5,"DataSetMetadata",1675],[6,"DecodeOutcome",3054],[5,"CommitmentReveal",1675],[5,"SetupBindReadCapability",1675],[5,"SetupBindStaticToken",1675],[5,"ReconciliationSendFingerprint",1675],[5,"ControlIssueGuarantee",1675],[5,"ControlAbsolve",1675],[5,"ControlPlead",1675],[5,"ControlAnnounceDropping",1675],[5,"ControlApologise",1675],[5,"ControlFreeHandle",1675],[5,"PaiBindFragment",1675],[5,"PaiReplyFragment",1675],[5,"PaiRequestSubspaceCapability",1675],[5,"PaiReplySubspaceCapability",1675],[10,"Write",3207],[6,"ReconciliationMessage",1675],[6,"DataMessage",1675],[6,"IntersectionMessage",1675],[5,"Box",3208],[6,"Role",2208],[6,"SessionMode",2208],[6,"Scope",2208],[5,"EventSender",2208],[5,"SessionHandle",2208],[5,"ChannelSenders",2349],[6,"Error",2456],[5,"Arc",3209],[6,"SessionEvent",2208],[6,"SessionUpdate",2208],[5,"ChannelReceiverDropped",2456],[5,"Intent",2526],[5,"Chain2",3210],[10,"IntoStream",3211],[5,"LogicalChannelSenders",2349],[5,"MessageReceiver",2349],[10,"TryFrom",3175],[5,"LogicalChannelReceivers",2349],[5,"ChannelReceivers",2349],[5,"Channels",2349],[5,"Receiver",2939],[5,"Sender",2939],[5,"Merge2",3212],[5,"Pin",3213],[5,"Context",3214],[6,"Poll",3215],[10,"Unpin",3166],[6,"NotKeyed",3216],[5,"RateLimiter",3217],[5,"RatelimitedStream",3218],[10,"DirectStateStore",3216],[10,"Clock",3219],[10,"ReasonablyRealtime",3220],[10,"RateLimitingMiddleware",3221],[5,"Jitter",3222],[6,"WriteError",2939],[5,"Zip2",3223],[6,"AuthError",2651],[6,"SecretStoreError",2830],[6,"ReadError",2939],[5,"JoinError",3224],[5,"Error",3170],[10,"Error",3225],[6,"Completion",2526],[6,"IntentUpdate",2526],[5,"PollSender",3226],[5,"ReceiverStream",3227],[5,"Store",2622],[5,"Auth",2651],[5,"WatchableEntryStore",2710],[6,"OwnedCapabilityCreationError",3228],[8,"FailedDelegationError",1042],[5,"NamespaceIsNotCommunalError",3229],[8,"WriteCapability",416],[6,"EntryOrigin",2710],[6,"EntryChannel",2710],[10,"EntryStorage",2830],[8,"SessionId",2710],[5,"Receiver",3230],[5,"Store",2776],[5,"SecretStore",2776],[5,"EntryStore",2776],[5,"CapsStore",2776],[17,"Entries"],[17,"Secrets"],[17,"Payloads"],[17,"Caps"],[10,"SecretStorage",2830],[10,"CapsStorage",2830],[6,"KeyScope",2830],[5,"SplitOpts",2830],[10,"EntryReader",2830],[6,"SplitAction",2830],[17,"Reader"],[17,"Snapshot"],[8,"RangeSplit",2830],[6,"Guarantees",2939],[10,"Encoder",3054],[5,"Reader",2939],[5,"Writer",2939],[10,"Decoder",3054],[5,"Error",3231],[5,"CompactWidth",3054],[6,"Infallible",3175],[10,"Decodable",3232],[10,"RelativeDecodable",3232],[10,"Encodable",3232],[10,"RelativeEncodable",3232],[5,"GenStream",3096],[5,"Gen",3233],[8,"Co",3234],[5,"Queue",3117],[5,"Cancelable",3138],[5,"CancellationToken",3235],[8,"AuthorisationToken",416],[10,"PathExt",416],[10,"AreaOfInterestExt",538],[8,"ReadCapability",1042],[8,"WriteCapability",1042],[15,"AreaNotIncluded",1135],[15,"Selective",1341],[15,"Complete",2344],[15,"CapabilityIntersection",2615],[15,"InterestIntersection",2615],[15,"Reconciled",2615],[15,"Abort",2615],[15,"Remote",2774],[15,"Decoded",3094]],"r":[[29,3163],[30,3169],[424,3192],[441,3191],[548,3193],[550,3193],[1042,3171],[1048,3171],[2622,2710],[2624,2710]],"b":[[144,"impl-From%3CUserId%3E-for-AuthForm"],[145,"impl-From%3CSerdeMcCapability%3E-for-AuthForm"],[296,"impl-Debug-for-InvalidCapabilityPack"],[297,"impl-Display-for-InvalidCapabilityPack"],[459,"impl-Decodable-for-PayloadDigest"],[460,"impl-Decodable-for-PayloadDigest"],[464,"impl-Encodable-for-PayloadDigest"],[465,"impl-Encodable-for-PayloadDigest"],[472,"impl-Debug-for-UnauthorisedWriteError"],[473,"impl-Display-for-UnauthorisedWriteError"],[474,"impl-Debug-for-InvalidPathError"],[475,"impl-Display-for-InvalidPathError"],[476,"impl-Display-for-PayloadDigest"],[477,"impl-Debug-for-PayloadDigest"],[478,"impl-Display-for-InvalidPathError2"],[479,"impl-Debug-for-InvalidPathError2"],[573,"impl-PartialEq-for-RangeEnd%3CT%3E"],[574,"impl-PartialEq%3CT%3E-for-RangeEnd%3CT%3E"],[622,"impl-PartialOrd%3CT%3E-for-RangeEnd%3CT%3E"],[623,"impl-PartialOrd-for-RangeEnd%3CT%3E"],[728,"impl-AsRef%3C%5Bu8%5D%3E-for-UserId"],[729,"impl-AsRef%3C%5Bu8;+32%5D%3E-for-UserId"],[730,"impl-AsRef%3C%5Bu8%5D%3E-for-NamespaceId"],[731,"impl-AsRef%3C%5Bu8;+32%5D%3E-for-NamespaceId"],[780,"impl-Decodable-for-NamespaceSignature"],[781,"impl-Decodable-for-NamespaceSignature"],[782,"impl-Decodable-for-UserSignature"],[783,"impl-Decodable-for-UserSignature"],[784,"impl-Decodable-for-UserId"],[785,"impl-Decodable-for-UserId"],[786,"impl-Decodable-for-NamespaceId"],[787,"impl-Decodable-for-NamespaceId"],[802,"impl-Encodable-for-NamespacePublicKey"],[803,"impl-Encodable-for-NamespacePublicKey"],[804,"impl-Encodable-for-UserPublicKey"],[805,"impl-Encodable-for-UserPublicKey"],[806,"impl-Encodable-for-NamespaceSignature"],[807,"impl-Encodable-for-NamespaceSignature"],[808,"impl-Encodable-for-UserSignature"],[809,"impl-Encodable-for-UserSignature"],[810,"impl-Encodable-for-UserId"],[811,"impl-Encodable-for-UserId"],[812,"impl-Encodable-for-NamespaceId"],[813,"impl-Encodable-for-NamespaceId"],[847,"impl-Display-for-NamespaceSecretKey"],[848,"impl-Debug-for-NamespaceSecretKey"],[849,"impl-Debug-for-NamespacePublicKey"],[850,"impl-Display-for-NamespacePublicKey"],[851,"impl-Debug-for-UserSecretKey"],[852,"impl-Display-for-UserSecretKey"],[853,"impl-Debug-for-UserPublicKey"],[854,"impl-Display-for-UserPublicKey"],[855,"impl-Display-for-NamespaceSignature"],[856,"impl-Debug-for-NamespaceSignature"],[857,"impl-Display-for-UserSignature"],[858,"impl-Debug-for-UserSignature"],[859,"impl-Debug-for-UserId"],[860,"impl-Display-for-UserId"],[861,"impl-Display-for-NamespaceId"],[862,"impl-Debug-for-NamespaceId"],[875,"impl-From%3C%26NamespaceSecretKey%3E-for-NamespacePublicKey"],[876,"impl-From%3CNamespaceSecretKey%3E-for-NamespacePublicKey"],[877,"impl-From%3CVerifyingKey%3E-for-NamespacePublicKey"],[880,"impl-From%3C%26UserSecretKey%3E-for-UserPublicKey"],[881,"impl-From%3CUserSecretKey%3E-for-UserPublicKey"],[883,"impl-From%3CVerifyingKey%3E-for-UserPublicKey"],[888,"impl-From%3CUserSecretKey%3E-for-UserId"],[889,"impl-From%3CUserPublicKey%3E-for-UserId"],[890,"impl-From%3C%26UserPublicKey%3E-for-UserId"],[891,"impl-From%3C%5Bu8;+32%5D%3E-for-UserId"],[893,"impl-From%3C%26NamespacePublicKey%3E-for-NamespaceId"],[895,"impl-From%3CNamespacePublicKey%3E-for-NamespaceId"],[896,"impl-From%3C%5Bu8;+32%5D%3E-for-NamespaceId"],[897,"impl-From%3CNamespaceSecretKey%3E-for-NamespaceId"],[1026,"impl-NamespacePublicKey"],[1027,"impl-Verifier%3CNamespaceSignature%3E-for-NamespacePublicKey"],[1029,"impl-UserPublicKey"],[1030,"impl-Verifier%3CUserSignature%3E-for-UserPublicKey"],[1099,"impl-From%3CNamespaceSecretKey%3E-for-SecretKey"],[1100,"impl-From%3CUserSecretKey%3E-for-SecretKey"],[1253,"impl-Encodable-for-Fragment"],[1254,"impl-Encodable-for-Fragment"],[1264,"impl-Debug-for-InvalidPsiGroup"],[1265,"impl-Display-for-InvalidPsiGroup"],[1447,"impl-Display-for-InvalidChannelId"],[1448,"impl-Debug-for-InvalidChannelId"],[1593,"impl-Debug-for-HandleType"],[1594,"impl-Display-for-HandleType"],[1609,"impl-From%3CIntersectionHandle%3E-for-ResourceHandle"],[1610,"impl-From%3CStaticTokenHandle%3E-for-ResourceHandle"],[1611,"impl-From%3CCapabilityHandle%3E-for-ResourceHandle"],[1612,"impl-From%3CAreaOfInterestHandle%3E-for-ResourceHandle"],[1884,"impl-Display-for-Message"],[1885,"impl-Debug-for-Message"],[1886,"impl-Debug-for-ReconciliationMessage"],[1887,"impl-Display-for-ReconciliationMessage"],[1888,"impl-Display-for-DataMessage"],[1889,"impl-Debug-for-DataMessage"],[1890,"impl-Debug-for-IntersectionMessage"],[1891,"impl-Display-for-IntersectionMessage"],[1915,"impl-From%3CIntersectionMessage%3E-for-Message"],[1916,"impl-From%3CPaiBindFragment%3E-for-Message"],[1918,"impl-From%3CPaiReplyFragment%3E-for-Message"],[1919,"impl-From%3CReconciliationAnnounceEntries%3E-for-Message"],[1920,"impl-From%3CReconciliationSendPayload%3E-for-Message"],[1921,"impl-From%3CReconciliationMessage%3E-for-Message"],[1922,"impl-From%3CDataSendEntry%3E-for-Message"],[1923,"impl-From%3CReconciliationSendEntry%3E-for-Message"],[1924,"impl-From%3CBox%3CPaiReplySubspaceCapability%3E%3E-for-Message"],[1925,"impl-From%3CPaiRequestSubspaceCapability%3E-for-Message"],[1926,"impl-From%3CDataMessage%3E-for-Message"],[1927,"impl-From%3CControlAbsolve%3E-for-Message"],[1928,"impl-From%3CReconciliationSendFingerprint%3E-for-Message"],[1929,"impl-From%3CControlApologise%3E-for-Message"],[1930,"impl-From%3CReconciliationTerminatePayload%3E-for-Message"],[1931,"impl-From%3CControlIssueGuarantee%3E-for-Message"],[1932,"impl-From%3CSetupBindReadCapability%3E-for-Message"],[1933,"impl-From%3CControlFreeHandle%3E-for-Message"],[1934,"impl-From%3CControlAnnounceDropping%3E-for-Message"],[1935,"impl-From%3CDataSetMetadata%3E-for-Message"],[1936,"impl-From%3CSetupBindStaticToken%3E-for-Message"],[1937,"impl-From%3CCommitmentReveal%3E-for-Message"],[1938,"impl-From%3CSetupBindAreaOfInterest%3E-for-Message"],[1939,"impl-From%3CDataSendPayload%3E-for-Message"],[1940,"impl-From%3CControlPlead%3E-for-Message"],[1941,"impl-From%3CReconciliationAnnounceEntries%3E-for-ReconciliationMessage"],[1942,"impl-From%3CReconciliationSendPayload%3E-for-ReconciliationMessage"],[1943,"impl-From%3CReconciliationSendFingerprint%3E-for-ReconciliationMessage"],[1944,"impl-From%3CReconciliationTerminatePayload%3E-for-ReconciliationMessage"],[1946,"impl-From%3CReconciliationSendEntry%3E-for-ReconciliationMessage"],[1948,"impl-From%3CDataSendEntry%3E-for-DataMessage"],[1949,"impl-From%3CDataSetMetadata%3E-for-DataMessage"],[1950,"impl-From%3CDataSendPayload%3E-for-DataMessage"],[1951,"impl-From%3CPaiReplyFragment%3E-for-IntersectionMessage"],[1952,"impl-From%3CPaiBindFragment%3E-for-IntersectionMessage"],[2498,"impl-Debug-for-Error"],[2499,"impl-Display-for-Error"],[2500,"impl-Debug-for-ChannelReceiverDropped"],[2501,"impl-Display-for-ChannelReceiverDropped"],[2503,"impl-From%3CAuthError%3E-for-Error"],[2504,"impl-From%3CSecretStoreError%3E-for-Error"],[2505,"impl-From%3CError%3E-for-Error"],[2506,"impl-From%3CWriteError%3E-for-Error"],[2507,"impl-From%3CUnauthorisedWriteError%3E-for-Error"],[2508,"impl-From%3CChannelReceiverDropped%3E-for-Error"],[2509,"impl-From%3CReadError%3E-for-Error"],[2510,"impl-From%3CJoinError%3E-for-Error"],[2511,"impl-From%3CError%3E-for-Error"],[2679,"impl-Display-for-AuthError"],[2680,"impl-Debug-for-AuthError"],[2682,"impl-From%3COwnedCapabilityCreationError%3CNamespaceId%3E%3E-for-AuthError"],[2684,"impl-From%3CFailedDelegationError%3CMAX_COMPONENT_LENGTH,+MAX_COMPONENT_COUNT,+MAX_PATH_LENGTH,+UserId%3E%3E-for-AuthError"],[2685,"impl-From%3CSecretStoreError%3E-for-AuthError"],[2686,"impl-From%3CInvalidCapabilityPack%3E-for-AuthError"],[2687,"impl-From%3CNamespaceIsNotCommunalError%3CNamespaceId%3E%3E-for-AuthError"],[2688,"impl-From%3CError%3E-for-AuthError"],[2871,"impl-Debug-for-SecretStoreError"],[2872,"impl-Display-for-SecretStoreError"],[2979,"impl-Display-for-WriteError"],[2980,"impl-Debug-for-WriteError"],[2981,"impl-Debug-for-ReadError"],[2982,"impl-Display-for-ReadError"]],"c":"OjAAAAAAAAA=","e":"OzAAAAEAAPEJ4QAEAAoAEQABABQABwAdAAAAHwADACQAEgA6AAgARgAIAFAACwBfAAAAZgAAAG8AHQCRAAEAlQACAJ4AAACgABwAvgAGAMYAAADMAAIA0AAEANcABADeAE4ALwEAADIBAAA1AQAAOwEHAEQBAwBSAQAAVwEBAFoBNQCRAQAAlAEAAJkBAwCeAQAAoAEBAKMBAACvAQAAvAEAAL4BCADIAQUAzwEDANQBDQDlAQEA6QECAPABAQDzARQACQIIABMCAAAVAgUAKAICACwCEAA+AhEAUwIDAFkCAgBeAgAAZAICAGoCAABuAgUAdQIEAHsCDACJAhcAowICAKgCCwDDAgIAygIKANkChgBpAwAAbAMCAHADAgB0AwAAdgMBAHkDAwB+AwAAgAMCAIsDDgCcAwUAsQMIALwDBwDGAwEAzgMzAAQEAAAHBAsAFQQDABoECgAmBAgAMAQHADkEDwBKBAMATwQAAFEEAwBYBAEAWwQEAGEENACXBAAAmQQAAJsEBACjBFUAAQUIABIFLQBBBSMAZwUFAG8FDAB9BQAAfwUBAIMFAQCJBSIAsAUIAL4FCwDLBR8A7AUBAO8FBgD3BQEA+gUBAP4FAgACBgAABAY8AEIGAABEBgAARwYBAEoGAwBPBg4AZAYpAI8GAACRBgAAkwYAAJUGAACXBgAAmQYAAJsGAQCeBgAAoAYAAKIGAgCmBgAAqAYAAKoGAACsBgAArgYBALEGAACzBgEAtgYAALgGAAC6BgAAvAYHAMUGAADHBgAAyQYBAMwGDQDdBjcAFwcXADIHGQBOBwEAUwcHAFwHHgB8BwEAfwcaAJsHAACdBwQAuQcIAMgHAQDmBwAA7QcAAPAHFwANCJEAowgCAKsIAgCvCAIAswgdANMIEgDuCAQA/ggEAAQJVQBgCQYAbQlZAMgJCADUCQ4A5AkBAOgJAgDtCQIA8QkMAAAKDAASCgAAGAoCAB0KAgAiCioATwoBAFIKJwB7CgAAfQoJAIkKEACbCgAAnQobALwKAgDGCgsA0woCANcKGgD2CgAA+wpCAEILDgBVCwEAWAsGAGALFAB2CwEAegsIAIQLAwCJCwIAjQsSAKQLCAC0CwIAvwsAAMELAADDCwUAzAsjAPULBwAADAAAAgwCAAcMAAAKDAwAGgwEACAMAAAiDAsALwwEADYMAgA7DAcARAwDAEoMDAA="}]\ ]')); if (typeof exports !== 'undefined') exports.searchIndex = searchIndex; else if (window.initSearch) window.initSearch(searchIndex); diff --git a/pr/2616/docs/search.desc/iroh_willow/iroh_willow-desc-0-.js b/pr/2616/docs/search.desc/iroh_willow/iroh_willow-desc-0-.js index 858cf62169..6f45b1c161 100644 --- a/pr/2616/docs/search.desc/iroh_willow/iroh_willow-desc-0-.js +++ b/pr/2616/docs/search.desc/iroh_willow/iroh_willow-desc-0-.js @@ -1 +1 @@ -searchState.loadedDescShard("iroh_willow", 0, "Implementation of willow\nThe peer that initiated the synchronisation session.\nThe peer that accepted the synchronisation session.\nTo break symmetry, we refer to the peer that initiated the …\nStructs that allow constructing entries and other structs …\nReturns the argument unchanged.\nCalls U::from(self).\nVarious utilities and data structures used in this crate.\nCustomize what to do with incoming connections.\nRegisters a callback to determine the fate of incoming …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nRegisters an event channel for events from accepted …\nUse any available capability which covers the entry and …\nSelect which capability to use for authenticating a new …\nImport data from the provided bytes and set as payload.\nCreates an entry while setting some fields automatically.\nEither a Entry or a EntryForm.\nUse the provided [WriteCapability].\nSet the subspace to the provided SubspaceId.\nSet the timestamp to the provided value.\nImport data from a file on the node’s local file system …\nSet the payload hash directly. The blob must exist in the …\nSet the timestamp to the current system time.\nSources where payload data can come from.\nImport data from a AsyncRead and set as payload.\nImport data from a Stream of bytes and set as payload.\nSet the subspace either to a provided SubspaceId, or use …\nSet the timestamp either to the provided Timestamp or to …\nSet the subspace to the UserId of the user authenticating …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCreates a new EntryForm where the subspace is set to the …\nGet the user id of the user who is the receiver of the …\nThe receiver may be any user for which we have a secret …\nSelector for the area to which a capability must grant …\nSelector for a capability.\nA serializable capability.\nUse any capability that covers the provided area.\nUse any capability that covers the provided point (i.e. …\nThe receiver must be the provided user.\nA read authorisation.\nSelect the receiver for a capability.\nUse the capability which covers the biggest area.\nA write authorisation.\nSelect a capability which authorises writing the provided …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nSelect the area to which the capability grants access.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nChecks if the provided capability is matched by this …\nChecks whether the provided Area is matched by this …\nThe namespace to which the capability must grant access.\nCreates a new CapSelector.\nSelect the user who may use the capability.\nCreates a CapSelector which selects the widest capability …\nCreates a CapSelector which selects the widest capability …\nThe ALPN protocol name for iroh-willow.\nQUIC application error code for closing connections …\nQUIC application error code for closing with failure.\nQUIC application error code for graceful connection …\nQUIC application error code when closing connection …\nPublic-key crypto types for willow\nPrimitives for Private Area Intersection\nAn entry in a willow store.\nSee willow_data_model::Component.\nOne of the path’s component is too large.\nThe byte length of a PayloadDigest.\nAn entry in a willow store.\nExtension methods for Entry.\nAn error arising from trying to construct a invalid Path …\nAn error arising from trying to construct a invalid Path …\nA natural number for limiting the number of path …\nA natural number for limiting the length of path …\nA natural number max_path_length for limiting the overall …\nA type for identifying namespaces.\nSee willow_data_model::Path.\nExtension methods for Path.\nThe path’s total length in bytes is too large.\nThe path’s total length in bytes is too large.\nA payload digest used in entries.\nThe capability type needed to authorize writes (serde …\nA type for identifying subspaces.\nA Timestamp is a 64-bit unsigned integer, that is, a …\nThe path has too many components.\nThe path has too many components.\nAn error indicating an AuthorisationToken does not …\nThe capability type needed to authorize writes.\nReturns a tuple of namespace, subspace and path.\nCertifies that an Entry may be written.\nDecodes an entry from a bytestring.\nEncodes the entry into a bytestring.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a new path from a slice of bytes.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nProves that the [willow_data_model::Entry] was created by …\nEntry wrapper that can be serialized with serde.\nReturns the argument unchanged.\nCalls U::from(self).\nA value that signals that an [Area] includes Entries with …\nSee willow_data_model::grouping::Area.\nExtension methods for Area.\nSee willow_data_model::grouping::AreaOfInterest.\nExtension methods for AreaOfInterest.\nSee willow_data_model::grouping::AreaSubspace.\nA closed range consists of a start value and an end_value.\nA concrete [SubspaceId].\nAn open range consists only of a start value.\nA single point in the 3D range space.\nOne-dimensional grouping over a type of value.\nSee willow_data_model::grouping::Range3d.\nDetermines whether a Range is closed or open.\nTo be included in this [AreaOfInterest], an [crate::Entry] …\nA range includes all values strictly less than its end …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreate a new range which includes everything.\nReturn if the RangeEnd is greater than the given value.\nReturn whether a given value is included by the Range or …\nReturns true if the area contains point.\nReturns true if other range is fully included in this Range…\nCreate the intersection between this Range and another …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nTo be included in this AreaOfInterest, an Entry’s …\nThe total payload_lengths of all included Entries is at …\nConstruct a range.\nConstruct a new closed range from a start and end_value, …\nConstruct a new open range from a start value.\nCreates a new area with path as prefix and no constraints …\nA range includes all values greater than or equal to its …\nConverts the area into a Range3d.\nCreates a new area of interest with the specified area and …\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCommunal namespace, needs […\nLength of the byte encoding of Self.\nLength of the byte encoding of Self.\nLength of the byte encoding of Self.\nLength of the byte encoding of Self.\nLength of the byte encoding of Self.\nLength of the byte encoding of Self.\nLength of the byte encoding of Self.\nLength of the byte encoding of Self.\nNamespacePublicKey in bytes\nThe type of the namespace, either communal or owned.\nThe corresponding public key for a `NamespaceSecretKey.\nNamespace secret key.\nThe signature obtained by signing a message with a …\nOwned namespace, needs [super::meadowcap::OwnedCapability] …\nUserPublicKey in bytes\nThe corresponding public key for a `UserSecretKey.\nUser secret key.\nThe signature obtained by signing a message with a …\nGet this NamespaceId as a byte slice.\nGet this UserId as a byte slice.\nConvert to byte slice.\nConvert to byte slice.\nConvert to a base32 string limited to the first 10 bytes …\nConvert to a base32 string limited to the first 10 bytes …\nConvert to a base32 string limited to the first 10 bytes …\nConvert to a base32 string limited to the first 10 bytes …\nConvert to a base32 string limited to the first 10 bytes …\nConvert to a base32 string limited to the first 10 bytes …\nConvert to a base32 string limited to the first 10 bytes …\nConvert to a base32 string limited to the first 10 bytes …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreate a `NamespaceSecretKey from a byte array.\nCreate from a slice of bytes.\nCreate from a byte slice.\nCreate from a slice of bytes.\nCreate from a byte array.\nCreate from a byte array.\nCreate from a byte array.\nCreate from a byte array.\nCreate a new, random [NamespaceSecretKey] with an encoded […\nCreate a new UserSecretKey with a random key.\nGet the NamespaceId for this namespace.\nConvert into a NamespaceId.\nGet the UserId for this author.\nConvert into a UserId.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nConvert into UserPublicKey.\nConvert into NamespacePublicKey.\nWhether this is the key for a communal namespace.\nGet the NamespacePublicKey for this namespace.\nGet the UserPublicKey for this author.\nSign a message with this `NamespaceSecretKey key.\nSign a message with this UserSecretKey key.\nConvert into a byte array.\nConvert into a byte array.\nConvert into a byte array.\nConvert into a byte array.\nConvert into a byte array.\nConvert into a byte array.\nStrictly verify a signature on a message with this `…\nVerify that a signature matches the msg bytes and was …\nStrictly verify a signature on a message with this …\nVerify that a signature matches the msg bytes and was …\nA mode granting read or write access to some Area.\nThe granted area of the capability we tried to delegate …\nRepresents an authorisation to read an area of data in a …\nThe given secret did not correspond to the receiver of the …\nCertifies that an Entry may be written.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns true if self covers a larger area than other, or …\nProves that the [willow_data_model::Entry] was created by …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nThe maximum payload size limits when the other peer may …\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nLogical channel for controlling the binding of new …\nLogical channel for controlling the binding of new …\nLogical channel for transmitting Entries and Payloads …\nLogical channel for controlling the binding of new …\nThe different logical channels employed by the WGPS.\nAn iterator over the variants of LogicalChannel\nLogical channel for performing 3d range-based set …\nLogical channel for controlling the binding of new …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nConvert an iterator of anything into FallibleIterator by …\nConvert an iterator of Results into FallibleIterator by …\nReturns the argument unchanged.\nCalls U::from(self).\nResource handle for [AreaOfInterest]s that peers wish to …\nResource handle for [ReadCapability] that certify access …\nThe different resource handles employed by the WGPS.\nResource handle for the private set intersection part of …\nResource handle that controls the matching from Payload …\nResource handle for [StaticToken]s that peers need to …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nComplete the commitment scheme to determine the challenge …\nAllow the other peer to reduce its total buffer capacity …\nThe server notifies the client that it has started …\nThe client notifies the server that it can stop dropping …\nAsk the other peer to free a resource handle.\nMake a binding promise of available buffer capacity to the …\nAsk the other peer to send an ControlAbsolve message such …\nTransmit an AuthorisedEntry to the other peer, and …\nTransmit some transformed Payload bytes.\nExpress preferences for Payload transfer in the …\nAn Entry together with information about how much of its …\nBind data to an IntersectionHandle for performing private …\nFinalise private set intersection for a single item.\nSend a previously requested SubspaceCapability.\nAsk the receiver to send a SubspaceCapability.\nWhereas write access control is baked into the Willow data …\nPrepare transmission of the LengthyEntries a peer has in a …\nTransmit a LengthyEntry as part of 3d range-based set …\nSend a Fingerprint as part of 3d range-based set …\nTransmit some transformed Payload bytes.\nIndicate that no more bytes will be transmitted for the …\nBind an AreaOfInterest to an AreaOfInterestHandle.\nBind a ReadCapability to a CapabilityHandle.\nBind a StaticToken to a StaticTokenHandle.\nWhenever a peer is granted a complete read capability of …\nAn AreaOfInterest that the peer wishes to reference in …\nA CapabilityHandle bound by the sender that grants access …\nThe number of consecutive bytes from the start of the …\nA ReadCapability that the peer wishes to reference in …\nA SubspaceCapability whose granted namespace corresponds …\nThe number of Entries the sender has in the range.\nIf this message is the last of a set of messages that …\nIf this message is the last of a set of messages that …\nThe dynamic part of the entry’s AuthorisationToken.\nThe DynamicToken of the Entry to transmit.\nThe Entry in question.\nThe LengthyEntry itself.\nThe Entry to transmit.\nThe Fingerprint of the range, that is, of all …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nThe result of first applying hash_into_group to some …\nThe result of performing scalar multiplication between the …\nThe IntersectionHandle, bound by the sender, of the …\nThe IntersectionHandle of the PaiBindFragment message …\nThe IntersectionHandle bound by the sender for the …\nThe handle of the PaiRequestSubspaceCapability message …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nSet to true if the private set intersection item is a …\nThe nonce of the sender, encoded as a big-endian unsigned …\nThe offset in the Payload in bytes at which Payload …\nThe 3dRange whose Fingerprint is transmitted.\nThe 3dRange whose LengthyEntries to transmit.\nAn AreaOfInterestHandle, bound by the receiver of this …\nAn AreaOfInterestHandle, bound by the receiver of this …\nAn AreaOfInterestHandle, bound by the sender of this …\nAn AreaOfInterestHandle, bound by the sender of this …\nThe SyncSignature issued by the Receiver of the capability …\nThe SyncSubspaceSignature issued by the receiver of the …\nThe StaticToken to bind.\nA StaticTokenHandle, bound by the sender of this message, …\nA StaticTokenHandle bound to the StaticToken of the Entry …\nA boolean flag to indicate whether the sender wishes to …\nWhether the sender promises to send the Entries in the …\nThe peer that initiated the synchronisation session.\nThe peer that accepted the synchronisation session.\nRun reconciliations and data mode, until intentionally …\nResources bound by ourselves.\nRun a single, full reconciliation, and then quit.\nTo break symmetry, we refer to the peer that initiated the …\nThe bind scope for resources.\nOptions to initialize a session with.\nResources bound by the other peer.\nFinish the session gracefully.\nWait for the session to finish.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nList of interests we wish to synchronize, together with …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns true if we initiated the session.\nReturns true if we accepted the session.\nSubmit a new synchronisation intent.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nAll interests were reconciled.\nA synchronisation intent.\nHandle to a Intent.\nNo interests were reconciled.\nSome interests were reconciled.\nSubmit new synchronisation interests into the session.\nClose the intent.\nWait for the intent to be completed.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCreate a new intent with associated handle.\nCreate a new detached intent.\nAbort the intent.\nSplit the IntentHandle into a update sink and event stream.\nConvert the form into an Entry by filling the fields with …\nReturns the argument unchanged.\nCalls U::from(self).\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nThe entry is inserted locally.\nThe entry was received from a peer.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nIngest a new entry.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns a store reader.\nReturns a store snapshot.\nSetup a new subscription, identified by session_id.\nRemove a subscription.\nAdd an area to the list of watched areas for a …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nUp to how many values to send immediately, before sending …\nk in the protocol, how many splits to generate. at least 2\nTraits for encoding and decoding values to and from bytes.\nIncrement a fixed-length byte string by one, by …\nA simple asynchronous queue.\nAsynchronous reader to read bytes from a channel.\nAsynchronous writer to write bytes into a channel.\nAdd guarantees available for sending messages.\nClose the channel.\nClose the channel.\nClose the channel.\nClose the channel.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreate a new channel with a byte Writer on the transmit …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nGet the maximum buffer size of the channel.\nCreate a new channel with a message Sender on the transmit …\nRead a chunk of bytes from the channel.\nReceive the next message from the channel.\nSend a message into the channel.\nThe outcome of Decoder::decode_from\nDecoded a value.\nTrait for decoding values from bytes.\nTrait for encoding values into bytes.\nNot enough data to decode the value.\nDecode Self from a byte slice.\nEncode Self into a vector of bytes.\nEncode Self into a writable buffer which implements …\nReturns the length (in bytes) of the encoded value.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nThe number of bytes used for decoding the value.\nThe decoded value.\nWraps a Gen into a Stream.\nReturns the argument unchanged.\nCalls U::from(self).\nA simple unbounded FIFO queue.\nReturns the argument unchanged.\nCalls U::from(self).\nAttempt to pop the next item from the front of the queue.\nPush a new item to the back of the queue.\nWrapper around Stream that takes a cancel token to cancel …\nReturns the argument unchanged.\nCalls U::from(self).\nReturns the current system time in microseconds since …") \ No newline at end of file +searchState.loadedDescShard("iroh_willow", 0, "Implementation of willow\nThe peer that initiated the synchronisation session.\nThe peer that accepted the synchronisation session.\nTo break symmetry, we refer to the peer that initiated the …\nStructs that allow constructing entries and other structs …\nReturns the argument unchanged.\nCalls U::from(self).\nVarious utilities and data structures used in this crate.\nCustomize what to do with incoming connections.\nRegisters a callback to determine the fate of incoming …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nRegisters an event channel for events from accepted …\nUse any available capability which covers the entry and …\nSelect which capability to use for authenticating a new …\nImport data from the provided bytes and set as payload.\nCreates an entry while setting some fields automatically.\nEither a Entry or a EntryForm.\nUse the provided [WriteCapability].\nSet the subspace to the provided SubspaceId.\nSet the timestamp to the provided value.\nImport data from a file on the node’s local file system …\nSet the payload hash directly. The blob must exist in the …\nSet the timestamp to the current system time.\nSources where payload data can come from.\nImport data from a AsyncRead and set as payload.\nImport data from a Stream of bytes and set as payload.\nSet the subspace either to a provided SubspaceId, or use …\nSet the timestamp either to the provided Timestamp or to …\nSet the subspace to the UserId of the user authenticating …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCreates a new EntryForm where the subspace is set to the …\nGet the user id of the user who is the receiver of the …\nThe receiver may be any user for which we have a secret …\nSelector for the area to which a capability must grant …\nSelector for a capability.\nA serializable capability.\nUse any capability that covers the provided area.\nUse any capability that covers the provided point (i.e. …\nThe receiver must be the provided user.\nA read authorisation.\nSelect the receiver for a capability.\nUse the capability which covers the biggest area.\nA write authorisation.\nSelect a capability which authorises writing the provided …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nSelect the area to which the capability grants access.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nChecks if the provided capability is matched by this …\nChecks whether the provided Area is matched by this …\nThe namespace to which the capability must grant access.\nCreates a new CapSelector.\nSelect the user who may use the capability.\nCreates a CapSelector which selects the widest capability …\nCreates a CapSelector which selects the widest capability …\nThe ALPN protocol name for iroh-willow.\nQUIC application error code for closing connections …\nQUIC application error code for closing with failure.\nQUIC application error code for graceful connection …\nQUIC application error code when closing connection …\nPublic-key crypto types for willow\nPrimitives for Private Area Intersection\nAn entry in a willow store.\nSee willow_data_model::Component.\nOne of the path’s component is too large.\nThe byte length of a PayloadDigest.\nAn entry in a willow store.\nExtension methods for Entry.\nAn error arising from trying to construct a invalid Path …\nAn error arising from trying to construct a invalid Path …\nA natural number for limiting the number of path …\nA natural number for limiting the length of path …\nA natural number max_path_length for limiting the overall …\nA type for identifying namespaces.\nSee willow_data_model::Path.\nExtension methods for Path.\nThe path’s total length in bytes is too large.\nThe path’s total length in bytes is too large.\nA payload digest used in entries.\nThe capability type needed to authorize writes (serde …\nA type for identifying subspaces.\nA Timestamp is a 64-bit unsigned integer, that is, a …\nThe path has too many components.\nThe path has too many components.\nAn error indicating an AuthorisationToken does not …\nThe capability type needed to authorize writes.\nReturns a tuple of namespace, subspace and path.\nCertifies that an Entry may be written.\nDecodes an entry from a bytestring.\nEncodes the entry into a bytestring.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreates a new path from a slice of bytes.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nProves that the [willow_data_model::Entry] was created by …\nEntry wrapper that can be serialized with serde.\nReturns the argument unchanged.\nCalls U::from(self).\nA value that signals that an [Area] includes Entries with …\nSee willow_data_model::grouping::Area.\nExtension methods for Area.\nSee willow_data_model::grouping::AreaOfInterest.\nExtension methods for AreaOfInterest.\nSee willow_data_model::grouping::AreaSubspace.\nA closed range consists of a start value and an end_value.\nA concrete [SubspaceId].\nAn open range consists only of a start value.\nA single point in the 3D range space.\nOne-dimensional grouping over a type of value.\nSee willow_data_model::grouping::Range3d.\nDetermines whether a Range is closed or open.\nTo be included in this [AreaOfInterest], an [crate::Entry] …\nA range includes all values strictly less than its end …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreate a new range which includes everything.\nReturn if the RangeEnd is greater than the given value.\nReturn whether a given value is included by the Range or …\nReturns true if the area contains point.\nReturns true if other range is fully included in this Range…\nCreate the intersection between this Range and another …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nTo be included in this AreaOfInterest, an Entry’s …\nThe total payload_lengths of all included Entries is at …\nConstruct a range.\nConstruct a new closed range from a start and end_value, …\nConstruct a new open range from a start value.\nCreates a new area with path as prefix and no constraints …\nA range includes all values greater than or equal to its …\nConverts the area into a Range3d.\nCreates a new area of interest with the specified area and …\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCommunal namespace, needs […\nLength of the byte encoding of Self.\nLength of the byte encoding of Self.\nLength of the byte encoding of Self.\nLength of the byte encoding of Self.\nLength of the byte encoding of Self.\nLength of the byte encoding of Self.\nLength of the byte encoding of Self.\nLength of the byte encoding of Self.\nNamespacePublicKey in bytes\nThe type of the namespace, either communal or owned.\nThe corresponding public key for a `NamespaceSecretKey.\nNamespace secret key.\nThe signature obtained by signing a message with a …\nOwned namespace, needs [super::meadowcap::OwnedCapability] …\nUserPublicKey in bytes\nThe corresponding public key for a `UserSecretKey.\nUser secret key.\nThe signature obtained by signing a message with a …\nGet this NamespaceId as a byte slice.\nGet this UserId as a byte slice.\nConvert to byte slice.\nConvert to byte slice.\nConvert to a base32 string limited to the first 10 bytes …\nConvert to a base32 string limited to the first 10 bytes …\nConvert to a base32 string limited to the first 10 bytes …\nConvert to a base32 string limited to the first 10 bytes …\nConvert to a base32 string limited to the first 10 bytes …\nConvert to a base32 string limited to the first 10 bytes …\nConvert to a base32 string limited to the first 10 bytes …\nConvert to a base32 string limited to the first 10 bytes …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreate a `NamespaceSecretKey from a byte array.\nCreate from a slice of bytes.\nCreate from a byte slice.\nCreate from a slice of bytes.\nCreate from a byte array.\nCreate from a byte array.\nCreate from a byte array.\nCreate from a byte array.\nCreate a new, random [NamespaceSecretKey] with an encoded […\nCreate a new UserSecretKey with a random key.\nGet the NamespaceId for this namespace.\nConvert into a NamespaceId.\nGet the UserId for this author.\nConvert into a UserId.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nConvert into UserPublicKey.\nConvert into NamespacePublicKey.\nGet the NamespacePublicKey for this namespace.\nGet the UserPublicKey for this author.\nSign a message with this `NamespaceSecretKey key.\nSign a message with this UserSecretKey key.\nConvert into a byte array.\nConvert into a byte array.\nConvert into a byte array.\nConvert into a byte array.\nConvert into a byte array.\nConvert into a byte array.\nStrictly verify a signature on a message with this `…\nVerify that a signature matches the msg bytes and was …\nStrictly verify a signature on a message with this …\nVerify that a signature matches the msg bytes and was …\nA mode granting read or write access to some Area.\nThe granted area of the capability we tried to delegate …\nMaps namespace public keys to booleans, determining …\nRepresents an authorisation to read an area of data in a …\nThe given secret did not correspond to the receiver of the …\nCertifies that an Entry may be written.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns true if self covers a larger area than other, or …\nProves that the [willow_data_model::Entry] was created by …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nThe maximum payload size limits when the other peer may …\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nLogical channel for controlling the binding of new …\nLogical channel for controlling the binding of new …\nLogical channel for transmitting Entries and Payloads …\nLogical channel for controlling the binding of new …\nThe different logical channels employed by the WGPS.\nAn iterator over the variants of LogicalChannel\nLogical channel for performing 3d range-based set …\nLogical channel for controlling the binding of new …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nConvert an iterator of anything into FallibleIterator by …\nConvert an iterator of Results into FallibleIterator by …\nReturns the argument unchanged.\nCalls U::from(self).\nResource handle for [AreaOfInterest]s that peers wish to …\nResource handle for [ReadCapability] that certify access …\nThe different resource handles employed by the WGPS.\nResource handle for the private set intersection part of …\nResource handle that controls the matching from Payload …\nResource handle for [StaticToken]s that peers need to …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nComplete the commitment scheme to determine the challenge …\nAllow the other peer to reduce its total buffer capacity …\nThe server notifies the client that it has started …\nThe client notifies the server that it can stop dropping …\nAsk the other peer to free a resource handle.\nMake a binding promise of available buffer capacity to the …\nAsk the other peer to send an ControlAbsolve message such …\nTransmit an AuthorisedEntry to the other peer, and …\nTransmit some transformed Payload bytes.\nExpress preferences for Payload transfer in the …\nAn Entry together with information about how much of its …\nBind data to an IntersectionHandle for performing private …\nFinalise private set intersection for a single item.\nSend a previously requested SubspaceCapability.\nAsk the receiver to send a SubspaceCapability.\nWhereas write access control is baked into the Willow data …\nPrepare transmission of the LengthyEntries a peer has in a …\nTransmit a LengthyEntry as part of 3d range-based set …\nSend a Fingerprint as part of 3d range-based set …\nTransmit some transformed Payload bytes.\nIndicate that no more bytes will be transmitted for the …\nBind an AreaOfInterest to an AreaOfInterestHandle.\nBind a ReadCapability to a CapabilityHandle.\nBind a StaticToken to a StaticTokenHandle.\nWhenever a peer is granted a complete read capability of …\nAn AreaOfInterest that the peer wishes to reference in …\nA CapabilityHandle bound by the sender that grants access …\nThe number of consecutive bytes from the start of the …\nA ReadCapability that the peer wishes to reference in …\nA SubspaceCapability whose granted namespace corresponds …\nThe number of Entries the sender has in the range.\nIf this message is the last of a set of messages that …\nIf this message is the last of a set of messages that …\nThe dynamic part of the entry’s AuthorisationToken.\nThe DynamicToken of the Entry to transmit.\nThe Entry in question.\nThe LengthyEntry itself.\nThe Entry to transmit.\nThe Fingerprint of the range, that is, of all …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nThe result of first applying hash_into_group to some …\nThe result of performing scalar multiplication between the …\nThe IntersectionHandle, bound by the sender, of the …\nThe IntersectionHandle of the PaiBindFragment message …\nThe IntersectionHandle bound by the sender for the …\nThe handle of the PaiRequestSubspaceCapability message …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nSet to true if the private set intersection item is a …\nThe nonce of the sender, encoded as a big-endian unsigned …\nThe offset in the Payload in bytes at which Payload …\nThe 3dRange whose Fingerprint is transmitted.\nThe 3dRange whose LengthyEntries to transmit.\nAn AreaOfInterestHandle, bound by the receiver of this …\nAn AreaOfInterestHandle, bound by the receiver of this …\nAn AreaOfInterestHandle, bound by the sender of this …\nAn AreaOfInterestHandle, bound by the sender of this …\nThe SyncSignature issued by the Receiver of the capability …\nThe SyncSubspaceSignature issued by the receiver of the …\nThe StaticToken to bind.\nA StaticTokenHandle, bound by the sender of this message, …\nA StaticTokenHandle bound to the StaticToken of the Entry …\nA boolean flag to indicate whether the sender wishes to …\nWhether the sender promises to send the Entries in the …\nThe peer that initiated the synchronisation session.\nThe peer that accepted the synchronisation session.\nRun reconciliations and data mode, until intentionally …\nResources bound by ourselves.\nRun a single, full reconciliation, and then quit.\nTo break symmetry, we refer to the peer that initiated the …\nThe bind scope for resources.\nOptions to initialize a session with.\nResources bound by the other peer.\nFinish the session gracefully.\nWait for the session to finish.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nList of interests we wish to synchronize, together with …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns true if we initiated the session.\nReturns true if we accepted the session.\nSubmit a new synchronisation intent.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nAll interests were reconciled.\nA synchronisation intent.\nHandle to a Intent.\nNo interests were reconciled.\nSome interests were reconciled.\nSubmit new synchronisation interests into the session.\nClose the intent.\nWait for the intent to be completed.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCreate a new intent with associated handle.\nCreate a new detached intent.\nAbort the intent.\nSplit the IntentHandle into a update sink and event stream.\nConvert the form into an Entry by filling the fields with …\nReturns the argument unchanged.\nCalls U::from(self).\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nThe entry is inserted locally.\nThe entry was received from a peer.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nIngest a new entry.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns a store reader.\nReturns a store snapshot.\nSetup a new subscription, identified by session_id.\nRemove a subscription.\nAdd an area to the list of watched areas for a …\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nUp to how many values to send immediately, before sending …\nk in the protocol, how many splits to generate. at least 2\nTraits for encoding and decoding values to and from bytes.\nIncrement a fixed-length byte string by one, by …\nA simple asynchronous queue.\nAsynchronous reader to read bytes from a channel.\nAsynchronous writer to write bytes into a channel.\nAdd guarantees available for sending messages.\nClose the channel.\nClose the channel.\nClose the channel.\nClose the channel.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCreate a new channel with a byte Writer on the transmit …\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nCalls U::from(self).\nGet the maximum buffer size of the channel.\nCreate a new channel with a message Sender on the transmit …\nRead a chunk of bytes from the channel.\nReceive the next message from the channel.\nSend a message into the channel.\nThe outcome of Decoder::decode_from\nDecoded a value.\nTrait for decoding values from bytes.\nTrait for encoding values into bytes.\nNot enough data to decode the value.\nDecode Self from a byte slice.\nEncode Self into a vector of bytes.\nEncode Self into a writable buffer which implements …\nReturns the length (in bytes) of the encoded value.\nReturns the argument unchanged.\nReturns the argument unchanged.\nCalls U::from(self).\nCalls U::from(self).\nThe number of bytes used for decoding the value.\nThe decoded value.\nWraps a Gen into a Stream.\nReturns the argument unchanged.\nCalls U::from(self).\nA simple unbounded FIFO queue.\nReturns the argument unchanged.\nCalls U::from(self).\nAttempt to pop the next item from the front of the queue.\nPush a new item to the back of the queue.\nWrapper around Stream that takes a cancel token to cancel …\nReturns the argument unchanged.\nCalls U::from(self).\nReturns the current system time in microseconds since …") \ No newline at end of file diff --git a/pr/2616/docs/settings.html b/pr/2616/docs/settings.html index bf71602add..dcb803baf3 100644 --- a/pr/2616/docs/settings.html +++ b/pr/2616/docs/settings.html @@ -1 +1 @@ -Settings

    Rustdoc settings

    Back
    \ No newline at end of file +Settings

    Rustdoc settings

    Back
    \ No newline at end of file diff --git a/pr/2616/docs/src/iroh_willow/proto/keys.rs.html b/pr/2616/docs/src/iroh_willow/proto/keys.rs.html index 7f74eee134..c54bfec3c3 100644 --- a/pr/2616/docs/src/iroh_willow/proto/keys.rs.html +++ b/pr/2616/docs/src/iroh_willow/proto/keys.rs.html @@ -789,6 +789,7 @@ 789 790 791 +792
    //! Public-key crypto types for willow
     //!
     //! This modules defines types which are wrappers around [`ed25519_dalek`] public-key crypto types.
    @@ -804,6 +805,8 @@
     use rand_core::CryptoRngCore;
     use serde::{Deserialize, Serialize};
     
    +use super::meadowcap::IsCommunal;
    +
     pub const PUBLIC_KEY_LENGTH: usize = ed25519_dalek::PUBLIC_KEY_LENGTH;
     pub const SECRET_KEY_LENGTH: usize = ed25519_dalek::SECRET_KEY_LENGTH;
     pub const SIGNATURE_LENGTH: usize = ed25519_dalek::SIGNATURE_LENGTH;
    @@ -836,13 +839,17 @@
         };
     }
     
    -/// Returns `true` if the last bit of a byte slice is 1, which defines a communal namespace in this
    -/// willow implementation.
    -fn is_communal(pubkey_bytes: &[u8; 32]) -> bool {
    -    let last = pubkey_bytes.last().expect("pubkey is not empty");
    -    // Check if last bit is 1.
    -    (*last & 0x1) == 0x1
    -}
    +impl IsCommunal for NamespaceId {
    +    fn is_communal(&self) -> bool {
    +        self.as_bytes()[31] == 0
    +    }
    +}
    +
    +impl IsCommunal for NamespacePublicKey{
    +    fn is_communal(&self) -> bool {
    +        self.id().is_communal()
    +    }
    +}
     
     /// The type of the namespace, either communal or owned.
     ///
    @@ -912,11 +919,6 @@
     bytestring!(NamespacePublicKey, PUBLIC_KEY_LENGTH);
     
     impl NamespacePublicKey {
    -    /// Whether this is the key for a communal namespace.
    -    pub fn is_communal(&self) -> bool {
    -        is_communal(self.as_bytes())
    -    }
    -
         pub fn kind(&self) -> NamespaceKind {
             if self.is_communal() {
                 NamespaceKind::Communal
    diff --git a/pr/2616/docs/src/iroh_willow/proto/meadowcap.rs.html b/pr/2616/docs/src/iroh_willow/proto/meadowcap.rs.html
    index e8679ddbbc..21c9e70a8d 100644
    --- a/pr/2616/docs/src/iroh_willow/proto/meadowcap.rs.html
    +++ b/pr/2616/docs/src/iroh_willow/proto/meadowcap.rs.html
    @@ -211,12 +211,6 @@
     211
     212
     213
    -214
    -215
    -216
    -217
    -218
    -219
     

    use super::{
         grouping::Area,
         keys::{self, NamespaceSecretKey, UserSecretKey},
    @@ -234,7 +228,7 @@
     
     use super::data_model::{Entry, MAX_COMPONENT_COUNT, MAX_COMPONENT_LENGTH, MAX_PATH_LENGTH};
     
    -pub use meadowcap::AccessMode;
    +pub use meadowcap::{AccessMode, IsCommunal};
     
     #[derive(Debug, derive_more::From)]
     pub enum SecretKey {
    @@ -273,12 +267,6 @@
         keys::UserSignature,
     >;
     
    -impl meadowcap::IsCommunal for NamespaceId {
    -    fn is_communal(&self) -> bool {
    -        self.as_bytes()[31] == 0
    -    }
    -}
    -
     pub fn is_authorised_write(entry: &Entry, token: &McAuthorisationToken) -> bool {
         token.is_authorised_write(entry)
     }
    diff --git a/pr/2616/docs/trait.impl/core/convert/trait.From.js b/pr/2616/docs/trait.impl/core/convert/trait.From.js
    index 13b0f063bc..a215cd4bc1 100644
    --- a/pr/2616/docs/trait.impl/core/convert/trait.From.js
    +++ b/pr/2616/docs/trait.impl/core/convert/trait.From.js
    @@ -5,5 +5,5 @@
     "iroh_docs":[["impl From<&Author> for AuthorPublicKey"],["impl From<&AuthorPublicKey> for AuthorId"],["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecret> for NamespacePublicKey"],["impl From<&[u8; 32]> for AuthorId"],["impl From<&[u8; 32]> for NamespaceId"],["impl From<CapabilityKind> for u8"],["impl From<ValidationFailure> for InsertError"],["impl From<Error> for OpenError"],["impl From<QueryBuilder<FlatQuery>> for Query"],["impl From<QueryBuilder<SingleLatestPerKeyQuery>> for Query"],["impl From<Author> for AuthorId"],["impl From<Author> for AuthorPublicKey"],["impl From<AuthorId> for AuthorFilter"],["impl From<AuthorId> for [u8; 32]"],["impl From<AuthorPublicKey> for AuthorId"],["impl From<NamespaceId> for Capability"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecret> for Capability"],["impl From<NamespaceSecret> for NamespaceId"],["impl From<NamespaceSecret> for NamespacePublicKey"],["impl From<ReadOnly> for InsertError"],["impl From<SignedEntry> for Entry"],["impl From<SigningKey> for Author"],["impl From<SigningKey> for NamespaceSecret"],["impl From<VerifyingKey> for AuthorPublicKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<[u8; 32]> for AuthorId"],["impl From<[u8; 32]> for NamespaceId"],["impl<T: AsRef<[u8]>> From<T> for KeyFilter"]],
     "iroh_gossip":[["impl From<Event<PublicKey>> for GossipEvent"],["impl<T: Into<[u8; 32]>> From<T> for TopicId"]],
     "iroh_net":[["impl From<&NodeInfo> for TxtAttrs<IrohAttr>"],["impl From<&TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<&Peer> for DiscoveryItem"],["impl From<IpAddr> for IpFamily"],["impl From<IpFamily> for Domain"],["impl From<Error> for ClientError"],["impl From<Error> for PingError"],["impl From<NodeInfo> for AddrInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<TxtAttrs<IrohAttr>> for NodeInfo"],["impl From<NodeInfo> for NodeAddr"],["impl From<ParseError> for Error"],["impl From<VerificationError> for Error"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for ClientError"],["impl From<Error> for GenError"],["impl From<Error> for ParseError"],["impl From<Error> for VerificationError"],["impl From<JoinError> for ClientError"],["impl From<SurgeError> for PingError"],["impl From<UdpSocket> for UdpSocket"],["impl<T> From<JoinHandle<T>> for AbortingJoinHandle<T>"],["impl<T> From<T> for ConcurrentDiscovery
    where\n T: IntoIterator<Item = Box<dyn Discovery>>,
    "],["impl<T: Clone + Send + 'static> From<JoinHandle<T>> for SharedAbortingJoinHandle<T>"]], -"iroh_willow":[["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecretKey> for NamespacePublicKey"],["impl From<&UserPublicKey> for UserId"],["impl From<&UserSecretKey> for UserPublicKey"],["impl From<InvalidPathError> for InvalidPathError2"],["impl From<DataMessage> for Message"],["impl From<IntersectionMessage> for Message"],["impl From<ReconciliationMessage> for Message"],["impl From<AuthError> for Error"],["impl From<SecretStoreError> for Error"],["impl From<SecretStoreError> for AuthError"],["impl From<ReadError> for Error"],["impl From<WriteError> for Error"],["impl From<u64> for AreaOfInterestHandle"],["impl From<u64> for CapabilityHandle"],["impl From<u64> for IntersectionHandle"],["impl From<u64> for StaticTokenHandle"],["impl From<Box<PaiReplySubspaceCapability>> for Message"],["impl From<Error> for Error"],["impl From<Error> for AuthError"],["impl From<Error> for SecretStoreError"],["impl From<Hash> for PayloadDigest"],["impl From<InvalidCapabilityPack> for AuthError"],["impl From<SelectBuilder> for Interests"],["impl From<SerdeEntry> for Entry"],["impl From<PayloadDigest> for Hash"],["impl From<UnauthorisedWriteError> for Error"],["impl From<SerdeAreaOfInterest> for AreaOfInterest"],["impl From<SerdeRange3d> for Range3d"],["impl From<NamespaceId> for CapSelector"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecretKey> for SecretKey"],["impl From<NamespaceSecretKey> for NamespaceId"],["impl From<NamespaceSecretKey> for NamespacePublicKey"],["impl From<UserId> for AuthForm"],["impl From<UserId> for ReceiverSelector"],["impl From<UserId> for [u8; 32]"],["impl From<UserPublicKey> for UserId"],["impl From<UserSecretKey> for SecretKey"],["impl From<UserSecretKey> for UserId"],["impl From<UserSecretKey> for UserPublicKey"],["impl From<SerdeMcCapability> for AuthForm"],["impl From<SerdeMcCapability> for McCapability"],["impl From<SerdeMcSubspaceCapability> for McSubspaceCapability"],["impl From<SerdeReadAuthorisation> for ReadAuthorisation"],["impl From<ReadAuthorisation> for SerdeReadAuthorisation"],["impl From<AreaOfInterestHandle> for ResourceHandle"],["impl From<CapabilityHandle> for ResourceHandle"],["impl From<IntersectionHandle> for ResourceHandle"],["impl From<StaticTokenHandle> for ResourceHandle"],["impl From<CommitmentReveal> for Message"],["impl From<ControlAbsolve> for Message"],["impl From<ControlAnnounceDropping> for Message"],["impl From<ControlApologise> for Message"],["impl From<ControlFreeHandle> for Message"],["impl From<ControlIssueGuarantee> for Message"],["impl From<ControlPlead> for Message"],["impl From<DataSendEntry> for DataMessage"],["impl From<DataSendEntry> for Message"],["impl From<DataSendPayload> for DataMessage"],["impl From<DataSendPayload> for Message"],["impl From<DataSetMetadata> for DataMessage"],["impl From<DataSetMetadata> for Message"],["impl From<PaiBindFragment> for IntersectionMessage"],["impl From<PaiBindFragment> for Message"],["impl From<PaiReplyFragment> for IntersectionMessage"],["impl From<PaiReplyFragment> for Message"],["impl From<PaiRequestSubspaceCapability> for Message"],["impl From<ReconciliationAnnounceEntries> for Message"],["impl From<ReconciliationAnnounceEntries> for ReconciliationMessage"],["impl From<ReconciliationSendEntry> for Message"],["impl From<ReconciliationSendEntry> for ReconciliationMessage"],["impl From<ReconciliationSendFingerprint> for Message"],["impl From<ReconciliationSendFingerprint> for ReconciliationMessage"],["impl From<ReconciliationSendPayload> for Message"],["impl From<ReconciliationSendPayload> for ReconciliationMessage"],["impl From<ReconciliationTerminatePayload> for Message"],["impl From<ReconciliationTerminatePayload> for ReconciliationMessage"],["impl From<SetupBindAreaOfInterest> for Message"],["impl From<SetupBindReadCapability> for Message"],["impl From<SetupBindStaticToken> for Message"],["impl From<ChannelReceiverDropped> for Error"],["impl From<AreaOfInterest<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeAreaOfInterest"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for SerdeEntry"],["impl From<Error> for Error"],["impl From<FailedDelegationError<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for AuthError"],["impl From<JoinError> for Error"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability"],["impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability"],["impl From<NamespaceIsNotCommunalError<NamespaceId>> for AuthError"],["impl From<OwnedCapabilityCreationError<NamespaceId>> for AuthError"],["impl From<Range3d<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeRange3d"],["impl From<Signature> for NamespaceSignature"],["impl From<Signature> for UserSignature"],["impl From<SigningKey> for NamespaceSecretKey"],["impl From<SigningKey> for UserSecretKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<VerifyingKey> for UserPublicKey"],["impl From<[u8; 32]> for NamespaceId"],["impl From<[u8; 32]> for UserId"],["impl<T: TryFrom<Message>> From<Receiver<Message>> for MessageReceiver<T>"]] +"iroh_willow":[["impl From<&NamespacePublicKey> for NamespaceId"],["impl From<&NamespaceSecretKey> for NamespacePublicKey"],["impl From<&UserPublicKey> for UserId"],["impl From<&UserSecretKey> for UserPublicKey"],["impl From<InvalidPathError> for InvalidPathError2"],["impl From<DataMessage> for Message"],["impl From<IntersectionMessage> for Message"],["impl From<ReconciliationMessage> for Message"],["impl From<AuthError> for Error"],["impl From<SecretStoreError> for Error"],["impl From<SecretStoreError> for AuthError"],["impl From<ReadError> for Error"],["impl From<WriteError> for Error"],["impl From<u64> for AreaOfInterestHandle"],["impl From<u64> for CapabilityHandle"],["impl From<u64> for IntersectionHandle"],["impl From<u64> for StaticTokenHandle"],["impl From<Box<PaiReplySubspaceCapability>> for Message"],["impl From<Error> for Error"],["impl From<Error> for AuthError"],["impl From<Error> for SecretStoreError"],["impl From<InvalidCapabilityPack> for AuthError"],["impl From<SelectBuilder> for Interests"],["impl From<SerdeEntry> for Entry"],["impl From<PayloadDigest> for Hash"],["impl From<UnauthorisedWriteError> for Error"],["impl From<SerdeAreaOfInterest> for AreaOfInterest"],["impl From<SerdeRange3d> for Range3d"],["impl From<NamespaceId> for CapSelector"],["impl From<NamespaceId> for [u8; 32]"],["impl From<NamespacePublicKey> for NamespaceId"],["impl From<NamespaceSecretKey> for SecretKey"],["impl From<NamespaceSecretKey> for NamespaceId"],["impl From<NamespaceSecretKey> for NamespacePublicKey"],["impl From<UserId> for AuthForm"],["impl From<UserId> for ReceiverSelector"],["impl From<UserId> for [u8; 32]"],["impl From<UserPublicKey> for UserId"],["impl From<UserSecretKey> for SecretKey"],["impl From<UserSecretKey> for UserId"],["impl From<UserSecretKey> for UserPublicKey"],["impl From<SerdeMcCapability> for AuthForm"],["impl From<SerdeMcCapability> for McCapability"],["impl From<SerdeMcSubspaceCapability> for McSubspaceCapability"],["impl From<SerdeReadAuthorisation> for ReadAuthorisation"],["impl From<ReadAuthorisation> for SerdeReadAuthorisation"],["impl From<AreaOfInterestHandle> for ResourceHandle"],["impl From<CapabilityHandle> for ResourceHandle"],["impl From<IntersectionHandle> for ResourceHandle"],["impl From<StaticTokenHandle> for ResourceHandle"],["impl From<CommitmentReveal> for Message"],["impl From<ControlAbsolve> for Message"],["impl From<ControlAnnounceDropping> for Message"],["impl From<ControlApologise> for Message"],["impl From<ControlFreeHandle> for Message"],["impl From<ControlIssueGuarantee> for Message"],["impl From<ControlPlead> for Message"],["impl From<DataSendEntry> for DataMessage"],["impl From<DataSendEntry> for Message"],["impl From<DataSendPayload> for DataMessage"],["impl From<DataSendPayload> for Message"],["impl From<DataSetMetadata> for DataMessage"],["impl From<DataSetMetadata> for Message"],["impl From<PaiBindFragment> for IntersectionMessage"],["impl From<PaiBindFragment> for Message"],["impl From<PaiReplyFragment> for IntersectionMessage"],["impl From<PaiReplyFragment> for Message"],["impl From<PaiRequestSubspaceCapability> for Message"],["impl From<ReconciliationAnnounceEntries> for Message"],["impl From<ReconciliationAnnounceEntries> for ReconciliationMessage"],["impl From<ReconciliationSendEntry> for Message"],["impl From<ReconciliationSendEntry> for ReconciliationMessage"],["impl From<ReconciliationSendFingerprint> for Message"],["impl From<ReconciliationSendFingerprint> for ReconciliationMessage"],["impl From<ReconciliationSendPayload> for Message"],["impl From<ReconciliationSendPayload> for ReconciliationMessage"],["impl From<ReconciliationTerminatePayload> for Message"],["impl From<ReconciliationTerminatePayload> for ReconciliationMessage"],["impl From<SetupBindAreaOfInterest> for Message"],["impl From<SetupBindReadCapability> for Message"],["impl From<SetupBindStaticToken> for Message"],["impl From<ChannelReceiverDropped> for Error"],["impl From<AreaOfInterest<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeAreaOfInterest"],["impl From<Entry<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, UserId, PayloadDigest>> for SerdeEntry"],["impl From<Error> for Error"],["impl From<FailedDelegationError<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for AuthError"],["impl From<Hash> for PayloadDigest"],["impl From<JoinError> for Error"],["impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability"],["impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability"],["impl From<NamespaceIsNotCommunalError<NamespaceId>> for AuthError"],["impl From<OwnedCapabilityCreationError<NamespaceId>> for AuthError"],["impl From<Range3d<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, UserId>> for SerdeRange3d"],["impl From<Signature> for NamespaceSignature"],["impl From<Signature> for UserSignature"],["impl From<SigningKey> for NamespaceSecretKey"],["impl From<SigningKey> for UserSecretKey"],["impl From<VerifyingKey> for NamespacePublicKey"],["impl From<VerifyingKey> for UserPublicKey"],["impl From<[u8; 32]> for NamespaceId"],["impl From<[u8; 32]> for UserId"],["impl<T: TryFrom<Message>> From<Receiver<Message>> for MessageReceiver<T>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/pr/2616/docs/trait.impl/iroh_base/ticket/trait.Ticket.js b/pr/2616/docs/trait.impl/iroh_base/ticket/trait.Ticket.js index 5d209fabd2..12fa1e3ee5 100644 --- a/pr/2616/docs/trait.impl/iroh_base/ticket/trait.Ticket.js +++ b/pr/2616/docs/trait.impl/iroh_base/ticket/trait.Ticket.js @@ -1,5 +1,5 @@ (function() {var implementors = { "iroh":[], "iroh_base":[], -"iroh_docs":[["impl Ticket for DocTicket"]] +"iroh_docs":[["impl Ticket for DocTicket"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/pr/2616/docs/trait.impl/iroh_metrics/core/trait.Metric.js b/pr/2616/docs/trait.impl/iroh_metrics/core/trait.Metric.js index d96d2ad190..e7cca73607 100644 --- a/pr/2616/docs/trait.impl/iroh_metrics/core/trait.Metric.js +++ b/pr/2616/docs/trait.impl/iroh_metrics/core/trait.Metric.js @@ -1,9 +1,9 @@ (function() {var implementors = { -"iroh":[["impl Metric for Metrics"]], +"iroh":[["impl Metric for Metrics"]], "iroh_blobs":[["impl Metric for Metrics"]], "iroh_dns_server":[["impl Metric for Metrics"]], -"iroh_docs":[["impl Metric for Metrics"]], +"iroh_docs":[["impl Metric for Metrics"]], "iroh_gossip":[["impl Metric for Metrics"]], -"iroh_net":[["impl Metric for Metrics"],["impl Metric for Metrics"],["impl Metric for Metrics"],["impl Metric for Metrics"]], -"iroh_relay":[["impl Metric for StunMetrics"]] +"iroh_net":[["impl Metric for Metrics"],["impl Metric for Metrics"],["impl Metric for Metrics"],["impl Metric for Metrics"]], +"iroh_relay":[["impl Metric for StunMetrics"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/pr/2616/docs/trait.impl/meadowcap/trait.IsCommunal.js b/pr/2616/docs/trait.impl/meadowcap/trait.IsCommunal.js index 07697e084f..6b3c53cf96 100644 --- a/pr/2616/docs/trait.impl/meadowcap/trait.IsCommunal.js +++ b/pr/2616/docs/trait.impl/meadowcap/trait.IsCommunal.js @@ -1,3 +1,3 @@ (function() {var implementors = { -"iroh_willow":[["impl IsCommunal for NamespaceId"]] +"iroh_willow":[["impl IsCommunal for NamespaceId"],["impl IsCommunal for NamespacePublicKey"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/iroh/gossip/proto/enum.Command.js b/pr/2616/docs/type.impl/iroh/gossip/proto/enum.Command.js index 24101d8211..db2f51f42d 100644 --- a/pr/2616/docs/type.impl/iroh/gossip/proto/enum.Command.js +++ b/pr/2616/docs/type.impl/iroh/gossip/proto/enum.Command.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh":[["
    source§

    impl<PI> Clone for Command<PI>
    where\n PI: Clone,

    source§

    fn clone(&self) -> Command<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
    ","Clone","iroh::gossip::net::ProtoCommand"],["
    source§

    impl<PI> Debug for Command<PI>
    where\n Vec<PI>: Debug,

    source§

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh::gossip::net::ProtoCommand"]] +"iroh":[["
    §

    impl<PI> Clone for Command<PI>
    where\n PI: Clone,

    §

    fn clone(&self) -> Command<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
    ","Clone","iroh::gossip::net::ProtoCommand"],["
    §

    impl<PI> Debug for Command<PI>
    where\n Vec<PI>: Debug,

    §

    fn fmt(&self, __derive_more_f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh::gossip::net::ProtoCommand"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/iroh/gossip/proto/enum.Event.js b/pr/2616/docs/type.impl/iroh/gossip/proto/enum.Event.js index b12e296550..3bfa9ce53b 100644 --- a/pr/2616/docs/type.impl/iroh/gossip/proto/enum.Event.js +++ b/pr/2616/docs/type.impl/iroh/gossip/proto/enum.Event.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh":[["
    source§

    impl<PI> Clone for Event<PI>
    where\n PI: Clone,

    source§

    fn clone(&self) -> Event<PI>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh::gossip::net::ProtoEvent"],["
    source§

    impl<PI> Debug for Event<PI>
    where\n PI: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh::gossip::net::ProtoEvent"],["
    source§

    impl<'de, PI> Deserialize<'de> for Event<PI>
    where\n PI: Deserialize<'de>,

    source§

    fn deserialize<__D>(\n __deserializer: __D\n) -> Result<Event<PI>, <__D as Deserializer<'de>>::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh::gossip::net::ProtoEvent"],["
    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.
    ","From>","iroh::gossip::net::ProtoEvent"],["
    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.
    ","From>","iroh::gossip::net::ProtoEvent"],["
    source§

    impl<PI> Ord for Event<PI>
    where\n 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\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh::gossip::net::ProtoEvent"],["
    source§

    impl<PI> PartialEq for Event<PI>
    where\n PI: PartialEq,

    source§

    fn eq(&self, other: &Event<PI>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh::gossip::net::ProtoEvent"],["
    source§

    impl<PI> PartialOrd for Event<PI>
    where\n PI: PartialOrd,

    source§

    fn partial_cmp(&self, other: &Event<PI>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh::gossip::net::ProtoEvent"],["
    source§

    impl<PI> Serialize for Event<PI>
    where\n PI: Serialize,

    source§

    fn serialize<__S>(\n &self,\n __serializer: __S\n) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh::gossip::net::ProtoEvent"],["
    source§

    impl<PI> Eq for Event<PI>
    where\n PI: Eq,

    ","Eq","iroh::gossip::net::ProtoEvent"],["
    source§

    impl<PI> StructuralPartialEq for Event<PI>

    ","StructuralPartialEq","iroh::gossip::net::ProtoEvent"]] +"iroh":[["
    §

    impl<PI> Clone for Event<PI>
    where\n PI: Clone,

    §

    fn clone(&self) -> Event<PI>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh::gossip::net::ProtoEvent"],["
    §

    impl<PI> Debug for Event<PI>
    where\n PI: Debug,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh::gossip::net::ProtoEvent"],["
    §

    impl<'de, PI> Deserialize<'de> for Event<PI>
    where\n PI: Deserialize<'de>,

    §

    fn deserialize<__D>(\n __deserializer: __D\n) -> Result<Event<PI>, <__D as Deserializer<'de>>::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh::gossip::net::ProtoEvent"],["
    §

    impl<PI> From<Event<PI>> for Event<PI>

    §

    fn from(value: Event<PI>) -> Event<PI>

    Converts to this type from the input type.
    ","From>","iroh::gossip::net::ProtoEvent"],["
    §

    impl<PI> From<Event<PI>> for Event<PI>

    §

    fn from(value: Event<PI>) -> Event<PI>

    Converts to this type from the input type.
    ","From>","iroh::gossip::net::ProtoEvent"],["
    §

    impl<PI> Ord for Event<PI>
    where\n PI: Ord,

    §

    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\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh::gossip::net::ProtoEvent"],["
    §

    impl<PI> PartialEq for Event<PI>
    where\n PI: PartialEq,

    §

    fn eq(&self, other: &Event<PI>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh::gossip::net::ProtoEvent"],["
    §

    impl<PI> PartialOrd for Event<PI>
    where\n PI: PartialOrd,

    §

    fn partial_cmp(&self, other: &Event<PI>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh::gossip::net::ProtoEvent"],["
    §

    impl<PI> Serialize for Event<PI>
    where\n PI: Serialize,

    §

    fn serialize<__S>(\n &self,\n __serializer: __S\n) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh::gossip::net::ProtoEvent"],["
    §

    impl<PI> Eq for Event<PI>
    where\n PI: Eq,

    ","Eq","iroh::gossip::net::ProtoEvent"],["
    §

    impl<PI> StructuralPartialEq for Event<PI>

    ","StructuralPartialEq","iroh::gossip::net::ProtoEvent"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/iroh/net/key/struct.PublicKey.js b/pr/2616/docs/type.impl/iroh/net/key/struct.PublicKey.js index a50cbd173b..d36a6e604f 100644 --- a/pr/2616/docs/type.impl/iroh/net/key/struct.PublicKey.js +++ b/pr/2616/docs/type.impl/iroh/net/key/struct.PublicKey.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh":[["
    source§

    impl AsRef<[u8]> for PublicKey

    source§

    fn as_ref(&self) -> &[u8] ⓘ

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[u8]>","iroh::net::NodeId"],["
    source§

    impl Clone for PublicKey

    source§

    fn clone(&self) -> PublicKey

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh::net::NodeId"],["
    source§

    impl Debug for PublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh::net::NodeId"],["
    source§

    impl<'de> Deserialize<'de> for PublicKey

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<PublicKey, <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh::net::NodeId"],["
    source§

    impl Display for PublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Display","iroh::net::NodeId"],["
    source§

    impl From<VerifyingKey> for PublicKey

    source§

    fn from(verifying_key: VerifyingKey) -> PublicKey

    Converts to this type from the input type.
    ","From","iroh::net::NodeId"],["
    source§

    impl FromStr for PublicKey

    Deserialises the PublicKey from it’s base32 encoding.

    \n

    Display is capable of serialising this format.

    \n
    §

    type Err = KeyParsingError

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<PublicKey, <PublicKey as FromStr>::Err>

    Parses a string s to return a value of this type. Read more
    ","FromStr","iroh::net::NodeId"],["
    source§

    impl Hash for PublicKey

    source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh::net::NodeId"],["
    source§

    impl Ord for PublicKey

    source§

    fn cmp(&self, other: &PublicKey) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh::net::NodeId"],["
    source§

    impl PartialEq for PublicKey

    source§

    fn eq(&self, other: &PublicKey) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh::net::NodeId"],["
    source§

    impl PartialOrd for PublicKey

    source§

    fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh::net::NodeId"],["
    source§

    impl PublicKey

    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Get this public key as a byte array.

    \n
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>

    Construct a PublicKey from a slice of bytes.

    \n
    §Warning
    \n

    This will return a [SignatureError] if the bytes passed into this method do not represent\na valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.\nSee [VerifyingKey::from_bytes] for details.

    \n
    source

    pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>

    Verify a signature on a message with this secret key’s public key.

    \n
    §Return
    \n

    Returns Ok(()) if the signature is valid, and Err otherwise.

    \n
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh::net::NodeId"],["
    source§

    impl Serialize for PublicKey

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh::net::NodeId"],["
    source§

    impl TryFrom<&[u8]> for PublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from(\n bytes: &[u8]\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8]>","iroh::net::NodeId"],["
    source§

    impl TryFrom<&[u8; 32]> for PublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from(\n bytes: &[u8; 32]\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8; 32]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8; 32]>","iroh::net::NodeId"],["
    source§

    impl Copy for PublicKey

    ","Copy","iroh::net::NodeId"],["
    source§

    impl Eq for PublicKey

    ","Eq","iroh::net::NodeId"],["
    source§

    impl StructuralPartialEq for PublicKey

    ","StructuralPartialEq","iroh::net::NodeId"]] +"iroh":[["
    §

    impl AsRef<[u8]> for PublicKey

    §

    fn as_ref(&self) -> &[u8] ⓘ

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[u8]>","iroh::net::NodeId"],["
    §

    impl Clone for PublicKey

    §

    fn clone(&self) -> PublicKey

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh::net::NodeId"],["
    §

    impl Debug for PublicKey

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh::net::NodeId"],["
    §

    impl<'de> Deserialize<'de> for PublicKey

    §

    fn deserialize<D>(\n deserializer: D\n) -> Result<PublicKey, <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh::net::NodeId"],["
    §

    impl Display for PublicKey

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Display","iroh::net::NodeId"],["
    §

    impl From<VerifyingKey> for PublicKey

    §

    fn from(verifying_key: VerifyingKey) -> PublicKey

    Converts to this type from the input type.
    ","From","iroh::net::NodeId"],["
    §

    impl FromStr for PublicKey

    Deserialises the PublicKey from it’s base32 encoding.

    \n

    Display is capable of serialising this format.

    \n
    §

    type Err = KeyParsingError

    The associated error which can be returned from parsing.
    §

    fn from_str(s: &str) -> Result<PublicKey, <PublicKey as FromStr>::Err>

    Parses a string s to return a value of this type. Read more
    ","FromStr","iroh::net::NodeId"],["
    §

    impl Hash for PublicKey

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh::net::NodeId"],["
    §

    impl Ord for PublicKey

    §

    fn cmp(&self, other: &PublicKey) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh::net::NodeId"],["
    §

    impl PartialEq for PublicKey

    §

    fn eq(&self, other: &PublicKey) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh::net::NodeId"],["
    §

    impl PartialOrd for PublicKey

    §

    fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh::net::NodeId"],["
    §

    impl PublicKey

    pub fn as_bytes(&self) -> &[u8; 32]

    Get this public key as a byte array.

    \n

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>

    Construct a PublicKey from a slice of bytes.

    \n
    §Warning
    \n

    This will return a [SignatureError] if the bytes passed into this method do not represent\na valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.\nSee [VerifyingKey::from_bytes] for details.

    \n

    pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>

    Verify a signature on a message with this secret key’s public key.

    \n
    §Return
    \n

    Returns Ok(()) if the signature is valid, and Err otherwise.

    \n

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh::net::NodeId"],["
    §

    impl Serialize for PublicKey

    §

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh::net::NodeId"],["
    §

    impl TryFrom<&[u8]> for PublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    §

    fn try_from(\n bytes: &[u8]\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8]>","iroh::net::NodeId"],["
    §

    impl TryFrom<&[u8; 32]> for PublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    §

    fn try_from(\n bytes: &[u8; 32]\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8; 32]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8; 32]>","iroh::net::NodeId"],["
    §

    impl Copy for PublicKey

    ","Copy","iroh::net::NodeId"],["
    §

    impl Eq for PublicKey

    ","Eq","iroh::net::NodeId"],["
    §

    impl StructuralPartialEq for PublicKey

    ","StructuralPartialEq","iroh::net::NodeId"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/iroh_net/key/struct.PublicKey.js b/pr/2616/docs/type.impl/iroh_net/key/struct.PublicKey.js index 7a12ce6857..6a12b9d618 100644 --- a/pr/2616/docs/type.impl/iroh_net/key/struct.PublicKey.js +++ b/pr/2616/docs/type.impl/iroh_net/key/struct.PublicKey.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh_net":[["
    source§

    impl AsRef<[u8]> for PublicKey

    source§

    fn as_ref(&self) -> &[u8] ⓘ

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[u8]>","iroh_net::NodeId"],["
    source§

    impl Clone for PublicKey

    source§

    fn clone(&self) -> PublicKey

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_net::NodeId"],["
    source§

    impl Debug for PublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh_net::NodeId"],["
    source§

    impl<'de> Deserialize<'de> for PublicKey

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<PublicKey, <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_net::NodeId"],["
    source§

    impl Display for PublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Display","iroh_net::NodeId"],["
    source§

    impl From<VerifyingKey> for PublicKey

    source§

    fn from(verifying_key: VerifyingKey) -> PublicKey

    Converts to this type from the input type.
    ","From","iroh_net::NodeId"],["
    source§

    impl FromStr for PublicKey

    Deserialises the PublicKey from it’s base32 encoding.

    \n

    Display is capable of serialising this format.

    \n
    §

    type Err = KeyParsingError

    The associated error which can be returned from parsing.
    source§

    fn from_str(s: &str) -> Result<PublicKey, <PublicKey as FromStr>::Err>

    Parses a string s to return a value of this type. Read more
    ","FromStr","iroh_net::NodeId"],["
    source§

    impl Hash for PublicKey

    source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_net::NodeId"],["
    source§

    impl Ord for PublicKey

    source§

    fn cmp(&self, other: &PublicKey) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_net::NodeId"],["
    source§

    impl PartialEq for PublicKey

    source§

    fn eq(&self, other: &PublicKey) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_net::NodeId"],["
    source§

    impl PartialOrd for PublicKey

    source§

    fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh_net::NodeId"],["
    source§

    impl PublicKey

    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Get this public key as a byte array.

    \n
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>

    Construct a PublicKey from a slice of bytes.

    \n
    §Warning
    \n

    This will return a [SignatureError] if the bytes passed into this method do not represent\na valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.\nSee [VerifyingKey::from_bytes] for details.

    \n
    source

    pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>

    Verify a signature on a message with this secret key’s public key.

    \n
    §Return
    \n

    Returns Ok(()) if the signature is valid, and Err otherwise.

    \n
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh_net::NodeId"],["
    source§

    impl Serialize for PublicKey

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_net::NodeId"],["
    source§

    impl TryFrom<&[u8]> for PublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from(\n bytes: &[u8]\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8]>","iroh_net::NodeId"],["
    source§

    impl TryFrom<&[u8; 32]> for PublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from(\n bytes: &[u8; 32]\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8; 32]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8; 32]>","iroh_net::NodeId"],["
    source§

    impl Copy for PublicKey

    ","Copy","iroh_net::NodeId"],["
    source§

    impl Eq for PublicKey

    ","Eq","iroh_net::NodeId"],["
    source§

    impl StructuralPartialEq for PublicKey

    ","StructuralPartialEq","iroh_net::NodeId"]] +"iroh_net":[["
    §

    impl AsRef<[u8]> for PublicKey

    §

    fn as_ref(&self) -> &[u8] ⓘ

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[u8]>","iroh_net::NodeId"],["
    §

    impl Clone for PublicKey

    §

    fn clone(&self) -> PublicKey

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_net::NodeId"],["
    §

    impl Debug for PublicKey

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh_net::NodeId"],["
    §

    impl<'de> Deserialize<'de> for PublicKey

    §

    fn deserialize<D>(\n deserializer: D\n) -> Result<PublicKey, <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_net::NodeId"],["
    §

    impl Display for PublicKey

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Display","iroh_net::NodeId"],["
    §

    impl From<VerifyingKey> for PublicKey

    §

    fn from(verifying_key: VerifyingKey) -> PublicKey

    Converts to this type from the input type.
    ","From","iroh_net::NodeId"],["
    §

    impl FromStr for PublicKey

    Deserialises the PublicKey from it’s base32 encoding.

    \n

    Display is capable of serialising this format.

    \n
    §

    type Err = KeyParsingError

    The associated error which can be returned from parsing.
    §

    fn from_str(s: &str) -> Result<PublicKey, <PublicKey as FromStr>::Err>

    Parses a string s to return a value of this type. Read more
    ","FromStr","iroh_net::NodeId"],["
    §

    impl Hash for PublicKey

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_net::NodeId"],["
    §

    impl Ord for PublicKey

    §

    fn cmp(&self, other: &PublicKey) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_net::NodeId"],["
    §

    impl PartialEq for PublicKey

    §

    fn eq(&self, other: &PublicKey) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_net::NodeId"],["
    §

    impl PartialOrd for PublicKey

    §

    fn partial_cmp(&self, other: &PublicKey) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh_net::NodeId"],["
    §

    impl PublicKey

    pub fn as_bytes(&self) -> &[u8; 32]

    Get this public key as a byte array.

    \n

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<PublicKey, Error>

    Construct a PublicKey from a slice of bytes.

    \n
    §Warning
    \n

    This will return a [SignatureError] if the bytes passed into this method do not represent\na valid ed25519_dalek curve point. Will never fail for bytes return from Self::as_bytes.\nSee [VerifyingKey::from_bytes] for details.

    \n

    pub fn verify(&self, message: &[u8], signature: &Signature) -> Result<(), Error>

    Verify a signature on a message with this secret key’s public key.

    \n
    §Return
    \n

    Returns Ok(()) if the signature is valid, and Err otherwise.

    \n

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh_net::NodeId"],["
    §

    impl Serialize for PublicKey

    §

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_net::NodeId"],["
    §

    impl TryFrom<&[u8]> for PublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    §

    fn try_from(\n bytes: &[u8]\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8]>","iroh_net::NodeId"],["
    §

    impl TryFrom<&[u8; 32]> for PublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    §

    fn try_from(\n bytes: &[u8; 32]\n) -> Result<PublicKey, <PublicKey as TryFrom<&[u8; 32]>>::Error>

    Performs the conversion.
    ","TryFrom<&[u8; 32]>","iroh_net::NodeId"],["
    §

    impl Copy for PublicKey

    ","Copy","iroh_net::NodeId"],["
    §

    impl Eq for PublicKey

    ","Eq","iroh_net::NodeId"],["
    §

    impl StructuralPartialEq for PublicKey

    ","StructuralPartialEq","iroh_net::NodeId"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.NamespaceId.js b/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.NamespaceId.js index 63f5d36fff..c4add57506 100644 --- a/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.NamespaceId.js +++ b/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.NamespaceId.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh_willow":[["
    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.
    ","AsRef<[u8]>","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    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.
    ","AsRef<[u8; 32]>","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    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
    ","Clone","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Debug for NamespaceId

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Decodable for NamespaceId

    source§

    async fn decode<Producer>(\n producer: &mut Producer\n) -> Result<Self, DecodeError<Producer::Error>>
    where\n Producer: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Decodable for NamespaceId

    source§

    fn decode<Producer>(\n producer: &mut Producer\n) -> Result<Self, DecodeError<Producer::Error>>
    where\n Producer: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Default for NamespaceId

    source§

    fn default() -> NamespaceId

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl<'de> Deserialize<'de> for NamespaceId

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Display for NamespaceId

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Display","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Encodable for NamespaceId

    source§

    async fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Encodable for NamespaceId

    source§

    fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl From<&NamespacePublicKey> for NamespaceId

    source§

    fn from(value: &NamespacePublicKey) -> Self

    Converts to this type from the input type.
    ","From<&NamespacePublicKey>","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl From<[u8; 32]> for NamespaceId

    source§

    fn from(value: [u8; 32]) -> Self

    Converts to this type from the input type.
    ","From<[u8; 32]>","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl From<NamespacePublicKey> for NamespaceId

    source§

    fn from(value: NamespacePublicKey) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl From<NamespaceSecretKey> for NamespaceId

    source§

    fn from(value: NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl FromStr for NamespaceId

    §

    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
    ","FromStr","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Hash for NamespaceId

    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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl NamespaceId

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    \n
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl NamespaceId

    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Convert to byte slice.

    \n
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    \n
    source

    pub fn into_public_key(&self) -> Result<NamespacePublicKey, SignatureError>

    Convert into NamespacePublicKey.

    \n

    Fails if the bytes of this NamespaceId are not a valid [ed25519_dalek] curve point.

    \n
    source

    pub fn from_bytes_unchecked(bytes: [u8; 32]) -> Self

    Create from a byte array.

    \n

    Does not check if the byte array are a valid NamespacePublicKey

    \n
    ",0,"iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    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\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl PartialEq for NamespaceId

    source§

    fn eq(&self, other: &NamespaceId) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl PartialOrd for NamespaceId

    source§

    fn partial_cmp(&self, other: &NamespaceId) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Serialize for NamespaceId

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Verifier<NamespaceSignature> for NamespaceId

    source§

    fn verify(\n &self,\n msg: &[u8],\n signature: &NamespaceSignature\n) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message\nbytestring is authentic. Read more
    ","Verifier","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Copy for NamespaceId

    ","Copy","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Eq for NamespaceId

    ","Eq","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl NamespaceId for NamespaceId

    ","NamespaceId","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl StructuralPartialEq for NamespaceId

    ","StructuralPartialEq","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"]] +"iroh_willow":[["
    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.
    ","AsRef<[u8]>","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    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.
    ","AsRef<[u8; 32]>","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    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
    ","Clone","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Debug for NamespaceId

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Decodable for NamespaceId

    source§

    async fn decode<Producer>(\n producer: &mut Producer\n) -> Result<Self, DecodeError<Producer::Error>>
    where\n Producer: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Decodable for NamespaceId

    source§

    fn decode<Producer>(\n producer: &mut Producer\n) -> Result<Self, DecodeError<Producer::Error>>
    where\n Producer: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Default for NamespaceId

    source§

    fn default() -> NamespaceId

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl<'de> Deserialize<'de> for NamespaceId

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Display for NamespaceId

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Display","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Encodable for NamespaceId

    source§

    async fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Encodable for NamespaceId

    source§

    fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl From<&NamespacePublicKey> for NamespaceId

    source§

    fn from(value: &NamespacePublicKey) -> Self

    Converts to this type from the input type.
    ","From<&NamespacePublicKey>","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl From<[u8; 32]> for NamespaceId

    source§

    fn from(value: [u8; 32]) -> Self

    Converts to this type from the input type.
    ","From<[u8; 32]>","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl From<NamespacePublicKey> for NamespaceId

    source§

    fn from(value: NamespacePublicKey) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl From<NamespaceSecretKey> for NamespaceId

    source§

    fn from(value: NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl FromStr for NamespaceId

    §

    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
    ","FromStr","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Hash for NamespaceId

    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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl IsCommunal for NamespaceId

    ","IsCommunal","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl NamespaceId

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    \n
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl NamespaceId

    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Convert to byte slice.

    \n
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    \n
    source

    pub fn into_public_key(&self) -> Result<NamespacePublicKey, SignatureError>

    Convert into NamespacePublicKey.

    \n

    Fails if the bytes of this NamespaceId are not a valid [ed25519_dalek] curve point.

    \n
    source

    pub fn from_bytes_unchecked(bytes: [u8; 32]) -> Self

    Create from a byte array.

    \n

    Does not check if the byte array are a valid NamespacePublicKey

    \n
    ",0,"iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    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\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl PartialEq for NamespaceId

    source§

    fn eq(&self, other: &NamespaceId) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl PartialOrd for NamespaceId

    source§

    fn partial_cmp(&self, other: &NamespaceId) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Serialize for NamespaceId

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Verifier<NamespaceSignature> for NamespaceId

    source§

    fn verify(\n &self,\n msg: &[u8],\n signature: &NamespaceSignature\n) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message\nbytestring is authentic. Read more
    ","Verifier","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Copy for NamespaceId

    ","Copy","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl Eq for NamespaceId

    ","Eq","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl NamespaceId for NamespaceId

    ","NamespaceId","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"],["
    source§

    impl StructuralPartialEq for NamespaceId

    ","StructuralPartialEq","iroh_willow::proto::data_model::NamespaceId","iroh_willow::proto::meadowcap::NamespaceId"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.NamespacePublicKey.js b/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.NamespacePublicKey.js index 6c10bdc0d6..00f3e92eb5 100644 --- a/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.NamespacePublicKey.js +++ b/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.NamespacePublicKey.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh_willow":[["
    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
    ","Clone","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Debug for NamespacePublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Default for NamespacePublicKey

    source§

    fn default() -> NamespacePublicKey

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl<'de> Deserialize<'de> for NamespacePublicKey

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Display for NamespacePublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Display","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Encodable for NamespacePublicKey

    source§

    async fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Encodable for NamespacePublicKey

    source§

    fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl From<&NamespaceSecretKey> for NamespacePublicKey

    source§

    fn from(value: &NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    ","From<&NamespaceSecretKey>","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl From<NamespaceSecretKey> for NamespacePublicKey

    source§

    fn from(value: NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl From<VerifyingKey> for NamespacePublicKey

    source§

    fn from(value: VerifyingKey) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl FromStr for NamespacePublicKey

    §

    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
    ","FromStr","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Hash for NamespacePublicKey

    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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl NamespacePublicKey

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    \n
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl NamespacePublicKey

    source

    pub fn is_communal(&self) -> bool

    Whether this is the key for a communal namespace.

    \n
    source

    pub fn kind(&self) -> NamespaceKind

    source

    pub fn verify(\n &self,\n msg: &[u8],\n signature: &NamespaceSignature\n) -> Result<(), SignatureError>

    Verify that a signature matches the msg bytes and was created with the [NamespaceSecretKey] that corresponds to this [NamespaceId`].

    \n
    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Get this NamespaceId as a byte slice.

    \n
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    \n
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<Self, SignatureError>

    Create from a slice of bytes.

    \n

    Will return an error if the input bytes do not represent a valid [ed25519_dalek]\ncurve point. Will never fail for a byte array returned from Self::as_bytes.\nSee [VerifyingKey::from_bytes] for details.

    \n
    source

    pub fn id(&self) -> NamespaceId

    Convert into a NamespaceId.

    \n
    ",0,"iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Ord for NamespacePublicKey

    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\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl PartialEq for NamespacePublicKey

    source§

    fn eq(&self, other: &NamespacePublicKey) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl PartialOrd for NamespacePublicKey

    source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Serialize for NamespacePublicKey

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl TryFrom<NamespaceId> for NamespacePublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: NamespaceId) -> Result<Self, Self::Error>

    Performs the conversion.
    ","TryFrom","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Verifier<NamespaceSignature> for NamespacePublicKey

    source§

    fn verify(\n &self,\n msg: &[u8],\n signature: &NamespaceSignature\n) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message\nbytestring is authentic. Read more
    ","Verifier","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Copy for NamespacePublicKey

    ","Copy","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Eq for NamespacePublicKey

    ","Eq","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl NamespaceId for NamespacePublicKey

    ","NamespaceId","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl StructuralPartialEq for NamespacePublicKey

    ","StructuralPartialEq","iroh_willow::proto::meadowcap::NamespacePublicKey"]] +"iroh_willow":[["
    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
    ","Clone","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Debug for NamespacePublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Default for NamespacePublicKey

    source§

    fn default() -> NamespacePublicKey

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl<'de> Deserialize<'de> for NamespacePublicKey

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Display for NamespacePublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Display","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Encodable for NamespacePublicKey

    source§

    async fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Encodable for NamespacePublicKey

    source§

    fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl From<&NamespaceSecretKey> for NamespacePublicKey

    source§

    fn from(value: &NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    ","From<&NamespaceSecretKey>","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl From<NamespaceSecretKey> for NamespacePublicKey

    source§

    fn from(value: NamespaceSecretKey) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl From<VerifyingKey> for NamespacePublicKey

    source§

    fn from(value: VerifyingKey) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl FromStr for NamespacePublicKey

    §

    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
    ","FromStr","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Hash for NamespacePublicKey

    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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl IsCommunal for NamespacePublicKey

    ","IsCommunal","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl NamespacePublicKey

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    \n
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl NamespacePublicKey

    source

    pub fn kind(&self) -> NamespaceKind

    source

    pub fn verify(\n &self,\n msg: &[u8],\n signature: &NamespaceSignature\n) -> Result<(), SignatureError>

    Verify that a signature matches the msg bytes and was created with the [NamespaceSecretKey] that corresponds to this [NamespaceId`].

    \n
    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Get this NamespaceId as a byte slice.

    \n
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    \n
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<Self, SignatureError>

    Create from a slice of bytes.

    \n

    Will return an error if the input bytes do not represent a valid [ed25519_dalek]\ncurve point. Will never fail for a byte array returned from Self::as_bytes.\nSee [VerifyingKey::from_bytes] for details.

    \n
    source

    pub fn id(&self) -> NamespaceId

    Convert into a NamespaceId.

    \n
    ",0,"iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Ord for NamespacePublicKey

    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\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl PartialEq for NamespacePublicKey

    source§

    fn eq(&self, other: &NamespacePublicKey) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl PartialOrd for NamespacePublicKey

    source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Serialize for NamespacePublicKey

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl TryFrom<NamespaceId> for NamespacePublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: NamespaceId) -> Result<Self, Self::Error>

    Performs the conversion.
    ","TryFrom","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Verifier<NamespaceSignature> for NamespacePublicKey

    source§

    fn verify(\n &self,\n msg: &[u8],\n signature: &NamespaceSignature\n) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message\nbytestring is authentic. Read more
    ","Verifier","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Copy for NamespacePublicKey

    ","Copy","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl Eq for NamespacePublicKey

    ","Eq","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl NamespaceId for NamespacePublicKey

    ","NamespaceId","iroh_willow::proto::meadowcap::NamespacePublicKey"],["
    source§

    impl StructuralPartialEq for NamespacePublicKey

    ","StructuralPartialEq","iroh_willow::proto::meadowcap::NamespacePublicKey"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.NamespaceSignature.js b/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.NamespaceSignature.js index 4dfdab052d..9b652ef370 100644 --- a/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.NamespaceSignature.js +++ b/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.NamespaceSignature.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh_willow":[["
    source§

    impl Clone for NamespaceSignature

    source§

    fn clone(&self) -> NamespaceSignature

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Debug for NamespaceSignature

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Decodable for NamespaceSignature

    source§

    async fn decode<Producer>(\n producer: &mut Producer\n) -> Result<Self, DecodeError<Producer::Error>>
    where\n Producer: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Decodable for NamespaceSignature

    source§

    fn decode<Producer>(\n producer: &mut Producer\n) -> Result<Self, DecodeError<Producer::Error>>
    where\n Producer: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Deref for NamespaceSignature

    §

    type Target = Signature

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    ","Deref","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl<'de> Deserialize<'de> for NamespaceSignature

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Display for NamespaceSignature

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Display","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Encodable for NamespaceSignature

    source§

    async fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Encodable for NamespaceSignature

    source§

    fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl From<Signature> for NamespaceSignature

    source§

    fn from(value: Signature) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Hash for NamespaceSignature

    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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl NamespaceSignature

    source

    pub fn from_bytes(bytes: [u8; 64]) -> Self

    Create from a byte array.

    \n
    ",0,"iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl NamespaceSignature

    source

    pub const LENGTH: usize = 64usize

    Length of the byte encoding of Self.

    \n
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Ord for NamespaceSignature

    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\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl PartialEq for NamespaceSignature

    source§

    fn eq(&self, other: &NamespaceSignature) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl PartialOrd for NamespaceSignature

    source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Serialize for NamespaceSignature

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Eq for NamespaceSignature

    ","Eq","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl StructuralPartialEq for NamespaceSignature

    ","StructuralPartialEq","iroh_willow::proto::meadowcap::NamespaceSignature"]] +"iroh_willow":[["
    source§

    impl Clone for NamespaceSignature

    source§

    fn clone(&self) -> NamespaceSignature

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Debug for NamespaceSignature

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Decodable for NamespaceSignature

    source§

    async fn decode<Producer>(\n producer: &mut Producer\n) -> Result<Self, DecodeError<Producer::Error>>
    where\n Producer: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Decodable for NamespaceSignature

    source§

    fn decode<Producer>(\n producer: &mut Producer\n) -> Result<Self, DecodeError<Producer::Error>>
    where\n Producer: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Deref for NamespaceSignature

    §

    type Target = Signature

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    ","Deref","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl<'de> Deserialize<'de> for NamespaceSignature

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Display for NamespaceSignature

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Display","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Encodable for NamespaceSignature

    source§

    async fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Encodable for NamespaceSignature

    source§

    fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl From<Signature> for NamespaceSignature

    source§

    fn from(value: Signature) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Hash for NamespaceSignature

    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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl NamespaceSignature

    source

    pub fn from_bytes(bytes: [u8; 64]) -> Self

    Create from a byte array.

    \n
    ",0,"iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl NamespaceSignature

    source

    pub const LENGTH: usize = 64usize

    Length of the byte encoding of Self.

    \n
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Ord for NamespaceSignature

    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\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl PartialEq for NamespaceSignature

    source§

    fn eq(&self, other: &NamespaceSignature) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl PartialOrd for NamespaceSignature

    source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Serialize for NamespaceSignature

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl Eq for NamespaceSignature

    ","Eq","iroh_willow::proto::meadowcap::NamespaceSignature"],["
    source§

    impl StructuralPartialEq for NamespaceSignature

    ","StructuralPartialEq","iroh_willow::proto::meadowcap::NamespaceSignature"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.UserId.js b/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.UserId.js index 8310136889..f395ba8e01 100644 --- a/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.UserId.js +++ b/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.UserId.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh_willow":[["
    source§

    impl AsRef<[u8]> for UserId

    source§

    fn as_ref(&self) -> &[u8] ⓘ

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[u8]>","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl AsRef<[u8; 32]> for UserId

    source§

    fn as_ref(&self) -> &[u8; 32]

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[u8; 32]>","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Clone for UserId

    source§

    fn clone(&self) -> UserId

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Debug for UserId

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Decodable for UserId

    source§

    async fn decode<Producer>(\n producer: &mut Producer\n) -> Result<Self, DecodeError<Producer::Error>>
    where\n Producer: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Decodable for UserId

    source§

    fn decode<Producer>(\n producer: &mut Producer\n) -> Result<Self, DecodeError<Producer::Error>>
    where\n Producer: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Default for UserId

    source§

    fn default() -> UserId

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl<'de> Deserialize<'de> for UserId

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Display for UserId

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Display","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Encodable for UserId

    source§

    async fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Encodable for UserId

    source§

    fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl From<&UserPublicKey> for UserId

    source§

    fn from(value: &UserPublicKey) -> Self

    Converts to this type from the input type.
    ","From<&UserPublicKey>","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl From<[u8; 32]> for UserId

    source§

    fn from(value: [u8; 32]) -> Self

    Converts to this type from the input type.
    ","From<[u8; 32]>","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl From<UserPublicKey> for UserId

    source§

    fn from(value: UserPublicKey) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl From<UserSecretKey> for UserId

    source§

    fn from(value: UserSecretKey) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl FromStr for UserId

    §

    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
    ","FromStr","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Hash for UserId

    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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Ord for UserId

    source§

    fn cmp(&self, other: &UserId) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl PartialEq for UserId

    source§

    fn eq(&self, other: &UserId) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl PartialOrd for UserId

    source§

    fn partial_cmp(&self, other: &UserId) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Serialize for UserId

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl SubspaceId for UserId

    source§

    fn successor(&self) -> Option<Self>

    Return the next possible value in the set of all [SubspaceId].\ne.g. the successor of 3 is 4.
    ","SubspaceId","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl UserId

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    \n
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl UserId

    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Convert to byte slice.

    \n
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    \n
    source

    pub fn into_public_key(&self) -> Result<UserPublicKey, SignatureError>

    Convert into UserPublicKey.

    \n

    Fails if the bytes of this UserId are not a valid [ed25519_dalek] curve point.

    \n
    source

    pub fn from_bytes_unchecked(bytes: [u8; 32]) -> Self

    Create from a byte array.

    \n

    Does not check if the byte array are a valid UserPublicKey

    \n
    ",0,"iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Verifier<UserSignature> for UserId

    source§

    fn verify(&self, msg: &[u8], signature: &UserSignature) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message\nbytestring is authentic. Read more
    ","Verifier","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Copy for UserId

    ","Copy","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Eq for UserId

    ","Eq","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl StructuralPartialEq for UserId

    ","StructuralPartialEq","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"]] +"iroh_willow":[["
    source§

    impl AsRef<[u8]> for UserId

    source§

    fn as_ref(&self) -> &[u8] ⓘ

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[u8]>","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl AsRef<[u8; 32]> for UserId

    source§

    fn as_ref(&self) -> &[u8; 32]

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[u8; 32]>","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Clone for UserId

    source§

    fn clone(&self) -> UserId

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Debug for UserId

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Decodable for UserId

    source§

    async fn decode<Producer>(\n producer: &mut Producer\n) -> Result<Self, DecodeError<Producer::Error>>
    where\n Producer: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Decodable for UserId

    source§

    fn decode<Producer>(\n producer: &mut Producer\n) -> Result<Self, DecodeError<Producer::Error>>
    where\n Producer: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Default for UserId

    source§

    fn default() -> UserId

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl<'de> Deserialize<'de> for UserId

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Display for UserId

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Display","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Encodable for UserId

    source§

    async fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Encodable for UserId

    source§

    fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl From<&UserPublicKey> for UserId

    source§

    fn from(value: &UserPublicKey) -> Self

    Converts to this type from the input type.
    ","From<&UserPublicKey>","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl From<[u8; 32]> for UserId

    source§

    fn from(value: [u8; 32]) -> Self

    Converts to this type from the input type.
    ","From<[u8; 32]>","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl From<UserPublicKey> for UserId

    source§

    fn from(value: UserPublicKey) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl From<UserSecretKey> for UserId

    source§

    fn from(value: UserSecretKey) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl FromStr for UserId

    §

    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
    ","FromStr","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Hash for UserId

    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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Ord for UserId

    source§

    fn cmp(&self, other: &UserId) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl PartialEq for UserId

    source§

    fn eq(&self, other: &UserId) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl PartialOrd for UserId

    source§

    fn partial_cmp(&self, other: &UserId) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Serialize for UserId

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl SubspaceId for UserId

    source§

    fn successor(&self) -> Option<Self>

    Return the next possible value in the set of all [SubspaceId].\ne.g. the successor of 3 is 4.
    ","SubspaceId","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl UserId

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    \n
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl UserId

    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Convert to byte slice.

    \n
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    \n
    source

    pub fn into_public_key(&self) -> Result<UserPublicKey, SignatureError>

    Convert into UserPublicKey.

    \n

    Fails if the bytes of this UserId are not a valid [ed25519_dalek] curve point.

    \n
    source

    pub fn from_bytes_unchecked(bytes: [u8; 32]) -> Self

    Create from a byte array.

    \n

    Does not check if the byte array are a valid UserPublicKey

    \n
    ",0,"iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Verifier<UserSignature> for UserId

    source§

    fn verify(&self, msg: &[u8], signature: &UserSignature) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message\nbytestring is authentic. Read more
    ","Verifier","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Copy for UserId

    ","Copy","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl Eq for UserId

    ","Eq","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"],["
    source§

    impl StructuralPartialEq for UserId

    ","StructuralPartialEq","iroh_willow::proto::data_model::SubspaceId","iroh_willow::proto::meadowcap::UserId"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.UserPublicKey.js b/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.UserPublicKey.js index 9b3e39a6f0..f3cf53573c 100644 --- a/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.UserPublicKey.js +++ b/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.UserPublicKey.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh_willow":[["
    source§

    impl Clone for UserPublicKey

    source§

    fn clone(&self) -> UserPublicKey

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Debug for UserPublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Default for UserPublicKey

    source§

    fn default() -> UserPublicKey

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl<'de> Deserialize<'de> for UserPublicKey

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Display for UserPublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Display","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Encodable for UserPublicKey

    source§

    async fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Encodable for UserPublicKey

    source§

    fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl From<&UserSecretKey> for UserPublicKey

    source§

    fn from(value: &UserSecretKey) -> Self

    Converts to this type from the input type.
    ","From<&UserSecretKey>","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl From<UserSecretKey> for UserPublicKey

    source§

    fn from(value: UserSecretKey) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl From<VerifyingKey> for UserPublicKey

    source§

    fn from(value: VerifyingKey) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl FromStr for UserPublicKey

    §

    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
    ","FromStr","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Hash for UserPublicKey

    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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Ord for UserPublicKey

    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\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl PartialEq for UserPublicKey

    source§

    fn eq(&self, other: &UserPublicKey) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl PartialOrd for UserPublicKey

    source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Serialize for UserPublicKey

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl SubspaceId for UserPublicKey

    source§

    fn successor(&self) -> Option<Self>

    Return the next possible value in the set of all [SubspaceId].\ne.g. the successor of 3 is 4.
    ","SubspaceId","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl TryFrom<UserId> for UserPublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: UserId) -> Result<Self, Self::Error>

    Performs the conversion.
    ","TryFrom","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl UserPublicKey

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    \n
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl UserPublicKey

    source

    pub fn verify(\n &self,\n msg: &[u8],\n signature: &UserSignature\n) -> Result<(), SignatureError>

    Verify that a signature matches the msg bytes and was created with the UserSecretKey\nthat corresponds to this UserId.

    \n
    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Get this UserId as a byte slice.

    \n
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    \n
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<Self, SignatureError>

    Create from a slice of bytes.

    \n

    Will return an error if the input bytes do not represent a valid [ed25519_dalek]\ncurve point. Will never fail for a byte array returned from Self::as_bytes.\nSee [VerifyingKey::from_bytes] for details.

    \n
    source

    pub fn id(&self) -> UserId

    Convert into a UserId.

    \n
    ",0,"iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Verifier<UserSignature> for UserPublicKey

    source§

    fn verify(&self, msg: &[u8], signature: &UserSignature) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message\nbytestring is authentic. Read more
    ","Verifier","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Copy for UserPublicKey

    ","Copy","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Eq for UserPublicKey

    ","Eq","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl StructuralPartialEq for UserPublicKey

    ","StructuralPartialEq","iroh_willow::proto::meadowcap::UserPublicKey"]] +"iroh_willow":[["
    source§

    impl Clone for UserPublicKey

    source§

    fn clone(&self) -> UserPublicKey

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Debug for UserPublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Default for UserPublicKey

    source§

    fn default() -> UserPublicKey

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl<'de> Deserialize<'de> for UserPublicKey

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Display for UserPublicKey

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Display","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Encodable for UserPublicKey

    source§

    async fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Encodable for UserPublicKey

    source§

    fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl From<&UserSecretKey> for UserPublicKey

    source§

    fn from(value: &UserSecretKey) -> Self

    Converts to this type from the input type.
    ","From<&UserSecretKey>","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl From<UserSecretKey> for UserPublicKey

    source§

    fn from(value: UserSecretKey) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl From<VerifyingKey> for UserPublicKey

    source§

    fn from(value: VerifyingKey) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl FromStr for UserPublicKey

    §

    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
    ","FromStr","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Hash for UserPublicKey

    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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Ord for UserPublicKey

    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\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl PartialEq for UserPublicKey

    source§

    fn eq(&self, other: &UserPublicKey) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl PartialOrd for UserPublicKey

    source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Serialize for UserPublicKey

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl SubspaceId for UserPublicKey

    source§

    fn successor(&self) -> Option<Self>

    Return the next possible value in the set of all [SubspaceId].\ne.g. the successor of 3 is 4.
    ","SubspaceId","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl TryFrom<UserId> for UserPublicKey

    §

    type Error = Error

    The type returned in the event of a conversion error.
    source§

    fn try_from(value: UserId) -> Result<Self, Self::Error>

    Performs the conversion.
    ","TryFrom","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl UserPublicKey

    source

    pub const LENGTH: usize = 32usize

    Length of the byte encoding of Self.

    \n
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl UserPublicKey

    source

    pub fn verify(\n &self,\n msg: &[u8],\n signature: &UserSignature\n) -> Result<(), SignatureError>

    Verify that a signature matches the msg bytes and was created with the UserSecretKey\nthat corresponds to this UserId.

    \n
    source

    pub fn as_bytes(&self) -> &[u8; 32]

    Get this UserId as a byte slice.

    \n
    source

    pub fn to_bytes(&self) -> [u8; 32]

    Convert into a byte array.

    \n
    source

    pub fn from_bytes(bytes: &[u8; 32]) -> Result<Self, SignatureError>

    Create from a slice of bytes.

    \n

    Will return an error if the input bytes do not represent a valid [ed25519_dalek]\ncurve point. Will never fail for a byte array returned from Self::as_bytes.\nSee [VerifyingKey::from_bytes] for details.

    \n
    source

    pub fn id(&self) -> UserId

    Convert into a UserId.

    \n
    ",0,"iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Verifier<UserSignature> for UserPublicKey

    source§

    fn verify(&self, msg: &[u8], signature: &UserSignature) -> Result<(), Error>

    Use Self to verify that the provided signature for a given message\nbytestring is authentic. Read more
    ","Verifier","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Copy for UserPublicKey

    ","Copy","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl Eq for UserPublicKey

    ","Eq","iroh_willow::proto::meadowcap::UserPublicKey"],["
    source§

    impl StructuralPartialEq for UserPublicKey

    ","StructuralPartialEq","iroh_willow::proto::meadowcap::UserPublicKey"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.UserSignature.js b/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.UserSignature.js index f6ee103559..c485501391 100644 --- a/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.UserSignature.js +++ b/pr/2616/docs/type.impl/iroh_willow/proto/keys/struct.UserSignature.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh_willow":[["
    source§

    impl Clone for UserSignature

    source§

    fn clone(&self) -> UserSignature

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Debug for UserSignature

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Decodable for UserSignature

    source§

    async fn decode<Producer>(\n producer: &mut Producer\n) -> Result<Self, DecodeError<Producer::Error>>
    where\n Producer: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Decodable for UserSignature

    source§

    fn decode<Producer>(\n producer: &mut Producer\n) -> Result<Self, DecodeError<Producer::Error>>
    where\n Producer: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Deref for UserSignature

    §

    type Target = Signature

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    ","Deref","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl<'de> Deserialize<'de> for UserSignature

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Display for UserSignature

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Display","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Encodable for UserSignature

    source§

    async fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Encodable for UserSignature

    source§

    fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl From<Signature> for UserSignature

    source§

    fn from(value: Signature) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Hash for UserSignature

    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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Ord for UserSignature

    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\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl PartialEq for UserSignature

    source§

    fn eq(&self, other: &UserSignature) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl PartialOrd for UserSignature

    source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Serialize for UserSignature

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl UserSignature

    source

    pub fn from_bytes(bytes: [u8; 64]) -> Self

    Create from a byte array.

    \n
    ",0,"iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl UserSignature

    source

    pub const LENGTH: usize = 64usize

    Length of the byte encoding of Self.

    \n
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Eq for UserSignature

    ","Eq","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl StructuralPartialEq for UserSignature

    ","StructuralPartialEq","iroh_willow::proto::meadowcap::UserSignature"]] +"iroh_willow":[["
    source§

    impl Clone for UserSignature

    source§

    fn clone(&self) -> UserSignature

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Debug for UserSignature

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Decodable for UserSignature

    source§

    async fn decode<Producer>(\n producer: &mut Producer\n) -> Result<Self, DecodeError<Producer::Error>>
    where\n Producer: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Decodable for UserSignature

    source§

    fn decode<Producer>(\n producer: &mut Producer\n) -> Result<Self, DecodeError<Producer::Error>>
    where\n Producer: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Deref for UserSignature

    §

    type Target = Signature

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    ","Deref","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl<'de> Deserialize<'de> for UserSignature

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
    where\n __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Display for UserSignature

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Display","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Encodable for UserSignature

    source§

    async fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Encodable for UserSignature

    source§

    fn encode<Consumer>(\n &self,\n consumer: &mut Consumer\n) -> Result<(), Consumer::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl From<Signature> for UserSignature

    source§

    fn from(value: Signature) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Hash for UserSignature

    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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Ord for UserSignature

    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\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl PartialEq for UserSignature

    source§

    fn eq(&self, other: &UserSignature) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl PartialOrd for UserSignature

    source§

    fn partial_cmp(&self, other: &Self) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    ","PartialOrd","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Serialize for UserSignature

    source§

    fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
    where\n __S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl UserSignature

    source

    pub fn from_bytes(bytes: [u8; 64]) -> Self

    Create from a byte array.

    \n
    ",0,"iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl UserSignature

    source

    pub const LENGTH: usize = 64usize

    Length of the byte encoding of Self.

    \n
    source

    pub fn fmt_short(&self) -> String

    Convert to a base32 string limited to the first 10 bytes for a friendly string\nrepresentation of the key.

    \n
    ",0,"iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl Eq for UserSignature

    ","Eq","iroh_willow::proto::meadowcap::UserSignature"],["
    source§

    impl StructuralPartialEq for UserSignature

    ","StructuralPartialEq","iroh_willow::proto::meadowcap::UserSignature"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/iroh_willow/proto/meadowcap/serde_encoding/struct.SerdeMcCapability.js b/pr/2616/docs/type.impl/iroh_willow/proto/meadowcap/serde_encoding/struct.SerdeMcCapability.js index 6f229c0101..75656bedc4 100644 --- a/pr/2616/docs/type.impl/iroh_willow/proto/meadowcap/serde_encoding/struct.SerdeMcCapability.js +++ b/pr/2616/docs/type.impl/iroh_willow/proto/meadowcap/serde_encoding/struct.SerdeMcCapability.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh_willow":[["
    source§

    impl Clone for SerdeMcCapability

    source§

    fn clone(&self) -> SerdeMcCapability

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl Debug for SerdeMcCapability

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl Deref for SerdeMcCapability

    §

    type Target = McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    ","Deref","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl<'de> Deserialize<'de> for SerdeMcCapability

    source§

    fn deserialize<D>(deserializer: D) -> Result<SerdeMcCapability, D::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability

    source§

    fn from(value: McCapability) -> Self

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl Hash for SerdeMcCapability

    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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl PartialEq for SerdeMcCapability

    source§

    fn eq(&self, other: &SerdeMcCapability) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl Serialize for SerdeMcCapability

    source§

    fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl Eq for SerdeMcCapability

    ","Eq","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl StructuralPartialEq for SerdeMcCapability

    ","StructuralPartialEq","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"]] +"iroh_willow":[["
    source§

    impl Clone for SerdeMcCapability

    source§

    fn clone(&self) -> SerdeMcCapability

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl Debug for SerdeMcCapability

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl Deref for SerdeMcCapability

    §

    type Target = McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    ","Deref","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl<'de> Deserialize<'de> for SerdeMcCapability

    source§

    fn deserialize<D>(deserializer: D) -> Result<SerdeMcCapability, D::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl From<McCapability<MAX_COMPONENT_LENGTH, MAX_COMPONENT_COUNT, MAX_PATH_LENGTH, NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcCapability

    source§

    fn from(value: McCapability) -> Self

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl Hash for SerdeMcCapability

    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\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl PartialEq for SerdeMcCapability

    source§

    fn eq(&self, other: &SerdeMcCapability) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl Serialize for SerdeMcCapability

    source§

    fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl Eq for SerdeMcCapability

    ","Eq","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"],["
    source§

    impl StructuralPartialEq for SerdeMcCapability

    ","StructuralPartialEq","iroh_willow::proto::data_model::SerdeWriteCapability","iroh_willow::proto::wgps::messages::StaticToken","iroh_willow::proto::wgps::messages::ReadCapability"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/iroh_willow/proto/meadowcap/serde_encoding/struct.SerdeMcSubspaceCapability.js b/pr/2616/docs/type.impl/iroh_willow/proto/meadowcap/serde_encoding/struct.SerdeMcSubspaceCapability.js index 919d1a5694..764e23c878 100644 --- a/pr/2616/docs/type.impl/iroh_willow/proto/meadowcap/serde_encoding/struct.SerdeMcSubspaceCapability.js +++ b/pr/2616/docs/type.impl/iroh_willow/proto/meadowcap/serde_encoding/struct.SerdeMcSubspaceCapability.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh_willow":[["
    source§

    impl Clone for SerdeMcSubspaceCapability

    source§

    fn clone(&self) -> SerdeMcSubspaceCapability

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::wgps::messages::SubspaceCapability"],["
    source§

    impl Debug for SerdeMcSubspaceCapability

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::wgps::messages::SubspaceCapability"],["
    source§

    impl Deref for SerdeMcSubspaceCapability

    §

    type Target = McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    ","Deref","iroh_willow::proto::wgps::messages::SubspaceCapability"],["
    source§

    impl<'de> Deserialize<'de> for SerdeMcSubspaceCapability

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<SerdeMcSubspaceCapability, D::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::messages::SubspaceCapability"],["
    source§

    impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability

    source§

    fn from(value: McSubspaceCapability) -> Self

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::wgps::messages::SubspaceCapability"],["
    source§

    impl Serialize for SerdeMcSubspaceCapability

    source§

    fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::messages::SubspaceCapability"]] +"iroh_willow":[["
    source§

    impl Clone for SerdeMcSubspaceCapability

    source§

    fn clone(&self) -> SerdeMcSubspaceCapability

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::wgps::messages::SubspaceCapability"],["
    source§

    impl Debug for SerdeMcSubspaceCapability

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::wgps::messages::SubspaceCapability"],["
    source§

    impl Deref for SerdeMcSubspaceCapability

    §

    type Target = McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &Self::Target

    Dereferences the value.
    ","Deref","iroh_willow::proto::wgps::messages::SubspaceCapability"],["
    source§

    impl<'de> Deserialize<'de> for SerdeMcSubspaceCapability

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<SerdeMcSubspaceCapability, D::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::messages::SubspaceCapability"],["
    source§

    impl From<McSubspaceCapability<NamespaceId, NamespaceSignature, UserId, UserSignature>> for SerdeMcSubspaceCapability

    source§

    fn from(value: McSubspaceCapability) -> Self

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::wgps::messages::SubspaceCapability"],["
    source§

    impl Serialize for SerdeMcSubspaceCapability

    source§

    fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::messages::SubspaceCapability"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/iroh_willow/proto/meadowcap/type.McCapability.js b/pr/2616/docs/type.impl/iroh_willow/proto/meadowcap/type.McCapability.js index cc1a8e39b8..7e50eb3e35 100644 --- a/pr/2616/docs/type.impl/iroh_willow/proto/meadowcap/type.McCapability.js +++ b/pr/2616/docs/type.impl/iroh_willow/proto/meadowcap/type.McCapability.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh_willow":[["
    source§

    impl From<SerdeMcCapability> for McCapability

    source§

    fn from(value: SerdeMcCapability) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::data_model::WriteCapability","iroh_willow::proto::meadowcap::ReadCapability","iroh_willow::proto::meadowcap::WriteCapability"]] +"iroh_willow":[["
    source§

    impl From<SerdeMcCapability> for McCapability

    source§

    fn from(value: SerdeMcCapability) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::data_model::WriteCapability","iroh_willow::proto::meadowcap::ReadCapability","iroh_willow::proto::meadowcap::WriteCapability"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/iroh_willow/proto/meadowcap/type.McSubspaceCapability.js b/pr/2616/docs/type.impl/iroh_willow/proto/meadowcap/type.McSubspaceCapability.js index 0983685f4a..b7e025180c 100644 --- a/pr/2616/docs/type.impl/iroh_willow/proto/meadowcap/type.McSubspaceCapability.js +++ b/pr/2616/docs/type.impl/iroh_willow/proto/meadowcap/type.McSubspaceCapability.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh_willow":[["
    source§

    impl From<SerdeMcSubspaceCapability> for McSubspaceCapability

    source§

    fn from(value: SerdeMcSubspaceCapability) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::meadowcap::SubspaceCapability"]] +"iroh_willow":[["
    source§

    impl From<SerdeMcSubspaceCapability> for McSubspaceCapability

    source§

    fn from(value: SerdeMcSubspaceCapability) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::meadowcap::SubspaceCapability"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/meadowcap/mc_authorisation_token/struct.McAuthorisationToken.js b/pr/2616/docs/type.impl/meadowcap/mc_authorisation_token/struct.McAuthorisationToken.js index c727d4ffc6..bfec89c7eb 100644 --- a/pr/2616/docs/type.impl/meadowcap/mc_authorisation_token/struct.McAuthorisationToken.js +++ b/pr/2616/docs/type.impl/meadowcap/mc_authorisation_token/struct.McAuthorisationToken.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh_willow":[["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature, PD> AuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, UserPublicKey, PD> for McAuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n UserPublicKey: SubspaceId + Encodable + Verifier<UserSignature>,\n NamespaceSignature: Encodable + Clone,\n UserSignature: Encodable + Clone,\n PD: PayloadDigest + Encodable,

    §

    fn is_authorised_write(\n &self,\n entry: &Entry<MCL, MCC, MPL, NamespacePublicKey, UserPublicKey, PD>\n) -> bool

    Determine whether this type (nominally a AuthorisationToken) is able to prove write permission for a given [Entry].
    ","AuthorisationToken","iroh_willow::proto::meadowcap::McAuthorisationToken"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Clone for McAuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Clone + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Clone + Encodable,\n UserPublicKey: Clone + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Clone + Encodable,

    §

    fn clone(\n &self\n) -> McAuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::meadowcap::McAuthorisationToken"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Debug for McAuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Debug + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Debug + Encodable + Clone,\n UserPublicKey: Debug + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Debug + Encodable + Clone,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::meadowcap::McAuthorisationToken"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> McAuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n UserPublicKey: SubspaceId + Encodable + Verifier<UserSignature>,\n NamespaceSignature: Encodable + Clone,\n UserSignature: Encodable + Clone,

    pub fn new(\n capability: McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>,\n signature: UserSignature\n) -> McAuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>

    ",0,"iroh_willow::proto::meadowcap::McAuthorisationToken"]] +"iroh_willow":[["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature, PD> AuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, UserPublicKey, PD> for McAuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n UserPublicKey: SubspaceId + Encodable + Verifier<UserSignature>,\n NamespaceSignature: Encodable + Clone,\n UserSignature: Encodable + Clone,\n PD: PayloadDigest + Encodable,

    §

    fn is_authorised_write(\n &self,\n entry: &Entry<MCL, MCC, MPL, NamespacePublicKey, UserPublicKey, PD>\n) -> bool

    Determine whether this type (nominally a AuthorisationToken) is able to prove write permission for a given [Entry].
    ","AuthorisationToken","iroh_willow::proto::meadowcap::McAuthorisationToken"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Clone for McAuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Clone + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Clone + Encodable,\n UserPublicKey: Clone + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Clone + Encodable,

    §

    fn clone(\n &self\n) -> McAuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::meadowcap::McAuthorisationToken"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Debug for McAuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Debug + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Debug + Encodable + Clone,\n UserPublicKey: Debug + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Debug + Encodable + Clone,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::meadowcap::McAuthorisationToken"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> McAuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n UserPublicKey: SubspaceId + Encodable + Verifier<UserSignature>,\n NamespaceSignature: Encodable + Clone,\n UserSignature: Encodable + Clone,

    pub fn new(\n capability: McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>,\n signature: UserSignature\n) -> McAuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>

    ",0,"iroh_willow::proto::meadowcap::McAuthorisationToken"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/meadowcap/mc_capability/enum.McCapability.js b/pr/2616/docs/type.impl/meadowcap/mc_capability/enum.McCapability.js index fa07a3561f..f017268060 100644 --- a/pr/2616/docs/type.impl/meadowcap/mc_capability/enum.McCapability.js +++ b/pr/2616/docs/type.impl/meadowcap/mc_capability/enum.McCapability.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh_willow":[["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Clone for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Clone + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Clone + Encodable,\n UserPublicKey: Clone + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Clone + Encodable,

    §

    fn clone(\n &self\n) -> McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Debug for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Debug + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Debug + Encodable + Clone,\n UserPublicKey: Debug + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Debug + Encodable + Clone,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Hash for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Hash + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Hash + Encodable + Clone,\n UserPublicKey: Hash + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Hash + Encodable + Clone,

    §

    fn hash<__H>(&self, state: &mut __H)
    where\n __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n UserPublicKey: SubspaceId + Encodable + Verifier<UserSignature>,\n NamespaceSignature: Encodable + Clone,\n UserSignature: Encodable + Clone,

    pub fn new_communal(\n namespace_key: NamespacePublicKey,\n user_key: UserPublicKey,\n access_mode: AccessMode\n) -> Result<McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, NamespaceIsNotCommunalError<NamespacePublicKey>>

    Create a new communal capability granting access to the [SubspaceId] corresponding to the given UserPublicKey, or return an error if the namespace key is not communal.

    \n

    pub fn new_owned<NamespaceSecret>(\n namespace_key: NamespacePublicKey,\n namespace_secret: &NamespaceSecret,\n user_key: UserPublicKey,\n access_mode: AccessMode\n) -> Result<McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, OwnedCapabilityCreationError<NamespacePublicKey>>
    where\n NamespaceSecret: Signer<NamespaceSignature>,

    Create a new owned capability granting access to the full area of the namespace to the given UserPublicKey.

    \n

    pub fn access_mode(&self) -> AccessMode

    The kind of access this capability grants.

    \n

    pub fn receiver(&self) -> &UserPublicKey

    The user to whom this capability grants access.

    \n

    pub fn granted_namespace(&self) -> &NamespacePublicKey

    The namespace for which this capability grants access.

    \n

    pub fn granted_area(&self) -> Area<MCL, MCC, MPL, UserPublicKey>

    The [Area] for which this capability grants access.

    \n

    pub fn delegations(&self) -> impl ExactSizeIterator

    Return a slice of all [Delegation]s made to this capability.

    \n

    pub fn delegations_len(&self) -> usize

    Return the number of delegations present on this capability.

    \n

    pub fn progenitor(&self) -> &UserPublicKey

    Return the public key of the very first user this capability was issued to.

    \n

    pub fn delegate<UserSecretKey>(\n &self,\n secret_key: &UserSecretKey,\n new_user: &UserPublicKey,\n new_area: &Area<MCL, MCC, MPL, UserPublicKey>\n) -> Result<McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, FailedDelegationError<MCL, MCC, MPL, UserPublicKey>>
    where\n UserSecretKey: Signer<UserSignature>,

    Delegate this capability to a new UserPublicKey for a given [willow_data_model::grouping::Area].\nWill fail if the area is not included by this capability’s granted area, or if the given secret key does not correspond to the capability’s receiver.

    \n

    pub fn append_existing_delegation(\n &mut self,\n delegation: Delegation<MCL, MCC, MPL, UserPublicKey, UserSignature>\n) -> Result<(), InvalidDelegationError<MCL, MCC, MPL, UserPublicKey, UserSignature>>

    Append an existing delegation to an existing capability, or return an error if the delegation is invalid.

    \n

    pub unsafe fn authorisation_token_unchecked<UserSecret, PD>(\n &self,\n entry: Entry<MCL, MCC, MPL, NamespacePublicKey, UserPublicKey, PD>,\n secret: UserSecret\n) -> Result<McAuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, NotAWriteCapabilityError>
    where\n UserSecret: Signer<UserSignature>,\n PD: PayloadDigest + Encodable,

    Return a new AuthorisationToken without checking if the resulting signature is correct (e.g. because you are going to immediately do that by constructing an [willow_data_model::AuthorisedEntry]).

    \n
    §Safety
    \n

    This function must be called with this capability’s receiver’s corresponding secret key, or a token with an incorrect signature will be produced.

    \n

    pub fn authorisation_token<UserSecret, PD>(\n &self,\n entry: &Entry<MCL, MCC, MPL, NamespacePublicKey, UserPublicKey, PD>,\n secret: UserSecret\n) -> Result<McAuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, Either<NotAWriteCapabilityError, Error>>
    where\n UserSecret: Signer<UserSignature>,\n PD: PayloadDigest + Encodable,

    Return a new [McAuthorisationToken], or an error if the resulting signature was not for the capability’s receiver.

    \n
    ",0,"iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> PartialEq for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: PartialEq + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: PartialEq + Encodable + Clone,\n UserPublicKey: PartialEq + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: PartialEq + Encodable + Clone,

    §

    fn eq(\n &self,\n other: &McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>\n) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> RelativeDecodable<Area<MCL, MCC, MPL, UserPublicKey>> for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Decodable + Verifier<NamespaceSignature> + IsCommunal,\n UserPublicKey: SubspaceId + Encodable + Decodable + Verifier<UserSignature>,\n NamespaceSignature: Encodable + Decodable + Clone,\n UserSignature: Encodable + Decodable + Clone,

    §

    async fn relative_decode<Producer>(\n out: &Area<MCL, MCC, MPL, UserPublicKey>,\n producer: &mut Producer\n) -> Result<McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, DecodeError<<Producer as Producer>::Error>>
    where\n Producer: BulkProducer<Item = u8>,\n McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>: Sized,

    Decode a value (relative to a reference value) to a bytestring in a specific way that is best described over at willowprotocol.org.
    ","RelativeDecodable>","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> RelativeDecodable<Area<MCL, MCC, MPL, UserPublicKey>> for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Decodable + Verifier<NamespaceSignature> + IsCommunal,\n UserPublicKey: SubspaceId + Encodable + Decodable + Verifier<UserSignature>,\n NamespaceSignature: Encodable + Decodable + Clone,\n UserSignature: Encodable + Decodable + Clone,

    §

    fn relative_decode<Producer>(\n out: &Area<MCL, MCC, MPL, UserPublicKey>,\n producer: &mut Producer\n) -> Result<McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, DecodeError<<Producer as Producer>::Error>>
    where\n Producer: BulkProducer<Item = u8>,\n McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>: Sized,

    Decode a value (relative to a reference value) to a bytestring in a specific way that is best described over at willowprotocol.org.
    ","RelativeDecodable>","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> RelativeEncodable<Area<MCL, MCC, MPL, UserPublicKey>> for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n UserPublicKey: SubspaceId + Encodable + Encodable + Verifier<UserSignature>,\n NamespaceSignature: Encodable + Encodable + Clone,\n UserSignature: Encodable + Encodable + Clone,

    §

    async fn relative_encode<Consumer>(\n &self,\n out: &Area<MCL, MCC, MPL, UserPublicKey>,\n consumer: &mut Consumer\n) -> Result<(), <Consumer as Consumer>::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value (relative to a reference value) to a bytestring in a specific way that is best described over at willowprotocol.org.
    ","RelativeEncodable>","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> RelativeEncodable<Area<MCL, MCC, MPL, UserPublicKey>> for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n UserPublicKey: SubspaceId + Encodable + Verifier<UserSignature>,\n NamespaceSignature: Encodable + Clone,\n UserSignature: Encodable + Clone,

    §

    fn relative_encode<Consumer>(\n &self,\n out: &Area<MCL, MCC, MPL, UserPublicKey>,\n consumer: &mut Consumer\n) -> Result<(), <Consumer as Consumer>::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value (relative to a reference value) to a bytestring in a specific way that is best described over at willowprotocol.org.
    ","RelativeEncodable>","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Eq for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Eq + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Eq + Encodable + Clone,\n UserPublicKey: Eq + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Eq + Encodable + Clone,

    ","Eq","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> StructuralPartialEq for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n UserPublicKey: SubspaceId + Encodable + Verifier<UserSignature>,\n NamespaceSignature: Encodable + Clone,\n UserSignature: Encodable + Clone,

    ","StructuralPartialEq","iroh_willow::proto::meadowcap::McCapability"]] +"iroh_willow":[["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Clone for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Clone + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Clone + Encodable,\n UserPublicKey: Clone + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Clone + Encodable,

    §

    fn clone(\n &self\n) -> McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Debug for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Debug + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Debug + Encodable + Clone,\n UserPublicKey: Debug + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Debug + Encodable + Clone,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Hash for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Hash + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Hash + Encodable + Clone,\n UserPublicKey: Hash + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Hash + Encodable + Clone,

    §

    fn hash<__H>(&self, state: &mut __H)
    where\n __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n UserPublicKey: SubspaceId + Encodable + Verifier<UserSignature>,\n NamespaceSignature: Encodable + Clone,\n UserSignature: Encodable + Clone,

    pub fn new_communal(\n namespace_key: NamespacePublicKey,\n user_key: UserPublicKey,\n access_mode: AccessMode\n) -> Result<McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, NamespaceIsNotCommunalError<NamespacePublicKey>>

    Create a new communal capability granting access to the [SubspaceId] corresponding to the given UserPublicKey, or return an error if the namespace key is not communal.

    \n

    pub fn new_owned<NamespaceSecret>(\n namespace_key: NamespacePublicKey,\n namespace_secret: &NamespaceSecret,\n user_key: UserPublicKey,\n access_mode: AccessMode\n) -> Result<McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, OwnedCapabilityCreationError<NamespacePublicKey>>
    where\n NamespaceSecret: Signer<NamespaceSignature>,

    Create a new owned capability granting access to the full area of the namespace to the given UserPublicKey.

    \n

    pub fn access_mode(&self) -> AccessMode

    The kind of access this capability grants.

    \n

    pub fn receiver(&self) -> &UserPublicKey

    The user to whom this capability grants access.

    \n

    pub fn granted_namespace(&self) -> &NamespacePublicKey

    The namespace for which this capability grants access.

    \n

    pub fn granted_area(&self) -> Area<MCL, MCC, MPL, UserPublicKey>

    The [Area] for which this capability grants access.

    \n

    pub fn delegations(&self) -> impl ExactSizeIterator

    Return a slice of all [Delegation]s made to this capability.

    \n

    pub fn delegations_len(&self) -> usize

    Return the number of delegations present on this capability.

    \n

    pub fn progenitor(&self) -> &UserPublicKey

    Return the public key of the very first user this capability was issued to.

    \n

    pub fn delegate<UserSecretKey>(\n &self,\n secret_key: &UserSecretKey,\n new_user: &UserPublicKey,\n new_area: &Area<MCL, MCC, MPL, UserPublicKey>\n) -> Result<McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, FailedDelegationError<MCL, MCC, MPL, UserPublicKey>>
    where\n UserSecretKey: Signer<UserSignature>,

    Delegate this capability to a new UserPublicKey for a given [willow_data_model::grouping::Area].\nWill fail if the area is not included by this capability’s granted area, or if the given secret key does not correspond to the capability’s receiver.

    \n

    pub fn append_existing_delegation(\n &mut self,\n delegation: Delegation<MCL, MCC, MPL, UserPublicKey, UserSignature>\n) -> Result<(), InvalidDelegationError<MCL, MCC, MPL, UserPublicKey, UserSignature>>

    Append an existing delegation to an existing capability, or return an error if the delegation is invalid.

    \n

    pub unsafe fn authorisation_token_unchecked<UserSecret, PD>(\n &self,\n entry: Entry<MCL, MCC, MPL, NamespacePublicKey, UserPublicKey, PD>,\n secret: UserSecret\n) -> Result<McAuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, NotAWriteCapabilityError>
    where\n UserSecret: Signer<UserSignature>,\n PD: PayloadDigest + Encodable,

    Return a new AuthorisationToken without checking if the resulting signature is correct (e.g. because you are going to immediately do that by constructing an [willow_data_model::AuthorisedEntry]).

    \n
    §Safety
    \n

    This function must be called with this capability’s receiver’s corresponding secret key, or a token with an incorrect signature will be produced.

    \n

    pub fn authorisation_token<UserSecret, PD>(\n &self,\n entry: &Entry<MCL, MCC, MPL, NamespacePublicKey, UserPublicKey, PD>,\n secret: UserSecret\n) -> Result<McAuthorisationToken<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, Either<NotAWriteCapabilityError, Error>>
    where\n UserSecret: Signer<UserSignature>,\n PD: PayloadDigest + Encodable,

    Return a new [McAuthorisationToken], or an error if the resulting signature was not for the capability’s receiver.

    \n
    ",0,"iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> PartialEq for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: PartialEq + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: PartialEq + Encodable + Clone,\n UserPublicKey: PartialEq + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: PartialEq + Encodable + Clone,

    §

    fn eq(\n &self,\n other: &McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>\n) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> RelativeDecodable<Area<MCL, MCC, MPL, UserPublicKey>> for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Decodable + Verifier<NamespaceSignature> + IsCommunal,\n UserPublicKey: SubspaceId + Encodable + Decodable + Verifier<UserSignature>,\n NamespaceSignature: Encodable + Decodable + Clone,\n UserSignature: Encodable + Decodable + Clone,

    §

    async fn relative_decode<Producer>(\n out: &Area<MCL, MCC, MPL, UserPublicKey>,\n producer: &mut Producer\n) -> Result<McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, DecodeError<<Producer as Producer>::Error>>
    where\n Producer: BulkProducer<Item = u8>,\n McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>: Sized,

    Decode a value (relative to a reference value) to a bytestring in a specific way that is best described over at willowprotocol.org.
    ","RelativeDecodable>","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> RelativeDecodable<Area<MCL, MCC, MPL, UserPublicKey>> for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Decodable + Verifier<NamespaceSignature> + IsCommunal,\n UserPublicKey: SubspaceId + Encodable + Decodable + Verifier<UserSignature>,\n NamespaceSignature: Encodable + Decodable + Clone,\n UserSignature: Encodable + Decodable + Clone,

    §

    fn relative_decode<Producer>(\n out: &Area<MCL, MCC, MPL, UserPublicKey>,\n producer: &mut Producer\n) -> Result<McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, DecodeError<<Producer as Producer>::Error>>
    where\n Producer: BulkProducer<Item = u8>,\n McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>: Sized,

    Decode a value (relative to a reference value) to a bytestring in a specific way that is best described over at willowprotocol.org.
    ","RelativeDecodable>","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> RelativeEncodable<Area<MCL, MCC, MPL, UserPublicKey>> for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n UserPublicKey: SubspaceId + Encodable + Encodable + Verifier<UserSignature>,\n NamespaceSignature: Encodable + Encodable + Clone,\n UserSignature: Encodable + Encodable + Clone,

    §

    async fn relative_encode<Consumer>(\n &self,\n out: &Area<MCL, MCC, MPL, UserPublicKey>,\n consumer: &mut Consumer\n) -> Result<(), <Consumer as Consumer>::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value (relative to a reference value) to a bytestring in a specific way that is best described over at willowprotocol.org.
    ","RelativeEncodable>","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> RelativeEncodable<Area<MCL, MCC, MPL, UserPublicKey>> for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n UserPublicKey: SubspaceId + Encodable + Verifier<UserSignature>,\n NamespaceSignature: Encodable + Clone,\n UserSignature: Encodable + Clone,

    §

    fn relative_encode<Consumer>(\n &self,\n out: &Area<MCL, MCC, MPL, UserPublicKey>,\n consumer: &mut Consumer\n) -> Result<(), <Consumer as Consumer>::Error>
    where\n Consumer: BulkConsumer<Item = u8>,

    Encode a value (relative to a reference value) to a bytestring in a specific way that is best described over at willowprotocol.org.
    ","RelativeEncodable>","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Eq for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Eq + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Eq + Encodable + Clone,\n UserPublicKey: Eq + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Eq + Encodable + Clone,

    ","Eq","iroh_willow::proto::meadowcap::McCapability"],["
    §

    impl<const MCL: usize, const MCC: usize, const MPL: usize, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> StructuralPartialEq for McCapability<MCL, MCC, MPL, NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n UserPublicKey: SubspaceId + Encodable + Verifier<UserSignature>,\n NamespaceSignature: Encodable + Clone,\n UserSignature: Encodable + Clone,

    ","StructuralPartialEq","iroh_willow::proto::meadowcap::McCapability"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/meadowcap/mc_subspace_capability/struct.McSubspaceCapability.js b/pr/2616/docs/type.impl/meadowcap/mc_subspace_capability/struct.McSubspaceCapability.js index 2fd642158a..c3c4cd5ca6 100644 --- a/pr/2616/docs/type.impl/meadowcap/mc_subspace_capability/struct.McSubspaceCapability.js +++ b/pr/2616/docs/type.impl/meadowcap/mc_subspace_capability/struct.McSubspaceCapability.js @@ -1,3 +1,3 @@ (function() {var type_impls = { -"iroh_willow":[["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Clone for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Clone + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Clone + Encodable,\n UserPublicKey: Clone + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Clone + Encodable,

    §

    fn clone(\n &self\n) -> McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Debug for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Debug + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Debug + Encodable + Clone,\n UserPublicKey: Debug + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Debug + Encodable + Clone,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Decodable for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Decodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Encodable + Decodable + Clone,\n UserPublicKey: SubspaceId + Encodable + Decodable + Verifier<UserSignature>,\n UserSignature: Encodable + Decodable + Clone,

    §

    async fn decode<P>(\n producer: &mut P\n) -> Result<McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, DecodeError<<P as Producer>::Error>>
    where\n P: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Decodable for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Decodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Encodable + Decodable + Clone,\n UserPublicKey: SubspaceId + Encodable + Decodable + Verifier<UserSignature>,\n UserSignature: Encodable + Decodable + Clone,

    §

    fn decode<P>(\n producer: &mut P\n) -> Result<McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, DecodeError<<P as Producer>::Error>>
    where\n P: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Encodable for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Encodable + Encodable + Clone,\n UserPublicKey: SubspaceId + Encodable + Encodable + Verifier<UserSignature>,\n UserSignature: Encodable + Encodable + Clone,

    §

    async fn encode<C>(\n &self,\n consumer: &mut C\n) -> Result<(), <C as Consumer>::Error>
    where\n C: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Encodable for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Encodable + Clone,\n UserPublicKey: SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Encodable + Clone,

    §

    fn encode<C>(&self, consumer: &mut C) -> Result<(), <C as Consumer>::Error>
    where\n C: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Hash for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Hash + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Hash + Encodable + Clone,\n UserPublicKey: Hash + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Hash + Encodable + Clone,

    §

    fn hash<__H>(&self, state: &mut __H)
    where\n __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Encodable + Clone,\n UserPublicKey: SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Encodable + Clone,

    pub fn new<NamespaceSecret>(\n namespace_key: NamespacePublicKey,\n namespace_secret: &NamespaceSecret,\n user_key: UserPublicKey\n) -> Result<McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, Error>
    where\n NamespaceSecret: Signer<NamespaceSignature>,

    Generate a new [McSubspaceCapability] for a given user, or return an error if the given namespace secret is incorrect.

    \n

    pub fn from_existing(\n namespace_key: NamespacePublicKey,\n user_key: UserPublicKey,\n initial_authorisation: NamespaceSignature\n) -> Result<McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, Error>

    Instantiate an [McSubspaceCapability] using an existing authorisation (e.g. one received over the network), or return an error if the signature was not created by the namespace key.

    \n

    pub fn receiver(&self) -> &UserPublicKey

    The user to whom this capability grants access.

    \n

    Definition

    \n

    pub fn granted_namespace(&self) -> &NamespacePublicKey

    The namespace for which this capability grants access.

    \n

    Definition

    \n

    pub fn delegate<UserSecretKey>(\n &self,\n secret_key: &UserSecretKey,\n new_user: &UserPublicKey\n) -> Result<McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, Error>
    where\n UserSecretKey: Signer<UserSignature>,

    Delegate this subspace capability to a new UserPublicKey.\nWill fail if the given secret key does not correspond to the subspace capability’s receiver.

    \n

    pub fn append_existing_delegation(\n &mut self,\n delegation: SubspaceDelegation<UserPublicKey, UserSignature>\n) -> Result<(), Error>

    Append an existing delegation to an existing capability, or return an error if the delegation is invalid.

    \n

    pub fn delegations(\n &self\n) -> impl Iterator<Item = &SubspaceDelegation<UserPublicKey, UserSignature>>

    Return a slice of all [SubspaceDelegation]s made to this capability.

    \n
    ",0,"iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> PartialEq for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: PartialEq + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: PartialEq + Encodable + Clone,\n UserPublicKey: PartialEq + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: PartialEq + Encodable + Clone,

    §

    fn eq(\n &self,\n other: &McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>\n) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Eq for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Eq + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Eq + Encodable + Clone,\n UserPublicKey: Eq + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Eq + Encodable + Clone,

    ","Eq","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> StructuralPartialEq for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Encodable + Clone,\n UserPublicKey: SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Encodable + Clone,

    ","StructuralPartialEq","iroh_willow::proto::meadowcap::McSubspaceCapability"]] +"iroh_willow":[["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Clone for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Clone + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Clone + Encodable,\n UserPublicKey: Clone + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Clone + Encodable,

    §

    fn clone(\n &self\n) -> McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Debug for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Debug + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Debug + Encodable + Clone,\n UserPublicKey: Debug + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Debug + Encodable + Clone,

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Decodable for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Decodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Encodable + Decodable + Clone,\n UserPublicKey: SubspaceId + Encodable + Decodable + Verifier<UserSignature>,\n UserSignature: Encodable + Decodable + Clone,

    §

    async fn decode<P>(\n producer: &mut P\n) -> Result<McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, DecodeError<<P as Producer>::Error>>
    where\n P: BulkProducer<Item = u8>,

    Decade a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Decodable for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Decodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Encodable + Decodable + Clone,\n UserPublicKey: SubspaceId + Encodable + Decodable + Verifier<UserSignature>,\n UserSignature: Encodable + Decodable + Clone,

    §

    fn decode<P>(\n producer: &mut P\n) -> Result<McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, DecodeError<<P as Producer>::Error>>
    where\n P: BulkProducer<Item = u8>,

    Decode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Decodable","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Encodable for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Encodable + Encodable + Clone,\n UserPublicKey: SubspaceId + Encodable + Encodable + Verifier<UserSignature>,\n UserSignature: Encodable + Encodable + Clone,

    §

    async fn encode<C>(\n &self,\n consumer: &mut C\n) -> Result<(), <C as Consumer>::Error>
    where\n C: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Encodable for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Encodable + Clone,\n UserPublicKey: SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Encodable + Clone,

    §

    fn encode<C>(&self, consumer: &mut C) -> Result<(), <C as Consumer>::Error>
    where\n C: BulkConsumer<Item = u8>,

    Encode a value to a bytestring in a specific way that is best described over at willowprotocol.org. Read more
    ","Encodable","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Hash for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Hash + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Hash + Encodable + Clone,\n UserPublicKey: Hash + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Hash + Encodable + Clone,

    §

    fn hash<__H>(&self, state: &mut __H)
    where\n __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Encodable + Clone,\n UserPublicKey: SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Encodable + Clone,

    pub fn new<NamespaceSecret>(\n namespace_key: NamespacePublicKey,\n namespace_secret: &NamespaceSecret,\n user_key: UserPublicKey\n) -> Result<McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, Error>
    where\n NamespaceSecret: Signer<NamespaceSignature>,

    Generate a new [McSubspaceCapability] for a given user, or return an error if the given namespace secret is incorrect.

    \n

    pub fn from_existing(\n namespace_key: NamespacePublicKey,\n user_key: UserPublicKey,\n initial_authorisation: NamespaceSignature\n) -> Result<McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, Error>

    Instantiate an [McSubspaceCapability] using an existing authorisation (e.g. one received over the network), or return an error if the signature was not created by the namespace key.

    \n

    pub fn receiver(&self) -> &UserPublicKey

    The user to whom this capability grants access.

    \n

    Definition

    \n

    pub fn granted_namespace(&self) -> &NamespacePublicKey

    The namespace for which this capability grants access.

    \n

    Definition

    \n

    pub fn delegate<UserSecretKey>(\n &self,\n secret_key: &UserSecretKey,\n new_user: &UserPublicKey\n) -> Result<McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>, Error>
    where\n UserSecretKey: Signer<UserSignature>,

    Delegate this subspace capability to a new UserPublicKey.\nWill fail if the given secret key does not correspond to the subspace capability’s receiver.

    \n

    pub fn append_existing_delegation(\n &mut self,\n delegation: SubspaceDelegation<UserPublicKey, UserSignature>\n) -> Result<(), Error>

    Append an existing delegation to an existing capability, or return an error if the delegation is invalid.

    \n

    pub fn delegations(\n &self\n) -> impl Iterator<Item = &SubspaceDelegation<UserPublicKey, UserSignature>>

    Return a slice of all [SubspaceDelegation]s made to this capability.

    \n
    ",0,"iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> PartialEq for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: PartialEq + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: PartialEq + Encodable + Clone,\n UserPublicKey: PartialEq + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: PartialEq + Encodable + Clone,

    §

    fn eq(\n &self,\n other: &McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>\n) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> Eq for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: Eq + NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Eq + Encodable + Clone,\n UserPublicKey: Eq + SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Eq + Encodable + Clone,

    ","Eq","iroh_willow::proto::meadowcap::McSubspaceCapability"],["
    §

    impl<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature> StructuralPartialEq for McSubspaceCapability<NamespacePublicKey, NamespaceSignature, UserPublicKey, UserSignature>
    where\n NamespacePublicKey: NamespaceId + Encodable + Verifier<NamespaceSignature> + IsCommunal,\n NamespaceSignature: Encodable + Clone,\n UserPublicKey: SubspaceId + Encodable + Verifier<UserSignature>,\n UserSignature: Encodable + Clone,

    ","StructuralPartialEq","iroh_willow::proto::meadowcap::McSubspaceCapability"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file diff --git a/pr/2616/docs/type.impl/std/primitive.array.js b/pr/2616/docs/type.impl/std/primitive.array.js index 6b907837ae..a39fe036a7 100644 --- a/pr/2616/docs/type.impl/std/primitive.array.js +++ b/pr/2616/docs/type.impl/std/primitive.array.js @@ -1,5 +1,5 @@ (function() {var type_impls = { -"iroh":[["
    source§

    impl<T, const N: usize> [T; N]

    1.55.0 · source

    pub fn map<F, U>(self, f: F) -> [U; N]
    where\n F: FnMut(T) -> U,

    Returns an array of the same size as self, with function f applied to each element\nin order.

    \n

    If you don’t necessarily need a new fixed-size array, consider using\nIterator::map instead.

    \n
    §Note on performance and stack usage
    \n

    Unfortunately, usages of this method are currently not always optimized\nas well as they could be. This mainly concerns large arrays, as mapping\nover small arrays seem to be optimized just fine. Also note that in\ndebug mode (i.e. without any optimizations), this method can use a lot\nof stack space (a few times the size of the array or more).

    \n

    Therefore, in performance-critical code, try to avoid using this method\non large arrays or check the emitted code. Also try to avoid chained\nmaps (e.g. arr.map(...).map(...)).

    \n

    In many cases, you can instead use Iterator::map by calling .iter()\nor .into_iter() on your array. [T; N]::map is only necessary if you\nreally need a new array of the same size as the result. Rust’s lazy\niterators tend to get optimized very well.

    \n
    §Examples
    \n
    let x = [1, 2, 3];\nlet y = x.map(|v| v + 1);\nassert_eq!(y, [2, 3, 4]);\n\nlet x = [1, 2, 3];\nlet mut temp = 0;\nlet y = x.map(|v| { temp += 1; v * temp });\nassert_eq!(y, [1, 4, 9]);\n\nlet x = [\"Ferris\", \"Bueller's\", \"Day\", \"Off\"];\nlet y = x.map(|v| v.len());\nassert_eq!(y, [6, 9, 3, 3]);
    \n
    source

    pub fn try_map<F, R>(\n self,\n f: F\n) -> <<R as Try>::Residual as Residual<[<R as Try>::Output; N]>>::TryType
    where\n F: FnMut(T) -> R,\n R: Try,\n <R as Try>::Residual: Residual<[<R as Try>::Output; N]>,

    🔬This is a nightly-only experimental API. (array_try_map)

    A fallible function f applied to each element on array self in order to\nreturn an array the same size as self or the first error encountered.

    \n

    The return type of this function depends on the return type of the closure.\nIf you return Result<T, E> from the closure, you’ll get a Result<[T; N], E>.\nIf you return Option<T> from the closure, you’ll get an Option<[T; N]>.

    \n
    §Examples
    \n
    #![feature(array_try_map)]\n\nlet a = [\"1\", \"2\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>()).unwrap().map(|v| v + 1);\nassert_eq!(b, [2, 3, 4]);\n\nlet a = [\"1\", \"2a\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>());\nassert!(b.is_err());\n\nuse std::num::NonZero;\n\nlet z = [1, 2, 0, 3, 4];\nassert_eq!(z.try_map(NonZero::new), None);\n\nlet a = [1, 2, 3];\nlet b = a.try_map(NonZero::new);\nlet c = b.map(|x| x.map(NonZero::get));\nassert_eq!(c, Some(a));
    \n
    1.57.0 (const: 1.57.0) · source

    pub const fn as_slice(&self) -> &[T]

    Returns a slice containing the entire array. Equivalent to &s[..].

    \n
    1.57.0 · source

    pub fn as_mut_slice(&mut self) -> &mut [T]

    Returns a mutable slice containing the entire array. Equivalent to\n&mut s[..].

    \n
    1.77.0 · source

    pub fn each_ref(&self) -> [&T; N]

    Borrows each element and returns an array of references with the same\nsize as self.

    \n
    §Example
    \n
    let floats = [3.1, 2.7, -1.0];\nlet float_refs: [&f64; 3] = floats.each_ref();\nassert_eq!(float_refs, [&3.1, &2.7, &-1.0]);
    \n

    This method is particularly useful if combined with other methods, like\nmap. This way, you can avoid moving the original\narray if its elements are not Copy.

    \n\n
    let strings = [\"Ferris\".to_string(), \"♥\".to_string(), \"Rust\".to_string()];\nlet is_ascii = strings.each_ref().map(|s| s.is_ascii());\nassert_eq!(is_ascii, [true, false, true]);\n\n// We can still access the original array: it has not been moved.\nassert_eq!(strings.len(), 3);
    \n
    1.77.0 · source

    pub fn each_mut(&mut self) -> [&mut T; N]

    Borrows each element mutably and returns an array of mutable references\nwith the same size as self.

    \n
    §Example
    \n
    \nlet mut floats = [3.1, 2.7, -1.0];\nlet float_refs: [&mut f64; 3] = floats.each_mut();\n*float_refs[0] = 0.0;\nassert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);\nassert_eq!(floats, [0.0, 2.7, -1.0]);
    \n
    source

    pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.split_array_ref::<0>();\n   assert_eq!(left, &[]);\n   assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<2>();\n    assert_eq!(left, &[1, 2]);\n    assert_eq!(right, &[3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<6>();\n    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n    assert_eq!(right, &[]);\n}
    \n
    source

    pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.split_array_mut::<2>();\nassert_eq!(left, &mut [1, 0][..]);\nassert_eq!(right, &mut [3, 0, 5, 6]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    source

    pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.rsplit_array_ref::<0>();\n   assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n   assert_eq!(right, &[]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<2>();\n    assert_eq!(left, &[1, 2, 3, 4]);\n    assert_eq!(right, &[5, 6]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<6>();\n    assert_eq!(left, &[]);\n    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}
    \n
    source

    pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.rsplit_array_mut::<4>();\nassert_eq!(left, &mut [1, 0]);\nassert_eq!(right, &mut [3, 0, 5, 6][..]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    ",0,"iroh::docs::PeerIdBytes"],["
    source§

    impl<const N: usize> [u8; N]

    source

    pub const fn as_ascii(&self) -> Option<&[AsciiChar; N]>

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nor returns None if any of the characters is non-ASCII.

    \n
    §Examples
    \n
    #![feature(ascii_char)]\n#![feature(const_option)]\n\nconst HEX_DIGITS: [std::ascii::Char; 16] =\n    *b\"0123456789abcdef\".as_ascii().unwrap();\n\nassert_eq!(HEX_DIGITS[1].as_str(), \"1\");\nassert_eq!(HEX_DIGITS[10].as_str(), \"a\");
    \n
    source

    pub const unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nwithout checking whether they’re valid.

    \n
    §Safety
    \n

    Every byte in the array must be in 0..=127, or else this is UB.

    \n
    ",0,"iroh::docs::PeerIdBytes"],["
    §

    impl<T> Array for [T; 32]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 32usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 32]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> Array for [T; N]

    §

    type Item = T

    The type of the array’s elements.
    §

    fn size() -> usize

    Returns the number of items the array can hold.
    ","Array","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> AsBytes for [T; N]
    where\n T: AsBytes,

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Gets the bytes of this value. Read more
    §

    fn write_to(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to bytes. Read more
    §

    fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the prefix of bytes. Read more
    §

    fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the suffix of bytes. Read more
    ","AsBytes","iroh::docs::PeerIdBytes"],["
    §

    impl AsBytes for [u8; 32]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsMut<[T]> for [T; N]

    source§

    fn as_mut(&mut self) -> &mut [T]

    Converts this type into a mutable reference of the (usually inferred) input type.
    ","AsMut<[T]>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsRef<[T]> for [T; N]

    source§

    fn as_ref(&self) -> &[T]

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[T]>","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitView for [T; N]
    where\n T: BitStore,

    Note that overly-large arrays may cause the conversions to fail.

    \n
    §

    type Store = T

    The underlying element type.
    §

    fn view_bits<O>(&self) -> &BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as an immutable bit-slice.
    §

    fn try_view_bits<O>(&self) -> Result<&BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as an immutable bit-slice. Read more
    §

    fn view_bits_mut<O>(&mut self) -> &mut BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as a mutable bit-slice.
    §

    fn try_view_bits_mut<O>(\n &mut self\n) -> Result<&mut BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as a mutable bit-slice. Read more
    ","BitView","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitViewSized for [T; N]
    where\n T: BitStore,

    §

    const ZERO: [T; N] = _

    The zero constant.
    §

    fn as_raw_slice(&self) -> &[<[T; N] as BitView>::Store]

    Views the type as a slice of its elements.
    §

    fn as_raw_mut_slice(&mut self) -> &mut [<[T; N] as BitView>::Store]

    Views the type as a mutable slice of its elements.
    §

    fn into_bitarray<O>(self) -> BitArray<Self, O>
    where\n O: BitOrder,

    Wraps self in a BitArray.
    ","BitViewSized","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> Borrow<[T]> for [T; N]

    source§

    fn borrow(&self) -> &[T]

    Immutably borrows from an owned value. Read more
    ","Borrow<[T]>","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> BorrowMut<[T]> for [T; N]

    source§

    fn borrow_mut(&mut self) -> &mut [T]

    Mutably borrows from an owned value. Read more
    ","BorrowMut<[T]>","iroh::docs::PeerIdBytes"],["
    §

    impl<S, const N: usize> Chain for [S; N]
    where\n S: Stream,

    §

    type Item = <S as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Chain<S, N>

    What stream do we return?
    §

    fn chain(self) -> <[S; N] as Chain>::Stream

    Combine multiple streams into a single stream.
    ","Chain","iroh::docs::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Clone for [T; N]
    where\n T: Clone,

    source§

    fn clone(&self) -> [T; N]

    Returns a copy of the value. Read more
    source§

    fn clone_from(&mut self, other: &[T; N])

    Performs copy-assignment from source. Read more
    ","Clone","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Debug for [T; N]
    where\n T: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize> Decode for [u8; N]

    Decodes a byte array from byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    type Error = Error

    Type returned in the event of a decoding error.
    §

    fn decode(reader: &mut impl Reader) -> Result<[u8; N], Error>

    Attempt to decode a value of this type using the provided [Reader].
    ","Decode","iroh::docs::PeerIdBytes"],["
    §

    impl<'a, T, const N: usize> DecodeValue<'a> for [T; N]
    where\n T: Decode<'a>,

    §

    fn decode_value<R>(reader: &mut R, header: Header) -> Result<[T; N], Error>
    where\n R: Reader<'a>,

    Attempt to decode this message using the provided [Reader].
    ","DecodeValue<'a>","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 32]
    where\n T: Default,

    source§

    fn default() -> [T; 32]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 31]
    where\n T: Default,

    source§

    fn default() -> [T; 31]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 30]
    where\n T: Default,

    source§

    fn default() -> [T; 30]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 29]
    where\n T: Default,

    source§

    fn default() -> [T; 29]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 28]
    where\n T: Default,

    source§

    fn default() -> [T; 28]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 27]
    where\n T: Default,

    source§

    fn default() -> [T; 27]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 26]
    where\n T: Default,

    source§

    fn default() -> [T; 26]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 25]
    where\n T: Default,

    source§

    fn default() -> [T; 25]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 24]
    where\n T: Default,

    source§

    fn default() -> [T; 24]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 23]
    where\n T: Default,

    source§

    fn default() -> [T; 23]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 22]
    where\n T: Default,

    source§

    fn default() -> [T; 22]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 21]
    where\n T: Default,

    source§

    fn default() -> [T; 21]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 20]
    where\n T: Default,

    source§

    fn default() -> [T; 20]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 19]
    where\n T: Default,

    source§

    fn default() -> [T; 19]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 18]
    where\n T: Default,

    source§

    fn default() -> [T; 18]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 17]
    where\n T: Default,

    source§

    fn default() -> [T; 17]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 16]
    where\n T: Default,

    source§

    fn default() -> [T; 16]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 15]
    where\n T: Default,

    source§

    fn default() -> [T; 15]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 14]
    where\n T: Default,

    source§

    fn default() -> [T; 14]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 13]
    where\n T: Default,

    source§

    fn default() -> [T; 13]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 12]
    where\n T: Default,

    source§

    fn default() -> [T; 12]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 11]
    where\n T: Default,

    source§

    fn default() -> [T; 11]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 10]
    where\n T: Default,

    source§

    fn default() -> [T; 10]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 9]
    where\n T: Default,

    source§

    fn default() -> [T; 9]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 8]
    where\n T: Default,

    source§

    fn default() -> [T; 8]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 7]
    where\n T: Default,

    source§

    fn default() -> [T; 7]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 6]
    where\n T: Default,

    source§

    fn default() -> [T; 6]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 5]
    where\n T: Default,

    source§

    fn default() -> [T; 5]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 4]
    where\n T: Default,

    source§

    fn default() -> [T; 4]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 3]
    where\n T: Default,

    source§

    fn default() -> [T; 3]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 2]
    where\n T: Default,

    source§

    fn default() -> [T; 2]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 1]
    where\n T: Default,

    source§

    fn default() -> [T; 1]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 0]

    source§

    fn default() -> [T; 0]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 32]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 32], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh::docs::PeerIdBytes"],["
    source§

    impl<'de, const N: usize> Deserialize<'de> for [u8; N]

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[u8; N], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    ","Deserialize<'de>","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize> Encode for [u8; N]

    Encodes [u8; N] into byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    fn encoded_len(&self) -> Result<usize, Error>

    Get the length of this type encoded in bytes, prior to Base64 encoding.
    §

    fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value using the provided [Writer].
    §

    fn encoded_len_prefixed(&self) -> Result<usize, Error>

    Return the length of this type after encoding when prepended with a\nuint32 length prefix.
    §

    fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value, first prepending a uint32 length prefix\nset to [Encode::encoded_len].
    ","Encode","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeLabelSet for [T; N]
    where\n T: EncodeLabel,

    §

    fn encode(&self, encoder: LabelSetEncoder<'_>) -> Result<(), Error>

    Encode oneself into the given encoder.
    ","EncodeLabelSet","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeValue for [T; N]
    where\n T: Encode,

    §

    fn value_len(&self) -> Result<Length, Error>

    Compute the length of this value (sans [Tag]+[Length] header) when\nencoded as ASN.1 DER.
    §

    fn encode_value(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode value (sans [Tag]+[Length] header) as ASN.1 DER using the\nprovided [Writer].
    §

    fn header(&self) -> Result<Header, Error>
    where\n Self: Tagged,

    Get the [Header] used to encode this value.
    ","EncodeValue","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 32]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 31]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 30]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 29]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 28]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 27]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 26]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 25]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 24]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 23]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 22]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 21]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 20]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 19]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 18]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 17]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 16]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 15]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 14]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 13]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 12]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 11]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 10]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 9]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 8]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 7]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 6]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 5]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 4]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 3]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 0]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2048]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1024]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 512]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 256]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 128]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 64]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 32]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh::docs::PeerIdBytes"],["
    §

    impl FindToken<u8> for [u8; 32]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> FixedTag for [T; N]

    §

    const TAG: Tag = Tag::Sequence

    ASN.1 tag
    ","FixedTag","iroh::docs::PeerIdBytes"],["
    §

    impl From<&Signature> for [u8; 64]

    §

    fn from(sig: &Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From<&Signature>","iroh::docs::PeerIdBytes"],["
    source§

    impl From<AuthorId> for [u8; 32]

    source§

    fn from(value: AuthorId) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for [T; 32]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 32]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>>>","iroh::docs::PeerIdBytes"],["
    source§

    impl From<Hash> for [u8; 32]

    source§

    fn from(value: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

    fn from(hash: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, const UPPERCASE: bool> From<HexOrBin<N, UPPERCASE>> for [u8; N]

    §

    fn from(hex_or_bin: HexOrBin<N, UPPERCASE>) -> [u8; N]

    Converts to this type from the input type.
    ","From>","iroh::docs::PeerIdBytes"],["
    §

    impl From<MacAddr> for [u8; 6]

    §

    fn from(addr: MacAddr) -> [u8; 6]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    source§

    impl From<NamespaceId> for [u8; 32]

    source§

    fn from(value: NamespaceId) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl From<Signature> for [u8; 64]

    §

    fn from(sig: Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    source§

    impl<T, const N: usize> From<Simd<T, N>> for [T; N]

    source§

    fn from(vector: Simd<T, N>) -> [T; N]

    Converts to this type from the input type.
    ","From>","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromBytes for [T; N]
    where\n T: FromBytes,

    §

    fn ref_from(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the given bytes as a &Self without copying. Read more
    §

    fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &Self without copying. Read more
    §

    fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &Self without copying. Read more
    §

    fn slice_from(bytes: &[u8]) -> Option<&[Self]>
    where\n Self: Sized,

    Interprets the given bytes as a &[Self] without copying. Read more
    §

    fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn read_from(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from bytes. Read more
    §

    fn read_from_prefix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the prefix of bytes. Read more
    §

    fn read_from_suffix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the suffix of bytes. Read more
    ","FromBytes","iroh::docs::PeerIdBytes"],["
    source§

    impl FromHex for [u8; 32]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 32], <[u8; 32] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromZeroes for [T; N]
    where\n T: FromZeroes,

    §

    fn zero(&mut self)

    Overwrites self with zeroes. Read more
    §

    fn new_zeroed() -> Self
    where\n Self: Sized,

    Creates an instance of Self from zeroed bytes. Read more
    ","FromZeroes","iroh::docs::PeerIdBytes"],["
    §

    impl<T> Hash for [T; 32]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Hash for [T; N]
    where\n T: Hash,

    The hash of an array is the same as that of the corresponding slice,\nas required by the Borrow implementation.

    \n\n
    use std::hash::BuildHasher;\n\nlet b = std::hash::RandomState::new();\nlet a: [u8; 3] = [0xa8, 0x3c, 0x09];\nlet s: &[u8] = &[0xa8, 0x3c, 0x09];\nassert_eq!(b.hash_one(a), b.hash_one(s));
    \n
    source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh::docs::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> Index<I> for [T; N]
    where\n [T]: Index<I>,

    §

    type Output = <[T] as Index<I>>::Output

    The returned type after indexing.
    source§

    fn index(&self, index: I) -> &<[T; N] as Index<I>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","iroh::docs::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> IndexMut<I> for [T; N]
    where\n [T]: IndexMut<I>,

    source§

    fn index_mut(&mut self, index: I) -> &mut <[T; N] as Index<I>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","iroh::docs::PeerIdBytes"],["
    §

    impl InputLength for [u8; 32]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh::docs::PeerIdBytes"],["
    1.53.0 · source§

    impl<T, const N: usize> IntoIterator for [T; N]

    source§

    fn into_iter(self) -> <[T; N] as IntoIterator>::IntoIter

    Creates a consuming iterator, that is, one that moves each value out of\nthe array (from start to end). The array cannot be used after calling\nthis unless T implements Copy, so the whole array is copied.

    \n

    Arrays have special behavior when calling .into_iter() prior to the\n2021 edition – see the array Editions section for more information.

    \n
    §

    type Item = T

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<T, N>

    Which kind of iterator are we turning this into?
    ","IntoIterator","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize> IntoResponse for [u8; N]

    §

    fn into_response(self) -> Response<Body>

    Create a response.
    ","IntoResponse","iroh::docs::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Join for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = [<Fut as IntoFuture>::Output; N]

    The resulting output type.
    §

    type Future = Join<<Fut as IntoFuture>::IntoFuture, N>

    The Future implementation returned by this method.
    §

    fn join(self) -> <[Fut; N] as Join>::Future

    Waits for multiple futures to complete. Read more
    ","Join","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> Key for [T; N]
    where\n T: Key,

    §

    fn compare(data1: &[u8], data2: &[u8]) -> Ordering

    Compare data1 with data2
    ","Key","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> MaxSize for [T; N]
    where\n T: MaxSize,

    §

    const POSTCARD_MAX_SIZE: usize = _

    The maximum possible size that the serialization of this\ntype can have, in bytes.
    ","MaxSize","iroh::docs::PeerIdBytes"],["
    §

    impl<S, const N: usize> Merge for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Merge<<S as IntoStream>::IntoStream, N> as Stream>::Item

    The resulting output type.
    §

    type Stream = Merge<<S as IntoStream>::IntoStream, N>

    The stream type.
    §

    fn merge(self) -> <[S; N] as Merge>::Stream

    Combine multiple streams into a single stream.
    ","Merge","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Ord for [T; N]
    where\n T: Ord,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn cmp(&self, other: &[T; N]) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&[U]>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&mut [U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&mut [U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&mut [U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&mut [U]>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U]>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U; N]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U; N]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U; N]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U; N]>","iroh::docs::PeerIdBytes"],["
    §

    impl PartialEq<Cookie> for [u8; 4]

    §

    fn eq(&self, other: &Cookie) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh::docs::PeerIdBytes"],["
    §

    impl<A, B, const N: usize, const M: usize> PartialEq<Vec<A, N>> for [B; M]
    where\n A: PartialEq<B>,

    §

    fn eq(&self, other: &Vec<A, N>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> PartialOrd for [T; N]
    where\n T: PartialOrd,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn partial_cmp(&self, other: &[T; N]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    source§

    fn lt(&self, other: &[T; N]) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    source§

    fn le(&self, other: &[T; N]) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    source§

    fn ge(&self, other: &[T; N]) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    source§

    fn gt(&self, other: &[T; N]) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    ","PartialOrd","iroh::docs::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Race for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = <Fut as IntoFuture>::Output

    The resulting output type.
    §

    type Future = Race<<Fut as IntoFuture>::IntoFuture, N>

    Which kind of future are we turning this into?
    §

    fn race(self) -> <[Fut; N] as Race>::Future

    Wait for the first future to complete. Read more
    ","Race","iroh::docs::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> RaceOk for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = T

    The resulting output type.
    §

    type Error = AggregateError<E, N>

    The resulting error type.
    §

    type Future = RaceOk<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn race_ok(self) -> <[Fut; N] as RaceOk>::Future

    Waits for the first successful future to complete.
    ","RaceOk","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> Schema for [T; N]
    where\n T: Schema,

    §

    const SCHEMA: &'static NamedType = _

    A recursive data structure that describes the schema of the given\ntype.
    ","Schema","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Serialize for [T; 32]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh::docs::PeerIdBytes"],["
    source§

    impl<const N: usize> Serialize for [u8; N]

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    ","Serialize","iroh::docs::PeerIdBytes"],["
    1.51.0 · source§

    impl<T, const N: usize> SlicePattern for [T; N]

    §

    type Item = T

    🔬This is a nightly-only experimental API. (slice_pattern)
    The element type of the slice being matched on.
    source§

    fn as_slice(&self) -> &[<[T; N] as SlicePattern>::Item]

    🔬This is a nightly-only experimental API. (slice_pattern)
    Currently, the consumers of SlicePattern need a slice.
    ","SlicePattern","iroh::docs::PeerIdBytes"],["
    1.34.0 · source§

    impl<T, const N: usize> TryFrom<&[T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a slice &[T]. Succeeds if\nslice.len() == N.

    \n\n
    let bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = bytes[1..3].try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &[T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&[T]>","iroh::docs::PeerIdBytes"],["
    1.59.0 · source§

    impl<T, const N: usize> TryFrom<&mut [T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a mutable slice &mut [T].\nSucceeds if slice.len() == N.

    \n\n
    let mut bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&mut bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = (&mut bytes[1..3]).try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &mut [T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&mut [T]>","iroh::docs::PeerIdBytes"],["
    §

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    §

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh::docs::PeerIdBytes"],["
    1.48.0 · source§

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    source§

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh::docs::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> TryJoin for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = [T; N]

    The resulting output type.
    §

    type Error = E

    The resulting error type.
    §

    type Future = TryJoin<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn try_join(self) -> <[Fut; N] as TryJoin>::Future

    Waits for multiple futures to complete, either returning when all\nfutures complete successfully, or return early when any future completes\nwith an error.
    ","TryJoin","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> Value for [T; N]
    where\n T: Value,

    §

    type SelfType<'a> = [<T as Value>::SelfType<'a>; N]\nwhere\n [T; N]: 'a

    SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
    §

    type AsBytes<'a> = Vec<u8>\nwhere\n [T; N]: 'a

    §

    fn fixed_width() -> Option<usize>

    Width of a fixed type, or None for variable width
    §

    fn from_bytes<'a>(data: &'a [u8]) -> [<T as Value>::SelfType<'a>; N]
    where\n [T; N]: 'a,

    Deserializes data\nImplementations may return a view over data, or an owned type
    §

    fn as_bytes<'a, 'b>(value: &'a <[T; N] as Value>::SelfType<'b>) -> Vec<u8> ⓘ
    where\n 'b: 'a,\n [T; N]: 'a + 'b,

    Serialize the value to a slice
    §

    fn type_name() -> TypeName

    Globally unique identifier for this type
    ","Value","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> ValueOrd for [T; N]
    where\n T: DerOrd,

    §

    fn value_cmp(&self, other: &[T; N]) -> Result<Ordering, Error>

    Return an Ordering between value portion of TLV-encoded self and\nother when serialized as ASN.1 DER.
    ","ValueOrd","iroh::docs::PeerIdBytes"],["
    §

    impl<Z, const N: usize> Zeroize for [Z; N]
    where\n Z: Zeroize,

    Impl [Zeroize] on arrays of types that impl [Zeroize].

    \n
    §

    fn zeroize(&mut self)

    Zero out this object from memory using Rust intrinsics which ensure the\nzeroization operation is not “optimized away” by the compiler.
    ","Zeroize","iroh::docs::PeerIdBytes"],["
    §

    impl<S, const N: usize> Zip for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Zip<<S as IntoStream>::IntoStream, N> as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Zip<<S as IntoStream>::IntoStream, N>

    What stream do we return?
    §

    fn zip(self) -> <[S; N] as Zip>::Stream

    Combine multiple streams into a single stream.
    ","Zip","iroh::docs::PeerIdBytes"],["
    source§

    impl<T, const N: usize> ConstParamTy for [T; N]
    where\n T: ConstParamTy,

    ","ConstParamTy","iroh::docs::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Copy for [T; N]
    where\n T: Copy,

    ","Copy","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Eq for [T; N]
    where\n T: Eq,

    ","Eq","iroh::docs::PeerIdBytes"],["
    source§

    impl<T, const N: usize> StructuralPartialEq for [T; N]

    ","StructuralPartialEq","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> Unaligned for [T; N]
    where\n T: Unaligned,

    ","Unaligned","iroh::docs::PeerIdBytes"],["
    §

    impl<Z, const N: usize> ZeroizeOnDrop for [Z; N]
    where\n Z: ZeroizeOnDrop,

    Impl [ZeroizeOnDrop] on arrays of types that impl [ZeroizeOnDrop].

    \n
    ","ZeroizeOnDrop","iroh::docs::PeerIdBytes"]], -"iroh_docs":[["
    source§

    impl<T, const N: usize> [T; N]

    1.55.0 · source

    pub fn map<F, U>(self, f: F) -> [U; N]
    where\n F: FnMut(T) -> U,

    Returns an array of the same size as self, with function f applied to each element\nin order.

    \n

    If you don’t necessarily need a new fixed-size array, consider using\nIterator::map instead.

    \n
    §Note on performance and stack usage
    \n

    Unfortunately, usages of this method are currently not always optimized\nas well as they could be. This mainly concerns large arrays, as mapping\nover small arrays seem to be optimized just fine. Also note that in\ndebug mode (i.e. without any optimizations), this method can use a lot\nof stack space (a few times the size of the array or more).

    \n

    Therefore, in performance-critical code, try to avoid using this method\non large arrays or check the emitted code. Also try to avoid chained\nmaps (e.g. arr.map(...).map(...)).

    \n

    In many cases, you can instead use Iterator::map by calling .iter()\nor .into_iter() on your array. [T; N]::map is only necessary if you\nreally need a new array of the same size as the result. Rust’s lazy\niterators tend to get optimized very well.

    \n
    §Examples
    \n
    let x = [1, 2, 3];\nlet y = x.map(|v| v + 1);\nassert_eq!(y, [2, 3, 4]);\n\nlet x = [1, 2, 3];\nlet mut temp = 0;\nlet y = x.map(|v| { temp += 1; v * temp });\nassert_eq!(y, [1, 4, 9]);\n\nlet x = [\"Ferris\", \"Bueller's\", \"Day\", \"Off\"];\nlet y = x.map(|v| v.len());\nassert_eq!(y, [6, 9, 3, 3]);
    \n
    source

    pub fn try_map<F, R>(\n self,\n f: F\n) -> <<R as Try>::Residual as Residual<[<R as Try>::Output; N]>>::TryType
    where\n F: FnMut(T) -> R,\n R: Try,\n <R as Try>::Residual: Residual<[<R as Try>::Output; N]>,

    🔬This is a nightly-only experimental API. (array_try_map)

    A fallible function f applied to each element on array self in order to\nreturn an array the same size as self or the first error encountered.

    \n

    The return type of this function depends on the return type of the closure.\nIf you return Result<T, E> from the closure, you’ll get a Result<[T; N], E>.\nIf you return Option<T> from the closure, you’ll get an Option<[T; N]>.

    \n
    §Examples
    \n
    #![feature(array_try_map)]\n\nlet a = [\"1\", \"2\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>()).unwrap().map(|v| v + 1);\nassert_eq!(b, [2, 3, 4]);\n\nlet a = [\"1\", \"2a\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>());\nassert!(b.is_err());\n\nuse std::num::NonZero;\n\nlet z = [1, 2, 0, 3, 4];\nassert_eq!(z.try_map(NonZero::new), None);\n\nlet a = [1, 2, 3];\nlet b = a.try_map(NonZero::new);\nlet c = b.map(|x| x.map(NonZero::get));\nassert_eq!(c, Some(a));
    \n
    1.57.0 (const: 1.57.0) · source

    pub const fn as_slice(&self) -> &[T]

    Returns a slice containing the entire array. Equivalent to &s[..].

    \n
    1.57.0 · source

    pub fn as_mut_slice(&mut self) -> &mut [T]

    Returns a mutable slice containing the entire array. Equivalent to\n&mut s[..].

    \n
    1.77.0 · source

    pub fn each_ref(&self) -> [&T; N]

    Borrows each element and returns an array of references with the same\nsize as self.

    \n
    §Example
    \n
    let floats = [3.1, 2.7, -1.0];\nlet float_refs: [&f64; 3] = floats.each_ref();\nassert_eq!(float_refs, [&3.1, &2.7, &-1.0]);
    \n

    This method is particularly useful if combined with other methods, like\nmap. This way, you can avoid moving the original\narray if its elements are not Copy.

    \n\n
    let strings = [\"Ferris\".to_string(), \"♥\".to_string(), \"Rust\".to_string()];\nlet is_ascii = strings.each_ref().map(|s| s.is_ascii());\nassert_eq!(is_ascii, [true, false, true]);\n\n// We can still access the original array: it has not been moved.\nassert_eq!(strings.len(), 3);
    \n
    1.77.0 · source

    pub fn each_mut(&mut self) -> [&mut T; N]

    Borrows each element mutably and returns an array of mutable references\nwith the same size as self.

    \n
    §Example
    \n
    \nlet mut floats = [3.1, 2.7, -1.0];\nlet float_refs: [&mut f64; 3] = floats.each_mut();\n*float_refs[0] = 0.0;\nassert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);\nassert_eq!(floats, [0.0, 2.7, -1.0]);
    \n
    source

    pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.split_array_ref::<0>();\n   assert_eq!(left, &[]);\n   assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<2>();\n    assert_eq!(left, &[1, 2]);\n    assert_eq!(right, &[3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<6>();\n    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n    assert_eq!(right, &[]);\n}
    \n
    source

    pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.split_array_mut::<2>();\nassert_eq!(left, &mut [1, 0][..]);\nassert_eq!(right, &mut [3, 0, 5, 6]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    source

    pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.rsplit_array_ref::<0>();\n   assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n   assert_eq!(right, &[]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<2>();\n    assert_eq!(left, &[1, 2, 3, 4]);\n    assert_eq!(right, &[5, 6]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<6>();\n    assert_eq!(left, &[]);\n    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}
    \n
    source

    pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.rsplit_array_mut::<4>();\nassert_eq!(left, &mut [1, 0]);\nassert_eq!(right, &mut [3, 0, 5, 6][..]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    ",0,"iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<const N: usize> [u8; N]

    source

    pub const fn as_ascii(&self) -> Option<&[AsciiChar; N]>

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nor returns None if any of the characters is non-ASCII.

    \n
    §Examples
    \n
    #![feature(ascii_char)]\n#![feature(const_option)]\n\nconst HEX_DIGITS: [std::ascii::Char; 16] =\n    *b\"0123456789abcdef\".as_ascii().unwrap();\n\nassert_eq!(HEX_DIGITS[1].as_str(), \"1\");\nassert_eq!(HEX_DIGITS[10].as_str(), \"a\");
    \n
    source

    pub const unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nwithout checking whether they’re valid.

    \n
    §Safety
    \n

    Every byte in the array must be in 0..=127, or else this is UB.

    \n
    ",0,"iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> Array for [T; 32]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 32usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 32]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> Array for [T; N]

    §

    type Item = T

    The type of the array’s elements.
    §

    fn size() -> usize

    Returns the number of items the array can hold.
    ","Array","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> AsBytes for [T; N]
    where\n T: AsBytes,

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Gets the bytes of this value. Read more
    §

    fn write_to(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to bytes. Read more
    §

    fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the prefix of bytes. Read more
    §

    fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the suffix of bytes. Read more
    ","AsBytes","iroh_docs::sync::PeerIdBytes"],["
    §

    impl AsBytes for [u8; 32]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsMut<[T]> for [T; N]

    source§

    fn as_mut(&mut self) -> &mut [T]

    Converts this type into a mutable reference of the (usually inferred) input type.
    ","AsMut<[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsRef<[T]> for [T; N]

    source§

    fn as_ref(&self) -> &[T]

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitView for [T; N]
    where\n T: BitStore,

    Note that overly-large arrays may cause the conversions to fail.

    \n
    §

    type Store = T

    The underlying element type.
    §

    fn view_bits<O>(&self) -> &BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as an immutable bit-slice.
    §

    fn try_view_bits<O>(&self) -> Result<&BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as an immutable bit-slice. Read more
    §

    fn view_bits_mut<O>(&mut self) -> &mut BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as a mutable bit-slice.
    §

    fn try_view_bits_mut<O>(\n &mut self\n) -> Result<&mut BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as a mutable bit-slice. Read more
    ","BitView","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitViewSized for [T; N]
    where\n T: BitStore,

    §

    const ZERO: [T; N] = _

    The zero constant.
    §

    fn as_raw_slice(&self) -> &[<[T; N] as BitView>::Store]

    Views the type as a slice of its elements.
    §

    fn as_raw_mut_slice(&mut self) -> &mut [<[T; N] as BitView>::Store]

    Views the type as a mutable slice of its elements.
    §

    fn into_bitarray<O>(self) -> BitArray<Self, O>
    where\n O: BitOrder,

    Wraps self in a BitArray.
    ","BitViewSized","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> Borrow<[T]> for [T; N]

    source§

    fn borrow(&self) -> &[T]

    Immutably borrows from an owned value. Read more
    ","Borrow<[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> BorrowMut<[T]> for [T; N]

    source§

    fn borrow_mut(&mut self) -> &mut [T]

    Mutably borrows from an owned value. Read more
    ","BorrowMut<[T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Chain for [S; N]
    where\n S: Stream,

    §

    type Item = <S as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Chain<S, N>

    What stream do we return?
    §

    fn chain(self) -> <[S; N] as Chain>::Stream

    Combine multiple streams into a single stream.
    ","Chain","iroh_docs::sync::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Clone for [T; N]
    where\n T: Clone,

    source§

    fn clone(&self) -> [T; N]

    Returns a copy of the value. Read more
    source§

    fn clone_from(&mut self, other: &[T; N])

    Performs copy-assignment from source. Read more
    ","Clone","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Debug for [T; N]
    where\n T: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> Decode for [u8; N]

    Decodes a byte array from byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    type Error = Error

    Type returned in the event of a decoding error.
    §

    fn decode(reader: &mut impl Reader) -> Result<[u8; N], Error>

    Attempt to decode a value of this type using the provided [Reader].
    ","Decode","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<'a, T, const N: usize> DecodeValue<'a> for [T; N]
    where\n T: Decode<'a>,

    §

    fn decode_value<R>(reader: &mut R, header: Header) -> Result<[T; N], Error>
    where\n R: Reader<'a>,

    Attempt to decode this message using the provided [Reader].
    ","DecodeValue<'a>","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 32]
    where\n T: Default,

    source§

    fn default() -> [T; 32]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 31]
    where\n T: Default,

    source§

    fn default() -> [T; 31]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 30]
    where\n T: Default,

    source§

    fn default() -> [T; 30]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 29]
    where\n T: Default,

    source§

    fn default() -> [T; 29]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 28]
    where\n T: Default,

    source§

    fn default() -> [T; 28]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 27]
    where\n T: Default,

    source§

    fn default() -> [T; 27]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 26]
    where\n T: Default,

    source§

    fn default() -> [T; 26]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 25]
    where\n T: Default,

    source§

    fn default() -> [T; 25]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 24]
    where\n T: Default,

    source§

    fn default() -> [T; 24]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 23]
    where\n T: Default,

    source§

    fn default() -> [T; 23]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 22]
    where\n T: Default,

    source§

    fn default() -> [T; 22]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 21]
    where\n T: Default,

    source§

    fn default() -> [T; 21]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 20]
    where\n T: Default,

    source§

    fn default() -> [T; 20]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 19]
    where\n T: Default,

    source§

    fn default() -> [T; 19]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 18]
    where\n T: Default,

    source§

    fn default() -> [T; 18]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 17]
    where\n T: Default,

    source§

    fn default() -> [T; 17]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 16]
    where\n T: Default,

    source§

    fn default() -> [T; 16]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 15]
    where\n T: Default,

    source§

    fn default() -> [T; 15]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 14]
    where\n T: Default,

    source§

    fn default() -> [T; 14]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 13]
    where\n T: Default,

    source§

    fn default() -> [T; 13]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 12]
    where\n T: Default,

    source§

    fn default() -> [T; 12]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 11]
    where\n T: Default,

    source§

    fn default() -> [T; 11]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 10]
    where\n T: Default,

    source§

    fn default() -> [T; 10]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 9]
    where\n T: Default,

    source§

    fn default() -> [T; 9]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 8]
    where\n T: Default,

    source§

    fn default() -> [T; 8]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 7]
    where\n T: Default,

    source§

    fn default() -> [T; 7]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 6]
    where\n T: Default,

    source§

    fn default() -> [T; 6]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 5]
    where\n T: Default,

    source§

    fn default() -> [T; 5]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 4]
    where\n T: Default,

    source§

    fn default() -> [T; 4]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 3]
    where\n T: Default,

    source§

    fn default() -> [T; 3]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 2]
    where\n T: Default,

    source§

    fn default() -> [T; 2]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 1]
    where\n T: Default,

    source§

    fn default() -> [T; 1]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 0]

    source§

    fn default() -> [T; 0]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 32]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 32], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<'de, const N: usize> Deserialize<'de> for [u8; N]

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[u8; N], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    ","Deserialize<'de>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> Encode for [u8; N]

    Encodes [u8; N] into byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    fn encoded_len(&self) -> Result<usize, Error>

    Get the length of this type encoded in bytes, prior to Base64 encoding.
    §

    fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value using the provided [Writer].
    §

    fn encoded_len_prefixed(&self) -> Result<usize, Error>

    Return the length of this type after encoding when prepended with a\nuint32 length prefix.
    §

    fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value, first prepending a uint32 length prefix\nset to [Encode::encoded_len].
    ","Encode","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeLabelSet for [T; N]
    where\n T: EncodeLabel,

    §

    fn encode(&self, encoder: LabelSetEncoder<'_>) -> Result<(), Error>

    Encode oneself into the given encoder.
    ","EncodeLabelSet","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeValue for [T; N]
    where\n T: Encode,

    §

    fn value_len(&self) -> Result<Length, Error>

    Compute the length of this value (sans [Tag]+[Length] header) when\nencoded as ASN.1 DER.
    §

    fn encode_value(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode value (sans [Tag]+[Length] header) as ASN.1 DER using the\nprovided [Writer].
    §

    fn header(&self) -> Result<Header, Error>
    where\n Self: Tagged,

    Get the [Header] used to encode this value.
    ","EncodeValue","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 32]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 31]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 30]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 29]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 28]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 27]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 26]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 25]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 24]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 23]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 22]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 21]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 20]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 19]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 18]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 17]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 16]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 15]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 14]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 13]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 12]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 11]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 10]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 9]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 8]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 7]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 6]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 5]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 4]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 3]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 0]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2048]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1024]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 512]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 256]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 128]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 64]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 32]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl FindToken<u8> for [u8; 32]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> FixedTag for [T; N]

    §

    const TAG: Tag = Tag::Sequence

    ASN.1 tag
    ","FixedTag","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<&Signature> for [u8; 64]

    §

    fn from(sig: &Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From<&Signature>","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl From<AuthorId> for [u8; 32]

    source§

    fn from(value: AuthorId) -> Self

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for [T; 32]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 32]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>>>","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl From<Hash> for [u8; 32]

    source§

    fn from(value: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

    fn from(hash: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, const UPPERCASE: bool> From<HexOrBin<N, UPPERCASE>> for [u8; N]

    §

    fn from(hex_or_bin: HexOrBin<N, UPPERCASE>) -> [u8; N]

    Converts to this type from the input type.
    ","From>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<MacAddr> for [u8; 6]

    §

    fn from(addr: MacAddr) -> [u8; 6]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl From<NamespaceId> for [u8; 32]

    source§

    fn from(value: NamespaceId) -> Self

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<Signature> for [u8; 64]

    §

    fn from(sig: Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> From<Simd<T, N>> for [T; N]

    source§

    fn from(vector: Simd<T, N>) -> [T; N]

    Converts to this type from the input type.
    ","From>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromBytes for [T; N]
    where\n T: FromBytes,

    §

    fn ref_from(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the given bytes as a &Self without copying. Read more
    §

    fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &Self without copying. Read more
    §

    fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &Self without copying. Read more
    §

    fn slice_from(bytes: &[u8]) -> Option<&[Self]>
    where\n Self: Sized,

    Interprets the given bytes as a &[Self] without copying. Read more
    §

    fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn read_from(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from bytes. Read more
    §

    fn read_from_prefix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the prefix of bytes. Read more
    §

    fn read_from_suffix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the suffix of bytes. Read more
    ","FromBytes","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl FromHex for [u8; 32]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 32], <[u8; 32] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromZeroes for [T; N]
    where\n T: FromZeroes,

    §

    fn zero(&mut self)

    Overwrites self with zeroes. Read more
    §

    fn new_zeroed() -> Self
    where\n Self: Sized,

    Creates an instance of Self from zeroed bytes. Read more
    ","FromZeroes","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> Hash for [T; 32]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Hash for [T; N]
    where\n T: Hash,

    The hash of an array is the same as that of the corresponding slice,\nas required by the Borrow implementation.

    \n\n
    use std::hash::BuildHasher;\n\nlet b = std::hash::RandomState::new();\nlet a: [u8; 3] = [0xa8, 0x3c, 0x09];\nlet s: &[u8] = &[0xa8, 0x3c, 0x09];\nassert_eq!(b.hash_one(a), b.hash_one(s));
    \n
    source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_docs::sync::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> Index<I> for [T; N]
    where\n [T]: Index<I>,

    §

    type Output = <[T] as Index<I>>::Output

    The returned type after indexing.
    source§

    fn index(&self, index: I) -> &<[T; N] as Index<I>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","iroh_docs::sync::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> IndexMut<I> for [T; N]
    where\n [T]: IndexMut<I>,

    source§

    fn index_mut(&mut self, index: I) -> &mut <[T; N] as Index<I>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","iroh_docs::sync::PeerIdBytes"],["
    §

    impl InputLength for [u8; 32]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_docs::sync::PeerIdBytes"],["
    1.53.0 · source§

    impl<T, const N: usize> IntoIterator for [T; N]

    source§

    fn into_iter(self) -> <[T; N] as IntoIterator>::IntoIter

    Creates a consuming iterator, that is, one that moves each value out of\nthe array (from start to end). The array cannot be used after calling\nthis unless T implements Copy, so the whole array is copied.

    \n

    Arrays have special behavior when calling .into_iter() prior to the\n2021 edition – see the array Editions section for more information.

    \n
    §

    type Item = T

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<T, N>

    Which kind of iterator are we turning this into?
    ","IntoIterator","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> IntoResponse for [u8; N]

    §

    fn into_response(self) -> Response<Body>

    Create a response.
    ","IntoResponse","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Join for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = [<Fut as IntoFuture>::Output; N]

    The resulting output type.
    §

    type Future = Join<<Fut as IntoFuture>::IntoFuture, N>

    The Future implementation returned by this method.
    §

    fn join(self) -> <[Fut; N] as Join>::Future

    Waits for multiple futures to complete. Read more
    ","Join","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Key for [T; N]
    where\n T: Key,

    §

    fn compare(data1: &[u8], data2: &[u8]) -> Ordering

    Compare data1 with data2
    ","Key","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> MaxSize for [T; N]
    where\n T: MaxSize,

    §

    const POSTCARD_MAX_SIZE: usize = _

    The maximum possible size that the serialization of this\ntype can have, in bytes.
    ","MaxSize","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Merge for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Merge<<S as IntoStream>::IntoStream, N> as Stream>::Item

    The resulting output type.
    §

    type Stream = Merge<<S as IntoStream>::IntoStream, N>

    The stream type.
    §

    fn merge(self) -> <[S; N] as Merge>::Stream

    Combine multiple streams into a single stream.
    ","Merge","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Ord for [T; N]
    where\n T: Ord,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn cmp(&self, other: &[T; N]) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&[U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&mut [U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&mut [U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&mut [U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&mut [U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U; N]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U; N]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U; N]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U; N]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl PartialEq<Cookie> for [u8; 4]

    §

    fn eq(&self, other: &Cookie) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<A, B, const N: usize, const M: usize> PartialEq<Vec<A, N>> for [B; M]
    where\n A: PartialEq<B>,

    §

    fn eq(&self, other: &Vec<A, N>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> PartialOrd for [T; N]
    where\n T: PartialOrd,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn partial_cmp(&self, other: &[T; N]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    source§

    fn lt(&self, other: &[T; N]) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    source§

    fn le(&self, other: &[T; N]) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    source§

    fn ge(&self, other: &[T; N]) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    source§

    fn gt(&self, other: &[T; N]) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    ","PartialOrd","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Race for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = <Fut as IntoFuture>::Output

    The resulting output type.
    §

    type Future = Race<<Fut as IntoFuture>::IntoFuture, N>

    Which kind of future are we turning this into?
    §

    fn race(self) -> <[Fut; N] as Race>::Future

    Wait for the first future to complete. Read more
    ","Race","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> RaceOk for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = T

    The resulting output type.
    §

    type Error = AggregateError<E, N>

    The resulting error type.
    §

    type Future = RaceOk<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn race_ok(self) -> <[Fut; N] as RaceOk>::Future

    Waits for the first successful future to complete.
    ","RaceOk","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> Schema for [T; N]
    where\n T: Schema,

    §

    const SCHEMA: &'static NamedType = _

    A recursive data structure that describes the schema of the given\ntype.
    ","Schema","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Serialize for [T; 32]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<const N: usize> Serialize for [u8; N]

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    ","Serialize","iroh_docs::sync::PeerIdBytes"],["
    1.51.0 · source§

    impl<T, const N: usize> SlicePattern for [T; N]

    §

    type Item = T

    🔬This is a nightly-only experimental API. (slice_pattern)
    The element type of the slice being matched on.
    source§

    fn as_slice(&self) -> &[<[T; N] as SlicePattern>::Item]

    🔬This is a nightly-only experimental API. (slice_pattern)
    Currently, the consumers of SlicePattern need a slice.
    ","SlicePattern","iroh_docs::sync::PeerIdBytes"],["
    1.34.0 · source§

    impl<T, const N: usize> TryFrom<&[T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a slice &[T]. Succeeds if\nslice.len() == N.

    \n\n
    let bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = bytes[1..3].try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &[T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.59.0 · source§

    impl<T, const N: usize> TryFrom<&mut [T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a mutable slice &mut [T].\nSucceeds if slice.len() == N.

    \n\n
    let mut bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&mut bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = (&mut bytes[1..3]).try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &mut [T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&mut [T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    §

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh_docs::sync::PeerIdBytes"],["
    1.48.0 · source§

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    source§

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> TryJoin for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = [T; N]

    The resulting output type.
    §

    type Error = E

    The resulting error type.
    §

    type Future = TryJoin<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn try_join(self) -> <[Fut; N] as TryJoin>::Future

    Waits for multiple futures to complete, either returning when all\nfutures complete successfully, or return early when any future completes\nwith an error.
    ","TryJoin","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Value for [T; N]
    where\n T: Value,

    §

    type SelfType<'a> = [<T as Value>::SelfType<'a>; N]\nwhere\n [T; N]: 'a

    SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
    §

    type AsBytes<'a> = Vec<u8>\nwhere\n [T; N]: 'a

    §

    fn fixed_width() -> Option<usize>

    Width of a fixed type, or None for variable width
    §

    fn from_bytes<'a>(data: &'a [u8]) -> [<T as Value>::SelfType<'a>; N]
    where\n [T; N]: 'a,

    Deserializes data\nImplementations may return a view over data, or an owned type
    §

    fn as_bytes<'a, 'b>(value: &'a <[T; N] as Value>::SelfType<'b>) -> Vec<u8> ⓘ
    where\n 'b: 'a,\n [T; N]: 'a + 'b,

    Serialize the value to a slice
    §

    fn type_name() -> TypeName

    Globally unique identifier for this type
    ","Value","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> ValueOrd for [T; N]
    where\n T: DerOrd,

    §

    fn value_cmp(&self, other: &[T; N]) -> Result<Ordering, Error>

    Return an Ordering between value portion of TLV-encoded self and\nother when serialized as ASN.1 DER.
    ","ValueOrd","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Z, const N: usize> Zeroize for [Z; N]
    where\n Z: Zeroize,

    Impl [Zeroize] on arrays of types that impl [Zeroize].

    \n
    §

    fn zeroize(&mut self)

    Zero out this object from memory using Rust intrinsics which ensure the\nzeroization operation is not “optimized away” by the compiler.
    ","Zeroize","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Zip for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Zip<<S as IntoStream>::IntoStream, N> as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Zip<<S as IntoStream>::IntoStream, N>

    What stream do we return?
    §

    fn zip(self) -> <[S; N] as Zip>::Stream

    Combine multiple streams into a single stream.
    ","Zip","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> ConstParamTy for [T; N]
    where\n T: ConstParamTy,

    ","ConstParamTy","iroh_docs::sync::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Copy for [T; N]
    where\n T: Copy,

    ","Copy","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Eq for [T; N]
    where\n T: Eq,

    ","Eq","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> StructuralPartialEq for [T; N]

    ","StructuralPartialEq","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Unaligned for [T; N]
    where\n T: Unaligned,

    ","Unaligned","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Z, const N: usize> ZeroizeOnDrop for [Z; N]
    where\n Z: ZeroizeOnDrop,

    Impl [ZeroizeOnDrop] on arrays of types that impl [ZeroizeOnDrop].

    \n
    ","ZeroizeOnDrop","iroh_docs::sync::PeerIdBytes"]], -"iroh_willow":[["
    source§

    impl<T, const N: usize> [T; N]

    1.55.0 · source

    pub fn map<F, U>(self, f: F) -> [U; N]
    where\n F: FnMut(T) -> U,

    Returns an array of the same size as self, with function f applied to each element\nin order.

    \n

    If you don’t necessarily need a new fixed-size array, consider using\nIterator::map instead.

    \n
    §Note on performance and stack usage
    \n

    Unfortunately, usages of this method are currently not always optimized\nas well as they could be. This mainly concerns large arrays, as mapping\nover small arrays seem to be optimized just fine. Also note that in\ndebug mode (i.e. without any optimizations), this method can use a lot\nof stack space (a few times the size of the array or more).

    \n

    Therefore, in performance-critical code, try to avoid using this method\non large arrays or check the emitted code. Also try to avoid chained\nmaps (e.g. arr.map(...).map(...)).

    \n

    In many cases, you can instead use Iterator::map by calling .iter()\nor .into_iter() on your array. [T; N]::map is only necessary if you\nreally need a new array of the same size as the result. Rust’s lazy\niterators tend to get optimized very well.

    \n
    §Examples
    \n
    let x = [1, 2, 3];\nlet y = x.map(|v| v + 1);\nassert_eq!(y, [2, 3, 4]);\n\nlet x = [1, 2, 3];\nlet mut temp = 0;\nlet y = x.map(|v| { temp += 1; v * temp });\nassert_eq!(y, [1, 4, 9]);\n\nlet x = [\"Ferris\", \"Bueller's\", \"Day\", \"Off\"];\nlet y = x.map(|v| v.len());\nassert_eq!(y, [6, 9, 3, 3]);
    \n
    source

    pub fn try_map<F, R>(\n self,\n f: F\n) -> <<R as Try>::Residual as Residual<[<R as Try>::Output; N]>>::TryType
    where\n F: FnMut(T) -> R,\n R: Try,\n <R as Try>::Residual: Residual<[<R as Try>::Output; N]>,

    🔬This is a nightly-only experimental API. (array_try_map)

    A fallible function f applied to each element on array self in order to\nreturn an array the same size as self or the first error encountered.

    \n

    The return type of this function depends on the return type of the closure.\nIf you return Result<T, E> from the closure, you’ll get a Result<[T; N], E>.\nIf you return Option<T> from the closure, you’ll get an Option<[T; N]>.

    \n
    §Examples
    \n
    #![feature(array_try_map)]\n\nlet a = [\"1\", \"2\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>()).unwrap().map(|v| v + 1);\nassert_eq!(b, [2, 3, 4]);\n\nlet a = [\"1\", \"2a\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>());\nassert!(b.is_err());\n\nuse std::num::NonZero;\n\nlet z = [1, 2, 0, 3, 4];\nassert_eq!(z.try_map(NonZero::new), None);\n\nlet a = [1, 2, 3];\nlet b = a.try_map(NonZero::new);\nlet c = b.map(|x| x.map(NonZero::get));\nassert_eq!(c, Some(a));
    \n
    1.57.0 (const: 1.57.0) · source

    pub const fn as_slice(&self) -> &[T]

    Returns a slice containing the entire array. Equivalent to &s[..].

    \n
    1.57.0 · source

    pub fn as_mut_slice(&mut self) -> &mut [T]

    Returns a mutable slice containing the entire array. Equivalent to\n&mut s[..].

    \n
    1.77.0 · source

    pub fn each_ref(&self) -> [&T; N]

    Borrows each element and returns an array of references with the same\nsize as self.

    \n
    §Example
    \n
    let floats = [3.1, 2.7, -1.0];\nlet float_refs: [&f64; 3] = floats.each_ref();\nassert_eq!(float_refs, [&3.1, &2.7, &-1.0]);
    \n

    This method is particularly useful if combined with other methods, like\nmap. This way, you can avoid moving the original\narray if its elements are not Copy.

    \n\n
    let strings = [\"Ferris\".to_string(), \"♥\".to_string(), \"Rust\".to_string()];\nlet is_ascii = strings.each_ref().map(|s| s.is_ascii());\nassert_eq!(is_ascii, [true, false, true]);\n\n// We can still access the original array: it has not been moved.\nassert_eq!(strings.len(), 3);
    \n
    1.77.0 · source

    pub fn each_mut(&mut self) -> [&mut T; N]

    Borrows each element mutably and returns an array of mutable references\nwith the same size as self.

    \n
    §Example
    \n
    \nlet mut floats = [3.1, 2.7, -1.0];\nlet float_refs: [&mut f64; 3] = floats.each_mut();\n*float_refs[0] = 0.0;\nassert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);\nassert_eq!(floats, [0.0, 2.7, -1.0]);
    \n
    source

    pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.split_array_ref::<0>();\n   assert_eq!(left, &[]);\n   assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<2>();\n    assert_eq!(left, &[1, 2]);\n    assert_eq!(right, &[3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<6>();\n    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n    assert_eq!(right, &[]);\n}
    \n
    source

    pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.split_array_mut::<2>();\nassert_eq!(left, &mut [1, 0][..]);\nassert_eq!(right, &mut [3, 0, 5, 6]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    source

    pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.rsplit_array_ref::<0>();\n   assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n   assert_eq!(right, &[]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<2>();\n    assert_eq!(left, &[1, 2, 3, 4]);\n    assert_eq!(right, &[5, 6]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<6>();\n    assert_eq!(left, &[]);\n    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}
    \n
    source

    pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.rsplit_array_mut::<4>();\nassert_eq!(left, &mut [1, 0]);\nassert_eq!(right, &mut [3, 0, 5, 6][..]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    ",0,"iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<const N: usize> [u8; N]

    source

    pub const fn as_ascii(&self) -> Option<&[AsciiChar; N]>

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nor returns None if any of the characters is non-ASCII.

    \n
    §Examples
    \n
    #![feature(ascii_char)]\n#![feature(const_option)]\n\nconst HEX_DIGITS: [std::ascii::Char; 16] =\n    *b\"0123456789abcdef\".as_ascii().unwrap();\n\nassert_eq!(HEX_DIGITS[1].as_str(), \"1\");\nassert_eq!(HEX_DIGITS[10].as_str(), \"a\");
    \n
    source

    pub const unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nwithout checking whether they’re valid.

    \n
    §Safety
    \n

    Every byte in the array must be in 0..=127, or else this is UB.

    \n
    ",0,"iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T> Array for [T; 0]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 0usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 0]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 1]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 1usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 1]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 10]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 10usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 10]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 1024]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 1_024usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 1024]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 11]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 11usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 11]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 12]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 12usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 12]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 128]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 128usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 128]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 13]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 13usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 13]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 14]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 14usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 14]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 15]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 15usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 15]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 16]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 16usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 16]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 17]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 17usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 17]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 18]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 18usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 18]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 19]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 19usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 19]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 2]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 2usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 2]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 20]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 20usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 20]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 2048]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 2_048usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 2048]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 21]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 21usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 21]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 22]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 22usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 22]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 23]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 23usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 23]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 24]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 24usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 24]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 25]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 25usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 25]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 256]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 256usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 256]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 26]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 26usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 26]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 27]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 27usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 27]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 28]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 28usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 28]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 29]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 29usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 29]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 3]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 3usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 3]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 30]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 30usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 30]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 31]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 31usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 31]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 32]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 32usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 32]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T> Array for [T; 33]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 33usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 33]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 4]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 4usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 4]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 4096]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 4_096usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 4096]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 5]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 5usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 5]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 512]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 512usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 512]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 6]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 6usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 6]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 64]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 64usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 64]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 7]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 7usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 7]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 8]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 8usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 8]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 9]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 9usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 9]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T, const N: usize> Array for [T; N]

    §

    type Item = T

    The type of the array’s elements.
    §

    fn size() -> usize

    Returns the number of items the array can hold.
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize, T> AsBytes for [T; N]
    where\n T: AsBytes,

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Gets the bytes of this value. Read more
    §

    fn write_to(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to bytes. Read more
    §

    fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the prefix of bytes. Read more
    §

    fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the suffix of bytes. Read more
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl AsBytes for [u8; 0]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 1]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 10]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 11]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 12]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 13]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 14]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 15]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 16]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 17]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 18]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 19]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 2]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 20]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 21]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 22]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 23]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 24]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 25]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 26]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 27]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 28]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 29]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 3]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 30]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 31]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 32]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl AsBytes for [u8; 4]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 5]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 6]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 7]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 8]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 9]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsMut<[T]> for [T; N]

    source§

    fn as_mut(&mut self) -> &mut [T]

    Converts this type into a mutable reference of the (usually inferred) input type.
    ","AsMut<[T]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsRef<[T]> for [T; N]

    source§

    fn as_ref(&self) -> &[T]

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[T]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T, const N: usize> BitView for [T; N]
    where\n T: BitStore,

    Note that overly-large arrays may cause the conversions to fail.

    \n
    §

    type Store = T

    The underlying element type.
    §

    fn view_bits<O>(&self) -> &BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as an immutable bit-slice.
    §

    fn try_view_bits<O>(&self) -> Result<&BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as an immutable bit-slice. Read more
    §

    fn view_bits_mut<O>(&mut self) -> &mut BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as a mutable bit-slice.
    §

    fn try_view_bits_mut<O>(\n &mut self\n) -> Result<&mut BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as a mutable bit-slice. Read more
    ","BitView","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T, const N: usize> BitViewSized for [T; N]
    where\n T: BitStore,

    §

    const ZERO: [T; N] = _

    The zero constant.
    §

    fn as_raw_slice(&self) -> &[<[T; N] as BitView>::Store]

    Views the type as a slice of its elements.
    §

    fn as_raw_mut_slice(&mut self) -> &mut [<[T; N] as BitView>::Store]

    Views the type as a mutable slice of its elements.
    §

    fn into_bitarray<O>(self) -> BitArray<Self, O>
    where\n O: BitOrder,

    Wraps self in a BitArray.
    ","BitViewSized","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> Borrow<[T]> for [T; N]

    source§

    fn borrow(&self) -> &[T]

    Immutably borrows from an owned value. Read more
    ","Borrow<[T]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> BorrowMut<[T]> for [T; N]

    source§

    fn borrow_mut(&mut self) -> &mut [T]

    Mutably borrows from an owned value. Read more
    ","BorrowMut<[T]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<S, const N: usize> Chain for [S; N]
    where\n S: Stream,

    §

    type Item = <S as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Chain<S, N>

    What stream do we return?
    §

    fn chain(self) -> <[S; N] as Chain>::Stream

    Combine multiple streams into a single stream.
    ","Chain","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Clone for [T; N]
    where\n T: Clone,

    source§

    fn clone(&self) -> [T; N]

    Returns a copy of the value. Read more
    source§

    fn clone_from(&mut self, other: &[T; N])

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Debug for [T; N]
    where\n T: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize> Decode for [u8; N]

    Decodes a byte array from byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    type Error = Error

    Type returned in the event of a decoding error.
    §

    fn decode(reader: &mut impl Reader) -> Result<[u8; N], Error>

    Attempt to decode a value of this type using the provided [Reader].
    ","Decode","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<'a, T, const N: usize> DecodeValue<'a> for [T; N]
    where\n T: Decode<'a>,

    §

    fn decode_value<R>(reader: &mut R, header: Header) -> Result<[T; N], Error>
    where\n R: Reader<'a>,

    Attempt to decode this message using the provided [Reader].
    ","DecodeValue<'a>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 32]
    where\n T: Default,

    source§

    fn default() -> [T; 32]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 31]
    where\n T: Default,

    source§

    fn default() -> [T; 31]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 30]
    where\n T: Default,

    source§

    fn default() -> [T; 30]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 29]
    where\n T: Default,

    source§

    fn default() -> [T; 29]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 28]
    where\n T: Default,

    source§

    fn default() -> [T; 28]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 27]
    where\n T: Default,

    source§

    fn default() -> [T; 27]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 26]
    where\n T: Default,

    source§

    fn default() -> [T; 26]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 25]
    where\n T: Default,

    source§

    fn default() -> [T; 25]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 24]
    where\n T: Default,

    source§

    fn default() -> [T; 24]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 23]
    where\n T: Default,

    source§

    fn default() -> [T; 23]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 22]
    where\n T: Default,

    source§

    fn default() -> [T; 22]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 21]
    where\n T: Default,

    source§

    fn default() -> [T; 21]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 20]
    where\n T: Default,

    source§

    fn default() -> [T; 20]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 19]
    where\n T: Default,

    source§

    fn default() -> [T; 19]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 18]
    where\n T: Default,

    source§

    fn default() -> [T; 18]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 17]
    where\n T: Default,

    source§

    fn default() -> [T; 17]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 16]
    where\n T: Default,

    source§

    fn default() -> [T; 16]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 15]
    where\n T: Default,

    source§

    fn default() -> [T; 15]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 14]
    where\n T: Default,

    source§

    fn default() -> [T; 14]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 13]
    where\n T: Default,

    source§

    fn default() -> [T; 13]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 12]
    where\n T: Default,

    source§

    fn default() -> [T; 12]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 11]
    where\n T: Default,

    source§

    fn default() -> [T; 11]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 10]
    where\n T: Default,

    source§

    fn default() -> [T; 10]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 9]
    where\n T: Default,

    source§

    fn default() -> [T; 9]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 8]
    where\n T: Default,

    source§

    fn default() -> [T; 8]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 7]
    where\n T: Default,

    source§

    fn default() -> [T; 7]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 6]
    where\n T: Default,

    source§

    fn default() -> [T; 6]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 5]
    where\n T: Default,

    source§

    fn default() -> [T; 5]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 4]
    where\n T: Default,

    source§

    fn default() -> [T; 4]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 3]
    where\n T: Default,

    source§

    fn default() -> [T; 3]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 2]
    where\n T: Default,

    source§

    fn default() -> [T; 2]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 1]
    where\n T: Default,

    source§

    fn default() -> [T; 1]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 0]

    source§

    fn default() -> [T; 0]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 0]

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 0], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 1]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 1], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 10]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 10], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 11]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 11], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 12]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 12], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 13]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 13], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 14]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 14], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 15]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 15], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 16]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 16], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 17]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 17], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 18]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 18], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 19]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 19], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 2]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 2], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 20]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 20], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 21]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 21], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 22]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 22], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 23]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 23], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 24]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 24], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 25]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 25], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 26]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 26], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 27]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 27], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 28]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 28], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 29]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 29], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 3]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 3], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 30]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 30], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 31]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 31], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 32]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 32], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 4]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 4], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 5]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 5], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 6]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 6], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 7]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 7], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 8]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 8], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 9]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 9], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, const N: usize> Deserialize<'de> for [u8; N]

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[u8; N], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize> Encode for [u8; N]

    Encodes [u8; N] into byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    fn encoded_len(&self) -> Result<usize, Error>

    Get the length of this type encoded in bytes, prior to Base64 encoding.
    §

    fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value using the provided [Writer].
    §

    fn encoded_len_prefixed(&self) -> Result<usize, Error>

    Return the length of this type after encoding when prepended with a\nuint32 length prefix.
    §

    fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value, first prepending a uint32 length prefix\nset to [Encode::encoded_len].
    ","Encode","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T, const N: usize> EncodeLabelSet for [T; N]
    where\n T: EncodeLabel,

    §

    fn encode(&self, encoder: LabelSetEncoder<'_>) -> Result<(), Error>

    Encode oneself into the given encoder.
    ","EncodeLabelSet","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T, const N: usize> EncodeValue for [T; N]
    where\n T: Encode,

    §

    fn value_len(&self) -> Result<Length, Error>

    Compute the length of this value (sans [Tag]+[Length] header) when\nencoded as ASN.1 DER.
    §

    fn encode_value(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode value (sans [Tag]+[Length] header) as ASN.1 DER using the\nprovided [Writer].
    §

    fn header(&self) -> Result<Header, Error>
    where\n Self: Tagged,

    Get the [Header] used to encode this value.
    ","EncodeValue","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 32]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 4096]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Fill for [T; 31]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 30]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 29]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 28]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 27]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 26]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 25]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 24]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 23]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 22]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 21]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 20]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 19]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 18]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 17]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 16]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 15]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 14]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 13]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 12]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 11]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 10]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 9]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 8]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 7]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 6]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 5]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 4]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 3]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 2]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 1]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 0]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 2048]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 1024]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 512]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 256]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 128]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 64]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 0]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 1]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 10]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 11]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 12]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 13]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 14]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 15]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 16]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 17]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 18]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 19]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 2]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 20]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 21]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 22]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 23]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 24]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 25]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 26]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 27]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 28]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 29]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 3]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 30]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 31]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 32]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 4]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 5]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 6]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 7]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 8]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 9]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 0]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 1]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 10]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 11]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 12]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 13]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 14]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 15]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 16]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 17]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 18]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 19]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 2]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 20]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 21]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 22]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 23]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 24]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 25]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 26]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 27]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 28]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 29]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 3]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 30]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 31]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 32]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl FindToken<u8> for [u8; 4]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 5]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 6]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 7]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 8]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 9]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T, const N: usize> FixedTag for [T; N]

    §

    const TAG: Tag = Tag::Sequence

    ASN.1 tag
    ","FixedTag","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl From<&BridgeVlanInfo> for [u8; 4]

    §

    fn from(d: &BridgeVlanInfo) -> [u8; 4]

    Converts to this type from the input type.
    ","From<&BridgeVlanInfo>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl From<&Signature> for [u8; 64]

    §

    fn from(sig: &Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From<&Signature>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.71.0 · source§

    impl<T> From<(T,)> for [T; 1]

    source§

    fn from(tuple: (T,)) -> [T; 1]

    Converts to this type from the input type.
    ","From<(T,)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T)> for [T; 2]

    source§

    fn from(tuple: (T, T)) -> [T; 2]

    Converts to this type from the input type.
    ","From<(T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T)> for [T; 3]

    source§

    fn from(tuple: (T, T, T)) -> [T; 3]

    Converts to this type from the input type.
    ","From<(T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T)> for [T; 4]

    source§

    fn from(tuple: (T, T, T, T)) -> [T; 4]

    Converts to this type from the input type.
    ","From<(T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T, T)> for [T; 5]

    source§

    fn from(tuple: (T, T, T, T, T)) -> [T; 5]

    Converts to this type from the input type.
    ","From<(T, T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T, T, T)> for [T; 6]

    source§

    fn from(tuple: (T, T, T, T, T, T)) -> [T; 6]

    Converts to this type from the input type.
    ","From<(T, T, T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T, T, T, T)> for [T; 7]

    source§

    fn from(tuple: (T, T, T, T, T, T, T)) -> [T; 7]

    Converts to this type from the input type.
    ","From<(T, T, T, T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T, T, T, T, T)> for [T; 8]

    source§

    fn from(tuple: (T, T, T, T, T, T, T, T)) -> [T; 8]

    Converts to this type from the input type.
    ","From<(T, T, T, T, T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T, T, T, T, T, T)> for [T; 9]

    source§

    fn from(tuple: (T, T, T, T, T, T, T, T, T)) -> [T; 9]

    Converts to this type from the input type.
    ","From<(T, T, T, T, T, T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T, T, T, T, T, T, T)> for [T; 10]

    source§

    fn from(tuple: (T, T, T, T, T, T, T, T, T, T)) -> [T; 10]

    Converts to this type from the input type.
    ","From<(T, T, T, T, T, T, T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T, T, T, T, T, T, T, T)> for [T; 11]

    source§

    fn from(tuple: (T, T, T, T, T, T, T, T, T, T, T)) -> [T; 11]

    Converts to this type from the input type.
    ","From<(T, T, T, T, T, T, T, T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T, T, T, T, T, T, T, T, T)> for [T; 12]

    source§

    fn from(tuple: (T, T, T, T, T, T, T, T, T, T, T, T)) -> [T; 12]

    Converts to this type from the input type.
    ","From<(T, T, T, T, T, T, T, T, T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl From<BigEndian<u32>> for [u8; 4]

    source§

    fn from(encoded: BigEndian<u32>) -> [u8; 4]

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl From<BigEndian<u32>> for [u8; 4]

    §

    fn from(encoded: BigEndian<u32>) -> [u8; 4]

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl From<BigEndian<u64>> for [u8; 8]

    source§

    fn from(encoded: BigEndian<u64>) -> [u8; 8]

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl From<Digest> for [u8; 16]

    §

    fn from(digest: Digest) -> [u8; 16]

    Converts to this type from the input type.
    ","From","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>> for [T; 1024]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 1024]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>> for [T; 512]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 512]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B0>>> for [T; 1000]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B0>>\n) -> [T; 1000]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>> for [T; 256]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 256]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B1>, B1>, B0>, B0>>> for [T; 300]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B1>, B1>, B0>, B0>>\n) -> [T; 300]

    Converts to this type from the input type.
    ","From, B0>, B0>, B1>, B0>, B1>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>>> for [T; 400]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>>\n) -> [T; 400]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>>> for [T; 500]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>>\n) -> [T; 500]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>> for [T; 128]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 128]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>>> for [T; 200]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>>\n) -> [T; 200]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B1>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for [T; 64]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 64]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B1>, B0>>> for [T; 70]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B1>, B0>>\n) -> [T; 70]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B1>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>, B0>>> for [T; 80]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>, B0>>\n) -> [T; 80]

    Converts to this type from the input type.
    ","From, B0>, B1>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B1>, B0>>> for [T; 90]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B1>, B0>>\n) -> [T; 90]

    Converts to this type from the input type.
    ","From, B0>, B1>, B1>, B0>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>>> for [T; 100]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>>\n) -> [T; 100]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for [T; 32]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 32]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B1>>> for [T; 33]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B1>>\n) -> [T; 33]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B0>>> for [T; 34]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B0>>\n) -> [T; 34]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B1>>> for [T; 35]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B1>>\n) -> [T; 35]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B0>>> for [T; 36]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B0>>\n) -> [T; 36]

    Converts to this type from the input type.
    ","From, B0>, B0>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B1>>> for [T; 37]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B1>>\n) -> [T; 37]

    Converts to this type from the input type.
    ","From, B0>, B0>, B1>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>, B0>>> for [T; 38]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>, B0>>\n) -> [T; 38]

    Converts to this type from the input type.
    ","From, B0>, B0>, B1>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>, B1>>> for [T; 39]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>, B1>>\n) -> [T; 39]

    Converts to this type from the input type.
    ","From, B0>, B0>, B1>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>>> for [T; 40]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>>\n) -> [T; 40]

    Converts to this type from the input type.
    ","From, B0>, B1>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B1>>> for [T; 41]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B1>>\n) -> [T; 41]

    Converts to this type from the input type.
    ","From, B0>, B1>, B0>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>, B0>>> for [T; 42]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>, B0>>\n) -> [T; 42]

    Converts to this type from the input type.
    ","From, B0>, B1>, B0>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>, B1>>> for [T; 43]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>, B1>>\n) -> [T; 43]

    Converts to this type from the input type.
    ","From, B0>, B1>, B0>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B0>>> for [T; 44]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B0>>\n) -> [T; 44]

    Converts to this type from the input type.
    ","From, B0>, B1>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B1>>> for [T; 45]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B1>>\n) -> [T; 45]

    Converts to this type from the input type.
    ","From, B0>, B1>, B1>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>, B0>>> for [T; 46]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>, B0>>\n) -> [T; 46]

    Converts to this type from the input type.
    ","From, B0>, B1>, B1>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>, B1>>> for [T; 47]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>, B1>>\n) -> [T; 47]

    Converts to this type from the input type.
    ","From, B0>, B1>, B1>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>>> for [T; 48]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>>\n) -> [T; 48]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B1>>> for [T; 49]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B1>>\n) -> [T; 49]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>>> for [T; 50]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>>\n) -> [T; 50]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B1>>> for [T; 51]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B1>>\n) -> [T; 51]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>, B0>>> for [T; 52]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>, B0>>\n) -> [T; 52]

    Converts to this type from the input type.
    ","From, B1>, B0>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>, B1>>> for [T; 53]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>, B1>>\n) -> [T; 53]

    Converts to this type from the input type.
    ","From, B1>, B0>, B1>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>, B0>>> for [T; 54]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>, B0>>\n) -> [T; 54]

    Converts to this type from the input type.
    ","From, B1>, B0>, B1>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>, B1>>> for [T; 55]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>, B1>>\n) -> [T; 55]

    Converts to this type from the input type.
    ","From, B1>, B0>, B1>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>, B0>>> for [T; 56]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>, B0>>\n) -> [T; 56]

    Converts to this type from the input type.
    ","From, B1>, B1>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>, B1>>> for [T; 57]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>, B1>>\n) -> [T; 57]

    Converts to this type from the input type.
    ","From, B1>, B1>, B0>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>, B0>>> for [T; 58]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>, B0>>\n) -> [T; 58]

    Converts to this type from the input type.
    ","From, B1>, B1>, B0>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>, B1>>> for [T; 59]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>, B1>>\n) -> [T; 59]

    Converts to this type from the input type.
    ","From, B1>, B1>, B0>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>, B0>>> for [T; 60]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>, B0>>\n) -> [T; 60]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>, B1>>> for [T; 61]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>, B1>>\n) -> [T; 61]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>>> for [T; 62]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>>\n) -> [T; 62]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B1>>> for [T; 63]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B1>>\n) -> [T; 63]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>> for [T; 16]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>\n) -> [T; 16]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>>> for [T; 17]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>>\n) -> [T; 17]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>>> for [T; 18]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>>\n) -> [T; 18]

    Converts to this type from the input type.
    ","From, B0>, B0>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>>> for [T; 19]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>>\n) -> [T; 19]

    Converts to this type from the input type.
    ","From, B0>, B0>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>>> for [T; 20]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>>\n) -> [T; 20]

    Converts to this type from the input type.
    ","From, B0>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>>> for [T; 21]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>>\n) -> [T; 21]

    Converts to this type from the input type.
    ","From, B0>, B1>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>>> for [T; 22]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>>\n) -> [T; 22]

    Converts to this type from the input type.
    ","From, B0>, B1>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>>> for [T; 23]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>>\n) -> [T; 23]

    Converts to this type from the input type.
    ","From, B0>, B1>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>>> for [T; 24]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>>\n) -> [T; 24]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>>> for [T; 25]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>>\n) -> [T; 25]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>>> for [T; 26]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>>\n) -> [T; 26]

    Converts to this type from the input type.
    ","From, B1>, B0>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>>> for [T; 27]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>>\n) -> [T; 27]

    Converts to this type from the input type.
    ","From, B1>, B0>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>>> for [T; 28]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>>\n) -> [T; 28]

    Converts to this type from the input type.
    ","From, B1>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>>> for [T; 29]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>>\n) -> [T; 29]

    Converts to this type from the input type.
    ","From, B1>, B1>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>>> for [T; 30]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>>\n) -> [T; 30]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>>> for [T; 31]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>>\n) -> [T; 31]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>>> for [T; 8]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>>\n) -> [T; 8]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>>> for [T; 9]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>>\n) -> [T; 9]

    Converts to this type from the input type.
    ","From, B0>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>>> for [T; 10]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>>\n) -> [T; 10]

    Converts to this type from the input type.
    ","From, B0>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>>> for [T; 11]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>>\n) -> [T; 11]

    Converts to this type from the input type.
    ","From, B0>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>>> for [T; 12]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>>\n) -> [T; 12]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>>> for [T; 13]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>>\n) -> [T; 13]

    Converts to this type from the input type.
    ","From, B1>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>>> for [T; 14]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>>\n) -> [T; 14]

    Converts to this type from the input type.
    ","From, B1>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>>> for [T; 15]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>>\n) -> [T; 15]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B0>, B0>>> for [T; 4]

    §

    fn from(sel: GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B0>, B0>>) -> [T; 4]

    Converts to this type from the input type.
    ","From, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B0>, B1>>> for [T; 5]

    §

    fn from(sel: GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B0>, B1>>) -> [T; 5]

    Converts to this type from the input type.
    ","From, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B1>, B0>>> for [T; 6]

    §

    fn from(sel: GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B1>, B0>>) -> [T; 6]

    Converts to this type from the input type.
    ","From, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B1>, B1>>> for [T; 7]

    §

    fn from(sel: GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B1>, B1>>) -> [T; 7]

    Converts to this type from the input type.
    ","From, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UTerm, B1>, B0>>> for [T; 2]

    §

    fn from(sel: GenericArray<T, UInt<UInt<UTerm, B1>, B0>>) -> [T; 2]

    Converts to this type from the input type.
    ","From, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UTerm, B1>, B1>>> for [T; 3]

    §

    fn from(sel: GenericArray<T, UInt<UInt<UTerm, B1>, B1>>) -> [T; 3]

    Converts to this type from the input type.
    ","From, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UTerm, B1>>> for [T; 1]

    §

    fn from(sel: GenericArray<T, UInt<UTerm, B1>>) -> [T; 1]

    Converts to this type from the input type.
    ","From>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl From<Hash> for [u8; 32]

    source§

    fn from(value: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

    fn from(hash: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize, const UPPERCASE: bool> From<HexOrBin<N, UPPERCASE>> for [u8; N]

    §

    fn from(hex_or_bin: HexOrBin<N, UPPERCASE>) -> [u8; N]

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl From<LittleEndian<u32>> for [u8; 4]

    source§

    fn from(encoded: LittleEndian<u32>) -> [u8; 4]

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl From<LittleEndian<u64>> for [u8; 8]

    source§

    fn from(encoded: LittleEndian<u64>) -> [u8; 8]

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl From<MacAddr> for [u8; 6]

    §

    fn from(addr: MacAddr) -> [u8; 6]

    Converts to this type from the input type.
    ","From","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl From<NamespaceId> for [u8; 32]

    source§

    fn from(value: NamespaceId) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl From<Signature> for [u8; 64]

    §

    fn from(sig: Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T, const N: usize> From<Simd<T, N>> for [T; N]

    source§

    fn from(vector: Simd<T, N>) -> [T; N]

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl From<UserId> for [u8; 32]

    source§

    fn from(value: UserId) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize, T> FromBytes for [T; N]
    where\n T: FromBytes,

    §

    fn ref_from(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the given bytes as a &Self without copying. Read more
    §

    fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &Self without copying. Read more
    §

    fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &Self without copying. Read more
    §

    fn slice_from(bytes: &[u8]) -> Option<&[Self]>
    where\n Self: Sized,

    Interprets the given bytes as a &[Self] without copying. Read more
    §

    fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn read_from(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from bytes. Read more
    §

    fn read_from_prefix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the prefix of bytes. Read more
    §

    fn read_from_suffix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the suffix of bytes. Read more
    ","FromBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl FromHex for [u8; 1]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 1], <[u8; 1] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 10]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 10], <[u8; 10] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 100]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 100], <[u8; 100] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 101]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 101], <[u8; 101] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 102]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 102], <[u8; 102] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 1024]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 1024], <[u8; 1024] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 103]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 103], <[u8; 103] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 104]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 104], <[u8; 104] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 1048576]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 1048576], <[u8; 1048576] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 105]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 105], <[u8; 105] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 106]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 106], <[u8; 106] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 107]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 107], <[u8; 107] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 1073741824]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 1073741824], <[u8; 1073741824] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 108]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 108], <[u8; 108] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 109]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 109], <[u8; 109] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 11]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 11], <[u8; 11] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 110]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 110], <[u8; 110] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 111]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 111], <[u8; 111] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 112]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 112], <[u8; 112] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 113]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 113], <[u8; 113] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 114]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 114], <[u8; 114] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 115]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 115], <[u8; 115] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 116]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 116], <[u8; 116] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 117]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 117], <[u8; 117] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 118]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 118], <[u8; 118] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 119]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 119], <[u8; 119] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 12]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 12], <[u8; 12] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 120]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 120], <[u8; 120] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 121]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 121], <[u8; 121] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 122]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 122], <[u8; 122] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 123]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 123], <[u8; 123] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 124]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 124], <[u8; 124] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 125]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 125], <[u8; 125] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 126]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 126], <[u8; 126] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 127]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 127], <[u8; 127] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 128]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 128], <[u8; 128] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 13]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 13], <[u8; 13] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 131072]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 131072], <[u8; 131072] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 134217728]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 134217728], <[u8; 134217728] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 14]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 14], <[u8; 14] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 15]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 15], <[u8; 15] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 16]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 16], <[u8; 16] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 160]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 160], <[u8; 160] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 16384]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 16384], <[u8; 16384] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 16777216]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 16777216], <[u8; 16777216] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 17]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 17], <[u8; 17] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 18]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 18], <[u8; 18] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 19]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 19], <[u8; 19] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 192]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 192], <[u8; 192] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 2]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 2], <[u8; 2] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 20]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 20], <[u8; 20] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 200]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 200], <[u8; 200] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 2048]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 2048], <[u8; 2048] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 2097152]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 2097152], <[u8; 2097152] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 21]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 21], <[u8; 21] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 2147483648]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 2147483648], <[u8; 2147483648] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 22]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 22], <[u8; 22] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 224]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 224], <[u8; 224] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 23]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 23], <[u8; 23] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 24]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 24], <[u8; 24] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 25]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 25], <[u8; 25] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 256]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 256], <[u8; 256] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 26]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 26], <[u8; 26] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 262144]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 262144], <[u8; 262144] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 268435456]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 268435456], <[u8; 268435456] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 27]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 27], <[u8; 27] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 28]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 28], <[u8; 28] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 29]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 29], <[u8; 29] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 3]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 3], <[u8; 3] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 30]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 30], <[u8; 30] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 31]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 31], <[u8; 31] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 32]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 32], <[u8; 32] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl FromHex for [u8; 32768]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 32768], <[u8; 32768] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 33]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 33], <[u8; 33] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 33554432]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 33554432], <[u8; 33554432] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 34]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 34], <[u8; 34] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 35]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 35], <[u8; 35] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 36]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 36], <[u8; 36] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 37]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 37], <[u8; 37] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 38]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 38], <[u8; 38] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 384]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 384], <[u8; 384] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 39]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 39], <[u8; 39] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 4]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 4], <[u8; 4] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 40]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 40], <[u8; 40] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 4096]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 4096], <[u8; 4096] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 41]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 41], <[u8; 41] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 4194304]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 4194304], <[u8; 4194304] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 42]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 42], <[u8; 42] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 4294967296]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 4294967296], <[u8; 4294967296] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 43]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 43], <[u8; 43] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 44]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 44], <[u8; 44] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 45]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 45], <[u8; 45] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 46]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 46], <[u8; 46] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 47]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 47], <[u8; 47] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 48]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 48], <[u8; 48] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 49]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 49], <[u8; 49] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 5]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 5], <[u8; 5] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 50]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 50], <[u8; 50] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 51]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 51], <[u8; 51] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 512]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 512], <[u8; 512] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 52]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 52], <[u8; 52] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 524288]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 524288], <[u8; 524288] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 53]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 53], <[u8; 53] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 536870912]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 536870912], <[u8; 536870912] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 54]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 54], <[u8; 54] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 55]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 55], <[u8; 55] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 56]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 56], <[u8; 56] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 57]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 57], <[u8; 57] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 58]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 58], <[u8; 58] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 59]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 59], <[u8; 59] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 6]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 6], <[u8; 6] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 60]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 60], <[u8; 60] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 61]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 61], <[u8; 61] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 62]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 62], <[u8; 62] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 63]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 63], <[u8; 63] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 64]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 64], <[u8; 64] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 65]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 65], <[u8; 65] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 65536]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 65536], <[u8; 65536] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 66]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 66], <[u8; 66] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 67]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 67], <[u8; 67] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 67108864]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 67108864], <[u8; 67108864] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 68]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 68], <[u8; 68] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 69]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 69], <[u8; 69] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 7]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 7], <[u8; 7] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 70]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 70], <[u8; 70] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 71]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 71], <[u8; 71] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 72]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 72], <[u8; 72] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 73]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 73], <[u8; 73] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 74]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 74], <[u8; 74] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 75]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 75], <[u8; 75] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 76]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 76], <[u8; 76] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 768]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 768], <[u8; 768] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 77]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 77], <[u8; 77] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 78]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 78], <[u8; 78] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 79]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 79], <[u8; 79] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 8]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 8], <[u8; 8] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 80]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 80], <[u8; 80] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 81]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 81], <[u8; 81] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 8192]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 8192], <[u8; 8192] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 82]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 82], <[u8; 82] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 83]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 83], <[u8; 83] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 8388608]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 8388608], <[u8; 8388608] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 84]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 84], <[u8; 84] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 85]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 85], <[u8; 85] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 86]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 86], <[u8; 86] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 87]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 87], <[u8; 87] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 88]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 88], <[u8; 88] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 89]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 89], <[u8; 89] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 9]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 9], <[u8; 9] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 90]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 90], <[u8; 90] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 91]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 91], <[u8; 91] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 92]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 92], <[u8; 92] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 93]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 93], <[u8; 93] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 94]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 94], <[u8; 94] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 95]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 95], <[u8; 95] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 96]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 96], <[u8; 96] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 97]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 97], <[u8; 97] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 98]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 98], <[u8; 98] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 99]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 99], <[u8; 99] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<const N: usize, T> FromZeroes for [T; N]
    where\n T: FromZeroes,

    §

    fn zero(&mut self)

    Overwrites self with zeroes. Read more
    §

    fn new_zeroed() -> Self
    where\n Self: Sized,

    Creates an instance of Self from zeroed bytes. Read more
    ","FromZeroes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T> Hash for [T; 0]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 1]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 10]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 11]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 12]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 13]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 14]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 15]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 16]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 17]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 18]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 19]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 2]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 20]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 21]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 22]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 23]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 24]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 25]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 26]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 27]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 28]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 29]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 3]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 30]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 31]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 32]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T> Hash for [T; 4]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 5]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 6]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 7]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 8]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 9]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Hash for [T; N]
    where\n T: Hash,

    The hash of an array is the same as that of the corresponding slice,\nas required by the Borrow implementation.

    \n\n
    use std::hash::BuildHasher;\n\nlet b = std::hash::RandomState::new();\nlet a: [u8; 3] = [0xa8, 0x3c, 0x09];\nlet s: &[u8] = &[0xa8, 0x3c, 0x09];\nassert_eq!(b.hash_one(a), b.hash_one(s));
    \n
    source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> Index<I> for [T; N]
    where\n [T]: Index<I>,

    §

    type Output = <[T] as Index<I>>::Output

    The returned type after indexing.
    source§

    fn index(&self, index: I) -> &<[T; N] as Index<I>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> IndexMut<I> for [T; N]
    where\n [T]: IndexMut<I>,

    source§

    fn index_mut(&mut self, index: I) -> &mut <[T; N] as Index<I>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl InputLength for [u8; 0]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 1]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 10]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 11]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 12]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 13]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 14]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 15]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 16]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 17]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 18]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 19]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 2]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 20]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 21]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 22]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 23]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 24]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 25]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 26]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 27]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 28]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 29]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 3]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 30]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 31]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 32]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl InputLength for [u8; 4]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 5]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 6]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 7]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 8]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 9]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.53.0 · source§

    impl<T, const N: usize> IntoIterator for [T; N]

    source§

    fn into_iter(self) -> <[T; N] as IntoIterator>::IntoIter

    Creates a consuming iterator, that is, one that moves each value out of\nthe array (from start to end). The array cannot be used after calling\nthis unless T implements Copy, so the whole array is copied.

    \n

    Arrays have special behavior when calling .into_iter() prior to the\n2021 edition – see the array Editions section for more information.

    \n
    §

    type Item = T

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<T, N>

    Which kind of iterator are we turning this into?
    ","IntoIterator","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize> IntoResponse for [u8; N]

    §

    fn into_response(self) -> Response<Body>

    Create a response.
    ","IntoResponse","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<Fut, const N: usize> Join for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = [<Fut as IntoFuture>::Output; N]

    The resulting output type.
    §

    type Future = Join<<Fut as IntoFuture>::IntoFuture, N>

    The Future implementation returned by this method.
    §

    fn join(self) -> <[Fut; N] as Join>::Future

    Waits for multiple futures to complete. Read more
    ","Join","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize, T> Key for [T; N]
    where\n T: Key,

    §

    fn compare(data1: &[u8], data2: &[u8]) -> Ordering

    Compare data1 with data2
    ","Key","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T, const N: usize> MaxSize for [T; N]
    where\n T: MaxSize,

    §

    const POSTCARD_MAX_SIZE: usize = _

    The maximum possible size that the serialization of this\ntype can have, in bytes.
    ","MaxSize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<S, const N: usize> Merge for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Merge<<S as IntoStream>::IntoStream, N> as Stream>::Item

    The resulting output type.
    §

    type Stream = Merge<<S as IntoStream>::IntoStream, N>

    The stream type.
    §

    fn merge(self) -> <[S; N] as Merge>::Stream

    Combine multiple streams into a single stream.
    ","Merge","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Ord for [T; N]
    where\n T: Ord,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn cmp(&self, other: &[T; N]) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&[U]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&mut [U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&mut [U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&mut [U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&mut [U]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U; N]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U; N]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U; N]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U; N]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl PartialEq<Cookie> for [u8; 4]

    §

    fn eq(&self, other: &Cookie) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<A, B, const N: usize, const M: usize> PartialEq<Vec<A, N>> for [B; M]
    where\n A: PartialEq<B>,

    §

    fn eq(&self, other: &Vec<A, N>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> PartialOrd for [T; N]
    where\n T: PartialOrd,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn partial_cmp(&self, other: &[T; N]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    source§

    fn lt(&self, other: &[T; N]) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    source§

    fn le(&self, other: &[T; N]) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    source§

    fn ge(&self, other: &[T; N]) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    source§

    fn gt(&self, other: &[T; N]) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    ","PartialOrd","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<Fut, const N: usize> Race for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = <Fut as IntoFuture>::Output

    The resulting output type.
    §

    type Future = Race<<Fut as IntoFuture>::IntoFuture, N>

    Which kind of future are we turning this into?
    §

    fn race(self) -> <[Fut; N] as Race>::Future

    Wait for the first future to complete. Read more
    ","Race","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<Fut, T, E, const N: usize> RaceOk for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = T

    The resulting output type.
    §

    type Error = AggregateError<E, N>

    The resulting error type.
    §

    type Future = RaceOk<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn race_ok(self) -> <[Fut; N] as RaceOk>::Future

    Waits for the first successful future to complete.
    ","RaceOk","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T, const N: usize> Schema for [T; N]
    where\n T: Schema,

    §

    const SCHEMA: &'static NamedType = _

    A recursive data structure that describes the schema of the given\ntype.
    ","Schema","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Serialize for [T; 0]

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 1]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 10]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 11]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 12]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 13]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 14]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 15]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 16]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 17]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 18]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 19]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 2]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 20]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 21]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 22]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 23]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 24]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 25]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 26]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 27]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 28]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 29]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 3]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 30]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 31]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 32]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Serialize for [T; 4]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 5]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 6]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 7]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 8]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 9]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<const N: usize> Serialize for [u8; N]

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.51.0 · source§

    impl<T, const N: usize> SlicePattern for [T; N]

    §

    type Item = T

    🔬This is a nightly-only experimental API. (slice_pattern)
    The element type of the slice being matched on.
    source§

    fn as_slice(&self) -> &[<[T; N] as SlicePattern>::Item]

    🔬This is a nightly-only experimental API. (slice_pattern)
    Currently, the consumers of SlicePattern need a slice.
    ","SlicePattern","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.34.0 · source§

    impl<T, const N: usize> TryFrom<&[T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a slice &[T]. Succeeds if\nslice.len() == N.

    \n\n
    let bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = bytes[1..3].try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &[T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&[T]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.59.0 · source§

    impl<T, const N: usize> TryFrom<&mut [T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a mutable slice &mut [T].\nSucceeds if slice.len() == N.

    \n\n
    let mut bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&mut bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = (&mut bytes[1..3]).try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &mut [T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&mut [T]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    §

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.48.0 · source§

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    source§

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<Fut, T, E, const N: usize> TryJoin for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = [T; N]

    The resulting output type.
    §

    type Error = E

    The resulting error type.
    §

    type Future = TryJoin<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn try_join(self) -> <[Fut; N] as TryJoin>::Future

    Waits for multiple futures to complete, either returning when all\nfutures complete successfully, or return early when any future completes\nwith an error.
    ","TryJoin","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize, T> Value for [T; N]
    where\n T: Value,

    §

    type SelfType<'a> = [<T as Value>::SelfType<'a>; N]\nwhere\n [T; N]: 'a

    SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
    §

    type AsBytes<'a> = Vec<u8>\nwhere\n [T; N]: 'a

    §

    fn fixed_width() -> Option<usize>

    Width of a fixed type, or None for variable width
    §

    fn from_bytes<'a>(data: &'a [u8]) -> [<T as Value>::SelfType<'a>; N]
    where\n [T; N]: 'a,

    Deserializes data\nImplementations may return a view over data, or an owned type
    §

    fn as_bytes<'a, 'b>(value: &'a <[T; N] as Value>::SelfType<'b>) -> Vec<u8> ⓘ
    where\n 'b: 'a,\n [T; N]: 'a + 'b,

    Serialize the value to a slice
    §

    fn type_name() -> TypeName

    Globally unique identifier for this type
    ","Value","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T, const N: usize> ValueOrd for [T; N]
    where\n T: DerOrd,

    §

    fn value_cmp(&self, other: &[T; N]) -> Result<Ordering, Error>

    Return an Ordering between value portion of TLV-encoded self and\nother when serialized as ASN.1 DER.
    ","ValueOrd","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<Z, const N: usize> Zeroize for [Z; N]
    where\n Z: Zeroize,

    Impl [Zeroize] on arrays of types that impl [Zeroize].

    \n
    §

    fn zeroize(&mut self)

    Zero out this object from memory using Rust intrinsics which ensure the\nzeroization operation is not “optimized away” by the compiler.
    ","Zeroize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<S, const N: usize> Zip for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Zip<<S as IntoStream>::IntoStream, N> as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Zip<<S as IntoStream>::IntoStream, N>

    What stream do we return?
    §

    fn zip(self) -> <[S; N] as Zip>::Stream

    Combine multiple streams into a single stream.
    ","Zip","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T, const N: usize> ConstParamTy for [T; N]
    where\n T: ConstParamTy,

    ","ConstParamTy","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Copy for [T; N]
    where\n T: Copy,

    ","Copy","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Eq for [T; N]
    where\n T: Eq,

    ","Eq","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T, const N: usize> StructuralPartialEq for [T; N]

    ","StructuralPartialEq","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize, T> Unaligned for [T; N]
    where\n T: Unaligned,

    ","Unaligned","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<Z, const N: usize> ZeroizeOnDrop for [Z; N]
    where\n Z: ZeroizeOnDrop,

    Impl [ZeroizeOnDrop] on arrays of types that impl [ZeroizeOnDrop].

    \n
    ","ZeroizeOnDrop","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"]] +"iroh":[["
    source§

    impl<T, const N: usize> [T; N]

    1.55.0 · source

    pub fn map<F, U>(self, f: F) -> [U; N]
    where\n F: FnMut(T) -> U,

    Returns an array of the same size as self, with function f applied to each element\nin order.

    \n

    If you don’t necessarily need a new fixed-size array, consider using\nIterator::map instead.

    \n
    §Note on performance and stack usage
    \n

    Unfortunately, usages of this method are currently not always optimized\nas well as they could be. This mainly concerns large arrays, as mapping\nover small arrays seem to be optimized just fine. Also note that in\ndebug mode (i.e. without any optimizations), this method can use a lot\nof stack space (a few times the size of the array or more).

    \n

    Therefore, in performance-critical code, try to avoid using this method\non large arrays or check the emitted code. Also try to avoid chained\nmaps (e.g. arr.map(...).map(...)).

    \n

    In many cases, you can instead use Iterator::map by calling .iter()\nor .into_iter() on your array. [T; N]::map is only necessary if you\nreally need a new array of the same size as the result. Rust’s lazy\niterators tend to get optimized very well.

    \n
    §Examples
    \n
    let x = [1, 2, 3];\nlet y = x.map(|v| v + 1);\nassert_eq!(y, [2, 3, 4]);\n\nlet x = [1, 2, 3];\nlet mut temp = 0;\nlet y = x.map(|v| { temp += 1; v * temp });\nassert_eq!(y, [1, 4, 9]);\n\nlet x = [\"Ferris\", \"Bueller's\", \"Day\", \"Off\"];\nlet y = x.map(|v| v.len());\nassert_eq!(y, [6, 9, 3, 3]);
    \n
    source

    pub fn try_map<F, R>(\n self,\n f: F\n) -> <<R as Try>::Residual as Residual<[<R as Try>::Output; N]>>::TryType
    where\n F: FnMut(T) -> R,\n R: Try,\n <R as Try>::Residual: Residual<[<R as Try>::Output; N]>,

    🔬This is a nightly-only experimental API. (array_try_map)

    A fallible function f applied to each element on array self in order to\nreturn an array the same size as self or the first error encountered.

    \n

    The return type of this function depends on the return type of the closure.\nIf you return Result<T, E> from the closure, you’ll get a Result<[T; N], E>.\nIf you return Option<T> from the closure, you’ll get an Option<[T; N]>.

    \n
    §Examples
    \n
    #![feature(array_try_map)]\n\nlet a = [\"1\", \"2\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>()).unwrap().map(|v| v + 1);\nassert_eq!(b, [2, 3, 4]);\n\nlet a = [\"1\", \"2a\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>());\nassert!(b.is_err());\n\nuse std::num::NonZero;\n\nlet z = [1, 2, 0, 3, 4];\nassert_eq!(z.try_map(NonZero::new), None);\n\nlet a = [1, 2, 3];\nlet b = a.try_map(NonZero::new);\nlet c = b.map(|x| x.map(NonZero::get));\nassert_eq!(c, Some(a));
    \n
    1.57.0 (const: 1.57.0) · source

    pub const fn as_slice(&self) -> &[T]

    Returns a slice containing the entire array. Equivalent to &s[..].

    \n
    1.57.0 · source

    pub fn as_mut_slice(&mut self) -> &mut [T]

    Returns a mutable slice containing the entire array. Equivalent to\n&mut s[..].

    \n
    1.77.0 · source

    pub fn each_ref(&self) -> [&T; N]

    Borrows each element and returns an array of references with the same\nsize as self.

    \n
    §Example
    \n
    let floats = [3.1, 2.7, -1.0];\nlet float_refs: [&f64; 3] = floats.each_ref();\nassert_eq!(float_refs, [&3.1, &2.7, &-1.0]);
    \n

    This method is particularly useful if combined with other methods, like\nmap. This way, you can avoid moving the original\narray if its elements are not Copy.

    \n\n
    let strings = [\"Ferris\".to_string(), \"♥\".to_string(), \"Rust\".to_string()];\nlet is_ascii = strings.each_ref().map(|s| s.is_ascii());\nassert_eq!(is_ascii, [true, false, true]);\n\n// We can still access the original array: it has not been moved.\nassert_eq!(strings.len(), 3);
    \n
    1.77.0 · source

    pub fn each_mut(&mut self) -> [&mut T; N]

    Borrows each element mutably and returns an array of mutable references\nwith the same size as self.

    \n
    §Example
    \n
    \nlet mut floats = [3.1, 2.7, -1.0];\nlet float_refs: [&mut f64; 3] = floats.each_mut();\n*float_refs[0] = 0.0;\nassert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);\nassert_eq!(floats, [0.0, 2.7, -1.0]);
    \n
    source

    pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.split_array_ref::<0>();\n   assert_eq!(left, &[]);\n   assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<2>();\n    assert_eq!(left, &[1, 2]);\n    assert_eq!(right, &[3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<6>();\n    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n    assert_eq!(right, &[]);\n}
    \n
    source

    pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.split_array_mut::<2>();\nassert_eq!(left, &mut [1, 0][..]);\nassert_eq!(right, &mut [3, 0, 5, 6]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    source

    pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.rsplit_array_ref::<0>();\n   assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n   assert_eq!(right, &[]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<2>();\n    assert_eq!(left, &[1, 2, 3, 4]);\n    assert_eq!(right, &[5, 6]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<6>();\n    assert_eq!(left, &[]);\n    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}
    \n
    source

    pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.rsplit_array_mut::<4>();\nassert_eq!(left, &mut [1, 0]);\nassert_eq!(right, &mut [3, 0, 5, 6][..]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    ",0,"iroh::docs::PeerIdBytes"],["
    source§

    impl<const N: usize> [u8; N]

    source

    pub const fn as_ascii(&self) -> Option<&[AsciiChar; N]>

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nor returns None if any of the characters is non-ASCII.

    \n
    §Examples
    \n
    #![feature(ascii_char)]\n#![feature(const_option)]\n\nconst HEX_DIGITS: [std::ascii::Char; 16] =\n    *b\"0123456789abcdef\".as_ascii().unwrap();\n\nassert_eq!(HEX_DIGITS[1].as_str(), \"1\");\nassert_eq!(HEX_DIGITS[10].as_str(), \"a\");
    \n
    source

    pub const unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nwithout checking whether they’re valid.

    \n
    §Safety
    \n

    Every byte in the array must be in 0..=127, or else this is UB.

    \n
    ",0,"iroh::docs::PeerIdBytes"],["
    §

    impl<T> Array for [T; 32]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 32usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 32]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> Array for [T; N]

    §

    type Item = T

    The type of the array’s elements.
    §

    fn size() -> usize

    Returns the number of items the array can hold.
    ","Array","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> AsBytes for [T; N]
    where\n T: AsBytes,

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Gets the bytes of this value. Read more
    §

    fn write_to(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to bytes. Read more
    §

    fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the prefix of bytes. Read more
    §

    fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the suffix of bytes. Read more
    ","AsBytes","iroh::docs::PeerIdBytes"],["
    §

    impl AsBytes for [u8; 32]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsMut<[T]> for [T; N]

    source§

    fn as_mut(&mut self) -> &mut [T]

    Converts this type into a mutable reference of the (usually inferred) input type.
    ","AsMut<[T]>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsRef<[T]> for [T; N]

    source§

    fn as_ref(&self) -> &[T]

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[T]>","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitView for [T; N]
    where\n T: BitStore,

    Note that overly-large arrays may cause the conversions to fail.

    \n
    §

    type Store = T

    The underlying element type.
    §

    fn view_bits<O>(&self) -> &BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as an immutable bit-slice.
    §

    fn try_view_bits<O>(&self) -> Result<&BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as an immutable bit-slice. Read more
    §

    fn view_bits_mut<O>(&mut self) -> &mut BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as a mutable bit-slice.
    §

    fn try_view_bits_mut<O>(\n &mut self\n) -> Result<&mut BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as a mutable bit-slice. Read more
    ","BitView","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitViewSized for [T; N]
    where\n T: BitStore,

    §

    const ZERO: [T; N] = _

    The zero constant.
    §

    fn as_raw_slice(&self) -> &[<[T; N] as BitView>::Store]

    Views the type as a slice of its elements.
    §

    fn as_raw_mut_slice(&mut self) -> &mut [<[T; N] as BitView>::Store]

    Views the type as a mutable slice of its elements.
    §

    fn into_bitarray<O>(self) -> BitArray<Self, O>
    where\n O: BitOrder,

    Wraps self in a BitArray.
    ","BitViewSized","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> Borrow<[T]> for [T; N]

    source§

    fn borrow(&self) -> &[T]

    Immutably borrows from an owned value. Read more
    ","Borrow<[T]>","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> BorrowMut<[T]> for [T; N]

    source§

    fn borrow_mut(&mut self) -> &mut [T]

    Mutably borrows from an owned value. Read more
    ","BorrowMut<[T]>","iroh::docs::PeerIdBytes"],["
    §

    impl<S, const N: usize> Chain for [S; N]
    where\n S: Stream,

    §

    type Item = <S as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Chain<S, N>

    What stream do we return?
    §

    fn chain(self) -> <[S; N] as Chain>::Stream

    Combine multiple streams into a single stream.
    ","Chain","iroh::docs::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Clone for [T; N]
    where\n T: Clone,

    source§

    fn clone(&self) -> [T; N]

    Returns a copy of the value. Read more
    source§

    fn clone_from(&mut self, other: &[T; N])

    Performs copy-assignment from source. Read more
    ","Clone","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Debug for [T; N]
    where\n T: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize> Decode for [u8; N]

    Decodes a byte array from byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    type Error = Error

    Type returned in the event of a decoding error.
    §

    fn decode(reader: &mut impl Reader) -> Result<[u8; N], Error>

    Attempt to decode a value of this type using the provided [Reader].
    ","Decode","iroh::docs::PeerIdBytes"],["
    §

    impl<'a, T, const N: usize> DecodeValue<'a> for [T; N]
    where\n T: Decode<'a>,

    §

    fn decode_value<R>(reader: &mut R, header: Header) -> Result<[T; N], Error>
    where\n R: Reader<'a>,

    Attempt to decode this message using the provided [Reader].
    ","DecodeValue<'a>","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 32]
    where\n T: Default,

    source§

    fn default() -> [T; 32]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 31]
    where\n T: Default,

    source§

    fn default() -> [T; 31]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 30]
    where\n T: Default,

    source§

    fn default() -> [T; 30]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 29]
    where\n T: Default,

    source§

    fn default() -> [T; 29]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 28]
    where\n T: Default,

    source§

    fn default() -> [T; 28]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 27]
    where\n T: Default,

    source§

    fn default() -> [T; 27]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 26]
    where\n T: Default,

    source§

    fn default() -> [T; 26]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 25]
    where\n T: Default,

    source§

    fn default() -> [T; 25]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 24]
    where\n T: Default,

    source§

    fn default() -> [T; 24]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 23]
    where\n T: Default,

    source§

    fn default() -> [T; 23]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 22]
    where\n T: Default,

    source§

    fn default() -> [T; 22]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 21]
    where\n T: Default,

    source§

    fn default() -> [T; 21]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 20]
    where\n T: Default,

    source§

    fn default() -> [T; 20]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 19]
    where\n T: Default,

    source§

    fn default() -> [T; 19]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 18]
    where\n T: Default,

    source§

    fn default() -> [T; 18]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 17]
    where\n T: Default,

    source§

    fn default() -> [T; 17]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 16]
    where\n T: Default,

    source§

    fn default() -> [T; 16]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 15]
    where\n T: Default,

    source§

    fn default() -> [T; 15]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 14]
    where\n T: Default,

    source§

    fn default() -> [T; 14]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 13]
    where\n T: Default,

    source§

    fn default() -> [T; 13]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 12]
    where\n T: Default,

    source§

    fn default() -> [T; 12]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 11]
    where\n T: Default,

    source§

    fn default() -> [T; 11]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 10]
    where\n T: Default,

    source§

    fn default() -> [T; 10]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 9]
    where\n T: Default,

    source§

    fn default() -> [T; 9]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 8]
    where\n T: Default,

    source§

    fn default() -> [T; 8]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 7]
    where\n T: Default,

    source§

    fn default() -> [T; 7]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 6]
    where\n T: Default,

    source§

    fn default() -> [T; 6]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 5]
    where\n T: Default,

    source§

    fn default() -> [T; 5]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 4]
    where\n T: Default,

    source§

    fn default() -> [T; 4]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 3]
    where\n T: Default,

    source§

    fn default() -> [T; 3]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 2]
    where\n T: Default,

    source§

    fn default() -> [T; 2]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 1]
    where\n T: Default,

    source§

    fn default() -> [T; 1]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 0]

    source§

    fn default() -> [T; 0]

    Returns the “default value” for a type. Read more
    ","Default","iroh::docs::PeerIdBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 32]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 32], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh::docs::PeerIdBytes"],["
    source§

    impl<'de, const N: usize> Deserialize<'de> for [u8; N]

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[u8; N], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    ","Deserialize<'de>","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize> Encode for [u8; N]

    Encodes [u8; N] into byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    fn encoded_len(&self) -> Result<usize, Error>

    Get the length of this type encoded in bytes, prior to Base64 encoding.
    §

    fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value using the provided [Writer].
    §

    fn encoded_len_prefixed(&self) -> Result<usize, Error>

    Return the length of this type after encoding when prepended with a\nuint32 length prefix.
    §

    fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value, first prepending a uint32 length prefix\nset to [Encode::encoded_len].
    ","Encode","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeLabelSet for [T; N]
    where\n T: EncodeLabel,

    §

    fn encode(&self, encoder: LabelSetEncoder<'_>) -> Result<(), Error>

    Encode oneself into the given encoder.
    ","EncodeLabelSet","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeValue for [T; N]
    where\n T: Encode,

    §

    fn value_len(&self) -> Result<Length, Error>

    Compute the length of this value (sans [Tag]+[Length] header) when\nencoded as ASN.1 DER.
    §

    fn encode_value(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode value (sans [Tag]+[Length] header) as ASN.1 DER using the\nprovided [Writer].
    §

    fn header(&self) -> Result<Header, Error>
    where\n Self: Tagged,

    Get the [Header] used to encode this value.
    ","EncodeValue","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 32]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 31]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 30]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 29]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 28]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 27]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 26]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 25]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 24]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 23]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 22]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 21]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 20]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 19]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 18]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 17]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 16]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 15]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 14]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 13]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 12]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 11]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 10]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 9]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 8]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 7]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 6]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 5]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 4]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 3]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 0]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2048]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1024]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 512]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 256]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 128]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 64]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh::docs::PeerIdBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 32]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh::docs::PeerIdBytes"],["
    §

    impl FindToken<u8> for [u8; 32]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> FixedTag for [T; N]

    §

    const TAG: Tag = Tag::Sequence

    ASN.1 tag
    ","FixedTag","iroh::docs::PeerIdBytes"],["
    §

    impl From<&Signature> for [u8; 64]

    §

    fn from(sig: &Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From<&Signature>","iroh::docs::PeerIdBytes"],["
    §

    impl From<AuthorId> for [u8; 32]

    §

    fn from(value: AuthorId) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for [T; 32]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 32]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>>>","iroh::docs::PeerIdBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

    fn from(value: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

    fn from(hash: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, const UPPERCASE: bool> From<HexOrBin<N, UPPERCASE>> for [u8; N]

    §

    fn from(hex_or_bin: HexOrBin<N, UPPERCASE>) -> [u8; N]

    Converts to this type from the input type.
    ","From>","iroh::docs::PeerIdBytes"],["
    §

    impl From<MacAddr> for [u8; 6]

    §

    fn from(addr: MacAddr) -> [u8; 6]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl From<NamespaceId> for [u8; 32]

    §

    fn from(value: NamespaceId) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    §

    impl From<Signature> for [u8; 64]

    §

    fn from(sig: Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From","iroh::docs::PeerIdBytes"],["
    source§

    impl<T, const N: usize> From<Simd<T, N>> for [T; N]

    source§

    fn from(vector: Simd<T, N>) -> [T; N]

    Converts to this type from the input type.
    ","From>","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromBytes for [T; N]
    where\n T: FromBytes,

    §

    fn ref_from(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the given bytes as a &Self without copying. Read more
    §

    fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &Self without copying. Read more
    §

    fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &Self without copying. Read more
    §

    fn slice_from(bytes: &[u8]) -> Option<&[Self]>
    where\n Self: Sized,

    Interprets the given bytes as a &[Self] without copying. Read more
    §

    fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn read_from(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from bytes. Read more
    §

    fn read_from_prefix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the prefix of bytes. Read more
    §

    fn read_from_suffix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the suffix of bytes. Read more
    ","FromBytes","iroh::docs::PeerIdBytes"],["
    source§

    impl FromHex for [u8; 32]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 32], <[u8; 32] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromZeroes for [T; N]
    where\n T: FromZeroes,

    §

    fn zero(&mut self)

    Overwrites self with zeroes. Read more
    §

    fn new_zeroed() -> Self
    where\n Self: Sized,

    Creates an instance of Self from zeroed bytes. Read more
    ","FromZeroes","iroh::docs::PeerIdBytes"],["
    §

    impl<T> Hash for [T; 32]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Hash for [T; N]
    where\n T: Hash,

    The hash of an array is the same as that of the corresponding slice,\nas required by the Borrow implementation.

    \n\n
    use std::hash::BuildHasher;\n\nlet b = std::hash::RandomState::new();\nlet a: [u8; 3] = [0xa8, 0x3c, 0x09];\nlet s: &[u8] = &[0xa8, 0x3c, 0x09];\nassert_eq!(b.hash_one(a), b.hash_one(s));
    \n
    source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh::docs::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> Index<I> for [T; N]
    where\n [T]: Index<I>,

    §

    type Output = <[T] as Index<I>>::Output

    The returned type after indexing.
    source§

    fn index(&self, index: I) -> &<[T; N] as Index<I>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","iroh::docs::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> IndexMut<I> for [T; N]
    where\n [T]: IndexMut<I>,

    source§

    fn index_mut(&mut self, index: I) -> &mut <[T; N] as Index<I>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","iroh::docs::PeerIdBytes"],["
    §

    impl InputLength for [u8; 32]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh::docs::PeerIdBytes"],["
    1.53.0 · source§

    impl<T, const N: usize> IntoIterator for [T; N]

    source§

    fn into_iter(self) -> <[T; N] as IntoIterator>::IntoIter

    Creates a consuming iterator, that is, one that moves each value out of\nthe array (from start to end). The array cannot be used after calling\nthis unless T implements Copy, so the whole array is copied.

    \n

    Arrays have special behavior when calling .into_iter() prior to the\n2021 edition – see the array Editions section for more information.

    \n
    §

    type Item = T

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<T, N>

    Which kind of iterator are we turning this into?
    ","IntoIterator","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize> IntoResponse for [u8; N]

    §

    fn into_response(self) -> Response<Body>

    Create a response.
    ","IntoResponse","iroh::docs::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Join for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = [<Fut as IntoFuture>::Output; N]

    The resulting output type.
    §

    type Future = Join<<Fut as IntoFuture>::IntoFuture, N>

    The Future implementation returned by this method.
    §

    fn join(self) -> <[Fut; N] as Join>::Future

    Waits for multiple futures to complete. Read more
    ","Join","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> Key for [T; N]
    where\n T: Key,

    §

    fn compare(data1: &[u8], data2: &[u8]) -> Ordering

    Compare data1 with data2
    ","Key","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> MaxSize for [T; N]
    where\n T: MaxSize,

    §

    const POSTCARD_MAX_SIZE: usize = _

    The maximum possible size that the serialization of this\ntype can have, in bytes.
    ","MaxSize","iroh::docs::PeerIdBytes"],["
    §

    impl<S, const N: usize> Merge for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Merge<<S as IntoStream>::IntoStream, N> as Stream>::Item

    The resulting output type.
    §

    type Stream = Merge<<S as IntoStream>::IntoStream, N>

    The stream type.
    §

    fn merge(self) -> <[S; N] as Merge>::Stream

    Combine multiple streams into a single stream.
    ","Merge","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Ord for [T; N]
    where\n T: Ord,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn cmp(&self, other: &[T; N]) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&[U]>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&mut [U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&mut [U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&mut [U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&mut [U]>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U]>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U; N]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U; N]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U; N]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U; N]>","iroh::docs::PeerIdBytes"],["
    §

    impl PartialEq<Cookie> for [u8; 4]

    §

    fn eq(&self, other: &Cookie) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh::docs::PeerIdBytes"],["
    §

    impl<A, B, const N: usize, const M: usize> PartialEq<Vec<A, N>> for [B; M]
    where\n A: PartialEq<B>,

    §

    fn eq(&self, other: &Vec<A, N>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq>","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> PartialOrd for [T; N]
    where\n T: PartialOrd,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn partial_cmp(&self, other: &[T; N]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    source§

    fn lt(&self, other: &[T; N]) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    source§

    fn le(&self, other: &[T; N]) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    source§

    fn ge(&self, other: &[T; N]) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    source§

    fn gt(&self, other: &[T; N]) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    ","PartialOrd","iroh::docs::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Race for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = <Fut as IntoFuture>::Output

    The resulting output type.
    §

    type Future = Race<<Fut as IntoFuture>::IntoFuture, N>

    Which kind of future are we turning this into?
    §

    fn race(self) -> <[Fut; N] as Race>::Future

    Wait for the first future to complete. Read more
    ","Race","iroh::docs::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> RaceOk for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = T

    The resulting output type.
    §

    type Error = AggregateError<E, N>

    The resulting error type.
    §

    type Future = RaceOk<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn race_ok(self) -> <[Fut; N] as RaceOk>::Future

    Waits for the first successful future to complete.
    ","RaceOk","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> Schema for [T; N]
    where\n T: Schema,

    §

    const SCHEMA: &'static NamedType = _

    A recursive data structure that describes the schema of the given\ntype.
    ","Schema","iroh::docs::PeerIdBytes"],["
    source§

    impl<T> Serialize for [T; 32]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh::docs::PeerIdBytes"],["
    source§

    impl<const N: usize> Serialize for [u8; N]

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    ","Serialize","iroh::docs::PeerIdBytes"],["
    1.51.0 · source§

    impl<T, const N: usize> SlicePattern for [T; N]

    §

    type Item = T

    🔬This is a nightly-only experimental API. (slice_pattern)
    The element type of the slice being matched on.
    source§

    fn as_slice(&self) -> &[<[T; N] as SlicePattern>::Item]

    🔬This is a nightly-only experimental API. (slice_pattern)
    Currently, the consumers of SlicePattern need a slice.
    ","SlicePattern","iroh::docs::PeerIdBytes"],["
    1.34.0 · source§

    impl<T, const N: usize> TryFrom<&[T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a slice &[T]. Succeeds if\nslice.len() == N.

    \n\n
    let bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = bytes[1..3].try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &[T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&[T]>","iroh::docs::PeerIdBytes"],["
    1.59.0 · source§

    impl<T, const N: usize> TryFrom<&mut [T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a mutable slice &mut [T].\nSucceeds if slice.len() == N.

    \n\n
    let mut bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&mut bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = (&mut bytes[1..3]).try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &mut [T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&mut [T]>","iroh::docs::PeerIdBytes"],["
    §

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    §

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh::docs::PeerIdBytes"],["
    1.48.0 · source§

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    source§

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh::docs::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> TryJoin for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = [T; N]

    The resulting output type.
    §

    type Error = E

    The resulting error type.
    §

    type Future = TryJoin<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn try_join(self) -> <[Fut; N] as TryJoin>::Future

    Waits for multiple futures to complete, either returning when all\nfutures complete successfully, or return early when any future completes\nwith an error.
    ","TryJoin","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> Value for [T; N]
    where\n T: Value,

    §

    type SelfType<'a> = [<T as Value>::SelfType<'a>; N]\nwhere\n [T; N]: 'a

    SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
    §

    type AsBytes<'a> = Vec<u8>\nwhere\n [T; N]: 'a

    §

    fn fixed_width() -> Option<usize>

    Width of a fixed type, or None for variable width
    §

    fn from_bytes<'a>(data: &'a [u8]) -> [<T as Value>::SelfType<'a>; N]
    where\n [T; N]: 'a,

    Deserializes data\nImplementations may return a view over data, or an owned type
    §

    fn as_bytes<'a, 'b>(value: &'a <[T; N] as Value>::SelfType<'b>) -> Vec<u8> ⓘ
    where\n 'b: 'a,\n [T; N]: 'a + 'b,

    Serialize the value to a slice
    §

    fn type_name() -> TypeName

    Globally unique identifier for this type
    ","Value","iroh::docs::PeerIdBytes"],["
    §

    impl<T, const N: usize> ValueOrd for [T; N]
    where\n T: DerOrd,

    §

    fn value_cmp(&self, other: &[T; N]) -> Result<Ordering, Error>

    Return an Ordering between value portion of TLV-encoded self and\nother when serialized as ASN.1 DER.
    ","ValueOrd","iroh::docs::PeerIdBytes"],["
    §

    impl<Z, const N: usize> Zeroize for [Z; N]
    where\n Z: Zeroize,

    Impl [Zeroize] on arrays of types that impl [Zeroize].

    \n
    §

    fn zeroize(&mut self)

    Zero out this object from memory using Rust intrinsics which ensure the\nzeroization operation is not “optimized away” by the compiler.
    ","Zeroize","iroh::docs::PeerIdBytes"],["
    §

    impl<S, const N: usize> Zip for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Zip<<S as IntoStream>::IntoStream, N> as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Zip<<S as IntoStream>::IntoStream, N>

    What stream do we return?
    §

    fn zip(self) -> <[S; N] as Zip>::Stream

    Combine multiple streams into a single stream.
    ","Zip","iroh::docs::PeerIdBytes"],["
    source§

    impl<T, const N: usize> ConstParamTy for [T; N]
    where\n T: ConstParamTy,

    ","ConstParamTy","iroh::docs::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Copy for [T; N]
    where\n T: Copy,

    ","Copy","iroh::docs::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Eq for [T; N]
    where\n T: Eq,

    ","Eq","iroh::docs::PeerIdBytes"],["
    source§

    impl<T, const N: usize> StructuralPartialEq for [T; N]

    ","StructuralPartialEq","iroh::docs::PeerIdBytes"],["
    §

    impl<const N: usize, T> Unaligned for [T; N]
    where\n T: Unaligned,

    ","Unaligned","iroh::docs::PeerIdBytes"],["
    §

    impl<Z, const N: usize> ZeroizeOnDrop for [Z; N]
    where\n Z: ZeroizeOnDrop,

    Impl [ZeroizeOnDrop] on arrays of types that impl [ZeroizeOnDrop].

    \n
    ","ZeroizeOnDrop","iroh::docs::PeerIdBytes"]], +"iroh_docs":[["
    source§

    impl<T, const N: usize> [T; N]

    1.55.0 · source

    pub fn map<F, U>(self, f: F) -> [U; N]
    where\n F: FnMut(T) -> U,

    Returns an array of the same size as self, with function f applied to each element\nin order.

    \n

    If you don’t necessarily need a new fixed-size array, consider using\nIterator::map instead.

    \n
    §Note on performance and stack usage
    \n

    Unfortunately, usages of this method are currently not always optimized\nas well as they could be. This mainly concerns large arrays, as mapping\nover small arrays seem to be optimized just fine. Also note that in\ndebug mode (i.e. without any optimizations), this method can use a lot\nof stack space (a few times the size of the array or more).

    \n

    Therefore, in performance-critical code, try to avoid using this method\non large arrays or check the emitted code. Also try to avoid chained\nmaps (e.g. arr.map(...).map(...)).

    \n

    In many cases, you can instead use Iterator::map by calling .iter()\nor .into_iter() on your array. [T; N]::map is only necessary if you\nreally need a new array of the same size as the result. Rust’s lazy\niterators tend to get optimized very well.

    \n
    §Examples
    \n
    let x = [1, 2, 3];\nlet y = x.map(|v| v + 1);\nassert_eq!(y, [2, 3, 4]);\n\nlet x = [1, 2, 3];\nlet mut temp = 0;\nlet y = x.map(|v| { temp += 1; v * temp });\nassert_eq!(y, [1, 4, 9]);\n\nlet x = [\"Ferris\", \"Bueller's\", \"Day\", \"Off\"];\nlet y = x.map(|v| v.len());\nassert_eq!(y, [6, 9, 3, 3]);
    \n
    source

    pub fn try_map<F, R>(\n self,\n f: F\n) -> <<R as Try>::Residual as Residual<[<R as Try>::Output; N]>>::TryType
    where\n F: FnMut(T) -> R,\n R: Try,\n <R as Try>::Residual: Residual<[<R as Try>::Output; N]>,

    🔬This is a nightly-only experimental API. (array_try_map)

    A fallible function f applied to each element on array self in order to\nreturn an array the same size as self or the first error encountered.

    \n

    The return type of this function depends on the return type of the closure.\nIf you return Result<T, E> from the closure, you’ll get a Result<[T; N], E>.\nIf you return Option<T> from the closure, you’ll get an Option<[T; N]>.

    \n
    §Examples
    \n
    #![feature(array_try_map)]\n\nlet a = [\"1\", \"2\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>()).unwrap().map(|v| v + 1);\nassert_eq!(b, [2, 3, 4]);\n\nlet a = [\"1\", \"2a\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>());\nassert!(b.is_err());\n\nuse std::num::NonZero;\n\nlet z = [1, 2, 0, 3, 4];\nassert_eq!(z.try_map(NonZero::new), None);\n\nlet a = [1, 2, 3];\nlet b = a.try_map(NonZero::new);\nlet c = b.map(|x| x.map(NonZero::get));\nassert_eq!(c, Some(a));
    \n
    1.57.0 (const: 1.57.0) · source

    pub const fn as_slice(&self) -> &[T]

    Returns a slice containing the entire array. Equivalent to &s[..].

    \n
    1.57.0 · source

    pub fn as_mut_slice(&mut self) -> &mut [T]

    Returns a mutable slice containing the entire array. Equivalent to\n&mut s[..].

    \n
    1.77.0 · source

    pub fn each_ref(&self) -> [&T; N]

    Borrows each element and returns an array of references with the same\nsize as self.

    \n
    §Example
    \n
    let floats = [3.1, 2.7, -1.0];\nlet float_refs: [&f64; 3] = floats.each_ref();\nassert_eq!(float_refs, [&3.1, &2.7, &-1.0]);
    \n

    This method is particularly useful if combined with other methods, like\nmap. This way, you can avoid moving the original\narray if its elements are not Copy.

    \n\n
    let strings = [\"Ferris\".to_string(), \"♥\".to_string(), \"Rust\".to_string()];\nlet is_ascii = strings.each_ref().map(|s| s.is_ascii());\nassert_eq!(is_ascii, [true, false, true]);\n\n// We can still access the original array: it has not been moved.\nassert_eq!(strings.len(), 3);
    \n
    1.77.0 · source

    pub fn each_mut(&mut self) -> [&mut T; N]

    Borrows each element mutably and returns an array of mutable references\nwith the same size as self.

    \n
    §Example
    \n
    \nlet mut floats = [3.1, 2.7, -1.0];\nlet float_refs: [&mut f64; 3] = floats.each_mut();\n*float_refs[0] = 0.0;\nassert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);\nassert_eq!(floats, [0.0, 2.7, -1.0]);
    \n
    source

    pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.split_array_ref::<0>();\n   assert_eq!(left, &[]);\n   assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<2>();\n    assert_eq!(left, &[1, 2]);\n    assert_eq!(right, &[3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<6>();\n    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n    assert_eq!(right, &[]);\n}
    \n
    source

    pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.split_array_mut::<2>();\nassert_eq!(left, &mut [1, 0][..]);\nassert_eq!(right, &mut [3, 0, 5, 6]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    source

    pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.rsplit_array_ref::<0>();\n   assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n   assert_eq!(right, &[]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<2>();\n    assert_eq!(left, &[1, 2, 3, 4]);\n    assert_eq!(right, &[5, 6]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<6>();\n    assert_eq!(left, &[]);\n    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}
    \n
    source

    pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.rsplit_array_mut::<4>();\nassert_eq!(left, &mut [1, 0]);\nassert_eq!(right, &mut [3, 0, 5, 6][..]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    ",0,"iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<const N: usize> [u8; N]

    source

    pub const fn as_ascii(&self) -> Option<&[AsciiChar; N]>

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nor returns None if any of the characters is non-ASCII.

    \n
    §Examples
    \n
    #![feature(ascii_char)]\n#![feature(const_option)]\n\nconst HEX_DIGITS: [std::ascii::Char; 16] =\n    *b\"0123456789abcdef\".as_ascii().unwrap();\n\nassert_eq!(HEX_DIGITS[1].as_str(), \"1\");\nassert_eq!(HEX_DIGITS[10].as_str(), \"a\");
    \n
    source

    pub const unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nwithout checking whether they’re valid.

    \n
    §Safety
    \n

    Every byte in the array must be in 0..=127, or else this is UB.

    \n
    ",0,"iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> Array for [T; 32]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 32usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 32]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> Array for [T; N]

    §

    type Item = T

    The type of the array’s elements.
    §

    fn size() -> usize

    Returns the number of items the array can hold.
    ","Array","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> AsBytes for [T; N]
    where\n T: AsBytes,

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Gets the bytes of this value. Read more
    §

    fn write_to(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to bytes. Read more
    §

    fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the prefix of bytes. Read more
    §

    fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the suffix of bytes. Read more
    ","AsBytes","iroh_docs::sync::PeerIdBytes"],["
    §

    impl AsBytes for [u8; 32]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsMut<[T]> for [T; N]

    source§

    fn as_mut(&mut self) -> &mut [T]

    Converts this type into a mutable reference of the (usually inferred) input type.
    ","AsMut<[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsRef<[T]> for [T; N]

    source§

    fn as_ref(&self) -> &[T]

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitView for [T; N]
    where\n T: BitStore,

    Note that overly-large arrays may cause the conversions to fail.

    \n
    §

    type Store = T

    The underlying element type.
    §

    fn view_bits<O>(&self) -> &BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as an immutable bit-slice.
    §

    fn try_view_bits<O>(&self) -> Result<&BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as an immutable bit-slice. Read more
    §

    fn view_bits_mut<O>(&mut self) -> &mut BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as a mutable bit-slice.
    §

    fn try_view_bits_mut<O>(\n &mut self\n) -> Result<&mut BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as a mutable bit-slice. Read more
    ","BitView","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> BitViewSized for [T; N]
    where\n T: BitStore,

    §

    const ZERO: [T; N] = _

    The zero constant.
    §

    fn as_raw_slice(&self) -> &[<[T; N] as BitView>::Store]

    Views the type as a slice of its elements.
    §

    fn as_raw_mut_slice(&mut self) -> &mut [<[T; N] as BitView>::Store]

    Views the type as a mutable slice of its elements.
    §

    fn into_bitarray<O>(self) -> BitArray<Self, O>
    where\n O: BitOrder,

    Wraps self in a BitArray.
    ","BitViewSized","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> Borrow<[T]> for [T; N]

    source§

    fn borrow(&self) -> &[T]

    Immutably borrows from an owned value. Read more
    ","Borrow<[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> BorrowMut<[T]> for [T; N]

    source§

    fn borrow_mut(&mut self) -> &mut [T]

    Mutably borrows from an owned value. Read more
    ","BorrowMut<[T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Chain for [S; N]
    where\n S: Stream,

    §

    type Item = <S as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Chain<S, N>

    What stream do we return?
    §

    fn chain(self) -> <[S; N] as Chain>::Stream

    Combine multiple streams into a single stream.
    ","Chain","iroh_docs::sync::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Clone for [T; N]
    where\n T: Clone,

    source§

    fn clone(&self) -> [T; N]

    Returns a copy of the value. Read more
    source§

    fn clone_from(&mut self, other: &[T; N])

    Performs copy-assignment from source. Read more
    ","Clone","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Debug for [T; N]
    where\n T: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> Decode for [u8; N]

    Decodes a byte array from byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    type Error = Error

    Type returned in the event of a decoding error.
    §

    fn decode(reader: &mut impl Reader) -> Result<[u8; N], Error>

    Attempt to decode a value of this type using the provided [Reader].
    ","Decode","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<'a, T, const N: usize> DecodeValue<'a> for [T; N]
    where\n T: Decode<'a>,

    §

    fn decode_value<R>(reader: &mut R, header: Header) -> Result<[T; N], Error>
    where\n R: Reader<'a>,

    Attempt to decode this message using the provided [Reader].
    ","DecodeValue<'a>","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 32]
    where\n T: Default,

    source§

    fn default() -> [T; 32]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 31]
    where\n T: Default,

    source§

    fn default() -> [T; 31]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 30]
    where\n T: Default,

    source§

    fn default() -> [T; 30]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 29]
    where\n T: Default,

    source§

    fn default() -> [T; 29]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 28]
    where\n T: Default,

    source§

    fn default() -> [T; 28]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 27]
    where\n T: Default,

    source§

    fn default() -> [T; 27]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 26]
    where\n T: Default,

    source§

    fn default() -> [T; 26]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 25]
    where\n T: Default,

    source§

    fn default() -> [T; 25]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 24]
    where\n T: Default,

    source§

    fn default() -> [T; 24]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 23]
    where\n T: Default,

    source§

    fn default() -> [T; 23]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 22]
    where\n T: Default,

    source§

    fn default() -> [T; 22]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 21]
    where\n T: Default,

    source§

    fn default() -> [T; 21]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 20]
    where\n T: Default,

    source§

    fn default() -> [T; 20]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 19]
    where\n T: Default,

    source§

    fn default() -> [T; 19]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 18]
    where\n T: Default,

    source§

    fn default() -> [T; 18]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 17]
    where\n T: Default,

    source§

    fn default() -> [T; 17]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 16]
    where\n T: Default,

    source§

    fn default() -> [T; 16]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 15]
    where\n T: Default,

    source§

    fn default() -> [T; 15]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 14]
    where\n T: Default,

    source§

    fn default() -> [T; 14]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 13]
    where\n T: Default,

    source§

    fn default() -> [T; 13]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 12]
    where\n T: Default,

    source§

    fn default() -> [T; 12]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 11]
    where\n T: Default,

    source§

    fn default() -> [T; 11]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 10]
    where\n T: Default,

    source§

    fn default() -> [T; 10]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 9]
    where\n T: Default,

    source§

    fn default() -> [T; 9]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 8]
    where\n T: Default,

    source§

    fn default() -> [T; 8]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 7]
    where\n T: Default,

    source§

    fn default() -> [T; 7]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 6]
    where\n T: Default,

    source§

    fn default() -> [T; 6]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 5]
    where\n T: Default,

    source§

    fn default() -> [T; 5]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 4]
    where\n T: Default,

    source§

    fn default() -> [T; 4]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 3]
    where\n T: Default,

    source§

    fn default() -> [T; 3]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 2]
    where\n T: Default,

    source§

    fn default() -> [T; 2]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 1]
    where\n T: Default,

    source§

    fn default() -> [T; 1]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 0]

    source§

    fn default() -> [T; 0]

    Returns the “default value” for a type. Read more
    ","Default","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 32]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 32], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<'de, const N: usize> Deserialize<'de> for [u8; N]

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[u8; N], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    ","Deserialize<'de>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> Encode for [u8; N]

    Encodes [u8; N] into byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    fn encoded_len(&self) -> Result<usize, Error>

    Get the length of this type encoded in bytes, prior to Base64 encoding.
    §

    fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value using the provided [Writer].
    §

    fn encoded_len_prefixed(&self) -> Result<usize, Error>

    Return the length of this type after encoding when prepended with a\nuint32 length prefix.
    §

    fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value, first prepending a uint32 length prefix\nset to [Encode::encoded_len].
    ","Encode","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeLabelSet for [T; N]
    where\n T: EncodeLabel,

    §

    fn encode(&self, encoder: LabelSetEncoder<'_>) -> Result<(), Error>

    Encode oneself into the given encoder.
    ","EncodeLabelSet","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> EncodeValue for [T; N]
    where\n T: Encode,

    §

    fn value_len(&self) -> Result<Length, Error>

    Compute the length of this value (sans [Tag]+[Length] header) when\nencoded as ASN.1 DER.
    §

    fn encode_value(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode value (sans [Tag]+[Length] header) as ASN.1 DER using the\nprovided [Writer].
    §

    fn header(&self) -> Result<Header, Error>
    where\n Self: Tagged,

    Get the [Header] used to encode this value.
    ","EncodeValue","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 32]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 31]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 30]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 29]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 28]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 27]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 26]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 25]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 24]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 23]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 22]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 21]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 20]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 19]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 18]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 17]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 16]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 15]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 14]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 13]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 12]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 11]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 10]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 9]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 8]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 7]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 6]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 5]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 4]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 3]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 0]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 2048]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 1024]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 512]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 256]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 128]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Fill for [T; 64]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 32]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl FindToken<u8> for [u8; 32]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> FixedTag for [T; N]

    §

    const TAG: Tag = Tag::Sequence

    ASN.1 tag
    ","FixedTag","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<&Signature> for [u8; 64]

    §

    fn from(sig: &Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From<&Signature>","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl From<AuthorId> for [u8; 32]

    source§

    fn from(value: AuthorId) -> Self

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for [T; 32]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 32]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>>>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

    fn from(value: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

    fn from(hash: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, const UPPERCASE: bool> From<HexOrBin<N, UPPERCASE>> for [u8; N]

    §

    fn from(hex_or_bin: HexOrBin<N, UPPERCASE>) -> [u8; N]

    Converts to this type from the input type.
    ","From>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<MacAddr> for [u8; 6]

    §

    fn from(addr: MacAddr) -> [u8; 6]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl From<NamespaceId> for [u8; 32]

    source§

    fn from(value: NamespaceId) -> Self

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    §

    impl From<Signature> for [u8; 64]

    §

    fn from(sig: Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> From<Simd<T, N>> for [T; N]

    source§

    fn from(vector: Simd<T, N>) -> [T; N]

    Converts to this type from the input type.
    ","From>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromBytes for [T; N]
    where\n T: FromBytes,

    §

    fn ref_from(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the given bytes as a &Self without copying. Read more
    §

    fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &Self without copying. Read more
    §

    fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &Self without copying. Read more
    §

    fn slice_from(bytes: &[u8]) -> Option<&[Self]>
    where\n Self: Sized,

    Interprets the given bytes as a &[Self] without copying. Read more
    §

    fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn read_from(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from bytes. Read more
    §

    fn read_from_prefix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the prefix of bytes. Read more
    §

    fn read_from_suffix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the suffix of bytes. Read more
    ","FromBytes","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl FromHex for [u8; 32]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 32], <[u8; 32] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> FromZeroes for [T; N]
    where\n T: FromZeroes,

    §

    fn zero(&mut self)

    Overwrites self with zeroes. Read more
    §

    fn new_zeroed() -> Self
    where\n Self: Sized,

    Creates an instance of Self from zeroed bytes. Read more
    ","FromZeroes","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T> Hash for [T; 32]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Hash for [T; N]
    where\n T: Hash,

    The hash of an array is the same as that of the corresponding slice,\nas required by the Borrow implementation.

    \n\n
    use std::hash::BuildHasher;\n\nlet b = std::hash::RandomState::new();\nlet a: [u8; 3] = [0xa8, 0x3c, 0x09];\nlet s: &[u8] = &[0xa8, 0x3c, 0x09];\nassert_eq!(b.hash_one(a), b.hash_one(s));
    \n
    source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_docs::sync::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> Index<I> for [T; N]
    where\n [T]: Index<I>,

    §

    type Output = <[T] as Index<I>>::Output

    The returned type after indexing.
    source§

    fn index(&self, index: I) -> &<[T; N] as Index<I>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","iroh_docs::sync::PeerIdBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> IndexMut<I> for [T; N]
    where\n [T]: IndexMut<I>,

    source§

    fn index_mut(&mut self, index: I) -> &mut <[T; N] as Index<I>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","iroh_docs::sync::PeerIdBytes"],["
    §

    impl InputLength for [u8; 32]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_docs::sync::PeerIdBytes"],["
    1.53.0 · source§

    impl<T, const N: usize> IntoIterator for [T; N]

    source§

    fn into_iter(self) -> <[T; N] as IntoIterator>::IntoIter

    Creates a consuming iterator, that is, one that moves each value out of\nthe array (from start to end). The array cannot be used after calling\nthis unless T implements Copy, so the whole array is copied.

    \n

    Arrays have special behavior when calling .into_iter() prior to the\n2021 edition – see the array Editions section for more information.

    \n
    §

    type Item = T

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<T, N>

    Which kind of iterator are we turning this into?
    ","IntoIterator","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize> IntoResponse for [u8; N]

    §

    fn into_response(self) -> Response<Body>

    Create a response.
    ","IntoResponse","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Join for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = [<Fut as IntoFuture>::Output; N]

    The resulting output type.
    §

    type Future = Join<<Fut as IntoFuture>::IntoFuture, N>

    The Future implementation returned by this method.
    §

    fn join(self) -> <[Fut; N] as Join>::Future

    Waits for multiple futures to complete. Read more
    ","Join","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Key for [T; N]
    where\n T: Key,

    §

    fn compare(data1: &[u8], data2: &[u8]) -> Ordering

    Compare data1 with data2
    ","Key","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> MaxSize for [T; N]
    where\n T: MaxSize,

    §

    const POSTCARD_MAX_SIZE: usize = _

    The maximum possible size that the serialization of this\ntype can have, in bytes.
    ","MaxSize","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Merge for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Merge<<S as IntoStream>::IntoStream, N> as Stream>::Item

    The resulting output type.
    §

    type Stream = Merge<<S as IntoStream>::IntoStream, N>

    The stream type.
    §

    fn merge(self) -> <[S; N] as Merge>::Stream

    Combine multiple streams into a single stream.
    ","Merge","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Ord for [T; N]
    where\n T: Ord,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn cmp(&self, other: &[T; N]) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&[U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&mut [U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&mut [U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&mut [U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&mut [U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U]>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U; N]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U; N]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U; N]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U; N]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl PartialEq<Cookie> for [u8; 4]

    §

    fn eq(&self, other: &Cookie) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<A, B, const N: usize, const M: usize> PartialEq<Vec<A, N>> for [B; M]
    where\n A: PartialEq<B>,

    §

    fn eq(&self, other: &Vec<A, N>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq>","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> PartialOrd for [T; N]
    where\n T: PartialOrd,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn partial_cmp(&self, other: &[T; N]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    source§

    fn lt(&self, other: &[T; N]) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    source§

    fn le(&self, other: &[T; N]) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    source§

    fn ge(&self, other: &[T; N]) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    source§

    fn gt(&self, other: &[T; N]) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    ","PartialOrd","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, const N: usize> Race for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = <Fut as IntoFuture>::Output

    The resulting output type.
    §

    type Future = Race<<Fut as IntoFuture>::IntoFuture, N>

    Which kind of future are we turning this into?
    §

    fn race(self) -> <[Fut; N] as Race>::Future

    Wait for the first future to complete. Read more
    ","Race","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> RaceOk for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = T

    The resulting output type.
    §

    type Error = AggregateError<E, N>

    The resulting error type.
    §

    type Future = RaceOk<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn race_ok(self) -> <[Fut; N] as RaceOk>::Future

    Waits for the first successful future to complete.
    ","RaceOk","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> Schema for [T; N]
    where\n T: Schema,

    §

    const SCHEMA: &'static NamedType = _

    A recursive data structure that describes the schema of the given\ntype.
    ","Schema","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T> Serialize for [T; 32]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<const N: usize> Serialize for [u8; N]

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    ","Serialize","iroh_docs::sync::PeerIdBytes"],["
    1.51.0 · source§

    impl<T, const N: usize> SlicePattern for [T; N]

    §

    type Item = T

    🔬This is a nightly-only experimental API. (slice_pattern)
    The element type of the slice being matched on.
    source§

    fn as_slice(&self) -> &[<[T; N] as SlicePattern>::Item]

    🔬This is a nightly-only experimental API. (slice_pattern)
    Currently, the consumers of SlicePattern need a slice.
    ","SlicePattern","iroh_docs::sync::PeerIdBytes"],["
    1.34.0 · source§

    impl<T, const N: usize> TryFrom<&[T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a slice &[T]. Succeeds if\nslice.len() == N.

    \n\n
    let bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = bytes[1..3].try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &[T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&[T]>","iroh_docs::sync::PeerIdBytes"],["
    1.59.0 · source§

    impl<T, const N: usize> TryFrom<&mut [T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a mutable slice &mut [T].\nSucceeds if slice.len() == N.

    \n\n
    let mut bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&mut bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = (&mut bytes[1..3]).try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &mut [T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&mut [T]>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    §

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh_docs::sync::PeerIdBytes"],["
    1.48.0 · source§

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    source§

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Fut, T, E, const N: usize> TryJoin for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = [T; N]

    The resulting output type.
    §

    type Error = E

    The resulting error type.
    §

    type Future = TryJoin<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn try_join(self) -> <[Fut; N] as TryJoin>::Future

    Waits for multiple futures to complete, either returning when all\nfutures complete successfully, or return early when any future completes\nwith an error.
    ","TryJoin","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Value for [T; N]
    where\n T: Value,

    §

    type SelfType<'a> = [<T as Value>::SelfType<'a>; N]\nwhere\n [T; N]: 'a

    SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
    §

    type AsBytes<'a> = Vec<u8>\nwhere\n [T; N]: 'a

    §

    fn fixed_width() -> Option<usize>

    Width of a fixed type, or None for variable width
    §

    fn from_bytes<'a>(data: &'a [u8]) -> [<T as Value>::SelfType<'a>; N]
    where\n [T; N]: 'a,

    Deserializes data\nImplementations may return a view over data, or an owned type
    §

    fn as_bytes<'a, 'b>(value: &'a <[T; N] as Value>::SelfType<'b>) -> Vec<u8> ⓘ
    where\n 'b: 'a,\n [T; N]: 'a + 'b,

    Serialize the value to a slice
    §

    fn type_name() -> TypeName

    Globally unique identifier for this type
    ","Value","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<T, const N: usize> ValueOrd for [T; N]
    where\n T: DerOrd,

    §

    fn value_cmp(&self, other: &[T; N]) -> Result<Ordering, Error>

    Return an Ordering between value portion of TLV-encoded self and\nother when serialized as ASN.1 DER.
    ","ValueOrd","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Z, const N: usize> Zeroize for [Z; N]
    where\n Z: Zeroize,

    Impl [Zeroize] on arrays of types that impl [Zeroize].

    \n
    §

    fn zeroize(&mut self)

    Zero out this object from memory using Rust intrinsics which ensure the\nzeroization operation is not “optimized away” by the compiler.
    ","Zeroize","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<S, const N: usize> Zip for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Zip<<S as IntoStream>::IntoStream, N> as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Zip<<S as IntoStream>::IntoStream, N>

    What stream do we return?
    §

    fn zip(self) -> <[S; N] as Zip>::Stream

    Combine multiple streams into a single stream.
    ","Zip","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> ConstParamTy for [T; N]
    where\n T: ConstParamTy,

    ","ConstParamTy","iroh_docs::sync::PeerIdBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Copy for [T; N]
    where\n T: Copy,

    ","Copy","iroh_docs::sync::PeerIdBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Eq for [T; N]
    where\n T: Eq,

    ","Eq","iroh_docs::sync::PeerIdBytes"],["
    source§

    impl<T, const N: usize> StructuralPartialEq for [T; N]

    ","StructuralPartialEq","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<const N: usize, T> Unaligned for [T; N]
    where\n T: Unaligned,

    ","Unaligned","iroh_docs::sync::PeerIdBytes"],["
    §

    impl<Z, const N: usize> ZeroizeOnDrop for [Z; N]
    where\n Z: ZeroizeOnDrop,

    Impl [ZeroizeOnDrop] on arrays of types that impl [ZeroizeOnDrop].

    \n
    ","ZeroizeOnDrop","iroh_docs::sync::PeerIdBytes"]], +"iroh_willow":[["
    source§

    impl<T, const N: usize> [T; N]

    1.55.0 · source

    pub fn map<F, U>(self, f: F) -> [U; N]
    where\n F: FnMut(T) -> U,

    Returns an array of the same size as self, with function f applied to each element\nin order.

    \n

    If you don’t necessarily need a new fixed-size array, consider using\nIterator::map instead.

    \n
    §Note on performance and stack usage
    \n

    Unfortunately, usages of this method are currently not always optimized\nas well as they could be. This mainly concerns large arrays, as mapping\nover small arrays seem to be optimized just fine. Also note that in\ndebug mode (i.e. without any optimizations), this method can use a lot\nof stack space (a few times the size of the array or more).

    \n

    Therefore, in performance-critical code, try to avoid using this method\non large arrays or check the emitted code. Also try to avoid chained\nmaps (e.g. arr.map(...).map(...)).

    \n

    In many cases, you can instead use Iterator::map by calling .iter()\nor .into_iter() on your array. [T; N]::map is only necessary if you\nreally need a new array of the same size as the result. Rust’s lazy\niterators tend to get optimized very well.

    \n
    §Examples
    \n
    let x = [1, 2, 3];\nlet y = x.map(|v| v + 1);\nassert_eq!(y, [2, 3, 4]);\n\nlet x = [1, 2, 3];\nlet mut temp = 0;\nlet y = x.map(|v| { temp += 1; v * temp });\nassert_eq!(y, [1, 4, 9]);\n\nlet x = [\"Ferris\", \"Bueller's\", \"Day\", \"Off\"];\nlet y = x.map(|v| v.len());\nassert_eq!(y, [6, 9, 3, 3]);
    \n
    source

    pub fn try_map<F, R>(\n self,\n f: F\n) -> <<R as Try>::Residual as Residual<[<R as Try>::Output; N]>>::TryType
    where\n F: FnMut(T) -> R,\n R: Try,\n <R as Try>::Residual: Residual<[<R as Try>::Output; N]>,

    🔬This is a nightly-only experimental API. (array_try_map)

    A fallible function f applied to each element on array self in order to\nreturn an array the same size as self or the first error encountered.

    \n

    The return type of this function depends on the return type of the closure.\nIf you return Result<T, E> from the closure, you’ll get a Result<[T; N], E>.\nIf you return Option<T> from the closure, you’ll get an Option<[T; N]>.

    \n
    §Examples
    \n
    #![feature(array_try_map)]\n\nlet a = [\"1\", \"2\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>()).unwrap().map(|v| v + 1);\nassert_eq!(b, [2, 3, 4]);\n\nlet a = [\"1\", \"2a\", \"3\"];\nlet b = a.try_map(|v| v.parse::<u32>());\nassert!(b.is_err());\n\nuse std::num::NonZero;\n\nlet z = [1, 2, 0, 3, 4];\nassert_eq!(z.try_map(NonZero::new), None);\n\nlet a = [1, 2, 3];\nlet b = a.try_map(NonZero::new);\nlet c = b.map(|x| x.map(NonZero::get));\nassert_eq!(c, Some(a));
    \n
    1.57.0 (const: 1.57.0) · source

    pub const fn as_slice(&self) -> &[T]

    Returns a slice containing the entire array. Equivalent to &s[..].

    \n
    1.57.0 · source

    pub fn as_mut_slice(&mut self) -> &mut [T]

    Returns a mutable slice containing the entire array. Equivalent to\n&mut s[..].

    \n
    1.77.0 · source

    pub fn each_ref(&self) -> [&T; N]

    Borrows each element and returns an array of references with the same\nsize as self.

    \n
    §Example
    \n
    let floats = [3.1, 2.7, -1.0];\nlet float_refs: [&f64; 3] = floats.each_ref();\nassert_eq!(float_refs, [&3.1, &2.7, &-1.0]);
    \n

    This method is particularly useful if combined with other methods, like\nmap. This way, you can avoid moving the original\narray if its elements are not Copy.

    \n\n
    let strings = [\"Ferris\".to_string(), \"♥\".to_string(), \"Rust\".to_string()];\nlet is_ascii = strings.each_ref().map(|s| s.is_ascii());\nassert_eq!(is_ascii, [true, false, true]);\n\n// We can still access the original array: it has not been moved.\nassert_eq!(strings.len(), 3);
    \n
    1.77.0 · source

    pub fn each_mut(&mut self) -> [&mut T; N]

    Borrows each element mutably and returns an array of mutable references\nwith the same size as self.

    \n
    §Example
    \n
    \nlet mut floats = [3.1, 2.7, -1.0];\nlet float_refs: [&mut f64; 3] = floats.each_mut();\n*float_refs[0] = 0.0;\nassert_eq!(float_refs, [&mut 0.0, &mut 2.7, &mut -1.0]);\nassert_eq!(floats, [0.0, 2.7, -1.0]);
    \n
    source

    pub fn split_array_ref<const M: usize>(&self) -> (&[T; M], &[T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.split_array_ref::<0>();\n   assert_eq!(left, &[]);\n   assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<2>();\n    assert_eq!(left, &[1, 2]);\n    assert_eq!(right, &[3, 4, 5, 6]);\n}\n\n{\n    let (left, right) = v.split_array_ref::<6>();\n    assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n    assert_eq!(right, &[]);\n}
    \n
    source

    pub fn split_array_mut<const M: usize>(&mut self) -> (&mut [T; M], &mut [T])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index.

    \n

    The first will contain all indices from [0, M) (excluding\nthe index M itself) and the second will contain all\nindices from [M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.split_array_mut::<2>();\nassert_eq!(left, &mut [1, 0][..]);\nassert_eq!(right, &mut [3, 0, 5, 6]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    source

    pub fn rsplit_array_ref<const M: usize>(&self) -> (&[T], &[T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet v = [1, 2, 3, 4, 5, 6];\n\n{\n   let (left, right) = v.rsplit_array_ref::<0>();\n   assert_eq!(left, &[1, 2, 3, 4, 5, 6]);\n   assert_eq!(right, &[]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<2>();\n    assert_eq!(left, &[1, 2, 3, 4]);\n    assert_eq!(right, &[5, 6]);\n}\n\n{\n    let (left, right) = v.rsplit_array_ref::<6>();\n    assert_eq!(left, &[]);\n    assert_eq!(right, &[1, 2, 3, 4, 5, 6]);\n}
    \n
    source

    pub fn rsplit_array_mut<const M: usize>(&mut self) -> (&mut [T], &mut [T; M])

    🔬This is a nightly-only experimental API. (split_array)

    Divides one mutable array reference into two at an index from the end.

    \n

    The first will contain all indices from [0, N - M) (excluding\nthe index N - M itself) and the second will contain all\nindices from [N - M, N) (excluding the index N itself).

    \n
    §Panics
    \n

    Panics if M > N.

    \n
    §Examples
    \n
    #![feature(split_array)]\n\nlet mut v = [1, 0, 3, 0, 5, 6];\nlet (left, right) = v.rsplit_array_mut::<4>();\nassert_eq!(left, &mut [1, 0]);\nassert_eq!(right, &mut [3, 0, 5, 6][..]);\nleft[1] = 2;\nright[1] = 4;\nassert_eq!(v, [1, 2, 3, 4, 5, 6]);
    \n
    ",0,"iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<const N: usize> [u8; N]

    source

    pub const fn as_ascii(&self) -> Option<&[AsciiChar; N]>

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nor returns None if any of the characters is non-ASCII.

    \n
    §Examples
    \n
    #![feature(ascii_char)]\n#![feature(const_option)]\n\nconst HEX_DIGITS: [std::ascii::Char; 16] =\n    *b\"0123456789abcdef\".as_ascii().unwrap();\n\nassert_eq!(HEX_DIGITS[1].as_str(), \"1\");\nassert_eq!(HEX_DIGITS[10].as_str(), \"a\");
    \n
    source

    pub const unsafe fn as_ascii_unchecked(&self) -> &[AsciiChar; N]

    🔬This is a nightly-only experimental API. (ascii_char)

    Converts this array of bytes into a array of ASCII characters,\nwithout checking whether they’re valid.

    \n
    §Safety
    \n

    Every byte in the array must be in 0..=127, or else this is UB.

    \n
    ",0,"iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T> Array for [T; 0]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 0usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 0]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 1]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 1usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 1]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 10]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 10usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 10]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 1024]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 1_024usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 1024]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 11]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 11usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 11]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 12]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 12usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 12]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 128]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 128usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 128]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 13]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 13usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 13]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 14]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 14usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 14]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 15]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 15usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 15]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 16]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 16usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 16]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 17]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 17usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 17]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 18]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 18usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 18]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 19]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 19usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 19]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 2]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 2usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 2]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 20]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 20usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 20]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 2048]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 2_048usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 2048]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 21]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 21usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 21]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 22]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 22usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 22]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 23]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 23usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 23]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 24]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 24usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 24]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 25]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 25usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 25]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 256]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 256usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 256]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 26]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 26usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 26]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 27]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 27usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 27]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 28]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 28usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 28]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 29]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 29usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 29]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 3]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 3usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 3]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 30]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 30usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 30]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 31]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 31usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 31]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 32]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 32usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 32]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T> Array for [T; 33]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 33usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 33]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 4]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 4usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 4]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 4096]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 4_096usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 4096]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 5]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 5usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 5]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 512]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 512usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 512]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 6]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 6usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 6]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 64]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 64usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 64]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 7]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 7usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 7]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 8]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 8usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 8]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Array for [T; 9]
    where\n T: Default,

    §

    type Item = T

    The type of the items in the thing.
    §

    const CAPACITY: usize = 9usize

    The number of slots in the thing.
    §

    fn as_slice(&self) -> &[T]

    Gives a shared slice over the whole thing. Read more
    §

    fn as_slice_mut(&mut self) -> &mut [T]

    Gives a unique slice over the whole thing. Read more
    §

    fn default() -> [T; 9]

    Create a default-initialized instance of ourself, similar to the\nDefault trait, but implemented for the same range of sizes as\n[Array].
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T, const N: usize> Array for [T; N]

    §

    type Item = T

    The type of the array’s elements.
    §

    fn size() -> usize

    Returns the number of items the array can hold.
    ","Array","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize, T> AsBytes for [T; N]
    where\n T: AsBytes,

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Gets the bytes of this value. Read more
    §

    fn write_to(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to bytes. Read more
    §

    fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the prefix of bytes. Read more
    §

    fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>

    Writes a copy of self to the suffix of bytes. Read more
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl AsBytes for [u8; 0]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 1]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 10]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 11]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 12]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 13]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 14]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 15]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 16]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 17]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 18]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 19]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 2]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 20]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 21]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 22]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 23]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 24]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 25]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 26]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 27]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 28]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 29]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 3]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 30]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 31]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 32]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl AsBytes for [u8; 4]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 5]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 6]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 7]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 8]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl AsBytes for [u8; 9]

    §

    fn as_bytes(&self) -> &[u8] ⓘ

    Casts the input type to a byte slice
    ","AsBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsMut<[T]> for [T; N]

    source§

    fn as_mut(&mut self) -> &mut [T]

    Converts this type into a mutable reference of the (usually inferred) input type.
    ","AsMut<[T]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> AsRef<[T]> for [T; N]

    source§

    fn as_ref(&self) -> &[T]

    Converts this type into a shared reference of the (usually inferred) input type.
    ","AsRef<[T]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T, const N: usize> BitView for [T; N]
    where\n T: BitStore,

    Note that overly-large arrays may cause the conversions to fail.

    \n
    §

    type Store = T

    The underlying element type.
    §

    fn view_bits<O>(&self) -> &BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as an immutable bit-slice.
    §

    fn try_view_bits<O>(&self) -> Result<&BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as an immutable bit-slice. Read more
    §

    fn view_bits_mut<O>(&mut self) -> &mut BitSlice<T, O>
    where\n O: BitOrder,

    Views a memory region as a mutable bit-slice.
    §

    fn try_view_bits_mut<O>(\n &mut self\n) -> Result<&mut BitSlice<T, O>, BitSpanError<T>>
    where\n O: BitOrder,

    Attempts to view a memory region as a mutable bit-slice. Read more
    ","BitView","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T, const N: usize> BitViewSized for [T; N]
    where\n T: BitStore,

    §

    const ZERO: [T; N] = _

    The zero constant.
    §

    fn as_raw_slice(&self) -> &[<[T; N] as BitView>::Store]

    Views the type as a slice of its elements.
    §

    fn as_raw_mut_slice(&mut self) -> &mut [<[T; N] as BitView>::Store]

    Views the type as a mutable slice of its elements.
    §

    fn into_bitarray<O>(self) -> BitArray<Self, O>
    where\n O: BitOrder,

    Wraps self in a BitArray.
    ","BitViewSized","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> Borrow<[T]> for [T; N]

    source§

    fn borrow(&self) -> &[T]

    Immutably borrows from an owned value. Read more
    ","Borrow<[T]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T, const N: usize> BorrowMut<[T]> for [T; N]

    source§

    fn borrow_mut(&mut self) -> &mut [T]

    Mutably borrows from an owned value. Read more
    ","BorrowMut<[T]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<S, const N: usize> Chain for [S; N]
    where\n S: Stream,

    §

    type Item = <S as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Chain<S, N>

    What stream do we return?
    §

    fn chain(self) -> <[S; N] as Chain>::Stream

    Combine multiple streams into a single stream.
    ","Chain","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Clone for [T; N]
    where\n T: Clone,

    source§

    fn clone(&self) -> [T; N]

    Returns a copy of the value. Read more
    source§

    fn clone_from(&mut self, other: &[T; N])

    Performs copy-assignment from source. Read more
    ","Clone","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Debug for [T; N]
    where\n T: Debug,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    ","Debug","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize> Decode for [u8; N]

    Decodes a byte array from byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    type Error = Error

    Type returned in the event of a decoding error.
    §

    fn decode(reader: &mut impl Reader) -> Result<[u8; N], Error>

    Attempt to decode a value of this type using the provided [Reader].
    ","Decode","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<'a, T, const N: usize> DecodeValue<'a> for [T; N]
    where\n T: Decode<'a>,

    §

    fn decode_value<R>(reader: &mut R, header: Header) -> Result<[T; N], Error>
    where\n R: Reader<'a>,

    Attempt to decode this message using the provided [Reader].
    ","DecodeValue<'a>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 32]
    where\n T: Default,

    source§

    fn default() -> [T; 32]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 31]
    where\n T: Default,

    source§

    fn default() -> [T; 31]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 30]
    where\n T: Default,

    source§

    fn default() -> [T; 30]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 29]
    where\n T: Default,

    source§

    fn default() -> [T; 29]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 28]
    where\n T: Default,

    source§

    fn default() -> [T; 28]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 27]
    where\n T: Default,

    source§

    fn default() -> [T; 27]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 26]
    where\n T: Default,

    source§

    fn default() -> [T; 26]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 25]
    where\n T: Default,

    source§

    fn default() -> [T; 25]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 24]
    where\n T: Default,

    source§

    fn default() -> [T; 24]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 23]
    where\n T: Default,

    source§

    fn default() -> [T; 23]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 22]
    where\n T: Default,

    source§

    fn default() -> [T; 22]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 21]
    where\n T: Default,

    source§

    fn default() -> [T; 21]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 20]
    where\n T: Default,

    source§

    fn default() -> [T; 20]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 19]
    where\n T: Default,

    source§

    fn default() -> [T; 19]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 18]
    where\n T: Default,

    source§

    fn default() -> [T; 18]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 17]
    where\n T: Default,

    source§

    fn default() -> [T; 17]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 16]
    where\n T: Default,

    source§

    fn default() -> [T; 16]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 15]
    where\n T: Default,

    source§

    fn default() -> [T; 15]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 14]
    where\n T: Default,

    source§

    fn default() -> [T; 14]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 13]
    where\n T: Default,

    source§

    fn default() -> [T; 13]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 12]
    where\n T: Default,

    source§

    fn default() -> [T; 12]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 11]
    where\n T: Default,

    source§

    fn default() -> [T; 11]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 10]
    where\n T: Default,

    source§

    fn default() -> [T; 10]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 9]
    where\n T: Default,

    source§

    fn default() -> [T; 9]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 8]
    where\n T: Default,

    source§

    fn default() -> [T; 8]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 7]
    where\n T: Default,

    source§

    fn default() -> [T; 7]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 6]
    where\n T: Default,

    source§

    fn default() -> [T; 6]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 5]
    where\n T: Default,

    source§

    fn default() -> [T; 5]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 4]
    where\n T: Default,

    source§

    fn default() -> [T; 4]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 3]
    where\n T: Default,

    source§

    fn default() -> [T; 3]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 2]
    where\n T: Default,

    source§

    fn default() -> [T; 2]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 1]
    where\n T: Default,

    source§

    fn default() -> [T; 1]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.4.0 · source§

    impl<T> Default for [T; 0]

    source§

    fn default() -> [T; 0]

    Returns the “default value” for a type. Read more
    ","Default","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 0]

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 0], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 1]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 1], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 10]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 10], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 11]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 11], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 12]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 12], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 13]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 13], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 14]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 14], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 15]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 15], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 16]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 16], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 17]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 17], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 18]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 18], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 19]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 19], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 2]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 2], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 20]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 20], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 21]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 21], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 22]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 22], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 23]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 23], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 24]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 24], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 25]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 25], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 26]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 26], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 27]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 27], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 28]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 28], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 29]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 29], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 3]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 3], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 30]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 30], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 31]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 31], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 32]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 32], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 4]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 4], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 5]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 5], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 6]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 6], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 7]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 7], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 8]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 8], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, T> Deserialize<'de> for [T; 9]
    where\n T: Deserialize<'de>,

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[T; 9], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<'de, const N: usize> Deserialize<'de> for [u8; N]

    source§

    fn deserialize<D>(\n deserializer: D\n) -> Result<[u8; N], <D as Deserializer<'de>>::Error>
    where\n D: Deserializer<'de>,

    ","Deserialize<'de>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize> Encode for [u8; N]

    Encodes [u8; N] into byte[n] as described in RFC4251 § 5:

    \n
    \n

    A byte represents an arbitrary 8-bit value (octet). Fixed length\ndata is sometimes represented as an array of bytes, written\nbyte[n], where n is the number of bytes in the array.

    \n
    \n
    §

    fn encoded_len(&self) -> Result<usize, Error>

    Get the length of this type encoded in bytes, prior to Base64 encoding.
    §

    fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value using the provided [Writer].
    §

    fn encoded_len_prefixed(&self) -> Result<usize, Error>

    Return the length of this type after encoding when prepended with a\nuint32 length prefix.
    §

    fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode this value, first prepending a uint32 length prefix\nset to [Encode::encoded_len].
    ","Encode","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T, const N: usize> EncodeLabelSet for [T; N]
    where\n T: EncodeLabel,

    §

    fn encode(&self, encoder: LabelSetEncoder<'_>) -> Result<(), Error>

    Encode oneself into the given encoder.
    ","EncodeLabelSet","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T, const N: usize> EncodeValue for [T; N]
    where\n T: Encode,

    §

    fn value_len(&self) -> Result<Length, Error>

    Compute the length of this value (sans [Tag]+[Length] header) when\nencoded as ASN.1 DER.
    §

    fn encode_value(&self, writer: &mut impl Writer) -> Result<(), Error>

    Encode value (sans [Tag]+[Length] header) as ASN.1 DER using the\nprovided [Writer].
    §

    fn header(&self) -> Result<Header, Error>
    where\n Self: Tagged,

    Get the [Header] used to encode this value.
    ","EncodeValue","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 32]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 4096]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Fill for [T; 31]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 30]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 29]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 28]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 27]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 26]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 25]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 24]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 23]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 22]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 21]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 20]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 19]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 18]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 17]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 16]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 15]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 14]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 13]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 12]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 11]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 10]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 9]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 8]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 7]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 6]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 5]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 4]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 3]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 2]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 1]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 0]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 2048]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 1024]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 512]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 256]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 128]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Fill for [T; 64]
    where\n [T]: Fill,

    source§

    fn try_fill<R>(&mut self, rng: &mut R) -> Result<(), Error>
    where\n R: Rng + ?Sized,

    Fill self with random data
    ","Fill","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 0]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 1]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 10]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 11]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 12]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 13]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 14]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 15]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 16]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 17]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 18]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 19]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 2]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 20]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 21]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 22]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 23]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 24]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 25]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 26]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 27]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 28]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 29]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 3]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 30]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 31]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 32]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 4]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 5]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 6]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 7]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 8]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<'a> FindToken<&'a u8> for [u8; 9]

    §

    fn find_token(&self, token: &u8) -> bool

    Returns true if self contains the token
    ","FindToken<&'a u8>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 0]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 1]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 10]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 11]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 12]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 13]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 14]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 15]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 16]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 17]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 18]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 19]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 2]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 20]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 21]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 22]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 23]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 24]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 25]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 26]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 27]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 28]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 29]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 3]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 30]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 31]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 32]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl FindToken<u8> for [u8; 4]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 5]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 6]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 7]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 8]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl FindToken<u8> for [u8; 9]

    §

    fn find_token(&self, token: u8) -> bool

    Returns true if self contains the token
    ","FindToken","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T, const N: usize> FixedTag for [T; N]

    §

    const TAG: Tag = Tag::Sequence

    ASN.1 tag
    ","FixedTag","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl From<&BridgeVlanInfo> for [u8; 4]

    §

    fn from(d: &BridgeVlanInfo) -> [u8; 4]

    Converts to this type from the input type.
    ","From<&BridgeVlanInfo>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl From<&Signature> for [u8; 64]

    §

    fn from(sig: &Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From<&Signature>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.71.0 · source§

    impl<T> From<(T,)> for [T; 1]

    source§

    fn from(tuple: (T,)) -> [T; 1]

    Converts to this type from the input type.
    ","From<(T,)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T)> for [T; 2]

    source§

    fn from(tuple: (T, T)) -> [T; 2]

    Converts to this type from the input type.
    ","From<(T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T)> for [T; 3]

    source§

    fn from(tuple: (T, T, T)) -> [T; 3]

    Converts to this type from the input type.
    ","From<(T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T)> for [T; 4]

    source§

    fn from(tuple: (T, T, T, T)) -> [T; 4]

    Converts to this type from the input type.
    ","From<(T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T, T)> for [T; 5]

    source§

    fn from(tuple: (T, T, T, T, T)) -> [T; 5]

    Converts to this type from the input type.
    ","From<(T, T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T, T, T)> for [T; 6]

    source§

    fn from(tuple: (T, T, T, T, T, T)) -> [T; 6]

    Converts to this type from the input type.
    ","From<(T, T, T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T, T, T, T)> for [T; 7]

    source§

    fn from(tuple: (T, T, T, T, T, T, T)) -> [T; 7]

    Converts to this type from the input type.
    ","From<(T, T, T, T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T, T, T, T, T)> for [T; 8]

    source§

    fn from(tuple: (T, T, T, T, T, T, T, T)) -> [T; 8]

    Converts to this type from the input type.
    ","From<(T, T, T, T, T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T, T, T, T, T, T)> for [T; 9]

    source§

    fn from(tuple: (T, T, T, T, T, T, T, T, T)) -> [T; 9]

    Converts to this type from the input type.
    ","From<(T, T, T, T, T, T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T, T, T, T, T, T, T)> for [T; 10]

    source§

    fn from(tuple: (T, T, T, T, T, T, T, T, T, T)) -> [T; 10]

    Converts to this type from the input type.
    ","From<(T, T, T, T, T, T, T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T, T, T, T, T, T, T, T)> for [T; 11]

    source§

    fn from(tuple: (T, T, T, T, T, T, T, T, T, T, T)) -> [T; 11]

    Converts to this type from the input type.
    ","From<(T, T, T, T, T, T, T, T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.71.0 · source§

    impl<T> From<(T, T, T, T, T, T, T, T, T, T, T, T)> for [T; 12]

    source§

    fn from(tuple: (T, T, T, T, T, T, T, T, T, T, T, T)) -> [T; 12]

    Converts to this type from the input type.
    ","From<(T, T, T, T, T, T, T, T, T, T, T, T)>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl From<BigEndian<u32>> for [u8; 4]

    source§

    fn from(encoded: BigEndian<u32>) -> [u8; 4]

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl From<BigEndian<u32>> for [u8; 4]

    §

    fn from(encoded: BigEndian<u32>) -> [u8; 4]

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl From<BigEndian<u64>> for [u8; 8]

    source§

    fn from(encoded: BigEndian<u64>) -> [u8; 8]

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl From<Digest> for [u8; 16]

    §

    fn from(digest: Digest) -> [u8; 16]

    Converts to this type from the input type.
    ","From","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>> for [T; 1024]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 1024]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>> for [T; 512]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 512]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B0>>> for [T; 1000]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B0>>\n) -> [T; 1000]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>> for [T; 256]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 256]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B1>, B1>, B0>, B0>>> for [T; 300]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B1>, B1>, B0>, B0>>\n) -> [T; 300]

    Converts to this type from the input type.
    ","From, B0>, B0>, B1>, B0>, B1>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>>> for [T; 400]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>>\n) -> [T; 400]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B1>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>>> for [T; 500]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>>\n) -> [T; 500]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>, B1>, B0>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>> for [T; 128]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 128]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>>> for [T; 200]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>, B0>>\n) -> [T; 200]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B1>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for [T; 64]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 64]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B1>, B0>>> for [T; 70]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B1>, B0>>\n) -> [T; 70]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B1>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>, B0>>> for [T; 80]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>, B0>>\n) -> [T; 80]

    Converts to this type from the input type.
    ","From, B0>, B1>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B1>, B0>>> for [T; 90]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B1>, B0>>\n) -> [T; 90]

    Converts to this type from the input type.
    ","From, B0>, B1>, B1>, B0>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>>> for [T; 100]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>, B0>>\n) -> [T; 100]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>> for [T; 32]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>>\n) -> [T; 32]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B1>>> for [T; 33]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B1>>\n) -> [T; 33]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B0>>> for [T; 34]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B0>>\n) -> [T; 34]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B1>>> for [T; 35]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>, B1>>\n) -> [T; 35]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B0>>> for [T; 36]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B0>>\n) -> [T; 36]

    Converts to this type from the input type.
    ","From, B0>, B0>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B1>>> for [T; 37]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>, B1>>\n) -> [T; 37]

    Converts to this type from the input type.
    ","From, B0>, B0>, B1>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>, B0>>> for [T; 38]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>, B0>>\n) -> [T; 38]

    Converts to this type from the input type.
    ","From, B0>, B0>, B1>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>, B1>>> for [T; 39]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>, B1>>\n) -> [T; 39]

    Converts to this type from the input type.
    ","From, B0>, B0>, B1>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>>> for [T; 40]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B0>>\n) -> [T; 40]

    Converts to this type from the input type.
    ","From, B0>, B1>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B1>>> for [T; 41]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>, B1>>\n) -> [T; 41]

    Converts to this type from the input type.
    ","From, B0>, B1>, B0>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>, B0>>> for [T; 42]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>, B0>>\n) -> [T; 42]

    Converts to this type from the input type.
    ","From, B0>, B1>, B0>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>, B1>>> for [T; 43]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>, B1>>\n) -> [T; 43]

    Converts to this type from the input type.
    ","From, B0>, B1>, B0>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B0>>> for [T; 44]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B0>>\n) -> [T; 44]

    Converts to this type from the input type.
    ","From, B0>, B1>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B1>>> for [T; 45]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>, B1>>\n) -> [T; 45]

    Converts to this type from the input type.
    ","From, B0>, B1>, B1>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>, B0>>> for [T; 46]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>, B0>>\n) -> [T; 46]

    Converts to this type from the input type.
    ","From, B0>, B1>, B1>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>, B1>>> for [T; 47]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>, B1>>\n) -> [T; 47]

    Converts to this type from the input type.
    ","From, B0>, B1>, B1>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>>> for [T; 48]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B0>>\n) -> [T; 48]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B1>>> for [T; 49]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>, B1>>\n) -> [T; 49]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>>> for [T; 50]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B0>>\n) -> [T; 50]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B1>>> for [T; 51]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>, B1>>\n) -> [T; 51]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>, B0>>> for [T; 52]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>, B0>>\n) -> [T; 52]

    Converts to this type from the input type.
    ","From, B1>, B0>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>, B1>>> for [T; 53]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>, B1>>\n) -> [T; 53]

    Converts to this type from the input type.
    ","From, B1>, B0>, B1>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>, B0>>> for [T; 54]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>, B0>>\n) -> [T; 54]

    Converts to this type from the input type.
    ","From, B1>, B0>, B1>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>, B1>>> for [T; 55]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>, B1>>\n) -> [T; 55]

    Converts to this type from the input type.
    ","From, B1>, B0>, B1>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>, B0>>> for [T; 56]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>, B0>>\n) -> [T; 56]

    Converts to this type from the input type.
    ","From, B1>, B1>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>, B1>>> for [T; 57]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>, B1>>\n) -> [T; 57]

    Converts to this type from the input type.
    ","From, B1>, B1>, B0>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>, B0>>> for [T; 58]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>, B0>>\n) -> [T; 58]

    Converts to this type from the input type.
    ","From, B1>, B1>, B0>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>, B1>>> for [T; 59]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>, B1>>\n) -> [T; 59]

    Converts to this type from the input type.
    ","From, B1>, B1>, B0>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>, B0>>> for [T; 60]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>, B0>>\n) -> [T; 60]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>, B1>>> for [T; 61]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>, B1>>\n) -> [T; 61]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>>> for [T; 62]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B0>>\n) -> [T; 62]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B1>>> for [T; 63]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>, B1>>\n) -> [T; 63]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>> for [T; 16]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>>\n) -> [T; 16]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>>> for [T; 17]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B1>>\n) -> [T; 17]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>>> for [T; 18]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B0>>\n) -> [T; 18]

    Converts to this type from the input type.
    ","From, B0>, B0>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>>> for [T; 19]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>, B1>>\n) -> [T; 19]

    Converts to this type from the input type.
    ","From, B0>, B0>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>>> for [T; 20]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B0>>\n) -> [T; 20]

    Converts to this type from the input type.
    ","From, B0>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>>> for [T; 21]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>, B1>>\n) -> [T; 21]

    Converts to this type from the input type.
    ","From, B0>, B1>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>>> for [T; 22]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B0>>\n) -> [T; 22]

    Converts to this type from the input type.
    ","From, B0>, B1>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>>> for [T; 23]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>, B1>>\n) -> [T; 23]

    Converts to this type from the input type.
    ","From, B0>, B1>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>>> for [T; 24]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B0>>\n) -> [T; 24]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>>> for [T; 25]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>, B1>>\n) -> [T; 25]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>>> for [T; 26]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B0>>\n) -> [T; 26]

    Converts to this type from the input type.
    ","From, B1>, B0>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>>> for [T; 27]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>, B1>>\n) -> [T; 27]

    Converts to this type from the input type.
    ","From, B1>, B0>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>>> for [T; 28]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B0>>\n) -> [T; 28]

    Converts to this type from the input type.
    ","From, B1>, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>>> for [T; 29]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>, B1>>\n) -> [T; 29]

    Converts to this type from the input type.
    ","From, B1>, B1>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>>> for [T; 30]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>>\n) -> [T; 30]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>>> for [T; 31]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B1>>\n) -> [T; 31]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>>> for [T; 8]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>>\n) -> [T; 8]

    Converts to this type from the input type.
    ","From, B0>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>>> for [T; 9]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B1>>\n) -> [T; 9]

    Converts to this type from the input type.
    ","From, B0>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>>> for [T; 10]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B0>>\n) -> [T; 10]

    Converts to this type from the input type.
    ","From, B0>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>>> for [T; 11]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B1>, B1>>\n) -> [T; 11]

    Converts to this type from the input type.
    ","From, B0>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>>> for [T; 12]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B0>>\n) -> [T; 12]

    Converts to this type from the input type.
    ","From, B1>, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>>> for [T; 13]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B0>, B1>>\n) -> [T; 13]

    Converts to this type from the input type.
    ","From, B1>, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>>> for [T; 14]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B0>>\n) -> [T; 14]

    Converts to this type from the input type.
    ","From, B1>, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>>> for [T; 15]

    §

    fn from(\n sel: GenericArray<T, UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>>\n) -> [T; 15]

    Converts to this type from the input type.
    ","From, B1>, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B0>, B0>>> for [T; 4]

    §

    fn from(sel: GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B0>, B0>>) -> [T; 4]

    Converts to this type from the input type.
    ","From, B0>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B0>, B1>>> for [T; 5]

    §

    fn from(sel: GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B0>, B1>>) -> [T; 5]

    Converts to this type from the input type.
    ","From, B0>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B1>, B0>>> for [T; 6]

    §

    fn from(sel: GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B1>, B0>>) -> [T; 6]

    Converts to this type from the input type.
    ","From, B1>, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B1>, B1>>> for [T; 7]

    §

    fn from(sel: GenericArray<T, UInt<UInt<UInt<UTerm, B1>, B1>, B1>>) -> [T; 7]

    Converts to this type from the input type.
    ","From, B1>, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UTerm, B1>, B0>>> for [T; 2]

    §

    fn from(sel: GenericArray<T, UInt<UInt<UTerm, B1>, B0>>) -> [T; 2]

    Converts to this type from the input type.
    ","From, B0>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UInt<UTerm, B1>, B1>>> for [T; 3]

    §

    fn from(sel: GenericArray<T, UInt<UInt<UTerm, B1>, B1>>) -> [T; 3]

    Converts to this type from the input type.
    ","From, B1>>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> From<GenericArray<T, UInt<UTerm, B1>>> for [T; 1]

    §

    fn from(sel: GenericArray<T, UInt<UTerm, B1>>) -> [T; 1]

    Converts to this type from the input type.
    ","From>>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

    fn from(value: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl From<Hash> for [u8; 32]

    §

    fn from(hash: Hash) -> [u8; 32]

    Converts to this type from the input type.
    ","From","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize, const UPPERCASE: bool> From<HexOrBin<N, UPPERCASE>> for [u8; N]

    §

    fn from(hex_or_bin: HexOrBin<N, UPPERCASE>) -> [u8; N]

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl From<LittleEndian<u32>> for [u8; 4]

    source§

    fn from(encoded: LittleEndian<u32>) -> [u8; 4]

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl From<LittleEndian<u64>> for [u8; 8]

    source§

    fn from(encoded: LittleEndian<u64>) -> [u8; 8]

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl From<MacAddr> for [u8; 6]

    §

    fn from(addr: MacAddr) -> [u8; 6]

    Converts to this type from the input type.
    ","From","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl From<NamespaceId> for [u8; 32]

    source§

    fn from(value: NamespaceId) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl From<Signature> for [u8; 64]

    §

    fn from(sig: Signature) -> [u8; 64]

    Converts to this type from the input type.
    ","From","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T, const N: usize> From<Simd<T, N>> for [T; N]

    source§

    fn from(vector: Simd<T, N>) -> [T; N]

    Converts to this type from the input type.
    ","From>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl From<UserId> for [u8; 32]

    source§

    fn from(value: UserId) -> Self

    Converts to this type from the input type.
    ","From","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize, T> FromBytes for [T; N]
    where\n T: FromBytes,

    §

    fn ref_from(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the given bytes as a &Self without copying. Read more
    §

    fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &Self without copying. Read more
    §

    fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &Self without copying. Read more
    §

    fn slice_from(bytes: &[u8]) -> Option<&[Self]>
    where\n Self: Sized,

    Interprets the given bytes as a &[Self] without copying. Read more
    §

    fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>
    where\n Self: Sized,

    Interprets the prefix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>
    where\n Self: Sized,

    Interprets the suffix of the given bytes as a &[Self] with length\nequal to count without copying. Read more
    §

    fn read_from(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from bytes. Read more
    §

    fn read_from_prefix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the prefix of bytes. Read more
    §

    fn read_from_suffix(bytes: &[u8]) -> Option<Self>
    where\n Self: Sized,

    Reads a copy of Self from the suffix of bytes. Read more
    ","FromBytes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl FromHex for [u8; 1]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 1], <[u8; 1] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 10]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 10], <[u8; 10] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 100]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 100], <[u8; 100] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 101]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 101], <[u8; 101] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 102]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 102], <[u8; 102] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 1024]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 1024], <[u8; 1024] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 103]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 103], <[u8; 103] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 104]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 104], <[u8; 104] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 1048576]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 1048576], <[u8; 1048576] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 105]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 105], <[u8; 105] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 106]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 106], <[u8; 106] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 107]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 107], <[u8; 107] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 1073741824]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 1073741824], <[u8; 1073741824] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 108]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 108], <[u8; 108] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 109]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 109], <[u8; 109] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 11]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 11], <[u8; 11] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 110]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 110], <[u8; 110] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 111]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 111], <[u8; 111] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 112]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 112], <[u8; 112] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 113]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 113], <[u8; 113] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 114]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 114], <[u8; 114] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 115]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 115], <[u8; 115] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 116]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 116], <[u8; 116] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 117]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 117], <[u8; 117] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 118]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 118], <[u8; 118] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 119]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 119], <[u8; 119] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 12]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 12], <[u8; 12] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 120]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 120], <[u8; 120] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 121]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 121], <[u8; 121] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 122]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 122], <[u8; 122] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 123]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 123], <[u8; 123] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 124]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 124], <[u8; 124] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 125]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 125], <[u8; 125] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 126]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 126], <[u8; 126] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 127]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 127], <[u8; 127] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 128]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 128], <[u8; 128] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 13]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 13], <[u8; 13] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 131072]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 131072], <[u8; 131072] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 134217728]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 134217728], <[u8; 134217728] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 14]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 14], <[u8; 14] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 15]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 15], <[u8; 15] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 16]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 16], <[u8; 16] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 160]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 160], <[u8; 160] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 16384]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 16384], <[u8; 16384] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 16777216]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 16777216], <[u8; 16777216] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 17]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 17], <[u8; 17] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 18]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 18], <[u8; 18] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 19]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 19], <[u8; 19] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 192]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 192], <[u8; 192] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 2]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 2], <[u8; 2] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 20]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 20], <[u8; 20] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 200]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 200], <[u8; 200] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 2048]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 2048], <[u8; 2048] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 2097152]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 2097152], <[u8; 2097152] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 21]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 21], <[u8; 21] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 2147483648]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 2147483648], <[u8; 2147483648] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 22]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 22], <[u8; 22] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 224]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 224], <[u8; 224] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 23]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 23], <[u8; 23] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 24]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 24], <[u8; 24] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 25]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 25], <[u8; 25] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 256]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 256], <[u8; 256] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 26]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 26], <[u8; 26] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 262144]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 262144], <[u8; 262144] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 268435456]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 268435456], <[u8; 268435456] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 27]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 27], <[u8; 27] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 28]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 28], <[u8; 28] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 29]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 29], <[u8; 29] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 3]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 3], <[u8; 3] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 30]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 30], <[u8; 30] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 31]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 31], <[u8; 31] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 32]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 32], <[u8; 32] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl FromHex for [u8; 32768]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 32768], <[u8; 32768] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 33]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 33], <[u8; 33] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 33554432]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 33554432], <[u8; 33554432] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 34]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 34], <[u8; 34] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 35]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 35], <[u8; 35] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 36]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 36], <[u8; 36] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 37]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 37], <[u8; 37] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 38]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 38], <[u8; 38] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 384]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 384], <[u8; 384] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 39]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 39], <[u8; 39] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 4]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 4], <[u8; 4] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 40]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 40], <[u8; 40] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 4096]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 4096], <[u8; 4096] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 41]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 41], <[u8; 41] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 4194304]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 4194304], <[u8; 4194304] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 42]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 42], <[u8; 42] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 4294967296]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 4294967296], <[u8; 4294967296] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 43]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 43], <[u8; 43] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 44]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 44], <[u8; 44] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 45]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 45], <[u8; 45] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 46]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 46], <[u8; 46] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 47]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 47], <[u8; 47] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 48]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 48], <[u8; 48] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 49]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 49], <[u8; 49] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 5]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 5], <[u8; 5] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 50]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 50], <[u8; 50] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 51]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 51], <[u8; 51] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 512]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 512], <[u8; 512] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 52]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 52], <[u8; 52] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 524288]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 524288], <[u8; 524288] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 53]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 53], <[u8; 53] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 536870912]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 536870912], <[u8; 536870912] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 54]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 54], <[u8; 54] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 55]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 55], <[u8; 55] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 56]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 56], <[u8; 56] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 57]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 57], <[u8; 57] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 58]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 58], <[u8; 58] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 59]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 59], <[u8; 59] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 6]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 6], <[u8; 6] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 60]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 60], <[u8; 60] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 61]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 61], <[u8; 61] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 62]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 62], <[u8; 62] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 63]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 63], <[u8; 63] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 64]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 64], <[u8; 64] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 65]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 65], <[u8; 65] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 65536]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 65536], <[u8; 65536] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 66]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 66], <[u8; 66] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 67]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 67], <[u8; 67] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 67108864]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 67108864], <[u8; 67108864] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 68]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 68], <[u8; 68] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 69]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 69], <[u8; 69] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 7]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 7], <[u8; 7] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 70]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 70], <[u8; 70] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 71]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 71], <[u8; 71] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 72]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 72], <[u8; 72] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 73]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 73], <[u8; 73] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 74]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 74], <[u8; 74] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 75]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 75], <[u8; 75] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 76]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 76], <[u8; 76] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 768]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 768], <[u8; 768] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 77]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 77], <[u8; 77] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 78]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 78], <[u8; 78] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 79]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 79], <[u8; 79] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 8]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 8], <[u8; 8] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 80]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 80], <[u8; 80] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 81]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 81], <[u8; 81] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 8192]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 8192], <[u8; 8192] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 82]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 82], <[u8; 82] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 83]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 83], <[u8; 83] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 8388608]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(\n hex: T\n) -> Result<[u8; 8388608], <[u8; 8388608] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 84]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 84], <[u8; 84] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 85]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 85], <[u8; 85] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 86]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 86], <[u8; 86] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 87]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 87], <[u8; 87] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 88]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 88], <[u8; 88] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 89]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 89], <[u8; 89] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 9]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 9], <[u8; 9] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 90]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 90], <[u8; 90] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 91]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 91], <[u8; 91] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 92]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 92], <[u8; 92] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 93]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 93], <[u8; 93] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 94]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 94], <[u8; 94] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 95]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 95], <[u8; 95] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 96]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 96], <[u8; 96] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 97]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 97], <[u8; 97] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 98]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 98], <[u8; 98] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl FromHex for [u8; 99]

    §

    type Error = FromHexError

    source§

    fn from_hex<T>(hex: T) -> Result<[u8; 99], <[u8; 99] as FromHex>::Error>
    where\n T: AsRef<[u8]>,

    Creates an instance of type Self from the given hex string, or fails\nwith a custom error type. Read more
    ","FromHex","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<const N: usize, T> FromZeroes for [T; N]
    where\n T: FromZeroes,

    §

    fn zero(&mut self)

    Overwrites self with zeroes. Read more
    §

    fn new_zeroed() -> Self
    where\n Self: Sized,

    Creates an instance of Self from zeroed bytes. Read more
    ","FromZeroes","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T> Hash for [T; 0]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 1]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 10]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 11]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 12]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 13]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 14]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 15]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 16]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 17]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 18]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 19]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 2]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 20]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 21]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 22]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 23]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 24]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 25]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 26]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 27]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 28]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 29]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 3]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 30]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 31]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 32]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T> Hash for [T; 4]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 5]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 6]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 7]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 8]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl<T> Hash for [T; 9]
    where\n T: Hash,

    §

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher.
    §

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher.
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Hash for [T; N]
    where\n T: Hash,

    The hash of an array is the same as that of the corresponding slice,\nas required by the Borrow implementation.

    \n\n
    use std::hash::BuildHasher;\n\nlet b = std::hash::RandomState::new();\nlet a: [u8; 3] = [0xa8, 0x3c, 0x09];\nlet s: &[u8] = &[0xa8, 0x3c, 0x09];\nassert_eq!(b.hash_one(a), b.hash_one(s));
    \n
    source§

    fn hash<H>(&self, state: &mut H)
    where\n H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where\n H: Hasher,\n Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    ","Hash","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> Index<I> for [T; N]
    where\n [T]: Index<I>,

    §

    type Output = <[T] as Index<I>>::Output

    The returned type after indexing.
    source§

    fn index(&self, index: I) -> &<[T; N] as Index<I>>::Output

    Performs the indexing (container[index]) operation. Read more
    ","Index","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.50.0 · source§

    impl<T, I, const N: usize> IndexMut<I> for [T; N]
    where\n [T]: IndexMut<I>,

    source§

    fn index_mut(&mut self, index: I) -> &mut <[T; N] as Index<I>>::Output

    Performs the mutable indexing (container[index]) operation. Read more
    ","IndexMut","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl InputLength for [u8; 0]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 1]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 10]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 11]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 12]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 13]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 14]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 15]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 16]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 17]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 18]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 19]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 2]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 20]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 21]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 22]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 23]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 24]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 25]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 26]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 27]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 28]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 29]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 3]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 30]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 31]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 32]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl InputLength for [u8; 4]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 5]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 6]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 7]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 8]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    §

    impl InputLength for [u8; 9]

    §

    fn input_len(&self) -> usize

    Calculates the input length, as indicated by its name,\nand the name of the trait itself
    ","InputLength","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    1.53.0 · source§

    impl<T, const N: usize> IntoIterator for [T; N]

    source§

    fn into_iter(self) -> <[T; N] as IntoIterator>::IntoIter

    Creates a consuming iterator, that is, one that moves each value out of\nthe array (from start to end). The array cannot be used after calling\nthis unless T implements Copy, so the whole array is copied.

    \n

    Arrays have special behavior when calling .into_iter() prior to the\n2021 edition – see the array Editions section for more information.

    \n
    §

    type Item = T

    The type of the elements being iterated over.
    §

    type IntoIter = IntoIter<T, N>

    Which kind of iterator are we turning this into?
    ","IntoIterator","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize> IntoResponse for [u8; N]

    §

    fn into_response(self) -> Response<Body>

    Create a response.
    ","IntoResponse","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<Fut, const N: usize> Join for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = [<Fut as IntoFuture>::Output; N]

    The resulting output type.
    §

    type Future = Join<<Fut as IntoFuture>::IntoFuture, N>

    The Future implementation returned by this method.
    §

    fn join(self) -> <[Fut; N] as Join>::Future

    Waits for multiple futures to complete. Read more
    ","Join","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize, T> Key for [T; N]
    where\n T: Key,

    §

    fn compare(data1: &[u8], data2: &[u8]) -> Ordering

    Compare data1 with data2
    ","Key","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T, const N: usize> MaxSize for [T; N]
    where\n T: MaxSize,

    §

    const POSTCARD_MAX_SIZE: usize = _

    The maximum possible size that the serialization of this\ntype can have, in bytes.
    ","MaxSize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<S, const N: usize> Merge for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Merge<<S as IntoStream>::IntoStream, N> as Stream>::Item

    The resulting output type.
    §

    type Stream = Merge<<S as IntoStream>::IntoStream, N>

    The stream type.
    §

    fn merge(self) -> <[S; N] as Merge>::Stream

    Combine multiple streams into a single stream.
    ","Merge","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Ord for [T; N]
    where\n T: Ord,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn cmp(&self, other: &[T; N]) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Self
    where\n Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Self
    where\n Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    ","Ord","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&[U]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<&mut [U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &&mut [U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &&mut [U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<&mut [U]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, U, const N: usize> PartialEq<[U; N]> for [T; N]
    where\n T: PartialEq<U>,

    source§

    fn eq(&self, other: &[U; N]) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    source§

    fn ne(&self, other: &[U; N]) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq<[U; N]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl PartialEq<Cookie> for [u8; 4]

    §

    fn eq(&self, other: &Cookie) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<A, B, const N: usize, const M: usize> PartialEq<Vec<A, N>> for [B; M]
    where\n A: PartialEq<B>,

    §

    fn eq(&self, other: &Vec<A, N>) -> bool

    This method tests for self and other values to be equal, and is used\nby ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
    ","PartialEq>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> PartialOrd for [T; N]
    where\n T: PartialOrd,

    Implements comparison of arrays lexicographically.

    \n
    source§

    fn partial_cmp(&self, other: &[T; N]) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    source§

    fn lt(&self, other: &[T; N]) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    source§

    fn le(&self, other: &[T; N]) -> bool

    This method tests less than or equal to (for self and other) and is used by the <=\noperator. Read more
    source§

    fn ge(&self, other: &[T; N]) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >=\noperator. Read more
    source§

    fn gt(&self, other: &[T; N]) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    ","PartialOrd","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<Fut, const N: usize> Race for [Fut; N]
    where\n Fut: IntoFuture,

    §

    type Output = <Fut as IntoFuture>::Output

    The resulting output type.
    §

    type Future = Race<<Fut as IntoFuture>::IntoFuture, N>

    Which kind of future are we turning this into?
    §

    fn race(self) -> <[Fut; N] as Race>::Future

    Wait for the first future to complete. Read more
    ","Race","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<Fut, T, E, const N: usize> RaceOk for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = T

    The resulting output type.
    §

    type Error = AggregateError<E, N>

    The resulting error type.
    §

    type Future = RaceOk<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn race_ok(self) -> <[Fut; N] as RaceOk>::Future

    Waits for the first successful future to complete.
    ","RaceOk","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T, const N: usize> Schema for [T; N]
    where\n T: Schema,

    §

    const SCHEMA: &'static NamedType = _

    A recursive data structure that describes the schema of the given\ntype.
    ","Schema","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Serialize for [T; 0]

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 1]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 10]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 11]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 12]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 13]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 14]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 15]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 16]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 17]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 18]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 19]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 2]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 20]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 21]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 22]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 23]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 24]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 25]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 26]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 27]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 28]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 29]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 3]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 30]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 31]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 32]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T> Serialize for [T; 4]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 5]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 6]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 7]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 8]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<T> Serialize for [T; 9]
    where\n T: Serialize,

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    Serialize this value into the given Serde serializer. Read more
    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes"],["
    source§

    impl<const N: usize> Serialize for [u8; N]

    source§

    fn serialize<S>(\n &self,\n serializer: S\n) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
    where\n S: Serializer,

    ","Serialize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.51.0 · source§

    impl<T, const N: usize> SlicePattern for [T; N]

    §

    type Item = T

    🔬This is a nightly-only experimental API. (slice_pattern)
    The element type of the slice being matched on.
    source§

    fn as_slice(&self) -> &[<[T; N] as SlicePattern>::Item]

    🔬This is a nightly-only experimental API. (slice_pattern)
    Currently, the consumers of SlicePattern need a slice.
    ","SlicePattern","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.34.0 · source§

    impl<T, const N: usize> TryFrom<&[T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a slice &[T]. Succeeds if\nslice.len() == N.

    \n\n
    let bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = bytes[1..3].try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &[T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&[T]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.59.0 · source§

    impl<T, const N: usize> TryFrom<&mut [T]> for [T; N]
    where\n T: Copy,

    Tries to create an array [T; N] by copying from a mutable slice &mut [T].\nSucceeds if slice.len() == N.

    \n\n
    let mut bytes: [u8; 3] = [1, 0, 2];\n\nlet bytes_head: [u8; 2] = <[u8; 2]>::try_from(&mut bytes[0..2]).unwrap();\nassert_eq!(1, u16::from_le_bytes(bytes_head));\n\nlet bytes_tail: [u8; 2] = (&mut bytes[1..3]).try_into().unwrap();\nassert_eq!(512, u16::from_le_bytes(bytes_tail));
    \n
    §

    type Error = TryFromSliceError

    The type returned in the event of a conversion error.
    source§

    fn try_from(slice: &mut [T]) -> Result<[T; N], TryFromSliceError>

    Performs the conversion.
    ","TryFrom<&mut [T]>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    §

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.48.0 · source§

    impl<T, A, const N: usize> TryFrom<Vec<T, A>> for [T; N]
    where\n A: Allocator,

    source§

    fn try_from(vec: Vec<T, A>) -> Result<[T; N], Vec<T, A>>

    Gets the entire contents of the Vec<T> as an array,\nif its size exactly matches that of the requested array.

    \n
    §Examples
    \n
    assert_eq!(vec![1, 2, 3].try_into(), Ok([1, 2, 3]));\nassert_eq!(<Vec<i32>>::new().try_into(), Ok([]));
    \n

    If the length doesn’t match, the input comes back in Err:

    \n\n
    let r: Result<[i32; 4], _> = (0..10).collect::<Vec<_>>().try_into();\nassert_eq!(r, Err(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
    \n

    If you’re fine with just getting a prefix of the Vec<T>,\nyou can call .truncate(N) first.

    \n\n
    let mut v = String::from(\"hello world\").into_bytes();\nv.sort();\nv.truncate(2);\nlet [a, b]: [_; 2] = v.try_into().unwrap();\nassert_eq!(a, b' ');\nassert_eq!(b, b'd');
    \n
    §

    type Error = Vec<T, A>

    The type returned in the event of a conversion error.
    ","TryFrom>","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<Fut, T, E, const N: usize> TryJoin for [Fut; N]
    where\n Fut: IntoFuture<Output = Result<T, E>>,

    §

    type Output = [T; N]

    The resulting output type.
    §

    type Error = E

    The resulting error type.
    §

    type Future = TryJoin<<Fut as IntoFuture>::IntoFuture, T, E, N>

    Which kind of future are we turning this into?
    §

    fn try_join(self) -> <[Fut; N] as TryJoin>::Future

    Waits for multiple futures to complete, either returning when all\nfutures complete successfully, or return early when any future completes\nwith an error.
    ","TryJoin","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize, T> Value for [T; N]
    where\n T: Value,

    §

    type SelfType<'a> = [<T as Value>::SelfType<'a>; N]\nwhere\n [T; N]: 'a

    SelfType<’a> must be the same type as Self with all lifetimes replaced with ’a
    §

    type AsBytes<'a> = Vec<u8>\nwhere\n [T; N]: 'a

    §

    fn fixed_width() -> Option<usize>

    Width of a fixed type, or None for variable width
    §

    fn from_bytes<'a>(data: &'a [u8]) -> [<T as Value>::SelfType<'a>; N]
    where\n [T; N]: 'a,

    Deserializes data\nImplementations may return a view over data, or an owned type
    §

    fn as_bytes<'a, 'b>(value: &'a <[T; N] as Value>::SelfType<'b>) -> Vec<u8> ⓘ
    where\n 'b: 'a,\n [T; N]: 'a + 'b,

    Serialize the value to a slice
    §

    fn type_name() -> TypeName

    Globally unique identifier for this type
    ","Value","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<T, const N: usize> ValueOrd for [T; N]
    where\n T: DerOrd,

    §

    fn value_cmp(&self, other: &[T; N]) -> Result<Ordering, Error>

    Return an Ordering between value portion of TLV-encoded self and\nother when serialized as ASN.1 DER.
    ","ValueOrd","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<Z, const N: usize> Zeroize for [Z; N]
    where\n Z: Zeroize,

    Impl [Zeroize] on arrays of types that impl [Zeroize].

    \n
    §

    fn zeroize(&mut self)

    Zero out this object from memory using Rust intrinsics which ensure the\nzeroization operation is not “optimized away” by the compiler.
    ","Zeroize","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<S, const N: usize> Zip for [S; N]
    where\n S: IntoStream,

    §

    type Item = <Zip<<S as IntoStream>::IntoStream, N> as Stream>::Item

    What’s the return type of our stream?
    §

    type Stream = Zip<<S as IntoStream>::IntoStream, N>

    What stream do we return?
    §

    fn zip(self) -> <[S; N] as Zip>::Stream

    Combine multiple streams into a single stream.
    ","Zip","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T, const N: usize> ConstParamTy for [T; N]
    where\n T: ConstParamTy,

    ","ConstParamTy","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.58.0 · source§

    impl<T, const N: usize> Copy for [T; N]
    where\n T: Copy,

    ","Copy","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    1.0.0 · source§

    impl<T, const N: usize> Eq for [T; N]
    where\n T: Eq,

    ","Eq","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    source§

    impl<T, const N: usize> StructuralPartialEq for [T; N]

    ","StructuralPartialEq","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<const N: usize, T> Unaligned for [T; N]
    where\n T: Unaligned,

    ","Unaligned","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"],["
    §

    impl<Z, const N: usize> ZeroizeOnDrop for [Z; N]
    where\n Z: ZeroizeOnDrop,

    Impl [ZeroizeOnDrop] on arrays of types that impl [ZeroizeOnDrop].

    \n
    ","ZeroizeOnDrop","iroh_willow::proto::wgps::challenge::AccessChallengeBytes","iroh_willow::proto::wgps::messages::PsiGroupBytes"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file