From 7304ebb5ea79e632d819b46eadb02efba2dcacbc Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Tue, 14 Oct 2025 09:17:02 +0000 Subject: [PATCH] deploy: c75e070482f5a7a074fe45755a1d237fbfda5bdc --- pr/3528/docs/bulk/all.html | 2 +- pr/3528/docs/bulk/fn.collect_and_print.html | 2 +- pr/3528/docs/bulk/fn.main.html | 2 +- pr/3528/docs/bulk/fn.run_iroh.html | 2 +- pr/3528/docs/bulk/fn.run_quinn.html | 2 +- pr/3528/docs/bulk/fn.run_s2n.html | 2 +- pr/3528/docs/bulk/index.html | 2 +- pr/3528/docs/iroh/all.html | 2 +- .../defaults/constant.DEFAULT_HTTPS_PORT.html | 2 +- .../defaults/constant.DEFAULT_HTTP_PORT.html | 2 +- .../constant.DEFAULT_METRICS_PORT.html | 2 +- .../constant.DEFAULT_RELAY_QUIC_PORT.html | 2 +- pr/3528/docs/iroh/defaults/index.html | 2 +- .../prod/constant.AP_RELAY_HOSTNAME.html | 2 +- .../prod/constant.EU_RELAY_HOSTNAME.html | 2 +- .../prod/constant.NA_RELAY_HOSTNAME.html | 2 +- .../prod/fn.default_ap_relay_node.html | 2 +- .../prod/fn.default_eu_relay_node.html | 2 +- .../prod/fn.default_na_relay_node.html | 2 +- .../defaults/prod/fn.default_relay_map.html | 2 +- pr/3528/docs/iroh/defaults/prod/index.html | 2 +- .../staging/constant.EU_RELAY_HOSTNAME.html | 2 +- .../staging/constant.NA_RELAY_HOSTNAME.html | 2 +- .../staging/fn.default_eu_relay_node.html | 2 +- .../staging/fn.default_na_relay_node.html | 2 +- .../staging/fn.default_relay_map.html | 2 +- pr/3528/docs/iroh/defaults/staging/index.html | 2 +- .../dns/constant.N0_DNS_NODE_ORIGIN_PROD.html | 2 +- .../constant.N0_DNS_NODE_ORIGIN_STAGING.html | 2 +- pr/3528/docs/iroh/discovery/dns/index.html | 2 +- .../discovery/dns/struct.DnsDiscovery.html | 2 +- .../dns/struct.DnsDiscoveryBuilder.html | 2 +- .../iroh/discovery/enum.DiscoveryError.html | 2 +- .../discovery/enum.IntoDiscoveryError.html | 2 +- .../docs/iroh/discovery/enum.ParseError.html | 2 +- pr/3528/docs/iroh/discovery/index.html | 2 +- .../iroh/discovery/mdns/constant.NAME.html | 2 +- .../discovery/mdns/enum.DiscoveryEvent.html | 2 +- pr/3528/docs/iroh/discovery/mdns/index.html | 2 +- .../discovery/mdns/struct.MdnsDiscovery.html | 2 +- .../mdns/struct.MdnsDiscoveryBuilder.html | 2 +- .../pkarr/constant.DEFAULT_PKARR_TTL.html | 2 +- .../constant.DEFAULT_REPUBLISH_INTERVAL.html | 2 +- .../constant.N0_DNS_PKARR_RELAY_PROD.html | 2 +- .../constant.N0_DNS_PKARR_RELAY_STAGING.html | 2 +- .../docs/iroh/discovery/pkarr/dht/index.html | 2 +- .../discovery/pkarr/dht/struct.Builder.html | 2 +- .../pkarr/dht/struct.DhtDiscovery.html | 2 +- .../iroh/discovery/pkarr/enum.PkarrError.html | 2 +- pr/3528/docs/iroh/discovery/pkarr/index.html | 2 +- .../pkarr/struct.PkarrPublisher.html | 2 +- .../pkarr/struct.PkarrPublisherBuilder.html | 2 +- .../pkarr/struct.PkarrRelayClient.html | 2 +- .../discovery/pkarr/struct.PkarrResolver.html | 2 +- .../pkarr/struct.PkarrResolverBuilder.html | 2 +- .../iroh/discovery/static_provider/index.html | 2 +- .../struct.StaticProvider.html | 2 +- .../discovery/struct.ConcurrentDiscovery.html | 2 +- .../discovery/struct.DiscoveryContext.html | 2 +- .../iroh/discovery/struct.DiscoveryItem.html | 2 +- .../docs/iroh/discovery/struct.NodeData.html | 2 +- .../docs/iroh/discovery/struct.NodeInfo.html | 2 +- .../docs/iroh/discovery/struct.UserData.html | 2 +- .../docs/iroh/discovery/trait.Discovery.html | 2 +- .../iroh/discovery/trait.IntoDiscovery.html | 2 +- .../dns/constant.N0_DNS_NODE_ORIGIN_PROD.html | 2 +- .../constant.N0_DNS_NODE_ORIGIN_STAGING.html | 2 +- pr/3528/docs/iroh/dns/index.html | 2 +- pr/3528/docs/iroh/dns/struct.DnsResolver.html | 2 +- .../constant.ENV_FORCE_STAGING_RELAYS.html | 2 +- .../iroh/endpoint/enum.AddNodeAddrError.html | 2 +- .../docs/iroh/endpoint/enum.AlpnError.html | 2 +- .../docs/iroh/endpoint/enum.BindError.html | 2 +- .../docs/iroh/endpoint/enum.ConnectError.html | 2 +- .../endpoint/enum.ConnectWithOptsError.html | 2 +- .../iroh/endpoint/enum.ConnectionError.html | 2 +- .../iroh/endpoint/enum.ConnectionType.html | 2 +- .../docs/iroh/endpoint/enum.ControlMsg.html | 2 +- .../iroh/endpoint/enum.DirectAddrType.html | 2 +- .../endpoint/enum.GetMappingAddressError.html | 2 +- .../iroh/endpoint/enum.PathSelection.html | 2 +- .../docs/iroh/endpoint/enum.ReadError.html | 2 +- .../iroh/endpoint/enum.ReadExactError.html | 2 +- .../iroh/endpoint/enum.ReadToEndError.html | 2 +- .../docs/iroh/endpoint/enum.RelayMode.html | 2 +- .../docs/iroh/endpoint/enum.ResetError.html | 2 +- .../iroh/endpoint/enum.SendDatagramError.html | 2 +- pr/3528/docs/iroh/endpoint/enum.Source.html | 2 +- .../docs/iroh/endpoint/enum.StoppedError.html | 2 +- .../docs/iroh/endpoint/enum.WriteError.html | 2 +- .../iroh/endpoint/fn.default_relay_mode.html | 2 +- .../iroh/endpoint/fn.force_staging_infra.html | 2 +- pr/3528/docs/iroh/endpoint/index.html | 2 +- pr/3528/docs/iroh/endpoint/struct.Accept.html | 2 +- .../docs/iroh/endpoint/struct.AcceptBi.html | 2 +- .../docs/iroh/endpoint/struct.AcceptUni.html | 2 +- .../endpoint/struct.AckFrequencyConfig.html | 2 +- .../endpoint/struct.ApplicationClose.html | 2 +- .../docs/iroh/endpoint/struct.Builder.html | 2 +- pr/3528/docs/iroh/endpoint/struct.Chunk.html | 2 +- .../iroh/endpoint/struct.ClosedStream.html | 2 +- .../iroh/endpoint/struct.ConnectOptions.html | 2 +- .../docs/iroh/endpoint/struct.Connecting.html | 2 +- .../docs/iroh/endpoint/struct.Connection.html | 2 +- .../iroh/endpoint/struct.ConnectionClose.html | 2 +- .../iroh/endpoint/struct.ConnectionStats.html | 2 +- .../iroh/endpoint/struct.CryptoError.html | 2 +- .../docs/iroh/endpoint/struct.DirectAddr.html | 2 +- .../iroh/endpoint/struct.DirectAddrInfo.html | 2 +- .../docs/iroh/endpoint/struct.Endpoint.html | 4 +-- .../struct.ExportKeyingMaterialError.html | 2 +- .../docs/iroh/endpoint/struct.FrameStats.html | 2 +- .../docs/iroh/endpoint/struct.Incoming.html | 2 +- .../iroh/endpoint/struct.IncomingFuture.html | 2 +- .../endpoint/struct.MtuDiscoveryConfig.html | 2 +- pr/3528/docs/iroh/endpoint/struct.OpenBi.html | 2 +- .../docs/iroh/endpoint/struct.OpenUni.html | 2 +- .../docs/iroh/endpoint/struct.PathStats.html | 2 +- .../iroh/endpoint/struct.ReadDatagram.html | 2 +- .../docs/iroh/endpoint/struct.RecvStream.html | 2 +- .../endpoint/struct.RemoteNodeIdError.html | 2 +- .../docs/iroh/endpoint/struct.RetryError.html | 2 +- .../docs/iroh/endpoint/struct.SendStream.html | 2 +- .../iroh/endpoint/struct.ServerConfig.html | 2 +- .../docs/iroh/endpoint/struct.StreamId.html | 2 +- .../iroh/endpoint/struct.TransportConfig.html | 2 +- .../iroh/endpoint/struct.TransportError.html | 2 +- .../endpoint/struct.TransportErrorCode.html | 2 +- .../docs/iroh/endpoint/struct.UdpStats.html | 2 +- .../endpoint/struct.UnsupportedVersion.html | 2 +- pr/3528/docs/iroh/endpoint/struct.VarInt.html | 2 +- .../endpoint/struct.WeakConnectionHandle.html | 2 +- .../docs/iroh/endpoint/struct.Written.html | 2 +- .../iroh/endpoint/struct.ZeroRttAccepted.html | 2 +- pr/3528/docs/iroh/endpoint/trait.AeadKey.html | 2 +- .../docs/iroh/endpoint/trait.Controller.html | 2 +- .../endpoint/trait.ControllerFactory.html | 2 +- .../endpoint/trait.CryptoServerConfig.html | 2 +- .../endpoint/trait.HandshakeTokenKey.html | 2 +- pr/3528/docs/iroh/enum.KeyParsingError.html | 10 +++--- pr/3528/docs/iroh/index.html | 2 +- pr/3528/docs/iroh/metrics/index.html | 2 +- .../iroh/metrics/struct.EndpointMetrics.html | 2 +- .../iroh/metrics/struct.MagicsockMetrics.html | 2 +- .../iroh/metrics/struct.PortmapMetrics.html | 2 +- .../iroh/metrics/struct.RelayMetrics.html | 2 +- .../iroh/net_report/constant.TIMEOUT.html | 2 +- pr/3528/docs/iroh/net_report/enum.Probe.html | 2 +- pr/3528/docs/iroh/net_report/index.html | 2 +- .../docs/iroh/net_report/struct.Metrics.html | 2 +- .../docs/iroh/net_report/struct.Options.html | 2 +- .../iroh/net_report/struct.QuicConfig.html | 2 +- .../net_report/struct.RelayLatencies.html | 2 +- .../docs/iroh/net_report/struct.Report.html | 2 +- .../node_info/constant.IROH_TXT_NAME.html | 2 +- .../iroh/node_info/enum.DecodingError.html | 2 +- .../iroh/node_info/enum.EncodingError.html | 2 +- .../docs/iroh/node_info/enum.ParseError.html | 2 +- pr/3528/docs/iroh/node_info/index.html | 2 +- .../struct.MaxLengthExceededError.html | 2 +- .../docs/iroh/node_info/struct.NodeData.html | 2 +- .../docs/iroh/node_info/struct.NodeInfo.html | 2 +- .../docs/iroh/node_info/struct.UserData.html | 2 +- .../docs/iroh/node_info/trait.NodeIdExt.html | 2 +- .../docs/iroh/protocol/enum.AcceptError.html | 2 +- pr/3528/docs/iroh/protocol/index.html | 2 +- .../iroh/protocol/struct.AccessLimit.html | 2 +- pr/3528/docs/iroh/protocol/struct.Router.html | 2 +- .../iroh/protocol/struct.RouterBuilder.html | 2 +- .../protocol/trait.DynProtocolHandler.html | 2 +- .../iroh/protocol/trait.ProtocolHandler.html | 2 +- pr/3528/docs/iroh/struct.NodeAddr.html | 32 ++++++++--------- pr/3528/docs/iroh/struct.PublicKey.html | 34 +++++++++---------- pr/3528/docs/iroh/struct.RelayMap.html | 2 +- pr/3528/docs/iroh/struct.RelayNode.html | 2 +- pr/3528/docs/iroh/struct.RelayUrl.html | 24 ++++++------- .../docs/iroh/struct.RelayUrlParseError.html | 8 ++--- pr/3528/docs/iroh/struct.SecretKey.html | 20 +++++------ .../iroh/test_utils/fn.run_relay_server.html | 2 +- .../test_utils/fn.run_relay_server_with.html | 2 +- pr/3528/docs/iroh/test_utils/index.html | 2 +- .../test_utils/struct.CleanupDropGuard.html | 2 +- .../test_utils/struct.DnsPkarrServer.html | 2 +- pr/3528/docs/iroh/trait.Watcher.html | 2 +- pr/3528/docs/iroh/type.NodeId.html | 2 +- pr/3528/docs/iroh_base/all.html | 2 +- .../docs/iroh_base/enum.KeyParsingError.html | 2 +- pr/3528/docs/iroh_base/index.html | 2 +- pr/3528/docs/iroh_base/struct.NodeAddr.html | 2 +- pr/3528/docs/iroh_base/struct.PublicKey.html | 2 +- pr/3528/docs/iroh_base/struct.RelayUrl.html | 2 +- .../iroh_base/struct.RelayUrlParseError.html | 2 +- pr/3528/docs/iroh_base/struct.SecretKey.html | 2 +- pr/3528/docs/iroh_base/struct.Signature.html | 2 +- .../iroh_base/ticket/enum.ParseError.html | 2 +- pr/3528/docs/iroh_base/ticket/index.html | 2 +- .../iroh_base/ticket/struct.NodeTicket.html | 2 +- .../docs/iroh_base/ticket/trait.Ticket.html | 2 +- pr/3528/docs/iroh_base/type.NodeId.html | 2 +- .../docs/iroh_base/type.SignatureError.html | 2 +- pr/3528/docs/iroh_bench/all.html | 2 +- pr/3528/docs/iroh_bench/enum.Commands.html | 2 +- .../iroh_bench/enum.ConnectionSelector.html | 6 ++-- .../iroh_bench/enum.EndpointSelector.html | 6 ++-- .../docs/iroh_bench/fn.client_handler.html | 2 +- .../fn.configure_tracing_subscriber.html | 2 +- pr/3528/docs/iroh_bench/fn.rt.html | 2 +- pr/3528/docs/iroh_bench/index.html | 2 +- .../docs/iroh_bench/iroh/constant.ALPN.html | 2 +- pr/3528/docs/iroh_bench/iroh/fn.client.html | 6 ++-- .../iroh_bench/iroh/fn.connect_client.html | 8 ++--- .../iroh/fn.handle_client_stream.html | 4 +-- pr/3528/docs/iroh_bench/iroh/fn.server.html | 2 +- .../iroh_bench/iroh/fn.server_endpoint.html | 6 ++-- .../iroh_bench/iroh/fn.transport_config.html | 2 +- pr/3528/docs/iroh_bench/iroh/index.html | 2 +- .../docs/iroh_bench/quinn/constant.ALPN.html | 2 +- pr/3528/docs/iroh_bench/quinn/fn.client.html | 2 +- .../iroh_bench/quinn/fn.connect_client.html | 2 +- .../quinn/fn.handle_client_stream.html | 2 +- pr/3528/docs/iroh_bench/quinn/fn.server.html | 2 +- .../iroh_bench/quinn/fn.server_endpoint.html | 2 +- .../iroh_bench/quinn/fn.transport_config.html | 2 +- pr/3528/docs/iroh_bench/quinn/index.html | 2 +- pr/3528/docs/iroh_bench/s2n/index.html | 2 +- pr/3528/docs/iroh_bench/s2n/struct.Opt.html | 2 +- .../iroh_bench/stats/fn.throughput_bps.html | 2 +- pr/3528/docs/iroh_bench/stats/index.html | 2 +- .../docs/iroh_bench/stats/struct.Stats.html | 2 +- .../iroh_bench/stats/struct.StreamStats.html | 2 +- .../stats/struct.TransferResult.html | 2 +- .../docs/iroh_bench/struct.ClientStats.html | 2 +- pr/3528/docs/iroh_bench/struct.Opt.html | 2 +- pr/3528/docs/iroh_dns_server/all.html | 2 +- .../config/enum.BootstrapOption.html | 2 +- .../docs/iroh_dns_server/config/index.html | 2 +- .../iroh_dns_server/config/struct.Config.html | 2 +- .../config/struct.MainlineConfig.html | 2 +- .../config/struct.MetricsConfig.html | 2 +- .../config/struct.StoreConfig.html | 2 +- pr/3528/docs/iroh_dns_server/dns/index.html | 2 +- .../iroh_dns_server/dns/struct.DnsConfig.html | 2 +- .../dns/struct.DnsHandler.html | 2 +- .../iroh_dns_server/dns/struct.DnsServer.html | 2 +- .../iroh_dns_server/dns/struct.Handle.html | 2 +- .../iroh_dns_server/http/enum.CertMode.html | 2 +- .../http/enum.RateLimitConfig.html | 2 +- pr/3528/docs/iroh_dns_server/http/index.html | 2 +- .../http/struct.HttpConfig.html | 2 +- .../http/struct.HttpServer.html | 2 +- .../http/struct.HttpsConfig.html | 2 +- pr/3528/docs/iroh_dns_server/index.html | 2 +- .../docs/iroh_dns_server/metrics/index.html | 2 +- .../metrics/struct.Metrics.html | 2 +- .../fn.run_with_config_until_ctrl_c.html | 2 +- .../docs/iroh_dns_server/server/index.html | 2 +- .../iroh_dns_server/server/struct.Server.html | 2 +- pr/3528/docs/iroh_dns_server/state/index.html | 2 +- .../state/struct.AppState.html | 2 +- .../iroh_dns_server/struct.ZoneStore.html | 2 +- pr/3528/docs/iroh_relay/all.html | 2 +- .../iroh_relay/client/enum.ConnectError.html | 2 +- .../iroh_relay/client/enum.DialError.html | 2 +- .../iroh_relay/client/enum.RecvError.html | 2 +- .../iroh_relay/client/enum.SendError.html | 2 +- .../fn.make_dangerous_client_config.html | 2 +- pr/3528/docs/iroh_relay/client/index.html | 2 +- .../docs/iroh_relay/client/struct.Client.html | 2 +- .../client/struct.ClientBuilder.html | 6 ++-- .../iroh_relay/client/struct.ClientSink.html | 2 +- .../client/struct.ClientStream.html | 2 +- .../defaults/constant.DEFAULT_HTTPS_PORT.html | 2 +- .../defaults/constant.DEFAULT_HTTP_PORT.html | 2 +- .../constant.DEFAULT_KEY_CACHE_CAPACITY.html | 2 +- .../constant.DEFAULT_METRICS_PORT.html | 2 +- .../constant.DEFAULT_RELAY_QUIC_PORT.html | 2 +- pr/3528/docs/iroh_relay/defaults/index.html | 2 +- .../dns/constant.N0_DNS_NODE_ORIGIN_PROD.html | 2 +- .../constant.N0_DNS_NODE_ORIGIN_STAGING.html | 2 +- .../docs/iroh_relay/dns/enum.DnsError.html | 2 +- .../docs/iroh_relay/dns/enum.DnsProtocol.html | 2 +- .../docs/iroh_relay/dns/enum.LookupError.html | 2 +- pr/3528/docs/iroh_relay/dns/index.html | 2 +- .../docs/iroh_relay/dns/struct.Builder.html | 2 +- .../iroh_relay/dns/struct.DnsResolver.html | 10 +++--- .../iroh_relay/dns/struct.StaggeredError.html | 2 +- .../iroh_relay/dns/struct.TxtRecordData.html | 2 +- .../docs/iroh_relay/dns/trait.Resolver.html | 2 +- pr/3528/docs/iroh_relay/dns/type.BoxIter.html | 2 +- .../http/constant.CLIENT_AUTH_HEADER.html | 2 +- .../iroh_relay/http/constant.RELAY_PATH.html | 2 +- .../http/constant.RELAY_PROBE_PATH.html | 2 +- .../http/constant.RELAY_PROTOCOL_VERSION.html | 2 +- pr/3528/docs/iroh_relay/http/index.html | 2 +- pr/3528/docs/iroh_relay/index.html | 4 +-- .../node_info/constant.IROH_TXT_NAME.html | 2 +- .../node_info/enum.DecodingError.html | 2 +- .../node_info/enum.EncodingError.html | 2 +- .../iroh_relay/node_info/enum.ParseError.html | 2 +- pr/3528/docs/iroh_relay/node_info/index.html | 10 +++--- .../struct.MaxLengthExceededError.html | 2 +- .../iroh_relay/node_info/struct.NodeData.html | 18 +++++----- .../iroh_relay/node_info/struct.NodeInfo.html | 28 +++++++-------- .../iroh_relay/node_info/struct.UserData.html | 2 +- .../iroh_relay/node_info/trait.NodeIdExt.html | 12 +++---- .../protos/common/enum.FrameType.html | 2 +- .../protos/common/enum.FrameTypeError.html | 2 +- .../docs/iroh_relay/protos/common/index.html | 2 +- .../protos/disco/constant.MAGIC.html | 2 +- .../disco/fn.looks_like_disco_wrapper.html | 2 +- .../docs/iroh_relay/protos/disco/index.html | 2 +- .../protos/handshake/enum.Error.html | 2 +- .../iroh_relay/protos/handshake/index.html | 2 +- pr/3528/docs/iroh_relay/protos/index.html | 2 +- .../relay/constant.MAX_PACKET_SIZE.html | 2 +- .../protos/relay/enum.ClientToRelayMsg.html | 6 ++-- .../iroh_relay/protos/relay/enum.Error.html | 2 +- .../protos/relay/enum.RelayToClientMsg.html | 10 +++--- .../docs/iroh_relay/protos/relay/index.html | 2 +- .../protos/relay/struct.Datagrams.html | 2 +- .../docs/iroh_relay/protos/streams/index.html | 2 +- .../quic/constant.ALPN_QUIC_ADDR_DISC.html | 2 +- .../constant.QUIC_ADDR_DISC_CLOSE_CODE.html | 2 +- .../constant.QUIC_ADDR_DISC_CLOSE_REASON.html | 2 +- pr/3528/docs/iroh_relay/quic/enum.Error.html | 2 +- pr/3528/docs/iroh_relay/quic/index.html | 2 +- .../iroh_relay/quic/struct.QuicClient.html | 2 +- ...constant.DEFAULT_CERT_RELOAD_INTERVAL.html | 2 +- .../docs/iroh_relay/server/enum.Access.html | 2 +- .../iroh_relay/server/enum.AccessConfig.html | 8 ++--- .../iroh_relay/server/enum.CertConfig.html | 2 +- .../iroh_relay/server/enum.SpawnError.html | 2 +- .../server/enum.SupervisorError.html | 2 +- pr/3528/docs/iroh_relay/server/index.html | 2 +- .../server/struct.ClientRateLimit.html | 2 +- .../docs/iroh_relay/server/struct.Limits.html | 2 +- .../iroh_relay/server/struct.Metrics.html | 2 +- .../iroh_relay/server/struct.QuicConfig.html | 2 +- .../iroh_relay/server/struct.RelayConfig.html | 2 +- .../server/struct.RelayMetrics.html | 2 +- .../server/struct.ReloadingResolver.html | 2 +- .../docs/iroh_relay/server/struct.Server.html | 6 ++-- .../server/struct.ServerConfig.html | 2 +- .../iroh_relay/server/struct.TlsConfig.html | 2 +- .../server/testing/fn.quic_config.html | 2 +- .../server/testing/fn.relay_config.html | 2 +- .../fn.self_signed_tls_certs_and_config.html | 2 +- .../server/testing/fn.server_config.html | 2 +- .../server/testing/fn.tls_config.html | 2 +- .../docs/iroh_relay/server/testing/index.html | 2 +- .../docs/iroh_relay/struct.PingTracker.html | 2 +- pr/3528/docs/iroh_relay/struct.RelayMap.html | 12 +++---- pr/3528/docs/iroh_relay/struct.RelayNode.html | 8 ++--- .../iroh_relay/struct.RelayQuicConfig.html | 2 +- .../trait.impl/core/convert/trait.From.js | 4 +-- .../iter/traits/collect/trait.FromIterator.js | 4 +-- .../docs/type.impl/iroh/struct.PublicKey.js | 4 +-- 357 files changed, 487 insertions(+), 487 deletions(-) diff --git a/pr/3528/docs/bulk/all.html b/pr/3528/docs/bulk/all.html index 930b0162e9..fca34c0763 100644 --- a/pr/3528/docs/bulk/all.html +++ b/pr/3528/docs/bulk/all.html @@ -1 +1 @@ -List of all items in this crate

All

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

All

\ No newline at end of file diff --git a/pr/3528/docs/bulk/fn.collect_and_print.html b/pr/3528/docs/bulk/fn.collect_and_print.html index cde9768477..fa1377017a 100644 --- a/pr/3528/docs/bulk/fn.collect_and_print.html +++ b/pr/3528/docs/bulk/fn.collect_and_print.html @@ -1,4 +1,4 @@ -collect_and_print in bulk - Rust

collect_and_print

Function collect_and_print 

Source
pub(crate) fn collect_and_print(
+collect_and_print in bulk - Rust

collect_and_print

Function collect_and_print 

Source
pub(crate) fn collect_and_print(
     category: &'static str,
     metrics: &dyn MetricsGroup,
 )
\ No newline at end of file diff --git a/pr/3528/docs/bulk/fn.main.html b/pr/3528/docs/bulk/fn.main.html index bdcbc9d93d..180fcf1066 100644 --- a/pr/3528/docs/bulk/fn.main.html +++ b/pr/3528/docs/bulk/fn.main.html @@ -1 +1 @@ -main in bulk - Rust

main

Function main 

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

main

Function main 

Source
pub(crate) fn main()
\ No newline at end of file diff --git a/pr/3528/docs/bulk/fn.run_iroh.html b/pr/3528/docs/bulk/fn.run_iroh.html index fde510737e..d62d37db98 100644 --- a/pr/3528/docs/bulk/fn.run_iroh.html +++ b/pr/3528/docs/bulk/fn.run_iroh.html @@ -1 +1 @@ -run_iroh in bulk - Rust

run_iroh

Function run_iroh 

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

run_iroh

Function run_iroh 

Source
pub fn run_iroh(opt: Opt) -> Result<()>
\ No newline at end of file diff --git a/pr/3528/docs/bulk/fn.run_quinn.html b/pr/3528/docs/bulk/fn.run_quinn.html index 730c09cdca..54a784013a 100644 --- a/pr/3528/docs/bulk/fn.run_quinn.html +++ b/pr/3528/docs/bulk/fn.run_quinn.html @@ -1 +1 @@ -run_quinn in bulk - Rust

run_quinn

Function run_quinn 

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

run_quinn

Function run_quinn 

Source
pub fn run_quinn(opt: Opt) -> Result<()>
\ No newline at end of file diff --git a/pr/3528/docs/bulk/fn.run_s2n.html b/pr/3528/docs/bulk/fn.run_s2n.html index 98d8e693d9..16620a98d5 100644 --- a/pr/3528/docs/bulk/fn.run_s2n.html +++ b/pr/3528/docs/bulk/fn.run_s2n.html @@ -1 +1 @@ -run_s2n in bulk - Rust

run_s2n

Function run_s2n 

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

run_s2n

Function run_s2n 

Source
pub fn run_s2n(_opt: Opt) -> Result<()>
\ No newline at end of file diff --git a/pr/3528/docs/bulk/index.html b/pr/3528/docs/bulk/index.html index e099e917d3..d7c6ec2f02 100644 --- a/pr/3528/docs/bulk/index.html +++ b/pr/3528/docs/bulk/index.html @@ -1 +1 @@ -bulk - Rust

Crate bulk

Crate bulk 

Source

Functions§

collect_and_print 🔒
main 🔒
run_iroh
run_quinn
run_s2n
\ No newline at end of file +bulk - Rust

Crate bulk

Crate bulk 

Source

Functions§

collect_and_print 🔒
main 🔒
run_iroh
run_quinn
run_s2n
\ No newline at end of file diff --git a/pr/3528/docs/iroh/all.html b/pr/3528/docs/iroh/all.html index b94d475932..fce2341274 100644 --- a/pr/3528/docs/iroh/all.html +++ b/pr/3528/docs/iroh/all.html @@ -1 +1 @@ -List of all items in this crate

All

List of all items

Structs

Enums

Traits

Functions

Type Aliases

Constants

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

All

List of all items

Structs

Enums

Traits

Functions

Type Aliases

Constants

\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/constant.DEFAULT_HTTPS_PORT.html b/pr/3528/docs/iroh/defaults/constant.DEFAULT_HTTPS_PORT.html index af8f38eb5a..f53d15cf8e 100644 --- a/pr/3528/docs/iroh/defaults/constant.DEFAULT_HTTPS_PORT.html +++ b/pr/3528/docs/iroh/defaults/constant.DEFAULT_HTTPS_PORT.html @@ -1,2 +1,2 @@ -DEFAULT_HTTPS_PORT in iroh::defaults - Rust

DEFAULT_HTTPS_PORT

Constant DEFAULT_HTTPS_PORT 

Source
pub const DEFAULT_HTTPS_PORT: u16 = 443;
Expand description

The default HTTPS port used by the Relay server.

+DEFAULT_HTTPS_PORT in iroh::defaults - Rust

DEFAULT_HTTPS_PORT

Constant DEFAULT_HTTPS_PORT 

Source
pub const DEFAULT_HTTPS_PORT: u16 = 443;
Expand description

The default HTTPS port used by the Relay server.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/constant.DEFAULT_HTTP_PORT.html b/pr/3528/docs/iroh/defaults/constant.DEFAULT_HTTP_PORT.html index b865b4d03c..2bf334c655 100644 --- a/pr/3528/docs/iroh/defaults/constant.DEFAULT_HTTP_PORT.html +++ b/pr/3528/docs/iroh/defaults/constant.DEFAULT_HTTP_PORT.html @@ -1,2 +1,2 @@ -DEFAULT_HTTP_PORT in iroh::defaults - Rust

DEFAULT_HTTP_PORT

Constant DEFAULT_HTTP_PORT 

Source
pub const DEFAULT_HTTP_PORT: u16 = 80;
Expand description

The default HTTP port used by the Relay server.

+DEFAULT_HTTP_PORT in iroh::defaults - Rust

DEFAULT_HTTP_PORT

Constant DEFAULT_HTTP_PORT 

Source
pub const DEFAULT_HTTP_PORT: u16 = 80;
Expand description

The default HTTP port used by the Relay server.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/constant.DEFAULT_METRICS_PORT.html b/pr/3528/docs/iroh/defaults/constant.DEFAULT_METRICS_PORT.html index 5b00c2d48b..167e9173c0 100644 --- a/pr/3528/docs/iroh/defaults/constant.DEFAULT_METRICS_PORT.html +++ b/pr/3528/docs/iroh/defaults/constant.DEFAULT_METRICS_PORT.html @@ -1,2 +1,2 @@ -DEFAULT_METRICS_PORT in iroh::defaults - Rust

DEFAULT_METRICS_PORT

Constant DEFAULT_METRICS_PORT 

Source
pub const DEFAULT_METRICS_PORT: u16 = 9090;
Expand description

The default metrics port used by the Relay server.

+DEFAULT_METRICS_PORT in iroh::defaults - Rust

DEFAULT_METRICS_PORT

Constant DEFAULT_METRICS_PORT 

Source
pub const DEFAULT_METRICS_PORT: u16 = 9090;
Expand description

The default metrics port used by the Relay server.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/constant.DEFAULT_RELAY_QUIC_PORT.html b/pr/3528/docs/iroh/defaults/constant.DEFAULT_RELAY_QUIC_PORT.html index 869ca7512d..2b73459b1a 100644 --- a/pr/3528/docs/iroh/defaults/constant.DEFAULT_RELAY_QUIC_PORT.html +++ b/pr/3528/docs/iroh/defaults/constant.DEFAULT_RELAY_QUIC_PORT.html @@ -1,4 +1,4 @@ -DEFAULT_RELAY_QUIC_PORT in iroh::defaults - Rust

DEFAULT_RELAY_QUIC_PORT

Constant DEFAULT_RELAY_QUIC_PORT 

Source
pub const DEFAULT_RELAY_QUIC_PORT: u16 = 7842; // 7_842u16
Expand description

The default QUIC port used by the Relay server to accept QUIC connections +DEFAULT_RELAY_QUIC_PORT in iroh::defaults - Rust

DEFAULT_RELAY_QUIC_PORT

Constant DEFAULT_RELAY_QUIC_PORT 

Source
pub const DEFAULT_RELAY_QUIC_PORT: u16 = 7842; // 7_842u16
Expand description

The default QUIC port used by the Relay server to accept QUIC connections for QUIC address discovery

The port is “QUIC” typed on a phone keypad. The default QUIC port used by the Relay server to accept QUIC connections diff --git a/pr/3528/docs/iroh/defaults/index.html b/pr/3528/docs/iroh/defaults/index.html index 0efcaf3f5b..3a908edb4c 100644 --- a/pr/3528/docs/iroh/defaults/index.html +++ b/pr/3528/docs/iroh/defaults/index.html @@ -1,3 +1,3 @@ -iroh::defaults - Rust

Module defaults

Module defaults 

Source
Expand description

Default values used in iroh

+iroh::defaults - Rust

Module defaults

Module defaults 

Source
Expand description

Default values used in iroh

Modules§

prod
Production configuration.
staging
Staging configuration.

Constants§

DEFAULT_HTTPS_PORT
The default HTTPS port used by the Relay server.
DEFAULT_HTTP_PORT
The default HTTP port used by the Relay server.
DEFAULT_METRICS_PORT
The default metrics port used by the Relay server.
DEFAULT_RELAY_QUIC_PORT
The default QUIC port used by the Relay server to accept QUIC connections for QUIC address discovery
\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/prod/constant.AP_RELAY_HOSTNAME.html b/pr/3528/docs/iroh/defaults/prod/constant.AP_RELAY_HOSTNAME.html index df5a35f602..d87fcc683b 100644 --- a/pr/3528/docs/iroh/defaults/prod/constant.AP_RELAY_HOSTNAME.html +++ b/pr/3528/docs/iroh/defaults/prod/constant.AP_RELAY_HOSTNAME.html @@ -1,2 +1,2 @@ -AP_RELAY_HOSTNAME in iroh::defaults::prod - Rust

AP_RELAY_HOSTNAME

Constant AP_RELAY_HOSTNAME 

Source
pub const AP_RELAY_HOSTNAME: &str = "aps1-1.relay.n0.iroh-canary.iroh.link.";
Expand description

Hostname of the default Asia-Pacific relay.

+AP_RELAY_HOSTNAME in iroh::defaults::prod - Rust

AP_RELAY_HOSTNAME

Constant AP_RELAY_HOSTNAME 

Source
pub const AP_RELAY_HOSTNAME: &str = "aps1-1.relay.n0.iroh-canary.iroh.link.";
Expand description

Hostname of the default Asia-Pacific relay.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/prod/constant.EU_RELAY_HOSTNAME.html b/pr/3528/docs/iroh/defaults/prod/constant.EU_RELAY_HOSTNAME.html index 79eb9db315..95bd5b6a21 100644 --- a/pr/3528/docs/iroh/defaults/prod/constant.EU_RELAY_HOSTNAME.html +++ b/pr/3528/docs/iroh/defaults/prod/constant.EU_RELAY_HOSTNAME.html @@ -1,2 +1,2 @@ -EU_RELAY_HOSTNAME in iroh::defaults::prod - Rust

EU_RELAY_HOSTNAME

Constant EU_RELAY_HOSTNAME 

Source
pub const EU_RELAY_HOSTNAME: &str = "euc1-1.relay.n0.iroh-canary.iroh.link.";
Expand description

Hostname of the default EU relay.

+EU_RELAY_HOSTNAME in iroh::defaults::prod - Rust

EU_RELAY_HOSTNAME

Constant EU_RELAY_HOSTNAME 

Source
pub const EU_RELAY_HOSTNAME: &str = "euc1-1.relay.n0.iroh-canary.iroh.link.";
Expand description

Hostname of the default EU relay.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/prod/constant.NA_RELAY_HOSTNAME.html b/pr/3528/docs/iroh/defaults/prod/constant.NA_RELAY_HOSTNAME.html index f689c36742..6ecb6685f4 100644 --- a/pr/3528/docs/iroh/defaults/prod/constant.NA_RELAY_HOSTNAME.html +++ b/pr/3528/docs/iroh/defaults/prod/constant.NA_RELAY_HOSTNAME.html @@ -1,2 +1,2 @@ -NA_RELAY_HOSTNAME in iroh::defaults::prod - Rust

NA_RELAY_HOSTNAME

Constant NA_RELAY_HOSTNAME 

Source
pub const NA_RELAY_HOSTNAME: &str = "use1-1.relay.n0.iroh-canary.iroh.link.";
Expand description

Hostname of the default NA relay.

+NA_RELAY_HOSTNAME in iroh::defaults::prod - Rust

NA_RELAY_HOSTNAME

Constant NA_RELAY_HOSTNAME 

Source
pub const NA_RELAY_HOSTNAME: &str = "use1-1.relay.n0.iroh-canary.iroh.link.";
Expand description

Hostname of the default NA relay.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/prod/fn.default_ap_relay_node.html b/pr/3528/docs/iroh/defaults/prod/fn.default_ap_relay_node.html index 6052cff046..2b1bc5a5fb 100644 --- a/pr/3528/docs/iroh/defaults/prod/fn.default_ap_relay_node.html +++ b/pr/3528/docs/iroh/defaults/prod/fn.default_ap_relay_node.html @@ -1,2 +1,2 @@ -default_ap_relay_node in iroh::defaults::prod - Rust

default_ap_relay_node

Function default_ap_relay_node 

Source
pub fn default_ap_relay_node() -> RelayNode
Expand description

Get the default RelayNode for Asia-Pacific

+default_ap_relay_node in iroh::defaults::prod - Rust

default_ap_relay_node

Function default_ap_relay_node 

Source
pub fn default_ap_relay_node() -> RelayNode
Expand description

Get the default RelayNode for Asia-Pacific

\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/prod/fn.default_eu_relay_node.html b/pr/3528/docs/iroh/defaults/prod/fn.default_eu_relay_node.html index ee70a0c8b9..3db7539d81 100644 --- a/pr/3528/docs/iroh/defaults/prod/fn.default_eu_relay_node.html +++ b/pr/3528/docs/iroh/defaults/prod/fn.default_eu_relay_node.html @@ -1,2 +1,2 @@ -default_eu_relay_node in iroh::defaults::prod - Rust

default_eu_relay_node

Function default_eu_relay_node 

Source
pub fn default_eu_relay_node() -> RelayNode
Expand description

Get the default RelayNode for EU.

+default_eu_relay_node in iroh::defaults::prod - Rust

default_eu_relay_node

Function default_eu_relay_node 

Source
pub fn default_eu_relay_node() -> RelayNode
Expand description

Get the default RelayNode for EU.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/prod/fn.default_na_relay_node.html b/pr/3528/docs/iroh/defaults/prod/fn.default_na_relay_node.html index 871a2f8c3b..1f9088089a 100644 --- a/pr/3528/docs/iroh/defaults/prod/fn.default_na_relay_node.html +++ b/pr/3528/docs/iroh/defaults/prod/fn.default_na_relay_node.html @@ -1,2 +1,2 @@ -default_na_relay_node in iroh::defaults::prod - Rust

default_na_relay_node

Function default_na_relay_node 

Source
pub fn default_na_relay_node() -> RelayNode
Expand description

Get the default RelayNode for NA.

+default_na_relay_node in iroh::defaults::prod - Rust

default_na_relay_node

Function default_na_relay_node 

Source
pub fn default_na_relay_node() -> RelayNode
Expand description

Get the default RelayNode for NA.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/prod/fn.default_relay_map.html b/pr/3528/docs/iroh/defaults/prod/fn.default_relay_map.html index 9f56df52cb..7324d757b7 100644 --- a/pr/3528/docs/iroh/defaults/prod/fn.default_relay_map.html +++ b/pr/3528/docs/iroh/defaults/prod/fn.default_relay_map.html @@ -1,2 +1,2 @@ -default_relay_map in iroh::defaults::prod - Rust

default_relay_map

Function default_relay_map 

Source
pub fn default_relay_map() -> RelayMap
Expand description

Get the default RelayMap.

+default_relay_map in iroh::defaults::prod - Rust

default_relay_map

Function default_relay_map 

Source
pub fn default_relay_map() -> RelayMap
Expand description

Get the default RelayMap.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/prod/index.html b/pr/3528/docs/iroh/defaults/prod/index.html index 847ee08012..a088654fc0 100644 --- a/pr/3528/docs/iroh/defaults/prod/index.html +++ b/pr/3528/docs/iroh/defaults/prod/index.html @@ -1,2 +1,2 @@ -iroh::defaults::prod - Rust

Module prod

Module prod 

Source
Expand description

Production configuration.

+iroh::defaults::prod - Rust

Module prod

Module prod 

Source
Expand description

Production configuration.

Constants§

AP_RELAY_HOSTNAME
Hostname of the default Asia-Pacific relay.
EU_RELAY_HOSTNAME
Hostname of the default EU relay.
NA_RELAY_HOSTNAME
Hostname of the default NA relay.

Functions§

default_ap_relay_node
Get the default RelayNode for Asia-Pacific
default_eu_relay_node
Get the default RelayNode for EU.
default_na_relay_node
Get the default RelayNode for NA.
default_relay_map
Get the default RelayMap.
\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/staging/constant.EU_RELAY_HOSTNAME.html b/pr/3528/docs/iroh/defaults/staging/constant.EU_RELAY_HOSTNAME.html index 139bd2d019..b2f38d6b20 100644 --- a/pr/3528/docs/iroh/defaults/staging/constant.EU_RELAY_HOSTNAME.html +++ b/pr/3528/docs/iroh/defaults/staging/constant.EU_RELAY_HOSTNAME.html @@ -1,2 +1,2 @@ -EU_RELAY_HOSTNAME in iroh::defaults::staging - Rust

EU_RELAY_HOSTNAME

Constant EU_RELAY_HOSTNAME 

Source
pub const EU_RELAY_HOSTNAME: &str = "staging-euw1-1.relay.iroh.network.";
Expand description

Hostname of the default EU relay.

+EU_RELAY_HOSTNAME in iroh::defaults::staging - Rust

EU_RELAY_HOSTNAME

Constant EU_RELAY_HOSTNAME 

Source
pub const EU_RELAY_HOSTNAME: &str = "staging-euw1-1.relay.iroh.network.";
Expand description

Hostname of the default EU relay.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/staging/constant.NA_RELAY_HOSTNAME.html b/pr/3528/docs/iroh/defaults/staging/constant.NA_RELAY_HOSTNAME.html index 8d2802ffc4..085e801e59 100644 --- a/pr/3528/docs/iroh/defaults/staging/constant.NA_RELAY_HOSTNAME.html +++ b/pr/3528/docs/iroh/defaults/staging/constant.NA_RELAY_HOSTNAME.html @@ -1,2 +1,2 @@ -NA_RELAY_HOSTNAME in iroh::defaults::staging - Rust

NA_RELAY_HOSTNAME

Constant NA_RELAY_HOSTNAME 

Source
pub const NA_RELAY_HOSTNAME: &str = "staging-use1-1.relay.iroh.network.";
Expand description

Hostname of the default NA relay.

+NA_RELAY_HOSTNAME in iroh::defaults::staging - Rust

NA_RELAY_HOSTNAME

Constant NA_RELAY_HOSTNAME 

Source
pub const NA_RELAY_HOSTNAME: &str = "staging-use1-1.relay.iroh.network.";
Expand description

Hostname of the default NA relay.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/staging/fn.default_eu_relay_node.html b/pr/3528/docs/iroh/defaults/staging/fn.default_eu_relay_node.html index 4fdf66bada..99f30d9eab 100644 --- a/pr/3528/docs/iroh/defaults/staging/fn.default_eu_relay_node.html +++ b/pr/3528/docs/iroh/defaults/staging/fn.default_eu_relay_node.html @@ -1,2 +1,2 @@ -default_eu_relay_node in iroh::defaults::staging - Rust

default_eu_relay_node

Function default_eu_relay_node 

Source
pub fn default_eu_relay_node() -> RelayNode
Expand description

Get the default RelayNode for EU.

+default_eu_relay_node in iroh::defaults::staging - Rust

default_eu_relay_node

Function default_eu_relay_node 

Source
pub fn default_eu_relay_node() -> RelayNode
Expand description

Get the default RelayNode for EU.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/staging/fn.default_na_relay_node.html b/pr/3528/docs/iroh/defaults/staging/fn.default_na_relay_node.html index cc867a7ddb..b4c1a67482 100644 --- a/pr/3528/docs/iroh/defaults/staging/fn.default_na_relay_node.html +++ b/pr/3528/docs/iroh/defaults/staging/fn.default_na_relay_node.html @@ -1,2 +1,2 @@ -default_na_relay_node in iroh::defaults::staging - Rust

default_na_relay_node

Function default_na_relay_node 

Source
pub fn default_na_relay_node() -> RelayNode
Expand description

Get the default RelayNode for NA.

+default_na_relay_node in iroh::defaults::staging - Rust

default_na_relay_node

Function default_na_relay_node 

Source
pub fn default_na_relay_node() -> RelayNode
Expand description

Get the default RelayNode for NA.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/staging/fn.default_relay_map.html b/pr/3528/docs/iroh/defaults/staging/fn.default_relay_map.html index 7ce7dd90f3..76b4354d97 100644 --- a/pr/3528/docs/iroh/defaults/staging/fn.default_relay_map.html +++ b/pr/3528/docs/iroh/defaults/staging/fn.default_relay_map.html @@ -1,2 +1,2 @@ -default_relay_map in iroh::defaults::staging - Rust

default_relay_map

Function default_relay_map 

Source
pub fn default_relay_map() -> RelayMap
Expand description

Get the default RelayMap.

+default_relay_map in iroh::defaults::staging - Rust

default_relay_map

Function default_relay_map 

Source
pub fn default_relay_map() -> RelayMap
Expand description

Get the default RelayMap.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/defaults/staging/index.html b/pr/3528/docs/iroh/defaults/staging/index.html index fc4f70f426..50523297b5 100644 --- a/pr/3528/docs/iroh/defaults/staging/index.html +++ b/pr/3528/docs/iroh/defaults/staging/index.html @@ -1,4 +1,4 @@ -iroh::defaults::staging - Rust

Module staging

Module staging 

Source
Expand description

Staging configuration.

+iroh::defaults::staging - Rust

Module staging

Module staging 

Source
Expand description

Staging configuration.

Used by tests and might have incompatible changes deployed

Note: we have staging servers in EU and NA, but no corresponding staging server for AP at this time.

Constants§

EU_RELAY_HOSTNAME
Hostname of the default EU relay.
NA_RELAY_HOSTNAME
Hostname of the default NA relay.

Functions§

default_eu_relay_node
Get the default RelayNode for EU.
default_na_relay_node
Get the default RelayNode for NA.
default_relay_map
Get the default RelayMap.
\ No newline at end of file diff --git a/pr/3528/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html b/pr/3528/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html index 8f2a9b2406..cea7388166 100644 --- a/pr/3528/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html +++ b/pr/3528/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html @@ -1,2 +1,2 @@ -N0_DNS_NODE_ORIGIN_PROD in iroh::discovery::dns - Rust

N0_DNS_NODE_ORIGIN_PROD

Constant N0_DNS_NODE_ORIGIN_PROD 

Source
pub const N0_DNS_NODE_ORIGIN_PROD: &'static str;
Available on non-wasm_browser only.
Expand description

The n0 testing DNS node origin, for production.

+N0_DNS_NODE_ORIGIN_PROD in iroh::discovery::dns - Rust

N0_DNS_NODE_ORIGIN_PROD

Constant N0_DNS_NODE_ORIGIN_PROD 

Source
pub const N0_DNS_NODE_ORIGIN_PROD: &'static str;
Available on non-wasm_browser only.
Expand description

The n0 testing DNS node origin, for production.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html b/pr/3528/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html index dd623c4a09..3da869e9a6 100644 --- a/pr/3528/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html +++ b/pr/3528/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html @@ -1,2 +1,2 @@ -N0_DNS_NODE_ORIGIN_STAGING in iroh::discovery::dns - Rust

N0_DNS_NODE_ORIGIN_STAGING

Constant N0_DNS_NODE_ORIGIN_STAGING 

Source
pub const N0_DNS_NODE_ORIGIN_STAGING: &'static str;
Available on non-wasm_browser only.
Expand description

The n0 testing DNS node origin, for testing.

+N0_DNS_NODE_ORIGIN_STAGING in iroh::discovery::dns - Rust

N0_DNS_NODE_ORIGIN_STAGING

Constant N0_DNS_NODE_ORIGIN_STAGING 

Source
pub const N0_DNS_NODE_ORIGIN_STAGING: &'static str;
Available on non-wasm_browser only.
Expand description

The n0 testing DNS node origin, for testing.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/discovery/dns/index.html b/pr/3528/docs/iroh/discovery/dns/index.html index 704a20d146..7eaf27a669 100644 --- a/pr/3528/docs/iroh/discovery/dns/index.html +++ b/pr/3528/docs/iroh/discovery/dns/index.html @@ -1,2 +1,2 @@ -iroh::discovery::dns - Rust

Module dns

Module dns 

Source
Available on non-wasm_browser only.
Expand description

DNS node discovery for iroh

+iroh::discovery::dns - Rust

Module dns

Module dns 

Source
Available on non-wasm_browser only.
Expand description

DNS node discovery for iroh

Structs§

DnsDiscovery
DNS node discovery
DnsDiscoveryBuilder
Builder for DnsDiscovery.

Constants§

N0_DNS_NODE_ORIGIN_PROD
The n0 testing DNS node origin, for production.
N0_DNS_NODE_ORIGIN_STAGING
The n0 testing DNS node origin, for testing.
\ No newline at end of file diff --git a/pr/3528/docs/iroh/discovery/dns/struct.DnsDiscovery.html b/pr/3528/docs/iroh/discovery/dns/struct.DnsDiscovery.html index 6f73b0d3a0..d8abf5fd26 100644 --- a/pr/3528/docs/iroh/discovery/dns/struct.DnsDiscovery.html +++ b/pr/3528/docs/iroh/discovery/dns/struct.DnsDiscovery.html @@ -1,4 +1,4 @@ -DnsDiscovery in iroh::discovery::dns - Rust

DnsDiscovery

Struct DnsDiscovery 

Source
pub struct DnsDiscovery { /* private fields */ }
Available on non-wasm_browser only.
Expand description

DNS node discovery

+DnsDiscovery in iroh::discovery::dns - Rust

DnsDiscovery

Struct DnsDiscovery 

Source
pub struct DnsDiscovery { /* private fields */ }
Available on non-wasm_browser only.
Expand description

DNS node discovery

When asked to resolve a NodeId, this service performs a lookup in the Domain Name System (DNS).

It uses the Endpoint’s DNS resolver to query for TXT records under the domain _iroh.<z32-node-id>.<origin-domain>:

diff --git a/pr/3528/docs/iroh/discovery/dns/struct.DnsDiscoveryBuilder.html b/pr/3528/docs/iroh/discovery/dns/struct.DnsDiscoveryBuilder.html index ceea0dcfdf..5320277bc4 100644 --- a/pr/3528/docs/iroh/discovery/dns/struct.DnsDiscoveryBuilder.html +++ b/pr/3528/docs/iroh/discovery/dns/struct.DnsDiscoveryBuilder.html @@ -1,4 +1,4 @@ -DnsDiscoveryBuilder in iroh::discovery::dns - Rust

DnsDiscoveryBuilder

Struct DnsDiscoveryBuilder 

Source
pub struct DnsDiscoveryBuilder { /* private fields */ }
Available on non-wasm_browser only.
Expand description

Builder for DnsDiscovery.

+DnsDiscoveryBuilder in iroh::discovery::dns - Rust

DnsDiscoveryBuilder

Struct DnsDiscoveryBuilder 

Source
pub struct DnsDiscoveryBuilder { /* private fields */ }
Available on non-wasm_browser only.
Expand description

Implementations§

Source§

impl DnsDiscoveryBuilder

Source

pub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self

Sets the DNS resolver to use.

Source

pub fn build(self) -> DnsDiscovery

Builds a DnsDiscovery with the passed DnsResolver.

diff --git a/pr/3528/docs/iroh/discovery/enum.DiscoveryError.html b/pr/3528/docs/iroh/discovery/enum.DiscoveryError.html index 4935b13468..1dfbb4d266 100644 --- a/pr/3528/docs/iroh/discovery/enum.DiscoveryError.html +++ b/pr/3528/docs/iroh/discovery/enum.DiscoveryError.html @@ -1,4 +1,4 @@ -DiscoveryError in iroh::discovery - Rust

DiscoveryError

Enum DiscoveryError 

Source
#[non_exhaustive]
pub enum DiscoveryError { +DiscoveryError in iroh::discovery - Rust

DiscoveryError

Enum DiscoveryError 

Source
#[non_exhaustive]
pub enum DiscoveryError { NoServiceConfigured { backtrace: Option<Backtrace>, span_trace: SpanTrace, diff --git a/pr/3528/docs/iroh/discovery/enum.IntoDiscoveryError.html b/pr/3528/docs/iroh/discovery/enum.IntoDiscoveryError.html index a02902e990..ba1dd8b63b 100644 --- a/pr/3528/docs/iroh/discovery/enum.IntoDiscoveryError.html +++ b/pr/3528/docs/iroh/discovery/enum.IntoDiscoveryError.html @@ -1,4 +1,4 @@ -IntoDiscoveryError in iroh::discovery - Rust

IntoDiscoveryError

Enum IntoDiscoveryError 

Source
#[non_exhaustive]
pub enum IntoDiscoveryError { +IntoDiscoveryError in iroh::discovery - Rust

IntoDiscoveryError

Enum IntoDiscoveryError 

Source
#[non_exhaustive]
pub enum IntoDiscoveryError { User { provenance: &'static str, source: Box<dyn Error + Send + Sync + 'static>, diff --git a/pr/3528/docs/iroh/discovery/enum.ParseError.html b/pr/3528/docs/iroh/discovery/enum.ParseError.html index e4791fb759..e69aea7518 100644 --- a/pr/3528/docs/iroh/discovery/enum.ParseError.html +++ b/pr/3528/docs/iroh/discovery/enum.ParseError.html @@ -1,4 +1,4 @@ -ParseError in iroh::discovery - Rust

ParseError

Enum ParseError 

Source
#[non_exhaustive]
pub enum ParseError { +ParseError in iroh::discovery - Rust

ParseError

Enum ParseError 

Source
#[non_exhaustive]
pub enum ParseError { UnexpectedFormat { s: String, backtrace: Option<Backtrace>, diff --git a/pr/3528/docs/iroh/discovery/index.html b/pr/3528/docs/iroh/discovery/index.html index 8641f72f4f..e079df0508 100644 --- a/pr/3528/docs/iroh/discovery/index.html +++ b/pr/3528/docs/iroh/discovery/index.html @@ -1,4 +1,4 @@ -iroh::discovery - Rust

Module discovery

Module discovery 

Source
Expand description

Node address discovery.

+iroh::discovery - Rust

Module discovery

Module discovery 

Source
Expand description

Node address discovery.

To connect to an iroh node a NodeAddr is needed, which may contain a RelayUrl or one or more direct addresses in addition to the NodeId.

Since there is a conversion from NodeId to NodeAddr, you can also use diff --git a/pr/3528/docs/iroh/discovery/mdns/constant.NAME.html b/pr/3528/docs/iroh/discovery/mdns/constant.NAME.html index 2e48862895..0d692040b4 100644 --- a/pr/3528/docs/iroh/discovery/mdns/constant.NAME.html +++ b/pr/3528/docs/iroh/discovery/mdns/constant.NAME.html @@ -1,4 +1,4 @@ -NAME in iroh::discovery::mdns - Rust

NAME

Constant NAME 

Source
pub const NAME: &str = "mdns";
Available on crate feature discovery-local-network only.
Expand description

Name of this discovery service.

+NAME in iroh::discovery::mdns - Rust

NAME

Constant NAME 

Source
pub const NAME: &str = "mdns";
Available on crate feature discovery-local-network only.
Expand description

Name of this discovery service.

Used as the provenance field in DiscoveryItems.

Used in the crate::endpoint::Source::Discovery enum variant as the name.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/discovery/mdns/enum.DiscoveryEvent.html b/pr/3528/docs/iroh/discovery/mdns/enum.DiscoveryEvent.html index df106718f6..17be793ead 100644 --- a/pr/3528/docs/iroh/discovery/mdns/enum.DiscoveryEvent.html +++ b/pr/3528/docs/iroh/discovery/mdns/enum.DiscoveryEvent.html @@ -1,4 +1,4 @@ -DiscoveryEvent in iroh::discovery::mdns - Rust

DiscoveryEvent

Enum DiscoveryEvent 

Source
pub enum DiscoveryEvent {
+DiscoveryEvent in iroh::discovery::mdns - Rust

DiscoveryEvent

Enum DiscoveryEvent 

Source
pub enum DiscoveryEvent {
     Discovered {
         node_info: NodeInfo,
         last_updated: Option<u64>,
diff --git a/pr/3528/docs/iroh/discovery/mdns/index.html b/pr/3528/docs/iroh/discovery/mdns/index.html
index 4f56a4b950..b07b47ebbe 100644
--- a/pr/3528/docs/iroh/discovery/mdns/index.html
+++ b/pr/3528/docs/iroh/discovery/mdns/index.html
@@ -1,4 +1,4 @@
-iroh::discovery::mdns - Rust

Module mdns

Module mdns 

Source
Available on crate feature discovery-local-network only.
Expand description

A discovery service that uses an mdns-like service to discover local nodes.

+iroh::discovery::mdns - Rust

Module mdns

Module mdns 

Source
Available on crate feature discovery-local-network only.
Expand description

A discovery service that uses an mdns-like service to discover local nodes.

This allows you to use an mdns-like swarm discovery service to find address information about nodes that are on your local network, no relay or outside internet needed. See the swarm-discovery crate for more details.

When MdnsDiscovery is enabled, it’s possible to get a list of the locally discovered nodes by filtering a list of RemoteInfos.

diff --git a/pr/3528/docs/iroh/discovery/mdns/struct.MdnsDiscovery.html b/pr/3528/docs/iroh/discovery/mdns/struct.MdnsDiscovery.html index ed6d294d64..c2499e45b4 100644 --- a/pr/3528/docs/iroh/discovery/mdns/struct.MdnsDiscovery.html +++ b/pr/3528/docs/iroh/discovery/mdns/struct.MdnsDiscovery.html @@ -1,4 +1,4 @@ -MdnsDiscovery in iroh::discovery::mdns - Rust

MdnsDiscovery

Struct MdnsDiscovery 

Source
pub struct MdnsDiscovery { /* private fields */ }
Available on crate feature discovery-local-network only.
Expand description

Discovery using swarm-discovery, a variation on mdns

+MdnsDiscovery in iroh::discovery::mdns - Rust

MdnsDiscovery

Struct MdnsDiscovery 

Source
pub struct MdnsDiscovery { /* private fields */ }
Available on crate feature discovery-local-network only.
Expand description

Discovery using swarm-discovery, a variation on mdns

Implementations§

Source§

impl MdnsDiscovery

Source

pub fn builder() -> MdnsDiscoveryBuilder

Returns a MdnsDiscoveryBuilder that implements IntoDiscovery.

Source

pub async fn subscribe( &self, diff --git a/pr/3528/docs/iroh/discovery/mdns/struct.MdnsDiscoveryBuilder.html b/pr/3528/docs/iroh/discovery/mdns/struct.MdnsDiscoveryBuilder.html index 5d5f2ee613..d3ba2e4318 100644 --- a/pr/3528/docs/iroh/discovery/mdns/struct.MdnsDiscoveryBuilder.html +++ b/pr/3528/docs/iroh/discovery/mdns/struct.MdnsDiscoveryBuilder.html @@ -1,4 +1,4 @@ -MdnsDiscoveryBuilder in iroh::discovery::mdns - Rust

MdnsDiscoveryBuilder

Struct MdnsDiscoveryBuilder 

Source
pub struct MdnsDiscoveryBuilder { /* private fields */ }
Available on crate feature discovery-local-network only.
Expand description

Builder for MdnsDiscovery.

+MdnsDiscoveryBuilder in iroh::discovery::mdns - Rust

MdnsDiscoveryBuilder

Struct MdnsDiscoveryBuilder 

Source
pub struct MdnsDiscoveryBuilder { /* private fields */ }
Available on crate feature discovery-local-network only.
Expand description

Builder for MdnsDiscovery.

Implementations§

Source§

impl MdnsDiscoveryBuilder

Source

pub fn advertise(self, advertise: bool) -> Self

Sets whether this node should advertise its presence.

Default is true.

Source

pub fn service_name(self, service_name: impl Into<String>) -> Self

Sets a custom service name.

diff --git a/pr/3528/docs/iroh/discovery/pkarr/constant.DEFAULT_PKARR_TTL.html b/pr/3528/docs/iroh/discovery/pkarr/constant.DEFAULT_PKARR_TTL.html index 065441d634..c21f0429bf 100644 --- a/pr/3528/docs/iroh/discovery/pkarr/constant.DEFAULT_PKARR_TTL.html +++ b/pr/3528/docs/iroh/discovery/pkarr/constant.DEFAULT_PKARR_TTL.html @@ -1,4 +1,4 @@ -DEFAULT_PKARR_TTL in iroh::discovery::pkarr - Rust

DEFAULT_PKARR_TTL

Constant DEFAULT_PKARR_TTL 

Source
pub const DEFAULT_PKARR_TTL: u32 = 30;
Expand description

Default TTL for the records in the pkarr signed packet.

+DEFAULT_PKARR_TTL in iroh::discovery::pkarr - Rust

DEFAULT_PKARR_TTL

Constant DEFAULT_PKARR_TTL 

Source
pub const DEFAULT_PKARR_TTL: u32 = 30;
Expand description

Default TTL for the records in the pkarr signed packet.

The Time To Live (TTL) tells DNS caches how long to store a record. It is ignored by the iroh-dns-server, e.g. as running on N0_DNS_PKARR_RELAY_PROD, as the home server keeps the records for the domain. When using the pkarr relay no DNS is involved and the diff --git a/pr/3528/docs/iroh/discovery/pkarr/constant.DEFAULT_REPUBLISH_INTERVAL.html b/pr/3528/docs/iroh/discovery/pkarr/constant.DEFAULT_REPUBLISH_INTERVAL.html index 17f19c5a51..dbd8d7683f 100644 --- a/pr/3528/docs/iroh/discovery/pkarr/constant.DEFAULT_REPUBLISH_INTERVAL.html +++ b/pr/3528/docs/iroh/discovery/pkarr/constant.DEFAULT_REPUBLISH_INTERVAL.html @@ -1,2 +1,2 @@ -DEFAULT_REPUBLISH_INTERVAL in iroh::discovery::pkarr - Rust

DEFAULT_REPUBLISH_INTERVAL

Constant DEFAULT_REPUBLISH_INTERVAL 

Source
pub const DEFAULT_REPUBLISH_INTERVAL: Duration;
Expand description

Interval in which to republish the node info even if unchanged: 5 minutes.

+DEFAULT_REPUBLISH_INTERVAL in iroh::discovery::pkarr - Rust

DEFAULT_REPUBLISH_INTERVAL

Constant DEFAULT_REPUBLISH_INTERVAL 

Source
pub const DEFAULT_REPUBLISH_INTERVAL: Duration;
Expand description

Interval in which to republish the node info even if unchanged: 5 minutes.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_PROD.html b/pr/3528/docs/iroh/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_PROD.html index eba0e9ef5e..6095b08be6 100644 --- a/pr/3528/docs/iroh/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_PROD.html +++ b/pr/3528/docs/iroh/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_PROD.html @@ -1,4 +1,4 @@ -N0_DNS_PKARR_RELAY_PROD in iroh::discovery::pkarr - Rust

N0_DNS_PKARR_RELAY_PROD

Constant N0_DNS_PKARR_RELAY_PROD 

Source
pub const N0_DNS_PKARR_RELAY_PROD: &str = "https://dns.iroh.link/pkarr";
Expand description

The production pkarr relay run by number 0.

+N0_DNS_PKARR_RELAY_PROD in iroh::discovery::pkarr - Rust

N0_DNS_PKARR_RELAY_PROD

Constant N0_DNS_PKARR_RELAY_PROD 

Source
pub const N0_DNS_PKARR_RELAY_PROD: &str = "https://dns.iroh.link/pkarr";
Expand description

The production pkarr relay run by number 0.

This server is both a pkarr relay server as well as a DNS resolver, see the module documentation. However it does not interact with the Mainline DHT, so is a more central service. It is a reliable service to use for node discovery.

diff --git a/pr/3528/docs/iroh/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_STAGING.html b/pr/3528/docs/iroh/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_STAGING.html index f41549317f..7d23f804b9 100644 --- a/pr/3528/docs/iroh/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_STAGING.html +++ b/pr/3528/docs/iroh/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_STAGING.html @@ -1,4 +1,4 @@ -N0_DNS_PKARR_RELAY_STAGING in iroh::discovery::pkarr - Rust

N0_DNS_PKARR_RELAY_STAGING

Constant N0_DNS_PKARR_RELAY_STAGING 

Source
pub const N0_DNS_PKARR_RELAY_STAGING: &str = "https://staging-dns.iroh.link/pkarr";
Expand description

The testing pkarr relay run by number 0.

+N0_DNS_PKARR_RELAY_STAGING in iroh::discovery::pkarr - Rust

N0_DNS_PKARR_RELAY_STAGING

Constant N0_DNS_PKARR_RELAY_STAGING 

Source
pub const N0_DNS_PKARR_RELAY_STAGING: &str = "https://staging-dns.iroh.link/pkarr";
Expand description

The testing pkarr relay run by number 0.

This server operates similarly to N0_DNS_PKARR_RELAY_PROD but is not as reliable. It is meant for more experimental use and testing purposes.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/discovery/pkarr/dht/index.html b/pr/3528/docs/iroh/discovery/pkarr/dht/index.html index 97d62938a3..0029b0c34e 100644 --- a/pr/3528/docs/iroh/discovery/pkarr/dht/index.html +++ b/pr/3528/docs/iroh/discovery/pkarr/dht/index.html @@ -1,4 +1,4 @@ -iroh::discovery::pkarr::dht - Rust

Module dht

Module dht 

Source
Available on crate feature discovery-pkarr-dht only.
Expand description

Pkarr based node discovery for iroh, supporting both relay servers and the DHT.

+iroh::discovery::pkarr::dht - Rust

Module dht

Module dht 

Source
Available on crate feature discovery-pkarr-dht only.
Expand description

Pkarr based node discovery for iroh, supporting both relay servers and the DHT.

This module contains pkarr-based node discovery for iroh which can use both pkarr relay servers as well as the Mainline DHT directly. See the pkarr module for an overview of pkarr.

diff --git a/pr/3528/docs/iroh/discovery/pkarr/dht/struct.Builder.html b/pr/3528/docs/iroh/discovery/pkarr/dht/struct.Builder.html index 810ec99f09..4103845925 100644 --- a/pr/3528/docs/iroh/discovery/pkarr/dht/struct.Builder.html +++ b/pr/3528/docs/iroh/discovery/pkarr/dht/struct.Builder.html @@ -1,4 +1,4 @@ -Builder in iroh::discovery::pkarr::dht - Rust

Builder

Struct Builder 

Source
pub struct Builder { /* private fields */ }
Available on crate feature discovery-pkarr-dht only.
Expand description

Builder for DhtDiscovery.

+Builder in iroh::discovery::pkarr::dht - Rust

Builder

Struct Builder 

Source
pub struct Builder { /* private fields */ }
Available on crate feature discovery-pkarr-dht only.
Expand description

Builder for DhtDiscovery.

By default, publishing to the DHT is enabled, and relay publishing is disabled.

Implementations§

Source§

impl Builder

Source

pub fn client(self, client: PkarrClient) -> Self

Explicitly sets the pkarr client to use.

Source

pub fn secret_key(self, secret_key: SecretKey) -> Self

Sets the secret key to use for signing the DNS packets.

diff --git a/pr/3528/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html b/pr/3528/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html index 74f2d4645f..5d6837d814 100644 --- a/pr/3528/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html +++ b/pr/3528/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html @@ -1,4 +1,4 @@ -DhtDiscovery in iroh::discovery::pkarr::dht - Rust

DhtDiscovery

Struct DhtDiscovery 

Source
pub struct DhtDiscovery(/* private fields */);
Available on crate feature discovery-pkarr-dht only.
Expand description

Pkarr Mainline DHT and relay server node discovery.

+DhtDiscovery in iroh::discovery::pkarr::dht - Rust

DhtDiscovery

Struct DhtDiscovery 

Source
pub struct DhtDiscovery(/* private fields */);
Available on crate feature discovery-pkarr-dht only.
Expand description

Pkarr Mainline DHT and relay server node discovery.

It stores node addresses in DNS records, signed by the node’s private key, and publishes them to the BitTorrent Mainline DHT. See the pkarr module for more details.

This implements the Discovery trait to be used as a node discovery service which can diff --git a/pr/3528/docs/iroh/discovery/pkarr/enum.PkarrError.html b/pr/3528/docs/iroh/discovery/pkarr/enum.PkarrError.html index ad09a6e9e5..bd5437412f 100644 --- a/pr/3528/docs/iroh/discovery/pkarr/enum.PkarrError.html +++ b/pr/3528/docs/iroh/discovery/pkarr/enum.PkarrError.html @@ -1,4 +1,4 @@ -PkarrError in iroh::discovery::pkarr - Rust

PkarrError

Enum PkarrError 

Source
#[non_exhaustive]
pub enum PkarrError { +PkarrError in iroh::discovery::pkarr - Rust

PkarrError

Enum PkarrError 

Source
#[non_exhaustive]
pub enum PkarrError { PublicKey { source: PublicKeyError, }, diff --git a/pr/3528/docs/iroh/discovery/pkarr/index.html b/pr/3528/docs/iroh/discovery/pkarr/index.html index 355073db84..785c75e916 100644 --- a/pr/3528/docs/iroh/discovery/pkarr/index.html +++ b/pr/3528/docs/iroh/discovery/pkarr/index.html @@ -1,4 +1,4 @@ -iroh::discovery::pkarr - Rust

Module pkarr

Module pkarr 

Source
Expand description

A discovery service which publishes and resolves node information using a pkarr relay.

+iroh::discovery::pkarr - Rust

Module pkarr

Module pkarr 

Source
Expand description

A discovery service which publishes and resolves node information using a pkarr relay.

Public-Key Addressable Resource Records, pkarr, is a system which allows publishing DNS Resource Records owned by a particular SecretKey under a name derived from its corresponding PublicKey, also known as the NodeId. Additionally this pkarr diff --git a/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrPublisher.html b/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrPublisher.html index 222f489aba..532a6e3fb4 100644 --- a/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrPublisher.html +++ b/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrPublisher.html @@ -1,4 +1,4 @@ -PkarrPublisher in iroh::discovery::pkarr - Rust

PkarrPublisher

Struct PkarrPublisher 

Source
pub struct PkarrPublisher { /* private fields */ }
Expand description

Publisher of node discovery information to a pkarr relay.

+PkarrPublisher in iroh::discovery::pkarr - Rust

PkarrPublisher

Struct PkarrPublisher 

Source
pub struct PkarrPublisher { /* private fields */ }
Expand description

Publisher of node discovery information to a pkarr relay.

This publisher uses HTTP to publish node discovery information to a pkarr relay server, see the module docs for details.

This implements the Discovery trait to be used as a node discovery service. Note diff --git a/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrPublisherBuilder.html b/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrPublisherBuilder.html index e705444fa3..2acf843c20 100644 --- a/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrPublisherBuilder.html +++ b/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrPublisherBuilder.html @@ -1,4 +1,4 @@ -PkarrPublisherBuilder in iroh::discovery::pkarr - Rust

PkarrPublisherBuilder

Struct PkarrPublisherBuilder 

Source
pub struct PkarrPublisherBuilder { /* private fields */ }
Expand description

Builder for PkarrPublisher.

+PkarrPublisherBuilder in iroh::discovery::pkarr - Rust

PkarrPublisherBuilder

Struct PkarrPublisherBuilder 

Source
pub struct PkarrPublisherBuilder { /* private fields */ }
Expand description

Implementations§

Source§

impl PkarrPublisherBuilder

Source

pub fn ttl(self, ttl: u32) -> Self

Sets the TTL (time-to-live) for published packets.

Default is DEFAULT_PKARR_TTL.

diff --git a/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html b/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html index 67cafc37cb..c97f499232 100644 --- a/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html +++ b/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html @@ -1,4 +1,4 @@ -PkarrRelayClient in iroh::discovery::pkarr - Rust

PkarrRelayClient

Struct PkarrRelayClient 

Source
pub struct PkarrRelayClient { /* private fields */ }
Expand description

A pkarr client to publish [pkarr::SignedPacket]s to a pkarr relay.

+PkarrRelayClient in iroh::discovery::pkarr - Rust

PkarrRelayClient

Struct PkarrRelayClient 

Source
pub struct PkarrRelayClient { /* private fields */ }
Expand description

A pkarr client to publish [pkarr::SignedPacket]s to a pkarr relay.

Implementations§

Source§

impl PkarrRelayClient

Source

pub fn new(pkarr_relay_url: Url) -> Self

Creates a new client.

Source

pub fn with_dns_resolver( pkarr_relay_url: Url, diff --git a/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrResolver.html b/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrResolver.html index c84c9782c9..9cfe44d022 100644 --- a/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrResolver.html +++ b/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrResolver.html @@ -1,4 +1,4 @@ -PkarrResolver in iroh::discovery::pkarr - Rust

PkarrResolver

Struct PkarrResolver 

Source
pub struct PkarrResolver { /* private fields */ }
Expand description

Resolver of node discovery information from a pkarr relay.

+PkarrResolver in iroh::discovery::pkarr - Rust

PkarrResolver

Struct PkarrResolver 

Source
pub struct PkarrResolver { /* private fields */ }
Expand description

Resolver of node discovery information from a pkarr relay.

The resolver uses HTTP to query node discovery information from a pkarr relay server, see the module docs for details.

This implements the Discovery trait to be used as a node discovery service. Note diff --git a/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html b/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html index ead53b49d6..bcce7ba475 100644 --- a/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html +++ b/pr/3528/docs/iroh/discovery/pkarr/struct.PkarrResolverBuilder.html @@ -1,4 +1,4 @@ -PkarrResolverBuilder in iroh::discovery::pkarr - Rust

PkarrResolverBuilder

Struct PkarrResolverBuilder 

Source
pub struct PkarrResolverBuilder { /* private fields */ }
Expand description

Builder for PkarrResolver.

+PkarrResolverBuilder in iroh::discovery::pkarr - Rust

PkarrResolverBuilder

Struct PkarrResolverBuilder 

Source
pub struct PkarrResolverBuilder { /* private fields */ }
Expand description

Implementations§

Source§

impl PkarrResolverBuilder

Source

pub fn dns_resolver(self, dns_resolver: DnsResolver) -> Self

Available on non-wasm_browser only.

Sets the DNS resolver to use for resolving the pkarr relay URL.

Source

pub fn build(self) -> PkarrResolver

Creates a PkarrResolver from this builder.

diff --git a/pr/3528/docs/iroh/discovery/static_provider/index.html b/pr/3528/docs/iroh/discovery/static_provider/index.html index ae31cdd23f..5ecaddc973 100644 --- a/pr/3528/docs/iroh/discovery/static_provider/index.html +++ b/pr/3528/docs/iroh/discovery/static_provider/index.html @@ -1,4 +1,4 @@ -iroh::discovery::static_provider - Rust

Module static_provider

Module static_provider 

Source
Expand description

A static node discovery to manually add node addressing information.

+iroh::discovery::static_provider - Rust

Module static_provider

Module static_provider 

Source
Expand description

A static node discovery to manually add node addressing information.

Often an application might get node addressing information out-of-band in an application-specific way. NodeTicket’s are one common way used to achieve this. This “static” addressing information is often only usable for a limited time so needs to diff --git a/pr/3528/docs/iroh/discovery/static_provider/struct.StaticProvider.html b/pr/3528/docs/iroh/discovery/static_provider/struct.StaticProvider.html index 03b77aab21..52a802fc84 100644 --- a/pr/3528/docs/iroh/discovery/static_provider/struct.StaticProvider.html +++ b/pr/3528/docs/iroh/discovery/static_provider/struct.StaticProvider.html @@ -1,4 +1,4 @@ -StaticProvider in iroh::discovery::static_provider - Rust

StaticProvider

Struct StaticProvider 

Source
pub struct StaticProvider { /* private fields */ }
Expand description

A static node discovery to manually add node addressing information.

+StaticProvider in iroh::discovery::static_provider - Rust

StaticProvider

Struct StaticProvider 

Source
pub struct StaticProvider { /* private fields */ }
Expand description

A static node discovery to manually add node addressing information.

Often an application might get node addressing information out-of-band in an application-specific way. NodeTicket’s are one common way used to achieve this. This “static” addressing information is often only usable for a limited time so needs to diff --git a/pr/3528/docs/iroh/discovery/struct.ConcurrentDiscovery.html b/pr/3528/docs/iroh/discovery/struct.ConcurrentDiscovery.html index e818a1c752..c0a8cc4627 100644 --- a/pr/3528/docs/iroh/discovery/struct.ConcurrentDiscovery.html +++ b/pr/3528/docs/iroh/discovery/struct.ConcurrentDiscovery.html @@ -1,4 +1,4 @@ -ConcurrentDiscovery in iroh::discovery - Rust

ConcurrentDiscovery

Struct ConcurrentDiscovery 

Source
pub struct ConcurrentDiscovery { /* private fields */ }
Expand description

A discovery service that combines multiple discovery sources.

+ConcurrentDiscovery in iroh::discovery - Rust

ConcurrentDiscovery

Struct ConcurrentDiscovery 

Source
pub struct ConcurrentDiscovery { /* private fields */ }
Expand description

A discovery service that combines multiple discovery sources.

The discovery services will resolve concurrently.

Implementations§

Source§

impl ConcurrentDiscovery

Source

pub fn empty() -> Self

Creates an empty ConcurrentDiscovery.

Source

pub fn from_services(services: Vec<Box<dyn Discovery>>) -> Self

Creates a new ConcurrentDiscovery.

diff --git a/pr/3528/docs/iroh/discovery/struct.DiscoveryContext.html b/pr/3528/docs/iroh/discovery/struct.DiscoveryContext.html index 004e97e794..255af2903c 100644 --- a/pr/3528/docs/iroh/discovery/struct.DiscoveryContext.html +++ b/pr/3528/docs/iroh/discovery/struct.DiscoveryContext.html @@ -1,4 +1,4 @@ -DiscoveryContext in iroh::discovery - Rust

DiscoveryContext

Struct DiscoveryContext 

Source
pub struct DiscoveryContext<'a> { /* private fields */ }
Expand description

Context about the Endpoint for discovery services.

+DiscoveryContext in iroh::discovery - Rust

DiscoveryContext

Struct DiscoveryContext 

Source
pub struct DiscoveryContext<'a> { /* private fields */ }
Expand description

Context about the Endpoint for discovery services.

Implementations§

Source§

impl DiscoveryContext<'_>

Source

pub fn node_id(&self) -> NodeId

Returns the NodeId of the endpoint.

Source

pub fn secret_key(&self) -> &SecretKey

Returns the SecretKey of the endpoint.

Source

pub fn dns_resolver(&self) -> &DnsResolver

Available on non-wasm_browser only.

Returns the DnsResolver used by the endpoint.

diff --git a/pr/3528/docs/iroh/discovery/struct.DiscoveryItem.html b/pr/3528/docs/iroh/discovery/struct.DiscoveryItem.html index e733f42fc7..7a1cfaaa72 100644 --- a/pr/3528/docs/iroh/discovery/struct.DiscoveryItem.html +++ b/pr/3528/docs/iroh/discovery/struct.DiscoveryItem.html @@ -1,4 +1,4 @@ -DiscoveryItem in iroh::discovery - Rust

DiscoveryItem

Struct DiscoveryItem 

Source
pub struct DiscoveryItem { /* private fields */ }
Expand description

Node discovery results from Discovery services.

+DiscoveryItem in iroh::discovery - Rust

DiscoveryItem

Struct DiscoveryItem 

Source
pub struct DiscoveryItem { /* private fields */ }
Expand description

Node discovery results from Discovery services.

This is the item in the streams returned from Discovery::resolve. It contains the NodeData about the discovered node, and some additional metadata about the discovery.

diff --git a/pr/3528/docs/iroh/discovery/struct.NodeData.html b/pr/3528/docs/iroh/discovery/struct.NodeData.html index 69399b905e..605c75a52e 100644 --- a/pr/3528/docs/iroh/discovery/struct.NodeData.html +++ b/pr/3528/docs/iroh/discovery/struct.NodeData.html @@ -1,4 +1,4 @@ -NodeData in iroh::discovery - Rust

NodeData

Struct NodeData 

Source
pub struct NodeData { /* private fields */ }
Expand description

Data about a node that may be published to and resolved from discovery services.

+NodeData in iroh::discovery - Rust

NodeData

Struct NodeData 

Source
pub struct NodeData { /* private fields */ }
Expand description

Data about a node that may be published to and resolved from discovery services.

This includes an optional RelayUrl, a set of direct addresses, and the optional UserData, a string that can be set by applications and is not parsed or used by iroh itself.

diff --git a/pr/3528/docs/iroh/discovery/struct.NodeInfo.html b/pr/3528/docs/iroh/discovery/struct.NodeInfo.html index 1bb7d15904..a43e444c4c 100644 --- a/pr/3528/docs/iroh/discovery/struct.NodeInfo.html +++ b/pr/3528/docs/iroh/discovery/struct.NodeInfo.html @@ -1,4 +1,4 @@ -NodeInfo in iroh::discovery - Rust

NodeInfo

Struct NodeInfo 

Source
pub struct NodeInfo {
+NodeInfo in iroh::discovery - Rust

NodeInfo

Struct NodeInfo 

Source
pub struct NodeInfo {
     pub node_id: PublicKey,
     pub data: NodeData,
 }
Expand description

Information about a node that may be published to and resolved from discovery services.

diff --git a/pr/3528/docs/iroh/discovery/struct.UserData.html b/pr/3528/docs/iroh/discovery/struct.UserData.html index cc7881d3d2..8b043603b9 100644 --- a/pr/3528/docs/iroh/discovery/struct.UserData.html +++ b/pr/3528/docs/iroh/discovery/struct.UserData.html @@ -1,4 +1,4 @@ -UserData in iroh::discovery - Rust

UserData

Struct UserData 

Source
pub struct UserData(/* private fields */);
Expand description

Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

+UserData in iroh::discovery - Rust

UserData

Struct UserData 

Source
pub struct UserData(/* private fields */);
Expand description

Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

Iroh does not keep track of or examine the user-defined data.

UserData implements FromStr and TryFrom<String>, so you can convert &str and String into UserData easily.

diff --git a/pr/3528/docs/iroh/discovery/trait.Discovery.html b/pr/3528/docs/iroh/discovery/trait.Discovery.html index ec322b3853..75d4025830 100644 --- a/pr/3528/docs/iroh/discovery/trait.Discovery.html +++ b/pr/3528/docs/iroh/discovery/trait.Discovery.html @@ -1,4 +1,4 @@ -Discovery in iroh::discovery - Rust

Discovery

Trait Discovery 

Source
pub trait Discovery:
+Discovery in iroh::discovery - Rust

Discovery

Trait Discovery 

Source
pub trait Discovery:
     Debug
     + Send
     + Sync
diff --git a/pr/3528/docs/iroh/discovery/trait.IntoDiscovery.html b/pr/3528/docs/iroh/discovery/trait.IntoDiscovery.html
index c05b07bec2..2e7dd93a3e 100644
--- a/pr/3528/docs/iroh/discovery/trait.IntoDiscovery.html
+++ b/pr/3528/docs/iroh/discovery/trait.IntoDiscovery.html
@@ -1,4 +1,4 @@
-IntoDiscovery in iroh::discovery - Rust

IntoDiscovery

Trait IntoDiscovery 

Source
pub trait IntoDiscovery:
+IntoDiscovery in iroh::discovery - Rust

IntoDiscovery

Trait IntoDiscovery 

Source
pub trait IntoDiscovery:
     Send
     + Sync
     + Debug
diff --git a/pr/3528/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html b/pr/3528/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
index 6343ce669c..06d73c4b30 100644
--- a/pr/3528/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
+++ b/pr/3528/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html
@@ -1,2 +1,2 @@
-N0_DNS_NODE_ORIGIN_PROD in iroh::dns - Rust

N0_DNS_NODE_ORIGIN_PROD

Constant N0_DNS_NODE_ORIGIN_PROD 

Source
pub const N0_DNS_NODE_ORIGIN_PROD: &'static str;
Available on non-wasm_browser only.
Expand description

The n0 testing DNS node origin, for production.

+N0_DNS_NODE_ORIGIN_PROD in iroh::dns - Rust

N0_DNS_NODE_ORIGIN_PROD

Constant N0_DNS_NODE_ORIGIN_PROD 

Source
pub const N0_DNS_NODE_ORIGIN_PROD: &'static str;
Available on non-wasm_browser only.
Expand description

The n0 testing DNS node origin, for production.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html b/pr/3528/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html index 1f09537f11..4d32fe6990 100644 --- a/pr/3528/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html +++ b/pr/3528/docs/iroh/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html @@ -1,2 +1,2 @@ -N0_DNS_NODE_ORIGIN_STAGING in iroh::dns - Rust

N0_DNS_NODE_ORIGIN_STAGING

Constant N0_DNS_NODE_ORIGIN_STAGING 

Source
pub const N0_DNS_NODE_ORIGIN_STAGING: &'static str;
Available on non-wasm_browser only.
Expand description

The n0 testing DNS node origin, for testing.

+N0_DNS_NODE_ORIGIN_STAGING in iroh::dns - Rust

N0_DNS_NODE_ORIGIN_STAGING

Constant N0_DNS_NODE_ORIGIN_STAGING 

Source
pub const N0_DNS_NODE_ORIGIN_STAGING: &'static str;
Available on non-wasm_browser only.
Expand description

The n0 testing DNS node origin, for testing.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/dns/index.html b/pr/3528/docs/iroh/dns/index.html index 757882a78f..e06cd360e6 100644 --- a/pr/3528/docs/iroh/dns/index.html +++ b/pr/3528/docs/iroh/dns/index.html @@ -1,4 +1,4 @@ -iroh::dns - Rust

Module dns

Module dns 

Source
Available on non-wasm_browser only.
Expand description

This module exports a DNS resolver, which is also the default resolver used in the +iroh::dns - Rust

Module dns

Module dns 

Source
Available on non-wasm_browser only.
Expand description

This module exports a DNS resolver, which is also the default resolver used in the crate::Endpoint if no custom resolver is configured.

The resolver provides methods to resolve domain names to ipv4 and ipv6 addresses, and to resolve node ids to node addresses.

diff --git a/pr/3528/docs/iroh/dns/struct.DnsResolver.html b/pr/3528/docs/iroh/dns/struct.DnsResolver.html index ef0ad46aea..2fc1b3c0bb 100644 --- a/pr/3528/docs/iroh/dns/struct.DnsResolver.html +++ b/pr/3528/docs/iroh/dns/struct.DnsResolver.html @@ -1,4 +1,4 @@ -DnsResolver in iroh::dns - Rust

DnsResolver

Struct DnsResolver 

Source
pub struct DnsResolver(/* private fields */);
Available on non-wasm_browser only.
Expand description

The DNS resolver used throughout iroh.

+DnsResolver in iroh::dns - Rust

DnsResolver

Struct DnsResolver 

Source
pub struct DnsResolver(/* private fields */);
Available on non-wasm_browser only.
Expand description

The DNS resolver used throughout iroh.

Implementations§

Source§

impl DnsResolver

Source

pub fn new() -> DnsResolver

Creates a new DNS resolver with sensible cross-platform defaults.

We first try to read the system’s resolver from /etc/resolv.conf. This does not work at least on some Androids, therefore we fallback diff --git a/pr/3528/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html b/pr/3528/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html index 898efb46f9..cd35bbd1e6 100644 --- a/pr/3528/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html +++ b/pr/3528/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html @@ -1,2 +1,2 @@ -ENV_FORCE_STAGING_RELAYS in iroh::endpoint - Rust

ENV_FORCE_STAGING_RELAYS

Constant ENV_FORCE_STAGING_RELAYS 

Source
pub const ENV_FORCE_STAGING_RELAYS: &str = "IROH_FORCE_STAGING_RELAYS";
Expand description

Environment variable to force the use of staging relays.

+ENV_FORCE_STAGING_RELAYS in iroh::endpoint - Rust

ENV_FORCE_STAGING_RELAYS

Constant ENV_FORCE_STAGING_RELAYS 

Source
pub const ENV_FORCE_STAGING_RELAYS: &str = "IROH_FORCE_STAGING_RELAYS";
Expand description

Environment variable to force the use of staging relays.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/endpoint/enum.AddNodeAddrError.html b/pr/3528/docs/iroh/endpoint/enum.AddNodeAddrError.html index c033a1f4d5..39e3bee56d 100644 --- a/pr/3528/docs/iroh/endpoint/enum.AddNodeAddrError.html +++ b/pr/3528/docs/iroh/endpoint/enum.AddNodeAddrError.html @@ -1,4 +1,4 @@ -AddNodeAddrError in iroh::endpoint - Rust

AddNodeAddrError

Enum AddNodeAddrError 

Source
#[non_exhaustive]
pub enum AddNodeAddrError { +AddNodeAddrError in iroh::endpoint - Rust

AddNodeAddrError

Enum AddNodeAddrError 

Source
#[non_exhaustive]
pub enum AddNodeAddrError { Empty { backtrace: Option<Backtrace>, span_trace: SpanTrace, diff --git a/pr/3528/docs/iroh/endpoint/enum.AlpnError.html b/pr/3528/docs/iroh/endpoint/enum.AlpnError.html index 931d4b77a3..d6134fe14a 100644 --- a/pr/3528/docs/iroh/endpoint/enum.AlpnError.html +++ b/pr/3528/docs/iroh/endpoint/enum.AlpnError.html @@ -1,4 +1,4 @@ -AlpnError in iroh::endpoint - Rust

AlpnError

Enum AlpnError 

Source
#[non_exhaustive]
pub enum AlpnError { +AlpnError in iroh::endpoint - Rust

AlpnError

Enum AlpnError 

Source
#[non_exhaustive]
pub enum AlpnError { ConnectionError { source: ConnectionError, backtrace: Option<Backtrace>, diff --git a/pr/3528/docs/iroh/endpoint/enum.BindError.html b/pr/3528/docs/iroh/endpoint/enum.BindError.html index 2aaf3fd504..4fa19d72ff 100644 --- a/pr/3528/docs/iroh/endpoint/enum.BindError.html +++ b/pr/3528/docs/iroh/endpoint/enum.BindError.html @@ -1,4 +1,4 @@ -BindError in iroh::endpoint - Rust

BindError

Enum BindError 

Source
#[non_exhaustive]
pub enum BindError { +BindError in iroh::endpoint - Rust

BindError

Enum BindError 

Source
#[non_exhaustive]
pub enum BindError { MagicSpawn { source: CreateHandleError, backtrace: Option<Backtrace>, diff --git a/pr/3528/docs/iroh/endpoint/enum.ConnectError.html b/pr/3528/docs/iroh/endpoint/enum.ConnectError.html index 9389c90fee..3d5dfcf130 100644 --- a/pr/3528/docs/iroh/endpoint/enum.ConnectError.html +++ b/pr/3528/docs/iroh/endpoint/enum.ConnectError.html @@ -1,4 +1,4 @@ -ConnectError in iroh::endpoint - Rust

ConnectError

Enum ConnectError 

Source
#[non_exhaustive]
pub enum ConnectError { +ConnectError in iroh::endpoint - Rust

ConnectError

Enum ConnectError 

Source
#[non_exhaustive]
pub enum ConnectError { Connect { source: Box<ConnectWithOptsError>, backtrace: Option<Backtrace>, diff --git a/pr/3528/docs/iroh/endpoint/enum.ConnectWithOptsError.html b/pr/3528/docs/iroh/endpoint/enum.ConnectWithOptsError.html index fd0afb3a21..08eb07ff2d 100644 --- a/pr/3528/docs/iroh/endpoint/enum.ConnectWithOptsError.html +++ b/pr/3528/docs/iroh/endpoint/enum.ConnectWithOptsError.html @@ -1,4 +1,4 @@ -ConnectWithOptsError in iroh::endpoint - Rust

ConnectWithOptsError

Enum ConnectWithOptsError 

Source
#[non_exhaustive]
pub enum ConnectWithOptsError { +ConnectWithOptsError in iroh::endpoint - Rust

ConnectWithOptsError

Enum ConnectWithOptsError 

Source
#[non_exhaustive]
pub enum ConnectWithOptsError { AddNodeAddr { source: AddNodeAddrError, backtrace: Option<Backtrace>, diff --git a/pr/3528/docs/iroh/endpoint/enum.ConnectionError.html b/pr/3528/docs/iroh/endpoint/enum.ConnectionError.html index f55a77d29f..5dd4984257 100644 --- a/pr/3528/docs/iroh/endpoint/enum.ConnectionError.html +++ b/pr/3528/docs/iroh/endpoint/enum.ConnectionError.html @@ -1,4 +1,4 @@ -ConnectionError in iroh::endpoint - Rust

ConnectionError

Enum ConnectionError 

pub enum ConnectionError {
+ConnectionError in iroh::endpoint - Rust

ConnectionError

Enum ConnectionError 

pub enum ConnectionError {
     VersionMismatch,
     TransportError(Error),
     ConnectionClosed(ConnectionClose),
diff --git a/pr/3528/docs/iroh/endpoint/enum.ConnectionType.html b/pr/3528/docs/iroh/endpoint/enum.ConnectionType.html
index b4bf3d5e02..70f1e33ea1 100644
--- a/pr/3528/docs/iroh/endpoint/enum.ConnectionType.html
+++ b/pr/3528/docs/iroh/endpoint/enum.ConnectionType.html
@@ -1,4 +1,4 @@
-ConnectionType in iroh::endpoint - Rust

ConnectionType

Enum ConnectionType 

Source
pub enum ConnectionType {
+ConnectionType in iroh::endpoint - Rust

ConnectionType

Enum ConnectionType 

Source
pub enum ConnectionType {
     Direct(SocketAddr),
     Relay(RelayUrl),
     Mixed(SocketAddr, RelayUrl),
diff --git a/pr/3528/docs/iroh/endpoint/enum.ControlMsg.html b/pr/3528/docs/iroh/endpoint/enum.ControlMsg.html
index e91444343c..8970d22548 100644
--- a/pr/3528/docs/iroh/endpoint/enum.ControlMsg.html
+++ b/pr/3528/docs/iroh/endpoint/enum.ControlMsg.html
@@ -1,4 +1,4 @@
-ControlMsg in iroh::endpoint - Rust

ControlMsg

Enum ControlMsg 

Source
pub enum ControlMsg {
+ControlMsg in iroh::endpoint - Rust

ControlMsg

Enum ControlMsg 

Source
pub enum ControlMsg {
     Ping,
     Pong,
     CallMeMaybe,
diff --git a/pr/3528/docs/iroh/endpoint/enum.DirectAddrType.html b/pr/3528/docs/iroh/endpoint/enum.DirectAddrType.html
index 0111473504..7f7b840ab2 100644
--- a/pr/3528/docs/iroh/endpoint/enum.DirectAddrType.html
+++ b/pr/3528/docs/iroh/endpoint/enum.DirectAddrType.html
@@ -1,4 +1,4 @@
-DirectAddrType in iroh::endpoint - Rust

DirectAddrType

Enum DirectAddrType 

Source
pub enum DirectAddrType {
+DirectAddrType in iroh::endpoint - Rust

DirectAddrType

Enum DirectAddrType 

Source
pub enum DirectAddrType {
     Unknown,
     Local,
     Qad,
diff --git a/pr/3528/docs/iroh/endpoint/enum.GetMappingAddressError.html b/pr/3528/docs/iroh/endpoint/enum.GetMappingAddressError.html
index f4330c6c5f..8380d8d491 100644
--- a/pr/3528/docs/iroh/endpoint/enum.GetMappingAddressError.html
+++ b/pr/3528/docs/iroh/endpoint/enum.GetMappingAddressError.html
@@ -1,4 +1,4 @@
-GetMappingAddressError in iroh::endpoint - Rust

GetMappingAddressError

Enum GetMappingAddressError 

Source
#[non_exhaustive]
pub enum GetMappingAddressError { +GetMappingAddressError in iroh::endpoint - Rust

GetMappingAddressError

Enum GetMappingAddressError 

Source
#[non_exhaustive]
pub enum GetMappingAddressError { DiscoveryStart { source: DiscoveryError, backtrace: Option<Backtrace>, diff --git a/pr/3528/docs/iroh/endpoint/enum.PathSelection.html b/pr/3528/docs/iroh/endpoint/enum.PathSelection.html index bf980bf89f..3cf04bc47c 100644 --- a/pr/3528/docs/iroh/endpoint/enum.PathSelection.html +++ b/pr/3528/docs/iroh/endpoint/enum.PathSelection.html @@ -1,4 +1,4 @@ -PathSelection in iroh::endpoint - Rust

PathSelection

Enum PathSelection 

Source
pub enum PathSelection {
+PathSelection in iroh::endpoint - Rust

PathSelection

Enum PathSelection 

Source
pub enum PathSelection {
     All,
     RelayOnly,
 }
Available on crate features test-utils only.
Expand description

Defines the mode of path selection for all traffic flowing through diff --git a/pr/3528/docs/iroh/endpoint/enum.ReadError.html b/pr/3528/docs/iroh/endpoint/enum.ReadError.html index 8df1eb2c8f..a88228ce8c 100644 --- a/pr/3528/docs/iroh/endpoint/enum.ReadError.html +++ b/pr/3528/docs/iroh/endpoint/enum.ReadError.html @@ -1,4 +1,4 @@ -ReadError in iroh::endpoint - Rust

ReadError

Enum ReadError 

pub enum ReadError {
+ReadError in iroh::endpoint - Rust

ReadError

Enum ReadError 

pub enum ReadError {
     Reset(VarInt),
     ConnectionLost(ConnectionError),
     ClosedStream,
diff --git a/pr/3528/docs/iroh/endpoint/enum.ReadExactError.html b/pr/3528/docs/iroh/endpoint/enum.ReadExactError.html
index c38742fb50..69b9e953c2 100644
--- a/pr/3528/docs/iroh/endpoint/enum.ReadExactError.html
+++ b/pr/3528/docs/iroh/endpoint/enum.ReadExactError.html
@@ -1,4 +1,4 @@
-ReadExactError in iroh::endpoint - Rust

ReadExactError

Enum ReadExactError 

pub enum ReadExactError {
+ReadExactError in iroh::endpoint - Rust

ReadExactError

Enum ReadExactError 

pub enum ReadExactError {
     FinishedEarly(usize),
     ReadError(ReadError),
 }
Expand description

Errors that arise from reading from a stream.

diff --git a/pr/3528/docs/iroh/endpoint/enum.ReadToEndError.html b/pr/3528/docs/iroh/endpoint/enum.ReadToEndError.html index 046a5d5320..bb3720b34c 100644 --- a/pr/3528/docs/iroh/endpoint/enum.ReadToEndError.html +++ b/pr/3528/docs/iroh/endpoint/enum.ReadToEndError.html @@ -1,4 +1,4 @@ -ReadToEndError in iroh::endpoint - Rust

ReadToEndError

Enum ReadToEndError 

pub enum ReadToEndError {
+ReadToEndError in iroh::endpoint - Rust

ReadToEndError

Enum ReadToEndError 

pub enum ReadToEndError {
     Read(ReadError),
     TooLong,
 }
Expand description

Errors from RecvStream::read_to_end

diff --git a/pr/3528/docs/iroh/endpoint/enum.RelayMode.html b/pr/3528/docs/iroh/endpoint/enum.RelayMode.html index 70faa827ec..95e77f9a8d 100644 --- a/pr/3528/docs/iroh/endpoint/enum.RelayMode.html +++ b/pr/3528/docs/iroh/endpoint/enum.RelayMode.html @@ -1,4 +1,4 @@ -RelayMode in iroh::endpoint - Rust

RelayMode

Enum RelayMode 

Source
pub enum RelayMode {
+RelayMode in iroh::endpoint - Rust

RelayMode

Enum RelayMode 

Source
pub enum RelayMode {
     Disabled,
     Default,
     Staging,
diff --git a/pr/3528/docs/iroh/endpoint/enum.ResetError.html b/pr/3528/docs/iroh/endpoint/enum.ResetError.html
index 29b0d72e71..5d3aeb8c5f 100644
--- a/pr/3528/docs/iroh/endpoint/enum.ResetError.html
+++ b/pr/3528/docs/iroh/endpoint/enum.ResetError.html
@@ -1,4 +1,4 @@
-ResetError in iroh::endpoint - Rust

ResetError

Enum ResetError 

pub enum ResetError {
+ResetError in iroh::endpoint - Rust

ResetError

Enum ResetError 

pub enum ResetError {
     ConnectionLost(ConnectionError),
     ZeroRttRejected,
 }
Expand description

Errors that arise while waiting for a stream to be reset

diff --git a/pr/3528/docs/iroh/endpoint/enum.SendDatagramError.html b/pr/3528/docs/iroh/endpoint/enum.SendDatagramError.html index 7247302a54..2f579ab2dc 100644 --- a/pr/3528/docs/iroh/endpoint/enum.SendDatagramError.html +++ b/pr/3528/docs/iroh/endpoint/enum.SendDatagramError.html @@ -1,4 +1,4 @@ -SendDatagramError in iroh::endpoint - Rust

SendDatagramError

Enum SendDatagramError 

pub enum SendDatagramError {
+SendDatagramError in iroh::endpoint - Rust

SendDatagramError

Enum SendDatagramError 

pub enum SendDatagramError {
     UnsupportedByPeer,
     Disabled,
     TooLarge,
diff --git a/pr/3528/docs/iroh/endpoint/enum.Source.html b/pr/3528/docs/iroh/endpoint/enum.Source.html
index 5673f52ea0..a4c0b5ac2e 100644
--- a/pr/3528/docs/iroh/endpoint/enum.Source.html
+++ b/pr/3528/docs/iroh/endpoint/enum.Source.html
@@ -1,4 +1,4 @@
-Source in iroh::endpoint - Rust

Source

Enum Source 

Source
pub enum Source {
+Source in iroh::endpoint - Rust

Source

Enum Source 

Source
pub enum Source {
     Saved,
     Udp,
     Relay,
diff --git a/pr/3528/docs/iroh/endpoint/enum.StoppedError.html b/pr/3528/docs/iroh/endpoint/enum.StoppedError.html
index 1322f88111..54318219b9 100644
--- a/pr/3528/docs/iroh/endpoint/enum.StoppedError.html
+++ b/pr/3528/docs/iroh/endpoint/enum.StoppedError.html
@@ -1,4 +1,4 @@
-StoppedError in iroh::endpoint - Rust

StoppedError

Enum StoppedError 

pub enum StoppedError {
+StoppedError in iroh::endpoint - Rust

StoppedError

Enum StoppedError 

pub enum StoppedError {
     ConnectionLost(ConnectionError),
     ZeroRttRejected,
 }
Expand description

Errors that arise while monitoring for a send stream stop from the peer

diff --git a/pr/3528/docs/iroh/endpoint/enum.WriteError.html b/pr/3528/docs/iroh/endpoint/enum.WriteError.html index 71d8f9f7c0..1b603f4e75 100644 --- a/pr/3528/docs/iroh/endpoint/enum.WriteError.html +++ b/pr/3528/docs/iroh/endpoint/enum.WriteError.html @@ -1,4 +1,4 @@ -WriteError in iroh::endpoint - Rust

WriteError

Enum WriteError 

pub enum WriteError {
+WriteError in iroh::endpoint - Rust

WriteError

Enum WriteError 

pub enum WriteError {
     Stopped(VarInt),
     ConnectionLost(ConnectionError),
     ClosedStream,
diff --git a/pr/3528/docs/iroh/endpoint/fn.default_relay_mode.html b/pr/3528/docs/iroh/endpoint/fn.default_relay_mode.html
index 402acec79c..c63df2166b 100644
--- a/pr/3528/docs/iroh/endpoint/fn.default_relay_mode.html
+++ b/pr/3528/docs/iroh/endpoint/fn.default_relay_mode.html
@@ -1,4 +1,4 @@
-default_relay_mode in iroh::endpoint - Rust

default_relay_mode

Function default_relay_mode 

Source
pub fn default_relay_mode() -> RelayMode
Expand description

Returns the default relay mode.

+default_relay_mode in iroh::endpoint - Rust

default_relay_mode

Function default_relay_mode 

Source
pub fn default_relay_mode() -> RelayMode
Expand description

Returns the default relay mode.

If the IROH_FORCE_STAGING_RELAYS environment variable is non empty, it will return RelayMode::Staging. Otherwise, it will return RelayMode::Default.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/endpoint/fn.force_staging_infra.html b/pr/3528/docs/iroh/endpoint/fn.force_staging_infra.html index 8540a26f15..94a547d59e 100644 --- a/pr/3528/docs/iroh/endpoint/fn.force_staging_infra.html +++ b/pr/3528/docs/iroh/endpoint/fn.force_staging_infra.html @@ -1,2 +1,2 @@ -force_staging_infra in iroh::endpoint - Rust

force_staging_infra

Function force_staging_infra 

Source
pub fn force_staging_infra() -> bool
Expand description

Returns true if the use of staging relays is forced.

+force_staging_infra in iroh::endpoint - Rust

force_staging_infra

Function force_staging_infra 

Source
pub fn force_staging_infra() -> bool
Expand description

Returns true if the use of staging relays is forced.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/endpoint/index.html b/pr/3528/docs/iroh/endpoint/index.html index 4e4f0d5573..63943fa10b 100644 --- a/pr/3528/docs/iroh/endpoint/index.html +++ b/pr/3528/docs/iroh/endpoint/index.html @@ -1,4 +1,4 @@ -iroh::endpoint - Rust

Module endpoint

Module endpoint 

Source
Expand description

The Endpoint allows establishing connections to other iroh nodes.

+iroh::endpoint - Rust

Module endpoint

Module endpoint 

Source
Expand description

The Endpoint allows establishing connections to other iroh nodes.

The Endpoint is the main API interface to manage a local iroh node. It allows connecting to and accepting connections from other nodes. See the module docs for more details on how iroh connections work.

diff --git a/pr/3528/docs/iroh/endpoint/struct.Accept.html b/pr/3528/docs/iroh/endpoint/struct.Accept.html index 23e7c08be4..97c865ac21 100644 --- a/pr/3528/docs/iroh/endpoint/struct.Accept.html +++ b/pr/3528/docs/iroh/endpoint/struct.Accept.html @@ -1,4 +1,4 @@ -Accept in iroh::endpoint - Rust

Accept

Struct Accept 

Source
pub struct Accept<'a> { /* private fields */ }
Expand description

Future produced by Endpoint::accept.

+Accept in iroh::endpoint - Rust

Accept

Struct Accept 

Source
pub struct Accept<'a> { /* private fields */ }
Expand description

Future produced by Endpoint::accept.

Trait Implementations§

Source§

impl<'a> Debug for Accept<'a>

Source§

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

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

impl Future for Accept<'_>

Source§

type Output = Option<Incoming>

The type of value produced on completion.
Source§

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Attempts to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
Source§

impl<'pin, 'a> Unpin for Accept<'a>
where PinnedFieldsOf<__Accept<'pin, 'a>>: Unpin,

Auto Trait Implementations§

§

impl<'a> !Freeze for Accept<'a>

§

impl<'a> !RefUnwindSafe for Accept<'a>

§

impl<'a> Send for Accept<'a>

§

impl<'a> Sync for Accept<'a>

§

impl<'a> !UnwindSafe for Accept<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where diff --git a/pr/3528/docs/iroh/endpoint/struct.AcceptBi.html b/pr/3528/docs/iroh/endpoint/struct.AcceptBi.html index 7c45ef5b7d..0945a51926 100644 --- a/pr/3528/docs/iroh/endpoint/struct.AcceptBi.html +++ b/pr/3528/docs/iroh/endpoint/struct.AcceptBi.html @@ -1,4 +1,4 @@ -AcceptBi in iroh::endpoint - Rust

AcceptBi

Struct AcceptBi 

pub struct AcceptBi<'a> { /* private fields */ }
Expand description

Future produced by [Connection::accept_bi]

+AcceptBi in iroh::endpoint - Rust

AcceptBi

Struct AcceptBi 

pub struct AcceptBi<'a> { /* private fields */ }
Expand description

Future produced by [Connection::accept_bi]

Trait Implementations§

§

impl Future for AcceptBi<'_>

§

type Output = Result<(SendStream, RecvStream), ConnectionError>

The type of value produced on completion.
§

fn poll( self: Pin<&mut AcceptBi<'_>>, ctx: &mut Context<'_>, diff --git a/pr/3528/docs/iroh/endpoint/struct.AcceptUni.html b/pr/3528/docs/iroh/endpoint/struct.AcceptUni.html index 6e340e9ea5..3272b374fa 100644 --- a/pr/3528/docs/iroh/endpoint/struct.AcceptUni.html +++ b/pr/3528/docs/iroh/endpoint/struct.AcceptUni.html @@ -1,4 +1,4 @@ -AcceptUni in iroh::endpoint - Rust

AcceptUni

Struct AcceptUni 

pub struct AcceptUni<'a> { /* private fields */ }
Expand description

Future produced by [Connection::accept_uni]

+AcceptUni in iroh::endpoint - Rust

AcceptUni

Struct AcceptUni 

pub struct AcceptUni<'a> { /* private fields */ }
Expand description

Future produced by [Connection::accept_uni]

Trait Implementations§

§

impl Future for AcceptUni<'_>

§

type Output = Result<RecvStream, ConnectionError>

The type of value produced on completion.
§

fn poll( self: Pin<&mut AcceptUni<'_>>, ctx: &mut Context<'_>, diff --git a/pr/3528/docs/iroh/endpoint/struct.AckFrequencyConfig.html b/pr/3528/docs/iroh/endpoint/struct.AckFrequencyConfig.html index 926890e9f3..f7e2412647 100644 --- a/pr/3528/docs/iroh/endpoint/struct.AckFrequencyConfig.html +++ b/pr/3528/docs/iroh/endpoint/struct.AckFrequencyConfig.html @@ -1,4 +1,4 @@ -AckFrequencyConfig in iroh::endpoint - Rust

AckFrequencyConfig

Struct AckFrequencyConfig 

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

Parameters for controlling the peer’s acknowledgement frequency

+AckFrequencyConfig in iroh::endpoint - Rust

AckFrequencyConfig

Struct AckFrequencyConfig 

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

Parameters for controlling the peer’s acknowledgement frequency

The parameters provided in this config will be sent to the peer at the beginning of the connection, so it can take them into account when sending acknowledgements (see each parameter’s description for details on how it influences acknowledgement frequency).

diff --git a/pr/3528/docs/iroh/endpoint/struct.ApplicationClose.html b/pr/3528/docs/iroh/endpoint/struct.ApplicationClose.html index 62212e17fd..3b48d63c59 100644 --- a/pr/3528/docs/iroh/endpoint/struct.ApplicationClose.html +++ b/pr/3528/docs/iroh/endpoint/struct.ApplicationClose.html @@ -1,4 +1,4 @@ -ApplicationClose in iroh::endpoint - Rust

ApplicationClose

Struct ApplicationClose 

pub struct ApplicationClose {
+ApplicationClose in iroh::endpoint - Rust

ApplicationClose

Struct ApplicationClose 

pub struct ApplicationClose {
     pub error_code: VarInt,
     pub reason: Bytes,
 }
Expand description

Reason given by an application for closing the connection

diff --git a/pr/3528/docs/iroh/endpoint/struct.Builder.html b/pr/3528/docs/iroh/endpoint/struct.Builder.html index b237e865d3..cb68f9df64 100644 --- a/pr/3528/docs/iroh/endpoint/struct.Builder.html +++ b/pr/3528/docs/iroh/endpoint/struct.Builder.html @@ -1,4 +1,4 @@ -Builder in iroh::endpoint - Rust

Builder

Struct Builder 

Source
pub struct Builder { /* private fields */ }
Expand description

Builder for Endpoint.

+Builder in iroh::endpoint - Rust

Builder

Struct Builder 

Source
pub struct Builder { /* private fields */ }
Expand description

Builder for Endpoint.

By default the endpoint will generate a new random SecretKey, which will result in a new NodeId.

To create the Endpoint call Builder::bind.

diff --git a/pr/3528/docs/iroh/endpoint/struct.Chunk.html b/pr/3528/docs/iroh/endpoint/struct.Chunk.html index 53674c36ba..cb46fc8698 100644 --- a/pr/3528/docs/iroh/endpoint/struct.Chunk.html +++ b/pr/3528/docs/iroh/endpoint/struct.Chunk.html @@ -1,4 +1,4 @@ -Chunk in iroh::endpoint - Rust

Chunk

Struct Chunk 

pub struct Chunk {
+Chunk in iroh::endpoint - Rust

Chunk

Struct Chunk 

pub struct Chunk {
     pub offset: u64,
     pub bytes: Bytes,
 }
Expand description

A chunk of data from the receive stream

diff --git a/pr/3528/docs/iroh/endpoint/struct.ClosedStream.html b/pr/3528/docs/iroh/endpoint/struct.ClosedStream.html index 614e499bb6..4b196edaa4 100644 --- a/pr/3528/docs/iroh/endpoint/struct.ClosedStream.html +++ b/pr/3528/docs/iroh/endpoint/struct.ClosedStream.html @@ -1,4 +1,4 @@ -ClosedStream in iroh::endpoint - Rust

ClosedStream

Struct ClosedStream 

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

Error indicating that a stream has not been opened or has already been finished or reset

+ClosedStream in iroh::endpoint - Rust

ClosedStream

Struct ClosedStream 

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

Error indicating that a stream has not been opened or has already been finished or reset

Trait Implementations§

§

impl Clone for ClosedStream

§

fn clone(&self) -> ClosedStream

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
§

impl Debug for ClosedStream

§

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

Formats the value using the given formatter. Read more
§

impl Default for ClosedStream

§

fn default() -> ClosedStream

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

impl Display for ClosedStream

§

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

Formats the value using the given formatter. Read more
§

impl Error for ClosedStream

1.30.0 · Source§

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

Returns 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<ClosedStream> for AcceptError

Source§

fn from(err: ClosedStream) -> Self

Converts to this type from the input type.
§

impl From<ClosedStream> for WriteError

§

fn from(_: ClosedStream) -> WriteError

Converts to this type from the input type.
§

impl PartialEq for ClosedStream

§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for ClosedStream

§

impl StructuralPartialEq for ClosedStream

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> AsErrorSource for T
where diff --git a/pr/3528/docs/iroh/endpoint/struct.ConnectOptions.html b/pr/3528/docs/iroh/endpoint/struct.ConnectOptions.html index d56b6f9454..81f67347aa 100644 --- a/pr/3528/docs/iroh/endpoint/struct.ConnectOptions.html +++ b/pr/3528/docs/iroh/endpoint/struct.ConnectOptions.html @@ -1,4 +1,4 @@ -ConnectOptions in iroh::endpoint - Rust

ConnectOptions

Struct ConnectOptions 

Source
pub struct ConnectOptions { /* private fields */ }
Expand description

Options for the Endpoint::connect_with_opts function.

+ConnectOptions in iroh::endpoint - Rust

ConnectOptions

Struct ConnectOptions 

Source
pub struct ConnectOptions { /* private fields */ }
Expand description

Options for the Endpoint::connect_with_opts function.

Implementations§

Source§

impl ConnectOptions

Source

pub fn new() -> Self

Initializes new connection options.

By default, the connection will use the same options as Endpoint::connect, e.g. a default TransportConfig.

diff --git a/pr/3528/docs/iroh/endpoint/struct.Connecting.html b/pr/3528/docs/iroh/endpoint/struct.Connecting.html index 1a9b55ffe4..a821e7ef8e 100644 --- a/pr/3528/docs/iroh/endpoint/struct.Connecting.html +++ b/pr/3528/docs/iroh/endpoint/struct.Connecting.html @@ -1,4 +1,4 @@ -Connecting in iroh::endpoint - Rust

Connecting

Struct Connecting 

Source
pub struct Connecting { /* private fields */ }
Expand description

In-progress connection attempt future

+Connecting in iroh::endpoint - Rust

Connecting

Struct Connecting 

Source
pub struct Connecting { /* private fields */ }
Expand description

In-progress connection attempt future

Implementations§

Source§

impl Connecting

Source

pub fn into_0rtt(self) -> Result<(Connection, ZeroRttAccepted), Self>

Converts this Connecting into a 0-RTT or 0.5-RTT connection at the cost of weakened security.

Returns Ok immediately if the local endpoint is able to attempt sending 0/0.5-RTT data. diff --git a/pr/3528/docs/iroh/endpoint/struct.Connection.html b/pr/3528/docs/iroh/endpoint/struct.Connection.html index b6af604479..f685794ce5 100644 --- a/pr/3528/docs/iroh/endpoint/struct.Connection.html +++ b/pr/3528/docs/iroh/endpoint/struct.Connection.html @@ -1,4 +1,4 @@ -Connection in iroh::endpoint - Rust

Connection

Struct Connection 

Source
pub struct Connection { /* private fields */ }
Expand description

A QUIC connection.

+Connection in iroh::endpoint - Rust

Connection

Struct Connection 

Source
pub struct Connection { /* private fields */ }
Expand description

A QUIC connection.

If all references to a connection (including every clone of the Connection handle, streams of incoming streams, and the various stream types) have been dropped, then the connection will be automatically closed with an error_code of 0 and an empty reason. You diff --git a/pr/3528/docs/iroh/endpoint/struct.ConnectionClose.html b/pr/3528/docs/iroh/endpoint/struct.ConnectionClose.html index 70bf742b43..fe513c3677 100644 --- a/pr/3528/docs/iroh/endpoint/struct.ConnectionClose.html +++ b/pr/3528/docs/iroh/endpoint/struct.ConnectionClose.html @@ -1,4 +1,4 @@ -ConnectionClose in iroh::endpoint - Rust

ConnectionClose

Struct ConnectionClose 

pub struct ConnectionClose {
+ConnectionClose in iroh::endpoint - Rust

ConnectionClose

Struct ConnectionClose 

pub struct ConnectionClose {
     pub error_code: Code,
     pub frame_type: Option<FrameType>,
     pub reason: Bytes,
diff --git a/pr/3528/docs/iroh/endpoint/struct.ConnectionStats.html b/pr/3528/docs/iroh/endpoint/struct.ConnectionStats.html
index f8c4016ee2..1a0739600c 100644
--- a/pr/3528/docs/iroh/endpoint/struct.ConnectionStats.html
+++ b/pr/3528/docs/iroh/endpoint/struct.ConnectionStats.html
@@ -1,4 +1,4 @@
-ConnectionStats in iroh::endpoint - Rust

ConnectionStats

Struct ConnectionStats 

#[non_exhaustive]
pub struct ConnectionStats { +ConnectionStats in iroh::endpoint - Rust

ConnectionStats

Struct ConnectionStats 

#[non_exhaustive]
pub struct ConnectionStats { pub udp_tx: UdpStats, pub udp_rx: UdpStats, pub frame_tx: FrameStats, diff --git a/pr/3528/docs/iroh/endpoint/struct.CryptoError.html b/pr/3528/docs/iroh/endpoint/struct.CryptoError.html index 32fafe0fb2..75c27ddd0a 100644 --- a/pr/3528/docs/iroh/endpoint/struct.CryptoError.html +++ b/pr/3528/docs/iroh/endpoint/struct.CryptoError.html @@ -1,4 +1,4 @@ -CryptoError in iroh::endpoint - Rust

CryptoError

Struct CryptoError 

pub struct CryptoError;
Expand description

Generic crypto errors

+CryptoError in iroh::endpoint - Rust

CryptoError

Struct CryptoError 

pub struct CryptoError;
Expand description

Generic crypto errors

Trait Implementations§

§

impl Debug for CryptoError

§

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

Formats the value using the given formatter. Read more
§

impl From<Unspecified> for CryptoError

§

fn from(_: Unspecified) -> CryptoError

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> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/3528/docs/iroh/endpoint/struct.DirectAddr.html b/pr/3528/docs/iroh/endpoint/struct.DirectAddr.html index 75d437505b..6690765184 100644 --- a/pr/3528/docs/iroh/endpoint/struct.DirectAddr.html +++ b/pr/3528/docs/iroh/endpoint/struct.DirectAddr.html @@ -1,4 +1,4 @@ -DirectAddr in iroh::endpoint - Rust

DirectAddr

Struct DirectAddr 

Source
pub struct DirectAddr {
+DirectAddr in iroh::endpoint - Rust

DirectAddr

Struct DirectAddr 

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

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

diff --git a/pr/3528/docs/iroh/endpoint/struct.DirectAddrInfo.html b/pr/3528/docs/iroh/endpoint/struct.DirectAddrInfo.html index 89be624848..b0af6e7043 100644 --- a/pr/3528/docs/iroh/endpoint/struct.DirectAddrInfo.html +++ b/pr/3528/docs/iroh/endpoint/struct.DirectAddrInfo.html @@ -1,4 +1,4 @@ -DirectAddrInfo in iroh::endpoint - Rust

DirectAddrInfo

Struct DirectAddrInfo 

Source
pub struct DirectAddrInfo {
+DirectAddrInfo in iroh::endpoint - Rust

DirectAddrInfo

Struct DirectAddrInfo 

Source
pub struct DirectAddrInfo {
     pub addr: SocketAddr,
     pub latency: Option<Duration>,
     pub last_control: Option<(Duration, ControlMsg)>,
diff --git a/pr/3528/docs/iroh/endpoint/struct.Endpoint.html b/pr/3528/docs/iroh/endpoint/struct.Endpoint.html
index dd959e81ee..1f71bae5c2 100644
--- a/pr/3528/docs/iroh/endpoint/struct.Endpoint.html
+++ b/pr/3528/docs/iroh/endpoint/struct.Endpoint.html
@@ -1,4 +1,4 @@
-Endpoint in iroh::endpoint - Rust

Endpoint

Struct Endpoint 

Source
pub struct Endpoint { /* private fields */ }
Expand description

Controls an iroh node, establishing connections with other nodes.

+Endpoint in iroh::endpoint - Rust

Endpoint

Struct Endpoint 

Source
pub struct Endpoint { /* private fields */ }
Expand description

Controls an iroh node, establishing connections with other nodes.

This is the main API interface to create connections to, and accept connections from other iroh nodes. The connections are peer-to-peer and encrypted, a Relay server is used to make the connections reliable. See the [crate docs] for a more detailed @@ -26,7 +26,7 @@ Note that this overrides the current list of ALPNs.

alpn: &[u8], ) -> Result<Connection, ConnectError>

Connects to a remote Endpoint.

A value that can be converted into a NodeAddr is required. This can be either a -NodeAddr, a NodeId or a [iroh_base::ticket::NodeTicket].

+NodeAddr, a NodeId or a iroh_base::ticket::NodeTicket.

The NodeAddr must contain the NodeId to dial and may also contain a RelayUrl and direct addresses. If direct addresses are provided, they will be used to try and establish a direct connection without involving a relay server.

diff --git a/pr/3528/docs/iroh/endpoint/struct.ExportKeyingMaterialError.html b/pr/3528/docs/iroh/endpoint/struct.ExportKeyingMaterialError.html index aa4d7653ac..e47d3e840c 100644 --- a/pr/3528/docs/iroh/endpoint/struct.ExportKeyingMaterialError.html +++ b/pr/3528/docs/iroh/endpoint/struct.ExportKeyingMaterialError.html @@ -1,4 +1,4 @@ -ExportKeyingMaterialError in iroh::endpoint - Rust

ExportKeyingMaterialError

Struct ExportKeyingMaterialError 

pub struct ExportKeyingMaterialError;
Expand description

Error returned by [Session::export_keying_material].

+ExportKeyingMaterialError in iroh::endpoint - Rust

ExportKeyingMaterialError

Struct ExportKeyingMaterialError 

pub struct ExportKeyingMaterialError;
Expand description

Error returned by [Session::export_keying_material].

This error occurs if the requested output length is too large.

Trait Implementations§

§

impl Debug for ExportKeyingMaterialError

§

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

Formats the value using the given formatter. Read more
§

impl PartialEq for ExportKeyingMaterialError

§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for ExportKeyingMaterialError

§

impl StructuralPartialEq for ExportKeyingMaterialError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where diff --git a/pr/3528/docs/iroh/endpoint/struct.FrameStats.html b/pr/3528/docs/iroh/endpoint/struct.FrameStats.html index eb1985899c..68faad9b59 100644 --- a/pr/3528/docs/iroh/endpoint/struct.FrameStats.html +++ b/pr/3528/docs/iroh/endpoint/struct.FrameStats.html @@ -1,4 +1,4 @@ -FrameStats in iroh::endpoint - Rust

FrameStats

Struct FrameStats 

#[non_exhaustive]
pub struct FrameStats {
Show 25 fields +FrameStats in iroh::endpoint - Rust

FrameStats

Struct FrameStats 

#[non_exhaustive]
pub struct FrameStats {
Show 25 fields pub acks: u64, pub ack_frequency: u64, pub crypto: u64, diff --git a/pr/3528/docs/iroh/endpoint/struct.Incoming.html b/pr/3528/docs/iroh/endpoint/struct.Incoming.html index 176ec00d7b..d44b5c5165 100644 --- a/pr/3528/docs/iroh/endpoint/struct.Incoming.html +++ b/pr/3528/docs/iroh/endpoint/struct.Incoming.html @@ -1,4 +1,4 @@ -Incoming in iroh::endpoint - Rust

Incoming

Struct Incoming 

Source
pub struct Incoming { /* private fields */ }
Expand description

An incoming connection for which the server has not yet begun its parts of the +Incoming in iroh::endpoint - Rust

Incoming

Struct Incoming 

Source
pub struct Incoming { /* private fields */ }
Expand description

An incoming connection for which the server has not yet begun its parts of the handshake.

Implementations§

Source§

impl Incoming

Source

pub fn accept(self) -> Result<Connecting, ConnectionError>

Attempts to accept this incoming connection (an error may still occur).

Errors occurring here are likely not caused by the application or remote. The QUIC diff --git a/pr/3528/docs/iroh/endpoint/struct.IncomingFuture.html b/pr/3528/docs/iroh/endpoint/struct.IncomingFuture.html index 490a5d44da..cb78d9cb7a 100644 --- a/pr/3528/docs/iroh/endpoint/struct.IncomingFuture.html +++ b/pr/3528/docs/iroh/endpoint/struct.IncomingFuture.html @@ -1,4 +1,4 @@ -IncomingFuture in iroh::endpoint - Rust

IncomingFuture

Struct IncomingFuture 

Source
pub struct IncomingFuture { /* private fields */ }
Expand description

Adaptor to let Incoming be awaited like a Connecting.

+IncomingFuture in iroh::endpoint - Rust

IncomingFuture

Struct IncomingFuture 

Source
pub struct IncomingFuture { /* private fields */ }
Expand description

Adaptor to let Incoming be awaited like a Connecting.

Trait Implementations§

Source§

impl Debug for IncomingFuture

Source§

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

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

impl Future for IncomingFuture

Source§

type Output = Result<Connection, ConnectionError>

The type of value produced on completion.
Source§

fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

Attempts to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more
Source§

impl<'pin> Unpin for IncomingFuture
where PinnedFieldsOf<__IncomingFuture<'pin>>: Unpin,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where diff --git a/pr/3528/docs/iroh/endpoint/struct.MtuDiscoveryConfig.html b/pr/3528/docs/iroh/endpoint/struct.MtuDiscoveryConfig.html index 6f93e4f8ab..cc51f667cf 100644 --- a/pr/3528/docs/iroh/endpoint/struct.MtuDiscoveryConfig.html +++ b/pr/3528/docs/iroh/endpoint/struct.MtuDiscoveryConfig.html @@ -1,4 +1,4 @@ -MtuDiscoveryConfig in iroh::endpoint - Rust

MtuDiscoveryConfig

Struct MtuDiscoveryConfig 

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

Parameters governing MTU discovery.

+MtuDiscoveryConfig in iroh::endpoint - Rust

MtuDiscoveryConfig

Struct MtuDiscoveryConfig 

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

Parameters governing MTU discovery.

§The why of MTU discovery

By design, QUIC ensures during the handshake that the network path between the client and the server is able to transmit unfragmented UDP packets with a body of 1200 bytes. In other words, diff --git a/pr/3528/docs/iroh/endpoint/struct.OpenBi.html b/pr/3528/docs/iroh/endpoint/struct.OpenBi.html index 2a0d8b71d8..3a752284e2 100644 --- a/pr/3528/docs/iroh/endpoint/struct.OpenBi.html +++ b/pr/3528/docs/iroh/endpoint/struct.OpenBi.html @@ -1,4 +1,4 @@ -OpenBi in iroh::endpoint - Rust

OpenBi

Struct OpenBi 

pub struct OpenBi<'a> { /* private fields */ }
Expand description

Future produced by [Connection::open_bi]

+OpenBi in iroh::endpoint - Rust

OpenBi

Struct OpenBi 

pub struct OpenBi<'a> { /* private fields */ }
Expand description

Future produced by [Connection::open_bi]

Trait Implementations§

§

impl Future for OpenBi<'_>

§

type Output = Result<(SendStream, RecvStream), ConnectionError>

The type of value produced on completion.
§

fn poll( self: Pin<&mut OpenBi<'_>>, ctx: &mut Context<'_>, diff --git a/pr/3528/docs/iroh/endpoint/struct.OpenUni.html b/pr/3528/docs/iroh/endpoint/struct.OpenUni.html index 619e22c813..0b193a9ca7 100644 --- a/pr/3528/docs/iroh/endpoint/struct.OpenUni.html +++ b/pr/3528/docs/iroh/endpoint/struct.OpenUni.html @@ -1,4 +1,4 @@ -OpenUni in iroh::endpoint - Rust

OpenUni

Struct OpenUni 

pub struct OpenUni<'a> { /* private fields */ }
Expand description

Future produced by [Connection::open_uni]

+OpenUni in iroh::endpoint - Rust

OpenUni

Struct OpenUni 

pub struct OpenUni<'a> { /* private fields */ }
Expand description

Future produced by [Connection::open_uni]

Trait Implementations§

§

impl Future for OpenUni<'_>

§

type Output = Result<SendStream, ConnectionError>

The type of value produced on completion.
§

fn poll( self: Pin<&mut OpenUni<'_>>, ctx: &mut Context<'_>, diff --git a/pr/3528/docs/iroh/endpoint/struct.PathStats.html b/pr/3528/docs/iroh/endpoint/struct.PathStats.html index c583329a8c..94a740a6d1 100644 --- a/pr/3528/docs/iroh/endpoint/struct.PathStats.html +++ b/pr/3528/docs/iroh/endpoint/struct.PathStats.html @@ -1,4 +1,4 @@ -PathStats in iroh::endpoint - Rust

PathStats

Struct PathStats 

#[non_exhaustive]
pub struct PathStats { +PathStats in iroh::endpoint - Rust

PathStats

Struct PathStats 

#[non_exhaustive]
pub struct PathStats { pub rtt: Duration, pub cwnd: u64, pub congestion_events: u64, diff --git a/pr/3528/docs/iroh/endpoint/struct.ReadDatagram.html b/pr/3528/docs/iroh/endpoint/struct.ReadDatagram.html index be9322da17..e57a7c2172 100644 --- a/pr/3528/docs/iroh/endpoint/struct.ReadDatagram.html +++ b/pr/3528/docs/iroh/endpoint/struct.ReadDatagram.html @@ -1,4 +1,4 @@ -ReadDatagram in iroh::endpoint - Rust

ReadDatagram

Struct ReadDatagram 

pub struct ReadDatagram<'a> { /* private fields */ }
Expand description

Future produced by [Connection::read_datagram]

+ReadDatagram in iroh::endpoint - Rust

ReadDatagram

Struct ReadDatagram 

pub struct ReadDatagram<'a> { /* private fields */ }
Expand description

Future produced by [Connection::read_datagram]

Trait Implementations§

§

impl Future for ReadDatagram<'_>

§

type Output = Result<Bytes, ConnectionError>

The type of value produced on completion.
§

fn poll( self: Pin<&mut ReadDatagram<'_>>, ctx: &mut Context<'_>, diff --git a/pr/3528/docs/iroh/endpoint/struct.RecvStream.html b/pr/3528/docs/iroh/endpoint/struct.RecvStream.html index 21b98bf82f..a4ecd789f0 100644 --- a/pr/3528/docs/iroh/endpoint/struct.RecvStream.html +++ b/pr/3528/docs/iroh/endpoint/struct.RecvStream.html @@ -1,4 +1,4 @@ -RecvStream in iroh::endpoint - Rust

RecvStream

Struct RecvStream 

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

A stream that can only be used to receive data

+RecvStream in iroh::endpoint - Rust

RecvStream

Struct RecvStream 

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

A stream that can only be used to receive data

stop(0) is implicitly called on drop unless:

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 RelayMap

Source§

fn from(value: RelayUrl) -> RelayMap

Creates a RelayMap from a RelayUrl.

The RelayNodes in the RelayMap will have the default QUIC address discovery ports.

-
Source§

impl From<RelayUrl> for RelayNode

Source§

fn from(value: RelayUrl) -> RelayNode

Converts to this type from the input type.
§

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.
Source§

impl FromIterator<RelayUrl> for RelayMap

Source§

fn from_iter<T>(iter: T) -> RelayMap
where +

Source§

impl From<RelayUrl> for RelayNode

Source§

fn from(value: RelayUrl) -> RelayNode

Converts to this type from the input type.
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 FromIterator<RelayUrl> for RelayMap

Source§

fn from_iter<T>(iter: T) -> RelayMap
where T: IntoIterator<Item = RelayUrl>,

Creates a RelayMap from an iterator of RelayUrl.

The RelayNodes in the RelayMap will have the default QUIC address discovery ports.

-
§

impl FromStr for RelayUrl

Support for parsing strings directly.

+
Source§

impl FromStr for RelayUrl

Support for parsing strings directly.

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

-
§

type Err = RelayUrlParseError

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 +
Source§

type Err = RelayUrlParseError

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

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,

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,

Restrict a value to a certain interval. Read more
§

impl PartialEq for RelayUrl

§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always 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

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

Tests less than or equal to (for self and other) and is used by the + Self: Sized,

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

impl PartialEq for RelayUrl

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

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

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

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

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

impl Serialize for RelayUrl

§

fn serialize<__S>( +the >= operator. Read more

Source§

impl Serialize for RelayUrl

Source§

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

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

impl Eq for RelayUrl

§

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

Source§

impl Eq for RelayUrl

Source§

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

§

fn implicit( diff --git a/pr/3528/docs/iroh/struct.RelayUrlParseError.html b/pr/3528/docs/iroh/struct.RelayUrlParseError.html index ff4a730c84..33e06c6170 100644 --- a/pr/3528/docs/iroh/struct.RelayUrlParseError.html +++ b/pr/3528/docs/iroh/struct.RelayUrlParseError.html @@ -1,9 +1,9 @@ -RelayUrlParseError in iroh - Rust

RelayUrlParseError

Struct RelayUrlParseError 

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

Can occur when parsing a string into a RelayUrl.

-

Trait Implementations§

§

impl Debug for RelayUrlParseError

§

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

Formats the value using the given formatter. Read more
§

impl Display for RelayUrlParseError

§

fn fmt( +RelayUrlParseError in iroh - Rust

RelayUrlParseError

Struct RelayUrlParseError 

Source
pub struct RelayUrlParseError { /* private fields */ }
Expand description

Can occur when parsing a string into a RelayUrl.

+

Trait Implementations§

Source§

impl Debug for RelayUrlParseError

Source§

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

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

impl Display for RelayUrlParseError

Source§

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

Formats the value using the given formatter. Read more
§

impl Error for RelayUrlParseError

§

fn description(&self) -> &str

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

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

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

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

Returns the lower-level source of this error, if any. Read more
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 ErrorCompat for RelayUrlParseError

§

fn backtrace(&self) -> Option<&Backtrace>

Returns a [Backtrace][] that may be printed.
§

fn iter_chain(&self) -> ChainCompat<'_, '_>
where +) -> Result<(), Error>

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

impl Error for RelayUrlParseError

Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§

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

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

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

Returns the lower-level source of this error, if any. Read more
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 ErrorCompat for RelayUrlParseError

Source§

fn backtrace(&self) -> Option<&Backtrace>

Returns a [Backtrace][] that may be printed.
§

fn iter_chain(&self) -> ChainCompat<'_, '_>
where Self: AsErrorSource,

Returns an iterator for traversing the chain of errors, starting with the current error and continuing with recursive calls to Error::source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where diff --git a/pr/3528/docs/iroh/struct.SecretKey.html b/pr/3528/docs/iroh/struct.SecretKey.html index 70c0d8ce01..2d2e21c983 100644 --- a/pr/3528/docs/iroh/struct.SecretKey.html +++ b/pr/3528/docs/iroh/struct.SecretKey.html @@ -1,22 +1,22 @@ -SecretKey in iroh - Rust

SecretKey

Struct SecretKey 

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

A secret key.

-

Implementations§

§

impl SecretKey

pub fn public(&self) -> PublicKey

The public key of this SecretKey.

-

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

SecretKey

Struct SecretKey 

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

A secret key.

+

Implementations§

Source§

impl SecretKey

Source

pub fn public(&self) -> PublicKey

The public key of this SecretKey.

+
Source

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

Generate a new SecretKey with a randomness generator.

// use the OsRng option for OS depedndent most secure RNG.
-let _key = iroh_base::SecretKey::generate(&mut rand::rng());

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. +let _key = iroh_base::SecretKey::generate(&mut rand::rng());

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. The public part can always be recovered.

-

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

Create a secret key from its byte representation.

-

pub fn secret(&self) -> &SigningKey

Returns the [SigningKey] for this SecretKey.

-

Trait Implementations§

§

impl Clone for SecretKey

§

fn clone(&self) -> SecretKey

Returns a duplicate of the 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>( +

Source

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

Create a secret key from its byte representation.

+
Source

pub fn secret(&self) -> &SigningKey

Returns the [SigningKey] for this SecretKey.

+

Trait Implementations§

Source§

impl Clone for SecretKey

Source§

fn clone(&self) -> SecretKey

Returns a duplicate of the value. 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

Source§

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
§

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>( + D: Deserializer<'de>,

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

Source§

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

Source§

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

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

impl TryFrom<&[u8]> for SecretKey

§

type Error = Error

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

fn try_from( + S: Serializer,

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

impl TryFrom<&[u8]> for SecretKey

Source§

type Error = Error

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

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/3528/docs/iroh/test_utils/fn.run_relay_server.html b/pr/3528/docs/iroh/test_utils/fn.run_relay_server.html index e746dbc3c3..0188f68a1e 100644 --- a/pr/3528/docs/iroh/test_utils/fn.run_relay_server.html +++ b/pr/3528/docs/iroh/test_utils/fn.run_relay_server.html @@ -1,4 +1,4 @@ -run_relay_server in iroh::test_utils - Rust

run_relay_server

Function run_relay_server 

Source
pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Available on crate features test-utils only.
Expand description

Runs a relay server with QUIC enabled suitable for tests.

+run_relay_server in iroh::test_utils - Rust

run_relay_server

Function run_relay_server 

Source
pub async fn run_relay_server() -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Available on crate features test-utils only.
Expand description

Runs a relay server with QUIC enabled suitable for tests.

The returned Url is the url of the relay server in the returned RelayMap. When dropped, the returned Server does will stop running.

\ No newline at end of file diff --git a/pr/3528/docs/iroh/test_utils/fn.run_relay_server_with.html b/pr/3528/docs/iroh/test_utils/fn.run_relay_server_with.html index 66558b90f8..9c4107e979 100644 --- a/pr/3528/docs/iroh/test_utils/fn.run_relay_server_with.html +++ b/pr/3528/docs/iroh/test_utils/fn.run_relay_server_with.html @@ -1,4 +1,4 @@ -run_relay_server_with in iroh::test_utils - Rust

run_relay_server_with

Function run_relay_server_with 

Source
pub async fn run_relay_server_with(
+run_relay_server_with in iroh::test_utils - Rust

run_relay_server_with

Function run_relay_server_with 

Source
pub async fn run_relay_server_with(
     quic: bool,
 ) -> Result<(RelayMap, RelayUrl, Server), SpawnError>
Available on crate features test-utils only.
Expand description

Runs a relay server.

If quic is set to true, it will make the appropriate QuicConfig from the generated tls certificates and run the quic server at a random free port.

diff --git a/pr/3528/docs/iroh/test_utils/index.html b/pr/3528/docs/iroh/test_utils/index.html index 2913dcd091..8dc7bb75da 100644 --- a/pr/3528/docs/iroh/test_utils/index.html +++ b/pr/3528/docs/iroh/test_utils/index.html @@ -1,2 +1,2 @@ -iroh::test_utils - Rust

Module test_utils

Module test_utils 

Source
Available on crate features test-utils only.
Expand description

Internal utilities to support testing.

+iroh::test_utils - Rust

Module test_utils

Module test_utils 

Source
Available on crate features test-utils only.
Expand description

Internal utilities to support testing.

Structs§

CleanupDropGuard
A drop guard to clean up test infrastructure.
DnsPkarrServer
Handle and drop guard for test DNS and Pkarr servers.

Functions§

run_relay_server
Runs a relay server with QUIC enabled suitable for tests.
run_relay_server_with
Runs a relay server.
\ No newline at end of file diff --git a/pr/3528/docs/iroh/test_utils/struct.CleanupDropGuard.html b/pr/3528/docs/iroh/test_utils/struct.CleanupDropGuard.html index 5ba5b9910a..2afa5fa2b9 100644 --- a/pr/3528/docs/iroh/test_utils/struct.CleanupDropGuard.html +++ b/pr/3528/docs/iroh/test_utils/struct.CleanupDropGuard.html @@ -1,4 +1,4 @@ -CleanupDropGuard in iroh::test_utils - Rust

CleanupDropGuard

Struct CleanupDropGuard 

Source
pub struct CleanupDropGuard(/* private fields */);
Available on crate features test-utils only.
Expand description

A drop guard to clean up test infrastructure.

+CleanupDropGuard in iroh::test_utils - Rust

CleanupDropGuard

Struct CleanupDropGuard 

Source
pub struct CleanupDropGuard(/* private fields */);
Available on crate features test-utils only.
Expand description

A drop guard to clean up test infrastructure.

After dropping the test infrastructure will asynchronously shutdown and release its resources.

Trait Implementations§

Source§

impl Debug for CleanupDropGuard

Source§

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

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/3528/docs/iroh/test_utils/struct.DnsPkarrServer.html b/pr/3528/docs/iroh/test_utils/struct.DnsPkarrServer.html index 9d1bbb2e3f..4383fd81c3 100644 --- a/pr/3528/docs/iroh/test_utils/struct.DnsPkarrServer.html +++ b/pr/3528/docs/iroh/test_utils/struct.DnsPkarrServer.html @@ -1,4 +1,4 @@ -DnsPkarrServer in iroh::test_utils - Rust

DnsPkarrServer

Struct DnsPkarrServer 

Source
pub struct DnsPkarrServer {
+DnsPkarrServer in iroh::test_utils - Rust

DnsPkarrServer

Struct DnsPkarrServer 

Source
pub struct DnsPkarrServer {
     pub node_origin: String,
     pub nameserver: SocketAddr,
     pub pkarr_url: Url,
diff --git a/pr/3528/docs/iroh/trait.Watcher.html b/pr/3528/docs/iroh/trait.Watcher.html
index b02051af8f..3891ac0f6e 100644
--- a/pr/3528/docs/iroh/trait.Watcher.html
+++ b/pr/3528/docs/iroh/trait.Watcher.html
@@ -1,4 +1,4 @@
-Watcher in iroh - Rust

Watcher

Trait Watcher 

pub trait Watcher: Clone {
+Watcher in iroh - Rust

Watcher

Trait Watcher 

pub trait Watcher: Clone {
     type Value: Clone + Eq;
 
     // Required methods
diff --git a/pr/3528/docs/iroh/type.NodeId.html b/pr/3528/docs/iroh/type.NodeId.html
index f33807987c..d820c2d2f9 100644
--- a/pr/3528/docs/iroh/type.NodeId.html
+++ b/pr/3528/docs/iroh/type.NodeId.html
@@ -1,4 +1,4 @@
-NodeId in iroh - Rust

NodeId

Type Alias NodeId 

pub type NodeId = PublicKey;
Expand description

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

+NodeId in iroh - Rust

NodeId

Type Alias NodeId 

Source
pub type NodeId = PublicKey;
Expand description

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

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

diff --git a/pr/3528/docs/iroh_base/all.html b/pr/3528/docs/iroh_base/all.html index bc7d79bbc8..85168fd882 100644 --- a/pr/3528/docs/iroh_base/all.html +++ b/pr/3528/docs/iroh_base/all.html @@ -1 +1 @@ -List of all items in this crate

All

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

All

\ No newline at end of file diff --git a/pr/3528/docs/iroh_base/enum.KeyParsingError.html b/pr/3528/docs/iroh_base/enum.KeyParsingError.html index e0facf8a12..43d04d1513 100644 --- a/pr/3528/docs/iroh_base/enum.KeyParsingError.html +++ b/pr/3528/docs/iroh_base/enum.KeyParsingError.html @@ -1,4 +1,4 @@ -KeyParsingError in iroh_base - Rust

KeyParsingError

Enum KeyParsingError 

Source
pub enum KeyParsingError {
+KeyParsingError in iroh_base - Rust

KeyParsingError

Enum KeyParsingError 

Source
pub enum KeyParsingError {
     Decode {
         source: DecodeError,
         backtrace: Option<Backtrace>,
diff --git a/pr/3528/docs/iroh_base/index.html b/pr/3528/docs/iroh_base/index.html
index 40c3ab7b19..9c95a0c3ea 100644
--- a/pr/3528/docs/iroh_base/index.html
+++ b/pr/3528/docs/iroh_base/index.html
@@ -1,4 +1,4 @@
-iroh_base - Rust

Crate iroh_base

Crate iroh_base 

Source
Expand description

Base types and utilities for Iroh

+iroh_base - Rust

Crate iroh_base

Crate iroh_base 

Source
Expand description

Base types and utilities for Iroh

Modules§

ticketticket
Tickets is a serializable object combining information required for an operation. Typically tickets contain all information required for an operation, e.g. an iroh blob ticket would contain the hash of the data as well as information about how to reach the diff --git a/pr/3528/docs/iroh_base/struct.NodeAddr.html b/pr/3528/docs/iroh_base/struct.NodeAddr.html index 276f3f8ed2..9e8fc03e07 100644 --- a/pr/3528/docs/iroh_base/struct.NodeAddr.html +++ b/pr/3528/docs/iroh_base/struct.NodeAddr.html @@ -1,4 +1,4 @@ -NodeAddr in iroh_base - Rust

NodeAddr

Struct NodeAddr 

Source
pub struct NodeAddr {
+NodeAddr in iroh_base - Rust

NodeAddr

Struct NodeAddr 

Source
pub struct NodeAddr {
     pub node_id: NodeId,
     pub relay_url: Option<RelayUrl>,
     pub direct_addresses: BTreeSet<SocketAddr>,
diff --git a/pr/3528/docs/iroh_base/struct.PublicKey.html b/pr/3528/docs/iroh_base/struct.PublicKey.html
index c78362fa21..d888932b3c 100644
--- a/pr/3528/docs/iroh_base/struct.PublicKey.html
+++ b/pr/3528/docs/iroh_base/struct.PublicKey.html
@@ -1,4 +1,4 @@
-PublicKey in iroh_base - Rust

PublicKey

Struct PublicKey 

Source
pub struct PublicKey(/* private fields */);
Available on crate feature key only.
Expand description

A public key.

+PublicKey in iroh_base - Rust

PublicKey

Struct PublicKey 

Source
pub struct PublicKey(/* private fields */);
Available on crate feature key only.
Expand description

A public key.

The key itself is stored as the CompressedEdwards y coordinate of the public key It is verified to decompress into a valid key when created.

Implementations§

Source§

impl PublicKey

Source

pub const LENGTH: usize = 32usize

The length of an ed25519 PublicKey, in bytes.

diff --git a/pr/3528/docs/iroh_base/struct.RelayUrl.html b/pr/3528/docs/iroh_base/struct.RelayUrl.html index ea23b88a22..e3cb4a76b1 100644 --- a/pr/3528/docs/iroh_base/struct.RelayUrl.html +++ b/pr/3528/docs/iroh_base/struct.RelayUrl.html @@ -1,4 +1,4 @@ -RelayUrl in iroh_base - Rust

RelayUrl

Struct RelayUrl 

Source
pub struct RelayUrl(/* private fields */);
Available on crate feature relay only.
Expand description

A URL identifying a relay server.

+RelayUrl in iroh_base - Rust

RelayUrl

Struct RelayUrl 

Source
pub struct RelayUrl(/* private fields */);
Available on crate feature relay only.
Expand description

A URL identifying a relay server.

It is cheaply clonable, as the underlying type is wrapped into an Arc. The main type under the hood though is Url, with a few custom tweaks:

Adds direct addresses to the node data.

-
Source

pub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)

Sets the relay URL of the node data.

+
Source

pub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)

Sets the relay URL of the node data.

Source

pub fn set_user_data(&mut self, user_data: Option<UserData>)

Sets the user-defined data of the node data.

-

Trait Implementations§

Source§

impl Clone for NodeData

Source§

fn clone(&self) -> NodeData

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeData

Source§

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

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

impl Default for NodeData

Source§

fn default() -> NodeData

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

impl From<NodeAddr> for NodeData

Source§

fn from(node_addr: NodeAddr) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for NodeData

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +

Trait Implementations§

Source§

impl Clone for NodeData

Source§

fn clone(&self) -> NodeData

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeData

Source§

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

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

impl Default for NodeData

Source§

fn default() -> NodeData

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

impl From<NodeAddr> for NodeData

Source§

fn from(node_addr: NodeAddr) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for NodeData

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for NodeData

Source§

impl StructuralPartialEq for NodeData

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/3528/docs/iroh_relay/node_info/struct.NodeInfo.html b/pr/3528/docs/iroh_relay/node_info/struct.NodeInfo.html index 660aca7a07..9766d07b82 100644 --- a/pr/3528/docs/iroh_relay/node_info/struct.NodeInfo.html +++ b/pr/3528/docs/iroh_relay/node_info/struct.NodeInfo.html @@ -1,20 +1,20 @@ -NodeInfo in iroh_relay::node_info - Rust

NodeInfo

Struct NodeInfo 

Source
pub struct NodeInfo {
-    pub node_id: NodeId,
+NodeInfo in iroh_relay::node_info - Rust

NodeInfo

Struct NodeInfo 

Source
pub struct NodeInfo {
+    pub node_id: NodeId,
     pub data: NodeData,
 }
Expand description

Information about a node that may be published to and resolved from discovery services.

-

This struct couples a [NodeId] with its associated NodeData.

-

Fields§

§node_id: NodeId

The [NodeId] of the node this is about.

+

This struct couples a NodeId with its associated NodeData.

+

Fields§

§node_id: NodeId

The NodeId of the node this is about.

§data: NodeData

The information published about the node.

-

Implementations§

Source§

impl NodeInfo

Source

pub fn new(node_id: NodeId) -> Self

Creates a new NodeInfo with an empty NodeData.

-
Source

pub fn from_parts(node_id: NodeId, data: NodeData) -> Self

Creates a new NodeInfo from its parts.

-
Source

pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self

Sets the relay URL and returns the updated node info.

+

Implementations§

Source§

impl NodeInfo

Source

pub fn new(node_id: NodeId) -> Self

Creates a new NodeInfo with an empty NodeData.

+
Source

pub fn from_parts(node_id: NodeId, data: NodeData) -> Self

Creates a new NodeInfo from its parts.

+
Source

pub fn with_relay_url(self, relay_url: Option<RelayUrl>) -> Self

Sets the relay URL and returns the updated node info.

Source

pub fn with_direct_addresses( self, direct_addresses: BTreeSet<SocketAddr>, ) -> Self

Sets the direct addresses and returns the updated node info.

Source

pub fn with_user_data(self, user_data: Option<UserData>) -> Self

Sets the user-defined data and returns the updated node info.

-
Source

pub fn to_node_addr(&self) -> NodeAddr

Converts into a [NodeAddr] by cloning the needed fields.

-
Source

pub fn into_node_addr(self) -> NodeAddr

Converts into a [NodeAddr] without cloning.

+
Source

pub fn to_node_addr(&self) -> NodeAddr

Converts into a NodeAddr by cloning the needed fields.

+
Source

pub fn into_node_addr(self) -> NodeAddr

Converts into a NodeAddr without cloning.

Source

pub fn from_txt_lookup( domain_name: String, lookup: impl Iterator<Item = TxtRecordData>, @@ -24,12 +24,12 @@ ) -> Result<Self, ParseError>

Parses a NodeInfo from a [pkarr::SignedPacket].

Source

pub fn to_pkarr_signed_packet( &self, - secret_key: &SecretKey, + secret_key: &SecretKey, ttl: u32, ) -> Result<SignedPacket, EncodingError>

Creates a [pkarr::SignedPacket].

-

This constructs a DNS packet and signs it with a [SecretKey].

+

This constructs a DNS packet and signs it with a SecretKey.

Source

pub fn to_txt_strings(&self) -> Vec<String>

Converts into a list of {key}={value} strings.

-

Methods from Deref<Target = NodeData>§

Source

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

Returns the relay URL of the node.

+

Methods from Deref<Target = NodeData>§

Source

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

Returns the relay URL of the node.

Source

pub fn user_data(&self) -> Option<&UserData>

Returns the optional user-defined data of the node.

Source

pub fn direct_addresses(&self) -> &BTreeSet<SocketAddr>

Returns the direct addresses of the node.

Source

pub fn clear_direct_addresses(&mut self)

Removes all direct addresses from the node data.

@@ -37,9 +37,9 @@ &mut self, addrs: impl IntoIterator<Item = SocketAddr>, )

Adds direct addresses to the node data.

-
Source

pub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)

Sets the relay URL of the node data.

+
Source

pub fn set_relay_url(&mut self, relay_url: Option<RelayUrl>)

Sets the relay URL of the node data.

Source

pub fn set_user_data(&mut self, user_data: Option<UserData>)

Sets the user-defined data of the node data.

-

Trait Implementations§

Source§

impl Clone for NodeInfo

Source§

fn clone(&self) -> NodeInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeInfo

Source§

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

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

impl Deref for NodeInfo

Source§

type Target = NodeData

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for NodeInfo

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl From<NodeAddr> for NodeInfo

Source§

fn from(addr: NodeAddr) -> 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 PartialEq for NodeInfo

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, +

Trait Implementations§

Source§

impl Clone for NodeInfo

Source§

fn clone(&self) -> NodeInfo

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for NodeInfo

Source§

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

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

impl Deref for NodeInfo

Source§

type Target = NodeData

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl DerefMut for NodeInfo

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl From<NodeAddr> for NodeInfo

Source§

fn from(addr: NodeAddr) -> 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 PartialEq for NodeInfo

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for NodeInfo

Source§

impl StructuralPartialEq for NodeInfo

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/3528/docs/iroh_relay/node_info/struct.UserData.html b/pr/3528/docs/iroh_relay/node_info/struct.UserData.html index 50a098607e..aa6976312a 100644 --- a/pr/3528/docs/iroh_relay/node_info/struct.UserData.html +++ b/pr/3528/docs/iroh_relay/node_info/struct.UserData.html @@ -1,4 +1,4 @@ -UserData in iroh_relay::node_info - Rust

UserData

Struct UserData 

Source
pub struct UserData(/* private fields */);
Expand description

Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

+UserData in iroh_relay::node_info - Rust

UserData

Struct UserData 

Source
pub struct UserData(/* private fields */);
Expand description

Under the hood this is a UTF-8 String is no longer than UserData::MAX_LENGTH bytes.

Iroh does not keep track of or examine the user-defined data.

UserData implements FromStr and TryFrom<String>, so you can convert &str and String into UserData easily.

diff --git a/pr/3528/docs/iroh_relay/node_info/trait.NodeIdExt.html b/pr/3528/docs/iroh_relay/node_info/trait.NodeIdExt.html index e04c04195b..a281a2f1df 100644 --- a/pr/3528/docs/iroh_relay/node_info/trait.NodeIdExt.html +++ b/pr/3528/docs/iroh_relay/node_info/trait.NodeIdExt.html @@ -1,9 +1,9 @@ -NodeIdExt in iroh_relay::node_info - Rust

NodeIdExt

Trait NodeIdExt 

Source
pub trait NodeIdExt {
+NodeIdExt in iroh_relay::node_info - Rust

NodeIdExt

Trait NodeIdExt 

Source
pub trait NodeIdExt {
     // Required methods
     fn to_z32(&self) -> String;
-    fn from_z32(s: &str) -> Result<NodeId, DecodingError>;
-}
Expand description

Extension methods for [NodeId] to encode to and decode from [z32], + fn from_z32(s: &str) -> Result<NodeId, DecodingError>; +}

Expand description

Extension methods for NodeId to encode to and decode from [z32], which is the encoding used in [pkarr] domain names.

-

Required Methods§

Source

fn to_z32(&self) -> String

Encodes a [NodeId] in z-base-32 encoding.

-
Source

fn from_z32(s: &str) -> Result<NodeId, DecodingError>

Parses a [NodeId] from z-base-32 encoding.

-

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NodeIdExt for NodeId

Implementors§

\ No newline at end of file +

Required Methods§

Source

fn to_z32(&self) -> String

Encodes a NodeId in z-base-32 encoding.

+
Source

fn from_z32(s: &str) -> Result<NodeId, DecodingError>

Parses a NodeId from z-base-32 encoding.

+

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NodeIdExt for NodeId

Implementors§

\ No newline at end of file diff --git a/pr/3528/docs/iroh_relay/protos/common/enum.FrameType.html b/pr/3528/docs/iroh_relay/protos/common/enum.FrameType.html index ddf606fad8..b43526a043 100644 --- a/pr/3528/docs/iroh_relay/protos/common/enum.FrameType.html +++ b/pr/3528/docs/iroh_relay/protos/common/enum.FrameType.html @@ -1,4 +1,4 @@ -FrameType in iroh_relay::protos::common - Rust

FrameType

Enum FrameType 

Source
#[repr(u32)]
pub enum FrameType { +FrameType in iroh_relay::protos::common - Rust

FrameType

Enum FrameType 

Source
#[repr(u32)]
pub enum FrameType {
Show 13 variants ServerChallenge = 0, ClientAuth = 1, ServerConfirmsAuth = 2, diff --git a/pr/3528/docs/iroh_relay/protos/common/enum.FrameTypeError.html b/pr/3528/docs/iroh_relay/protos/common/enum.FrameTypeError.html index 59a96e06c3..6b38d3bf66 100644 --- a/pr/3528/docs/iroh_relay/protos/common/enum.FrameTypeError.html +++ b/pr/3528/docs/iroh_relay/protos/common/enum.FrameTypeError.html @@ -1,4 +1,4 @@ -FrameTypeError in iroh_relay::protos::common - Rust

FrameTypeError

Enum FrameTypeError 

Source
#[non_exhaustive]
pub enum FrameTypeError { +FrameTypeError in iroh_relay::protos::common - Rust

FrameTypeError

Enum FrameTypeError 

Source
#[non_exhaustive]
pub enum FrameTypeError { UnexpectedEnd { backtrace: Option<Backtrace>, span_trace: SpanTrace, diff --git a/pr/3528/docs/iroh_relay/protos/common/index.html b/pr/3528/docs/iroh_relay/protos/common/index.html index 0c0fc2f6c1..fb74242be4 100644 --- a/pr/3528/docs/iroh_relay/protos/common/index.html +++ b/pr/3528/docs/iroh_relay/protos/common/index.html @@ -1,4 +1,4 @@ -iroh_relay::protos::common - Rust

Module common

Module common 

Source
Expand description

Common types between the super::handshake and super::relay protocols.

+iroh_relay::protos::common - Rust

Module common

Module common 

Source
Expand description

Common types between the super::handshake and super::relay protocols.

Hosts the FrameType enum to make sure we’re not accidentally reusing frame type integers for different frames.

Enums§

FrameType
Possible frame types during handshaking
FrameTypeError
\ No newline at end of file diff --git a/pr/3528/docs/iroh_relay/protos/disco/constant.MAGIC.html b/pr/3528/docs/iroh_relay/protos/disco/constant.MAGIC.html index f25d521a89..1cdd0d3f56 100644 --- a/pr/3528/docs/iroh_relay/protos/disco/constant.MAGIC.html +++ b/pr/3528/docs/iroh_relay/protos/disco/constant.MAGIC.html @@ -1,2 +1,2 @@ -MAGIC in iroh_relay::protos::disco - Rust

MAGIC

Constant MAGIC 

Source
pub const MAGIC: &str = "TS💬";
Expand description

The 6 byte header of all discovery messages.

+MAGIC in iroh_relay::protos::disco - Rust

MAGIC

Constant MAGIC 

Source
pub const MAGIC: &str = "TS💬";
Expand description

The 6 byte header of all discovery messages.

\ No newline at end of file diff --git a/pr/3528/docs/iroh_relay/protos/disco/fn.looks_like_disco_wrapper.html b/pr/3528/docs/iroh_relay/protos/disco/fn.looks_like_disco_wrapper.html index 62b5e1286d..1783e86684 100644 --- a/pr/3528/docs/iroh_relay/protos/disco/fn.looks_like_disco_wrapper.html +++ b/pr/3528/docs/iroh_relay/protos/disco/fn.looks_like_disco_wrapper.html @@ -1,2 +1,2 @@ -looks_like_disco_wrapper in iroh_relay::protos::disco - Rust

looks_like_disco_wrapper

Function looks_like_disco_wrapper 

Source
pub fn looks_like_disco_wrapper(p: &[u8]) -> bool
Expand description

Reports whether p looks like it’s a packet containing an encrypted disco message.

+looks_like_disco_wrapper in iroh_relay::protos::disco - Rust

looks_like_disco_wrapper

Function looks_like_disco_wrapper 

Source
pub fn looks_like_disco_wrapper(p: &[u8]) -> bool
Expand description

Reports whether p looks like it’s a packet containing an encrypted disco message.

\ No newline at end of file diff --git a/pr/3528/docs/iroh_relay/protos/disco/index.html b/pr/3528/docs/iroh_relay/protos/disco/index.html index dbe5228523..c061963311 100644 --- a/pr/3528/docs/iroh_relay/protos/disco/index.html +++ b/pr/3528/docs/iroh_relay/protos/disco/index.html @@ -1,4 +1,4 @@ -iroh_relay::protos::disco - Rust

Module disco

Module disco 

Source
Expand description

This module exports looks_like_disco_wrapper as the only disco-related relay +iroh_relay::protos::disco - Rust

Module disco

Module disco 

Source
Expand description

This module exports looks_like_disco_wrapper as the only disco-related relay functionality.

Despite the relay not being able to read disco messages by design, it does attempt to identify this traffic to ensure hole-punching messages are not lost do to congestion.

diff --git a/pr/3528/docs/iroh_relay/protos/handshake/enum.Error.html b/pr/3528/docs/iroh_relay/protos/handshake/enum.Error.html index 114db731e7..13ea9110f9 100644 --- a/pr/3528/docs/iroh_relay/protos/handshake/enum.Error.html +++ b/pr/3528/docs/iroh_relay/protos/handshake/enum.Error.html @@ -1,4 +1,4 @@ -Error in iroh_relay::protos::handshake - Rust

Error

Enum Error 

Source
#[non_exhaustive]
pub enum Error { +Error in iroh_relay::protos::handshake - Rust

Error

Enum Error 

Source
#[non_exhaustive]
pub enum Error { Websocket { source: Error, backtrace: Option<Backtrace>, diff --git a/pr/3528/docs/iroh_relay/protos/handshake/index.html b/pr/3528/docs/iroh_relay/protos/handshake/index.html index 516a608688..8eebf737de 100644 --- a/pr/3528/docs/iroh_relay/protos/handshake/index.html +++ b/pr/3528/docs/iroh_relay/protos/handshake/index.html @@ -1,4 +1,4 @@ -iroh_relay::protos::handshake - Rust

Module handshake

Module handshake 

Source
Expand description

Implements the handshake protocol that authenticates and authorizes clients connecting to the relays.

+iroh_relay::protos::handshake - Rust

Module handshake

Module handshake 

Source
Expand description

Implements the handshake protocol that authenticates and authorizes clients connecting to the relays.

The purpose of the handshake is to

  1. Inform the relay of the client’s NodeId
  2. diff --git a/pr/3528/docs/iroh_relay/protos/index.html b/pr/3528/docs/iroh_relay/protos/index.html index b8f94b54e1..b0bddbd40e 100644 --- a/pr/3528/docs/iroh_relay/protos/index.html +++ b/pr/3528/docs/iroh_relay/protos/index.html @@ -1,4 +1,4 @@ -iroh_relay::protos - Rust

    Module protos

    Module protos 

    Source
    Expand description

    Protocols used by the iroh-relay

    +iroh_relay::protos - Rust

    Module protos

    Module protos 

    Source
    Expand description

    Protocols used by the iroh-relay

    Modules§

    common
    Common types between the super::handshake and super::relay protocols.
    disco
    This module exports looks_like_disco_wrapper as the only disco-related relay functionality.
    handshake
    Implements the handshake protocol that authenticates and authorizes clients connecting to the relays.
    relay
    This module implements the send/recv relaying protocol.
    streams
    Implements logic for abstracting over a websocket stream that allows sending only [Bytes]-based messages.
    \ No newline at end of file diff --git a/pr/3528/docs/iroh_relay/protos/relay/constant.MAX_PACKET_SIZE.html b/pr/3528/docs/iroh_relay/protos/relay/constant.MAX_PACKET_SIZE.html index 1dbf16a570..33d5293f44 100644 --- a/pr/3528/docs/iroh_relay/protos/relay/constant.MAX_PACKET_SIZE.html +++ b/pr/3528/docs/iroh_relay/protos/relay/constant.MAX_PACKET_SIZE.html @@ -1,4 +1,4 @@ -MAX_PACKET_SIZE in iroh_relay::protos::relay - Rust

    MAX_PACKET_SIZE

    Constant MAX_PACKET_SIZE 

    Source
    pub const MAX_PACKET_SIZE: usize = _; // 65_536usize
    Expand description

    The maximum size of a packet sent over relay. +MAX_PACKET_SIZE in iroh_relay::protos::relay - Rust

    MAX_PACKET_SIZE

    Constant MAX_PACKET_SIZE 

    Source
    pub const MAX_PACKET_SIZE: usize = _; // 65_536usize
    Expand description

    The maximum size of a packet sent over relay. (This only includes the data bytes visible to magicsock, not including its on-wire framing overhead)

    \ No newline at end of file diff --git a/pr/3528/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html b/pr/3528/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html index bbf461844a..4135794798 100644 --- a/pr/3528/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html +++ b/pr/3528/docs/iroh_relay/protos/relay/enum.ClientToRelayMsg.html @@ -1,8 +1,8 @@ -ClientToRelayMsg in iroh_relay::protos::relay - Rust

    ClientToRelayMsg

    Enum ClientToRelayMsg 

    Source
    pub enum ClientToRelayMsg {
    +ClientToRelayMsg in iroh_relay::protos::relay - Rust

    ClientToRelayMsg

    Enum ClientToRelayMsg 

    Source
    pub enum ClientToRelayMsg {
         Ping([u8; 8]),
         Pong([u8; 8]),
         Datagrams {
    -        dst_node_id: NodeId,
    +        dst_node_id: NodeId,
             datagrams: Datagrams,
         },
     }
    Expand description

    Messages that clients send to relays.

    @@ -11,7 +11,7 @@ other side with a §

    Pong([u8; 8])

    Reply to a RelayToClientMsg::Ping from a server with the payload sent previously in the ping.

    §

    Datagrams

    Request from the client to relay datagrams to given remote node.

    -

    Fields

    §dst_node_id: NodeId

    The remote node to relay to.

    +

    Fields

    §dst_node_id: NodeId

    The remote node to relay to.

    §datagrams: Datagrams

    The datagrams and related metadata to relay.

    Trait Implementations§

    Source§

    impl Clone for ClientToRelayMsg

    Source§

    fn clone(&self) -> ClientToRelayMsg

    Returns a duplicate of the value. Read more
    1.0.0 · Source§

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

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for ClientToRelayMsg

    Source§

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

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

    impl PartialEq for ClientToRelayMsg

    Source§

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

    Tests for self and other values to be equal, and is used by ==.
    1.0.0 · Source§

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

    Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
    Source§

    impl Sink<ClientToRelayMsg> for Client

    Source§

    type Error = SendError

    The type of value produced by the sink when an error occurs.
    Source§

    fn poll_ready( diff --git a/pr/3528/docs/iroh_relay/protos/relay/enum.Error.html b/pr/3528/docs/iroh_relay/protos/relay/enum.Error.html index 342ffc8ea3..7ab05b2d3c 100644 --- a/pr/3528/docs/iroh_relay/protos/relay/enum.Error.html +++ b/pr/3528/docs/iroh_relay/protos/relay/enum.Error.html @@ -1,4 +1,4 @@ -Error in iroh_relay::protos::relay - Rust

    Error

    Enum Error 

    Source
    #[non_exhaustive]
    pub enum Error { +Error in iroh_relay::protos::relay - Rust

    Error

    Enum Error 

    Source
    #[non_exhaustive]
    pub enum Error { UnexpectedFrame { got: FrameType, expected: FrameType, diff --git a/pr/3528/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html b/pr/3528/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html index 2d369f2907..d02fdbe234 100644 --- a/pr/3528/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html +++ b/pr/3528/docs/iroh_relay/protos/relay/enum.RelayToClientMsg.html @@ -1,9 +1,9 @@ -RelayToClientMsg in iroh_relay::protos::relay - Rust

    RelayToClientMsg

    Enum RelayToClientMsg 

    Source
    pub enum RelayToClientMsg {
    +RelayToClientMsg in iroh_relay::protos::relay - Rust

    RelayToClientMsg

    Enum RelayToClientMsg 

    Source
    pub enum RelayToClientMsg {
         Datagrams {
    -        remote_node_id: NodeId,
    +        remote_node_id: NodeId,
             datagrams: Datagrams,
         },
    -    NodeGone(NodeId),
    +    NodeGone(NodeId),
         Health {
             problem: String,
         },
    @@ -15,9 +15,9 @@
         Pong([u8; 8]),
     }
    Expand description

    The messages that a relay sends to clients or the clients receive from the relay.

    Variants§

    §

    Datagrams

    Represents datagrams sent from relays (originally sent to them by another client).

    -

    Fields

    §remote_node_id: NodeId

    The [NodeId] of the original sender.

    +

    Fields

    §remote_node_id: NodeId

    The NodeId of the original sender.

    §datagrams: Datagrams

    The datagrams and related metadata.

    -
    §

    NodeGone(NodeId)

    Indicates that the client identified by the underlying public key had previously sent you a +

    §

    NodeGone(NodeId)

    Indicates that the client identified by the underlying public key had previously sent you a packet but has now disconnected from the relay.

    §

    Health

    A one-way message from relay to client, declaring the connection health state.

    Fields

    §problem: String

    If set, is a description of why the connection is unhealthy.

    diff --git a/pr/3528/docs/iroh_relay/protos/relay/index.html b/pr/3528/docs/iroh_relay/protos/relay/index.html index dc6a9e0903..8f51a6aecd 100644 --- a/pr/3528/docs/iroh_relay/protos/relay/index.html +++ b/pr/3528/docs/iroh_relay/protos/relay/index.html @@ -1,4 +1,4 @@ -iroh_relay::protos::relay - Rust

    Module relay

    Module relay 

    Source
    Expand description

    This module implements the send/recv relaying protocol.

    +iroh_relay::protos::relay - Rust

    Module relay

    Module relay 

    Source
    Expand description

    This module implements the send/recv relaying protocol.

    Protocol flow: