From 0ad70a548c6da4eac9154e75aaec6f2f253e911b Mon Sep 17 00:00:00 2001 From: matheus23 Date: Wed, 5 Feb 2025 16:09:50 +0000 Subject: [PATCH] deploy: 1122094c3b91115afc10cafd4fd760e2ff136abd --- pr/3170/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 +- .../defaults/constant.DEFAULT_STUN_PORT.html | 2 +- pr/3170/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/3170/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/3170/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/3170/docs/iroh/discovery/dns/index.html | 2 +- .../discovery/dns/struct.DnsDiscovery.html | 2 +- pr/3170/docs/iroh/discovery/index.html | 2 +- .../local_swarm_discovery/constant.NAME.html | 2 +- .../local_swarm_discovery/index.html | 2 +- .../struct.LocalSwarmDiscovery.html | 2 +- .../pkarr/constant.DEFAULT_PKARR_TTL.html | 2 +- .../constant.DEFAULT_REPUBLISH_INTERVAL.html | 2 +- .../constant.N0_DNS_PKARR_RELAY_PROD.html | 2 +- .../constant.N0_DNS_PKARR_RELAY_STAGING.html | 2 +- .../docs/iroh/discovery/pkarr/dht/index.html | 2 +- .../discovery/pkarr/dht/struct.Builder.html | 2 +- .../pkarr/dht/struct.DhtDiscovery.html | 2 +- pr/3170/docs/iroh/discovery/pkarr/index.html | 2 +- .../pkarr/struct.PkarrPublisher.html | 2 +- .../pkarr/struct.PkarrRelayClient.html | 2 +- .../discovery/pkarr/struct.PkarrResolver.html | 2 +- .../iroh/discovery/static_provider/index.html | 2 +- .../struct.StaticProvider.html | 2 +- .../discovery/struct.ConcurrentDiscovery.html | 2 +- .../iroh/discovery/struct.DiscoveryItem.html | 2 +- .../docs/iroh/discovery/trait.Discovery.html | 2 +- .../docs/iroh/dns/fn.default_resolver.html | 2 +- pr/3170/docs/iroh/dns/fn.resolver.html | 2 +- pr/3170/docs/iroh/dns/index.html | 2 +- .../dns/node_info/constant.IROH_TXT_NAME.html | 2 +- .../iroh/dns/node_info/enum.IrohAttr.html | 2 +- .../docs/iroh/dns/node_info/fn.from_z32.html | 2 +- .../docs/iroh/dns/node_info/fn.to_z32.html | 2 +- pr/3170/docs/iroh/dns/node_info/index.html | 2 +- .../iroh/dns/node_info/struct.NodeInfo.html | 2 +- .../iroh/dns/node_info/struct.TxtAttrs.html | 2 +- pr/3170/docs/iroh/dns/trait.ResolverExt.html | 2 +- pr/3170/docs/iroh/dns/type.DnsResolver.html | 2 +- .../constant.ENV_FORCE_STAGING_RELAYS.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 | 12 ++-- .../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 | 8 +-- .../docs/iroh/endpoint/enum.ResetError.html | 2 +- .../iroh/endpoint/enum.SendDatagramError.html | 2 +- pr/3170/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 +- .../iroh/endpoint/fn.make_server_config.html | 2 +- pr/3170/docs/iroh/endpoint/index.html | 2 +- pr/3170/docs/iroh/endpoint/struct.Accept.html | 6 +- .../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/3170/docs/iroh/endpoint/struct.Chunk.html | 2 +- .../iroh/endpoint/struct.ClosedStream.html | 2 +- .../docs/iroh/endpoint/struct.Connecting.html | 12 ++-- .../docs/iroh/endpoint/struct.Connection.html | 71 ++++++++++--------- .../iroh/endpoint/struct.ConnectionClose.html | 2 +- .../iroh/endpoint/struct.ConnectionStats.html | 2 +- .../iroh/endpoint/struct.CryptoError.html | 2 +- .../docs/iroh/endpoint/struct.DirectAddr.html | 12 ++-- .../iroh/endpoint/struct.DirectAddrInfo.html | 2 +- .../docs/iroh/endpoint/struct.Endpoint.html | 18 +++-- .../struct.ExportKeyingMaterialError.html | 2 +- .../docs/iroh/endpoint/struct.FrameStats.html | 2 +- .../docs/iroh/endpoint/struct.Incoming.html | 20 +++--- .../iroh/endpoint/struct.IncomingFuture.html | 6 +- .../endpoint/struct.MtuDiscoveryConfig.html | 2 +- pr/3170/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 +- .../docs/iroh/endpoint/struct.RemoteInfo.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/3170/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/3170/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/3170/docs/iroh/enum.KeyParsingError.html | 2 +- pr/3170/docs/iroh/index.html | 2 +- pr/3170/docs/iroh/metrics/index.html | 2 +- .../iroh/metrics/struct.MagicsockMetrics.html | 2 +- .../iroh/metrics/struct.NetReportMetrics.html | 2 +- .../iroh/metrics/struct.PortmapMetrics.html | 2 +- .../iroh/metrics/struct.RelayMetrics.html | 2 +- pr/3170/docs/iroh/protocol/index.html | 2 +- pr/3170/docs/iroh/protocol/struct.Router.html | 2 +- .../iroh/protocol/struct.RouterBuilder.html | 2 +- .../iroh/protocol/trait.ProtocolHandler.html | 2 +- pr/3170/docs/iroh/struct.NodeAddr.html | 2 +- pr/3170/docs/iroh/struct.PublicKey.html | 2 +- pr/3170/docs/iroh/struct.RelayMap.html | 2 +- pr/3170/docs/iroh/struct.RelayNode.html | 2 +- pr/3170/docs/iroh/struct.RelayUrl.html | 2 +- .../docs/iroh/struct.RelayUrlParseError.html | 2 +- pr/3170/docs/iroh/struct.SecretKey.html | 2 +- .../test_utils/fn.create_dns_resolver.html | 2 +- .../iroh/test_utils/fn.run_relay_server.html | 2 +- .../test_utils/fn.run_relay_server_with.html | 2 +- .../fn.run_relay_server_with_stun.html | 2 +- pr/3170/docs/iroh/test_utils/index.html | 2 +- .../test_utils/struct.CleanupDropGuard.html | 2 +- .../test_utils/struct.DnsPkarrServer.html | 2 +- pr/3170/docs/iroh/type.NodeId.html | 2 +- pr/3170/docs/iroh/watchable/index.html | 2 +- .../iroh/watchable/struct.Disconnected.html | 2 +- .../watchable/struct.WatchInitializedFut.html | 2 +- .../iroh/watchable/struct.WatchNextFut.html | 2 +- .../docs/iroh/watchable/struct.Watchable.html | 2 +- .../docs/iroh/watchable/struct.Watcher.html | 2 +- .../iroh/watchable/struct.WatcherStream.html | 2 +- pr/3170/docs/src/iroh/endpoint.rs.html | 36 +++++----- pr/3170/docs/src/iroh/magicsock.rs.html | 24 +++---- 156 files changed, 257 insertions(+), 258 deletions(-) diff --git a/pr/3170/docs/iroh/all.html b/pr/3170/docs/iroh/all.html index c298558233..02f945c886 100644 --- a/pr/3170/docs/iroh/all.html +++ b/pr/3170/docs/iroh/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Traits

Functions

Type Aliases

Constants

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

List of all items

Structs

Enums

Traits

Functions

Type Aliases

Constants

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

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
iroh::defaults

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/3170/docs/iroh/defaults/constant.DEFAULT_HTTP_PORT.html b/pr/3170/docs/iroh/defaults/constant.DEFAULT_HTTP_PORT.html index 29e02301b2..63c2c19df4 100644 --- a/pr/3170/docs/iroh/defaults/constant.DEFAULT_HTTP_PORT.html +++ b/pr/3170/docs/iroh/defaults/constant.DEFAULT_HTTP_PORT.html @@ -1,2 +1,2 @@ -DEFAULT_HTTP_PORT in iroh::defaults - Rust
iroh::defaults

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
iroh::defaults

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/3170/docs/iroh/defaults/constant.DEFAULT_METRICS_PORT.html b/pr/3170/docs/iroh/defaults/constant.DEFAULT_METRICS_PORT.html index b4cdd66a3a..9870468571 100644 --- a/pr/3170/docs/iroh/defaults/constant.DEFAULT_METRICS_PORT.html +++ b/pr/3170/docs/iroh/defaults/constant.DEFAULT_METRICS_PORT.html @@ -1,2 +1,2 @@ -DEFAULT_METRICS_PORT in iroh::defaults - Rust
iroh::defaults

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
iroh::defaults

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/3170/docs/iroh/defaults/constant.DEFAULT_RELAY_QUIC_PORT.html b/pr/3170/docs/iroh/defaults/constant.DEFAULT_RELAY_QUIC_PORT.html index b686974cb5..71c84370b2 100644 --- a/pr/3170/docs/iroh/defaults/constant.DEFAULT_RELAY_QUIC_PORT.html +++ b/pr/3170/docs/iroh/defaults/constant.DEFAULT_RELAY_QUIC_PORT.html @@ -1,4 +1,4 @@ -DEFAULT_RELAY_QUIC_PORT in iroh::defaults - Rust
iroh::defaults

Constant DEFAULT_RELAY_QUIC_PORT

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

iroh::defaults

Constant DEFAULT_RELAY_QUIC_PORT

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/3170/docs/iroh/defaults/constant.DEFAULT_STUN_PORT.html b/pr/3170/docs/iroh/defaults/constant.DEFAULT_STUN_PORT.html index 56b5ec8f28..a803eee012 100644 --- a/pr/3170/docs/iroh/defaults/constant.DEFAULT_STUN_PORT.html +++ b/pr/3170/docs/iroh/defaults/constant.DEFAULT_STUN_PORT.html @@ -1,4 +1,4 @@ -DEFAULT_STUN_PORT in iroh::defaults - Rust

iroh::defaults

Constant DEFAULT_STUN_PORT

pub const DEFAULT_STUN_PORT: u16 = 3478; // 3_478u16
Expand description

The default STUN port used by the Relay server.

+DEFAULT_STUN_PORT in iroh::defaults - Rust
iroh::defaults

Constant DEFAULT_STUN_PORT

pub const DEFAULT_STUN_PORT: u16 = 3478; // 3_478u16
Expand description

The default STUN port used by the Relay server.

The STUN port as defined by RFC 8489 The default STUN port used by the Relay server.

diff --git a/pr/3170/docs/iroh/defaults/index.html b/pr/3170/docs/iroh/defaults/index.html index ee33782d27..9bf79cb544 100644 --- a/pr/3170/docs/iroh/defaults/index.html +++ b/pr/3170/docs/iroh/defaults/index.html @@ -1,3 +1,3 @@ -iroh::defaults - Rust
iroh

Module defaults

Source
Expand description

Default values used in iroh

+iroh::defaults - Rust
iroh

Module defaults

Source
Expand description

Default values used in iroh

Modules§

  • Production configuration.
  • Staging configuration.

Constants§

\ No newline at end of file diff --git a/pr/3170/docs/iroh/defaults/prod/constant.AP_RELAY_HOSTNAME.html b/pr/3170/docs/iroh/defaults/prod/constant.AP_RELAY_HOSTNAME.html index dcbd852c59..a2785aee3d 100644 --- a/pr/3170/docs/iroh/defaults/prod/constant.AP_RELAY_HOSTNAME.html +++ b/pr/3170/docs/iroh/defaults/prod/constant.AP_RELAY_HOSTNAME.html @@ -1,2 +1,2 @@ -AP_RELAY_HOSTNAME in iroh::defaults::prod - Rust
iroh::defaults::prod

Constant AP_RELAY_HOSTNAME

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

Hostname of the default Asia-Pacific relay.

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

Constant AP_RELAY_HOSTNAME

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

Hostname of the default Asia-Pacific relay.

\ No newline at end of file diff --git a/pr/3170/docs/iroh/defaults/prod/constant.EU_RELAY_HOSTNAME.html b/pr/3170/docs/iroh/defaults/prod/constant.EU_RELAY_HOSTNAME.html index 9dd18f600c..d174e8b419 100644 --- a/pr/3170/docs/iroh/defaults/prod/constant.EU_RELAY_HOSTNAME.html +++ b/pr/3170/docs/iroh/defaults/prod/constant.EU_RELAY_HOSTNAME.html @@ -1,2 +1,2 @@ -EU_RELAY_HOSTNAME in iroh::defaults::prod - Rust
iroh::defaults::prod

Constant EU_RELAY_HOSTNAME

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

Hostname of the default EU relay.

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

Constant EU_RELAY_HOSTNAME

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

Hostname of the default EU relay.

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

Constant NA_RELAY_HOSTNAME

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

Hostname of the default NA relay.

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

Constant NA_RELAY_HOSTNAME

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

Hostname of the default NA relay.

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

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
iroh::defaults::prod

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/3170/docs/iroh/defaults/prod/fn.default_eu_relay_node.html b/pr/3170/docs/iroh/defaults/prod/fn.default_eu_relay_node.html index 3f346620ba..8d48b075b9 100644 --- a/pr/3170/docs/iroh/defaults/prod/fn.default_eu_relay_node.html +++ b/pr/3170/docs/iroh/defaults/prod/fn.default_eu_relay_node.html @@ -1,2 +1,2 @@ -default_eu_relay_node in iroh::defaults::prod - Rust
iroh::defaults::prod

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
iroh::defaults::prod

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/3170/docs/iroh/defaults/prod/fn.default_na_relay_node.html b/pr/3170/docs/iroh/defaults/prod/fn.default_na_relay_node.html index 915b866a84..a24ecfd1ac 100644 --- a/pr/3170/docs/iroh/defaults/prod/fn.default_na_relay_node.html +++ b/pr/3170/docs/iroh/defaults/prod/fn.default_na_relay_node.html @@ -1,2 +1,2 @@ -default_na_relay_node in iroh::defaults::prod - Rust
iroh::defaults::prod

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
iroh::defaults::prod

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/3170/docs/iroh/defaults/prod/fn.default_relay_map.html b/pr/3170/docs/iroh/defaults/prod/fn.default_relay_map.html index 21966839cf..bb2e5bc4b1 100644 --- a/pr/3170/docs/iroh/defaults/prod/fn.default_relay_map.html +++ b/pr/3170/docs/iroh/defaults/prod/fn.default_relay_map.html @@ -1,2 +1,2 @@ -default_relay_map in iroh::defaults::prod - Rust
iroh::defaults::prod

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
iroh::defaults::prod

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/3170/docs/iroh/defaults/prod/index.html b/pr/3170/docs/iroh/defaults/prod/index.html index e8036a1f51..1908cef9f8 100644 --- a/pr/3170/docs/iroh/defaults/prod/index.html +++ b/pr/3170/docs/iroh/defaults/prod/index.html @@ -1,2 +1,2 @@ -iroh::defaults::prod - Rust
iroh::defaults

Module prod

Source
Expand description

Production configuration.

+iroh::defaults::prod - Rust
iroh::defaults

Module prod

Source
Expand description

Production configuration.

Constants§

Functions§

\ No newline at end of file diff --git a/pr/3170/docs/iroh/defaults/staging/constant.EU_RELAY_HOSTNAME.html b/pr/3170/docs/iroh/defaults/staging/constant.EU_RELAY_HOSTNAME.html index a144715289..e8cf760a22 100644 --- a/pr/3170/docs/iroh/defaults/staging/constant.EU_RELAY_HOSTNAME.html +++ b/pr/3170/docs/iroh/defaults/staging/constant.EU_RELAY_HOSTNAME.html @@ -1,2 +1,2 @@ -EU_RELAY_HOSTNAME in iroh::defaults::staging - Rust
iroh::defaults::staging

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
iroh::defaults::staging

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/3170/docs/iroh/defaults/staging/constant.NA_RELAY_HOSTNAME.html b/pr/3170/docs/iroh/defaults/staging/constant.NA_RELAY_HOSTNAME.html index 1dd7d86cf0..2c039ec543 100644 --- a/pr/3170/docs/iroh/defaults/staging/constant.NA_RELAY_HOSTNAME.html +++ b/pr/3170/docs/iroh/defaults/staging/constant.NA_RELAY_HOSTNAME.html @@ -1,2 +1,2 @@ -NA_RELAY_HOSTNAME in iroh::defaults::staging - Rust
iroh::defaults::staging

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
iroh::defaults::staging

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/3170/docs/iroh/defaults/staging/fn.default_eu_relay_node.html b/pr/3170/docs/iroh/defaults/staging/fn.default_eu_relay_node.html index c0e69c11d0..71e1e5166c 100644 --- a/pr/3170/docs/iroh/defaults/staging/fn.default_eu_relay_node.html +++ b/pr/3170/docs/iroh/defaults/staging/fn.default_eu_relay_node.html @@ -1,2 +1,2 @@ -default_eu_relay_node in iroh::defaults::staging - Rust
iroh::defaults::staging

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
iroh::defaults::staging

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/3170/docs/iroh/defaults/staging/fn.default_na_relay_node.html b/pr/3170/docs/iroh/defaults/staging/fn.default_na_relay_node.html index 0dcea0998c..7f3ac608d9 100644 --- a/pr/3170/docs/iroh/defaults/staging/fn.default_na_relay_node.html +++ b/pr/3170/docs/iroh/defaults/staging/fn.default_na_relay_node.html @@ -1,2 +1,2 @@ -default_na_relay_node in iroh::defaults::staging - Rust
iroh::defaults::staging

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
iroh::defaults::staging

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/3170/docs/iroh/defaults/staging/fn.default_relay_map.html b/pr/3170/docs/iroh/defaults/staging/fn.default_relay_map.html index eaf7ff68c3..489dd99ee6 100644 --- a/pr/3170/docs/iroh/defaults/staging/fn.default_relay_map.html +++ b/pr/3170/docs/iroh/defaults/staging/fn.default_relay_map.html @@ -1,2 +1,2 @@ -default_relay_map in iroh::defaults::staging - Rust
iroh::defaults::staging

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
iroh::defaults::staging

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/3170/docs/iroh/defaults/staging/index.html b/pr/3170/docs/iroh/defaults/staging/index.html index 4d991b2d23..875852669c 100644 --- a/pr/3170/docs/iroh/defaults/staging/index.html +++ b/pr/3170/docs/iroh/defaults/staging/index.html @@ -1,4 +1,4 @@ -iroh::defaults::staging - Rust
iroh::defaults

Module staging

Source
Expand description

Staging configuration.

+iroh::defaults::staging - Rust
iroh::defaults

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§

Functions§

\ No newline at end of file diff --git a/pr/3170/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html b/pr/3170/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html index b21806ba08..d6586485a2 100644 --- a/pr/3170/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_PROD.html +++ b/pr/3170/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
iroh::discovery::dns

Constant N0_DNS_NODE_ORIGIN_PROD

Source
pub const N0_DNS_NODE_ORIGIN_PROD: &str = "dns.iroh.link";
Expand description

The n0 testing DNS node origin, for production.

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

Constant N0_DNS_NODE_ORIGIN_PROD

Source
pub const N0_DNS_NODE_ORIGIN_PROD: &str = "dns.iroh.link";
Expand description

The n0 testing DNS node origin, for production.

\ No newline at end of file diff --git a/pr/3170/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html b/pr/3170/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html index 9b5452ba45..1a99f50f66 100644 --- a/pr/3170/docs/iroh/discovery/dns/constant.N0_DNS_NODE_ORIGIN_STAGING.html +++ b/pr/3170/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
iroh::discovery::dns

Constant N0_DNS_NODE_ORIGIN_STAGING

Source
pub const N0_DNS_NODE_ORIGIN_STAGING: &str = "staging-dns.iroh.link";
Expand description

The n0 testing DNS node origin, for testing.

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

Constant N0_DNS_NODE_ORIGIN_STAGING

Source
pub const N0_DNS_NODE_ORIGIN_STAGING: &str = "staging-dns.iroh.link";
Expand description

The n0 testing DNS node origin, for testing.

\ No newline at end of file diff --git a/pr/3170/docs/iroh/discovery/dns/index.html b/pr/3170/docs/iroh/discovery/dns/index.html index 70425512d8..e9075255bf 100644 --- a/pr/3170/docs/iroh/discovery/dns/index.html +++ b/pr/3170/docs/iroh/discovery/dns/index.html @@ -1,2 +1,2 @@ -iroh::discovery::dns - Rust
iroh::discovery

Module dns

Source
Expand description

DNS node discovery for iroh

+iroh::discovery::dns - Rust
iroh::discovery

Module dns

Source
Expand description

DNS node discovery for iroh

Structs§

Constants§

\ No newline at end of file diff --git a/pr/3170/docs/iroh/discovery/dns/struct.DnsDiscovery.html b/pr/3170/docs/iroh/discovery/dns/struct.DnsDiscovery.html index 50c2057af0..57e5427c62 100644 --- a/pr/3170/docs/iroh/discovery/dns/struct.DnsDiscovery.html +++ b/pr/3170/docs/iroh/discovery/dns/struct.DnsDiscovery.html @@ -1,4 +1,4 @@ -DnsDiscovery in iroh::discovery::dns - Rust
iroh::discovery::dns

Struct DnsDiscovery

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

DNS node discovery

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

Struct DnsDiscovery

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

DNS node discovery

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

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

diff --git a/pr/3170/docs/iroh/discovery/index.html b/pr/3170/docs/iroh/discovery/index.html index 9ed4d8dfe9..da6f8148a6 100644 --- a/pr/3170/docs/iroh/discovery/index.html +++ b/pr/3170/docs/iroh/discovery/index.html @@ -1,4 +1,4 @@ -iroh::discovery - Rust
iroh

Module discovery

Source
Expand description

Node address discovery.

+iroh::discovery - Rust
iroh

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/3170/docs/iroh/discovery/local_swarm_discovery/constant.NAME.html b/pr/3170/docs/iroh/discovery/local_swarm_discovery/constant.NAME.html index 595cbe0e55..7bbaacda8a 100644 --- a/pr/3170/docs/iroh/discovery/local_swarm_discovery/constant.NAME.html +++ b/pr/3170/docs/iroh/discovery/local_swarm_discovery/constant.NAME.html @@ -1,4 +1,4 @@ -NAME in iroh::discovery::local_swarm_discovery - Rust

iroh::discovery::local_swarm_discovery

Constant NAME

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

Name of this discovery service.

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

Constant NAME

Source
pub const NAME: &str = "local.swarm.discovery";
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/3170/docs/iroh/discovery/local_swarm_discovery/index.html b/pr/3170/docs/iroh/discovery/local_swarm_discovery/index.html index e80ff40686..0b973f308f 100644 --- a/pr/3170/docs/iroh/discovery/local_swarm_discovery/index.html +++ b/pr/3170/docs/iroh/discovery/local_swarm_discovery/index.html @@ -1,4 +1,4 @@ -iroh::discovery::local_swarm_discovery - Rust
iroh::discovery

Module local_swarm_discovery

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::local_swarm_discovery - Rust
iroh::discovery

Module local_swarm_discovery

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 LocalSwarmDiscovery is enabled, it’s possible to get a list of the locally discovered nodes by filtering a list of RemoteInfos.

diff --git a/pr/3170/docs/iroh/discovery/local_swarm_discovery/struct.LocalSwarmDiscovery.html b/pr/3170/docs/iroh/discovery/local_swarm_discovery/struct.LocalSwarmDiscovery.html index 212c48a995..16561c5f2e 100644 --- a/pr/3170/docs/iroh/discovery/local_swarm_discovery/struct.LocalSwarmDiscovery.html +++ b/pr/3170/docs/iroh/discovery/local_swarm_discovery/struct.LocalSwarmDiscovery.html @@ -1,4 +1,4 @@ -LocalSwarmDiscovery in iroh::discovery::local_swarm_discovery - Rust
iroh::discovery::local_swarm_discovery

Struct LocalSwarmDiscovery

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

Discovery using swarm-discovery, a variation on mdns

+LocalSwarmDiscovery in iroh::discovery::local_swarm_discovery - Rust
iroh::discovery::local_swarm_discovery

Struct LocalSwarmDiscovery

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

Discovery using swarm-discovery, a variation on mdns

Implementations§

Source§

impl LocalSwarmDiscovery

Source

pub fn new(node_id: NodeId) -> Result<Self>

Create a new LocalSwarmDiscovery Service.

This starts a [Discoverer] that broadcasts your addresses and receives addresses from other nodes in your local network.

§Errors
diff --git a/pr/3170/docs/iroh/discovery/pkarr/constant.DEFAULT_PKARR_TTL.html b/pr/3170/docs/iroh/discovery/pkarr/constant.DEFAULT_PKARR_TTL.html index a47ef9bfcc..574abe3197 100644 --- a/pr/3170/docs/iroh/discovery/pkarr/constant.DEFAULT_PKARR_TTL.html +++ b/pr/3170/docs/iroh/discovery/pkarr/constant.DEFAULT_PKARR_TTL.html @@ -1,4 +1,4 @@ -DEFAULT_PKARR_TTL in iroh::discovery::pkarr - Rust
iroh::discovery::pkarr

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
iroh::discovery::pkarr

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/3170/docs/iroh/discovery/pkarr/constant.DEFAULT_REPUBLISH_INTERVAL.html b/pr/3170/docs/iroh/discovery/pkarr/constant.DEFAULT_REPUBLISH_INTERVAL.html index 335a6255a6..b16c0a0bb9 100644 --- a/pr/3170/docs/iroh/discovery/pkarr/constant.DEFAULT_REPUBLISH_INTERVAL.html +++ b/pr/3170/docs/iroh/discovery/pkarr/constant.DEFAULT_REPUBLISH_INTERVAL.html @@ -1,2 +1,2 @@ -DEFAULT_REPUBLISH_INTERVAL in iroh::discovery::pkarr - Rust

iroh::discovery::pkarr

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
iroh::discovery::pkarr

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/3170/docs/iroh/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_PROD.html b/pr/3170/docs/iroh/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_PROD.html index 90e55c707d..54ccb20846 100644 --- a/pr/3170/docs/iroh/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_PROD.html +++ b/pr/3170/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
iroh::discovery::pkarr

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
iroh::discovery::pkarr

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/3170/docs/iroh/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_STAGING.html b/pr/3170/docs/iroh/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_STAGING.html index 6baa4b84c8..3b9f89a9b5 100644 --- a/pr/3170/docs/iroh/discovery/pkarr/constant.N0_DNS_PKARR_RELAY_STAGING.html +++ b/pr/3170/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
iroh::discovery::pkarr

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
iroh::discovery::pkarr

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/3170/docs/iroh/discovery/pkarr/dht/index.html b/pr/3170/docs/iroh/discovery/pkarr/dht/index.html index 248a055817..b080e00020 100644 --- a/pr/3170/docs/iroh/discovery/pkarr/dht/index.html +++ b/pr/3170/docs/iroh/discovery/pkarr/dht/index.html @@ -1,4 +1,4 @@ -iroh::discovery::pkarr::dht - Rust
iroh::discovery::pkarr

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
iroh::discovery::pkarr

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/3170/docs/iroh/discovery/pkarr/dht/struct.Builder.html b/pr/3170/docs/iroh/discovery/pkarr/dht/struct.Builder.html index 15a0a1f6cf..623f11b3df 100644 --- a/pr/3170/docs/iroh/discovery/pkarr/dht/struct.Builder.html +++ b/pr/3170/docs/iroh/discovery/pkarr/dht/struct.Builder.html @@ -1,4 +1,4 @@ -Builder in iroh::discovery::pkarr::dht - Rust
iroh::discovery::pkarr::dht

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
iroh::discovery::pkarr::dht

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/3170/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html b/pr/3170/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html index 74618afa2e..358f408f9b 100644 --- a/pr/3170/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html +++ b/pr/3170/docs/iroh/discovery/pkarr/dht/struct.DhtDiscovery.html @@ -1,4 +1,4 @@ -DhtDiscovery in iroh::discovery::pkarr::dht - Rust
iroh::discovery::pkarr::dht

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
iroh::discovery::pkarr::dht

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/3170/docs/iroh/discovery/pkarr/index.html b/pr/3170/docs/iroh/discovery/pkarr/index.html index c4c3fdad12..c5783d9206 100644 --- a/pr/3170/docs/iroh/discovery/pkarr/index.html +++ b/pr/3170/docs/iroh/discovery/pkarr/index.html @@ -1,4 +1,4 @@ -iroh::discovery::pkarr - Rust

iroh::discovery

Module pkarr

Source
Expand description

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

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

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/3170/docs/iroh/discovery/pkarr/struct.PkarrPublisher.html b/pr/3170/docs/iroh/discovery/pkarr/struct.PkarrPublisher.html index 5154ea3c7b..9bf5ac78fc 100644 --- a/pr/3170/docs/iroh/discovery/pkarr/struct.PkarrPublisher.html +++ b/pr/3170/docs/iroh/discovery/pkarr/struct.PkarrPublisher.html @@ -1,4 +1,4 @@ -PkarrPublisher in iroh::discovery::pkarr - Rust

iroh::discovery::pkarr

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
iroh::discovery::pkarr

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/3170/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html b/pr/3170/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html index 56f8e4a17e..52a72ae5df 100644 --- a/pr/3170/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html +++ b/pr/3170/docs/iroh/discovery/pkarr/struct.PkarrRelayClient.html @@ -1,4 +1,4 @@ -PkarrRelayClient in iroh::discovery::pkarr - Rust

iroh::discovery::pkarr

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
iroh::discovery::pkarr

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 async fn resolve(&self, node_id: NodeId) -> Result<SignedPacket>

Resolves a [SignedPacket] for the given NodeId.

Source

pub async fn publish(&self, signed_packet: &SignedPacket) -> Result<()>

Publishes a [SignedPacket].

diff --git a/pr/3170/docs/iroh/discovery/pkarr/struct.PkarrResolver.html b/pr/3170/docs/iroh/discovery/pkarr/struct.PkarrResolver.html index ff709c7df3..caa53efa97 100644 --- a/pr/3170/docs/iroh/discovery/pkarr/struct.PkarrResolver.html +++ b/pr/3170/docs/iroh/discovery/pkarr/struct.PkarrResolver.html @@ -1,4 +1,4 @@ -PkarrResolver in iroh::discovery::pkarr - Rust
iroh::discovery::pkarr

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
iroh::discovery::pkarr

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/3170/docs/iroh/discovery/static_provider/index.html b/pr/3170/docs/iroh/discovery/static_provider/index.html index 06afde3733..936a95f21e 100644 --- a/pr/3170/docs/iroh/discovery/static_provider/index.html +++ b/pr/3170/docs/iroh/discovery/static_provider/index.html @@ -1,4 +1,4 @@ -iroh::discovery::static_provider - Rust

iroh::discovery

Module static_provider

Source
Expand description

A static node discovery to manually add node addressing information.

+iroh::discovery::static_provider - Rust
iroh::discovery

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/3170/docs/iroh/discovery/static_provider/struct.StaticProvider.html b/pr/3170/docs/iroh/discovery/static_provider/struct.StaticProvider.html index 6d929f479f..9a286832a8 100644 --- a/pr/3170/docs/iroh/discovery/static_provider/struct.StaticProvider.html +++ b/pr/3170/docs/iroh/discovery/static_provider/struct.StaticProvider.html @@ -1,4 +1,4 @@ -StaticProvider in iroh::discovery::static_provider - Rust

iroh::discovery::static_provider

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
iroh::discovery::static_provider

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/3170/docs/iroh/discovery/struct.ConcurrentDiscovery.html b/pr/3170/docs/iroh/discovery/struct.ConcurrentDiscovery.html index 5e4f7d6f41..107d9b4c43 100644 --- a/pr/3170/docs/iroh/discovery/struct.ConcurrentDiscovery.html +++ b/pr/3170/docs/iroh/discovery/struct.ConcurrentDiscovery.html @@ -1,4 +1,4 @@ -ConcurrentDiscovery in iroh::discovery - Rust

iroh::discovery

Struct ConcurrentDiscovery

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

A discovery service that combines multiple discovery sources.

+ConcurrentDiscovery in iroh::discovery - Rust
iroh::discovery

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/3170/docs/iroh/discovery/struct.DiscoveryItem.html b/pr/3170/docs/iroh/discovery/struct.DiscoveryItem.html index 7a7d0c3871..e05228110a 100644 --- a/pr/3170/docs/iroh/discovery/struct.DiscoveryItem.html +++ b/pr/3170/docs/iroh/discovery/struct.DiscoveryItem.html @@ -1,4 +1,4 @@ -DiscoveryItem in iroh::discovery - Rust
iroh::discovery

Struct DiscoveryItem

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

Struct DiscoveryItem

Source
pub struct DiscoveryItem {
     pub node_addr: NodeAddr,
     pub provenance: &'static str,
     pub last_updated: Option<u64>,
diff --git a/pr/3170/docs/iroh/discovery/trait.Discovery.html b/pr/3170/docs/iroh/discovery/trait.Discovery.html
index 10eac14c62..d788160db0 100644
--- a/pr/3170/docs/iroh/discovery/trait.Discovery.html
+++ b/pr/3170/docs/iroh/discovery/trait.Discovery.html
@@ -1,4 +1,4 @@
-Discovery in iroh::discovery - Rust
iroh::discovery

Trait Discovery

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

Trait Discovery

Source
pub trait Discovery:
     Debug
     + Send
     + Sync {
diff --git a/pr/3170/docs/iroh/dns/fn.default_resolver.html b/pr/3170/docs/iroh/dns/fn.default_resolver.html
index 8204552144..63d6b5ff43 100644
--- a/pr/3170/docs/iroh/dns/fn.default_resolver.html
+++ b/pr/3170/docs/iroh/dns/fn.default_resolver.html
@@ -1,4 +1,4 @@
-default_resolver in iroh::dns - Rust
iroh::dns

Function default_resolver

Source
pub fn default_resolver() -> &'static DnsResolver
Expand description

Get a reference to the default DNS resolver.

+default_resolver in iroh::dns - Rust
iroh::dns

Function default_resolver

Source
pub fn default_resolver() -> &'static DnsResolver
Expand description

Get a reference to the default DNS resolver.

The default resolver can be cheaply cloned and is shared throughout the running process. It is configured to use the system’s DNS configuration.

\ No newline at end of file diff --git a/pr/3170/docs/iroh/dns/fn.resolver.html b/pr/3170/docs/iroh/dns/fn.resolver.html index 67f0636276..b0d0f39f1f 100644 --- a/pr/3170/docs/iroh/dns/fn.resolver.html +++ b/pr/3170/docs/iroh/dns/fn.resolver.html @@ -1,2 +1,2 @@ -resolver in iroh::dns - Rust
iroh::dns

Function resolver

Source
pub fn resolver() -> &'static TokioResolver
Expand description

Get the DNS resolver used within iroh.

+resolver in iroh::dns - Rust
iroh::dns

Function resolver

Source
pub fn resolver() -> &'static TokioResolver
Expand description

Get the DNS resolver used within iroh.

\ No newline at end of file diff --git a/pr/3170/docs/iroh/dns/index.html b/pr/3170/docs/iroh/dns/index.html index b337fd9cd7..4778c2cebc 100644 --- a/pr/3170/docs/iroh/dns/index.html +++ b/pr/3170/docs/iroh/dns/index.html @@ -1,4 +1,4 @@ -iroh::dns - Rust
iroh

Module dns

Source
Expand description

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

iroh

Module dns

Source
Expand description

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

It also exports ResolverExt: A extension trait over DnsResolver to perform DNS queries by ipv4, ipv6, name and node_id. See the node_info module documentation for details on how diff --git a/pr/3170/docs/iroh/dns/node_info/constant.IROH_TXT_NAME.html b/pr/3170/docs/iroh/dns/node_info/constant.IROH_TXT_NAME.html index 1eb1cf5077..c8529e0830 100644 --- a/pr/3170/docs/iroh/dns/node_info/constant.IROH_TXT_NAME.html +++ b/pr/3170/docs/iroh/dns/node_info/constant.IROH_TXT_NAME.html @@ -1,2 +1,2 @@ -IROH_TXT_NAME in iroh::dns::node_info - Rust

iroh::dns::node_info

Constant IROH_TXT_NAME

Source
pub const IROH_TXT_NAME: &str = "_iroh";
Expand description

The DNS name for the iroh TXT record.

+IROH_TXT_NAME in iroh::dns::node_info - Rust
iroh::dns::node_info

Constant IROH_TXT_NAME

Source
pub const IROH_TXT_NAME: &str = "_iroh";
Expand description

The DNS name for the iroh TXT record.

\ No newline at end of file diff --git a/pr/3170/docs/iroh/dns/node_info/enum.IrohAttr.html b/pr/3170/docs/iroh/dns/node_info/enum.IrohAttr.html index db39b2356a..3ca997898b 100644 --- a/pr/3170/docs/iroh/dns/node_info/enum.IrohAttr.html +++ b/pr/3170/docs/iroh/dns/node_info/enum.IrohAttr.html @@ -1,4 +1,4 @@ -IrohAttr in iroh::dns::node_info - Rust
iroh::dns::node_info

Enum IrohAttr

Source
pub enum IrohAttr {
+IrohAttr in iroh::dns::node_info - Rust
iroh::dns::node_info

Enum IrohAttr

Source
pub enum IrohAttr {
     Relay,
     Addr,
 }
Expand description

The attributes supported by iroh for IROH_TXT_NAME DNS resource records.

diff --git a/pr/3170/docs/iroh/dns/node_info/fn.from_z32.html b/pr/3170/docs/iroh/dns/node_info/fn.from_z32.html index a0c0eb4c74..f725e9a1f8 100644 --- a/pr/3170/docs/iroh/dns/node_info/fn.from_z32.html +++ b/pr/3170/docs/iroh/dns/node_info/fn.from_z32.html @@ -1,2 +1,2 @@ -from_z32 in iroh::dns::node_info - Rust
iroh::dns::node_info

Function from_z32

Source
pub fn from_z32(s: &str) -> Result<NodeId>
Expand description

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

+from_z32 in iroh::dns::node_info - Rust
iroh::dns::node_info

Function from_z32

Source
pub fn from_z32(s: &str) -> Result<NodeId>
Expand description

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

\ No newline at end of file diff --git a/pr/3170/docs/iroh/dns/node_info/fn.to_z32.html b/pr/3170/docs/iroh/dns/node_info/fn.to_z32.html index d59a641f46..89a8e61c99 100644 --- a/pr/3170/docs/iroh/dns/node_info/fn.to_z32.html +++ b/pr/3170/docs/iroh/dns/node_info/fn.to_z32.html @@ -1,2 +1,2 @@ -to_z32 in iroh::dns::node_info - Rust
iroh::dns::node_info

Function to_z32

Source
pub fn to_z32(node_id: &NodeId) -> String
Expand description

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

+to_z32 in iroh::dns::node_info - Rust
iroh::dns::node_info

Function to_z32

Source
pub fn to_z32(node_id: &NodeId) -> String
Expand description

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

\ No newline at end of file diff --git a/pr/3170/docs/iroh/dns/node_info/index.html b/pr/3170/docs/iroh/dns/node_info/index.html index a6a0d2b5fa..d45a22095f 100644 --- a/pr/3170/docs/iroh/dns/node_info/index.html +++ b/pr/3170/docs/iroh/dns/node_info/index.html @@ -1,4 +1,4 @@ -iroh::dns::node_info - Rust
iroh::dns

Module node_info

Source
Expand description

Support for handling DNS resource records for dialing by NodeId.

+iroh::dns::node_info - Rust
iroh::dns

Module node_info

Source
Expand description

Support for handling DNS resource records for dialing by NodeId.

Dialing by NodeId is supported by iroh nodes publishing Pkarr records to DNS servers or the Mainline DHT. This module supports creating and parsing these records.

DNS records are published under the following names:

diff --git a/pr/3170/docs/iroh/dns/node_info/struct.NodeInfo.html b/pr/3170/docs/iroh/dns/node_info/struct.NodeInfo.html index a7dbce8f21..e11b2ed94c 100644 --- a/pr/3170/docs/iroh/dns/node_info/struct.NodeInfo.html +++ b/pr/3170/docs/iroh/dns/node_info/struct.NodeInfo.html @@ -1,4 +1,4 @@ -NodeInfo in iroh::dns::node_info - Rust
iroh::dns::node_info

Struct NodeInfo

Source
pub struct NodeInfo {
+NodeInfo in iroh::dns::node_info - Rust
iroh::dns::node_info

Struct NodeInfo

Source
pub struct NodeInfo {
     pub node_id: NodeId,
     pub relay_url: Option<Url>,
     pub direct_addresses: BTreeSet<SocketAddr>,
diff --git a/pr/3170/docs/iroh/dns/node_info/struct.TxtAttrs.html b/pr/3170/docs/iroh/dns/node_info/struct.TxtAttrs.html
index bb79cb5f50..941fafa0e2 100644
--- a/pr/3170/docs/iroh/dns/node_info/struct.TxtAttrs.html
+++ b/pr/3170/docs/iroh/dns/node_info/struct.TxtAttrs.html
@@ -1,4 +1,4 @@
-TxtAttrs in iroh::dns::node_info - Rust
iroh::dns::node_info

Struct TxtAttrs

Source
pub struct TxtAttrs<T> { /* private fields */ }
Expand description

Attributes parsed from IROH_TXT_NAME TXT records.

+TxtAttrs in iroh::dns::node_info - Rust
iroh::dns::node_info

Struct TxtAttrs

Source
pub struct TxtAttrs<T> { /* private fields */ }
Expand description

Attributes parsed from IROH_TXT_NAME TXT records.

This struct is generic over the key type. When using with String, this will parse all attributes. Can also be used with an enum, if it implements FromStr and Display.

diff --git a/pr/3170/docs/iroh/dns/trait.ResolverExt.html b/pr/3170/docs/iroh/dns/trait.ResolverExt.html index 62a54712e4..619173c968 100644 --- a/pr/3170/docs/iroh/dns/trait.ResolverExt.html +++ b/pr/3170/docs/iroh/dns/trait.ResolverExt.html @@ -1,4 +1,4 @@ -ResolverExt in iroh::dns - Rust
iroh::dns

Trait ResolverExt

Source
pub trait ResolverExt {
+ResolverExt in iroh::dns - Rust
iroh::dns

Trait ResolverExt

Source
pub trait ResolverExt {
     // Required methods
     fn lookup_ipv4<N: IntoName>(
         &self,
diff --git a/pr/3170/docs/iroh/dns/type.DnsResolver.html b/pr/3170/docs/iroh/dns/type.DnsResolver.html
index 327b0b6fc6..1983fa4fbc 100644
--- a/pr/3170/docs/iroh/dns/type.DnsResolver.html
+++ b/pr/3170/docs/iroh/dns/type.DnsResolver.html
@@ -1,4 +1,4 @@
-DnsResolver in iroh::dns - Rust
iroh::dns

Type Alias DnsResolver

Source
pub type DnsResolver = TokioResolver;
Expand description

The DNS resolver type used throughout iroh.

+DnsResolver in iroh::dns - Rust
iroh::dns

Type Alias DnsResolver

Source
pub type DnsResolver = TokioResolver;
Expand description

The DNS resolver type used throughout iroh.

Aliased Type§

struct DnsResolver { /* private fields */ }

Trait Implementations§

Source§

impl ResolverExt for DnsResolver

Source§

async fn lookup_ipv4_ipv6<N: IntoName + Clone>( &self, host: N, diff --git a/pr/3170/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html b/pr/3170/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html index 46d541f0f6..3013e4f030 100644 --- a/pr/3170/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html +++ b/pr/3170/docs/iroh/endpoint/constant.ENV_FORCE_STAGING_RELAYS.html @@ -1,2 +1,2 @@ -ENV_FORCE_STAGING_RELAYS in iroh::endpoint - Rust
iroh::endpoint

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
iroh::endpoint

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/3170/docs/iroh/endpoint/enum.ConnectionError.html b/pr/3170/docs/iroh/endpoint/enum.ConnectionError.html index 99185edd33..5bca0007c5 100644 --- a/pr/3170/docs/iroh/endpoint/enum.ConnectionError.html +++ b/pr/3170/docs/iroh/endpoint/enum.ConnectionError.html @@ -1,4 +1,4 @@ -ConnectionError in iroh::endpoint - Rust
iroh::endpoint

Enum ConnectionError

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

Enum ConnectionError

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

Enum ConnectionType

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

Enum ConnectionType

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

Enum ControlMsg

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

Enum ControlMsg

Source
pub enum ControlMsg {
     Ping,
     Pong,
     CallMeMaybe,
diff --git a/pr/3170/docs/iroh/endpoint/enum.DirectAddrType.html b/pr/3170/docs/iroh/endpoint/enum.DirectAddrType.html
index 0fa3a81e66..19d3f0c0da 100644
--- a/pr/3170/docs/iroh/endpoint/enum.DirectAddrType.html
+++ b/pr/3170/docs/iroh/endpoint/enum.DirectAddrType.html
@@ -1,4 +1,4 @@
-DirectAddrType in iroh::endpoint - Rust
iroh::endpoint

Enum DirectAddrType

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

Enum DirectAddrType

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

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

-

Trait Implementations§

Source§

impl Clone for DirectAddrType

Source§

fn clone(&self) -> DirectAddrType

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DirectAddrType

Source§

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

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

impl Display for DirectAddrType

Source§

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

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

impl Hash for DirectAddrType

Source§

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

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

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

Trait Implementations§

Source§

impl Clone for DirectAddrType

Source§

fn clone(&self) -> DirectAddrType

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DirectAddrType

Source§

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

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

impl Display for DirectAddrType

Source§

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

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

impl Hash for DirectAddrType

Source§

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

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

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

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

impl Ord for DirectAddrType

Source§

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

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

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

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

impl Ord for DirectAddrType

Source§

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

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

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

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

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

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

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

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

impl PartialEq for DirectAddrType

Source§

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

Source§

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

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

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

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 DirectAddrType

Source§

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

Source§

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

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

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

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

impl Copy for DirectAddrType

Source§

impl Eq for DirectAddrType

Source§

impl StructuralPartialEq for DirectAddrType

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

impl Copy for DirectAddrType

Source§

impl Eq for DirectAddrType

Source§

impl StructuralPartialEq for DirectAddrType

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where 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/3170/docs/iroh/endpoint/enum.PathSelection.html b/pr/3170/docs/iroh/endpoint/enum.PathSelection.html index 8ea84562da..c440e0a703 100644 --- a/pr/3170/docs/iroh/endpoint/enum.PathSelection.html +++ b/pr/3170/docs/iroh/endpoint/enum.PathSelection.html @@ -1,4 +1,4 @@ -PathSelection in iroh::endpoint - Rust
iroh::endpoint

Enum PathSelection

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

Enum PathSelection

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

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

iroh::endpoint

Enum ReadError

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

Enum ReadError

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

Enum ReadExactError

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

Enum ReadExactError

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

Errors that arise from reading from a stream.

diff --git a/pr/3170/docs/iroh/endpoint/enum.ReadToEndError.html b/pr/3170/docs/iroh/endpoint/enum.ReadToEndError.html index edb52b7d85..7d73e89727 100644 --- a/pr/3170/docs/iroh/endpoint/enum.ReadToEndError.html +++ b/pr/3170/docs/iroh/endpoint/enum.ReadToEndError.html @@ -1,4 +1,4 @@ -ReadToEndError in iroh::endpoint - Rust
iroh::endpoint

Enum ReadToEndError

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

Enum ReadToEndError

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

Errors from RecvStream::read_to_end

diff --git a/pr/3170/docs/iroh/endpoint/enum.RelayMode.html b/pr/3170/docs/iroh/endpoint/enum.RelayMode.html index 61512d73bf..4c89ef4856 100644 --- a/pr/3170/docs/iroh/endpoint/enum.RelayMode.html +++ b/pr/3170/docs/iroh/endpoint/enum.RelayMode.html @@ -1,4 +1,4 @@ -RelayMode in iroh::endpoint - Rust
iroh::endpoint

Enum RelayMode

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

Enum RelayMode

Source
pub enum RelayMode {
     Disabled,
     Default,
     Staging,
@@ -9,9 +9,9 @@
 

See crate::defaults::prod for the severs used.

§

Staging

Use the staging relay servers from n0.

§

Custom(RelayMap)

Use a custom relay map.

-

Implementations§

Source§

impl RelayMode

Source

pub fn relay_map(&self) -> RelayMap

Returns the relay map for this mode.

-

Trait Implementations§

Source§

impl Clone for RelayMode

Source§

fn clone(&self) -> RelayMode

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for RelayMode

Source§

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

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

impl PartialEq for RelayMode

Source§

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

Source§

impl StructuralPartialEq for RelayMode

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Implementations§

Source§

impl RelayMode

Source

pub fn relay_map(&self) -> RelayMap

Returns the relay map for this mode.

+

Trait Implementations§

Source§

impl Clone for RelayMode

Source§

fn clone(&self) -> RelayMode

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for RelayMode

Source§

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

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

impl PartialEq for RelayMode

Source§

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

Source§

impl StructuralPartialEq for RelayMode

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where 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/3170/docs/iroh/endpoint/enum.ResetError.html b/pr/3170/docs/iroh/endpoint/enum.ResetError.html index 6b58c7fc1a..c429817f42 100644 --- a/pr/3170/docs/iroh/endpoint/enum.ResetError.html +++ b/pr/3170/docs/iroh/endpoint/enum.ResetError.html @@ -1,4 +1,4 @@ -ResetError in iroh::endpoint - Rust
iroh::endpoint

Enum ResetError

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

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/3170/docs/iroh/endpoint/enum.SendDatagramError.html b/pr/3170/docs/iroh/endpoint/enum.SendDatagramError.html index e7d3df7729..33a7711802 100644 --- a/pr/3170/docs/iroh/endpoint/enum.SendDatagramError.html +++ b/pr/3170/docs/iroh/endpoint/enum.SendDatagramError.html @@ -1,4 +1,4 @@ -SendDatagramError in iroh::endpoint - Rust
iroh::endpoint

Enum SendDatagramError

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

Enum SendDatagramError

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

Enum Source

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

Enum Source

Source
pub enum Source {
     Saved,
     Udp,
     Relay,
diff --git a/pr/3170/docs/iroh/endpoint/enum.StoppedError.html b/pr/3170/docs/iroh/endpoint/enum.StoppedError.html
index afa924cc98..8355c6c7c7 100644
--- a/pr/3170/docs/iroh/endpoint/enum.StoppedError.html
+++ b/pr/3170/docs/iroh/endpoint/enum.StoppedError.html
@@ -1,4 +1,4 @@
-StoppedError in iroh::endpoint - Rust
iroh::endpoint

Enum StoppedError

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

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/3170/docs/iroh/endpoint/enum.WriteError.html b/pr/3170/docs/iroh/endpoint/enum.WriteError.html index 0f965dffe1..e96cde32e6 100644 --- a/pr/3170/docs/iroh/endpoint/enum.WriteError.html +++ b/pr/3170/docs/iroh/endpoint/enum.WriteError.html @@ -1,4 +1,4 @@ -WriteError in iroh::endpoint - Rust
iroh::endpoint

Enum WriteError

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

Enum WriteError

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

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
iroh::endpoint

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/3170/docs/iroh/endpoint/fn.force_staging_infra.html b/pr/3170/docs/iroh/endpoint/fn.force_staging_infra.html index 71e0f2af65..07d9765b91 100644 --- a/pr/3170/docs/iroh/endpoint/fn.force_staging_infra.html +++ b/pr/3170/docs/iroh/endpoint/fn.force_staging_infra.html @@ -1,2 +1,2 @@ -force_staging_infra in iroh::endpoint - Rust
iroh::endpoint

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
iroh::endpoint

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/3170/docs/iroh/endpoint/fn.make_server_config.html b/pr/3170/docs/iroh/endpoint/fn.make_server_config.html index 1e54bc84ce..8557d88fe9 100644 --- a/pr/3170/docs/iroh/endpoint/fn.make_server_config.html +++ b/pr/3170/docs/iroh/endpoint/fn.make_server_config.html @@ -1,4 +1,4 @@ -make_server_config in iroh::endpoint - Rust
iroh::endpoint

Function make_server_config

Source
pub fn make_server_config(
+make_server_config in iroh::endpoint - Rust
iroh::endpoint

Function make_server_config

Source
pub fn make_server_config(
     secret_key: &SecretKey,
     alpn_protocols: Vec<Vec<u8>>,
     transport_config: Arc<TransportConfig>,
diff --git a/pr/3170/docs/iroh/endpoint/index.html b/pr/3170/docs/iroh/endpoint/index.html
index afb0bc4a13..6ec485d51d 100644
--- a/pr/3170/docs/iroh/endpoint/index.html
+++ b/pr/3170/docs/iroh/endpoint/index.html
@@ -1,4 +1,4 @@
-iroh::endpoint - Rust
iroh

Module endpoint

Source
Expand description

The Endpoint allows establishing connections to other iroh nodes.

+iroh::endpoint - Rust
iroh

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/3170/docs/iroh/endpoint/struct.Accept.html b/pr/3170/docs/iroh/endpoint/struct.Accept.html index e4ada09b5f..b07cfe6a85 100644 --- a/pr/3170/docs/iroh/endpoint/struct.Accept.html +++ b/pr/3170/docs/iroh/endpoint/struct.Accept.html @@ -1,6 +1,6 @@ -Accept in iroh::endpoint - Rust
iroh::endpoint

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 +Accept in iroh::endpoint - Rust
iroh::endpoint

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 T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/3170/docs/iroh/endpoint/struct.AcceptBi.html b/pr/3170/docs/iroh/endpoint/struct.AcceptBi.html index d5befae1e0..6c0469c27a 100644 --- a/pr/3170/docs/iroh/endpoint/struct.AcceptBi.html +++ b/pr/3170/docs/iroh/endpoint/struct.AcceptBi.html @@ -1,4 +1,4 @@ -AcceptBi in iroh::endpoint - Rust
iroh::endpoint

Struct AcceptBi

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

Future produced by [Connection::accept_bi]

+AcceptBi in iroh::endpoint - Rust
iroh::endpoint

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/3170/docs/iroh/endpoint/struct.AcceptUni.html b/pr/3170/docs/iroh/endpoint/struct.AcceptUni.html index 930648555a..b1fb3b8324 100644 --- a/pr/3170/docs/iroh/endpoint/struct.AcceptUni.html +++ b/pr/3170/docs/iroh/endpoint/struct.AcceptUni.html @@ -1,4 +1,4 @@ -AcceptUni in iroh::endpoint - Rust
iroh::endpoint

Struct AcceptUni

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

Future produced by [Connection::accept_uni]

+AcceptUni in iroh::endpoint - Rust
iroh::endpoint

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/3170/docs/iroh/endpoint/struct.AckFrequencyConfig.html b/pr/3170/docs/iroh/endpoint/struct.AckFrequencyConfig.html index 330d80ffb6..cdd1ea71aa 100644 --- a/pr/3170/docs/iroh/endpoint/struct.AckFrequencyConfig.html +++ b/pr/3170/docs/iroh/endpoint/struct.AckFrequencyConfig.html @@ -1,4 +1,4 @@ -AckFrequencyConfig in iroh::endpoint - Rust
iroh::endpoint

Struct AckFrequencyConfig

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

Parameters for controlling the peer’s acknowledgement frequency

+AckFrequencyConfig in iroh::endpoint - Rust
iroh::endpoint

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/3170/docs/iroh/endpoint/struct.ApplicationClose.html b/pr/3170/docs/iroh/endpoint/struct.ApplicationClose.html index 58a386a981..2c1b5f341c 100644 --- a/pr/3170/docs/iroh/endpoint/struct.ApplicationClose.html +++ b/pr/3170/docs/iroh/endpoint/struct.ApplicationClose.html @@ -1,4 +1,4 @@ -ApplicationClose in iroh::endpoint - Rust
iroh::endpoint

Struct ApplicationClose

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

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/3170/docs/iroh/endpoint/struct.Builder.html b/pr/3170/docs/iroh/endpoint/struct.Builder.html index 92cef3c876..a39c6b36f8 100644 --- a/pr/3170/docs/iroh/endpoint/struct.Builder.html +++ b/pr/3170/docs/iroh/endpoint/struct.Builder.html @@ -1,4 +1,4 @@ -Builder in iroh::endpoint - Rust
iroh::endpoint

Struct Builder

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

Builder for Endpoint.

+Builder in iroh::endpoint - Rust
iroh::endpoint

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/3170/docs/iroh/endpoint/struct.Chunk.html b/pr/3170/docs/iroh/endpoint/struct.Chunk.html index bad2e77b7b..7ebb73d4a8 100644 --- a/pr/3170/docs/iroh/endpoint/struct.Chunk.html +++ b/pr/3170/docs/iroh/endpoint/struct.Chunk.html @@ -1,4 +1,4 @@ -Chunk in iroh::endpoint - Rust
iroh::endpoint

Struct Chunk

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

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/3170/docs/iroh/endpoint/struct.ClosedStream.html b/pr/3170/docs/iroh/endpoint/struct.ClosedStream.html index b4c21033f0..dd5454e657 100644 --- a/pr/3170/docs/iroh/endpoint/struct.ClosedStream.html +++ b/pr/3170/docs/iroh/endpoint/struct.ClosedStream.html @@ -1,4 +1,4 @@ -ClosedStream in iroh::endpoint - Rust
iroh::endpoint

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
iroh::endpoint

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 copy of the 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
§

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<'a, T, E> AsTaggedExplicit<'a, E> for T
where diff --git a/pr/3170/docs/iroh/endpoint/struct.Connecting.html b/pr/3170/docs/iroh/endpoint/struct.Connecting.html index 7af713adae..0d5e369d29 100644 --- a/pr/3170/docs/iroh/endpoint/struct.Connecting.html +++ b/pr/3170/docs/iroh/endpoint/struct.Connecting.html @@ -1,9 +1,9 @@ -Connecting in iroh::endpoint - Rust
iroh::endpoint

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>

Convert into a 0-RTT or 0.5-RTT connection at the cost of weakened security.

-
Source

pub async fn handshake_data(&mut self) -> Result<Box<dyn Any>, ConnectionError>

Parameters negotiated during the handshake

-
Source

pub async fn alpn(&mut self) -> Result<Vec<u8>>

Extracts the ALPN protocol from the peer’s handshake data.

-

Trait Implementations§

Source§

impl Debug for Connecting

Source§

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

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

impl Future for Connecting

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 Connecting
where +Connecting in iroh::endpoint - Rust
iroh::endpoint

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>

Convert into a 0-RTT or 0.5-RTT connection at the cost of weakened security.

+
Source

pub async fn handshake_data(&mut self) -> Result<Box<dyn Any>, ConnectionError>

Parameters negotiated during the handshake

+
Source

pub async fn alpn(&mut self) -> Result<Vec<u8>>

Extracts the ALPN protocol from the peer’s handshake data.

+

Trait Implementations§

Source§

impl Debug for Connecting

Source§

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

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

impl Future for Connecting

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 Connecting
where PinnedFieldsOf<__Connecting<'pin>>: Unpin,

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/3170/docs/iroh/endpoint/struct.Connection.html b/pr/3170/docs/iroh/endpoint/struct.Connection.html index 71749b70a7..f9df7300d3 100644 --- a/pr/3170/docs/iroh/endpoint/struct.Connection.html +++ b/pr/3170/docs/iroh/endpoint/struct.Connection.html @@ -1,4 +1,4 @@ -Connection in iroh::endpoint - Rust
iroh::endpoint

Struct Connection

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

A QUIC connection.

+Connection in iroh::endpoint - Rust
iroh::endpoint

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 @@ -8,29 +8,29 @@ receiving CONNECTION_CLOSE the peer may drop any stream data not yet delivered t application. Connection::close describes in more detail how to gracefully close a connection without losing application data.

May be cloned to obtain another handle to the same connection.

-

Implementations§

Source§

impl Connection

Source

pub fn open_uni(&self) -> OpenUni<'_> ⓘ

Initiates a new outgoing unidirectional stream.

+

Implementations§

Source§

impl Connection

Source

pub fn open_uni(&self) -> OpenUni<'_> ⓘ

Initiates a new outgoing unidirectional stream.

Streams are cheap and instantaneous to open unless blocked by flow control. As a consequence, the peer won’t be notified that a stream has been opened until the stream is actually used.

-
Source

pub fn open_bi(&self) -> OpenBi<'_> ⓘ

Initiates a new outgoing bidirectional stream.

+
Source

pub fn open_bi(&self) -> OpenBi<'_> ⓘ

Initiates a new outgoing bidirectional stream.

Streams are cheap and instantaneous to open unless blocked by flow control. As a consequence, the peer won’t be notified that a stream has been opened until the stream is actually used. Calling open_bi then waiting on the RecvStream without writing anything to SendStream will never succeed.

-
Source

pub fn accept_uni(&self) -> AcceptUni<'_> ⓘ

Accepts the next incoming uni-directional stream.

-
Source

pub fn accept_bi(&self) -> AcceptBi<'_> ⓘ

Accept the next incoming bidirectional stream.

+
Source

pub fn accept_uni(&self) -> AcceptUni<'_> ⓘ

Accepts the next incoming uni-directional stream.

+
Source

pub fn accept_bi(&self) -> AcceptBi<'_> ⓘ

Accept the next incoming bidirectional stream.

Important Note: The peer that calls open_bi must write to its SendStream before the peer Connection is able to accept the stream using accept_bi(). Calling open_bi then waiting on the RecvStream without writing anything to the connected SendStream will never succeed.

-
Source

pub fn read_datagram(&self) -> ReadDatagram<'_> ⓘ

Receives an application datagram.

-
Source

pub async fn closed(&self) -> ConnectionError

Wait for the connection to be closed for any reason.

+
Source

pub fn read_datagram(&self) -> ReadDatagram<'_> ⓘ

Receives an application datagram.

+
Source

pub async fn closed(&self) -> ConnectionError

Wait for the connection to be closed for any reason.

Despite the return type’s name, closed connections are often not an error condition at the application layer. Cases that might be routine include ConnectionError::LocallyClosed and ConnectionError::ApplicationClosed.

-
Source

pub fn close_reason(&self) -> Option<ConnectionError>

If the connection is closed, the reason why.

+
Source

pub fn close_reason(&self) -> Option<ConnectionError>

If the connection is closed, the reason why.

Returns None if the connection is still open.

-
Source

pub fn close(&self, error_code: VarInt, reason: &[u8])

Closes the connection immediately.

+
Source

pub fn close(&self, error_code: VarInt, reason: &[u8])

Closes the connection immediately.

Pending operations will fail immediately with ConnectionError::LocallyClosed. No more data is sent to the peer and the peer may drop buffered data upon receiving the CONNECTION_CLOSE frame.

@@ -39,50 +39,53 @@ peer.

reason will be truncated to fit in a single packet with overhead; to improve odds that it is preserved in full, it should be kept under 1KiB.

§Gracefully closing a connection
-

Only the peer last receiving application data can be certain that all data is -delivered.

-

To communicate to the last sender of the application data that all the data was received, we recommend designing protocols that follow this pattern:

-
    -
  1. The sender sends the last data. It then calls Connection::closed. This will wait until it receives a CONNECTION_CLOSE frame from the other side.
  2. -
  3. The receiver receives the last data. It then calls Connection::close and provides an error_code and/or reason.
  4. -
  5. The sender checks that the error_code is the expected error code.
  6. -
-

If the close/closed dance is not done, or is interrupted at any point, the connection will eventually time out, provided that the idle timeout is not disabled.

-
Source

pub fn send_datagram(&self, data: Bytes) -> Result<(), SendDatagramError>

Transmits data as an unreliable, unordered application datagram.

+

Only the peer last receiving application data can be certain that all data is +delivered. The only reliable action it can then take is to close the connection, +potentially with a custom error code. The delivery of the final CONNECTION_CLOSE +frame is very likely if both endpoints stay online long enough, calling +Endpoint::close will wait to provide sufficient time. Otherwise, the remote peer +will time out the connection, provided that the idle timeout is not disabled.

+

The sending side can not guarantee all stream data is delivered to the remote +application. It only knows the data is delivered to the QUIC stack of the remote +endpoint. Once the local side sends a CONNECTION_CLOSE frame in response to calling +close the remote endpoint may drop any data it received but is as yet +undelivered to the application, including data that was acknowledged as received to +the local endpoint.

+
Source

pub fn send_datagram(&self, data: Bytes) -> Result<(), SendDatagramError>

Transmits data as an unreliable, unordered application datagram.

Application datagrams are a low-level primitive. They may be lost or delivered out of order, and data must both fit inside a single QUIC packet and be smaller than the maximum dictated by the peer.

-
Source

pub fn max_datagram_size(&self) -> Option<usize>

Computes the maximum size of datagrams that may be passed to send_datagram.

+
Source

pub fn max_datagram_size(&self) -> Option<usize>

Computes the maximum size of datagrams that may be passed to send_datagram.

Returns None if datagrams are unsupported by the peer or disabled locally.

This may change over the lifetime of a connection according to variation in the path MTU estimate. The peer can also enforce an arbitrarily small fixed limit, but if the peer’s limit is large this is guaranteed to be a little over a kilobyte at minimum.

Not necessarily the maximum size of received datagrams.

-
Source

pub fn datagram_send_buffer_space(&self) -> usize

Bytes available in the outgoing datagram buffer.

+
Source

pub fn datagram_send_buffer_space(&self) -> usize

Bytes available in the outgoing datagram buffer.

When greater than zero, calling send_datagram with a datagram of at most this size is guaranteed not to cause older datagrams to be dropped.

-
Source

pub fn rtt(&self) -> Duration

Current best estimate of this connection’s latency (round-trip-time).

-
Source

pub fn stats(&self) -> ConnectionStats

Returns connection statistics.

-
Source

pub fn congestion_state(&self) -> Box<dyn Controller>

Current state of the congestion control algorithm, for debugging purposes.

-
Source

pub fn handshake_data(&self) -> Option<Box<dyn Any>>

Parameters negotiated during the handshake.

+
Source

pub fn rtt(&self) -> Duration

Current best estimate of this connection’s latency (round-trip-time).

+
Source

pub fn stats(&self) -> ConnectionStats

Returns connection statistics.

+
Source

pub fn congestion_state(&self) -> Box<dyn Controller>

Current state of the congestion control algorithm, for debugging purposes.

+
Source

pub fn handshake_data(&self) -> Option<Box<dyn Any>>

Parameters negotiated during the handshake.

Guaranteed to return Some on fully established connections or after Connecting::handshake_data() succeeds. See that method’s documentations for details on the returned value.

-
Source

pub fn alpn(&self) -> Option<Vec<u8>>

Extracts the ALPN protocol from the peer’s handshake data.

-
Source

pub fn peer_identity(&self) -> Option<Box<dyn Any>>

Cryptographic identity of the peer.

+
Source

pub fn alpn(&self) -> Option<Vec<u8>>

Extracts the ALPN protocol from the peer’s handshake data.

+
Source

pub fn peer_identity(&self) -> Option<Box<dyn Any>>

Cryptographic identity of the peer.

The dynamic type returned is determined by the configured Session. For the default rustls session, the return value can be downcast to a Vec<[rustls::pki_types::CertificateDer]>

-
Source

pub fn remote_node_id(&self) -> Result<NodeId>

Returns the NodeId from the peer’s TLS certificate.

+
Source

pub fn remote_node_id(&self) -> Result<NodeId>

Returns the NodeId from the peer’s TLS certificate.

The PublicKey of a node is also known as a NodeId. This PublicKey is included in the TLS certificate presented during the handshake when connecting. This function allows you to get the NodeId of the remote node of this connection.

-
Source

pub fn stable_id(&self) -> usize

A stable identifier for this connection.

+
Source

pub fn stable_id(&self) -> usize

A stable identifier for this connection.

Peer addresses and connection IDs can change, but this value will remain fixed for the lifetime of the connection.

-
Source

pub fn export_keying_material( +

Source

pub fn export_keying_material( &self, output: &mut [u8], label: &[u8], @@ -93,14 +96,14 @@ arguments and output buffers of equal length, they will get the same sequence of bytes in output. These bytes are cryptographically strong and pseudorandom, and are suitable for use as keying material.

See RFC5705 for more information.

-

Source

pub fn set_max_concurrent_uni_streams(&self, count: VarInt)

Modifies the number of unidirectional streams that may be concurrently opened.

+
Source

pub fn set_max_concurrent_uni_streams(&self, count: VarInt)

Modifies the number of unidirectional streams that may be concurrently opened.

No streams may be opened by the peer unless fewer than count are already open. Large counts increase both minimum and worst-case memory consumption.

-
Source

pub fn set_receive_window(&self, receive_window: VarInt)

Source

pub fn set_max_concurrent_bi_streams(&self, count: VarInt)

Modifies the number of bidirectional streams that may be concurrently opened.

+
Source

pub fn set_receive_window(&self, receive_window: VarInt)

Source

pub fn set_max_concurrent_bi_streams(&self, count: VarInt)

Modifies the number of bidirectional streams that may be concurrently opened.

No streams may be opened by the peer unless fewer than count are already open. Large counts increase both minimum and worst-case memory consumption.

-

Trait Implementations§

Source§

impl Clone for Connection

Source§

fn clone(&self) -> Connection

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Connection

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 +

Trait Implementations§

Source§

impl Clone for Connection

Source§

fn clone(&self) -> Connection

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Connection

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

fn implicit( diff --git a/pr/3170/docs/iroh/endpoint/struct.ConnectionClose.html b/pr/3170/docs/iroh/endpoint/struct.ConnectionClose.html index dd7faa49dd..11e3540dbc 100644 --- a/pr/3170/docs/iroh/endpoint/struct.ConnectionClose.html +++ b/pr/3170/docs/iroh/endpoint/struct.ConnectionClose.html @@ -1,4 +1,4 @@ -ConnectionClose in iroh::endpoint - Rust
iroh::endpoint

Struct ConnectionClose

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

Struct ConnectionClose

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

Struct ConnectionStats

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

Struct ConnectionStats

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

Struct CryptoError

pub struct CryptoError;
Expand description

Generic crypto errors

+CryptoError in iroh::endpoint - Rust
iroh::endpoint

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/3170/docs/iroh/endpoint/struct.DirectAddr.html b/pr/3170/docs/iroh/endpoint/struct.DirectAddr.html index 630107df22..cdcd0a48f8 100644 --- a/pr/3170/docs/iroh/endpoint/struct.DirectAddr.html +++ b/pr/3170/docs/iroh/endpoint/struct.DirectAddr.html @@ -1,4 +1,4 @@ -DirectAddr in iroh::endpoint - Rust
iroh::endpoint

Struct DirectAddr

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

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.

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

Fields§

§addr: SocketAddr

The address.

§typ: DirectAddrType

The origin of this direct address.

-

Trait Implementations§

Source§

impl Clone for DirectAddr

Source§

fn clone(&self) -> DirectAddr

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DirectAddr

Source§

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

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

impl Hash for DirectAddr

Source§

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

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

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

Trait Implementations§

Source§

impl Clone for DirectAddr

Source§

fn clone(&self) -> DirectAddr

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for DirectAddr

Source§

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

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

impl Hash for DirectAddr

Source§

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

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

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

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

impl Ord for DirectAddr

Source§

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

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

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

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

impl Ord for DirectAddr

Source§

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

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

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

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

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

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

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

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

impl PartialEq for DirectAddr

Source§

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

Source§

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

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

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

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 DirectAddr

Source§

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

Source§

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

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

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

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

impl Eq for DirectAddr

Source§

impl StructuralPartialEq for DirectAddr

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

impl Eq for DirectAddr

Source§

impl StructuralPartialEq for DirectAddr

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where 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/3170/docs/iroh/endpoint/struct.DirectAddrInfo.html b/pr/3170/docs/iroh/endpoint/struct.DirectAddrInfo.html index fb0b52dc6f..e3559890de 100644 --- a/pr/3170/docs/iroh/endpoint/struct.DirectAddrInfo.html +++ b/pr/3170/docs/iroh/endpoint/struct.DirectAddrInfo.html @@ -1,4 +1,4 @@ -DirectAddrInfo in iroh::endpoint - Rust
iroh::endpoint

Struct DirectAddrInfo

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

Struct DirectAddrInfo

Source
pub struct DirectAddrInfo {
     pub addr: SocketAddr,
     pub latency: Option<Duration>,
     pub last_control: Option<(Duration, ControlMsg)>,
diff --git a/pr/3170/docs/iroh/endpoint/struct.Endpoint.html b/pr/3170/docs/iroh/endpoint/struct.Endpoint.html
index f9cc7d7606..707c575115 100644
--- a/pr/3170/docs/iroh/endpoint/struct.Endpoint.html
+++ b/pr/3170/docs/iroh/endpoint/struct.Endpoint.html
@@ -1,4 +1,4 @@
-Endpoint in iroh::endpoint - Rust
iroh::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
iroh::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 @@ -16,7 +16,7 @@ the peer are created using the Connection::open_uni and Connection::open_bi functions.

Note that due to the light-weight properties of streams a stream will only be accepted once the initiating peer has sent some data on it.

-

Implementations§

Source§

impl Endpoint

Source

pub fn builder() -> Builder

Returns the builder for an Endpoint, with a production configuration.

+

Implementations§

Source§

impl Endpoint

Source

pub fn builder() -> Builder

Returns the builder for an Endpoint, with a production configuration.

Source

pub fn set_alpns(&self, alpns: Vec<Vec<u8>>) -> Result<()>

Sets the list of accepted ALPN protocols.

This will only affect new incoming connections. Note that this overrides the current list of ALPNs.

@@ -184,20 +184,18 @@ function allows for notifying iroh of any potential network changes like this.

Even when the network did not change, or iroh was already able to detect the network change itself, there is no harm in calling this function.

-
Source

pub async fn close(&self)

Closes the QUIC endpoint and the magic socket.

+
Source

pub async fn close(&self)

Closes the QUIC endpoint and the magic socket.

This will close any remaining open Connections with an error code of 0 and an empty reason. Though it is best practice to close those explicitly before with a custom error code and reason.

-

This will not wait for the [quinn::Endpoint] to drain connections.

-

To ensure no data is lost, design protocols so that the last sender -of data in the protocol calls Connection::closed, and awaits until -it receives a “close” message from the receiver. Once the receiver -gets the last data in the protocol, it should call Connection::close -to inform the sender that all data has been received.

+

It will then make a best effort to wait for all close notifications to be +acknowledged by the peers, re-transmitting them if needed. This ensures the +peers are aware of the closed connections instead of having to wait for a timeout +on the connection. Once all connections are closed or timed out, the magic socket is closed.

Be aware however that the underlying UDP sockets are only closed on Drop, bearing in mind the Endpoint is only dropped once all the clones are dropped.

-
Source

pub fn is_closed(&self) -> bool

Check if this endpoint is still alive, or already closed.

+
Source

pub fn is_closed(&self) -> bool

Check if this endpoint is still alive, or already closed.

Trait Implementations§

Source§

impl Clone for Endpoint

Source§

fn clone(&self) -> Endpoint

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

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

Performs copy-assignment from source. Read more
Source§

impl Debug for Endpoint

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/3170/docs/iroh/endpoint/struct.ExportKeyingMaterialError.html b/pr/3170/docs/iroh/endpoint/struct.ExportKeyingMaterialError.html index 660c77ce6a..7db35d8334 100644 --- a/pr/3170/docs/iroh/endpoint/struct.ExportKeyingMaterialError.html +++ b/pr/3170/docs/iroh/endpoint/struct.ExportKeyingMaterialError.html @@ -1,4 +1,4 @@ -ExportKeyingMaterialError in iroh::endpoint - Rust
iroh::endpoint

Struct ExportKeyingMaterialError

pub struct ExportKeyingMaterialError;
Expand description

Error returned by [Session::export_keying_material].

+ExportKeyingMaterialError in iroh::endpoint - Rust
iroh::endpoint

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/3170/docs/iroh/endpoint/struct.FrameStats.html b/pr/3170/docs/iroh/endpoint/struct.FrameStats.html index d604eeb366..f26b6af413 100644 --- a/pr/3170/docs/iroh/endpoint/struct.FrameStats.html +++ b/pr/3170/docs/iroh/endpoint/struct.FrameStats.html @@ -1,4 +1,4 @@ -FrameStats in iroh::endpoint - Rust
iroh::endpoint

Struct FrameStats

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

Struct FrameStats

#[non_exhaustive]
pub struct FrameStats {
Show 25 fields pub acks: u64, pub ack_frequency: u64, pub crypto: u64, diff --git a/pr/3170/docs/iroh/endpoint/struct.Incoming.html b/pr/3170/docs/iroh/endpoint/struct.Incoming.html index 9c8fd75282..037a9a03c6 100644 --- a/pr/3170/docs/iroh/endpoint/struct.Incoming.html +++ b/pr/3170/docs/iroh/endpoint/struct.Incoming.html @@ -1,29 +1,29 @@ -Incoming in iroh::endpoint - Rust
iroh::endpoint

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

iroh::endpoint

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).

+

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 connection listens on a normal UDP socket and any reachable network endpoint can send datagrams to it, solicited or not. Even if the first few bytes look like a QUIC packet, it might not even be a QUIC packet that is being received.

Thus it is common to simply log the errors here and accept them as something which can happen.

-
Source

pub fn accept_with( +

Source

pub fn accept_with( self, server_config: Arc<ServerConfig>, ) -> Result<Connecting, ConnectionError>

Accepts this incoming connection using a custom configuration.

See accept() for more details.

-
Source

pub fn refuse(self)

Rejects this incoming connection attempt.

-
Source

pub fn retry(self) -> Result<(), RetryError>

Responds with a retry packet.

+
Source

pub fn refuse(self)

Rejects this incoming connection attempt.

+
Source

pub fn retry(self) -> Result<(), RetryError>

Responds with a retry packet.

This requires the client to retry with address validation.

Errors if remote_address_validated() is true.

-
Source

pub fn ignore(self)

Ignores this incoming connection attempt, not sending any packet in response.

-
Source

pub fn local_ip(&self) -> Option<IpAddr>

Returns the local IP address which was used when the peer established the +

Source

pub fn ignore(self)

Ignores this incoming connection attempt, not sending any packet in response.

+
Source

pub fn local_ip(&self) -> Option<IpAddr>

Returns the local IP address which was used when the peer established the connection.

-
Source

pub fn remote_address(&self) -> SocketAddr

Returns the peer’s UDP address.

-
Source

pub fn remote_address_validated(&self) -> bool

Whether the socket address that is initiating this connection has been validated.

+
Source

pub fn remote_address(&self) -> SocketAddr

Returns the peer’s UDP address.

+
Source

pub fn remote_address_validated(&self) -> bool

Whether the socket address that is initiating this connection has been validated.

This means that the sender of the initial packet has proved that they can receive traffic sent to self.remote_address().

-

Trait Implementations§

Source§

impl Debug for Incoming

Source§

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

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

impl IntoFuture for Incoming

Source§

type Output = Result<Connection, ConnectionError>

The output that the future will produce on completion.
Source§

type IntoFuture = IncomingFuture

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

fn into_future(self) -> Self::IntoFuture

Creates a future from a value. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where +

Trait Implementations§

Source§

impl Debug for Incoming

Source§

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

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

impl IntoFuture for Incoming

Source§

type Output = Result<Connection, ConnectionError>

The output that the future will produce on completion.
Source§

type IntoFuture = IncomingFuture

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

fn into_future(self) -> Self::IntoFuture

Creates a future from a value. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

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

§

fn implicit( diff --git a/pr/3170/docs/iroh/endpoint/struct.IncomingFuture.html b/pr/3170/docs/iroh/endpoint/struct.IncomingFuture.html index cb0f020c50..67c8e27ac0 100644 --- a/pr/3170/docs/iroh/endpoint/struct.IncomingFuture.html +++ b/pr/3170/docs/iroh/endpoint/struct.IncomingFuture.html @@ -1,6 +1,6 @@ -IncomingFuture in iroh::endpoint - Rust
iroh::endpoint

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 +IncomingFuture in iroh::endpoint - Rust
iroh::endpoint

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 T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

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

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where diff --git a/pr/3170/docs/iroh/endpoint/struct.MtuDiscoveryConfig.html b/pr/3170/docs/iroh/endpoint/struct.MtuDiscoveryConfig.html index 780c46bf49..16cac76e99 100644 --- a/pr/3170/docs/iroh/endpoint/struct.MtuDiscoveryConfig.html +++ b/pr/3170/docs/iroh/endpoint/struct.MtuDiscoveryConfig.html @@ -1,4 +1,4 @@ -MtuDiscoveryConfig in iroh::endpoint - Rust
iroh::endpoint

Struct MtuDiscoveryConfig

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

Parameters governing MTU discovery.

+MtuDiscoveryConfig in iroh::endpoint - Rust
iroh::endpoint

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/3170/docs/iroh/endpoint/struct.OpenBi.html b/pr/3170/docs/iroh/endpoint/struct.OpenBi.html index 1f554c9152..5055e9582a 100644 --- a/pr/3170/docs/iroh/endpoint/struct.OpenBi.html +++ b/pr/3170/docs/iroh/endpoint/struct.OpenBi.html @@ -1,4 +1,4 @@ -OpenBi in iroh::endpoint - Rust

iroh::endpoint

Struct OpenBi

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

Future produced by [Connection::open_bi]

+OpenBi in iroh::endpoint - Rust
iroh::endpoint

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/3170/docs/iroh/endpoint/struct.OpenUni.html b/pr/3170/docs/iroh/endpoint/struct.OpenUni.html index 89e4befa81..018119304b 100644 --- a/pr/3170/docs/iroh/endpoint/struct.OpenUni.html +++ b/pr/3170/docs/iroh/endpoint/struct.OpenUni.html @@ -1,4 +1,4 @@ -OpenUni in iroh::endpoint - Rust
iroh::endpoint

Struct OpenUni

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

Future produced by [Connection::open_uni]

+OpenUni in iroh::endpoint - Rust
iroh::endpoint

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/3170/docs/iroh/endpoint/struct.PathStats.html b/pr/3170/docs/iroh/endpoint/struct.PathStats.html index ed226f8a9b..e5383967e4 100644 --- a/pr/3170/docs/iroh/endpoint/struct.PathStats.html +++ b/pr/3170/docs/iroh/endpoint/struct.PathStats.html @@ -1,4 +1,4 @@ -PathStats in iroh::endpoint - Rust
iroh::endpoint

Struct PathStats

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

Struct PathStats

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

Struct ReadDatagram

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

Future produced by [Connection::read_datagram]

+ReadDatagram in iroh::endpoint - Rust
iroh::endpoint

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/3170/docs/iroh/endpoint/struct.RecvStream.html b/pr/3170/docs/iroh/endpoint/struct.RecvStream.html index bf37c3b95a..6fb3787a6b 100644 --- a/pr/3170/docs/iroh/endpoint/struct.RecvStream.html +++ b/pr/3170/docs/iroh/endpoint/struct.RecvStream.html @@ -1,4 +1,4 @@ -RecvStream in iroh::endpoint - Rust
iroh::endpoint

Struct RecvStream

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

A stream that can only be used to receive data

+RecvStream in iroh::endpoint - Rust
iroh::endpoint

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: